text stringlengths 1 1.04M | language stringclasses 25 values |
|---|---|
<filename>tests/test_utilities/conftest.py
import pytest
from hp_VPINN.utilities import np as numpy
from hp_VPINN.utilities import tf as tensorflow
tensorflow.set_random_seed(0)
numpy.random.seed(0)
@pytest.fixture
def tf():
return tensorflow
@pytest.fixture
def np():
return numpy
| python |
{% extends "base.html" %}
{% load i18n %}
{% load spf_extras %}
{% block title %}
SciELO Publishing Framework - {% trans 'Events' %}
{% endblock %}
{% block content %}
<h1 class="h4 pt-5">{% trans 'Events' %}</h1>
<div class="row justify-content-center my-3">
{% if event_obj %}
<div class="table-responsive">
<table class="table table-sm table-bordered table-striped">
<thead>
<tr>
<th scope="col">#</th>
{% if user|has_group:"manager" %}
<th scope="col">{% trans 'Username' %}</th>
{% endif %}
<th scope="col">{% trans 'Activity' %}</th>
<th scope="col">{% trans 'Annotation' %}</th>
<th scope="col">{% trans 'Status' %}</th>
<th scope="col">{% trans 'Timestamp' %}</th>
</tr>
</thead>
<tbody>
{% for ev in event_obj %}
<tr>
<td>{{ event_obj.start_index|add:forloop.counter0 }}</td>
{% if user|has_group:"manager" %}
<td>{{ ev.user }}</th>
{% endif %}
<td>{{ ev.get_name_display }}</td>
{% if ev.annotation %}
<td>{{ ev.annotation }}</td>
{% else %}
<td></td>
{% endif %}
<td><span id="event_{{ ev.id }}_{{ ev.status }}" class="badge {{ ev.status|to_css_event_status_style }}">{{ ev.get_status_display }}</span></td>
<td>{{ ev.datetime }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endif %}
</div>
{% if event_obj %}
<nav aria-label="Event navigation">
<ul class="pagination justify-content-center">
{% if event_obj.has_previous %}
<li class="page-item">
<a class="page-link" href="?page=1{% if scope %}&scope={{ scope }}{% endif %}">« {% trans 'First' %}</a>
</li>
<li class="page-item">
<a class="page-link" href="?page={{ event_obj.previous_page_number }}{% if scope %}&scope={{ scope }}{% endif %}">{% trans 'Previous' %}</a>
</li>
{% endif %}
<li class="page-item">
<a class="page-link">{% trans 'Page' %} {{ event_obj.number }} {% trans 'of' %} {{ event_obj.paginator.num_pages }}</a>
</li>
{% if event_obj.has_next %}
<li class="page-item">
<a class="page-link" href="?page={{ event_obj.next_page_number }}{% if scope %}&scope={{ scope }}{% endif %}">{% trans 'Next' %}</a>
</li>
<li class="page-item">
<a class="page-link" href="?page={{ event_obj.paginator.num_pages }}{% if scope %}&scope={{ scope }}{% endif %}">{% trans 'Last' %} »</a>
</li>
{% endif %}
</ul>
</nav>
{% endif %}
<script type="text/javascript">
var autocheck = '{{ autocheck_status_update }}' == 1;
let requests = {};
let timers = {};
var events = [];
$("span[id^='event_']").each(function(){
els = this.id.split('_')
if (els[2] == 'I'){
events.push(this.id);
requests[els[1]] = false;
}
});
function checkEventStatus(event){
if(!requests[event]){
let event_db_id = event.split("_")[1];
let event_tag_id = "#" + event;
$.ajax({
url: '/event/' + event_db_id,
type: 'GET',
success: function(result) {
if (result['status'] == 'C'){
obj = $(event_tag_id)[0];
setEventStatusCompleted(obj);
requests[event] = true;
window.clearTimeout(timers[event]);
}
}
});
}
}
if(autocheck){
for (let i = 0; i < events.length; ++i){
let ev = events[i];
i_interval = setInterval(function(){checkEventStatus(ev)}, 2000);
requests[ev] = false;
timers[ev] = i_interval;
}
}
</script>
{% endblock %} | html |
{
"directions": [
"Combine corn, beans, tomatoes, onion and basil in large bowl.",
"Whisk oil, lemon juice, parsley and garlic in small bowl to blend. Stir into corn mixture. Season with salt and pepper. (Can be made 4 hours ahead. Cover and chill. Serve at room temperature.)"
],
"ingredients": [
"2 cups fresh corn kernels or frozen, thawed",
"1 15- to 16-ounce can kidney or pinto beans, rinsed, drained",
"1 cup chopped seeded plum tomatoes",
"1/4 cup chopped onion",
"1/4 cup chopped fresh basil",
"2 tablespoons olive oil (preferably extra-virgin)",
"2 tablespoons fresh lemon juice",
"2 tablespoons chopped fresh Italian parsley",
"2 large garlic cloves, minced"
],
"language": "en-US",
"source": "www.epicurious.com",
"tags": [
"Salad",
"Bean",
"Tomato",
"Vegetable",
"High Fiber",
"Summer"
],
"title": "Corn, Tomato and Bean Salad",
"url": "http://www.epicurious.com/recipes/food/views/corn-tomato-and-bean-salad-602"
}
| json |
The Brihanmumbai Municipal Corporation (BMC) has appointed marshals across Mumbai and its suburbs to ensure that coronavirus protocol is followed by people in Mumbai.
Moreover, the state government has also urged the citizens to wear face masks and follow social distancing norms.
At a time when the city is dealing with the second wave of coronavirus, a shameful act by a lady, who was seen beating a woman marshal has been surfacing on the internet.
A woman marshal, identified as Ashiwini Chawan, age 35 was on COVID-19 duties when this incident took place. She was beaten by a woman passenger at Charkop Link Road. Marshal was asking the lady to wear a face mask as the government has imposed INR 200 fine for not wearing the mask in public places. When the marshal tried to stop the lady, she grabbed her and started beating and abusing her.
Many people passing by tried to stop the lady but without realising her fault, she continued to do the cruel act and also passed the buck on the marshal by accusing her of misbehaving.
To step up the vigil in the wake of a pandemic that affected Mumbai the worst among all Indian cities, the BMC appointed marshals, who have been deployed all across the city and its suburbs. Even the educated class of Mumbai who’s aware of the dangers of the pandemic often behaves in a threatening and abusive manner.
Netizens have also urged to take strict action against such people who misbehave with the frontline workers.
The BMC officials said collecting fines from citizens isn't their aim but they aren't happy either with what they are seeing on ground zero. As per the guidelines, wearing face masks is essential and those flouting the norms have to pay a fine of INR 200. This has been aimed to create mass awareness about the health risk that the virus poses. | english |
A free program for Android, by Business Apps By RPDev.
A free app for Android, by Kingsoft Office Software Corporation Limited.
A free program for Android, by Office Tools- PDF Document Reader_Music Player MP3.
CMIS-UP is a free app for Android, that makes part of the category 'Utilities & Tools'.
| english |
<gh_stars>100-1000
from platypush.backend.sensor import SensorBackend
class SensorMcp3008Backend(SensorBackend):
"""
Backend to poll analog sensor values from an MCP3008 chipset
(https://learn.adafruit.com/raspberry-pi-analog-to-digital-converters/mcp3008)
Requires:
* ``adafruit-mcp3008`` (``pip install adafruit-mcp3008``)
* The :mod:`platypush.plugins.gpio.sensor.mcp3008` plugin configured
Triggers:
* :class:`platypush.message.event.sensor.SensorDataChangeEvent` if the measurements of a sensor have changed
* :class:`platypush.message.event.sensor.SensorDataAboveThresholdEvent` if the measurements of a sensor have
gone above a configured threshold
* :class:`platypush.message.event.sensor.SensorDataBelowThresholdEvent` if the measurements of a sensor have
gone below a configured threshold
"""
def __init__(self, **kwargs):
super().__init__(plugin='gpio.sensor.mcp3008', **kwargs)
# vim:sw=4:ts=4:et:
| python |
The growing popularity of cryptocurrency has made the people use a Tesla car for mining digital coins to cybercriminals trying to infect our systems with malware hiding in the apps/extensions. We keep coming across new developments each day. A Dutch company even designed a special suit that converts body heat to energy for mining cryptocurrency.
Of all the methods, website crypto jacking has widely spread ever since the emergence of the company ‘Coinhive‘ back in September. Many websites along with the world’s most popular torrent website, ‘The Pirate Bay’ currently uses Coinhive to mine Monero.
Several methods came into existence to block the Cryptocurrency mining in web browsers. However, Opera announced a built-in anti-crypto jacking feature to help solve this problem. It will become the first browser to include an anti crypto jacking feature in its browser. The upcoming stable version of the Opera 50 will be able to prevent websites from using your computer’s CPU power to mine for cryptocurrencies such as Bitcoin, Monero, Ethereum and Litcoin. The new feature of Opera Software might compel many Chrome and Mozilla users to install the web browser on their devices.
This new feature labelled as Nocoin, which will be integrated into Opera’s native ad-blocker is currently under development and the users can get this feature right away by installing Opera 50 Beta RC. This ad-blocker is disabled by default, it can be enabled by visiting Settings > Basic and check the Nocoin(Cryptocurrency mining protection) under Recommended lists.
The official release of Opera 50 is set in January 2018. In the meanwhile, you can find the download the beta version of Opera 50 from its blog.
| english |
{
"LiquidityBootstrappingPoolFactory": "0x751A0bC0e3f75b38e01Cf25bFCE7fF36DE1C87DE",
"timestamp": 1626888045445
} | json |
Whether you are a new cook, or a seasoned kitchen veteran, there are some tricks that you can use to improve the quality of your meals. Professional chefs everywhere use these techniques to wow their customers, and keep them coming back. Try some of these ideas, and see how your family and guests react to your amazing culinary delights.
Have you ever wondered why it is that when you make a meal, following the recipe exactly, you still can’t make it look like the accompanying photograph? The answer is pretty simple. Professional chefs use little tricks to make food more appealing. Luckily anyone can master the tricks of the trade with a little practice. Here are some that you might want to try tonight.
Do you sometimes feel that your guests compliment your cooking just to be nice? Everyone who has ever set foot in a kitchen knows that there is always room for improvement in the culinary arts. Here are some of the tips that we have gathered from the experts that might help you to get your guests to say "wow", and mean it!
Expert chefs have had many years of training and experience to get their food looking and tasting great. But it doesn’t take years to perfect the small details that will get you excited about cooking. Try these tricks, and your meals can go from bland to fabulous starting today!
Does your spice cabinet leave you feeling confused? Do you worry that your food will not have enough flavor, or that it just won’t look the way you expect? Well, the answer to your worries might be in these tips that have been gathered from professional chefs, who have plenty of experience making food that is both beautiful and delicious.
Although it’s tempting to just toss something in the oven for dinner, you probably get tired of the same old things. Here are some ideas that can get you cooking like a chef in no time at all.
A recipe does not need to be complicated to produce a delicious result. Even the simplest meals can be made better when you know the tricks of the trade. Cooking is an art, and like any art, cooking will improve with practice and experimentation. Here are some quick techniques designed to get you cooking like a professional in no time at all.
When you want to cook like a chef, you need to understand how your recipe works. Experts read more in their recipes than just measurements, and to cook like a chef you need to do the same thing. Here are some ways that you too can learn to “read” your recipes and to prepare amazing meals for your family and friends.
Currently there are no reviews available for this book.
Be the first one to write a review for the book 101 Tips & Techniques for Cooking like a Chef.
| english |
{"ast":null,"code":"// Copyright 2017-2021 @polkadot/metadata authors & contributors\n// SPDX-License-Identifier: Apache-2.0\n\n/** @internal */\nexport function flattenUniq(list) {\n const flat = list.reduce((result, entry) => {\n return result.concat(Array.isArray(entry) ? flattenUniq(entry) : entry);\n }, []);\n return [...new Set(flat)].filter(value => value).sort();\n}","map":{"version":3,"sources":["/Users/bmacer/substrate-node-template/substrate-front-end-template/node_modules/@polkadot/metadata/util/flattenUniq.mjs"],"names":["flattenUniq","list","flat","reduce","result","entry","concat","Array","isArray","Set","filter","value","sort"],"mappings":"AAAA;AACA;;AAEA;AACA,OAAO,SAASA,WAAT,CAAqBC,IAArB,EAA2B;AAChC,QAAMC,IAAI,GAAGD,IAAI,CAACE,MAAL,CAAY,CAACC,MAAD,EAASC,KAAT,KAAmB;AAC1C,WAAOD,MAAM,CAACE,MAAP,CAAcC,KAAK,CAACC,OAAN,CAAcH,KAAd,IAAuBL,WAAW,CAACK,KAAD,CAAlC,GAA4CA,KAA1D,CAAP;AACD,GAFY,EAEV,EAFU,CAAb;AAGA,SAAO,CAAC,GAAG,IAAII,GAAJ,CAAQP,IAAR,CAAJ,EAAmBQ,MAAnB,CAA0BC,KAAK,IAAIA,KAAnC,EAA0CC,IAA1C,EAAP;AACD","sourcesContent":["// Copyright 2017-2021 @polkadot/metadata authors & contributors\n// SPDX-License-Identifier: Apache-2.0\n\n/** @internal */\nexport function flattenUniq(list) {\n const flat = list.reduce((result, entry) => {\n return result.concat(Array.isArray(entry) ? flattenUniq(entry) : entry);\n }, []);\n return [...new Set(flat)].filter(value => value).sort();\n}"]},"metadata":{},"sourceType":"module"} | json |
<reponame>Dexterp37/twitter_sentimap
import json
import logging
import os
logger = logging.getLogger(__name__)
# How many tweets to put in a single JSON file? This
# directly influences.
ENTRIES_PER_FILE = 500
class SourceRecorder:
""" Write the incoming data to a set of valid JSON files.
The data is written in chunks, with each file containing
ENTRIES_PER_FILE number of tweet.
"""
def __init__(self, data_dir):
self._data_dir = data_dir
self._buffer = []
self._file_counter = 0
# Make sure the data_dir exists.
if not os.path.exists(self._data_dir):
os.makedirs(self._data_dir)
def _flush_buffer(self):
# Generate a filename for this chunk.
file_name = "chunk-{}.json".format(self._file_counter)
file_path = os.path.join(self._data_dir, file_name)
# Save the data from the buffer to the file.
with open(file_path, 'wt') as outfile:
json.dump(self._buffer, outfile)
# Empty the buffer and increase the file counter.
self._buffer = []
self._file_counter = self._file_counter + 1
def on_data_available(self, json_data):
logger.debug("Received data: {}\n".format(json.dumps(json_data)))
self._buffer.append(json_data)
if len(self._buffer) > ENTRIES_PER_FILE:
self._flush_buffer()
| python |
Amitabh Banerjee (Dec 2, 2015)
Is this review helpful?
Amarjit Singh (Dec 5, 2015)
I'm using the phone in the last few days, I liked it. I can play a lot of games. And the applications can even him.
Is this review helpful?
Mahesh Thobhani (Dec 3, 2015)
good design,
good interface,
good battery,
good look and feel,
best phone in price.
compare with Samsung J series and Sony M5; micromax canvas five win. I suggest don't waste money in Samsung J series and Sony M series. buy micromax canvas five and enjoy.
Is this review helpful?
Chandan Biswas (Nov 11, 2015)
Is this review helpful?
Ritesh Bhatia (Aug 25, 2016)
Is this review helpful?
Nishant Saini (Jul 24, 2016)
I like it very much!
Mobile is so fast and better.
I like it very much!
I like it very much!
Mobile is so fast and better.
I like it very much!
Is this review helpful?
Is this review helpful?
Nishant Saini (Jul 28, 2016)
Is this review helpful?
Kedarnath Sethy (Oct 9, 2018)
1. After 10 To 15 minutes uses highly heated as inductions cooker, as a result you can make many omlet on it.
2. Within 10 minutes Auto switch off itself and battery power drain as well as river water.
3. I raise claims 2 times service care and replace batter 2 time's as per instruction but I couldn't take satisfaction result.
4 If anybody ask u regarding Micromax you simply reply "NO".
Is this review helpful?
Ajay Kashyap (May 17, 2018)
Is this review helpful?
its stupid .so don't buy this phone.
Pito Chishi (Nov 18, 2017)
This is one of the weakest phone i ever had.
Is this review helpful?
Subhash Sarmah (Feb 15, 2017)
Worst mobile I have used till now very bad battery back up. It will died within 2 and half hours if u use it continuously.
Is this review helpful?
Chetan Deore (Sep 23, 2016)
I have been purchased E 481 in may 2016 after 1 months I face Mike problem I. e. the person who call me / I call can not hear my voice. Service center could not solve this minor problem Even changing defective part 2 times. I visit service center for 7 times within a span of 2 months. Every time they told me UR handset is OK. Same problem will not come but that assurance was useless. So I demand for replacement but company denied . finally I decided to file a case in Disrict Consumer Forum against Micromax for replacement & compensation . if anybody facing the problem of defective handset pls file a case in UR District Consumer Forum . for defence no lawyer necessary we can defence our case own.
Is this review helpful?
Tamil Arasan (Jun 19, 2016)
hai this is tamil from chennai..i bought micromax canvas 5 two months before..this is the worst mobile i have ever seen..rectifying the problem in service centre is bad and bad consumer service..hereafter i will never recommend this brand to any of my friends..
Is this review helpful?
Aakash Agrawal (Jan 28, 2016)
People don't ever buy the newly launched phones from Micromax, they are not serviced at the service center and you have to follow up on the call center for everything.
I bought this Canvas 5 (E481) in Dec'15 and got a software problem in 1st week of Jan'16. Since then I've been following up almost everyday on their call center and its still not repaired. Even though they are asking for 999/- to replace the phone when its a simple software problem which can be fixed by flashing the ROM.
DO NOT EVER BUY THIS PHONE OR BE READY TO HAVE ANOTHER PHONE FULL TIME BUSY CALLING THEIR SO CALLED PREMIER CARE SERVICE CENTER.
Is this review helpful?
Poor battery and Heating issue now iam facing probles..
Hanmandlu Chintawar (Jan 8, 2016)
just i purchase last month but now i am facing lot with this mobile i have battery and heating problem rather than this mobile is better and also Micromax service also poor. No one is respond to your query..please guys before purchase this mobile see all reviews.
Is this review helpful?
Chandan Baheti (Jun 27, 2016)
* BATTERY CHARGING IS VERY-VERY SLOW.
* BATTERY BACKUP IS ALSO WEAK.
* CAMERA (REAR & FRONT) BOTH ARE AWESOME.
* COOL LOOKS.
* OVERALL REVIEW-ABOVE AVERAGE PHONE (GOOD FOR TEENAGERS)
Is this review helpful?
satbir singh yadav ' 9050346425.
Satbir Singh (Mar 16, 2016)
i parchaged mobile micromax e481 on 11th march2016. the phone batterty is very very poor. to buy this phone wastege of your money.
Is this review helpful?
Nikhil Yenumula (Jan 23, 2016)
After connecting a 16 gb flash drive it stopped working. I hardly used it for 15 days after purchase. Camera is not at all good.The attractive features I found is its back cover and FHD display,3gb ram,16gb internal memory and 4g support. I also found battey life is good in my 15 days of usage.
Is this review helpful?
| english |
[
{
"Id": "455762",
"ThreadId": "216114",
"Html": "<p>Lets say I have a "MainRegion" with three associated views (Data, Graphs, Specifications). When I hit the Graphs TabItem, the GraphsView is <em>loaded </em>into the MainRegion. When I hit the Specifications TabItem, the SpecificationsView is <em>loaded </em>into the MainRegion, etc..</p>\r\n<p>When I say <em>loaded </em>I mean I call region.add(view) and region.activate(view).</p>\r\n<p>Now say I am going from DataView to GraphsView, how should I proceed. Keep in mind I will most likely be coming back to the DataView shortly and I don't want to run through my DataView's InitializeComponent() again. Should I region.remove(DataView) and region.deactivate(DataView)? Or should I just deactivate?</p>\r\n<p>Sorry but I can't find any good explanation of the two in the documentation. Thanks in advance.</p>",
"PostedDate": "2010-06-15T11:10:28.63-07:00",
"UserRole": null,
"MarkedAsAnswerDate": null
},
{
"Id": "458962",
"ThreadId": "216114",
"Html": "<p>Hi,</p>\r\n<p>You can find an explanation about the difference between deactivating and removing a view in <a href=\"View.aspx?ThreadId=56692\">this thread</a>.</p>\r\n<p>Additionally, take into account that, if you have removed a view, you don’t need to deactivate it, as it is no longer in your region.</p>\r\n<p>I hope you find this helpful.</p>\r\n<p><NAME> <br><a href=\"http://blogs.southworks.net/gmaliandi\">http://blogs.southworks.net/gmaliandi</a></p>",
"PostedDate": "2010-06-23T07:09:53.71-07:00",
"UserRole": null,
"MarkedAsAnswerDate": null
}
] | json |
Karl Montevirgen is a professional freelance writer who specializes in the fields of finance, cryptomarkets, content strategy, and the arts. Karl works with several organizations in the equities, futures, physical metals, and blockchain industries. He holds FINRA Series 3 and Series 34 licenses in addition to a dual MFA in critical studies/writing and music composition from the California Institute of the Arts.
Doug is a Chartered Alternative Investment Analyst who spent more than 20 years as a derivatives market maker and asset manager before “reincarnating” as a financial media professional a decade ago.
Before joining Britannica, Doug spent nearly six years managing content marketing projects for a dozen clients, including The Ticker Tape, TD Ameritrade’s market news and financial education site for retail investors. He has been a CAIA charter holder since 2006, and also held a Series 3 license during his years as a derivatives specialist.
Doug previously served as Regional Director for the Chicago region of PRMIA, the Professional Risk Managers’ International Association, and he also served as editor of Intelligent Risk, PRMIA’s quarterly member newsletter. He holds a BS from the University of Illinois at Urbana-Champaign and an MBA from Illinois Institute of Technology, Stuart School of Business.
If you’re a crypto enthusiast or investor, you’ve probably seen—among the many thousands of coins in digital circulation—some with similar names to other, “household name” cryptocurrencies. For example, there’s Bitcoin and Bitcoin Cash, or Ethereum Classic and Ethereum 2.0. What are these?
Most likely, they’re different spin-offs stemming from an original coin. They’re a result of changes, called “forks,” made to a blockchain’s protocol. If you’re considering an investment in crypto—forked or not forked—here’s what you should know about these blockchain offshoots.
A cryptocurrency fork is a blockchain software update that can either implement minor changes to the existing protocol or cause it to split into two separate and incompatible protocols.
If the protocol change is significant enough, it can lead to the creation of a new blockchain, plus a new coin.
Many blockchain networks are open source, allowing developers to propose and initiate changes when a majority of them find it necessary.
For instance, developers may decide improvements to the existing chain are needed, or that new functionalities should be added, or that security features must be bolstered. Developers may also try to resolve disagreements in the blockchain community—particularly when developers, miners, or users are unhappy with the direction a blockchain is headed.
Changes to a blockchain’s underlying protocol vary in significance. Sometimes it’s a minor upgrade, like a bug fix. Other times, it can be a major, system-wide overhaul.
In 2017, Bitcoin underwent a soft fork to implement the SegWit (Segregated Witness) upgrade. The long and short of it is that Segwit improved several functionalities within the Bitcoin network:
In contrast, a hard fork also took place the same year that resulted in a new cryptocurrency called Bitcoin Cash. Not every developer was happy with the SegWit solution. They argued that SegWit’s block capacity increase was still too small. So they implemented their own solution, but their update wasn’t compatible with the original system. Hence, Bitcoin Cash was born, and those holding coins in the original Bitcoin received an equivalent amount of Bitcoin Cash coins.
As with all software, you can assume that upgrades will take place as blockchain networks evolve. Whether the development community chooses a hard or soft fork—and whether that choice turns out to be a good idea—is something that is only known after the fact, for better or worse. But there are a few general benefits and risks of forks.
Crypto sometimes gets a bad rap for being inefficient with resources. Learn more about proof-of-work versus proof-of-stake protocols and how to make your crypto investments more eco-friendly.
Cryptocurrency forks are pivotal turning points in a blockchain network’s evolution. These changes can be minor adjustments or major overhauls. Although forks can offer some important benefits, they also come with significant challenges and risks. As the crypto landscape continues to take shape, understanding forks and their implications is crucial for anyone involved in this dynamic field, whether they’re a passive enthusiast (aka “HODLer”) or an active trader.
| english |
Outriders has a few great places to level through the World Tiers quickly, but they are in unexpected places.
Outriders is a complicated game to figure out farming in any capacity due to the constant changes. The developers are more concerned with players farming the game and exploiting the glitches than about the game's bugs. Within two weeks, most farming techniques were nerfed by the Outriders' developers.
However, the Outriders developers nerfed several farming methods despite adding a few new bugs. Most farming methods no longer work, so players have to figure out new ways to grind through the game. Luckily, there are three tried and true methods to farm World Tiers that work post-patch.
It would be wise if players used these strategies as quickly as possible because Outriders is due for another set of patches to fix bugs, and the developers may decide to take these measures away as well.
In First City, there is an objective called "Get to the other side of the river. " Weak monsters will swarm the player, but they only give experience during this mission. It is widely used both before and after the nerf to level up the world tier.
The river is not a farm that players can use for multiple purposes. The river is just for giving world tier points and minor loot. Once the minor monsters have been killed, players can go to the lobby and repeat the farming process.
A much more beneficial farm is located at Crystal Point in the Forest Enclave. An NPC named Juno Pascal is located a few feet behind the starting point. Juno Pascal will give the player a quest with great drops and many low-health enemies to kill.
Juno Pascal's quest is best for players who don't like the boring river. Juno Pascal's quest is also better for earning loot alongside World Tier points. Players should be aware that these benefits come with difficulty, and this method won't be as easy as the river.
If players want a change from the river but don't want an increase in difficulty, The Gate has what they need. It won't be as profitable as Juno Pascal's quest, but it is a nice break from the scenery of the river.
After arriving, the players should head towards the stone pillars. The pillar with the red gore webbing type material is a good marker, as going to the right of that pillar will direct the player exactly where they want to go. An NPC named "Wanderer" will give the player an easy quest to gain world tier points.
These enemies look a lot stronger than those in the river, but they're easy to beat. The monsters don't fight well, and they wait for the player to kill them. It's like the game drops difficulty for this farm, so it's well worth the time taken.
These are the three spots in the game where players will receive the most experience points for the least amount of effort. To stay out of trouble, players have to continue leveling up weapons to handle these farms' many enemies. As long as players are ready, these spots will still work after the nerf, and players can farm them immediately. | english |
Arjun Sarja's Daughter Aishwarya and Umapathy Ramaiah's Nuptials on the Cards!
As per reports doing rounds on social media platforms, Aishwarya Arjun - who happens to be celebrated Kannada star actor -Arjuna Saraja's daughter- might soon take up a new role- that of being married. This news has set off quite some buzz among loyalists. The marriage is anticipated to happen shortly. Swirling rumors have it that Aishwarya Arjun is about to marry Umapathy Ramaiah. The son of the award-winning Thambi Ramaiah is also an actor.
Sources indicate that Aishwarya Arjun and Umapathy Ramaiah have been in a steady relationship for a considerable duration. They've opted to elevate their connection and take it up a notch. It's expected that although there isn't an official announcement regarding the wedding yet, very shortly, the family will make their confirmation. | english |
When Nicolas Cage and John Travolta, two of Hollywood’s magnetic actors decided to swap themselves for 'Faceoff', no one expected the movie to go on as a blockbuster, but it turned out to be the best of their works. 'Bogan' is heavily inspired from Faceoff but tries to break free locally with the lead characters competing against each other on the screen as rivals and in respective acting too. Jayam Ravi and Arvind Swamy’s chemistry is certainly something to watch out for after the runaway hit 'ThaniOruvan'. Two contrasting personalities come face to face in a deadly duel just like their previous flick and who gets the better out of each other becomes the cream of the plot and it just deepens their enmity and keeps the screenplay engaging enough.
You have seen this scene already, Arvind Swamy swags his way around with an impeccable confidence, his body language enough to say that the badass has arrived. Only this time he tricks his way inside people’s minds and goes on a looting spree. The sluggish arrogance is something which Arvind Swamy can boast off, as a modern day thug who knows mystic ways to swap his soul, he steals the show all the way and makes us wonder where this guy was all these years. After establishing his character, the plot shoots off to become the typical Tamil movie with an action packed cop (Jayam Ravi) who falls in love with a beautiful lass (Hansika), but kudos to the director on getting this part over with and moving to the engaging part of the script. Keeping the spoilers to minimum, screenplay of 'Bogan’ is a fitting duel between two varying personalities; one a straightforward smart cop with an adorable family, the other a badass crook who uses mystic forces to live a king size life.
The director has a strong concept in his mind “What happens when an unstoppable force meets an immovable object? ” two repelling forces collide and try to outsmart each other. To drive this point of view he takes time to establish the mannerism of Arvind swamy for they switch roles in the second half, however does not do enough justice to add unique body language characteristics to Jayam Ravi. As much as they try to outsmart each other the movie has its own trouble in dealing with logical issues but some powerful acting from both the lead actors shoo away tiny technical errors.
Jayam Ravi has done his homework enough and is evident on the screen with his onscreen imitation of Arvind Swamy as they switch roles and pick the action in second half. Ravi has come a long way since being just the chocolate boy and his hard work has simply done wonders. Hansika’s character is limited, but the bubbly actress does her part of a caring lover with ease.
The movie could have been tad shorter, even though the enmity is established the plot goes on in the same fashion making us look for a different approach after a point. Many of the scenes have been inspired from Hollywood flicks, the director’s efforts to make the screenplay quick is certainly another key element. Imman’s background score keeps the audience on their toes although apart from 'Dammal Dumeel' other songs are just passable. Soundar’s camera work is colorful and is evident through the 'Senthoora' song. Art work is quite ordinary and leaves a feeling of could have been better.
The film largely works on the chemistry of Arvind Swami and Jayam Ravi, the enigma they carried in 'Thanioruvan' is back in a different format and they compete out to make the plot very entertaining. Lakshman’s screenplay is the key for its racy nature. Some of the cliché love scenes and average dialogues hinder the film’s pace but again they get shadowed by the lead cast’s performance.
Verdict : Bogan is a fitting duel between two varying personalities; one a straightforward smart cop and the other a badass crook who uses mystic forces to live a king size life. Rides high on Arvind Swami and Jayam Ravi’s performances. | english |
Many such films are made in Bollywood, which are based on subjects about which people hesitate to even speak. Films made on such subjects are often considered taboo in society, and even talking about them at home or in a public place becomes uncomfortable.
Apart from entertaining, films also educate people about certain subjects that society does not allow.
From sex education, rights of third communities or films made on superstition, they try their best to make people aware from time to time. In 2023, we will have seen films that talk about these taboo topics, which have been liked by the audience to a great extent. Today, let us list such films giving social messages, which not only touch our hearts but have also played an important role in preventing the spread of superstitions and evils in society.
Every year, such films are often released in cinema houses, on which there is a lot of uproar, someone's sensitivities are hurt, and sometimes a political issue is made. This is often discussed even in Parliament. For example, recently Ranbir Kapoor and RajyaSabha member RanjitRanjan spoke on the topic ' Negative impact of cinema on youth', which remained much discussed. However, it is a different matter how much the film earned or its popularity. Similarly, these Bollywood films of this year have broken the myths of the people, and remain in the news a lot.
Directed by Karan Boolani, 'Thank You for Coming' stars BhumiPednekar, Shehnaaz Gill, KushaKapila and others. The film not only presents such modern-day issues boldly, but also encourages people to live life on their terms.
The film particularly highlights taboo subjects, making every effort to explore women's sexuality and personal fulfilment. There was a lot of discussion among the people about the film being based on such a subject, while on the other hand, the film was also appreciated.
The sequel to OMG, the film starring Akshay Kumar, PankajTripathi and YamiGautam is a satire-filled comedy-drama that fearlessly tackles the sensitive subject of sex education and presents it as cinema.
Starring stellar performances from Nawazuddin Siddiqui, BhumiPednekar, Sumeet Vyas and Sharib Hashmi, the film is inspired by a real-life incident that happened in the country. The film, directed by Sudhir Mishra, is going viral on the internet these days, It is based on the consequences of a fake video.
Raj Rachakonda's film, '8 AM Metro' takes us on a journey through the emotional and mental difficulties of human life. GulshanDevaiah and SaiyamiKher acted in this film. It is a story about two strangers who navigate their personal and life experiences as they grow closer. Apart from this, the film presents trauma bonding.
| english |
{
"directions": [
"In a large bowl, sift together all-purpose flour, baking powder and salt.",
"Mix sugar, eggs and 2 tablespoons vegetable oil in a small bowl. Quickly stir into the flour mixture. Mix in approximately 1/2 the water. Knead into a soft, pliable dough, using more of the water as necessary.",
"Cover dough with a tea towel and allow to sit at least 1 hour while desired filling is prepared. To use, divide into two parts, roll flat on a lightly floured surface and lightly brush with remaining vegetable oil. Fill and bake as desired."
],
"ingredients": [
"2 1/2 cups all-purpose flour",
"1/2 teaspoon baking powder",
"1/2 teaspoon salt",
"1 tablespoon white sugar",
"3 eggs, well beaten",
"3 tablespoons vegetable oil",
"1/4 cup water"
],
"language": "en-US",
"source": "allrecipes.com",
"tags": [],
"title": "Strudel Dough",
"url": "http://allrecipes.com/recipe/19564/strudel-dough/"
}
| json |
<filename>abc/140/b.rs
#![allow(non_snake_case)]
#![allow(unused_variables)]
fn main() {
let N: usize = {
let mut line: String = String::new();
std::io::stdin().read_line(&mut line).unwrap();
line.trim().parse().unwrap()
};
let A: Vec<usize> = {
let mut line: String = String::new();
std::io::stdin().read_line(&mut line).unwrap();
line.split_whitespace()
.map(|x| x.parse().unwrap())
.collect()
};
let B: Vec<i64> = {
let mut line: String = String::new();
std::io::stdin().read_line(&mut line).unwrap();
line.split_whitespace()
.map(|x| x.parse().unwrap())
.collect()
};
let C: Vec<i64> = {
let mut line: String = String::new();
std::io::stdin().read_line(&mut line).unwrap();
line.split_whitespace()
.map(|x| x.parse().unwrap())
.collect()
};
let (ans, _) = (0..N).fold((0, N), |(res, prev), i|
if A[i] == prev + 1 { (res + B[A[i] - 1] + C[A[i] - 2], A[i]) }
else { (res + B[A[i] - 1], A[i]) }
);
println!("{}", ans);
}
| rust |
Taser is now Axon. The brand has been a household word for years, but the company felt it was time to leave that identity behind and double down on the body camera and digital evidence management side of its business. As part of that move, it’s offering free body cameras and software to any police department that asks. Yes, free as in beer, and yes, any as in any.
I talked with the company’s founder, Rick Smith, about this major change and the shifts in policing and technology that prompted it.
The Taser brand will remain for the stun guns we all know, but the parent company will now be Axon, with the ticker symbol AAXN.
Axon, you may remember, was the division Taser created a few years ago to focus on the wearable camera space; the tech was getting there, and Taser was in the right position to bring it to law enforcement. It’s been a major success, but considering the benefits of deployment (some obvious, some disputed), uptake hasn’t been as fast as pretty much anyone would like. Right now around 20 percent of police have access to body cameras.
“It’s really just inertia,” Smith said. Regulatory holdups, budget limitations, and just plain skepticism have slowed things down. So Axon’s solution is to just straight-up give the product away. At least, for a limited time.
The deal is pretty simple: ask and ye shall receive an Axon Body 2 camera for every officer, the software and infrastructure to handle all the footage, and online training in how to use it. Everything is free with no obligations for a year.
Now, it hardly need be mentioned that this isn’t being done out of the goodness of Axon’s corporate heart. The company stands to profit immensely by being the de facto default for police camera systems. And it’s worth mentioning that the free offer makes it difficult for departments to resist, and once the benefits are public, it’s going to be even more difficult to give up.
But while in some situations I would characterize this as a sort of Trojan horse, it’s my opinion (and clearly Smith’s) that body cameras are probably the single most beneficial step we can take today to improve the quality of policing.
Not only do body cameras provide invaluable documentation of every interaction, they save a ton of time and money.
Big talk, but at least he’s putting his money where his mouth is. The program will be costly to Axon at first, but I can’t picture it playing out any way but positive in the long run. And in the meantime, a whole lot of police departments are going to get the tech they deserve but that tight budgets meant they weren’t going to get for years. If the cost for that is that a single company dominates the field for now, I think that’s a reasonable trade-off.
Of course, in order to replace reports, Axon’s software has to get a lot more sophisticated. Right now body cameras are sort of backup evidence, while laboriously filled out reports are still the standard. But the plan is to automate the extraction of information from the video to expedite things.
For example, the system could automatically transcribe any speech in the video and tag events with GPS and other stats. So when the officer wants to check what a person said during a traffic stop, they don’t have to scrub through 2 hours of video — they can just search for an interaction, or the license plate. AI systems could also intelligently redact videos, blurring out the faces of bystanders so that the video can be released publicly or presented in court.
That kind of data digging can get really creepy real fast, and Smith was quick to downplay the idea that Axon would be poring through millions of hours of footage assembling a kind of meta-surveillance database.
It should be a big year for the newly renamed company, and let’s hope it’s equally big for the police departments it’s aiming to equip.
| english |
Melbourne, Dec 28 (IANS) Left-arm pacer Mitchell Starc has hit back at former compatriot and legendary Australian spinner Shane Warne, saying he has been at his back for years and he was not worried by his criticisms any more.
"Warnie's been on my back for years, so I'm not too worried about it," Starc was quoted as saying by the Sydney Morning Herald.
The comment came in the wake of the cricketer-turned-commentator criticising Starc for what he deemed his lack of presence in his follow-through at the Gabba and termed him as "soft", after which the quick was ushered out of the Test team for the 11th time in his still formative, stop-start career.
"I'm still waiting for his phone call. Apparently he called me," Starc said when asked about Warne in the wake of a standout performance for Sydney Sixers in their Big Bash League win over local rivals the Thunder.
On hearing Warne's comment during the match, Starc retorted: "I was playing cricket. I wasn't listening, He's getting paid to talk, I'm getting paid to play cricket. " | english |
{% load i18n %}
{% if widget.is_initial %}
{% endif %}
<div class="sizedimage-mod preview">
<label class="versatileimagefield-label">
{% trans "Primary Point of Interest" %}
</label>
<p class="margin">
{% trans "Pick the most relevant part of the image using the red circle." context "Image form text" %}
</p>
<div class="image-wrap outer">
<div class="point-stage" id="{{ widget.point_stage_id }}"
data-image_preview_id="{{ widget.image_preview_id }}">
<div class="ppoi-point" id="{{ widget.ppoi_id }}"></div>
</div>
{% if widget.value %}
<div class="image-wrap inner">
<img src="{{ widget.sized_url }}" id="{{ widget.image_preview_id }}"
data-hidden_field_id="{{ widget.hidden_field_id }}"
data-point_stage_id="{{ widget.point_stage_id }}"
data-ppoi_id="{{ widget.ppoi_id }}" class="sizedimage-preview"/>
</div>
{% endif %}
</div>
</div>
| html |
Vijay Deverakonda, the popular actor, will soon commence filming for a period crime drama. The filming of his other project, "Kushi," has been delayed, leading him to start work on this new film directed by Gowtam Tinnanuri.
Once filming for "Kushi" resumes, Vijay Deverakonda will go back to the set. He intends to simultaneously work on both films, with the Tinnanuri project also underway.
In the film directed by Gowtam Tinnanuri, Vijay Deverakonda will play the role of a cop. Since the uniform is the only requirement for his appearance, there won't be much of a makeover needed, making it easier for him to handle working on both films at the same time.
Vijay Deverakonda's biggest failure in his career was the film "Liger," which caused him to lose time and reputation. Through these two new films, he aspires to regain what was lost and make up for the past setback. | english |
[](https://travis-ci.org/kirklewis/perl5-xml-validation)
# Perl 5 XML Validation with DTD and XSD
Code and files used in my [article](https://medium.com/@kirklewis/perl-5-xml-validation-with-dtd-and-xsd-ec2d90f7c434) which briefly covers XML Validation in Perl 5 using `XML::LibXML` modules.
**To Install**
```bash
git clone https://github.com/kirklewis/perl5-xml-validation.git
cd perl5-xml-validation
cpanm -L local --installdeps .
```
_**NB**: You can also create perlbrew lib and install your modules there instead._
**Run Tests**
The test files are located in the [t/](https://github.com/kirklewis/perl5-xml-validation/tree/master/t) directory.
```bash
prove -Ilocal/lib/perl5 -v t/
```
---
Copyright (c) 2020 <NAME>
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
| markdown |
A delegation from FIH and Hockey India inspected the under-construction Birsa Munda Hockey Stadium before the draw of the Hockey World Cup.
A high-level team of hockey officials visited the under-construction stadium in Odisha's Rourkela on Wednesday to take stock of the situation ahead of the men's world cup next year. The team, comprising members of the International Hockey Federation or the FIH and Hockey India, expressed satisfaction over the ongoing work at the Birsa Munda Hockey Stadium.
They also inaugurated a training centre there and took stock of activities going on at Rourkela Airport, which will be used as a transit hub for the players, staff and others. FIH acting president Seif Ahmed congratulated Odisha and Hockey India for the work that they had done.
"What we've seen today is fantastic, amazing," Ahmed said at a press briefing, hoping to have a very good world cup in Rourkela and Bhubaneswar. FIH chief executive officer Thierry Weil said it would be the largest hockey stadium in India and, most probably, in the world.
The stadium in western Odisha's Sundargarh district can accommodate 20,000 spectators. The 35-acre site includes the stadium and accommodation inside the 120-acre campus of the Biju Patnaik University of Technology.
S Y Quraishi, a member of the committee of administrators that is currently running the sport in the country, said they were "extremely pleased" with the progress made in the project. The former chief election commissioner acknowledged that anything happening in Odisha "is in safe hands", adding that everything was on track.
The visit came a day before the scheduled draw of the Men's Hockey World Cup, which will be hosted jointly by Bhubaneswar and Rourkela from January 13-29. The state is hosting the quadrennial event for the second time in a row after hosting it in Bhubaneswar in 2018.
| english |
<gh_stars>0
{% extends 'base.html' %}
{% block title %}
Payment suceeded
{% endblock title %}
{% block content %}
<div class="card">
<div class="card-body">
<h3>Payment suceeded</h3>
</div>
</div>
{% endblock content %}
| html |
import {removeHtmlWhitespaces} from "../../src/template/template-optimise-component-transpiler";
describe('template-optimise-component-transpiler', () => {
it('should remove unnecessary white spaces', () => {
const input: string = `
<example-foo-component [bindingFoo]="foo"
[bindigBar]="bar"
example-directive-foo
[exampleDirectiveBar]
[(ngModel)]="model">
<component-a *ngIf="a"></component-a>
<component-b *ngIf="b"></component-b>
</example-foo-component>
`;
const output : string = `<example-foo-component [bindingFoo]="foo" [bindigBar]="bar" example-directive-foo [exampleDirectiveBar] [(ngModel)]="model"><component-a *ngIf="a"></component-a><component-b *ngIf="b"></component-b></example-foo-component>`;
expect(removeHtmlWhitespaces(input)).toEqual(output);
})
});
| typescript |
import {Component, OnDestroy, OnInit} from '@angular/core';
import {AbstractControl, FormBuilder, FormGroup} from "@angular/forms";
import {ToolLocale} from "../../../../core/translation/model/tool-locale.model";
import {TranslationLocale} from "../../../../translations/model/translation-locale.model";
import {Subject} from "rxjs";
import {UserPreferencesService} from "../../../service/user-preferences.service";
import {NotificationService} from "../../../../core/notification/service/notification.service";
import {ToolLocaleService} from "../../../../core/translation/service/tool-locale.service";
import {TranslationLocaleService} from "../../../../translations/service/translation-locale.service";
import {takeUntil} from "rxjs/operators";
import {UserPreferences} from "../../../model/user-preferences";
@Component({
selector: 'app-edit-preferences',
templateUrl: './edit-preferences.component.html',
styleUrls: ['./edit-preferences.component.css']
})
export class EditPreferencesComponent implements OnInit, OnDestroy {
public form: FormGroup;
public currentToolLocale: ToolLocale;
public preferredToolLocale: ToolLocale;
public currentPreferredLocales: TranslationLocale[] = [];
public preferredLocales: TranslationLocale[] = [];
public loading: boolean = false;
private readonly _destroyed$ = new Subject();
constructor(private userPreferencesService: UserPreferencesService,
private formBuilder: FormBuilder,
private notificationService: NotificationService,
public toolLocaleService: ToolLocaleService,
public translationLocaleService: TranslationLocaleService) {
this.form = formBuilder.group({
toolLocale: [],
preferredLocales: []
});
}
ngOnInit() {
this.toolLocaleService
.getCurrentLocale()
.pipe(takeUntil(this._destroyed$))
.subscribe(currentToolLocale => {
this.currentToolLocale = currentToolLocale;
this.selectedToolLocale = this.currentToolLocale;
});
this.toolLocaleService
.getPreferredToolLocale()
.pipe(takeUntil(this._destroyed$))
.subscribe(preferredToolLocale => this.preferredToolLocale = preferredToolLocale);
this.translationLocaleService
.getDefaultLocales()
.pipe(takeUntil(this._destroyed$))
.subscribe(currentPreferredLocales => {
this.currentPreferredLocales = currentPreferredLocales;
this.selectedPreferredLocales = this.currentPreferredLocales;
});
this.translationLocaleService
.getPreferredLocales()
.pipe(takeUntil(this._destroyed$))
.subscribe(preferredLocales => this.preferredLocales = preferredLocales);
}
ngOnDestroy(): void {
this._destroyed$.next();
this._destroyed$.complete();
}
get selectedToolLocaleForm(): AbstractControl {
return this.form.controls['toolLocale'];
}
get selectedToolLocale(): ToolLocale {
return this.selectedToolLocaleForm.value;
}
set selectedToolLocale(locale: ToolLocale) {
this.selectedToolLocaleForm.setValue(locale);
}
get autoDetectedToolLocale(): boolean {
return !this.preferredToolLocale && !this.selectedToolLocaleForm.dirty;
}
get selectedPreferredLocalesForm(): AbstractControl {
return this.form.controls['preferredLocales'];
}
get selectedPreferredLocales(): TranslationLocale[] {
return this.selectedPreferredLocalesForm.value;
}
set selectedPreferredLocales(preferredLocales: TranslationLocale[]) {
this.selectedPreferredLocalesForm.setValue(preferredLocales);
}
get autoDetectedPreferredLocales(): boolean {
return this.preferredLocales.length == 0 && !this.selectedPreferredLocalesForm.dirty;
}
onSave() {
this.loading = true;
this.userPreferencesService
.updateUserPreferences(
new UserPreferences(
this.selectedToolLocale,
this.selectedPreferredLocales.map(locale => locale.id)
)
)
.toPromise()
.catch(error => {
console.error('Error while saving user\'s preferences.', error);
this.notificationService.displayErrorMessage('Error while saving user\'s preferences.');
})
.finally(() => {
this.form.markAsPristine();
this.loading = false;
});
}
resetForm() {
this.selectedToolLocale = this.currentToolLocale;
this.selectedToolLocaleForm.markAsPristine();
this.selectedPreferredLocales = this.currentPreferredLocales;
this.selectedPreferredLocalesForm.markAsPristine();
}
}
| typescript |
The 68th National Film Awards for the year 2020 was announced earlier today, and the award for Best Actor was shared by Suriya and Ajay Devgn. While the former won the award for his performance in Sudha Kongara’s Soorarai Pottru, the latter bagged it for Tanhaji: The Unsung Warrior.
Soorarai Pottru went on an award spree, bagging the prestigious Best Feature Film Award. The 2020 film also won three more awards namely, Best Actor (Female) for Aparna Balamurali, Best Screenplay for Sudha Kongara and Shalini Ushadevi, and Best Music Direction (BGM) for GV Prakash Kumar.
The film was inspired by the real-life story of G. R. Gopinath, the founder of India’s first low-cost airlines. It followed a common man’s dream to provide low-cost air travel to the common people.
The film, which premiered on Amazon Prime Video in November 2020, was widely received with acclaim and went on to be submitted to the 93rd Academy Awards as a paid submission under the general category. The film was also screened at the Academy Screening Room.
Notably, a Hindi remake of the film, starring Akshay Kumar and Radhika Madan, is currently in production.
Soorarai Pottru was produced by Suriya and Guneet Monga under their 2D Entertainment and Sikhya Entertainment banners. | english |
/**
* @license
* Copyright 2018-2020 Streamlit Inc.
*
* 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.
*/
import {
BlockPath,
Delta,
IBlock,
IForwardMsgMetadata,
NamedDataSet,
} from "autogen/proto"
import { List, Map as ImmutableMap } from "immutable"
import { addRows } from "lib/dataFrameProto"
import { dispatchOneOf, toImmutableProto } from "lib/immutableProto"
import { MetricsManager } from "lib/MetricsManager"
import { requireNonNull } from "lib/utils"
// The actual protobuf Element.proto
export type SimpleElement = ImmutableMap<string, any>
// A list of nodes to render.
// Example BlockElements include: main, sidebar, st.container, st.column
export interface BlockElement extends List<ReportElement> {}
// Pointers to the two root nodes of the element trees.
export interface Elements {
main: BlockElement
sidebar: BlockElement
}
/**
* A node of the element tree, representing a single thing to render: {
* element: SimpleElement | BlockElement
* reportId: string
* metadata: IForwardMsgMetadata (proto)
* deltaBlock: IBlock (proto)
* }
*/
export type ReportElement = ImmutableMap<string, any>
export function applyDelta(
elements: Elements,
reportId: string,
deltaMsg: Delta,
metadata: IForwardMsgMetadata | null | undefined
): Elements {
if (!metadata) {
throw new Error("Delta metadata is required")
}
const delta = toImmutableProto(Delta, deltaMsg)
const parentBlock = requireNonNull(metadata.parentBlock)
const parentBlockPath = requireNonNull(parentBlock.path)
const parentBlockContainer = requireNonNull(parentBlock.container)
const topLevelBlock =
parentBlockContainer === BlockPath.Container.MAIN ? "main" : "sidebar"
// The full path to the ReportElement within the element tree
// Used to find and update the element node specified by this Delta
const deltaPath: any[] = [...parentBlockPath, metadata.deltaId]
// e.g. [1, 0, 2] => [1, "element", 0, "element", 2]
.flatMap(index => ["element", index])
.slice(1)
MetricsManager.current.incrementDeltaCounter(topLevelBlock)
dispatchOneOf(delta, "type", {
newElement: (element: SimpleElement) => {
const currentElement: ReportElement = elements[topLevelBlock].getIn(
deltaPath
)
elements[topLevelBlock] = elements[topLevelBlock].setIn(
deltaPath,
handleNewElementMessage(currentElement, element, reportId, metadata)
)
},
addBlock: (deltaBlock: IBlock) => {
elements[topLevelBlock] = elements[topLevelBlock].updateIn(
deltaPath,
reportElement =>
handleAddBlockMessage(reportElement, reportId, metadata, deltaBlock)
)
},
addRows: (namedDataSet: NamedDataSet) => {
elements[topLevelBlock] = elements[topLevelBlock].updateIn(
deltaPath,
reportElement => handleAddRowsMessage(reportElement, namedDataSet)
)
},
})
return elements
}
function handleNewElementMessage(
reportElement: ReportElement,
element: SimpleElement,
reportId: string,
metadata: IForwardMsgMetadata
): ReportElement {
MetricsManager.current.incrementDeltaCounter(element.get("type"))
// Track component instance name.
if (element.get("type") === "componentInstance") {
const componentName = element.getIn(["componentInstance", "componentName"])
MetricsManager.current.incrementCustomComponentCounter(componentName)
}
// Set reportId on elements so we can clear old elements
// when the report script is re-executed.
// Set metadata on elements so that we can use them downstream.
if (reportElement && reportElement.get("element").equals(element)) {
return reportElement.set("reportId", reportId).set("metadata", metadata)
}
return ImmutableMap({
reportId,
element,
metadata,
})
}
function handleAddBlockMessage(
reportElement: ReportElement,
reportId: string,
metadata: IForwardMsgMetadata,
deltaBlock: IBlock
): ReportElement {
MetricsManager.current.incrementDeltaCounter("new block")
const existingEl = reportElement && reportElement.get("element")
return ImmutableMap({
// If there are already children in list, don't overwrite them.
// This prevents existing widgets from getting their values reset.
element: existingEl instanceof List ? existingEl : List(),
reportId,
metadata,
deltaBlock,
})
}
function handleAddRowsMessage(
reportElement: ReportElement,
namedDataSet: NamedDataSet
): ReportElement {
MetricsManager.current.incrementDeltaCounter("add rows")
return reportElement.update("element", element =>
addRows(element, namedDataSet)
)
}
| typescript |
1. 32 Pills: My Sister's Suicide (2017)
She's beautiful, artistic, loved and can't stand to be alive. 32 PILLS traces the fascinating life and mental illness of my sister, New York artist and photographer Ruth Litoff, and my struggle to come to terms with her tragic suicide.
2. ACORN and the Firestorm (2017)
A hidden-camera video involving a fake prostitute threatens to destroy ACORN, America's largest grassroots anti-poverty organization. World Premiere Tribeca Film Festival.
3. Anatomy of a Male Ballet Dancer (2017)
A documentary portrait of Brazilian ballet star Marcelo Gomes.
4. Atomic Homefront (2017)
A terrifying look at the corruption that's destroying our nation and our planet. This should shake every American citizen. Citizens of an American city fight back against corruption and greed and try to save their own lives.
5. Bill Nye: Science Guy (2017)
A famous television personality struggles to restore science to its rightful place in a world hostile to evidence and reason.
6. Brimstone & Glory (2017)
Ecstatic ritual, danger and the absolute beauty of fireworks.
7. Riders of the Well of Death (2016)
8. The Cage Fighter (2017)
A blue-collar family man breaks the promise he'd made to never fight again. Now forty years old, with a wife and four children who need him, Joe Carman risks everything to go back into the fighting cage and come to terms with his past.
The life of pioneering singer Chavela Vargas, from her birth in Costa Rica in 1919 to her death in Mexico in 2012.
Chico has dedicated his whole life to CINE SAO PAULO. The building, inherited from his father, is now badly deteriorated. Refurbish it, in order to make the old movie theater get back to work, becomes his great obsession.
11. City of Ghosts (2017)
An eccentric suburban woman and a Walmart door greeter navigate their evolving relationship in this unconventional love story.
In the 1950's, a working-class wife and mother of eleven children helps to establish a farmer's union, which later develops into a platform for feminism and gender equality.
Manolo and his donkey Gorrión plan a journey to the West.
16. El Mar La Mar (2017)
An immersive experience of the Sonoran Desert on the U.S.-Mexico border.
17. The Farthest (2017)
It is one of humankind's greatest achievements. More than 12 billion miles away a tiny spaceship is leaving our Solar System and entering the void of deep space - the first human-made object ever to do so.
A junior high school student sees her chances of a better future jeopardized after she gets in a fight and is expelled.
THE FORCE goes inside an embattled urban police department struggling to rebuild trust in one of America's most violent yet promising cities.
20. Gentlemen of Vision (2016 TV Movie)
21. Das Mädchen vom Änziloch (2016)
Don't look down Loch Änzi or you might turn into a ghost.
22. A Gray State (2017)
A documentary about the mysterious death of fringe political filmmaker David Crowley, who was found dead alongside members of his family in their suburban Minnesota home in January of 2015.
23. A Greek Winter (2016)
25. I Am Evidence (2017)
An investigation into the way sexual assault cases are handled by police departments across the United States.
When Bryan sets out to uncover the truth about doping in sports, a chance meeting with a Russian scientist transforms his story from a personal experiment into a geopolitical thriller.
27. An Inconvenient Sequel: Truth to Power (2017)
A decade after An Inconvenient Truth (2006) brought climate change to the heart of popular culture, the follow-up shows just how close we are to a real energy revolution.
28. An Insignificant Man (2016)
A non-fiction drama chronicling the most outrageous political debut in the largest democracy in the world, "An Insignificant Man" follows Arvind Kejriwal and his insurgent party as they look to shake up Indian politics while struggling to keep their own idealism alive.
30. Devil's Freedom (2017)
A documentary about the violence in Mexico told from the word of those who have suffered the pain and those who make the pain.
31. Leaning Into The Wind (2017)
Leaning into the Wind follows artist Andy Goldsworthy on his exploration of the world and himself through ephemeral and permanent workings on the landscape, cities and with his own body.
32. Mama Colonel (2017)
33. Mosquito (2017 TV Movie)
How mosquitoes spread deadly diseases worldwide and what is being done to stop them.
34. Muhi: Generally Temporary (2017)
For the past seven years Muhi, a boy from Gaza has been living in an Israeli hospital, unable to return home. He is saved and raised in paradoxical circumstances that transcend identity, religion and the conflict that divides his world.
35. New Chefs on the Block (2017)
Two chefs in DC struggle to open their first restaurants. Against all odds, one becomes the most famous new chef in America. Starring Aaron Silverman (Rose's Luxury) and Frank Linn (Frankly...Pizza!). Feat. Michel Richard & Danny Meyer.
From inception to deadly conclusion, director David Byars immerses audiences in the 2016 Malheur rebellion with exclusive access into the Oregon compound. No Man's Land is a portrait of the fringe and doesn't flinch when the bullets fly.
37. Nobody Speak: Trials of the Free Press (2017)
The courtroom and publicity battles between Hulk Hogan and Gawker Media explode in a sensational trial all about the limits of the First Amendment and the new no holds barred nature of celebrity life in an internet dominated society.
38. Nowhere to Hide (2016)
39. The Opposition (2016)
An indigenous community in Papua New Guinea is forced to fight back before they are cruelly evicted from their land in favor of a five star tourist hotel.
40. The Paris Opera (2017)
A behind-the-scenes look at the Paris Opera, under the direction of Stephane Lissner.
A husband and wife live in an impoverished neighborhood in north Philadelphia while they raise their daughter and run a recording studio in their basement.
42. The Reagan Show (2017)
Made up entirely of archival news and White House footage, this documentary captures the pageantry, absurdity, and mastery of the made-for-TV politics of Ronald Reagan.
43. Recruiting for Jihad (2017 TV Movie)
44. Resurrecting Hassan (2016)
45. Rumble: The Indians Who Rocked The World (2017)
A documentary about the role of Native Americans in popular music history.
46. Saving Brinton (2017)
In rural Iowa, a beloved history teacher uncovers the century-old showreels of one of America's first motion picture impresarios and sets out to premiere the films at the world's oldest continuously operating movie theatre.
Long careers are drawing to a close for John and Amanda, who teach Latin, English, and guitar at a stately home-turned-school, where they are legends with a mantra: "Reading. 'Rithmetic. Rock 'n' roll!" But leaving is the hardest lesson.
STEP documents the senior year of a girls' high-school step dance team against the background of inner-city Baltimore.
50. Still Tomorrow (2016)
It is true that there is still tomorrow, what a pity that there is still tomorrow.
52. Strong Island (2017)
When filmmaker Yance Ford investigates the 1992 murder of a young Black man, it becomes an achingly personal journey since the victim, 24-year-old William Ford Jr., was the filmmaker's brother.
53. A Suitable Girl (2017)
A Suitable Girl follows three young women in India struggling to maintain their identities and follow their dreams amid intense pressure to get married. The film examines the women's complex relationship with marriage, family, and society.
54. Take Every Wave: The Life of Laird Hamilton (2017)
Filmmaker Rory Kennedy examines the career of American Laird Hamilton, a man who has spent his life conquering untameable walls of water and changed the sport of big wave surfing forever.
Ten years before the debut of the Ultimate Fighting Championship, two karate promoters and their fighters, a rough group of barroom brawlers, bikers, teachers and steel workers, pioneered the first mixed-martial arts league in the nation.
This in-depth look into the powerhouse industries of big-game hunting, breeding and wildlife conservation in the U.S. and Africa unravels the complex consequences of treating animals as commodities.
When Harvard Ph.D. student Jennifer Brea is struck down by a fever that leaves her bedridden, she sets out on a virtual journey to document her story as she fights a disease that medicine forgot.
58. Waiting for the Sun (2017)
The story of China's abandoned children longing for their imprisoned parents.
59. What Lies Upstream (2017)
In this scandalous political thriller, an investigation into a chemical spill spirals into an indictment of the entire system meant to protect drinking water, revealing cover-ups at the highest levels of government.
60. Whitney: Can I Be Me (2017)
Tells the story of Whitney Houston's extraordinary life and tragic death.
Set inside a single room in Folsom Prison, three men from the outside participate in a four-day group-therapy retreat with a group of incarcerated men for a real look at the challenges of rehabilitation.
62. Year of the Scab (2017)
During the strike of the 1987 American football season, NFL owners look to fill their rosters with replacements of anyone willing to play, even if it means players risking their reputation by crossing a picket line.
| english |
Business Continuity is an emerging science in the field of Risk Management and is of relevance to all organisations and industries across the globe. Business Continuity Management (BCM) is a process that identifies vulnerabilities that could impact an entity's continued operations and provides a framework for building organisational resilience and the capability for an effective response in times of crisis. It will help teams to be prepared better in crisis situations which unfortunately seems to be the order of the day in today's world.
The session will dive in to the fundamental concepts of threat and risk assessment, business impact and planning. The panel discussion on Evolution and Trends will delve deeper into how business continuity trends, challenges being faced every day and how it is evolving as a must have practice in every organisation. The panel discussion on crisis management capabilities in Hyderabad will go into the requirements, understanding and planning the way forward from a geography perspective with some local practitioners sharing their views and experience.
Taking a lead in this space NASSCOM has collaborated with Business Continuity Institute, UK (www.thebci.org) to bring together a special event to shine a bright light on this burning topic in the quest for Business Excellence.
To hear more on the above and share your insights with the esteemed speakers, we welcome you to the exclusive session on "Business Continuity".
Look forward to your presence.
| english |
Don’t Miss Out on the Latest Updates.
Subscribe to Our Newsletter Today!
New Delhi: The Army on Thursday conducted a flag march in violence-hit areas of Manipur amid tension over a high court order on scheduled tribes status. The Army, in a statement, said efforts are underway to “evacuate maximum people to safer areas and restore law and order” in the areas.
“Responding to the request of Civil Administration in Manipur, Army/Assam Rifles immediately deployed an adequate number of Columns for Area Domination in all affected areas in the evening of 3 May. Actions to evacuate maximum people to safer areas and restore law and order underway,” Indian Army said.
So far, 4,000 people were rescued by the forces from the violence-hit areas, and given shelter, a defence spokesperson said, adding that more people are being shifted to safer places, a defence spokesperson said. The Army and Assam Rifles were requisitioned in the night, and along with the state police, the forces arrested the violence by the morning, the spokesperson said as per news agency PTI. “Flag marches are being conducted to keep the situation under control,” he said.
Manipur Chief Minister N Biren Singh said the violence broke out following “misunderstanding and communication gap” between two communities and appealed people to maintain law and order in the state. “Since 24 hours, some incidents of clashes & vandalism have been reported in some places. These incidents are a result of a prevailing misunderstanding between two sections of our society. The state govt is taking all steps to control the situation,” CM Biren Singh said.
Boxing legend and Rajya Sabha MP Mary Kom said the situation in the state have deteriorated since last night. “I am not feeling good about the situation In Manipur. Since last night the situation has deteriorated. I appeal state and central government to take steps for the situation and maintain peace and security in the state,” Mary Kom said.
“It is unfortunate that some people lost their family members in this violence. This situation must get normal at the earliest,” Mary Kom said.
A violence broke out on Wednesday during ‘Tribal Solidarity March’ called by All Tribal Student Union Manipur (ATSUM) in Torbung area of Churachandpur district. They held the protest to the demand of non-tribal Meiteis for Scheduled Tribe (ST) status. The development have added fire to the old ethnic conflict between the Meitei community, who dominate the Imphal Valley, and the hill tribes.
The ATSUM had called for the march in all the 10 hill districts in the state to oppose moves for inclusion of the majority Meitei community in the ST category. Lawmakers of the Valley have earlier openly endorsed the demand by some Meitei organisation for ST status for the majority community in Manipur, alarming communities who figure in the Scheduled Tribe list.
ATSUM’s decision comes days after an order by a single-Judge bench of the High court of Manipur, comprising of Acting Chief Justice MV Muralidharan, which directed the state government to consider the request of the Meitei community within four weeks.
The Meiteis, who make up 53 per cent of the state’s population, inhabit the Valley, which accounts for about a tenth of the former princely state’s land area. They claim they are facing problems in view of “large scale illegal immigration by Myanmarese and Bangladeshis”.
The hill districts which account for much of the state’s land mass is inhabited mostly by tribals — including the Nagas and Kukis and are protected from encroachment by various laws.
Thousands of agitators took part in the rally, during which clashes between tribals and non-tribals broke out, a senior police officer was quoted as saying by PTI. Police fired several rounds of tear gas shells to control the situation, the officer said. Agitated youths were seen gathering at Canchipur in Imphal West district and Soibam Leikai in Imphal East in the Valley calling for retaliation, the official said.
Situation in #Manipur is terrifying! There is wide spread arson, orders to shut down internet.
In view of the situation, curfew was imposed in non-tribal dominated Imphal West, Kakching, Thoubal, Jiribam and Bishnupur districts and tribal-dominated Churachandpur, Kangpokpi and Tengnoupal districts. Mobile internet services were suspended across the state for five days.
According to the statement, the suspension comes in light of some anti-social elements using social media extensively for the transmission of images, hate speech and hate video messages.
“Some anti-social elements are using social media extensively for the transmission of images, hate speech and hate video messages inciting the passions of the public. Social media has also become a handy tool for rumour mongers arid is being used to incite the general public Wheal might have serious repercussions for the law and order situation in the State of Manipur,” it read.
For breaking news and live news updates, like us on Facebook or follow us on Twitter and Instagram. Read more on Latest EXPLAINERS News on India. com. | english |
Top Malayalam star meets Suriya & Jyothika and calls them "inspiring"!
Versatile star Suriya won the National Award last year for his acting prowess in Soorarai Pottru. He has multiple promising films in his pipeline - Suriya 42 with Siruthai Siva, Vaadivasal with Vetrimaaran and an untitled film with Sudha Kongara.
Suriya and Jyothika have been married for 17 years now. The two are jointly running the production house 2D Entertainment. Now, the latest is that the couple met the Malayalam star Prithviraj Sukumaran and his wife Supriya Menon. Prithviraj took to his social media page to share the picture from their meeting and captioned, "Friends who inspire! â¤ï¸" (sic).
Suriya and Prithviraj are great friends in real life. It is worth mentioning that Prithviraj and Jyothika shared screen space in director Radhamohan's 'Mozhi' earlier. Jo and Prithvi posed together in some photos while Suriya and Prithvi posed together in some. The images are going viral now.
On the other hand, Prithviraj was supposed to play a key role in LCU like Suriya's Rolex but it didn't happen due to the star's busy schedule. On the work front, Prithviraj will be seen in a powerful role opposite Prabhas in director Prashant Neel's 'Salaar', which falls under the KGF universe.
Follow us on Google News and stay updated with the latest! | english |
<reponame>umd-mith/airwaves<filename>static/data/ocr/d577/96.json
{
"id": "d577-96",
"text": "MISCELLANEOUS MATERIAL\n1\nPub!.\nNo.\nQ-S The NAEB Radio-Television Bibliography - <NAME>\nA listing of books and articles on all the nontechnical aspects\nof broadcasting covering the period January 1, 1949 to June 30,\n1952, 129 pp. Paper. $2.00\nD-5. NAEB Directory of Members\nThe location, call letters, power and frequency, names and\ntelephone numbers of all NAEB members. February 1, 1959*\nPaper. $2.00\nQ-4 Clearance Rights and Legal Problems of Educational Radio and Television\nStations - <NAME>\nA brief summary covering such points as \"Common-Law Protection,\"\n\"Copyright Protections\"Use of Copyrighted Literary Materials,\"\n\"Recording Rights,\" \"Unfair Competition,\" \"Privacy,\" and \"Con¬\ntractual Obligations.\" February, 1955. 6 pp. Paper. 500\nD-7 Technical Direct cry - <NAME>, Editor\nListing of technical personnel at educational radio and television\nstations, and production stations. February, 1957. 26 pp.\nPaper. 500\nP-5 NAEB Newsletter\nThe official monthly periodical of the National Association of\nEducational Broadcasters. Approximately 10 pp. Paper. $5.00\nper year. (Back issues 500 when available.)\nP-7 NAEB Journal\nA professional journal devoted to articles prepared by leaders\nin the field of education and concerned with the utilization of\nradio and television for education, as well as the specific field\nof educational broadcasting. (Beginning with January, 1958, issue\nincludes NAEB ETV Fact Sheets formerly sold separately. These Fact\nSheets are an effort to digest and centralize available research,\nprincipally on the effectiveness of radio and television as directly\ninstructional tools. Includes research into techniques of presen¬\ntation, production principles, and content and audience research.)\nPublished eight time a year (monthly except June, July, August and\nSeptember). Approximately 50 pp. Paper. $4.00 per year. (Back\nissues 500 when available.)"
} | json |
Electricity generated from renewable energy sources surpassed electricity created by coal for the first time ever in the U.S. in 2022, the U.S. Energy Information Administration (EIA) announced yesterday.
Coal-fired electricity generation dropped from 23% of total generation in 2021 to 20% in 2022. Meanwhile, the increase in renewable electricity generation was led by wind and solar. Combined, generation from these two energy sources increased from 12% in 2021 to 14% in 2022. The share of electricity from other renewable sources—hydropower, biomass, and geothermal—did not change between 2021 and 2022.
Though less coal is great news for decreasing pollution and emissions, that doesn’t mean that all forms of fossil fuel-based energy saw a decline. Natural gas remained the largest source of electricity generation in the country, according to the EIA report. Energy production from natural gas also increased from a 37% share of U.S. electricity generation in 2021 to 39% last year.
Texas, a state notorious for loving fossil fuels (and suppressing climate science education) actually led in wind energy production last year. The state’s production in part boosted the renewable energy increase from 2021 to 2022. Texas and several other red states accounted for a large share of the country’s wind generation last year: Texas accounted for 25% of generation, Iowa 10%, and Oklahoma 9%.
California led in solar energy production, producing 26% of the country’s utility-scale solar electricity. Texas came in second, generating 16% of solar electricity. Texas also led in natural gas- and coal-generated electricity, according to the analysis.
“Over the past decade, the levelized cost of wind energy declined by 70 percent, while the levelized cost of solar power has declined by an even more impressive 90 percent,” he said.
| english |
Keerthy Suresh recovers from Covid 19 - tests negative for the virus | Here is what she has to say!
Keerthy Suresh who had tested positive for Covid 19 virus has now recovered from the infection and she took to her official social media pages to share the good news with her fans and followers. On January 11, Keerthy Suresh informed one and all that she has tested positive for Covid 19 and added that she has self-isolated at home under the guidance of the Doctors. Following a week of medication and rest, Keerthy Suresh has now tested negative for the virus and thanked everyone for their heartfelt prayers. Sharing a few selfies, Keerthy Suresh tweeted, "'Negative' can mean a positive thing these days. Grateful for all your love and prayers, hope you had a lovely Pongal and Sankaranthi! 🤗 ❤️". It is good to know that Keerthy Suresh has recovered from Covid 19 and this development has come as a sigh of relief for the fans.
On the acting front, Keerthy Suresh was last seen in Superstar Rajinikanth's Annaatthe in which she played the role of his younger sister. Keerthy Suresh's next release in Tamil cinema will be Saani Kaayidham which is directed by Arun Matheswaran of Rocky fame. Co-starring Selvaraghavan, Saani Kaayidham is expected to directly premiere on the Amazon Prime Video platform. Saani Kaayidham is expected to be an intriguing action thriller that will showcase Keerthy Suresh in a completely different dimension. The film is produced by Screen Scene Media.
Keerthy's next release in Telugu will be the Mahesh Babu starrer Sarkaru Vaari Paata which is set to hit the screens on April 1. Sarkaru Vaari Paata is directed by Parasuram Petla of Geetha Govindam fame and has music composed by Thaman S. Megastar Chiranjeevi's Bholaa Shankar (Telugu), Nani's Dasara (Telugu), and Vaashi (Malayalam) are Keerthy's other films in the pipeline. For now, check out Keerthy Suresh's latest social media post announcing her recovery from Covid 19 here: | english |
The untimely death of veteran comedy actor and social activist Vivek has had a devastating effect on his industry colleagues as well as fans. The 59-year-old who suffered a massive heart attack on April 16th was under intensive treatment but succumbed to the ailment early this morning at 4. 35 am.
The Tamil Nadu government has passed orders that the mortal remains of actor Vivek will be laid to rest with full police honors respecting his immense contributions to the arts and bringing fame through his social services.
The last rites of Vivek is expected to be held later this evening and the TN government's decision to honor Vivek has been appreciated by all sections of the people on social media.
Follow us on Google News and stay updated with the latest! | english |
package main
import(
"fmt"
"os"
"path/filepath"
"strings"
"io/ioutil"
)
func main(){
var files []string
root := "/home/runner/work/vagrants/vagrants"
err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
files = append(files, path)
return nil
})
if err != nil {
panic(err)
}
for _, file := range files {
fmt.Println(file)
var res = strings.Contains(file, "kubearmor_policies_default_explorer_mysql")
if res == true {
fmt.Println("Found explorer mysql")
data, err1 := ioutil.ReadFile(file)
if err1 != nil {
fmt.Println("File reading error", err1)
return
}
fmt.Println("Contents of file:")
fmt.Println(string(data))
}
}
}
| go |
#main {
background-color: whitesmoke;
color: black;
font-family: 'Open Sans', sans-serif;
font-size: 16px;
}
body {
margin-top: 60px;
}
.jumbotron{
text-align: center;
font-family: 'Open Sans', sans-serif;
font-size: 16px;
}
#tribute-info{
text-align: center justify;
margin-left: 25%;
line-height: 5em;
}
img {
width: 100%;
height: auto;
align-items: center;
}
| css |
Appropriation (No. 3)
12 DECEMBER 1952 Appropriation (No. 3) 2208 Bill
be made in regard to the Appropriation Bill, e. when both the motions for introduction and consideration are made on one and the same day, care I will have to be taken to see that copies of the Bill are given in advance of introduction to the hon. Members.
Mr. Deputy-Speaker: Yes.
Dr. Lanka Sundaram: I have already made a reference to Demands Nos. 49 and 118 involving a total expenditure of Rs. 5 crores and 92 lakhs. I am not satisfied with the foot notes which have been supplied. I do expect the concerned Ministers to enlighten us as to the need for these additional Rs. 6 crores approximately inside of six months and the justification therefor. I believe you would give some guidance to this House as to whether, when such vast amounts of additional money are demanded from this House, the Ministers concerned should not enlighten this House as to the manner in which that money is to be spent. As I said, the foot notes are there, but they are of very limited enlightenment value. That is the reason why I raised this discussion on the Appropriation Bill. I find that the concerned Ministers are not here in this House to answer this point.
Shri Tyagi: After the House has justified the amounts by its vote, I do not see how the question can arise now. At this stage the only advice that I was expecting from the other side was just in regard to the manner in which I could effect further economies or bring about savings. These demands I have been voted and I expected that the other side might suggest how I might effectively use them. If there were some constructive suggestions, I I could see that there would be some use in having a discussion now. To criticise the grants which have already been voted by the House, I think, would not be quite fair.
Mr. Deputy-Speaker: In this matter, the Appropriation Bill with certain limitations, can be discussed. Though it is an Appropriation Bill relating to supplementary demands, to the extent that certain things arise and they may be of public importance, the House must have an opportunity to discuss it, according to the ruling of the Speaker which has been read out. Therefore, for future guidance I would suggest that whenever this motion is sought to
Shri Tyagi: I bow to your ruling, but it would be very difficult for me to do so, because......
Mr. Deputy-Speaker: He need not worry himself. It is for the office.
Shri Tyagi: No, Sir. I am putting the difficulty before you. I cannot know the mind of the House in advance. If the House chooses to amend some of the supplementary or Budget demands, it will not be possible for me to know the mind of the House in advance. I can only move this Bill when the demands have been accepted by the House, because I can only demand that much amount which has been accepted by the House. I cannot in advance give any Bill.
Mr. Deputy-Speaker: The question is:
"That the Bill to authorise payment and appropriations of certain further sums from and out of the Consolidated Fund of India for the service of the financial vear 195253, be taken into consideration."
The motion was adopted. Clauses 1 to 3 were added to the Bill.
The Schedule was added to the Bill
The Title and the Enacting Formula were added to the Bill.
Shri Tyagi: I beg to move:
"That the Bill be passed."
Mr. Deputy-Speaker: The question is: "That the Bill be passed."
The motion was adopted. The House then adjourned till a Quarter to Eleven of the Clock Saturday the 13th December 1952.
| english |
<filename>fwmf-module-order/fwmf-module-order-service/src/main/java/cn/faury/fwmf/module/service/order/generate/mapper/OrderRGoodsGenerateMapper.java
/**
* This file was generator by Fwmf Generated
* !!!Do not modify this file!!
*
* @fwmf.generated 2018-12-08 15:12:42
*/
package cn.faury.fwmf.module.service.order.generate.mapper;
import cn.faury.fwmf.module.api.order.bean.OrderRGoodsBean;
import cn.faury.fwmf.module.api.order.generate.bean.OrderRGoodsGenerateBean;
import cn.faury.fwmf.module.service.order.generate.sqlProvider.OrderRGoodsGenerateSqlProvider;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.type.JdbcType;
public interface OrderRGoodsGenerateMapper {
/**
* This method was generated by Fwmf Generated.
* This method corresponds to the database table order_t_order_r_goods
*
* @fwmf.generated 2018-12-08 15:12:42
*/
@Delete({
"delete from order_t_order_r_goods",
"where ORDER_R_GOODS_ID = #{orderRGoodsId,jdbcType=BIGINT}"
})
int deleteByPrimaryKey(Long orderRGoodsId);
/**
* This method was generated by Fwmf Generated.
* This method corresponds to the database table order_t_order_r_goods
*
* @fwmf.generated 2018-12-08 15:12:42
*/
@Insert({
"insert into order_t_order_r_goods (ORDER_R_GOODS_ID, ORDER_ID, ",
"SHOP_ID, STORE_ID, GOODS_ID, ",
"TDC_CODE_ID, TDC_CODE_PIC_URL, ",
"TITLE_IMG, GOODS_NAME, ",
"GOODS_TYPE, GOODS_PRICE, ",
"BUY_PRICE, GOODS_STOCK, ",
"GOODS_COUNT, BUY_SUBTOTAL, ",
"PROMOTION_PRICE_ID, PROMOTION_PRICE_NAME, ",
"PROMOTION_PRICE_AMOUNT, GOODS_PAY_PRICE, ",
"POSTAGE_ID, POST_PRICE, ",
"PROMOTION_POST_ID, PROMOTION_POST_NAME, ",
"IS_RECEIVE, IS_REVIEWS)",
"values (#{orderRGoodsId,jdbcType=BIGINT}, #{orderId,jdbcType=BIGINT}, ",
"#{shopId,jdbcType=BIGINT}, #{storeId,jdbcType=BIGINT}, #{goodsId,jdbcType=BIGINT}, ",
"#{tdcCodeId,jdbcType=VARCHAR}, #{tdcCodePicUrl,jdbcType=VARCHAR}, ",
"#{titleImg,jdbcType=VARCHAR}, #{goodsName,jdbcType=VARCHAR}, ",
"#{goodsType,jdbcType=VARCHAR}, #{goodsPrice,jdbcType=DECIMAL}, ",
"#{buyPrice,jdbcType=DECIMAL}, #{goodsStock,jdbcType=INTEGER}, ",
"#{goodsCount,jdbcType=INTEGER}, #{buySubtotal,jdbcType=DECIMAL}, ",
"#{promotionPriceId,jdbcType=BIGINT}, #{promotionPriceName,jdbcType=VARCHAR}, ",
"#{promotionPriceAmount,jdbcType=DECIMAL}, #{goodsPayPrice,jdbcType=DECIMAL}, ",
"#{postageId,jdbcType=BIGINT}, #{postPrice,jdbcType=DECIMAL}, ",
"#{promotionPostId,jdbcType=BIGINT}, #{promotionPostName,jdbcType=VARCHAR}, ",
"#{isReceive,jdbcType=VARCHAR}, #{isReviews,jdbcType=CHAR})"
})
@Options(useGeneratedKeys=true,keyProperty="orderRGoodsId")
int insert(OrderRGoodsGenerateBean record);
/**
* This method was generated by Fwmf Generated.
* This method corresponds to the database table order_t_order_r_goods
*
* @fwmf.generated 2018-12-08 15:12:42
*/
@InsertProvider(type=OrderRGoodsGenerateSqlProvider.class, method="insertSelective")
@Options(useGeneratedKeys=true,keyProperty="orderRGoodsId")
int insertSelective(OrderRGoodsGenerateBean record);
/**
* This method was generated by Fwmf Generated.
* This method corresponds to the database table order_t_order_r_goods
*
* @fwmf.generated 2018-12-08 15:12:42
*/
@SelectProvider(type=OrderRGoodsGenerateSqlProvider.class, method="search")
@ResultType(OrderRGoodsBean.class)
List<OrderRGoodsBean> search(Map<String, Object> params);
/**
* This method was generated by Fwmf Generated.
* This method corresponds to the database table order_t_order_r_goods
*
* @fwmf.generated 2018-12-08 15:12:42
*/
@Select({
"select",
"ORDER_R_GOODS_ID, ORDER_ID, SHOP_ID, STORE_ID, GOODS_ID, TDC_CODE_ID, TDC_CODE_PIC_URL, ",
"TITLE_IMG, GOODS_NAME, GOODS_TYPE, GOODS_PRICE, BUY_PRICE, GOODS_STOCK, GOODS_COUNT, ",
"BUY_SUBTOTAL, PROMOTION_PRICE_ID, PROMOTION_PRICE_NAME, PROMOTION_PRICE_AMOUNT, ",
"GOODS_PAY_PRICE, POSTAGE_ID, POST_PRICE, PROMOTION_POST_ID, PROMOTION_POST_NAME, ",
"IS_RECEIVE, IS_REVIEWS",
"from order_t_order_r_goods",
"where ORDER_R_GOODS_ID = #{orderRGoodsId,jdbcType=BIGINT}"
})
@Results({
@Result(column="ORDER_R_GOODS_ID", property="orderRGoodsId", jdbcType=JdbcType.BIGINT, id=true),
@Result(column="ORDER_ID", property="orderId", jdbcType=JdbcType.BIGINT),
@Result(column="SHOP_ID", property="shopId", jdbcType=JdbcType.BIGINT),
@Result(column="STORE_ID", property="storeId", jdbcType=JdbcType.BIGINT),
@Result(column="GOODS_ID", property="goodsId", jdbcType=JdbcType.BIGINT),
@Result(column="TDC_CODE_ID", property="tdcCodeId", jdbcType=JdbcType.VARCHAR),
@Result(column="TDC_CODE_PIC_URL", property="tdcCodePicUrl", jdbcType=JdbcType.VARCHAR),
@Result(column="TITLE_IMG", property="titleImg", jdbcType=JdbcType.VARCHAR),
@Result(column="GOODS_NAME", property="goodsName", jdbcType=JdbcType.VARCHAR),
@Result(column="GOODS_TYPE", property="goodsType", jdbcType=JdbcType.VARCHAR),
@Result(column="GOODS_PRICE", property="goodsPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="BUY_PRICE", property="buyPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="GOODS_STOCK", property="goodsStock", jdbcType=JdbcType.INTEGER),
@Result(column="GOODS_COUNT", property="goodsCount", jdbcType=JdbcType.INTEGER),
@Result(column="BUY_SUBTOTAL", property="buySubtotal", jdbcType=JdbcType.DECIMAL),
@Result(column="PROMOTION_PRICE_ID", property="promotionPriceId", jdbcType=JdbcType.BIGINT),
@Result(column="PROMOTION_PRICE_NAME", property="promotionPriceName", jdbcType=JdbcType.VARCHAR),
@Result(column="PROMOTION_PRICE_AMOUNT", property="promotionPriceAmount", jdbcType=JdbcType.DECIMAL),
@Result(column="GOODS_PAY_PRICE", property="goodsPayPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="POSTAGE_ID", property="postageId", jdbcType=JdbcType.BIGINT),
@Result(column="POST_PRICE", property="postPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="PROMOTION_POST_ID", property="promotionPostId", jdbcType=JdbcType.BIGINT),
@Result(column="PROMOTION_POST_NAME", property="promotionPostName", jdbcType=JdbcType.VARCHAR),
@Result(column="IS_RECEIVE", property="isReceive", jdbcType=JdbcType.VARCHAR),
@Result(column="IS_REVIEWS", property="isReviews", jdbcType=JdbcType.CHAR)
})
OrderRGoodsBean selectByPrimaryKey(Long orderRGoodsId);
/**
* This method was generated by Fwmf Generated.
* This method corresponds to the database table order_t_order_r_goods
*
* @fwmf.generated 2018-12-08 15:12:42
*/
@UpdateProvider(type=OrderRGoodsGenerateSqlProvider.class, method="updateByPrimaryKeySelective")
int updateByPrimaryKeySelective(OrderRGoodsGenerateBean record);
/**
* This method was generated by Fwmf Generated.
* This method corresponds to the database table order_t_order_r_goods
*
* @fwmf.generated 2018-12-08 15:12:42
*/
@Update({
"update order_t_order_r_goods",
"set ORDER_ID = #{orderId,jdbcType=BIGINT},",
"SHOP_ID = #{shopId,jdbcType=BIGINT},",
"STORE_ID = #{storeId,jdbcType=BIGINT},",
"GOODS_ID = #{goodsId,jdbcType=BIGINT},",
"TDC_CODE_ID = #{tdcCodeId,jdbcType=VARCHAR},",
"TDC_CODE_PIC_URL = #{tdcCodePicUrl,jdbcType=VARCHAR},",
"TITLE_IMG = #{titleImg,jdbcType=VARCHAR},",
"GOODS_NAME = #{goodsName,jdbcType=VARCHAR},",
"GOODS_TYPE = #{goodsType,jdbcType=VARCHAR},",
"GOODS_PRICE = #{goodsPrice,jdbcType=DECIMAL},",
"BUY_PRICE = #{buyPrice,jdbcType=DECIMAL},",
"GOODS_STOCK = #{goodsStock,jdbcType=INTEGER},",
"GOODS_COUNT = #{goodsCount,jdbcType=INTEGER},",
"BUY_SUBTOTAL = #{buySubtotal,jdbcType=DECIMAL},",
"PROMOTION_PRICE_ID = #{promotionPriceId,jdbcType=BIGINT},",
"PROMOTION_PRICE_NAME = #{promotionPriceName,jdbcType=VARCHAR},",
"PROMOTION_PRICE_AMOUNT = #{promotionPriceAmount,jdbcType=DECIMAL},",
"GOODS_PAY_PRICE = #{goodsPayPrice,jdbcType=DECIMAL},",
"POSTAGE_ID = #{postageId,jdbcType=BIGINT},",
"POST_PRICE = #{postPrice,jdbcType=DECIMAL},",
"PROMOTION_POST_ID = #{promotionPostId,jdbcType=BIGINT},",
"PROMOTION_POST_NAME = #{promotionPostName,jdbcType=VARCHAR},",
"IS_RECEIVE = #{isReceive,jdbcType=VARCHAR},",
"IS_REVIEWS = #{isReviews,jdbcType=CHAR}",
"where ORDER_R_GOODS_ID = #{orderRGoodsId,jdbcType=BIGINT}"
})
int updateByPrimaryKey(OrderRGoodsGenerateBean record);
} | java |
{"derivation": "from G4862 (\u03c3\u03c5\u03b3\u03ba\u03b5\u03c1\u03ac\u03bd\u03bd\u03c5\u03bc\u03b9) and G2767 (\u03c3\u03c5\u03b3\u03ba\u03b5\u03c1\u03ac\u03bd\u03bd\u03c5\u03bc\u03b9);", "kjv_def": "mix with, temper together", "lemma": "\u03c3\u03c5\u03b3\u03ba\u03b5\u03c1\u03ac\u03bd\u03bd\u03c5\u03bc\u03b9", "frequency": 3, "strongs_def": " to commingle, i.e. (figuratively) to combine or assimilate", "outline": "<ol><li> to mix together, commingle</li><li> to unite<ol><li> caused the several parts to combine into an organic structure, which is the body</li><li> to unite one thing to another</li></ol></li></ol>"} | json |
Manchester United Transfer News: Pogba Told Teammates He Wants To Leave Manchester United!
Man Utd vs West Ham Fan Reaction | *Rant* - We Need To Take Chances! ! ! !
Manchester United transfer news | De Gea & Pogba to leave Man Utd?
R U Next?
🏃🏻♀️ Sports (30+)
Edition: | english |
Electrolytes play a vital role in maintaining homeostasis within the body. They help to regulate myocardial and neurological function, fluid balance, oxygen delivery, acid-base balance and much more. Electrolyte imbalances can develop by the following mechanisms: excessive ingestion; diminished elimination of an electrolyte; diminished ingestion or excessive elimination of an electrolyte. The most common cause of electrolyte disturbances is renal failure.
The most serious electrolyte disturbances involve abnormalities in the levels of sodium, potassium, and/or calcium. Other electrolyte imbalances are less common, and often occur in conjunction with major electrolyte changes. Chronic laxative abuse or severe diarrhoea or vomiting (Gastroenteritis) can lead to electrolyte disturbances along with dehydration. People suffering from bulimia or anorexia nervosa are at especially high risk for an electrolyte imbalance.
Electrolytes are important because they are what cells (especially nerve, heart, muscle) use to maintain voltages across their cell membranes and to carry electrical impulses (nerve impulses, muscle contractions) across themselves and to other cells. Kidneys work to keep the electrolyte concentrations in blood constant despite changes in your body. For example, during heavy exercise, electrolytes are lost in sweat, particularly sodium and potassium. These electrolytes must be replaced to keep the electrolyte concentrations of the body fluids constant.
Acidosis is an increased acidity in the blood and other body tissue (i.e. an increased hydrogen ion concentration). If not further qualified, it usually refers to acidity of the blood plasma.
Acidosis is said to occur when arterial pH falls below 7.35 (except in the fetus - see below), while its counterpart (alkalosis) occurs at a pH over 7.45. Arterial blood gas analysis and other tests are required to separate the main causes.
The term acidemia describes the state of low blood pH, while acidosis is used to describe the processes leading to these states. Nevertheless, the terms are sometimes used interchangeably. The distinction may be relevant where a patient has factors causing both acidosis and alkalosis, wherein the relative severity of both determines whether the result is a high or a low pH.
The rate of cellular metabolic activity affects and, at the same time, is affected by the pH of the body fluids. In mammals, the normal pH of arterial blood lies between 7.35 and 7.50 depending on the species (e.g. healthy human-arterial blood pH varies between 7.35 and 7.45). Blood pH values compatible with life in mammals are limited to a pH range between 6.8 and 7.8. Changes in the pH of arterial blood (and therefore the extracellular fluid) outside this range result in irreversible cell damage.
Alkalosis refers to a condition reducing hydrogen ion concentration of arterial blood plasma (alkalemia). Generally, alkalosis is said to occur when pH of the blood exceeds 7.45. The opposite condition is acidosis (when pH falls below 7.35).
The main cause of respiratory alkalosis is hyperventilation, resulting in a loss of carbon dioxide. Compensatory mechanisms for this would include increased dissociation of the carbonic acid buffering intermediate into hydrogen ions, and the related excretion of bicarbonate, both of which lower blood pH.
Metabolic alkalosis can be caused by prolonged vomiting, resulting in a loss of hydrochloric acid with the stomach content. Severe dehydration, and the consumption of alkali are other causes. It can also be caused by administration of diuretics and endocrine disorders such as Cushing's syndrome. Compensatory mechanism for metabolic alkalosis involve slowed breathing by the lungs to increase serum carbon dioxide, a condition leaning toward respiratory acidosis. As respiratory acidosis often accompanies the compensation for metabolic alkalosis, and viceversa, a delicate balance is created between these two conditions.
Alkalosis can refer to:
Metabolic alkalosis is usually accompanied with hypokalemia, causing, e.g., muscular weakness, myalgia, and muscle cramps (from disturbed function of the skeletal muscles), and muscle spasms (from disturbed function of smooth muscles).
It may also cause hypocalcemia. As the pH of blood increases, blood transport proteins, such as albumin, become more ionised into anions. This causes the free calcium present in blood to bind more strongly with albumin. If severe, it may cause tetany (alkalotic tetany).
Dehydration is the excessive loss of body water, with an accompanying disruption of metabolic processes. It is literally the removal of water (Ancient Greek: ὕδωρ hýdōr) from an object; however, in physiological terms, it entails a deficiency of fluid within an organism. Dehydration of skin and mucous membranes can be called medical dryness.
Some authors have reported three types of dehydration based on serum sodium levels: hypotonic or hyponatremic (referring to this as primarily a loss of electrolytes, sodium in particular), hypertonic or hypernatremic (referring to this as primarily a loss of water), and isotonic or isonatremic (referring to this as equal loss of water and electrolytes). In reality however, it emerges that by "hyponatremic" and "eunatremic" dehydration these authors are actually referring to "hypovolemia" (see definition below). In humans, it is thought that the most commonly seen type of dehydration by far is isotonic (isonatraemic) dehydration, but this effectively refers to hypovolemia. "Dehydration", is thus a term that has loosely been used to mean loss of water, regardless of whether it is as water and solutes (mainly sodium) or free water. Those who refer to hypotonic dehydration therefore refer to solute loss and thus loss of intravascular volume but in the presence of exaggerated intravascular volume depletion for a given amount of total body water gain. It is true that neurological complications can occur in hypotonic and hypertonic states. The former can lead to seizures, while the latter can lead to osmotic cerebral edema upon rapid rehydration. It is thus important to distinguish "dehydration" from "hypovolemia" and maybe limit the term "dehydration" to states of "hypernatremia" and call all other usage "hypovolemia" as that would greatly facilitate management.
Malnutrition is the condition that results from eating a diet in which certain nutrients are lacking, in excess (too high in intake), or in the wrong proportions. The verb form is "malnourish"; "malnourishment" is sometimes used instead of "malnutrition". A number of different nutrition disorders may arise, depending on which nutrients are under- or over-abundant in the diet. In most of the world, malnutrition is present in the form of under-nutrition, which is caused by a diet lacking adequate calories and protein—not enough food, and of poor quality. Extreme undernourishment is starvation, and its symptoms and effects are inanition. While malnutrition is more common in less-developed countries, it is also present in industrialized countries. In wealthier nations it is more likely to be caused by unhealthy diets with excess energy, fats, and refined carbohydrates. A growing trend of obesity is now a major public health concern in lower socio-economic levels and in developing countries as well.
The World Health Organization have reported hunger and related malnutrition as the greatest single threat to the world's public health. Improving nutrition is widely regarded as the most effective form of aid. Nutrition-specific interventions, which address the immediate causes of undernutrition, have been proven to deliver among the best value for money of all development interventions. Emergency measures include providing deficient micronutrients through fortified sachet powders or directly through supplements.WHO, UNICEF, and the UN World Food Programme recommend community management of severe acute malnutrition with ready-to-use therapeutic foods, which have been shown to cause weight gain in emergency settings. The famine relief model increasingly used by aid groups calls for giving cash or cash vouchers to the hungry to pay local farmers instead of buying food from donor countries, often required by law, to prevent dumping from hurting local farmers.
Long term measures include fostering nutritionally dense agriculture by increasing yields, while making sure negative consequences affecting yields in the future are minimized. Recent efforts include aid to farmers. However, World Bank strictures restrict government subsidies for farmers, while the spread of fertilizer use may adversely affect ecosystems and human health and is hampered by various civil society groups.
Malnutrition has shown to be an important concern in women, children, and the elderly. Because of pregnancies and breastfeeding, women have additional nutrient requirements. Children can be at risk for malnutrition even before birth, as their nutrition levels are directly tied to the nutrition of their mothers. Breastfeeding can reduce rates of malnutrition and mortality in children, and educational programs for mothers could have a large impact on these rates. The elderly have a large risk of malnutrition because of unique complications such as changes in appetite and energy level, and chewing and swallowing problems. Adequate elderly care is essential for preventing malnutrition, especially when the elderly cannot care for themselves.
Starvation is a severe deficiency in caloric energy, nutrient, and vitamin intake. It is the most extreme form of malnutrition. In humans, prolonged starvation can cause permanent organ damage and eventually, death. The term inanition refers to the symptoms and effects of starvation.
According to the World Health Organization, hunger is the single gravest threat to the world's public health. The WHO also states that malnutrition is by far the biggest contributor to child mortality, present in half of all cases. Undernutrition is a contributory factor in the death of 3.1 million children under five every year. Figures on actual starvation are difficult to come by, but according to the Food and Agriculture Organization, the less severe condition of undernourishment currently affects about 842 million people, or about one in eight (12.5%) people in the world population.
The bloated stomach, as seen in the picture to the right, represents a form of malnutrition called kwashiorkor which is caused by insufficient protein despite a sufficient caloric intake. Children are more vulnerable to kwashiorkor whose advanced symptoms include weight loss and muscle wasting.
Why is Fluid and Electrolyte Balance so Important?
Electrolytes are minerals in your body that have an electric charge. They are in your blood, urine and body fluids. Maintaining the right balance of electrolytes helps your body's blood chemistry, muscle action and other processes. Sodium, calcium, potassium, chlorine, phosphate and magnesium are all electrolytes. You get them from the foods you eat and the fluids you drink.
Levels of electrolytes in your body can become too low or too high. That can happen when the amount of water in your body changes, causing dehydration or overhydration. Causes include some medicines, vomiting, diarrhea, sweating or kidney problems. Problems most often occur with levels of sodium, potassium or calcium.
How we can maintain Fluid and Electrolyte Balance in our body?
We should make initiatives to do so.
| english |
GUWAHATI, Aug 25: The Intertiol Conference on Advances in notechnology (iCAN) 2017 is planned jointly by Assam Don Bosco University (ADBU), Guwahati and Sustaible notechnology Organization (SNO), USA. It will be the first Intertiol level conference in notechnology to be organized by Assam Don Bosco University as a continuation of its efforts to promote an environment of research and development in notechnology in the North Eastern region of India. The Department of Electronics & Communication Engineering, School of Technology, Assam Don Bosco University has already successfully conducted two tiol Workshops in notechnology, Imagineno2014 in December 2014 and Amazingno2016 in February 2016 and received good feedback from the participants. Since its inception, SNO has conducted 5 workshops on various aspects of notechnology with emphasis on Sustaible notechnology. It has successfully conducted 4 Intertiol conferences and the fifth one is scheduled for November 10th – 12th, 2016 in Orlando, Florida. iCAN2017 will be the 6th Intertiol conference to be conducted by SNO and the 1st in India. iCAN2017 also includes a workshop by SNO on Sustaible notechnology. The convener, Sundan Baruah has informed that iCAN2017, scheduled to be held from 9th till 13th of January 2017 at the Azara campus of Assam Don Bosco University, aims to bring together researchers from across the globe working in diverse areas of noscience and notechnology to interact and exchange new ideas and also to explore possible collaborations. Reputed scientists from Stanford University, State University of New York, tiol Science Foundation, USA, KTH Sweden, Uppsala University, Sweden, North Dakota State University, Arizo State University, tiol Science & Technology Development Agency, Thailand, Asian Institute of Technology, IITs and NITs will be present as invited speakers. Last date for submission of abstracts is 15th September. Good quality papers will be published in Environmental Science: no from RSC and ADBU Jourl of Engineering Technology. | english |
{
"name": "loopback-sdk-xm",
"version": "1.0.0",
"description": "Tool to create a C# SDK for a Loopback server",
"scripts": {
"preinstall": "node macsetup.js"
},
"bin": {
"lb-xm": "bin/lb-xm"
},
"engines": {
"node": ">= 0.8.0"
},
"dependencies": {
"node-gyp": "^1.0.3",
"edge": "^0.10.1",
"ejs": "^1.0.0",
"express": "3.x",
"optimist": "^0.6.1",
"semver": "^2.2.1"
},
"main": "index.js",
"repository": {
"type": "git",
"url": "https://github.com/strongloop/loopback-sdk-xamarin.git"
},
"author": "StrongLoop <<EMAIL>>",
"license": "MIT",
"bugs": {
"url": "https://github.com/strongloop/loopback-sdk-xamarin/issues"
},
"homepage": "https://github.com/strongloop/loopback-sdk-xamarin"
}
| json |
<filename>Positivo, Negativo ou Nulo.cpp
#include <iostream>
using namespace std;
int main(){
int x;
cin >> x;
if (x > 0){
cout << "positivo\n";
}
else if (x < 0){
cout << "negativo\n";
}
else{
cout << "nulo\n";
}
}
| cpp |
<gh_stars>1-10
import logging
from functools import partial
from arachnado.storages.mongotail import MongoTailStorage
class Sites(object):
""" 'Known sites' object exposed via JSON-RPC """
logger = logging.getLogger(__name__)
def __init__(self, handler, site_storage, **kwargs):
self.handler = handler
self.storage = site_storage # type: MongoTailStorage
def list(self):
return self.storage.fetch()
def post(self, site):
self.storage.create(site)
def patch(self, site):
self.storage.update(site)
def delete(self, site):
self.storage.delete(site)
def subscribe(self):
for event_name in self.storage.available_events:
self.storage.subscribe(
event_name,
partial(self._publish, event=event_name)
)
def _on_close(self):
self.storage.unsubscribe(self.storage.available_events)
def _publish(self, event, data):
self.handler.write_event('sites.{}'.format(event), data)
| python |
import type { Args, Result } from '@sapphire/framework';
import type { Payloads } from '#lava/util';
import { ok, err, UserError, isErr } from '@sapphire/framework';
/**
* Most major and common utilities dedicated to sapphire.
* @since 4.2.5
*/
export class Sapphire extends null {
/**
* Resolves a gambling bet argument.
* @param args A pre-made instance of a sapphire argument.
* @since 4.2.5
*/
public static async resolveGambleArgs(
args: Args,
): Promise<Result<Payloads.Bet, UserError>> {
const bet = args.finished ? null : await args.pickResult('bet');
if (!bet)
return err(
new UserError({
identifier: 'BetError',
message: 'You need to bet something!',
}),
);
return isErr(bet) ? err(bet.error) : ok(bet.value);
}
}
| typescript |
# 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.
"""Ensure the correct behaviour of RelationshipView."""
from structurizr.view.relationship_view import RelationshipView, RelationshipViewIO
def test_dynamic_view_specifics_serialise():
"""Ensure that the fields used by DynamicView get (de)serialised OK."""
view = RelationshipView(id="id1", order="5", response=True)
io = RelationshipViewIO.from_orm(view)
json = io.json()
assert '"order": "5"' in json
assert '"response": true' in json
view2 = RelationshipView.hydrate(io)
assert view2.order == "5"
assert view2.response
# Check response is suppressed in json when False
view.response = False
io = RelationshipViewIO.from_orm(view)
json = io.json()
assert "response" not in json
view2 = RelationshipView.hydrate(io)
assert not view2.response
| python |
import { memo, VFC } from "react";
import { useForm, SubmitHandler } from "react-hook-form";
import styled from "styled-components";
import { yupResolver } from '@hookform/resolvers/yup';
import * as yup from "yup";
import { UpdateButton } from "components/atoms/button/UpdateButton";
import { BaseInput } from "components/atoms/input/BaseInput";
import { Validation } from "components/atoms/message/Validation";
import { UpdatePasswordProps } from "types/updatePasswordProps";
import { AuthTokenHeaderProps } from "types/authTokenHeaderProps";
import { useAuth } from "hooks/user/useAuth";
type Props = {
onClick: (updatePasswordProps: UpdatePasswordProps, authTokenHeaderProps: AuthTokenHeaderProps) => void;
}
export const UpdatePasswordForm:VFC<Props> = memo((props) => {
const { onClick } = props;
const { authTokens } = useAuth();
const schema = yup.object().shape({
current_password: yup.string()
.required('Current password is required!')
.min(6, 'Current password must be at least 6 characters!'),
password: yup.string()
.required('Password is required!')
.min(6, 'Password must be at least 6 characters!'),
password_confirmation: yup.string()
.required('Confirm password is required!')
.oneOf([yup.ref('password')], 'Passwords must match!'),
}).required();
const {
register,
handleSubmit,
getValues,
formState,
} = useForm<UpdatePasswordProps>({
mode: 'onChange',
reValidateMode: 'onChange',
resolver: yupResolver(schema)
});
const {
errors,
isDirty,
isValid,
isSubmitting,
// touchedFields
} = formState;
const onSubmit: SubmitHandler<UpdatePasswordProps> = (data) => {
// alert(JSON.stringify(data));
};
return (
<StyledForm onSubmit={handleSubmit(onSubmit)}>
<StyledContainer>
<StyledLabelWrapper>
Current Password
</StyledLabelWrapper>
<StyledInput
type="password"
placeholder="Input your current password"
{...register('current_password')} />
<Validation>{errors.current_password?.message}</Validation>
<StyledLabelWrapper>
New Password
</StyledLabelWrapper>
<StyledInput
type="password"
placeholder="Input your new password"
{...register('password')} />
<Validation>{errors.password?.message}</Validation>
<StyledLabelWrapper>
Confirm New Password
</StyledLabelWrapper>
<StyledInput
type="password"
placeholder="Input your new password again for confirmation"
{...register('password_confirmation')} />
<Validation>{errors.password_confirmation?.message}</Validation>
<StyledButtonWrapper>
<UpdateButton
disabled={!isDirty || !isValid || isSubmitting}
onClick={() => {
const values = getValues();
// console.log('values:', values);
onClick(values, authTokens!);
}}
>
UPDATE
</UpdateButton>
</StyledButtonWrapper>
</StyledContainer>
</StyledForm>
)
});
const StyledForm = styled.form`
max-width: 500px;
margin: 0 auto;
`
const StyledContainer = styled.div`
display: flex;
flex-direction: column;
`
const StyledLabelWrapper = styled.label`
text-align: left;
display: block;
margin-bottom: 13px;
margin-top: 20px;
margin-left: 10px;
color: #333;
font-size: 14px;
font-weight: 500;
`
const StyledInput = styled(BaseInput)`
width: 480px;
`
const StyledButtonWrapper = styled.div`
margin-top: 24px;
` | typescript |
#![allow(unused_imports)]
extern crate algs4;
use std::io::prelude::*;
use std::io;
use algs4::fundamentals::union_find::UF;
use algs4::fundamentals::union_find::quick_find;
use algs4::fundamentals::union_find::quick_union;
use algs4::fundamentals::union_find::weighted_quick_union;
use algs4::fundamentals::union_find::improved;
fn main() {
let mut lines = io::BufReader::new(io::stdin()).lines();
let n = lines.next().unwrap().unwrap().parse().unwrap();
let mut uf: quick_find::UnionFind = UF::new(n);
for line in lines {
let segs: Vec<usize> = line.unwrap().split(' ').map(|n| n.parse().unwrap()).collect();
let p = segs[0];
let q = segs[1];
if !uf.connected(p, q) {
uf.union(p, q);
println!("{} {}", p, q)
}
}
println!("{}", uf);
}
| rust |
http://data.doremus.org/artist/744e54f3-d9b2-3e16-a3a9-86ed41d8ee6d
http://data.doremus.org/artist/9ac0f71a-6eb1-3ad5-bfcc-a09d77ddce11
http://data.doremus.org/artist/47dd279a-b28a-36cd-a456-e7a882716b84
http://data.doremus.org/artist/ed7eb4d4-1e91-3a02-8e07-cbf857031127
http://data.doremus.org/artist/d07ec69a-da7c-36ab-a098-44c0cdc9741d
http://data.doremus.org/artist/58c37904-f1d2-38ed-aead-1765b20eb344
http://data.doremus.org/artist/c5d5735c-1095-3ed4-a20f-1208ab9567f9 | json |
from uuid import UUID
from Qt.QtWidgets import QUndoCommand
class RemoveNodes(QUndoCommand):
'''
Removes nodes
'''
def __init__(self, selectedNodes, graph):
super(RemoveNodes, self).__init__()
self.setText("Remove nodes")
self.graph = graph
self.connectionInfo = []
self.serializedNodes = []
# we do not want to use class references directly
# instead we store uuids, and access refs through graph
for node in selectedNodes:
self.serializedNodes.append(node.serialize())
def undo(self):
for nodeJson in self.serializedNodes:
nodeInstance = self.graph._createNode(nodeJson)
nodeInstance.uid = UUID(nodeJson['uuid'])
# restore connection info
for edgeJson in self.connectionInfo:
src = self.graph.findPin(UUID(edgeJson['sourceUUID']))
dst = self.graph.findPin(UUID(edgeJson['destinationUUID']))
connection = self.graph.connectPinsInternal(src, dst)
if connection:
connection.uid = UUID(edgeJson['uuid'])
def redo(self):
for nodeData in self.serializedNodes:
uid = UUID(nodeData['uuid'])
if uid in self.graph.nodes:
node = self.graph.nodes[uid]
# store connecton info
for pin in list(node.UIinputs.values()) + list(node.UIoutputs.values()):
for e in pin.connections:
self.connectionInfo.append(e.serialize())
node._rawNode.kill()
else:
assert(False), "node {} not in graph".format(uid)
| python |
Don’t Miss Out on the Latest Updates.
Subscribe to Our Newsletter Today!
San Francisco: Google-owned YouTube is testing a three strikes policy for people using ad blockers. This was first discovered by a Reddit user, now the company has confirmed this test to Android Authority. “We’re running a small experiment globally that urges viewers with ad blockers enabled to allow ads on YouTube or try YouTube Premium. Ad blocker detection is not new, and other publishers regularly ask viewers to disable ad blockers,” a YouTube spokesperson said.
The company also provided details on how the policy works, while noting that “ad blockers violate YouTube’s Terms of Service. ” The affected users will receive “repeated notifications” asking them to allow ads on the platform. “In extreme cases, where viewers continue their use of ad blockers, playback will be temporarily disabled,” the company explained.
The company also said that it takes disabling video playback “very seriously,” and will only disable playback if users repeatedly refuse requests to disable ad blocking on the platform. “In cases when viewers feel they have been falsely flagged as using an ad blocker, they can share this feedback by clicking on the link in the prompt,” it added.
For breaking news and live news updates, like us on Facebook or follow us on Twitter and Instagram. Read more on Latest Technology News on India. com. | english |
<filename>pac/atsame54p/src/oscctrl/evctrl.rs<gh_stars>100-1000
#[doc = "Reader of register EVCTRL"]
pub type R = crate::R<u8, super::EVCTRL>;
#[doc = "Writer for register EVCTRL"]
pub type W = crate::W<u8, super::EVCTRL>;
#[doc = "Register EVCTRL `reset()`'s with value 0"]
impl crate::ResetValue for super::EVCTRL {
type Type = u8;
#[inline(always)]
fn reset_value() -> Self::Type {
0
}
}
#[doc = "Reader of field `CFDEO0`"]
pub type CFDEO0_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `CFDEO0`"]
pub struct CFDEO0_W<'a> {
w: &'a mut W,
}
impl<'a> CFDEO0_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !0x01) | ((value as u8) & 0x01);
self.w
}
}
#[doc = "Reader of field `CFDEO1`"]
pub type CFDEO1_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `CFDEO1`"]
pub struct CFDEO1_W<'a> {
w: &'a mut W,
}
impl<'a> CFDEO1_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 1)) | (((value as u8) & 0x01) << 1);
self.w
}
}
impl R {
#[doc = "Bit 0 - Clock 0 Failure Detector Event Output Enable"]
#[inline(always)]
pub fn cfdeo0(&self) -> CFDEO0_R {
CFDEO0_R::new((self.bits & 0x01) != 0)
}
#[doc = "Bit 1 - Clock 1 Failure Detector Event Output Enable"]
#[inline(always)]
pub fn cfdeo1(&self) -> CFDEO1_R {
CFDEO1_R::new(((self.bits >> 1) & 0x01) != 0)
}
}
impl W {
#[doc = "Bit 0 - Clock 0 Failure Detector Event Output Enable"]
#[inline(always)]
pub fn cfdeo0(&mut self) -> CFDEO0_W {
CFDEO0_W { w: self }
}
#[doc = "Bit 1 - Clock 1 Failure Detector Event Output Enable"]
#[inline(always)]
pub fn cfdeo1(&mut self) -> CFDEO1_W {
CFDEO1_W { w: self }
}
}
| rust |
<reponame>Jinya-CMS/Jinya-Gallery-CMS
.jinya-designer__content--simple-pages {
grid-template-columns: unset;
display: flex;
flex-flow: row wrap;
align-items: flex-start;
justify-content: flex-end;
} | css |
<filename>_data/proposition/P_ulmuni.json
{
"citations" : [ {
"textCitation" : "[See ulmuni on Metamath](http://us.metamath.org/mpegif/ulmuni.html)"
} ],
"names" : [ "ulmuni" ],
"language" : "METAMATH_SET_MM",
"lookupTerms" : [ "#T_cF", "#T_culm", "#T_cfv", "#T_cS", "#T_cG", "#T_wa", "#T_cF", "#T_culm", "#T_cfv", "#T_cS", "#T_cH", "#T_wi", "#T_cG", "#T_wceq", "#T_cH" ],
"metaLanguage" : "METAMATH",
"remarks" : " An sequence of functions uniformly converges to at most one limit. (Contributed by <NAME>, 5-Jul-2017.) ",
"statement" : "ulmuni $p |- ( ( F ( ~~>u ` S ) G /\\ F ( ~~>u ` S ) H ) -> G = H ) $."
} | json |
<gh_stars>1-10
export const formatNumber = (value: number, locales?: string | string[], options?: Intl.NumberFormatOptions): string =>
new Intl.NumberFormat(locales, options).format(value);
| typescript |
Is it safe to consume alcohol while I am taking Fluticasone Topical?
Interaction with alcohol is unknown. Please consult your doctor.
Was this answer helpful?
| english |
<filename>static/data/ocr/d956/13.json
{
"id": "d956-13",
"text": "mm (cont*&)\nServed as It., U.S.N.R*, writer-supervisor Training Film Bp,, U* S,\nNavy, 3.943-461 Mem, Speech Assn, of Am., Assn* Edn. by Radio,\nNat. Assn. Edn. Broadcasters, United World Federalists,\nAm-Vets. Com., Ednl. theatre Assn. Am for Democratic Action.\nPresbyterian.Clubs U. of North Carolina Faculty. Contbr* articles\non Communication Center idea to Quar, Jour* of Speech, 194?;\nJour, of Assn® for Edn. by Radio, 1948* Home: Chapel Hill, H.C*"
} | json |
{"storeId":"2726","name":"<NAME>","latitude":51.52107,"longitude":-0.15665,"postalCode":"W1U 6FY","country":"gb","addressLines":["110-112 Baker St","Marylebone","London"]} | json |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>Extending ctags — Universal Ctags 0.3.0 documentation</title>
<link rel="stylesheet" href="_static/classic.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="_static/language_data.js"></script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="Extending ctags with Regex parser (optlib)" href="optlib.html" />
<link rel="prev" title="Input validation for Units" href="input-validation.html" />
</head><body>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="optlib.html" title="Extending ctags with Regex parser (optlib)"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="input-validation.html" title="Input validation for Units"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">Universal Ctags 0.3.0 documentation</a> »</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<div class="section" id="extending-ctags">
<h1>Extending ctags<a class="headerlink" href="#extending-ctags" title="Permalink to this headline">¶</a></h1>
<p>Exuberant-ctags allows a user to add a new parser to ctags with <code class="docutils literal notranslate"><span class="pre">--langdef=<LANG></span></code>
and <code class="docutils literal notranslate"><span class="pre">--regex-<LANG>=...</span></code> options.</p>
<p>Universal-ctags follows and extends the design of Exuberant-ctags in more
powerful ways, as described in the following chapters.</p>
<p>Universal-ctags encourages users to share the new parsers defined by
their options. See <a class="reference internal" href="optlib.html#optlib"><span class="std std-ref">optlib</span></a> to know how you can share your
parser definition with others.</p>
<p>Note that some of the new features are experimental, and will be marked as such
in the documentation.</p>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="optlib.html">Extending ctags with Regex parser (<em>optlib</em>)</a><ul>
<li class="toctree-l2"><a class="reference internal" href="optlib.html#option-files">Option files</a></li>
<li class="toctree-l2"><a class="reference internal" href="optlib.html#regular-expression-regex-engine">Regular expression (regex) engine</a></li>
<li class="toctree-l2"><a class="reference internal" href="optlib.html#regex-option-argument-flags">Regex option argument flags</a></li>
<li class="toctree-l2"><a class="reference internal" href="optlib.html#scope-tracking-in-a-regex-parser">Scope tracking in a regex parser</a></li>
<li class="toctree-l2"><a class="reference internal" href="optlib.html#overriding-the-letter-for-file-kind">Overriding the letter for file kind</a></li>
<li class="toctree-l2"><a class="reference internal" href="optlib.html#generating-fully-qualified-tags-automatically-from-scope-information">Generating fully qualified tags automatically from scope information</a></li>
<li class="toctree-l2"><a class="reference internal" href="optlib.html#multi-line-pattern-match">Multi-line pattern match</a></li>
<li class="toctree-l2"><a class="reference internal" href="optlib.html#advanced-pattern-matching-with-multiple-regex-tables">Advanced pattern matching with multiple regex tables</a></li>
<li class="toctree-l2"><a class="reference internal" href="optlib.html#conditional-tagging-with-extras">Conditional tagging with extras</a></li>
<li class="toctree-l2"><a class="reference internal" href="optlib.html#adding-custom-fields-to-the-tag-output">Adding custom fields to the tag output</a></li>
<li class="toctree-l2"><a class="reference internal" href="optlib.html#capturing-reference-tags">Capturing reference tags</a></li>
<li class="toctree-l2"><a class="reference internal" href="optlib.html#running-a-guest-parser-with-guest-regex-flag">Running a guest parser with <cite>_guest</cite> regex flag</a></li>
<li class="toctree-l2"><a class="reference internal" href="optlib.html#submitting-an-optlib-file-to-the-universal-ctags-project">Submitting an optlib file to the Universal-ctags project</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="internal.html">ctags Internal API</a><ul>
<li class="toctree-l2"><a class="reference internal" href="internal.html#input-text-stream">Input text stream</a></li>
<li class="toctree-l2"><a class="reference internal" href="internal.html#automatic-parser-guessing">Automatic parser guessing</a></li>
<li class="toctree-l2"><a class="reference internal" href="internal.html#managing-regular-expression-parsers">Managing regular expression parsers</a></li>
<li class="toctree-l2"><a class="reference internal" href="internal.html#parser-written-in-c">Parser written in C</a></li>
<li class="toctree-l2"><a class="reference internal" href="internal.html#output-tag-stream">Output tag stream</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<h4>Previous topic</h4>
<p class="topless"><a href="input-validation.html"
title="previous chapter">Input validation for <em>Units</em></a></p>
<h4>Next topic</h4>
<p class="topless"><a href="optlib.html"
title="next chapter">Extending ctags with Regex parser (<em>optlib</em>)</a></p>
<div id="searchbox" style="display: none" role="search">
<h3 id="searchlabel">Quick search</h3>
<div class="searchformwrapper">
<form class="search" action="search.html" method="get">
<input type="text" name="q" aria-labelledby="searchlabel" />
<input type="submit" value="Go" />
</form>
</div>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="optlib.html" title="Extending ctags with Regex parser (optlib)"
>next</a> |</li>
<li class="right" >
<a href="input-validation.html" title="Input validation for Units"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">Universal Ctags 0.3.0 documentation</a> »</li>
</ul>
</div>
<div class="footer" role="contentinfo">
© Copyright 2015, Universal Ctags Team.
Last updated on 10 Apr 2020.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 2.3.1.
</div>
</body>
</html> | html |
{% extends "backboneLayout.html" %}
{% block title %}
Recent Focus
{% endblock %}
{% block more_scripts %}
<script src="http://d3js.org/d3.v2.js"></script>
<script>
ANSWERLIST_API_URL = "{% url api_dispatch_list api_name="personal_data" resource_name="answerlist" %}";
ANSWERLIST_KEY = "RecentFocusByHour";
ANSWERLIST_VALUE_SELECTOR = function (a) { return a.focus; };
</script>
<script src="{{ STATIC_URL}}js/answerList.js"></script>
<script src="{{ STATIC_URL }}js/answerListTimeGraph.js"></script>
<script>
$(function () {
window.activityGraph = new AnswerByHourGraph();
$(window).bind("resize", function () { activityGraph.render(); });
});
</script>
{% endblock %}
{% block content %}
<div class="answerContent">
<div id="answerByHourGraphContainer">
<h2>Recent Focus Levels</h2>
</div>
</div>
{% endblock %}
| html |
<gh_stars>1-10
import setuptools
setuptools.setup(
name="v6wos", version="24.0.0",
packages=setuptools.find_packages(),
author="<NAME>",
author_email="<EMAIL>",
url="https://github.com/sfstpala/v6wos",
license="ISC",
test_suite="v6wos.tests",
zip_safe=False,
install_requires=[
"docopt==0.6.2",
"tornado==4.5.3",
"pyyaml==3.13",
"jsonschema==2.6.0",
"requests==2.20.0",
"tornado-couchdb==0.3.0",
"dnspython==1.15.0",
],
entry_points={
"console_scripts": [
"v6wos = v6wos.__main__:main",
]
},
package_data={
"v6wos": [
"tests/integration/index.md",
"tests/integration/hosts.md",
"tests/integration/error.md",
"design/hosts.yaml",
"resources/hosts.txt",
"config/local.yaml",
"config/debug.yaml",
"templates/index.html",
"templates/error.html",
"static/css/index.css",
"static/script/env.js",
],
},
)
| python |
{
"id": 81254059,
"name": "<NAME>",
"is_illegal": false,
"is_custom": false,
"text": "You can Tribute Summon this card in face-up Attack Position by Tributing 1 Reptile-Type \"Worm\" monster. Once per turn, you can Tribute 1 Reptile-Type \"Worm\" monster to Special Summon 1 Reptile-Type \"Worm\" monster from your Deck with a Level less than or equal to the Tributed monster.",
"images": [
"https://storage.googleapis.com/ygoprodeck.com/pics/81254059.jpg"
],
"type": "Monster",
"attribute": "LIGHT",
"atk": 2700,
"species": "Reptile",
"monster_type": "",
"is_pendulum": false,
"ability": "",
"has_effect": true,
"def": 1100,
"level": 8,
"is_tuner": false
} | json |
You just can't help but admire Sharmili's honesty about her looks. There was once a time when her name was quoted along with Shakeela as one of the queens of soft-porn industry in Malayalam. After a brief hiatus, she is returning to acting. This time around, she says she wouldn't be doing glamorous roles. She says she has a valid reason too. "I don't have a glamorous body now. It is not worth revealing it on camera."
She is on a comeback mission now. Her concentration is on playing comedy and character roles. T Rajendran's Veerasamy marks her return. She is the mother of the heroine in the film.
When asked about her marriage plans, she had a very strong reply. Sharmili says that she is very well aware that marriage is a very distant dream for actresses who had worked in soft porn films. According to her, she is very comfortable even with the fact that she might never get married at all in her life.
| english |
Tehran, Policenama Online – Iran has dismissed any prospect of talks with US President Donald Trump on the sidelines of the ongoing 74th UN General Assembly (UNGA) in New York, until Washington stops its campaign of “maximum pressure” on Tehran.
Speaking at the Iranian mission to the UN in New York, Tehran’s Deputy Foreign Minister Abbas Araghchi told the Independent newspaper on Sunday that “maximum pressure” from the US has produced “maximum resistance” from Iran, and that Tehran will continue to resist, reports the state-run IRNA news agency.
He said “to get real negotiations started, this economic war has to end”, in reference to the US sanctions. “And to end this economic war, we first need a ceasefire in order to do real negotiations and find sustainable solutions,” Araghchi added.
“Not only us, but no country will negotiate under pressure. ” Araghchi however, suggested that Iran’s President Hassan Rouhani would be willing to meet Trump in a multilateral setting if the US returned to the Joint Comprehensive Plan of Action (JCPOA) nuclear deal, which it exited in 2018.
“If Trump returns to the JCPOA, we will again negotiate with the US in the format of a P5+1 meeting,” he said.
Araghchi’s remarks come after Trump said earlier on Sunday that he had no plans to meet Iranian Rouhani during the UNGA. “Nothing is ever off the table completely, but I have no intention of meeting with Iran,” Trump told reporters at the White House.
On Saturday, the US announced that it was sending more troops to Saudi Arabia in the wake of the September 14 drone attacks on a major oil field and a petroleum processing facility in the Kingdom.
The Yemeni Houthi rebels said they had carried out the attacks. But both the US and Saudi Arabia said Iran was behind them. Tehran has strongly denied their claim.
In reaction to the US announcement, Rouhani on Sunday warned that foreign forces were threatening the security of the Gulf. He called the deployment of such forces in the past a “disaster” and told them to “stay away”. | english |
<filename>GoedeDoelenHelpen/ClientApp/src/app/user/dashboard/visitors-chart/visitors-chart.component.ts
import { Component, OnInit } from '@angular/core';
import { ChartSettings } from '../dashboard.component';
@Component({
selector: 'app-visitors-chart',
templateUrl: './visitors-chart.component.html',
styleUrls: ['./visitors-chart.component.scss']
})
export class VisitorsChartComponent implements OnInit {
cs = new ChartSettings();
legendTitle: string;
xAxisLabel: string;
yAxisLabel: string;
xScaleMin: any;
xScaleMax: any;
yScaleMin: number;
yScaleMax: number;
timeline: boolean;
chartType: string;
view: number[];
results: any[];
curveType: string;
curve: object;
scheme: object;
schemeType: string;
constructor() { }
ngOnInit() {
this.legendTitle = '';
this.xAxisLabel = 'Datum';
this.yAxisLabel = 'Aantal';
this.timeline = false;
this.chartType = 'line-chart';
this.curveType = 'Natural';
this.curve = this.cs.getCurve(this.curveType);
this.scheme = this.cs.getColorScheme(this.cs.colorScheme);
this.schemeType = 'ordinal';
this.results = [
{
'name': 'Bezoekers',
'series': [
{
'value': 39,
'name': '2018-04-01T03:15:35.469Z',
},
{
'value': 19,
'name': '2018-04-04T03:15:35.469Z',
},
{
'value': 43,
'name': '2018-04-07T03:15:35.469Z',
},
{
'value': 64,
'name': '2018-04-10T03:15:35.469Z',
},
{
'value': 79,
'name': '2018-04-13T03:15:35.469Z',
},
{
'value': 92,
'name': '2018-04-17T03:15:35.469Z'
},
{
'value': 61,
'name': '2018-04-20T03:15:35.469Z'
}
]
},
{
'name': 'Donaties',
'series': [
{
'value': 9,
'name': '2018-04-01T03:15:35.469Z',
},
{
'value': 3,
'name': '2018-04-04T03:15:35.469Z',
},
{
'value': 8,
'name': '2018-04-07T03:15:35.469Z',
},
{
'value': 23,
'name': '2018-04-10T03:15:35.469Z',
},
{
'value': 30,
'name': '2018-04-13T03:15:35.469Z',
},
{
'value': 59,
'name': '2018-04-17T03:15:35.469Z'
},
{
'value': 45,
'name': '2018-04-20T03:15:35.469Z'
}
]
},
];
this.results.forEach(o => o.series.forEach(s => s.name = this.toLocalDate(s.name)));
}
toLocalDate(dateString: string): string {
const options = { month: 'short', day: 'numeric' };
const date = new Date(dateString);
return date.toLocaleDateString('nl-NL', options);
}
}
| typescript |
Manchester City edged closer to the English Premier League title as second-placed Manchester United dropped points away to Leeds United on April 25. City, which leads by 10 points, can wrap up the title if it wins at Crystal Palace on May 1 and United loses to Liverpool. Pep Guardiola’s men will have the chance to clinch two titles inside a week as they beat Tottenham Hotspur 1-0 to win the League Cup on April 25.
Elsewhere, Timo Werner ended his 15-game goal drought across competitions to lead Chelsea to a 1-0 win over West Ham United. The victory, which extends Thomas Tuchel’s unbeaten away run to 10 games across competitions, saw fourth-placed Chelsea open up a three-point lead over West Ham.
Leicester City earned a comfortable 3-0 victory against West Bromwich Albion to remain third, while defending champion Liverpool’s quest for a Champions League berth suffered a dent as it drew 1-1 with Newcastle United to stay in sixth.
Everton further solidified its chances of playing in the Europa League next season as it beat Arsenal. The eighth-placed Toffees, who have a game in hand, could potentially leapfrog Liverpool and Tottenham Hotspur to sixth place.
The La Liga title race saw another dramatic twist in the last fortnight. Real Madrid was in the driver’s seat after its El Clasico win over Barcelona, which pushed the Blaugrana to third. But Madrid’s goalless draws against Getafe and Real Betis allowed neighbour Atletico Madrid to return to the top of the table with wins over Eibar and Huesca.
Barcelona bounced back from the Clasico defeat with Lionel Messi steering the club to three successive wins. Atleti then succumbed to a late defeat to Athletic Bilbao, which has now put Barca, which remains third with a game in hand, in control of its own destiny in its quest for the title. With seven wins in eight matches, fourth-placed Sevilla has kept itself just three points adrift off the top and has thrown itself in the mix as well. The scenario has set up potential title deciders in the second week of May when Barca hosts Atleti and Madrid faces Sevilla.
In the bottom half, Eibar may have run out of miracles as its fairytale six-season run in the top division looks to come to an end. With six games left, Los Armeros remain seven points from safety.
Bayern Munich will now have to wait until May 8 to lift its 31st Bundesliga title. The Bavarians blew their first chance to seal the title as they were stunned 2-1 by Mainz 05 on April 25. However, there was something to cheer for Hansi Flick’s side as star striker Robert Lewandowski returned from a month-long injury layoff and scored his 36th goal of the season. The Pole, who was named the Best FIFA Men’s Player of 2020, is in pursuit of Gerd Mueller’s all-time Bundesliga record of 40 goals in a season, which was set in 1971-72.
Second-placed RB Leipzig returned to winning ways as it beat 10-man VfB Stuttgart 2-0 to cut Bayern’s lead to seven points.
Erling Haaland continued his rich goal-scoring form as he netted twice in Borussia Dortmund’s 2-0 victory over VfL Wolfsburg. The Norwegian striker has scored 38 goals in his first 41 Bundesliga matches, a run matched only by Uwe Seeler back in the 1950s. Dortmund, currently fifth, trails fourth-placed Eintracht Frankfurt by a sole point.
Right-back Matteo Darmian’s low angled shot in the 76th minute against Hellas Verona, assisted by Achraf Hakimi, proved to be enough for Inter Milan to cement its position at the top of the table with 70 points, 13 clear of rival AC Milan. Dark horse Atalanta overpowered Bologna with a 5-0 victory as Gian Piero Gasperini’s men sit on second in the table with 68 points, two ahead of Milan, which has a game in hand.
Juventus’ woeful season continued as it only managed a draw against relegation-threatened Fiorentina. Andrea Pirlo’s men find themselves in fourth with 66 points, with Napoli breathing down their neck on 63 points but having played a game less.
There was surprise in the bottom half of the table as Cagliari stunned Roma 3-2 to move out of the relegation zone. Cagliari with 31 is equal on points with Benevento, which makes their upcoming clash in two weeks a mouthwatering fixture.
| english |
// Copyright 2017 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.devtools.skylark.skylint;
import com.google.common.collect.ImmutableMap;
import com.google.devtools.build.lib.events.EventKind;
import com.google.devtools.build.lib.syntax.BuildFileAST;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.NoSuchFileException;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map.Entry;
import java.util.Set;
/**
* Main class of the linter library.
*
* <p>Most users of the linter library should only need to use this class.
*/
public class Linter {
private static final String PARSE_ERROR_CATEGORY = "parse-error";
/** Map of all single-file checks and their names. */
private static final ImmutableMap<String, Check> nameToCheck =
ImmutableMap.<String, Check>builder()
.put("bad-operation", BadOperationChecker::check)
.put("control-flow", ControlFlowChecker::check)
.put("docstring", DocstringChecker::check)
.put("load", LoadStatementChecker::check)
.put("naming", NamingConventionsChecker::check)
.put("no-effect", StatementWithoutEffectChecker::check)
.put("usage", UsageChecker::check)
.put("bad-recursive-glob", NativeRecursiveGlobChecker::check)
.build();
/** Map of all multi-file checks and their names. */
private static final ImmutableMap<String, MultiFileCheck> nameToMultiFileCheck =
ImmutableMap.<String, MultiFileCheck>builder()
.put("deprecation", DeprecationChecker::check)
.build();
/** Function to read files (can be changed for testing). */
private FileFacade fileFacade = DEFAULT_FILE_FACADE;
private static final FileFacade DEFAULT_FILE_FACADE =
new FileFacade() {
@Override
public boolean fileExists(Path path) {
return Files.exists(path);
}
@Override
public byte[] readBytes(Path path) throws IOException {
return Files.readAllBytes(path);
}
};
private boolean singleFileMode = false;
private final Set<String> disabledChecks = new LinkedHashSet<>();
private final Set<String> disabledCategories = new LinkedHashSet<>();
public Linter setFileContentsReader(FileFacade reader) {
this.fileFacade = reader;
return this;
}
public Linter disableCheck(String checkName) {
if (!nameToCheck.containsKey(checkName)) {
throw new IllegalArgumentException("Unknown check '" + checkName + "' cannot be disabled.");
}
disabledChecks.add(checkName);
return this;
}
public Linter disableCategory(String categoryName) {
disabledCategories.add(categoryName);
return this;
}
/** Disables checks that require analyzing multiple files. */
public Linter setSingleFileMode() {
singleFileMode = true;
return this;
}
/**
* Runs all checks on the given file.
*
* @param path path of the file
* @return list of issues found in that file
*/
public List<Issue> lint(Path path) throws IOException {
path = path.toAbsolutePath();
String content = new String(fileFacade.readBytes(path), StandardCharsets.ISO_8859_1);
List<Issue> issues = new ArrayList<>();
BuildFileAST ast =
BuildFileAST.parseString(
event -> {
if (event.getKind() == EventKind.ERROR || event.getKind() == EventKind.WARNING) {
issues.add(
Issue.create(PARSE_ERROR_CATEGORY, event.getMessage(), event.getLocation()));
}
},
content);
for (Entry<String, Check> entry : nameToCheck.entrySet()) {
if (disabledChecks.contains(entry.getKey())) {
continue;
}
issues.addAll(entry.getValue().check(ast));
}
if (!singleFileMode) {
for (Entry<String, MultiFileCheck> entry : nameToMultiFileCheck.entrySet()) {
if (disabledChecks.contains(entry.getKey())) {
continue;
}
issues.addAll(entry.getValue().check(path, ast, fileFacade));
}
}
issues.removeIf(issue -> disabledCategories.contains(issue.category));
issues.sort(Issue::compareLocation);
return issues;
}
/**
* Interface with a function that reads a file.
*
* <p>This is useful because we can use a fake for testing.
*/
@FunctionalInterface
public interface FileFacade {
/**
* Reads a file path to bytes.
*
* <p>This operation may be repeated for the same file.
*/
byte[] readBytes(Path path) throws IOException;
/**
* Reads a file and parses it to an AST.
*
* <p>The default implementation silently ignores syntax errors.
*/
default BuildFileAST readAst(Path path) throws IOException {
String contents = new String(readBytes(path), StandardCharsets.ISO_8859_1);
return BuildFileAST.parseString(event -> {}, contents);
}
/**
* Checks whether a given file exists.
*
* <p>The default implementation invokes readBytes and returns false if {@link
* NoSuchFileException} is thrown, true otherwise.
*/
default boolean fileExists(Path path) {
try {
readBytes(path);
} catch (NoSuchFileException e) {
return false;
} catch (IOException e) {
// This method shouldn't throw.
}
return true;
}
}
/** Allows to invoke a check. */
@FunctionalInterface
public interface Check {
List<Issue> check(BuildFileAST ast);
}
/** Allows to invoke a check. */
@FunctionalInterface
public interface MultiFileCheck {
List<Issue> check(Path path, BuildFileAST ast, FileFacade fileFacade);
}
}
| java |
Parveen doesn't remember how long she stayed hidden while mayhem played out on the other side of the bathroom door. The men smashed a washbasin, overturned furniture and set fire to three cars downstairs before eventually walking away. Parveen and her relatives escaped from the roof when, after what seemed like hours, the police arrived.
Three days on, Parveen and her family were still living in fear at the Ballabgarh police station along with 200 other Muslims from Atali.
Thirty-year old Sameena was attacked by the mob inside her home.
At the police station, the Muslim men sat in groups on a lawn at the entrance, in the blazing heat. Further inside, about a hundred women sat on a rug spread on the asphalt, with a thin cloth tent sheltering them from the sun. Children, many in the school uniforms they were wearing three days ago, huddled around the women. In one corner, there were stacks of bananas and plastic pouches of drinking water provided by social activists.
They all recounted the same tale: on Monday, a 300-strong mob of Jat men went on the rampage in Atali, attacking Muslims and their property. At least 20 Muslims were trapped in the assault, three of whom are still lying in BK Hospital with burn injuries and cuts.
Parveen’s sister-in-law Naeema fractured her left foot while trying to escape. Sameena, a neighbour, suffered a big bruise on her arm. Others had injuries on faces and backs from the stones pelted at them.
Nine-year old Sama had just returned from school when the mob attacked.
At Atali, the scars of the Monday violence weren’t too hard to see. A mosque that was being constructed in the centre of the village, next to a small temple and the village pond, bore the scars of the attack – its scaffolding was damaged and a stone plate bearing the name of the mosque had been blackened.
The half-built structure of the mosque in the center of Atali village.
Both candidates in the approaching sarpanch election are Jat – Rajesh Chaudhary and Pehlad Singh – the same as the last time. Villagers said that though Pehlad Singh had supported the construction of the mosque in the previous election, this year he was opposing it.
“Every five years, this issue is raked up to fool people,” said the local MLA Tek Chand Sharma of the Bahujan Samaj Party. “This mosque has existed at least 30 years. It is there in all revenue records.” Sharma, the sole BSP MLA in the 90-member Haryana assembly, is allied with the Bharatiya Janata Party government in the state.
In 2009, before the previous sarpanch elections, Jat and Pandit villagers filed a case in the Chief Judicial Magistrate’s court for an order restraining the construction of a larger mosque. The mosque’s pillars had been erected by then but further construction was stopped. Later, when the court ruled against the petitioners, a second petition was filed before the Sub Divisional Magistrate questioning whether the land belonged to the panchayat or the Waqf Board. The Sub Divisional Magistrate gave a decision this March identifying the land as belonging to the Waqf Board.
A few weeks later, the dispute over the mosque intensified.
On May 21, four days before the mob assault, 30 policemen were stationed at the mosque site to allow the construction to begin. A day later, Deputy Commissioner of Police Bhupinder Singh said he presided over a meeting of villagers from both communities at the Ballabhgarh police station. At this meeting, the current sarpanch, Rajesh Chaudhary, gave a statement to Muslim villagers that the mosque construction could go on as permitted by the local courts. But on May 25, as labourers began building the roof over the scaffolding and policemen kept watch, the mob attacked.
While a few Hindu villagers were injured in the stone-pelting on Monday, the maximum damage was suffered by the half-built mosque and the 17 Muslim homes around it. Inside these abandoned homes, many of which were unlocked, there was still a smell of charred wood. In most of them, fridges and cupboards had been ransacked and overturned, and the floors were littered with bricks, clothes and children’s footwear. In some, half-cooked vegetables lay over the stove.
Inside the abandoned homes, floors are littered with bricks and the families' belongings.
“The village gets cooking gas through a pipeline and the attackers cut these pipes to ignite the homes on fire,” said DCP Bhupinder Singh. A godown belonging to a Muslim family was set alight after the first wave of attack, he said. The villagers named 20 youths from the village in the First Information Report, but the police hadn’t arrested anyone.
While the Jat own the most land in the village, followed by Pandit and Saini families, most Muslim households support themselves through cattle rearing. Some Muslims own vehicles that they rent out and a few others work as drivers.
In conversations with this reporter, most Hindu villagers were defensive. “Why are you asking us?” snapped Yogesh Bhardawaj, a 20-something who works as a gardener in Ballabhgarh. He advised, “Go ask the Muslims,” using a derogatory term for Muslim men.
Harish Yadav, a farmer, claimed that the Muslims “pelted stones at our women on Monday. That is when we retaliated”. However, when asked to identify the women, he could not name them.
Policemen guard the house of Haji Shabir Ali.
A villager reads aloud a WhatsApp message exhorting Hindus to gather in the village by night.
| english |
Beijing: The Sikkim standoff between the two neighbouring countries India and China should not be allowed to threaten a mega economic deal which Asia-Pacific nations have been trying to negotiate at a meeting in Hyderabad, an article in an official Chinese daily said on Friday.
the views of the ruling party. In recent days, the tabloid has been at the forefront of verbal allegations against India amid the tension between the two countries in the Sikkim sector.
Sixteen countries, accounting for about 27 per cent of global trade, are meeting in Hyderabad to discuss the Regional Comprehensive Economic Partnership (RCEP) that is aimed at liberalising trade and investment in the Asia-Pacific region.
The technical level talks for the RCEP began on July 18. On July 24, the negotiations will formally start.
The meeting is happening under the shadow of the standoff between India and China - the two largest economies taking part in the talks.
The standoff began over the construction of a road by China in Doklam area and India fears the road could be used to cut New Delhi's links with its northeastern states.
India has said it is ready for talks with China to end the tension but both sides should first withdraw their armies from the disputed area. "We are saying that the matter can be resolved through talks, but both sides have to first take back their armies," External Affairs Minister Sushma Swaraj has said.
"China and India are two prominent members of the group, but they face the task of preventing an escalation of their border tensions from becoming an obstacle to reaching trade agreements at the negotiating table," the article said.
"China hopes that India can strive to control its actions, ensuring that the escalation of the border tensions does not endanger the atmosphere of cooperation for the RCEP," it said.
"If India encourages the border tensions to thwart the free trade negotiations, China will fight back and spare no effort to safeguard its territorial sovereignty, which cannot be traded in any case," it said.
(With inputs from PTI) | english |
// importerer component fra react-biblioteket.
// brukes for å lage en GUI-applikasjon med React
import * as React from 'react';
import { Component } from 'react-simplified'; // component er en klasse som brukes til å lage et nytt komponent
import { NavLink } from 'react-router-dom';
import { repService } from './services'; // importerer fraktService fra services.js - classen spørringene hentes fra
import { Card } from './widgets'; // card elementene hentes fra widgets.js filen, styling
import Table from 'react-bootstrap/Table'; // bruker elementer fra bootstrap for styling
import Button from 'react-bootstrap/Button';
import Row from 'react-bootstrap/Row';
import Col from 'react-bootstrap/Col';
// RepList er en subklasse av Component
export default class RepList extends Component {
// definerer et tomt array 'reps'
reps = [];
render() {
return (
<Row style={{ marginLeft: '2%', marginTop: '2%', marginRight: '2%', marginBottom: '2%' }}>
<Col>
<Card title="Reparasjoner">
{/* lager en tabell med all informasjon */}
<Table responsive hover>
<thead>
<tr>
<th>Reparasjon id</th>
<th>Sykkel id</th>
<th>Innlevering</th>
<th>Utlevering</th>
<th>Beskrivelse</th>
<th>
<NavLink to={'/reps/add'}>
<Button>Legg til ny</Button>
</NavLink>
</th>
</tr>
</thead>
{/* går gjennom alle reparasjonene */}
{/* .map() funksjonen går gjennom alle elementene i en array i en rekkefølge */}
{this.reps.map(rep => (
<tbody>
<tr key={rep.reparasjons_id}>
<td>{rep.reparasjons_id}</td>
<td>{rep.sykkel_id}</td>
<td>
{/* formaterer riktig dato-oppsett */}
{('0' + rep.repinnlev_dato.getDate()).slice(-2) +
'.' +
('0' + (rep.repinnlev_dato.getMonth() + 1)).slice(-2) +
'.' +
rep.repinnlev_dato.getFullYear()}
</td>
<td>
{('0' + rep.reputlev_dato.getDate()).slice(-2) +
'.' +
('0' + (rep.reputlev_dato.getMonth() + 1)).slice(-2) +
'.' +
rep.reputlev_dato.getFullYear()}
</td>
<td>{rep.rep_beskrivelse}</td>
<td>
{/* link med en knapp med sti til endre reparasjon */}
<NavLink to={'/reps/' + rep.reparasjons_id + '/edit'}>
<Button variant="outline-primary">Endre</Button>
</NavLink>
</td>
</tr>
</tbody>
))}
</Table>
</Card>
</Col>
</Row>
);
}
// mounted()- funksjonen blir kalt når komponenten blir lagt til for visning
// kjører spørringen som ligger i classen repService med navn getReps
mounted() {
repService.getReps(reps => {
this.reps = reps;
});
}
}
| javascript |
[
{
"DeniedAlternatives": [],
"Files": {
"items/active/weapons/ranged/unrand/neolaserlauncher/neolaserlauncher.activeitem": [
"/description"
]
},
"Texts": {
"Eng": "A powerful proton cannon, built to deal heavy-duty justice."
}
},
{
"DeniedAlternatives": [],
"Files": {
"items/active/weapons/ranged/unrand/neolaserlauncher/neolaserlauncher.activeitem": [
"/shortdescription"
]
},
"Texts": {
"Eng": "Lazercaster"
}
}
] | json |
Chief Minister Pushkar Singh Dhami on Saturday launched the logo and website of Investor Global Summit in Dehradun.
Speaking on the occasion, CM Dhami said “This summit is a big opportunity for the state. We should take maximum advantage of this Investor Summit and bring maximum investment within the state."
Investor Global Summit is going to be organised in Uttarakhand in December.
Dhami also launched a website for the event to give out details and information about the state government's policies and the different sectors in which investments can be made.
The two-day summit to be held in Dehradun on December 8-9 has set a target of attracting investments worth ₹2.5 lakh crore in various sectors, including tourism and wellness, agriculture and horticulture, health and education, the chief minister said at the launch.
He said there is a positive environment in the state for investments. "Not only big industrial houses and groups are keen to invest in the state but also those already here are willing to expand their activities," Dhami added.
"In the consultations held with potential investors in preparation for the summit, many valuable suggestions have come up and a majority of them have been incorporated into our policies," he said.
Dhami added that the media can also play a vital role in luring investments.
Chief Secretary S S Sandhu said the investments will create job opportunities in the state and ultimately improve the quality of life of its people.
Unlock a world of Benefits! From insightful newsletters to real-time stock tracking, breaking news and a personalized newsfeed – it's all here, just a click away! Login Now!
| english |
export type n = null | undefined;
//export type FixHTMLProps<T> = Omit<T, "title"> & {title?: string|n};
export type FixHTMLProps<T> = Omit<T, "title"> & {title?: any}; // have to use "any", else you can't destructure the fields into an element using {...rest}
//export type HTMLProps_Fixed<T> = FixHTMLProps<React.HTMLProps<T>>;
/*
There are three types of interest, when we want to get an element-type's native attributes (we'll use button as example):
- All attributes that are on any html element: React.AllHTMLAttributes<HTMLButtonElement>
- Exact native attributes for div-elements (long version): DetailedHTMLFactory<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
- Exact native attributes for div-elements (shortcut): JSX.IntrinsicElements["button"]
The last one is the easiest to make a type-helper for, so we use it below.
*/
export type HTMLProps_Fixed<T extends keyof JSX.IntrinsicElements> =
Omit<
FixHTMLProps<JSX.IntrinsicElements[T]>,
// omit these; they are only present during instance creation, and are not part of the actual html-props set (without removal, causes TS errors on using "...rest" for comp-props)
"ref"
>; | typescript |
Roundglass Punjab FC becomes the first team from I-League to get promoted to the Indian Super League.
Roundglass Punjab FC have scripted history after becoming the first-ever team to secure promotion to the Indian Super League, which is subject to fulfillment of all financial criteria as agreed upon by all stakeholders as per the roadmap between the Asian Football Confederation (AFC) and the All India Football Federation (AIFF).
The Punjab-based I-League side secured the 2022-23 title after their 3-0 win over Rajasthan United FC on Saturday, 4th March 2023. After the win, they went a massive eight points clear off second-placed Sreenidi Deccan which is an unassailable lead.
For most part of the season, it was a two-horse race between Sreenidi Deccan and Roundglass Punjab until the former lost against lower-placed sides Kenkre FC and Mohammedan SC, before drawing against Aizawl FC.
Bhutanese forward Chencho Gyeltshen scored at the 16th minute to give Roundglass an early lead before Slovenian striker Luka Majcen doubled their lead at the 41st minute. This was Majcen's 14th goal of the 2022-23 campaign, only one behind Sreenidi Deccan's David Castaneda, the top-scorer.
Finally, Spaniard Juan Mera put the nail on the coffin after netting the third goal in the match in 76th minute, his 10th of the season.
Apart from the ISL promotion, Roundglass Punjab will also take part in the upcoming Super Cup which is slated to be held in Kerala. Moreover, according to AFC's revised formats of the Asian competitions, which saw India lose its Champions League spot from the 2024-25 season onwards, Roundglass will get a chance to play in the AFC Cup 2024-25.
The mode of qualification is yet to be confirmed.
| english |
#include "vtkboneLinearAnisotropicMaterial.h"
#include "vtkDoubleArray.h"
#include "vtkObjectFactory.h"
#include "vtkSmartPointer.h"
vtkStandardNewMacro (vtkboneLinearAnisotropicMaterial);
//----------------------------------------------------------------------------
vtkboneLinearAnisotropicMaterial::vtkboneLinearAnisotropicMaterial()
{
for (unsigned int i=0; i<36; ++i)
{
this->StressStrainMatrix[i] = 0;
}
// Default is an isotropic stiffness matrix.
double E = 6829.0;
double nu = 0.3;
double c = E / ((1+nu)*(1-2*nu));
StressStrainMatrix[2*6+2] = StressStrainMatrix[6+1] = StressStrainMatrix[0] = c*(1-nu);
StressStrainMatrix[2*6+1] = StressStrainMatrix[2*6]
= StressStrainMatrix[6+2] = StressStrainMatrix[6]
= StressStrainMatrix[2] = StressStrainMatrix[1] = c*nu;
StressStrainMatrix[5*6+5] = StressStrainMatrix[4*6+4] = StressStrainMatrix[3*6+3] = 0.5*c*(1-2*nu);
}
//----------------------------------------------------------------------------
vtkboneLinearAnisotropicMaterial::~vtkboneLinearAnisotropicMaterial()
{
}
//----------------------------------------------------------------------------
void vtkboneLinearAnisotropicMaterial::PrintSelf (ostream& os, vtkIndent indent)
{
this->Superclass::PrintSelf(os,indent);
os << indent << "StressStrainMatrix:\n";
for (unsigned int i=0; i<6; ++i)
for (unsigned int j=0; j<6; ++j)
{
os << indent << this->StressStrainMatrix[6*i+j];
if (j == 5)
{ os << "\n"; }
else
{ os << "\t"; }
}
}
//----------------------------------------------------------------------------
void vtkboneLinearAnisotropicMaterial::SetStressStrainMatrix (const double* k)
{
memcpy (this->StressStrainMatrix, k, sizeof(double)*6*6);
}
//----------------------------------------------------------------------------
void vtkboneLinearAnisotropicMaterial::SetStressStrainMatrix (vtkDataArray* k)
{
if (k == NULL)
{
vtkErrorMacro("No input object.");
return;
}
if (k->GetNumberOfComponents() == 1)
{
for (vtkIdType i=0; i<36; ++i)
{
this->StressStrainMatrix[i] = k->GetTuple1(i);
}
}
else if (k->GetNumberOfComponents() == 6)
{
for (vtkIdType i=0; i<6; ++i)
for (vtkIdType j=0; j<6; ++j)
{
this->StressStrainMatrix[6*i+j] = k->GetComponent(i,j);
}
}
else
{
vtkErrorMacro("Input array must have 1 or 6 components.");
return;
}
}
//----------------------------------------------------------------------------
void vtkboneLinearAnisotropicMaterial::GetStressStrainMatrix (double* k)
{
memcpy (k, this->StressStrainMatrix, sizeof(double)*6*6);
}
//----------------------------------------------------------------------------
void vtkboneLinearAnisotropicMaterial::GetStressStrainMatrix (vtkDataArray* k)
{
vtkSmartPointer<vtkDoubleArray> K = vtkSmartPointer<vtkDoubleArray>::New();
K->SetNumberOfComponents(6);
K->SetNumberOfTuples(6);
this->GetStressStrainMatrix((double*)(K->WriteVoidPointer(0,0)));
k->SetNumberOfComponents(6);
k->SetNumberOfTuples(6);
for (vtkIdType i=0; i<6; ++i)
for (vtkIdType j=0; j<6; ++j)
{
k->SetComponent(i,j, K->GetComponent(i,j));
}
}
//----------------------------------------------------------------------------
vtkboneMaterial* vtkboneLinearAnisotropicMaterial::Copy()
{
vtkboneLinearAnisotropicMaterial* new_mat = vtkboneLinearAnisotropicMaterial::New();
new_mat->SetName(this->Name);
new_mat->SetStressStrainMatrix(this->StressStrainMatrix);
return new_mat;
}
//----------------------------------------------------------------------------
vtkboneMaterial* vtkboneLinearAnisotropicMaterial::ScaledCopy (double factor)
{
vtkboneLinearAnisotropicMaterial* new_mat = vtkboneLinearAnisotropicMaterial::New();
new_mat->SetName(this->Name);
new_mat->SetStressStrainMatrix(this->StressStrainMatrix);
for (unsigned int i=0; i<36; ++i)
{
new_mat->GetStressStrainMatrix()[i] *= factor;
}
return new_mat;
}
| cpp |
A subscription to JoVE is required to view this content.
You will only be able to see the first 2 minutes.
The JoVE video player is compatible with HTML5 and Adobe Flash. Older browsers that do not support HTML5 and the H.264 video codec will still use a Flash-based video player. We recommend downloading the newest version of Flash here, but we support all versions 10 and above.
If that doesn't help, please let us know.
This method introduces a simple technique for the detection of endogenous monoamine release using acute brain slices. The setup uses a 48-well plate containing a tissue holder for monoamine release. Released monoamine is analyzed by HPLC coupled with electrochemical detection. Additionally, this technique provides a screening method for drug discovery.
This technique is an adaptation of commonly used methods for examining monoamine release, allowing the measurement of endogenous release rather than preloaded radiolabeled monoamines under multiple pharmacological conditions at one time. The main advantages to this technique are that it is fairly cost-effective, multiple pharmacological conditions may be examined at once, and we can study endogenous monoamine release with the ability to distinguish between vesicular and transporter mediated release. To prepare brain slices from adult 250 to 350 gram male rats after harvest, immediately placed the brain and ice cold oxygenated dissection buffer, and acquire 300 micron coronal brain sections from each region of interest.
For further dissection of the brain slices, carefully move the tissues to glass slides and use a rat brain atlas to identify the dorsal striatum based on its dark striated structure, and to identify the hippocampus based on its proximity to the cortex and its unique spiral structure. Separate the right and left hemispheres for their use as control and experimental slices. The dorsal striatum can be further dissected into two millimeter punches.
Then use a plastic transfer pipette with a modified tip to transfer the samples into small containers immersed in oxygenated ice cold dissection buffer with oxygen bubbling. To induce monoamine release, transfer the tissue samples to each well of a custom made 48 well efflux chamber containing 0.5 to one milliliter of efflux buffer per well with constant gentle bubbling and allow the samples to recover for 30 to 50 minutes at 37 degrees Celsius. At the end of the equilibration period, move the tissue holder with brain tissue to wells containing 500 microliters of oxygenated efflux buffer with or without pharmacological agent, tapping the holder on the edge of the well to prevent the minimal transfer of buffer between wells for a 20 minute incubation at 37 degrees Celsius.
At the end of the incubation, move the holder to a new set of wells containing 500 microliters of efflux buffer with or without the drug of interest and return the plate to the cell culture incubator for an additional 20 minutes. During the second incubation, transfer the solution from the wells from the first incubation into microcentrifuge tubes containing 50 microliters of one normal perchloric or phosphoric acid on ice, and label the tubes number one"At the end of the second incubation, move the tissue holder to empty wells with the plate on ice and transfer the supernatants from the second incubation to new microcentrifuge tubes containing 50 microliters of one normal perchloric or phosphoric acid on ice. Label these tubes number two"When all of the supernatants have been transferred, add one milliliter of ice cold dissection buffer to each well of tissue and use small tweezers to transfer each tissue sample to a new microcentrifuge tube.
Remove the buffer from the sample tubes and store the tissues at minus 80 degrees Celsius, then transfer the collected incubation solutions into microcentrifuge filter tubes for centrifugation and place the filtrate on ice until HPLC analysis. Set the potential of the ECD and flow rate to the manufacturer's recommendation for detecting monoamines. Load and appropriate aliquot of each sample, including neuro-transmitter standards into the HPLC for auto injection and detection and allow the instrument to complete the analysis.
Then use the HPLC analysis software to acquire and analyze the chromatograph data using a standard curve composed of each monoamine to obtain the area under the curve based on the manufacturer's guidelines. After six hours of functional analysis, tissue samples remain viable, while samples incubated with 1%Triton X-100 demonstrate a significant reduction in MTT transformation. Acute 20 minute treatment of hippocampal and prefrontal cortex brain sections with amphetamine induces a significant increase in the extracellular level of each monoamine.
When the samples are pretreated with fluoxetine, a selective serotonin re-uptake inhibitor, the amphetamine induced increase in extracellular serotonin within the hippocampus and the prefrontal cortex does not occur, while the increase in extracellular dopamine and norepinephrine production is not affected. In addition, acute 20 minute treatment of dorsal striatum punches with amphetamine induces a 35 fold increase in extracellular dopamine level expression, while dorsal striatum punch treatment with cocaine, a monoamine transporter blocker, results in a significant inhibition of amphetamine induced extracellular dopamine. Increasing the concentration of extracellular potassium chloride to evoke membrane depolarization is sufficient to induce the exocytotic release of monoamines compared to untreated control conditions, and neither fluoxetine nor cocaine treatment blocks this deep polarization induced increase.
It is imperative to have clean cut sections, a precise localization of punches, and to maintain consistent oxygenation throughout the experiment. The brain sections may be used post experimentation for further biochemical processing and analysis, such as western blotting and histology.
| english |
{
"id": 29955,
"info": {
"name": "the simplest google gmail",
"description": "the simplest google gmail . Remove ads,invite box,chat box and other info.hope u like it.",
"additionalInfo": null,
"format": "uso",
"category": "google",
"createdAt": "2010-05-11T01:03:16.000Z",
"updatedAt": "2010-05-11T01:09:11.000Z",
"license": "NO-REDISTRIBUTION",
"author": {
"id": 49799,
"name": "kingwrcy"
}
},
"stats": {
"installs": {
"total": 270,
"weekly": 0
}
},
"screenshots": {
"main": {
"name": "29955_after.gif",
"archived": false
}
},
"discussions": {
"stats": {
"discussionsCount": 0,
"commentsCount": 0
},
"data": []
},
"style": {
"css": "@-moz-document domain(mail.google.com){\r\ntable.zt tr.yO:hover { background-color: rgb(255,235,134) !important;} \r\ntable.zt tr.zE:hover { background-color: rgb(205,243,159) !important;}\r\n\r\n/* HIDE CHAT AND INVITE BOXES */\r\n.nH.s, .nH.pY {\r\n display: none !important;\r\n}\r\ndiv#guser.a8{display:none}\r\ndiv#gbar{display:none}\r\ndiv.nH.l2.ov{display:none}\r\ndiv#:rm.a9.Rgky9{display:none}\r\ndiv.a9.Rgky9{display:none}\r\ntable.cf.d{display:none}\r\ndiv.no{height:0px}\r\ndiv.oM{display:none}\r\nspan.u7{display:none}\r\ntable.Bs.nH.iY>tr>td:nth-child(2){display:none}\r\ntable.Bs.nH.iY>tr>td:nth-child(3){display:none}\r\ndiv.iI.D.E{display:none}\r\ndiv.A1.D.E>div:nth-child(1){display:none}\r\ndiv.A1.D.E>div:nth-child(2){display:none}\r\n}"
}
} | json |
from bit.network import get_decoded_tx
TESTNET_TX = ('01000000018878399d83ec25c627cfbf753ff9ca3602373eac437ab2676154a3c2'
'da23adf3010000008a473044022068b8dce776ef1c071f4c516836cdfb358e44ef'
'58e0bf29d6776ebdc4a6b719df02204ea4a9b0f4e6afa4c229a3f11108ff66b178'
'95015afa0c26c4bbc2b3ba1a1cc60141043d5c2875c9bd116875a71a5db64cffcb'
'13396b163d039b1d932782489180433476a4352a2add00ebb0d5c94c515b72eb10'
'f1fd8f3f03b42f4a2b255bfc9aa9e3ffffffff0250c30000000000001976a914e7'
'c1345fc8f87c68170b3aa798a956c2fe6a9eff88ac0888fc04000000001976a914'
'92461bde6283b461ece7ddf4dbf1e0a48bd113d888ac00000000')
def test_get_decoded_tx():
tx = get_decoded_tx(TESTNET_TX, test=True)
assert len(tx['data']['tx']['vout']) == 2
| python |
Huawei already introduced its Kirin A1 chipset at the IFA 2019 where it introduced the FreeBuds 3 which are truly wireless earphones and the Huawei Watch GT2. Huawei has now announced that they will be launching the Kirin A1 chipset next month in India. They will also bring to India their A1-powered wearable devices soon. The Indian wearable market has witnessed exponential growth over the recent past and Huawei’s is all set to revolutionize the segment and expand its wearable ecosystem with its powerful and highly energy-efficient chipset.
Powering the new range of Huawei devices, the Kirin A1 is the only one supporting both BT 5. 1 and BLE 5. 1, the latter of which should support low power consumption. The Kirin A1 comes with an advanced Bluetooth processing unit, a powerful audio processing unit, an ultra-low-power application processor and an independent power management unit, all within a mere 4. 3mm*4. 4mm. With the perfect combination of advanced functionality and ultra-energy efficiency, the Huawei Kirin A1 chip is designed to deliver a robust and unrivalled experience.
Huawei Consumer Business Group, Huawei India, Tornado Pan, Country Manager said, "The Kirin A1 is a very powerful chipset and is anticipated to bring in a paradigm shift in India’s wearable market. In line with our legacy of eliminating consumer pain points - Products powered by this chipset will provide unparalleled performance, power efficiency and connectivity”.
The Huawei Kirin A1 chip's ultra-energy efficient Cortex-M7 processor has achieved a maximum energy consumption rate of 10uA/MHz, far below the industry's 30uA/MHZ power consumption level. The combination of the Cortex-M7’s powerful multi-sensory, as well as from the capacitive sensor, optical heart rate sensor, and additional sensors such as accelerometer sensor and six-axis sensor, is crafted to deliver accurate body recognition and monitoring capabilities. | english |
<reponame>IMLemon/MyHealthApp
{"cfgHash":"73c0b9c26436bbd9541200ac5038bd69","themeChanged":false,"deploytypeChanged":true,"deploytype":"test","globalStyleCacheHash":"9f86f0a04a80094d8905dad41641b04c","ios":{"/Users/xdeveloper/Documents/Appcelerator_Studio_Workspace/MyHealthApp/app/alloy.js":"aecee18dbefd98641bd482408b79263f"}} | json |
<reponame>Odeuropa/knowledge-graph<filename>populate/entities/SmellEmission.py
import re
from .Entity import Entity
from .SmellSource import SmellSource
from .ontologies import ODEUROPA
class SmellEmission(Entity):
def __init__(self, seed, smell, source='', carrier='', lang='en'):
super().__init__(seed)
self.setclass(ODEUROPA.L12_Smell_Emission)
self.add(ODEUROPA.F1_generated, smell)
for i, x in enumerate(source.split(' | ')):
if not x:
break
s = re.sub(r'^of ', '', x).strip()
self.add(ODEUROPA.F3_had_source, SmellSource(seed + str(i), s, lang))
for i, x in enumerate(carrier.split(' | ')):
if not x:
break
c = re.sub(r'^of ', '', x).strip()
self.add(ODEUROPA.F4_had_carrier, SmellSource(seed + str(i) + 'c', c, lang))
| python |
<filename>openstackclient/compute/v2/floatingip.py
# Copyright 2013 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
"""Floating IP action implementations"""
import logging
from osc_lib.command import command
from osc_lib import utils
from openstackclient.i18n import _
class AddFloatingIP(command.Command):
_description = _("Add floating IP address to server")
# TODO(tangchen): Remove this class and ``ip floating add`` command
# two cycles after Mitaka.
# This notifies cliff to not display the help for this command
deprecated = True
log = logging.getLogger('deprecated')
def get_parser(self, prog_name):
parser = super(AddFloatingIP, self).get_parser(prog_name)
parser.add_argument(
"ip_address",
metavar="<ip-address>",
help=_("IP address to add to server (name only)"),
)
parser.add_argument(
"server",
metavar="<server>",
help=_("Server to receive the IP address (name or ID)"),
)
return parser
def take_action(self, parsed_args):
self.log.warning(_('This command has been deprecated. '
'Please use "server add floating ip" instead.'))
compute_client = self.app.client_manager.compute
server = utils.find_resource(
compute_client.servers, parsed_args.server)
server.add_floating_ip(parsed_args.ip_address)
class RemoveFloatingIP(command.Command):
_description = _("Remove floating IP address from server")
# TODO(tangchen): Remove this class and ``ip floating remove`` command
# two cycles after Mitaka.
# This notifies cliff to not display the help for this command
deprecated = True
log = logging.getLogger('deprecated')
def get_parser(self, prog_name):
parser = super(RemoveFloatingIP, self).get_parser(prog_name)
parser.add_argument(
"ip_address",
metavar="<ip-address>",
help=_("IP address to remove from server (name only)"),
)
parser.add_argument(
"server",
metavar="<server>",
help=_("Server to remove the IP address from (name or ID)"),
)
return parser
def take_action(self, parsed_args):
self.log.warning(_('This command has been deprecated. '
'Please use "server remove floating ip" instead.'))
compute_client = self.app.client_manager.compute
server = utils.find_resource(
compute_client.servers, parsed_args.server)
server.remove_floating_ip(parsed_args.ip_address)
| python |
PLEASE NOTE THAT THE SERVICES (AS DEFINED BELOW) ARE PRIMARILY FOR MEDICAL PROFESSIONALS. PLEASE ALSO NOTE THAT THE INFORMATION PROVIDED IN THE SERVICES (AS DEFINED BELOW) IS FOR INFORMATIONAL PURPOSES ONLY AND NOT INTENDED TO BE A SUBSTITUTE FOR PROFESSIONAL, MEDICAL ADVICE, DIAGNOSIS OR TREATMENT. ALWAYS CONSULT WITH YOUR DOCTOR, OR OTHER QUALIFIED HEALTH CARE PROFESSIONAL, BEFORE USING OR PERFORMING ANY PRODUCT, SERVICE, PROCEDURE, METHOD OR INFORMATION DISCUSSED IN THE SERVICES.
Fitnesshealthforever and its divisions (collectively “we” or “Fitnesshealthforever”) provides its Internet sites and the content, products and services offered on or through those sites (collectively, the “Services”), to you subject to the following Terms of Service (“TOS”). Your use of the Services in whole or in part constitutes your binding acceptance of these TOS. If you do not agree to these TOS, you should not use the Services. Some Services may be subject to additional posted rules, policies and terms. When you use those Services, you and Fitnesshealthforever shall be subject to those additional conditions, which are incorporated by reference into these TOS (and, consequently, form part of your agreement with us). Other Services may be governed by different usage terms. In the event of an inconsistency between these TOS and any additional posted conditions or separate usage terms, the provisions of the additional conditions and/or separate usage terms shall control. Because we may modify all or any part of these TOS from time to time without notice to you, you should check back often so you are aware of your current rights and responsibilities. Your continued use of a given Service after changes to the TOS have been published on that Service constitutes your binding acceptance of the updated TOS. If at any time the TOS are no longer acceptable to you, you should immediately cease all use of the Services.
The Services include a combination of content that we create and that other third party content suppliers create. In addition, some Services provide you and other users with an opportunity to submit, post, display, transmit and/or exchange information, ideas, opinions, photographs, images, video, creative works or other information, messages, transmissions or material to us or others on or through that Service (collectively, the “Postings”). We adhere to high journalistic standards, and use every reasonable effort to provide informative and relevant content as part of the Services. However, in using the Services, you may be exposed to content that you find offensive, indecent, objectionable or that is inaccurate and you bear all risks associated with using that content. You understand that the Services are provided by Fitnesshealthforever “AS IS”, as further described in Section 15 of these TOS, and that Fitnesshealthforever does not guarantee the accuracy, integrity or quality of any content available on or through the Services. In this regard, you acknowledge that you may not rely on any of this content, whether created by or submitted to Fitnesshealthforever, including, but not limited to, product reviews, white papers, product descriptions, stock quotes, or Postings on any bulletin board, chat, news group, community, forum or other feedback section of the Services (collectively, the “Forums”). You understand that from time to time, you may communicate with, receive communications from, or otherwise participate in or use the services or obtain goods and services of or from, third parties (e.g., advertisers) as a result of your use of the Services. All such communication, interaction and participation is strictly and solely between you and such third party and Fitnesshealthforever shall not be responsible or liable to you in any way in connection with these activities or transactions (including, but not limited to, any representations, warranties, covenants, contracts or other terms or conditions that may exist between you and the third party, or any goods or services you may purchase or obtain from any third party). In particular, the appearance or availability of links to third party sites on or through the Services does not constitute an endorsement by Fitnesshealthforever with respect to the content, advertising, products, or other materials available on or from such sites. You further understand and agree that the Services may include certain communications from Fitnesshealthforever (such as administrative messages and certain newsletters), and that these communications are considered part of the Service and you may not be able to opt out of receiving them. Unless explicitly stated otherwise, any new features that augment or enhance the current Services shall be subject to the TOS. Finally, you are responsible for obtaining access to the Services and that access may involve third party fees (such as Internet service provider or airtime charges). You are responsible for those fees, including those fees associated with the display or delivery of advertisements. In addition, you must provide and are responsible for all equipment necessary to access the Services.
Your use of the Services is subject to all applicable local, state, national and international laws and regulations, and you agree not to violate such laws and regulations. In addition, you agree that:
you will comply with India law regarding the transmission of technical data exported from the India.
you will not use the Services to send or result in the transmission of junk e-mail, chain letters, duplicative or unsolicited messages, or so-called “spamming”; harm minors in any way; promote or generate revenue for any business or commercial purposes, whether or not for a charge or through linking with any other web services or pages, unless authorized by Fitnesshealthforever; impersonate any person or entity; intentionally or unintentionally violate any applicable local, state, national or international law; “stalk” or otherwise harass another;
You will not reproduce, modify, distribute or republish materials contained on the Service (either directly or by linking) without our prior written permission. You will not alter or remove any trademark, copyright or other notice from copies of content. You may, however, download material from the site (one machine readable copy and one print copy per page) for your personal, noncommercial use only. We reserve all rights in and title to all material so downloaded. All trademarks, service marks, trade names, trade dress and logos appearing on the site are the property of their respective owners, including in some instances Fitnesshealthforever.
Although we reserve the right to edit Postings prior to their inclusion on the Services, as a general matter Fitnesshealthforever does not screen or monitor such content. Therefore, you understand that you are solely responsible for all Postings and other materials, whether publicly posted or privately transmitted, that are uploaded, posted, emailed, transmitted or otherwise made available from your email address on our through the Services. You further agree that your Postings will not violate these TOS. Specifically, you represent and warrant that your Postings will not contain any material that:
is false, inaccurate, or misleading; infringes any third party’s copyright, patent, trademark, trade secret or other proprietary rights, or rights of publicity; violates a nondisclosure agreement, or violates any law or regulation (including, without limitation, those governing export control, unfair competition, or false advertising); is defamatory, constitutes trade libel or product disparagement, or is unlawfully threatening or harassing; is obscene or contains child pornography;
contains viruses, Trojan horses, time bombs, worms, cancelbots, easter eggs or other computer programming routines that may damage or interfere with the operation of any system, or unlawfully intercept any data or personal information.
You also agree that you will not:
interfere or attempt to interfere with the proper working of the Services, any activities conducted on or through the Services, or any networks through which you access the Services.
You further represent and warrant that:
you have the full and restricted power to convey such rights to Fitnesshealthforever and its affiliates free and clear of the claims of any other person or entity.
In sum, Postings do not reflect the views of Fitnesshealthforever and Fitnesshealthforever does not verify, endorse, of vouch for any such content. We do, however, enforce these TOS, and if we determine in our sole discretion that any Posting is inaccurate, was posted without authorization, or otherwise does or may violate these TOS, we reserve the right, at any time, without prior notice and without limiting any and all other rights we may have, at law or in equity, to (a) modify, refuse or remove the Posting; (b) revoke the applicable user’s right to use the Services; and/or (d) use any technological, legal, operational or other means available to Fitnesshealthforever to enforce the provisions of these TOS, including, without limitation, blocking specific IP addresses or deactivating the applicable user’s registration.
Finally, you specifically grant to Fitnesshealthforever and its affiliates and service providers (or warrant that the owner of such content grants to Fitnesshealthforever and its affiliates and service providers) a perpetual, worldwide, royalty-free, irrevocable, nonexclusive right and license, sublicensable through multiple tiers, to:
incorporate the Postings and the Image in other works in any form, media or technology now known or later developed throughout the universe, and reproduce, publish, display and otherwise distribute the same.
For sake of clarity, by virtue of the above grant, you also give Fitnesshealthforever and its affiliates permission to copy your Postings and the Image as part of the normal backup process and/or to archive discussions containing your Postings and/or the Image.
All Services software, design, text, images, photographs, illustrations, audio and video material, artwork, graphic material, database, proprietary information and all copyrightable or otherwise legally protectable elements of the Services, including, but not limited to, the selection, sequence and ‘look and feel’ and arrangement of items, and all trademarks, service marks and trade names, excluding any of your Postings (individually and/or collectively, “Material”), are the property of Fitnesshealthforever, its subsidiaries, affiliates, licensors or suppliers and are legally protected, without limitation, under laws, regulations and treaties. The compilation of all content on each site is the exclusive property of Fitnesshealthforever. You may not reproduce, modify, create derivative works from, display, perform, publish, distribute, disseminate, broadcast or circulate to any third party (including, without limitation, on or via a third party web site), or otherwise use, any materials contained on the Services (except for your Postings) without the express prior written consent of Fitnesshealthforever or its owner if Fitnesshealthforever is not the owner. In particular, you may not frame any Material without the express prior written consent of Fitnesshealthforever or the Material owner. You must not alter, delete or conceal any copyright or other notices contained on the Services, including notices on any Material you download, transmit, print or reproduce from the Services. Any unauthorized or prohibited use of any Material, may subject you to civil liability or criminal prosecution, or both, under applicable federal and state laws. You further agree not to access the Service by any means other than through the interface that is provided by Fitnesshealthforever for use in accessing the Service.
Some of our Services give users the opportunity to participate in Forums operated by Fitnesshealthforever or by a third party. We ask that our users exercise appropriate caution when participating in any type of Forum. In particular, please remember that if you publicly disclose personal identifying information, such as your name or email address, in connection with a Forum, the information may be collected and used by others. You should also take reasonable precautions with regard to any material you download from or through Forums (for example, scanning for viruses or other damaging computer programming routines). Finally, you agree to use the Forums only to send and receive messages and material that are proper and related to that particular Forum.
Some of our Services allow users to make some of their personal information (including, but not limited to, name, company affiliation and job title) available to other visitors as part of a membership directory or other listing for that Service. Please remember: If you do not want certain information to be available to other Service users, you should not include it in any membership directory listing. As with all other content on the Services, we reserve the right to refuse (or remove) listings in our sole discretion, and without prior notice, if we determine that they are inaccurate, were posted without authorization, or otherwise violate these TOS.
Some of our Services may from time to time conduct promotions, including, but not limited to, auctions, contests and sweepstakes (“Promotions”). Each Promotion will have additional terms, conditions and rules which will be posted or otherwise made available to you and, for purposes of each Promotion in which you participate, will be deemed incorporated by reference into these TOS (and therefore a part of your agreement with Fitnesshealthforever).
Some of our Services require that you register with that Service in order to access or use it. If such registration is required, you agree that you will provide accurate information (such as your real name and a valid e-mail address) and will update your relevant information if it becomes outdated. If you provide any information that is, or that Fitnesshealthforever in its reasonable discretion determines may be, untrue, inaccurate, not current or incomplete, Fitnesshealthforever has the right, without prior notice, to suspend or terminate your account and refuse any and all current or future use of the Services (or any portion thereof). For more detailed information about how we treat the registration information you provide to us, please see our Privacy Notice, which is incorporated by reference into these TOS (and therefore a part of your agreement with us).
If we issue you a password, you agree to help protect your information by guarding that password, and by changing it as soon as possible if you believe its security has been compromised. If Fitnesshealthforever allows you to choose a username and you select, in Fitnesshealthforever’s sole discretion, one that is obscene, indecent, abusive or which is otherwise objectionable, Fitnesshealthforever has the right, without prior notice to you, to automatically change your username, delete your Postings under it, deny you access to the Services, or any combination of these options. You may not transfer your registration, password or user name to another person or share it with anyone. We will not be responsible for any loss or damage that may result if you fail to comply with these requirements. If you believe your information has been used without your authorization, you agree to notify Fitnesshealthforever immediately.
Fitnesshealthforever respects your privacy. Please see our Privacy Notice for important information and disclosures relating to the collection and use of your personally identifiable information in connection with your use of the Services.
We have the right, but not the obligation, to take any of the following actions in our sole discretion at any time and for any reason without giving you any prior notice:
Restrict, suspend or terminate your access to all or any part of our Services;
Refuse, move or remove for any reason any material that you submit on or through the Services;
Refuse, move, or remove any content that is available on or through the Services;
Deactivate or delete your accounts and all related information and files in your account;
We may take any of the above actions for any legitimate business reason, as determined by Fitnesshealthforever in its sole discretion, including, but not be limited to, (a) breaches or violations of the TOS or other incorporated agreements or guidelines, (b) requests by law enforcement or other government agencies, (c) a request by you, (d) discontinuance or material modification to the Services (or any part thereof), and (e) unexpected technical or security issues or problems. You agree that we will not be liable to you or any third party for taking any of these actions.
You hereby agree to indemnify, defend and hold Fitnesshealthforever, its subsidiaries, parent corporation and affiliates, and all of their respective officers, directors, owners, employees, agents, licensors, representatives, licensors and suppliers (collectively, the “Fitnesshealthforever Parties”), harmless from and against any and all liability, losses, expenses, damages and costs (including attorneys’ fees), incurred by any Fitnesshealthforever Party in connection with any claim arising out of your use of the Services, any use or alleged use of your accounts or your passwords by any person, whether or not authorized by you, the content you submit, post, transmit or make available through the Services, your violation of these TOS, your connection to the Services, or your violation of the rights of any other person or entity.
Fitnesshealthforever reserves the right to assume, at its sole expense, the exclusive defense and control of any claim, action or other matter for which you are required to indemnify us, and all negotiations for settlement or compromise thereof, and you agree to fully cooperate with Fitnesshealthforever in the defense of any such claim, action, settlement or compromise negotiations, as requested by Fitnesshealthforever.
THE SERVICES, AND MATERIALS, PRODUCTS AND POSTINGS ARE MADE AVAILABLE ON AN “AS IS” AND “AS AVAILABLE” BASIS, WITHOUT ANY REPRESENTATION, PROMISE OR WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, OR ANY GUARANTY OR ASSURANCE THE SERVICES WILL BE AVAILABLE FOR USE, OR UNINTERRUPTED OR ERROR FREE, OR THAT ALL PRODUCTS, FEATURES, FUNCTIONS OR OPERATIONS WILL BE AVAILABLE OR PERFORM AS DESCRIBED OR THAT ANY ERRORS WILL BE CORRECTED. IN ADDITION, ANY MATERIAL THAT YOU DOWNLOAD OR OTHERWISE OBTAIN THROUGH OUR SERVICES IS DONE AT YOUR OWN DISCRETION AND RISK, AND YOU WILL BE SOLELY RESPONSIBLE FOR ANY POTENTIAL DAMAGES TO YOUR COMPUTER SYSTEM OR LOSS OF DATA THAT RESULTS FROM YOUR DOWNLOAD OF ANY SUCH MATERIAL. Without limiting the foregoing, Fitnesshealthforever is not responsible or liable for any malicious code, delays, inaccuracies, errors, or omissions arising out of your use of the Services. As between you and Fitnesshealthforever, you are assuming the entire risk as to the quality, accuracy, performance, timeliness, adequacy, completeness, correctness, authenticity, security and validity of any and all features and functions of the Services, including, without limitation, postings and materials associated with your use of the Services. Under no circumstances shall any Fitnesshealthforever Party be liable for any loss or damage caused by your reliance on information obtained through the Services. It is your responsibility to evaluate the information, opinion, advice, or other content available through the Services.
IN NO EVENT SHALL ANY Fitnesshealthforever PARTY BE LIABLE TO YOU OR ANY OTHER PERSON OR ENTITY, UNDER ANY THEORY, INCLUDING NEGLIGENCE, FOR DAMAGES OF ANY KIND ARISING FROM THE USE OF THE SERVICES, INCLUDING BUT NOT LIMITED TO DIRECT, INDIRECT, ACTUAL, INCIDENTAL, PUNITIVE, SPECIAL OR CONSEQUENTIAL DAMAGES, LOST INCOME, REVENUE OR PROFITS, LOST OR DAMAGED DATA, OR OTHER COMMERCIAL OR ECONOMIC LOSS, THAT RESULT FROM YOUR USE OF, OR INABILITY TO USE, THE SERVICES, EVEN IF SUCH Fitnesshealthforever PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES OR SUCH DAMAGES ARE FORESEEABLE. BY USING THE SERVICES, YOU AGREE THAT THIS LIMITATION WILL APPLY TO ANY MERCHANDISE, SERVICES, AND CONTENT THAT MAY BE AVAILABLE THROUGH SUCH SERVICES. IN THE EVENT THAT APPLICABLE LAW DOES NOT ALLOW THE LIMITATION OR EXCLUSION OF LIABILITY OR DAMAGES, YOU AGREE THAT IN NO EVENT SHALL THE TOTAL LIABILITY OF ANY Fitnesshealthforever PARTY TO YOU FOR ALL DAMAGES, LOSSES AND CAUSES OF ACTION OF ANY KIND EXCEED . Notwithstanding any claim that a sole or exclusive remedy which is provided in this agreement may or does fail of its essential purpose, you specifically acknowledge and agree that your sole and exclusive remedy for any loss or damage shall be to have Fitnesshealthforever, upon written notice from you to us, attempt to repair, correct or replace any deficient Service and, if repair, correction or replacement is not reasonably commercially practicable for Fitnesshealthforever, in its sole discretion, to refund any monies actually paid by you for the Service involved and to terminate and discontinue your use of the Services.
General. This site is created, controlled and operated by Fitnesshealthforever in the USA, and is intended solely and exclusively for residents of the United States, its territories and possessions who are at least 13 years of age or older. If you choose to access this site from another location, you are responsible for complying with local laws, if and to the extent that local laws apply.
Entire Agreement. These TOS, including the policies referred to in these TOS, constitute the entire agreement between you and Fitnesshealthforever and govern your use of the Services, superseding any prior agreements between you and Fitnesshealthforever. As noted above, you also may be subject to additional terms and conditions that may apply when you use or purchase certain other Fitnesshealthforever services, affiliate services, third-party content or third-party software. These TOS cannot be changed or terminated orally. Notice. We may be required by state or federal law to notify you of certain events. You hereby acknowledge and consent that such notices will be effective upon our posting them on or through the Services or delivering them to you through email. You may update your email address by visiting the Services where you have provided contact information. If you do not provide us with accurate information, we cannot be held liable if we fail to notify you. You have the right to request that we provide such notices to you in paper format, and may do so by contacting the General Counsel, Fitnesshealthforever , 403, 4th-floor,Tricity Plaza,Peermuchala,Zirakpur,Distt-Mohali(PB)-140603.
Assignment. You agree that the TOS may be automatically assigned, in whole or in part, by Fitnesshealthforever or its affiliate to a third party, in our sole discretion, in connection with a merger, acquisition, reorganization or sale of substantially all of our assets, in whole or in part.
No Third Party Beneficiaries. You agree that, except as otherwise expressly provided in this TOS, there shall be no third party beneficiaries to this Agreement. Waiver and Severability of Terms. The failure of Fitnesshealthforever to exercise or enforce any right or provision of the TOS shall not constitute a waiver of such right or provision. If any provision of the TOS is found by a court of competent jurisdiction to be invalid, the parties nevertheless agree that the court should endeavor to give effect to the parties’ intentions as reflected in the provision, and the other provisions of the TOS remain in full force and effect.
Statute of Limitations. You agree that regardless of any statute or law to the contrary, any claim or cause of action arising out of or related to use of the Service or the TOS must be filed within one (1) year after such claim or cause of action arose or be forever barred.
| english |
Super Micro Computer said on Monday it will review its hardware for any proof of malicious chips as alleged in a recent media report.
"Despite the lack of any proof that a malicious hardware chip exists, we are undertaking a complicated and time-consuming review to further address the article," the chipmaker said in a letter to its customers dated October 18.
A Bloomberg report on October 4 cited 17 unidentified sources from intelligence agencies and businesses that claimed Chinese spies had placed computer chips inside equipment used by about 30 companies, including Apple and Amazon.com and multiple US government agencies, which would give Beijing secret access to internal networks.
Super Micro denied the allegations made in the report.
The report said Apple in 2015 had found malicious chips on Super Micro motherboards and added that Amazon uncovered such chips the same year while examining servers made by Elemental Technologies, which Amazon eventually acquired.
Both Apple and Amazon have denied the allegations. Apple Chief Executive Tim Cook told online news website BuzzFeed on Friday that Bloomberg should retract the story.
Bloomberg, however, said it stood by its report and was confident of its reporting, which was conducted over more than a year.
Security experts as well as the US and UK authorities have said they had no knowledge of the attacks.
Catch the latest from the Consumer Electronics Show on Gadgets 360, at our CES 2024 hub.
| english |
{"resourceType":"DataElement","id":"List.code","meta":{"lastUpdated":"2017-04-19T07:44:43.294+10:00"},"url":"http://hl7.org/fhir/DataElement/List.code","status":"draft","experimental":true,"stringency":"fully-specified","element":[{"id":"List.code","path":"List.code","short":"What the purpose of this list is","definition":"This code defines the purpose of the list - why it was created.","comment":"If there is no code, the purpose of the list is implied where it is used, such as in a document section using Document.section.code.","requirements":"Lists often contain subsets of resources rather than an exhaustive list. The code identifies what type of subset is included.","min":0,"max":"1","type":[{"code":"CodeableConcept"}],"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ListPurpose"}],"strength":"example","description":"What the purpose of a list is","valueSetReference":{"reference":"http://hl7.org/fhir/ValueSet/list-example-codes"}},"mapping":[{"identity":"rim","map":".code"},{"identity":"w5","map":"what"}]}]} | json |
Why you can trust TechRadar We spend hours testing every product or service we review, so you can be sure you’re buying the best. Find out more about how we test.
The whole world and its mother seems to be talking about 3D right now. That's where the hype machine is headed, to an extent unprecedented since the first arrival of HD.
As a result, it would be easy to imagine that 3D is the only interesting new thing happening in the world of TV this year.
But actually, nothing could be further from the truth. For tucked away in a small corner of your nearest quality AV store, probably hidden behind a heaving pile of 3D TVs, you might soon be able to pick out a 'Quattron' TV from Sharp, almost apologetically claiming to be the world's first TV to use Quad Pixel technology.
Yes, we know - it doesn't sound very exciting.
Hardly up there on the AV front with watching Manchester United lose at home to Chelsea in 3D. But we strongly suggest that you don't just wander by these Sharp Quattron sets in search of 3D kicks.
The 821E model we're looking at today sits in the middle of a three-strong set of Quattron ranges.
It's joined by 40-inch and 46-inch versions (the 40LE821E and 46LE821E), while the lower spec LE811E series has just 40-inch and 46-inch models (the 40LE811E and 46LE811E), and lacks the DLNA functionality, the time shift functionality, and the flat-front design.
The top-end LE921 models, meanwhile - which are now delayed until September - add 200Hz to the mix, and will be available in 40-inch (the 40LE921E), 46-inch (the 46LE921E) and 60-inch (the 60LE921E) versions.
John has been writing about home entertainment technology for more than two decades - an especially impressive feat considering he still claims to only be 35 years old (yeah, right). In that time he’s reviewed hundreds if not thousands of TVs, projectors and speakers, and spent frankly far too long sitting by himself in a dark room.
| english |
/* eslint-env jest */
import $rdf from 'rdflib'
import namespaces from 'solid-namespace'
import { getLabel } from './profilePaneUtils'
const ns = namespaces($rdf as any)
describe('getLabel', () => {
it('should return "Edit your profile" by default', () => {
const mockStore = $rdf.graph()
const mockProfile = $rdf.sym('https://mock-profile')
expect(getLabel(mockProfile, mockStore, ns)).toBe('Edit your profile')
})
it('should return "Your profile" when viewing a Person', () => {
const mockStore = $rdf.graph()
const mockProfile = $rdf.sym('https://mock-profile')
mockStore.add(mockProfile, ns.rdf('type'), ns.foaf('Person'), mockProfile.doc())
expect(getLabel(mockProfile, mockStore, ns)).toBe('Your Profile')
})
it('should return "Your profile" when viewing an Individual', () => {
const mockStore = $rdf.graph()
const mockProfile = $rdf.sym('https://mock-profile')
mockStore.add(mockProfile, ns.rdf('type'), ns.vcard('Individual'), mockProfile.doc())
expect(getLabel(mockProfile, mockStore, ns)).toBe('Your Profile')
})
})
| typescript |
from hwtest.shell_utils import run_command
def test_linux_usb3hub():
"""
Test for Linux Foundation 3.0 root hub in `lsusb` output
"""
resp = run_command(["lsusb"])
assert "1d6b:0003" in resp
| python |
#include <stdio.h>
#include <string.h>
#include <arrayfire.h>
#include "../common/progress.h"
using namespace af;
static void vortex(bool console)
{
// seconds to run demo
double time_total = 10;
// initialize parameters
unsigned particles = 10000;
float revolutions = 5.0;
float xAx = 0.7f;
float yAx = 0.3f;
float zD = -0.0025f;
float zero = 0;
array Z = randu(particles);
array T = randu(particles) * 2 * af::Pi;
array X = xAx * Z * cos(T) + 0.5;
array Y = yAx * Z * sin(T) + 0.5;
unsigned iter = 0;
timer t = timer::start();
// While time has not elapsed
while (progress(iter, t, time_total)) {
Z = Z + zD;
// Remove old points and add new points
Z = array(Z < zero) + Z * array(Z >= zero);
// Update the X and Y points
array TEMP = T + 2 * af::Pi * revolutions * .00025 * (iter++);
X = xAx * Z * cos(TEMP) + 0.5;
Y = yAx * Z * sin(TEMP) + 0.5;
if (!console) plot3(X, Z, Y);
else eval(X, Y, Z);
}
}
int main(int argc, char* argv[])
{
int device = argc > 1 ? atoi(argv[1]) : 0;
bool console = argc > 2 ? argv[2][0] == '-' : false;
try {
af::deviceset(device);
af::info();
printf("simulation of a vortex of particles\n");
vortex(console);
} catch (af::exception& e) {
fprintf(stderr, "%s\n", e.what());
throw;
}
#ifdef WIN32 // pause in Windows
if (!console) {
printf("hit [enter]...");
fflush(stdout);
getchar();
}
#endif
return 0;
}
| cpp |
/**
* The base class for a Matrix script error.
*/
export abstract class MatrixScriptError extends Error {
/**
* Constructor for a Matrix Script error.
* @param {string} name Name of the error.
* @param {string} message Message of the error.
*/
constructor(public name: string, public message: string) {
super(`${name}: ${message}`);
}
}
| typescript |
<reponame>nastra/immutables
package org.immutables.data;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface Data {
/**
* This data element should be ignored during reading and writing the data. It is usually a mistake
* to make required attribute having no defaults as ignorable.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface Ignore {}
/**
* Marks that the type is strongly typed alias (newtype) for the other type it wraps.
* For now it requires either single parameter to be inlined or otherwise multiple will be
* "inlined" as heterogeneous array/tuple in their data representation/serialization, in positional
* order, for example. However, in our Datatypes metadata framework we only mark those as such on
* a model level, we leave it up to further codecs/serialization to implement it.
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface Inline {}
}
| java |
<filename>src/display/sfx/glitch.ts
import {Animator} from '../core/animator';
import {Audio} from '../../senses/audio';
import {Vibro} from '../../senses/vibro';
import '../../vendor/glitch/CopyShader';
import '../../vendor/glitch/DigitalGlitch';
import '../../vendor/glitch/EffectComposer';
import '../../vendor/glitch/RenderPass';
import '../../vendor/glitch/MaskPass';
import '../../vendor/glitch/ShaderPass';
import '../../vendor/glitch/GlitchPass';
export class GlitchEffect {
private active: boolean;
private composer: THREE.EffectComposer;
private vibro: Vibro;
constructor(
private animator: Animator,
resolution: THREE.Vector2,
renderer: THREE.Renderer,
scene: THREE.Scene,
camera: THREE.Camera,
private audio: Audio,
pixelRatio: number
) {
this.vibro = new Vibro();
this.composer = new THREE.EffectComposer(renderer);
this.composer.addPass(new THREE.RenderPass(scene, camera));
let glitchPass = new THREE.GlitchPass();
glitchPass.renderToScreen = true;
glitchPass.goWild = true;
this.composer.addPass(glitchPass);
this.composer.setSize(resolution.x * pixelRatio, resolution.y * pixelRatio);
}
public play(duration: number): Promise<any> {
this.active = true;
this.audio.glitch(duration);
this.vibro.play(duration);
return this.animator.play({
duration,
func: _ => this.active = false,
timer: true,
});
}
public render(): boolean {
if (!this.active) return false;
this.composer.render();
return true;
}
}
| typescript |
<reponame>wx-b/dm_robotics
// Copyright 2020 DeepMind Technologies Limited
//
// 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.
#include "dm_robotics/controllers/lsqp/collision_avoidance_constraint.h"
#include "dm_robotics/support/status-matchers.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "absl/container/btree_set.h"
#include "dm_robotics/least_squares_qp/common/identity_task.h"
#include "dm_robotics/least_squares_qp/core/lsqp_stack_of_tasks_solver.h"
#include "dm_robotics/least_squares_qp/testing/matchers.h"
#include "dm_robotics/mujoco/defs.h"
#include "dm_robotics/mujoco/mjlib.h"
#include "dm_robotics/mujoco/test_with_mujoco_model.h"
#include "dm_robotics/mujoco/utils.h"
#include "Eigen/Core"
namespace dm_robotics {
namespace {
using CollisionAvoidanceConstraintTest =
::dm_robotics::testing::TestWithMujocoModel;
using ::dm_robotics::testing::LsqpConstraintDimensionsAreValid;
using ::testing::DoubleEq;
using ::testing::DoubleNear;
using ::testing::Each;
using ::testing::Ge;
using ::testing::Pointwise;
absl::btree_set<std::pair<int, int>> GetAllGeomPairs(const mjModel& model) {
absl::btree_set<std::pair<int, int>> geom_pairs;
for (int i = 0; i < model.ngeom; ++i) {
for (int j = i + 1; j < model.ngeom; ++j) {
geom_pairs.insert(std::make_pair(i, j));
}
}
return geom_pairs;
}
// Returns the Jacobian mapping the joint velocities to the normal linear
// velocity between both objects in a specified contact.
Eigen::MatrixXd ComputeContactNormalJacobianForJoints(
const MjLib& lib, const mjModel& model, const mjData& data,
const mjContact& contact, const absl::btree_set<int>& joint_ids) {
// We need a vector of DoF IDs for indexing Eigen::VectorXd.
absl::btree_set<int> dof_ids = JointIdsToDofIds(model, joint_ids);
std::vector<int> dof_ids_vector(dof_ids.begin(), dof_ids.end());
// Get the contact normal Jacobian for all the joints.
// This Jacobian maps joint velocities to the linear Cartesian velocity at
// which the geoms move away from each other.
std::vector<double> jacobian_buffer(3 * model.nv);
Eigen::MatrixXd jacobian(1, model.nv);
ComputeContactNormalJacobian(
lib, model, data, contact, absl::MakeSpan(jacobian_buffer),
absl::MakeSpan(jacobian.data(), jacobian.size()));
// Index the complete Jacobian to get a subset of joints.
// We multiply by -1.0 to ensure that the Jacobain maps joint velocities to
// the velocity of the geoms towards each other, not away from each other.
return -1.0 * jacobian(Eigen::indexing::all, dof_ids_vector);
}
TEST_F(CollisionAvoidanceConstraintTest,
CoefficientMatrixAndBoundsDimensionsAndValuesAreValid) {
LoadModelFromXmlPath(kDmControlSuiteHumanoidXmlPath);
// Initialize constraint.
CollisionAvoidanceConstraint::Parameters params;
params.lib = mjlib_;
params.model = model_.get();
params.collision_detection_distance = 1.0;
params.minimum_normal_distance = 0.05;
params.gain = 0.85;
params.bound_relaxation = -1.0e-3;
for (int i = 1; i < model_->njnt; ++i) {
params.joint_ids.insert(i);
}
params.geom_pairs = GetAllGeomPairs(*model_);
CollisionAvoidanceConstraint constraint(params, *data_);
// Ensure dimensions are valid.
int max_num_contacts =
ComputeMaximumNumberOfContacts(*model_, params.geom_pairs);
EXPECT_THAT(constraint, LsqpConstraintDimensionsAreValid());
EXPECT_EQ(constraint.GetNumberOfDof(), params.joint_ids.size());
EXPECT_EQ(constraint.GetBoundsLength(), max_num_contacts);
// The lower-bound should be -infinity everywhere.
EXPECT_THAT(
constraint.GetLowerBound(),
Pointwise(DoubleEq(),
std::vector<double>(max_num_contacts,
-std::numeric_limits<double>::infinity())));
// The upper bound should always be greater or equal to the bound relaxation
// parameter.
EXPECT_THAT(constraint.GetUpperBound(), Each(Ge(params.bound_relaxation)));
}
// Tests that the coefficient matrix and bounds have the expected values in
// the rows that do not have contacts.
TEST_F(CollisionAvoidanceConstraintTest,
CoefficientMatrixAndBoundsValuesAsExpectedInRowsWithNoContacts) {
LoadModelFromXmlPath(kDmControlSuiteHumanoidXmlPath);
// Initialize constraint.
CollisionAvoidanceConstraint::Parameters params;
params.lib = mjlib_;
params.model = model_.get();
params.collision_detection_distance = 0.3;
params.minimum_normal_distance = 0.05;
params.gain = 0.85;
for (int i = 1; i < model_->njnt; ++i) {
params.joint_ids.insert(i);
}
params.geom_pairs = GetAllGeomPairs(*model_);
CollisionAvoidanceConstraint constraint(params, *data_);
// Ensure that the number of detected contacts in the current configuration
// is not zero, for this test to be valid.
int max_num_contacts =
ComputeMaximumNumberOfContacts(*model_, params.geom_pairs);
std::vector<mjContact> contacts(max_num_contacts);
ASSERT_OK_AND_ASSIGN(
int num_contacts,
ComputeContactsForGeomPairs(*mjlib_, *model_, *data_, params.geom_pairs,
params.collision_detection_distance,
absl::MakeSpan(contacts)));
ASSERT_NE(num_contacts, 0);
// The bottom rows corresponding to the number of empty contacts of the
// coefficient matrix must be zero.
ASSERT_EQ(constraint.GetCoefficientMatrix().size(),
max_num_contacts * params.joint_ids.size());
Eigen::Map<const Eigen::MatrixXd> coefficient_matrix(
constraint.GetCoefficientMatrix().data(), max_num_contacts,
params.joint_ids.size());
EXPECT_EQ(coefficient_matrix.bottomRows(max_num_contacts - num_contacts),
Eigen::MatrixXd::Zero(max_num_contacts - num_contacts,
params.joint_ids.size()));
// The bottom rows corresponding to the number of empty contacts of the
// upper bound must be infinity.
absl::Span<const double> upper_bound_bottom_rows(
constraint.GetUpperBound().data() + num_contacts,
max_num_contacts - num_contacts);
EXPECT_THAT(
upper_bound_bottom_rows,
Pointwise(DoubleEq(),
std::vector<double>(max_num_contacts - num_contacts,
std::numeric_limits<double>::infinity())));
}
// Tests that the coefficient matrix and bounds have the expected values in
// the rows that do not have contacts.
TEST_F(CollisionAvoidanceConstraintTest,
CoefficientMatrixValuesAsExpectedInRowsWithContacts) {
LoadModelFromXmlPath(kDmControlSuiteHumanoidXmlPath);
// Initialize constraint.
CollisionAvoidanceConstraint::Parameters params;
params.lib = mjlib_;
params.model = model_.get();
params.collision_detection_distance = 0.3;
params.minimum_normal_distance = 0.05;
params.gain = 0.85;
for (int i = 1; i < model_->njnt; ++i) {
params.joint_ids.insert(i);
}
params.geom_pairs = GetAllGeomPairs(*model_);
CollisionAvoidanceConstraint constraint(params, *data_);
// Ensure that the number of detected contacts in the current configuration
// is not zero, for this test to be valid.
int max_num_contacts =
ComputeMaximumNumberOfContacts(*model_, params.geom_pairs);
std::vector<mjContact> contacts(max_num_contacts);
ASSERT_OK_AND_ASSIGN(
int num_contacts,
ComputeContactsForGeomPairs(*mjlib_, *model_, *data_, params.geom_pairs,
params.collision_detection_distance,
absl::MakeSpan(contacts)));
ASSERT_NE(num_contacts, 0);
// Every row of the coefficient matrix should be the jacobian, in order,
// corresponding to each contact.
ASSERT_EQ(constraint.GetCoefficientMatrix().size(),
max_num_contacts * params.joint_ids.size());
Eigen::Map<const Eigen::MatrixXd> coefficient_matrix(
constraint.GetCoefficientMatrix().data(), max_num_contacts,
params.joint_ids.size());
for (int i = 0; i < contacts.size(); ++i) {
// We don't expect but Jacobians to be exactly the same, but they should be
// within a very tight tolerance of each other.
Eigen::MatrixXd jacobian = ComputeContactNormalJacobianForJoints(
*mjlib_, *model_, *data_, contacts[i], params.joint_ids);
EXPECT_THAT(coefficient_matrix.row(i),
Pointwise(DoubleNear(1.0e-10), jacobian.row(0)));
}
}
} // namespace
} // namespace dm_robotics
| cpp |
{"HandbagOfHurt": ["ImprovisedWeapon", "WhenEldersAttack", "BriefcaseBlaster", "CatFight", "WimpFight", "NeverMessWithGranny", "DistressedDude", "BitchInSheepsClothing", "IdolSinger", "FromBadToWorse", "SquishyWizard", "MadeOfIron", "EstablishingCharacterMoment", "SenselessViolins", "DistressedDude", "BitchInSheepsClothing", "ItMakesSenseInContext", "BigBad", "PaedoHunt", "ShowWithinAShow", "ThoseTwoGuys", "TapOnTheHead", "FooFu", "PetTheDog", "Transgender", "TranquilFury", "AWildRapperAppears", "ItMakesSenseInContext", "DropTheHammer", "EscortMission", "AbusiveParents", "SwissArmyWeapon", "BriefcaseBlaster", "GatlingGood", "CurbStompBattle", "CurbStompBattle", "CurbStompBattle", "DangerTakesABackSeat", "AllMenArePerverts", "PoliticiansKissBabies", "DisguisedInDrag", "Expy", "BadassBystander", "TertiarySexualCharacteristics", "TheCasanova", "AllMenArePerverts", "PoliticiansKissBabies", "DisguisedInDrag", "ObstructiveBureaucrat"]} | json |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.