text stringlengths 1 1.04M | language stringclasses 25 values |
|---|---|
import * as React from "react";
export default (
<path fillRule="evenodd" clipRule="evenodd" d="M16.4805 16.48C16.3345 16.626 16.1425 16.7 15.9505 16.7C15.7575 16.7 15.5665 16.626 15.4195 16.48L7.5195 8.581C7.2265 8.288 7.2265 7.813 7.5195 7.52C7.8125 7.227 8.2875 7.227 8.5805 7.52L16.4805 15.419C16.7735 15.712 16.7735 16.187 16.4805 16.48ZM12.0005 3C7.0375 3 3.0005 7.037 3.0005 12C3.0005 16.962 7.0375 21 12.0005 21C16.9625 21 21.0005 16.962 21.0005 12C21.0005 7.037 16.9625 3 12.0005 3Z" />
);
| javascript |
<gh_stars>10-100
{
"title": "Covered beaker",
"creation_date": "c. 1715",
"creation_date_earliest": "1705-01-01",
"creation_date_latest": "1725-01-01",
"medium": "porcelain",
"accession_number": "85.63.A-B",
"id": "cmoa:things/ad244c3b-7e2d-477e-b418-1e6eb1b77179",
"credit_line": "Berdan Memorial Trust Fund",
"date_acquired": "1985-12-05",
"department": "Decorative Arts and Design",
"physical_location": "Gallery 2, Scaife Galleries",
"item_width": 0.0,
"item_height": 13.438,
"item_depth": 0.0,
"item_diameter": 6.0,
"web_url": "http://collection.cmoa.org/CollectionDetail.aspx?item=1025715",
"provenance_text": "Kate Foster Ltd., London, England",
"classification": "Ceramics",
"images": [
{
"image_url": "http://collection.cmoa.org/CollectionImage.aspx?irn=97555&size=Medium"
},
{
"image_url": "http://collection.cmoa.org/CollectionImage.aspx?irn=11627&size=Medium"
},
{
"image_url": "http://collection.cmoa.org/CollectionImage.aspx?irn=4090&size=Medium"
}
],
"creator": [
{
"artist_id": "cmoa:parties/db4da361-9480-44a0-8046-c7c47de2b5f5",
"party_type": "Person",
"full_name": "<NAME>",
"cited_name": "<NAME>.",
"role": "modeler",
"nationality": "German",
"birth_date": "1635-01-01",
"death_date": "1724-01-01",
"birth_place": null,
"death_place": null
},
{
"artist_id": "cmoa:parties/bac81e19-3c15-42a0-9d74-e02ddaa19376",
"party_type": "Organization",
"full_name": "<NAME>",
"cited_name": "<NAME>",
"role": "manufacturer",
"nationality": "German",
"birth_date": "1710-01-01",
"death_date": null,
"birth_place": "Meissen (Saxony, Germany)",
"death_place": null
}
]
}
| json |
# An Overview
## What is git?
Git is a piece of software that helps organize and track changes to files over time (usually text based files, like code), and helps multiple users work on the same projects, without stepping on each others' toes. Git is run from the command line (by default the [Terminal](http://en.wikipedia.org/wiki/Terminal_%28OS_X%29) on Macs and the [Command Prompt](http://en.wikipedia.org/wiki/Cmd.exe) on PCs), usually by running `git`, followed by another key word, then often followed by various options.
## What is github?
Github is a website (you're on it now!) that provides a visual interface for git, as well as hosting the files that make up a project. *One* version of these files is hosted on github servers (called the *remote* version), but in almost every case there are many other versions on various other computers (called *clones*). For example, on my computer at work I have a version of these files, and another version on my computer at home. When you follow these tutorials, you'll have your own version(s). As we work on the files, at various times we will sync them up with the remote version that is on github, by **pushing** the changes we make to github and **pulling** down the changes other users make to the remote version.
I go over a few nice github features in [another document](working.md), but most of what we'll talk about is specific to git, not github. Almost all of the functions and commands we talk about are still valid when using services such as [bitbucket](https://bitbucket.org/) or [gitlab](https://about.gitlab.com/).
Many [open-source software projects](http://en.wikipedia.org/wiki/Free_and_open-source_software) are hosted on github (or bitbucket and other git hosting services). Personally, I am a passionate proponent for open-source software, working in the open, and the open data movement. I'd be happy to chat more about the whys and the hows of open-source development, and [many](https://github.com/18F/open-source-policy/blob/master/policy.md) [other](http://www.gnu.org/gnu/manifesto.html) [folks](https://okfn.org/opendata/why-open-data/) have written more eloquently and thorougly than I ever could.
Most software developers write their code using git, sometimes in public, sometimes in private (charging for private hosting is one way github makes money). The more you work with git, the more invaluable it will become to you.
## Overview
In the [main tutorial](working.md), there's a ton of information and steps to follow. Here, I'll just give a quick overview of the fundamental git workflow. Let's say you're working on some files, on your local clone, and want to sync up with the remote version on github:
### git add
Flag certain file(s) as ready to be synced
### git commit
Lump all your changes together, and write a message describing the changes
### git pull
Retreive changes other users have sent to the remote repo
### git push
Send your changes to the remote repo
There's a lot of terminology, you'll get used to it! I also put together a [glossary](glossary.md) of the terms in this tutorial, which you can refer back to.
### NEXT: [Getting started](setup.md) | markdown |
"""Support for the Airzone diagnostics."""
from __future__ import annotations
from typing import Any
from aioairzone.const import AZD_MAC
from homeassistant.components.diagnostics.util import async_redact_data
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from .const import DOMAIN
from .coordinator import AirzoneUpdateCoordinator
TO_REDACT = [
AZD_MAC,
]
async def async_get_config_entry_diagnostics(
hass: HomeAssistant, config_entry: ConfigEntry
) -> dict[str, Any]:
"""Return diagnostics for a config entry."""
coordinator: AirzoneUpdateCoordinator = hass.data[DOMAIN][config_entry.entry_id]
return {
"info": async_redact_data(config_entry.data, TO_REDACT),
"data": async_redact_data(coordinator.data, TO_REDACT),
}
| python |
from django.contrib.auth import get_user_model
from django.contrib.auth.decorators import login_required, user_passes_test
from django.shortcuts import render, get_object_or_404
from home_logs.property.models import House, Space
from home_logs.custom_auth.models import Token
def allowed(user):
CustomUser = get_user_model()
return CustomUser.objects.filter(id=user.id, allow_panel=True)
@user_passes_test(allowed, login_url='user:auth_login')
@login_required
def home(request):
houses = House.objects.filter(owner=request.user)
data = {
"houses": houses,
}
return render(request, 'private/home.html', data)
@user_passes_test(allowed, login_url='user:auth_login')
@login_required
def house(request, uuid=None):
house = House.objects.get(owner=request.user, uuid=uuid)
data = {
"house": house,
}
return render(request, 'private/house_specific.html', data)
@user_passes_test(allowed, login_url='user:auth_login')
@login_required
def spaces(request):
spaces = Space.objects.filter(owner=request.user)
data = {
"spaces": spaces,
}
return render(request, 'private/spaces.html', data)
@user_passes_test(allowed, login_url='user:auth_login')
@login_required
def space(request, uuid=None):
space = get_object_or_404(Space, uuid=uuid, owner=request.user)
token = Token.objects.filter(user=request.user).last() # fix this
data = {
"space": space,
"token": token.key
}
return render(request, 'private/space.html', data)
| python |
{
"ideas.headerMessage": "Què seràs capaç de crear?",
"ideas.headerButtonMessage": "Tria un tutorial",
"ideas.gettingStartedTitle": "Comença",
"ideas.gettingStartedText": "Nou a Scratch? Prova el tutorial d'iniciació.",
"ideas.tryIt": "Prova-ho!",
"ideas.activityGuidesTitle": "Guies d'activitats",
"ideas.activityGuidesText": "Què vols crear amb Scratch? Per a cada activitat, pots provar el Tutorial, descarregar un conjunt de Targetes de programació, o mira la Guia de docent.",
"ideas.animateANameTitle": "Anima un nom",
"ideas.animateANameDescription": "Anima les lletres del teu nom, inicials o la teva paraula preferida.",
"ideas.animateACharacterTitle": "Anima un personatge",
"ideas.animateACharacterDescription": "Dona vida als personatges amb animacions.",
"ideas.makeMusicTitle": "Crea música",
"ideas.makeMusicDescription": "Tria instruments, afegeix sons, i prem tecles per interpretar música.",
"ideas.createAStoryTitle": "Crea una història",
"ideas.createAStoryDescription": "Tria personatges, afegeix diàleg, i dóna vida a la teva història.",
"ideas.chaseGameTitle": "Fes un joc de persecució",
"ideas.chaseGameDescription": "Crea un joc d'atrapar un personatge per guanyar punts.",
"ideas.videoSensingTitle": "Captura de vídeo",
"ideas.videoSensingDescription": "Interacciona amb un projecte usant l'extensió Captura de vídeo.",
"ideas.seeAllTutorials": "Mira tots els tutorials",
"ideas.cardsTitle": "Obtén el conjunt sencer de targetes de programació",
"ideas.cardsText": "Amb les targetes de programació de Scratch, pots aprendre a crear jocs interactius, històries, música, animacions, i més!",
"ideas.starterProjectsTitle": "Projectes d'inici",
"ideas.starterProjectsText": "Pots jugar amb els projectes d'inici i reinventar-los per fer les teves creacions.",
"ideas.starterProjectsButton": "Explora els projectes d'inici",
"ideas.tryTheTutorial": "Prova el tutorial",
"ideas.codingCards": "Targetes de programació",
"ideas.educatorGuide": "Guia de Docent",
"ideas.desktopEditorHeader": "Scratch App Download",
"ideas.desktopEditorBody": "To create projects without an Internet connection, you can <a href=\"/download\">download the Scratch app</a>.",
"ideas.questionsHeader": "Preguntes",
"ideas.questionsBody": "Tens més dubtes? Mira la pàgina de <a href=\"/info/faq\">Preguntes més freqüents</a> o visita <a href=\"/discuss/7/\">l'Ajuda amb el fòrum de programes</a>",
"ideas.cardsPurchase": "Compra el conjunt imprès",
"ideas.MakeItFlyTitle": "Fes-lo volar",
"ideas.MakeItFlyDescription": "Anima el gat de Scratch, les Supernenes, o fins i tot un taco!",
"ideas.RaceTitle": "Cursa a la Final",
"ideas.RaceDescription": "Crea un joc en el que dos personatges competeixin entre ells.",
"ideas.HideAndSeekTitle": "Fet i Amagar",
"ideas.HideAndSeekDescription": "Crea un joc de fet i amagar amb personatges que apareguin i desapareguin.",
"ideas.FashionTitle": "Joc de la moda",
"ideas.FashionDescription": "Vesteix un personatge amb diferents peces de roba i estils.",
"ideas.PongTitle": "Joc del Pong",
"ideas.PongDescription": "Crea un joc de pilota que rebota amb sons, punts, i altres efectes.",
"ideas.DanceTitle": "Ballem",
"ideas.DanceDescription": "Crea una escena de ball animada amb música i moviments de ball.",
"ideas.CatchTitle": "Joc d'agafar",
"ideas.CatchDescription": "Crea un joc en el que agafis objectes que cauen del cel.",
"ideas.VirtualPetTitle": "Animal de companyia virtual",
"ideas.VirtualPetDescription": "Crea un animal de companyia interactiu que pugui menjar, beure, i jugar."
} | json |
As many as 5. 52 crore accounts have been opened and a deposit of Rs. 4268 crore has been mobilized under the Pradhan Mantri Jan Dhan Yojana (PMJDY) as on Tuesday, October 7.
This information was disclosed at a review meeting of the PMJDY held by the Mission Director with the Executive Directors and other senior officers of public sector banks and major private sector banks on Thursday.
The meeting was also attended by representatives of National Payments Corporation of India, Indian Banks Association, UIDAI and Industry representatives (SCAFI).
The Union Territories of Chandigarh, Puducherry and the three districts of Gujarat – Porbandar, Mehsana and Gandhi Nagar have reported that at least one bank account of all households has been opened thereby making these areas fully saturated in PMJDY.
The review meeting emphasized the early issue of RuPay Debit Cards, e-KYC based account opening, Aadhaar seeding and the progress in survey made in the rural as well as urban areas.
During the review, setting up of banking facilities through the Bank Mitras as envisaged in PMJDY was emphasized. Senior Officers were asked to visit the field locations, carry out physical verification of the Bank Mitras.
Banks have also been asked to ensure that the Banks Mitras have proper visibility, uniforms, Aadhaar Enabled Machines and proper signage board indicating the availability of banking facilities under PMJDY.
The survey work was found to be satisfactory except in the States of Maharashtra and Haryana where this has been stopped in view of the Assembly elections.
All banks were also asked to ensure ground level publicity including wall painting and other relevant media to disseminate the message of PMJDY, said a press release issued by Press Information Bureau on Friday. | english |
Being part of a startup is a steep learning curve. Limited access to manpower results in employees juggling between different roles and responsibilities. Also the fact that everyone is new at their jobs, makes the workplace chaotic yet exciting.
Flat pecking order, erratic work timings, multi-tasking and a lively work culture are some of the factors that make working at a startup enriching yet stressful. A startup employee should be ready to take multiple roles, making it easy for one to burn out. With these steps, one can gain peace of mind even while having several deadlines to meet.
Breaks are necessary: One cannot stress enough upon the importance of break. Unfortunately, startups demand full attention in the initial phases of their inception, making it difficult to take breaks. One often gets into the zone and finds it taxing to snap out. Taking a break is crucial for productivity as it will induce some clarity into a chaotic thought process. Timely breaks help prepare one to confront problems head on.
Learn the art of streamlining work: Overstretching is a common phenomenon, with lack of work power contributing to multitasking. Being proactive is beneficial for growth, but has its limits. Growing a business takes time. Therefore, it is pointless to add more and more work rendering it impossible to provide quality service. A smart move would be finishing what’s at hand and then take on extra work, according to the abilities of the said person. After all, Rome wasn’t built in a day and a successful business is no exception.
Intelligent use of limited resources: Every well-established company has had its humble beginnings. A limited resource makes one think on the feet and come up with creative ways to utilise it. Similar to an open canvas, being part of a startup teaches one about financial insurances and resource management, at the same platform. Resource management is a foundation block on which growth of a startup is built.
Learning the art of diligence: As teams in a startup are generally small, multitasking is the crux of automation. Yet, one tends to get swept away in the tide of burgeoning work pressure, along with deadlines looming behind. Thus, with time, one learns the important lesson in being diligent - delivering quality product in a timely fashion. The point to take home is that every contribution makes a difference in the end product and thus the sense of pride in ownership is high.
Learn to trust your instincts: As you progress in the arena of startups, it is easy to get overworked from the plethora of inputs coming from various employees. This can be a cause of blockage in a goal oriented plan and hence cause unnecessary stress. One should know where to draw a line to prevent themselves from being frazzled through information overload. A chaos in workflow hampers productivity. Hence, making a decision based on calculated risk-taking is a skill that will prove valuable at this time.
Have a creative mind: The oft-taken path maybe an easy way to get a quick response, but it can make work look like a chore. Inject fun into work, through innovative fresh alternatives to tried tested ways. This helps in flexibility of thought process, keeping it away from stress. There are radical ways of going about pounding the pavement to create awareness and spread the word. Alternative ideas make way for new opportunities to project success.
Failures are a stepping stone to success: Every year, hordes of freshly graduates join startups in the hopes of contributing to the dynamic workforce. Yet, they crumble down at the first hint of failure. The key to working stress-free is to realise that failures are a common thing. Nine out of 10 startups fail, according to Fortune magazine. Joining a startup company entitles its employees to go through its ups and downs, collectively. Cowering at the sight of failure is a sign of instability. Failures are a great way of learning what works according to the demands. This helps strive for better results, keeping stress at bay.
It is often said that startups are of a volatile kind, yet the risk comes with innate knowledge. Being part of a team that’s builds a new product teaches you to be independent, flexible, resilient and make the most out of scarce resources. Also startups are rewarding for those who grew with them, holding on from day one. Being associated to a startup can add considerably to both professional as well as survival skills.
(Disclaimer: The views and opinions expressed in this article are those of the author and do not necessarily reflect the views of YourStory.)
| english |
#! /usr/bin/env python3
"""
constants.py - Contains all constants used by the device manager
Author:
- <NAME> (<EMAIL> at <EMAIL> dot <EMAIL>)
Date: 12/3/2016
"""
number_of_rows = 3 # total number rows of Index Servers
number_of_links = 5 # number of links to be sent to Crawler
number_of_chunks = 5 # number of chunks to be sent to Index Builder
number_of_comps = 10 # number of components managed by each watchdog
| python |
ECI vs WAR Dream11 Prediction, Fantasy Cricket Tips, Playing XI, Pitch Report, Dream11 Team, and Injury Update of CSA Provincial T20 Cup’s match between Eastern Cape Linyathi and Warriors.
ECI vs WAR CSA Provincial T20 Cup Match Preview:
Eastern Cape Linyathi will lock horns with Warriors in the 18th match of the CSA Provincial T20 Cup, at the Diamond Oval, Kimberley on Wednesday.
Both the Warriors and Eastern Cape Iinyathi have won one and lost one game each.
Warriors beat Limpopo Impalas by 120 runs in their last game while Eastern Cape Iinyathi went down by 18 runs against Rocks. All in all, a crackerjack of a match is on the cards.
ECI vs WAR CSA Provincial T20 Cup Match Details:
ECI vs WAR CSA Provincial T20 Cup Pitch Report:
Diamond Oval in Kimberley is known for producing belters. Bowlers need to spend some hard time during the course of the game. Pace bowlers are expected to reap benefits in the later stages of the game. But batters are expected to dominate the game right from ball one.
ECI vs WAR CSA Provincial T20 Cup Probable Playing XIs:
Top Picks for ECI vs WAR CSA Provincial T20 Cup Dream11 Prediction and Fantasy Cricket Tips:
Marco Marais is a very impactful opening batsman for Eastern Cape Iinyathi. He batted superbly to score 65 runs in the previous match against Limpopo Impalas. He will be the captain for this match.
As expected, Thandolwethu Mnyaka stepped up with the ball for Eastern Cape Iinyathi against Limpopo Impalas. He bagged two wickets in that match. Watch out for him in this match.
Gideon Peters has bowled well to take three wickets in two matches. For 8.5 credits, he is a decent budget pick.
Wicket-keeper batsman Mncedisi Malika will be the lone keeper for this match. He has made 47 runs from two matches.
Clayton Bosch bounced back with an impressive all-round effort against Rocks. He has contributed 20 runs and three scalps so far.
Eastern Cape Iinyathi skipper Jerry Nqolo stepped up big time with a cracking fifty. However, his knock went in vain as Eastern Cape Iinyathi lost to the Rocks by 18 runs.
Mthiwekhaya Nabe has been the most successful bowler for Warriors. He picked up one wicket against Limpopo Impalas. Nabe has taken four wickets from two matches.
Wihan Lubbe is an excellent batting all-rounder for the Warriors. He struck 65 runs in quick time against Limpopo Impalas. His ability to score runs at a faster rate makes him a top pick.
Warriors’ opener Matthew Breetzke is one of the most consistent batters in the domestic circuit. He is off to a pretty good start to this tournament with back-to-back fifty-plus scores. Breetzke will be the vice-captain for this fixture.
Experienced all-rounder JJ Smuts is a must-have pick. He starred with an impressive all-round knock of 52 runs and two wickets against Limpopo Impalas. Overall, Smuts has come up with 99 runs and two scalps from two matches. He will be the captain for this match.
Young leg-spinner Kyle Jacobs returned to wicket-taking ways as he bagged two wickets in the previous match against Limpopo Impalas. Watch out for him in this fixture.
ECI vs WAR CSA Provincial T20 Cup Must Picks for Dream11 Team Prediction:
|Statistics (Last 5 matches)
ECI vs WAR CSA Provincial T20 Cup Captain and Vice-Captain Choices:
Suggested Playing XI No.1 for ECI vs WAR Dream11 Team:
Suggested Playing XI No.2 for ECI vs WAR Dream11 Team:
ECI vs WAR CSA Provincial T20 Cup Probable Winner:
Warriors are expected to win this match of the CSA Provincial T20 Cup.
Disclaimer: This team is based on the understanding, analysis, and instinct of the author. While selecting your team, consider the points mentioned and make your own decision.
| english |
package pkg
const ServiceName = "mtz-crypto"
const Version = "0.1.0"
| go |
{
"out": [
"/bin/DiscordChatExporter.Cli",
"/lib/discordchatexporter-cli/CliFx.dll",
"/lib/discordchatexporter-cli/DiscordChatExporter.Cli",
"/lib/discordchatexporter-cli/DiscordChatExporter.Cli.deps.json",
"/lib/discordchatexporter-cli/DiscordChatExporter.Cli.dll",
"/lib/discordchatexporter-cli/DiscordChatExporter.Cli.pdb",
"/lib/discordchatexporter-cli/DiscordChatExporter.Cli.runtimeconfig.json",
"/lib/discordchatexporter-cli/DiscordChatExporter.Core.dll",
"/lib/discordchatexporter-cli/DiscordChatExporter.Core.pdb",
"/lib/discordchatexporter-cli/Gress.dll",
"/lib/discordchatexporter-cli/JsonExtensions.dll",
"/lib/discordchatexporter-cli/MiniRazor.Runtime.dll",
"/lib/discordchatexporter-cli/Polly.dll",
"/lib/discordchatexporter-cli/Spectre.Console.dll",
"/lib/discordchatexporter-cli/Superpower.dll",
"/lib/discordchatexporter-cli/Tyrrrz.Extensions.dll",
"/lib/discordchatexporter-cli/Wcwidth.dll"
]
} | json |
export const launch24 = "M2 2h11v1H3v18h18V11h1v11H2zm20 6V2h-6v1h4.3l-8.41 8.403.707.707L21 3.714V8z";
| javascript |
Watching birds is an easy way to get children outdoors, whether it is to a neighbourhood lake or park, or in the school campus.
What are your earliest memories of nature and wildlife? I grew up in cities, but I do remember a langur once entering our house; a kingfisher and golden oriole seen from our balcony; catching fireflies in the dark and watching them twinkle.
Children have an innate affinity to nature and a curiosity about the natural world. Unfortunately, this connection is often lost when growing up. If nurtured, however, a child’s association with nature can last a lifetime and lead to several physical and emotional benefits.
There is a growing body of research indicating that direct exposure to nature is essential for healthy childhood development, and improves focus, observation skills and mental health.
On the other hand, the lack of nature exposure that is an alarming aspect of modern life results in what has been called ‘nature deficit disorder’, which is linked to various childhood trends like a rise in obesity, depression and attention disorders.
But what is nature and how can one connect with it? Contrary to what we might think, nature and wildlife isn’t just out there in the forests and wildlife sanctuaries but really all around us in the form of insects, reptiles and birds. Watching birds is an easy way to get children outdoors, whether it is to a neighbourhood lake or park, or in the school campus.
Birds provide a window to nature: they remind us of our connection to the planet. They excite our curiosity and our imagination with their beautiful colours and their enchanting songs. Many birds undertake heroic feats of migration annually, but even their everyday behaviours can provide an endless source of enjoyment and inspiration to us all.
If you are a teacher or a parent wanting to bring your students or child closer to the natural world, birds can be a perfect starting point in this journey. Don’t feel limited by your own lack of knowledge, as you don’t need to be an expert. All you need is an open mind and a lot of patience and curiosity to attune your eyes and ears to the avian sights and sounds around you!
In fact, discovering and learning about birds together with your students can be an immensely rewarding and enjoyable experience for all.
Binoy is a teacher in a Government middle school in Nazira Assam. His own interest in birds led him to design different activities for the school children. One of the most popular activities is called ‘Bird Bingo’ where he makes small groups of 3-4 children, gives them a Bingo sheet, a pencil and a notebook and sends them out to explore the school campus.
While playing the game they also make notes of whatever they observe on the walk. Children are encouraged to share their experiences once they are back in the classroom. There are small prizes for the winners.
Activities like ‘Bird Bingo’ that don’t focus on identification of birds/ nature but on careful observation and documentation can be a good way to get children to explore the natural world around them.
Games are a valuable tool to make learning fun, and there are many innovative ones developed by Indian wildlife conservation organisations as educational resources.
‘What’s That Bird?’ is a flashcards game that introduces 40 common bird species that are found in India. ‘Shell shocker’ is a card game about turtles, while ‘Snake-a-doo’ is a twist on snakes and ladders, designed for snake awareness. These can be purchased online, but there are also many free resources that you can download and print yourself for use in your classroom.
Using art and creative activities also works wonders with children of all age groups. Art stimulates children to observe, feel, and become more sensitive while allowing them to use all their senses.
You can introduce children to nature journaling or experiment with craft, poetry and skits about nature. Children can create their own puppets out of waste material, come up with stories and put up a performance for the school.
A bird/nature themed event could be planned to coincide with any of these days: World Environment Day (June 5th), Dr. Salim Ali’s birthday, celebrated as National Birdwatching Day in India (Nov 12th), Great Backyard Bird Count (Feb 16-19th, 2024).
None of these activities requires a knowledge of bird identification. However, it may be helpful for the educator to be familiar with the common birds of India, their natural history, and any cultural references that may particularly resonate with those new to birds.
A broad familiarity with these aspects will allow you to be flexible in your education work, adjusting what you talk about depending on what your audience seems most interested in. For example, if a child asks you about the intelligence of crows, you might recall the Panchatantra story about the crow and the pitcher of water.
There are several simple resources that you can refer to while learning about the common birds in your neighbourhood. There are free apps which give you guidance in this regard. The most popular one is Merlin, which you can use to browse through the birds of your area, and read about their behaviour and calls.
There are also interactive posters available online from Early Bird, which can be accessed on your phone, which play the bird call when the bird is clicked, and list the bird names in many different Indian languages. All these different resources are listed below for your reference.
If you live in a big city, chances are that there are several birdwatchers in your area already, and there may be different groups conducting free walks on weekends to urban lakes and parks. Join such a group to accelerate your learning and get identification tips from experts.
Over time, you will find yourself equipped to lead bird walks for children and engage them in different aspects of appreciating birds and nature. You can even come up with ways to connect your classroom teaching to birds and nature.
Despite all the pressures of the curriculum and academics, it is possible to create meaningful nature experiences within the classroom. In this age of climate uncertainty, it is critically important that our children connect with nature, because awareness leads to curiosity, empathy and finally a love for the natural world, which will guide them to make better choices for themselves and for our changing planet.
Here are some resources to help in your journey:
Garima Bhatia is a Bengaluru-based birdwatcher and photographer who heads Early Bird (early-bird.in), a non-profit initiative to connect children with birds.
| english |
package com.github.alanacevedo.finalreality.model.player;
import com.github.alanacevedo.finalreality.model.character.ICharacter;
import com.github.alanacevedo.finalreality.model.character.IPlayableCharacter;
import com.github.alanacevedo.finalreality.model.weapon.IWeapon;
public interface IPlayer {
/**
* Adds a character to this player's party
* @param character character to be added
*/
void addCharacterToParty(IPlayableCharacter character);
/**
* Adds a weapon to this player's inventory
* @param weapon weapon to be added
*/
void addWeaponToInventory(IWeapon weapon);
/**
* Swaps weapons from 2 slots. Can be used to move a weapon from a slot to
* an empty one.
* @param slot1 first inventory slot
* @param slot2 second inventory slot
*/
void swapInventorySlots(int slot1, int slot2);
/**
* Returns the character located in the player's party given slot.
* @param partySlot slot to be searched
* @return character stored in that slot
*/
IPlayableCharacter getCharacterFromParty(int partySlot);
/**
* Returns the weapon located in the player's inventory given slot.
* @param inventorySlot slot to be searched
* @return weapon stored in that slot
*/
IWeapon getWeaponFromInventory(int inventorySlot);
/**
* Equips a character from the this player's party with a weapon from
* the inventory.
* @param inventorySlot slot where the weapon will be taken from
* @param partySlot slot where the the character is located
*/
void equipWeaponToCharacter(int inventorySlot, int partySlot);
/**
* Makes a character from the party attack other character.
* @param partySlot party slot where the a ttacking character is located
* @param character character to be attacked
*/
void charAttack(int partySlot, ICharacter character);
int getCharacterSlot(IPlayableCharacter currentChar);
}
| java |
Very few batters in world cricket make batting look as pretty as Indian captain Rohit Sharma. He did not have the best of starts to his international career, but the talent was always there.
MS Dhoni's move to promote him to open the batting in limited-overs cricket was a turning point in his career and he has, since, gone on to become one of the best in the business against the white ball.
He has now managed to replicate this consistent form in Test cricket as well, where he takes guard against the new ball. The languid swing of the bat, the perfect timing, a sense of placement - these traits make Rohit a sight to behold when he is in his zone.
Here we take a look at 5 instances when Rohit Sharma's stroke-play was all about timing:
Rohit Sharma was in his element against Sri Lanka at the Eden Gardens on November 13, 2014. After a watchful start, he exploded and the Sri Lankan-bowling attack was smashed to all parts of the ground. He played a number of breath-taking shots, but one stroke was extraordinary.
Nuwan Kulasekara had the ball in his hand and it was a wide one, almost on the tram line outside off stump. Rohit kept shuffling and managed to simply whip the ball over wide long-off for a six. The timing on this stroke was incredible and it defined Rohit, the batter.
Rohit Sharma was the standout batter in the 2019 ICC Cricket World Cup and saved his best for Pakistan. After being asked to bat first, India piled up 336 in their first innings. Rohit smashed a 113-ball-140 and his strokeplay was a sight to behold.
When he was batting on 85, Hassan Ali delivered a wide ball short outside the off stump and Rohit got on to his toes and creamed the ball over deep point for a sumptuous six.
India did not have the best of series against Australia in 2015-16. However, Rohit Sharma and Virat Kohli were excellent with the bat and scored the bulk of the runs.
Rohit was at his superb best in the first ODI in Perth. After a slightly watchful start, he opened his shoulders and put the Australian attack to the sword. He was belligerent in the middle overs and courtesy of his 171, India racked up 309 runs in their 50 overs.
One of the his better strokes came in the 31st over against James Faulkner. The second ball of the over was a slightly short ball on off stump as Rohit arched back and lifted it over the keeper for a brilliantly-timed boundary.
This T20I, the third of a five-match series between India and New Zealand in January 2020, went down to the final ball of even the super over. New Zealand batted first in the super over and, courtesy of some smart batting by Kane Williamson, they piled up 17 runs in six balls.
Rohit Sharma and KL Rahul walked out to bat. The first two balls did not yield any boundaries with just three runs coming off them. Rahul got a boundary through square leg on the third ball and took a single on the next.
It came down to Rohit Sharma, with India needing 10 runs off two balls. The fifth ball from Southee was smashed for a six over deep mid-wicket. However, the killer blow came off the final delivery.
Southee erred once again and it was another ball in the slot. Rohit held his shape and smoked the ball clean over long off to give India the match and an unassailable 3-0 lead in the 5-match series.
India took on England at the Oval in the fourth Test of their England tour in 2021, where Rohit Sharma notched up his first Test ton in overseas conditions. The conditions were quite challenging for the batters and India were dismissed for 191 in their first innings.
England responded with 290 in their first dig and the pressure was on the Indian batters to bring the visitors back into the contest. This is where Rohit Sharma finally found his bearing as a Test opener in overseas conditions. He was disciplined, very watchful and looked determined to make a mark.
In between, there were a number of pleasing strokes and none better than the drive he played off James Anderson on the final ball of the 17th over. It was a length ball, slightly on the fuller side, as Rohit offered the full face of the bat and drove it past Anderson. Courtesy this ton, India gave England a target of 368 runs and won the match by 157 runs. | english |
If you’re buying a laptop for business use, you need to look for a powerful one that will meet your needs. That means you must be very keen on the specs and other features that come with your business laptop. Luckily, business laptop manufacturers know how to incorporate features that are specific to business needs.
But when you’re buying for the first time, you might find it hard getting computer specs that suit your business needs. The laptops come in various sizes, prices, and different features that can be challenging for someone buying for the first time. If you’re wondering how to find computer specs for your business laptop, take a look at these ten essential ones.
There are three primary operating systems you ought to choose from when purchasing your business laptop. These are the Chrome, Windows OS, and Mac OS. You need to know the difference between them to know which one will work well for your business.
Laptops with Mac operating systems are mostly known for their hefty price tag. But they come with a well-defined interface and feature optimal performance that covers up for the price. These laptops are common among creative professionals thanks to the high-quality screen, ability to run on high-octane programs, and powerful function keys.
While Google’s Chrome OS can be considered the newest arrival, it has captured the attention of professionals. If your business carries out cloud operations, these laptops will give you a very easy time. They automatically download and display updates, and that’s a huge time reliever for entrepreneurs.
Most work laptop features Windows as their standard operating system. Those who prefer Windows have a variety of laptops to choose from because of their popularity. They also come in different configurations and are available in different price ranges.
With the rising need to work from home, business laptops need to have the most robust connectivity. In fact, it’s vital that you get a wireless connection for your business laptops. You need a computer that can help you stay in touch with your staff or team without trouble.
If you prefer wireless connectivity, check laptops with Wi-Fi specs of 802.11. They should also have a letter that donates the Wi-Fi adapter’s technology. The current wireless networking standard is IEEE 802.11ac, and the upcoming one is IEEE 802.11ax.
If you prefer options that come with wired Internet connections, go for models with an Ethernet port. These ones will give you extra connection speed.
If you’re going to use your laptop for long hours, it means you’re going to stare a lot at the screen. You need a comfortable screen that feels easy on your eyes.
Modern laptop models also feature touchscreens that are easy to use. However, the laptops that feature touchscreen options sometimes come with a glossiness that won’t be good for you. They can add some glare sensitivity, which won’t be good for the health of your eyes.
Another thing to remember about laptop screens is the resolution. Consider a minimum of 1920×1080-pixel resolution if you want plenty of space to line up your windows and keep everything in view. 4K resolutions are also common with modern laptops and perfect for those who need a high-end display.
If you’re a business person who’s always on the move, you need a battery that can stay with you for the longest time. Most business laptops feature multiple battery options for convenience. You can consider investing in an enterprise-class laptop that comes with two or three batteries.
You also need to consider the cell options of the battery are you need something that will last longer without charging.
But even with the best battery in town, some laptops feature components that consume too much power. These are the likes of laptops that feature 4K display resolutions. In this case, you need to consider whether you prefer a long-lasting battery or power-hungry components.
Are you going to type on your keyboard for long? Choose a keyboard with your comfort in mind. You need a keyboard that gives you a desirable user-experience even if it doesn’t comprise all the best perks in the market.
Get one with a comfortable layout with full-sized keys with enough space between the keys. They should be responsive enough and feature a backlit. Backlit keys will enable you to see what you’re typing, even in a poorly lit room.
You need to consider both the long-term and short-term memory of the laptop you intend to buy for your business use. Look at the random-access memory (RAM) for the short-term memory of your laptop. For long-term storage, consider your laptop’s hard disk drive (HDD).
If you need an addition to your hard drive, you should look for a laptop with a solid-state drive (SSD). The SSD memory is the latest and is becoming very popular because they perform faster than HDDs.
Modern PC laptops come in 2-in-1 categories. These are hybrid devices that you can use either in clamshell mode or tablet.
The 2-in-1 laptops come in different styles, including detachable screens that allow you to get them off the keyboard. Others are incredibly flexible with hinges enabling them to bend back 360 degrees if you need to change their model.
One thing you must know about 2-in-1 laptops is that most of them are only good at serving one purpose in expenses of the other. Bend backs can be good at laptops whole the detachable ones give a superior tablet experience. Sometimes, traditional clamshell laptops can perform way better than the 2-in-1 functions.
Some people think that the size doesn’t matter as long as it offers superior performance and has all the needed features. If you move a lot with your laptop, you must consider its portability.
If you’re browsing the features of your ideal business laptop at www.lenovo.com, you’ll get almost all of them categorized according to the display size. The display size of 11 to 12 inches is usually the thinnest and lightest in the market. These laptops usually weigh about 2.5 to 3.5 pounds.
13 to 14 inches provide a perfect balance of usability and portability. They usually weigh about 4 pounds or lower and are ideal for business use. There are also 15 to 16 inches laptops weighing 4 to 5.5 pounds and feature a large screen.
The laptops with a display size of 17 to 18 inches are the largest in the market. They’re also heavy and not ideal for someone looking for a portable computer spec for business. These are better off staying on your desk every day and ideal for workstation-level productivity.
You can never skip the CPU when shopping for a good business laptop. Even those who’re not so conversant with technology know about the Core i3, i5, and i7 processors. What do these processors mean to the performance of your business laptop?
For someone who loves multitasking or uses multimedia tasks, an Intel Core Processor will offer a perfect solution. Core i3 laptops are mainly found in entry-level systems, while Core i5 is common with mainstream computers. Core i7 is ideal for those who want laptops with the highest performance.
You can also find larger laptops running on Intel’s i9 Core processors. These laptops are more powerful than the rest of the processors. They’re also capable of competing with desktops when it comes to performance and comes with higher costs.
You can’t ignore the ports for a business laptop because you’ll need to plug in the computer now and then. It can be a projector, external storage, or a flash drive. Most peripherals feature a USB connection, and you should consider one with at least three ports.
Many high-end laptops feature 3.0 ports and HDMI for video connection. Others feature USB Type-C ports. Others come with Thunderbolt 3 or 4 ports with USB Type-C compatibility.
Go for a laptop with a Type-C port because they give you the freedom to connect to universal docks and chargers. There’s also hope for the arrival of USB 4 ports and are expected to feature high-speed transfer rates. Don’t forget to consider ports such as headphone jacks, SD card slots, and Ethernet ports.
Are You Ready to Buy Your Business Laptop?
While it’s not easy to find a perfect laptop that meets all your needs, considering the above computer specs when shopping for one is essential. As you shop for the best features in the market, don’t forget that your laptop’s brand also dictates the quality you’ll get.
Remember to narrow down the choice of the specs of your laptop with your budget and business needs in mind. If you’re completely clueless, a tech guru can help when choosing the best laptop for your business.
We also have other helpful guides regarding technology. Keep exploring our website for more information.
| english |
The position of Active Producers' Guild in Telugu Film Industry is like a kid surrounded by the elders in the family.
The Guild feels that it is superior and can dictate terms to the film industry but the other producers outside the Guild are showing their parental control on this young group.
Abhishek Nama raised his voice against the Guild at first and then Tummalapalli Rama Satyanarayana followed.
In the meanwhile, the Council and Chamber maintained their non cooperation with the Guild.
On the other hand, there is no unity within the Guild which was exposed when two of its members didn't agree to stop their shoots as proposed by the Guild.
Now the senior producer Ashwini Dutt opened up and reprimanded the activities of Guild. It should be underlined that his daughter Swapna Dutt is an active member in the Guild.
In the meanwhile Bandla Ganesh released some audio clips and criticized the Guild members in his style.
In fact, the Guild is not doing something against the system. It is working towards the betterment of the industry. But somehow there is no cooperation from the same fraternity.
The reason is being attributed to the supremacy boasted by Dil Raju as the champion of Guild.
Many are feeling that the cooperation will be extended by other producers if Dil Raju moves out and gives the steering of the Guild to some other.
Dil Raju is commanding the industry by keeping the theatres and Naizam distribution rights in his control which is true.
So, the majority of the producers are unable to digest Dil Raju's power in the industry. Hence, they are showing their non cooperation to Dil Raju but not to the Guild. | english |
<filename>pkg/service/service.go<gh_stars>1-10
package service
import (
"context"
"encoding/json"
"github.com/coreos/etcd/client"
log "github.com/inconshreveable/log15"
"github.com/spf13/viper"
_ "github.com/spf13/viper/remote"
"os"
"strings"
"time"
)
type Service struct {
Name string
PushStatus chan map[string]interface{}
namespace string
etcdKeys client.KeysAPI
}
type ServiceStatusUpdate struct {
ServiceType string
ServiceID string
Status *ServiceStatus
Action string
}
type ServiceStatus struct {
ServiceID string `json:"service_id"`
Status map[string]interface{} `json:"status"`
Labels map[string]string `json:"labels"`
UpdateTime time.Time `json:"update_time"`
}
func NewService(namespace string, etcdEndpoints []string) *Service {
cfg := client.Config{
Endpoints: etcdEndpoints,
Transport: client.DefaultTransport,
// set timeout per request to fail fast when the target endpoint is unavailable
HeaderTimeoutPerRequest: time.Second,
}
etcd, err := client.New(cfg)
if err != nil {
log.Crit("Failed to make etcd client", "err", err)
os.Exit(1)
}
s := &Service{
namespace: namespace,
etcdKeys: client.NewKeysAPI(etcd),
PushStatus: make(chan map[string]interface{}),
}
return s
}
func (s *Service) LoadServiceConfig(config *viper.Viper, name string) {
s.Name = name
keyPath := "/config/" + s.namespace + "/" + s.Name
res, err := s.etcdKeys.Get(context.Background(), keyPath, nil)
if err != nil {
log.Crit("Unable to contact etcd", "err", err)
os.Exit(1)
}
config.SetConfigType("yaml")
config.MergeConfig(strings.NewReader(res.Node.Value))
}
func (s *Service) LoadCommonConfig() *viper.Viper {
res, err := s.etcdKeys.Get(context.Background(), "/config/common", nil)
if err != nil {
log.Crit("Unable to contact etcd", "err", err)
os.Exit(1)
}
config := viper.New()
config.SetConfigType("yaml")
config.MergeConfig(strings.NewReader(res.Node.Value))
SetupCurrencies(config.GetStringMap("Currencies"))
SetupShareChains(config.GetStringMap("ShareChains"))
sub := config.Sub(s.namespace)
if sub == nil {
sub = viper.New()
}
return sub
}
func (s *Service) parseNode(node *client.Node) (string, *ServiceStatus) {
// Parse all the node details about the watcher
lbi := strings.LastIndexByte(node.Key, '/') + 1
serviceID := node.Key[lbi:]
var status ServiceStatus
json.Unmarshal([]byte(node.Value), &status)
status.ServiceID = serviceID
return serviceID, &status
}
// Requests all services of a specific namespace. This is used in the same
// context as ServiceWatcher, except for simple script executions
func (s *Service) LoadServices(namespace string) (map[string]*ServiceStatus, error) {
statuses, _, err := s.loadServices(namespace)
return statuses, err
}
func (s *Service) loadServices(namespace string) (map[string]*ServiceStatus, uint64, error) {
var services map[string]*ServiceStatus = make(map[string]*ServiceStatus)
var watchStatusKeypath string = "/status/" + namespace
getOpt := &client.GetOptions{
Recursive: true,
}
res, err := s.etcdKeys.Get(context.Background(), watchStatusKeypath, getOpt)
// If service key doesn't exist, create it so watcher can start
if cerr, ok := err.(client.Error); ok && cerr.Code == client.ErrorCodeKeyNotFound {
log.Info("Creating empty dir in etcd", "dir", watchStatusKeypath)
_, err := s.etcdKeys.Set(context.Background(), watchStatusKeypath,
"", &client.SetOptions{Dir: true})
if err != nil {
return nil, 0, err
}
return nil, 0, nil
} else if err != nil {
return nil, 0, err
} else {
for _, node := range res.Node.Nodes {
serviceID, serviceStatus := s.parseNode(node)
services[serviceID] = serviceStatus
}
}
return services, res.Index, nil
}
// This watches for services of a specific namespace to change, and broadcasts
// those changes over the provided channel. How the updates are handled is up
// to the reciever
func (s *Service) ServiceWatcher(watchNamespace string) (chan ServiceStatusUpdate, error) {
var (
services map[string]*ServiceStatus = make(map[string]*ServiceStatus)
watchStatusKeypath string = "/status/" + watchNamespace
// We assume you have no more than 1000 services... Sloppy!
updates chan ServiceStatusUpdate = make(chan ServiceStatusUpdate, 1000)
)
services, startIndex, err := s.loadServices(watchNamespace)
if err != nil {
return nil, err
}
for _, svc := range services {
services[svc.ServiceID] = svc
updates <- ServiceStatusUpdate{
ServiceType: watchNamespace,
ServiceID: svc.ServiceID,
Status: svc,
Action: "added",
}
}
// Start a watcher for all changes after the pull we're doing
watchOpt := &client.WatcherOptions{
AfterIndex: startIndex,
Recursive: true,
}
watcher := s.etcdKeys.Watcher(watchStatusKeypath, watchOpt)
go func() {
for {
res, err := watcher.Next(context.Background())
if err != nil {
log.Warn("Error from coinserver watcher", "err", err)
time.Sleep(time.Second * 2)
continue
}
serviceID, serviceStatus := s.parseNode(res.Node)
if serviceStatus == nil {
}
_, exists := services[serviceID]
var action string
if res.Action == "expire" {
if exists {
// Service status from the etcd notification will be nil,
// so pull it
serviceStatus = services[serviceID]
delete(services, serviceID)
action = "removed"
}
} else if res.Action == "set" || res.Action == "update" {
services[serviceID] = serviceStatus
// NOTE: Will fire event even when no change is actually made.
// Shouldn't happen, but might.
if exists {
action = "updated"
} else {
action = "added"
}
} else {
log.Debug("Ignoring watch update type ", res.Action)
}
// A little sloppy, but more DRY
if action != "" {
log.Debug("Broadcasting service update", "action", action, "id", serviceID)
updates <- ServiceStatusUpdate{
ServiceType: watchNamespace,
ServiceID: serviceID,
Status: serviceStatus,
Action: action,
}
}
}
}()
return updates, nil
}
func (s *Service) KeepAlive(labels map[string]string) error {
var (
lastValue string
lastStatus map[string]interface{} = make(map[string]interface{})
)
if s.Name == "" {
log.Crit(`Cannot start service KeepAlive without name set.
Call LoadServiceConfig, or set manually`)
os.Exit(1)
}
if len(labels) == 0 {
log.Crit("Cannot start service KeepAlive without labels")
os.Exit(1)
}
for {
select {
case lastStatus = <-s.PushStatus:
case <-time.After(time.Second * 1):
}
// Serialize a new value to write
valueMap := map[string]interface{}{}
valueMap["labels"] = labels
valueMap["status"] = lastStatus
valueRaw, err := json.Marshal(valueMap)
value := string(valueRaw)
if err != nil {
log.Error("Failed serialization of status update", "err", err)
continue
}
opt := &client.SetOptions{TTL: time.Second * 2}
// Don't update if no new information, just refresh TTL
if value == lastValue {
opt.Refresh = true
opt.PrevExist = client.PrevExist
value = ""
} else {
lastValue = value
// Now add the timestamp. This should'nt be included in the
// comparison to last value since it's not part of the status
valueMap["update_time"] = time.Now().UTC()
valueRaw, _ = json.Marshal(valueMap)
value = string(valueRaw)
}
// Set TTL update, or new information
_, err = s.etcdKeys.Set(
context.Background(), "/status/"+s.namespace+"/"+s.Name, value, opt)
if err != nil {
log.Warn("Failed to update etcd status entry", "err", err)
continue
}
}
return nil
}
| go |
If you're an Apple Arcade subscriber, you might want to have a look at PowerA's new iPhone controller.
The PowerA MOGA XP5-i Plus controller for iPhone devices looks to be well-suited to playing the vast Apple Arcade library. And it's available to buy from PowerA's own store as well as Amazon for $79.99 (around £66.99 / AU$114.99). Other regions and pricing are yet to be announced, however.
What makes the MOGA XP5-i Plus particularly enticing? The headline feature has to be its built-in 3,000mAh power bank. This will let the controller charge your phone when it's connected, keeping you topped up for longer gaming sessions.
The controller also features customizable button mapping, allowing you to swap around inputs based on your needs and preferences. This is bound to be a winning feature not just for playing the best Apple Arcade games, but also popular mobile titles like PUBG Mobile and Apex Legends.
We've all been there. You've just reached a pivotal boss fight in a JRPG like Fantasian, or PUBG Mobile's final circle... but your phone's battery has other ideas. That's something that should hopefully be a thing of the past with the MOGA XP5-i Plus's integrated power bank.
This is what I feel is the PowerA controller's crowning feature, especially for avid Apple Arcade players. And while it's not the first mobile controller to have a built-in power bank (PowerA's excellent MOGA XP5-X Plus featured one a couple of years back), this latest iteration is a big win for iOS device owners looking to game on the go for longer.
That brings me on to what's perhaps the MOGA XP5-i Plus's biggest drawback, though. As it's tailored for iOS devices like the iPhone, iPad and Apple TV 4K, you won't be able to use it on other platforms like Android.
That's a shame, but PowerA has a solid track record of making quality mobile controllers for a variety of platforms. The aforementioned MOGA XP5-X Plus, for example, does work with all the best Android phones.
Still, if you do own an iOS device, I think PowerA's latest controller is one to watch. That's especially true if you're keen on the Apple Arcade game list, which features many console-quality titles that are a cut above those on Apple's App Store.
Get the hottest deals available in your inbox plus news, reviews, opinion, analysis, deals and more from the TechRadar team.
Rhys is TRG's Hardware Editor, and has been part of the TechRadar team for more than two years. Particularly passionate about high-quality third-party controllers and headsets, as well as the latest and greatest in fight sticks and VR, Rhys strives to provide easy-to-read, informative coverage on gaming hardware of all kinds. As for the games themselves, Rhys is especially keen on fighting and racing games, as well as soulslikes and RPGs.
| english |
Six Pakistani cricketers, who were found to be COVID-19 positive ahead of the team’s departure for England last week, have now tested negative for the second time in three days making them eligible to join the squad in the UK.
Fakhar Zaman, Mohammad Hasnain, Mohammad Hafeez, Mohammad Rizwan, Shadab Khan and Wahab Riaz have been found negative in the latest round of testing conducted by the Pakistan Cricket Board.
“The players were retested on Monday, 29 June, following a first negative test on 26 June,” the PCB said in a statement on Tuesday.
Of these, Hafeez caused quite a stir when he got himself tested at a private facility, which found him negative just a day after the first PCB test put him in the infected list.
In all, 10 Pakistani players were found coronavirus-positive before the team left for England on Saturday.
“The PCB will now start making their travel arrangements and the departure details will be shared in due course,” the Board added.
Pakistan will take on England in a three-Test and three T20 International series in August.
- Who is Dhruv Jurel, selected in India’s Test squad against England?
| english |
On Bhai Dooj, Ira Khan shared an appreciation note for brother Junaid and it will give you major sibling goals. Sharing a BTS clip from one of his plays, which features him getting ready for his character, Ira Khan wrote: "Oh, what to say. . . so much to say. . . how to say it right? Happy Bhaubeej, Junnu. I don't think I express or consider how grateful I am to have a brother like mine so that's what I use this day for. Junaid is a kickass brother. Such large chunks of my personality and life are the way they are because of him - all good things! And then we spent a few years away from each other doing various things. When I came back, he said Faezeh was looking for people to help backstage. He was also a part of the play. Watching Junaid in a professional space is awe-striking. And it reminded me and emphasized to me how much he is outside of just being my brother. Watching him (and discussing him with the rest of the crew behind his back), I was bloated with pride. "
"Of course, I'd never tell him that. But that's the perks of him not being on social media. Take a moment to appreciate the people in your life. And use any excuse to do it. They deserve it and so do you. #diwali #bhaidooj #appreciationpost #proud #notalone," she added.
Take a look:
Ira and Junaid are Aamir Khan's children with his first wife Reena Dutta. Ira, last year, made her directorial debut with Medea, which is the Indian adaptation of Euripides' Greek play of the same name. She also cast Junaid in the play that featured Hazel Keech in the titular role.
Earlier, speaking about Junaid's career in films, Aamir Khan told PTI: "He is following his path, he has studied theatre. He is actually more interested in theatre than films. I am allowing him to go and find his own path. That's how it should be. He is very bright. " | english |
<filename>sites/all/modules/contrib/advanced_help/help/readme.html
<h2 id="project-description">Synopsis</h2>
<p>The <strong>Advanced help</strong> module provides a framework that allows
module and theme developers integrate help texts in a Drupal site.</p>
<p>These help texts are stored in ordinary <code>.html</code>-files
that lives in the file system (as opposed to the database). These
files are distributed from the project Drupal.org repo in the same
package as the module or theme, and placed in a subdirectory named
<code>help</code> in the project or theme directory. This means that
the help texts can be easiely kept in sync with the project they
provide help texts for, but also that read access to these files
are not managed by any content access restrictions imposed by Drupal.</p>
<p>The help texts can be marked up with standard HTML, but are
rendered within your site's Drupal theming structure.</p>
<p>If the module or theme author does not make use of the full
<em>Advanced help</em> framework, but if there is a
<code>README.md</code> or <code>README.txt</code> in the package,
the content of that file will be shown instead.</p>
<p>The help texts may appear in a popup or not as the module prefers.
By taking away access to view the popups, a site can hide popups from
users.</p>
<p>The help texts can be placed in a hierarchy, allowing for top down
navigation of help.</p>
<p>The hierarchy is tied into Drupal's search system. If this is
enabled, all help texts are fully indexed. This means that the entire
contents of the advanced help set of pages can be searched for
keywords.</p>
<h2 id="use">Using the module</h2>
<p>By itself, this module doesn't do much. The <strong>Advanced
help</strong> assists other modules and themes in showing help texts.
Nothing will show up until you enable at least one other module that
makes use of the advanced help framework or comes with a file
named <code>README.md</code> or <code>README.txt</code>. However, it
comes with a small companion demo module named
<strong>Advanced help example</strong> to demonstrate how it works.
For more extensive example of use of the advanced help features, see
the <strong>Views</strong> project.</p>
<h2 id="project-recommended">Recommended modules</h2>
<ul>
<!--
<li><a href="https://www.drupal.org/project/markdown">Markdown filter</a>:<br>
When this module is enabled, display of any <code>README.md</code> the
module shows will be rendered with markdown.</li>
-->
<li><a href="https://www.drupal.org/project/attributions">Attributions</a>:<br>
When this module is enabled, attributions of third party content used
by the project (i.e. some text from Wikipedia) will be available in an
attribution block and on an atribution page.</li>
</ul>
<h2 id="support-status">Support status</h2>
<p>Reported bugs for the Drupal 7 branch will be fixed in a timely
manner. Bugs in the issue queue for the Drupal 6 branch will only be
fixed if accompanied with a patch, after the patch has been reviewed
and tested by the community. No Drupal 8 version is currently under
development. Post a message in
the <a href="https://www.drupal.org/node/1928218">issue queue</a> if
you're interested in managing a port of the project to to Drupal
8. Older versions are no longer supported.</p>
<p>Community support in the form of patches are very welcome for both
Drupal 6 and Drupal 7 versions, and will be given priority. For QA,
the project needs community support in the form of reviews of patches,
development versions and releases.</p>
<p>The primary goal of the module is to remain <strong>light-weight
and simple</strong>. This means that not all feature requests will be
implemented, even if they are a good idea. Feature requests
accompanied by patches are more likely to make it into a release.</p>
<p>The maintainer hopes that the community is willing to help out by
answering & closing support requests.</p>
<!--
<h2 id="project-problems">Known problems</h2>
-->
<h2 id="project-maintainers">Credits</h2>
<ul>
<li><a href="https://www.drupal.org/u/merlinofchaos"">merlinofchaos</a> (52 commits, original creator)</li>
<li><a href="https://www.drupal.org/u/redndahead">redndahead</a> (8 commits)</li>
<li><a href="https://www.drupal.org/u/dmitrig01">dmitrig01</a> (3 commits)</li>
<li><a href="https://www.drupal.org/u/amitgoyal">amitgoyal </a> (5 commits)</li>
<li><a href="https://www.drupal.org/u/gisle">gisle</a> (current maintainer)</li>
</ul>
| html |
Boeing Co. and the Federal Aviation Administration’s response to two fatal crashes involving the 737 Max plane is still missing a key ingredient: accountability.
Grief has shifted quickly to blame amid troublesome questions about Boeing’s apparent attempts to minimize the differences between the Max and older 737 models in an effort to speed development and the FAA’s seeming willingness to let it do so. After initially being caught in an isolated defense of the Max’s airworthiness as regulators around the globe grounded the plane, Boeing and the FAA are attempting to steer the conversation away from what went wrong with promises to do better in the future. Regulators from the Transportation Department and the FAA are due to appear before the Senate on Wednesday and will vow to improve their oversight, while Boeing is pitching a fix for the anti-stall flight-control software that’s thought to have been a factor in both crashes to the media, pilot groups and airline executives at its Renton, Washington manufacturing facility.
Yes, things need to change. But you can’t look forward until you’ve properly looked back. To truly rebuild faith in both the Max and themselves, Boeing and the FAA need to be honest about the mistakes that were made and accept responsibility for allowing their relationship to get too cozy for either’s own good. It’s not clear that either is prepared to do that yet.
Acting FAA administrator Daniel Elwell is expected to acknowledge that oversight needs to “evolve,” but he will he will defend the agency’s long-standing policy of outsourcing certification work to company employees. He will argue that the review of the Max was “detailed and thorough,” noting that “time yields more data to be applied for continued analysis and improvement. ” The problem is that the data now include the deaths of 346 people who boarded Max planes with the expectation they would arrive at their destination safely, and that the time for continued analysis and improvement would have been after the first crash back in October.
One of the biggest outstanding questions for me is, if this software system can be so easily and cheaply remedied, why wasn’t there more urgency? I’m particularly struck by the fact that Transportation Department Inspector General Calvin Scovel’s written testimony reportedly says that changes to the FAA’s oversight of certification work done by Boeing employees will come partly as a response to a 2015 report from his office highlighting holes in that system. That was four years ago.
Elwell will testify that regulators were involved in evaluating the flight-control software in question. Their involvement doesn’t absolve them of the fact that the safety analysis submitted by Boeing as part of the certification process reportedly contained serious flaws that went either unnoticed or underappreciated. These include understating the degree to which the software — known as the Maneuvering Characteristics Augmentation System — could push the plane’s nose down and allowing the system to rely on readings from only one sensor, according to the Seattle Times.
Boeing, meanwhile, is avoiding directly addressing why the MCAS system had these shortcomings in the first place in its conversations with pilots and airline officials, choosing instead to focus on the fact that there is a fix, according to the New York Times. It’s not helping the planemaker’s case that in simulations of a situation similar to what is thought to have occurred in the crash of a Lion Air jet in October, pilots found they had less than 40 seconds to override the system’s efforts to push the plane into a dive. And the government seems willing to throw Boeing under the bus a bit here: Transportation Secretary Elaine Chao told the Senate that she questions the planemaker’s offering of safety features that could have helped the pilots involved in the two crashes as an option that costs extra. Boeing will reportedly now make standard a warning light meant to indicate different readings from the sensors that can trigger the anti-stall software.
The reason why accountability is important is because this is no longer just about getting the blessing of the FAA, which has tentatively approved the fix, according to the Wall Street Journal. Regulators from China and Europe stunningly undercut the word of the FAA when they decided to ignore its declarations of safety and ground the Max. China has since threatened to exclude the Max from a list of purchasing commitments in trade negotiations with the U. S. ; announced a $35 billion order for Airbus SE jets that’s nearly double what was touted a year ago; and suspended a certificate of airworthiness for the Max in a sign it will act on its own timetable when deciding to return the plane to the skies.
Airlines are feeling the pain from the grounding, with Southwest Airlines Co. saying the unexpected loss of capacity, combined with weak leisure-travel demand, will reduce first-quarter sales by $150 million. But by and large, U. S. and European carriers have stood by the plane. It’s consumers that Boeing really has to worry about. It’s extremely telling that travel site Kayak. com added a filter to let fliers search by aircraft type. And those passengers are going to want to see a reckoning of what went wrong — and get a clear sense of what will be done to improve oversight to help prevent future tragedies — before they feel comfortable not using that filter. | english |
<reponame>MicrosoftDocs/office-developer-exchange-docs.de-DE<gh_stars>1-10
---
title: TokenIssuers (SOAP)
manager: sethgros
ms.date: 09/17/2015
ms.audience: Developer
ms.topic: reference
ms.localizationpriority: medium
ms.assetid: 26c55228-184e-4340-bd80-f86be56f3e7a
description: Die TokenIssuers-Elemente stellen die TokenIssuer (SOAP)-Auflistung dar.
ms.openlocfilehash: 68ff3ed515b346a84734596fae6fe127768b4476
ms.sourcegitcommit: 54f6cd5a704b36b76d110ee53a6d6c1c3e15f5a9
ms.translationtype: MT
ms.contentlocale: de-DE
ms.lasthandoff: 09/24/2021
ms.locfileid: "59520402"
---
# <a name="tokenissuers-soap"></a>TokenIssuers (SOAP)
Die **TokenIssuers-Elemente** stellen die [TokenIssuer (SOAP)-Auflistung](tokenissuer-soap.md) dar.
```XML
<TokenIssuers>
<TokenIssuer/>
</TokenIssuers>
```
**TokenIssuers**
## <a name="attributes-and-elements"></a>Attribute und Elemente
In den folgenden Abschnitten werden Attribute, untergeordnete und übergeordnete Elemente erläutert.
### <a name="attributes"></a>Attribute
Keine
### <a name="child-elements"></a>Untergeordnete Elemente
|**Element**|**Beschreibung**|
|:-----|:-----|
|[TokenIssuer (SOAP)](tokenissuer-soap.md) <br/> |Gibt den [Uri (SOAP)](uri-soap.md) und [den Endpunkt (SOAP)](endpoint-soap.md) für den Sicherheitstokendienst an. <br/> |
### <a name="parent-elements"></a>Übergeordnete Elemente
|**Element**|**Beschreibung**|
|:-----|:-----|
|[GetFederationInformationResponse (SOAP)](getfederationinformationresponse-soap.md) <br/> |Enthält die [SOAP-Antwort (GetFederationInformation-Vorgang).](getfederationinformation-operation-soap.md) <br/> |
## <a name="remarks"></a>HinwBemerkungeneise
**TokenIssuers** stellt eine Sammlung von [TokenIssuer (SOAP)-Elementen](tokenissuer-soap.md) dar, die in der AutoDiscovery verwendet werden sollen.
## <a name="element-information"></a>Informationen zu Elementen
|||
|:-----|:-----|
|Namespace <br/> |https://schemas.microsoft.com/exchange/2010/Autodiscover <br/> |
|Name des Schemas <br/> |AutoErmittlungsschema <br/> |
|Überprüfungsdatei <br/> |Messages.xsd <br/> |
|Leer kann sein <br/> |True <br/> |
## <a name="see-also"></a>Siehe auch
[AutoErmittlung Webdienstverweis für Exchange](autodiscover-web-service-reference-for-exchange.md)
[SOAP AutoDiscover XML-Elemente für Exchange 2013](soap-autodiscover-xml-elements-for-exchange-2013.md)
| markdown |
<reponame>Suykum/middle_level
package ru.job4j.car.repository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import ru.job4j.car.entity.Car;
import java.util.List;
@Repository
public interface CarRepository extends CrudRepository<Car, Integer> {
@Query("select C from Car C where lower(C.name) = :carName")
List<Car> findCarsByName(@Param("carName") String carName);
@Query("select distinct C.location from Car C")
List<String> getLocations();
List<Car> getCarsBySold(boolean sold);
List<Car> getCarsBySoldAndName(boolean sold, String name);
}
| java |
from django import template
register = template.Library()
@register.inclusion_tag('quiz/correct_answer.html', takes_context=True)
def correct_answer_for_all(context, question):
"""
processes the correct answer based on a given question object
if the answer is incorrect, informs the user
"""
answers = question.get_answers()
incorrect_list = context.get('incorrect_questions', [])
if question.id in incorrect_list:
user_was_incorrect = True
else:
user_was_incorrect = False
return {'previous': {'answers': answers},
'user_was_incorrect': user_was_incorrect}
@register.filter
def answer_choice_to_string(question, answer):
return question.answer_choice_to_string(answer)
| python |
<reponame>noexc/mapview-psc<gh_stars>0
{
"name": "habp-mapview",
"version": "0.0.1",
"homepage": "https://github.com/w8upd/mapview",
"authors": [
"<NAME> <<EMAIL>>"
],
"license": "MIT",
"private": true,
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
"purescript-datetime": "*",
"purescript-control": "*",
"purescript-dom": "*",
"purescript-either": "*",
"purescript-foldable-traversable": "*",
"purescript-foreign": "*",
"purescript-googlemaps": "relrod/purescript-googlemaps",
"purescript-leaflet": "dysinger/purescript-leaflet#master",
"purescript-math": "*",
"purescript-refs": "*",
"purescript-simple-dom": "aktowns/purescript-simple-dom"
}
}
| json |
Topic: Inclusive growth and issues arising from it.
6. LPG subsidies have the potential to bring about positive social, economic, and environmental changes in many communities. Critically analyse (250 words)
Why the question:
The article raises concerns about India’s clean cooking strategy and calls for a re-evaluation of the approach to address cooking-related challenges.
Key Demand of the question: To write about LPG subsidy and how it is a critical social investment and reduces public health burden.
Critically analyze – When asked to analyse, you must examine methodically the structure or nature of the topic by separating it into component parts and present them in a summary. When ‘critically’ is suffixed or prefixed to a directive, one needs to look at the good and bad of the topic and give a balanced judgment on the topic.
Structure of the answer:
In the introduction, present the scenario in the Indian society about usage of LPG and traditional cooking fuel. Use some data/statistics.
First, explain first in what way LPG connections can be revolutionary in freeing women for productive time and reduce the public health concerns.
Next, talk about the Pradhan Mantri Ujjwala Yojana, PMUY. It helped expand LPG coverage to > 85% of households, in comparison to less than a third in 2011.The government is again offering one crore new connections under Ujjwala 2.0 in FY22.
Present the associated issues and suggest solutions to address the same.
Conclude with a way forward.
| english |
<reponame>Ray0218/Specs
{
"name": "OpinionzAlertView",
"version": "0.3.1",
"summary": "OpinionzAlertView: Beautiful customizable alert view with blocks (and delegate)",
"description": "Beautiful customizable alert view with blocks. Choose from predefined icons for info, warning, success and error alerts. Customize color or set your desired image.",
"homepage": "https://opinionz.io/",
"screenshots": "https://raw.githubusercontent.com/Opinionz/OpinionzAlertView/assets/screenshots/animated.gif",
"license": "MIT",
"authors": {
"Opinionz.io": "<EMAIL>"
},
"source": {
"git": "https://github.com/Opinionz/OpinionzAlertView.git",
"tag": "0.3.1"
},
"platforms": {
"ios": "7.0"
},
"requires_arc": true,
"source_files": "OpinionzAlertView/Classes/*.{h,m}",
"resource_bundles": {
"OpinionzAlertView": "OpinionzAlertView/Assets/Images/*.png"
}
}
| json |
<filename>PROJECT.md
# IntelliSense for Cypress + VSCode
Have you ever been lost in searching the right fixture within your `/fixture` directory? Now there is no need to worry anymore!
This extension supports you with IntelliSense.
See this:

| markdown |
Ayodhya: The centre has announced setting up a Ramayana museum in Ayodhya and also sanctioned Rs 151 crore, but the land for it has not yet been identified by the Union government nor allotted by the state dispensation.
"We don't have any information regarding this. I am hearing about this (inspection by Union Tourism Minister Mahesh Sharma of the land for the proposed museum) since yesterday. I cannot say anything on this issue right now," Additional District Magistrate, Faizabad, Vinod Kumar said.
Faizabad District Magistrate Vivek said the district authorities had received no communication from the centre regarding the land.
"We have no formal communication from the Union government regarding the land. Whenever we will be asked for it, we will look into the matter," District Magistrate Vivek told PTI.
Mr Sharma, who was here for "inspecting" the site for the proposed museum, said he was hopeful of getting the land on the banks of Saryu river. | english |
The long-awaited 33rd Edition of National-level Classical Dance and Music Festival of Veterans Parangathotsava-2019 under the aegis of Vasundhara Performing Arts Centre, Mysuru, will be held from Dec. 28 to Dec. 31 between 6 pm and 9 pm at Sri Nadabrahma Sangeetha Sabha on JLB Road.
This year the festival will be inaugurated by Madhuri Thathachari of Bhramara Trust and presided by art patron K. V. Murthy. The chief guest will be H. Chennappa, Assistant Director, Kannada and Culture and P. Krishna Kumar, Secretary, Parampare. The guests of honour will be K. S. N Prasad, Secretary, Nadabrahma Sangeetha Sabha and C. R. Himamshu, Secretary, SPVGMC Trust, Mysuru.
This year the following veterans of international repute are participating in the fest:
Dec. 28: Dr. Vasundhara Doraswamy (Bharatanatyam)
A danseuse par excellence, versatile choreographer of repute and a venerated Guru of Bharatanatyam Dr. Vasundhara Doraswamy, has turned very much a phenomenon in the Indian classical dance scenario over the past five decades and more of her career. Vasundhara is sought after Vasundhara School (Vasundara Bani).
While her performances are manifestations of the profound Terpsichorean ingenuity marked by impromptu improvisations esoteric foot work and bewitching histrionic propensities, her myriad choreographies encompassing a wide spectrum of spiritual and secular themes are striking paradigms of her inventive brilliance.
Small wonder that accolades and encomiums have been showered upon Vasundhara from an early age and she is the youngest recipient of the Karnataka Kala Tilak, the prestigious award from the Karnataka Sangeetha Nrithya Academy. Even as her academic background, a post -graduate degree in folklore and a doctorate for the thesis Bharatanatyam and Yoga vouches for a strong penchant for interdisciplinary approach.
Panchali noted for its singular adoption of Yakshagana music to Bharatanatyam is a standing testimony to this sensibility. She is the only choreographer so far who was has ventured to produce Saama Veda, the fountain-head of Indian classical music in Bharatanatyam. She is also a consummate exponent of martial arts of Tang-ta and Kalaripayattu.
Dec. 29: Vidwan O. S. Thyagarajan (Vocalist)
Born on April 3, 1947, O. S. Thyagarajan is a Karnatak Musician based in Chennai. He is the son and disciple of Sangeetha Booshanam O. V. Subrahmanyam. He learnt music from Sangeetha Kalanidhi T. M. Thyagarajan, while Padma Bhushan Lalgudi Jayaraman provided guidance early in his career.
As A top graded artiste of the All India Radio and Doordarshan, he has been giving a large number of concerts and has been accompanied by top accompanists such as Lalgudi G. Jayaraman, M. S. Gopalakrishnan, V. V. Subrahmanyam on violin, Palghat Mani Iyer, Dr. T. K. Murthy, Palghat Raghu, Karaikudi Mani, Trichy Sankaran, Umayalpuram, Suvaraman on mridanga, G. Harishankar on Kanjira and Vikku Vinayakaram on ghata. He has worked as Dean, Faculty of Fine Arts at Annamalai University for 5 years and has trained many disciples who are active on concert circuit.
Hailing from Raichur, Karnataka Pt. Vadavati was born on Jan. 21, 1942, as the son of Buddappa, a tabla artiste and Rangamma, an accomplished singer. He has inherited the Gwalior Gharana from Pt. Panchakshari Gawai and Jaipur Gharana from Pt. Dr. Mallikarjun Mansur and Pt. Siddarama Jambaladinni. This Gayaki style is also a unique achievement on clarinet because the instrument is very difficult to master. Clarinet is primarily a western instrument and he had to accurately adopt it to Hindustani Ragaas.
The International Clarinet Association [ICA] conducted International Clarinet Fest-2011 during August 3 to 7, 2011 at Los Angeles, California and Pt. Vadavati was conferred the honour of India Chair of Clarinet Fest 2011. This was a proud achievement for India since he is the first ever Indian to be conferred such an honour.
In Clarinet Fest-2011, all performers from different parts of the world were playing in western style but Vadavati was the only artiste to play in Indian Traditional Hindustani Classical style. This was a very special and memorable experience for all attendees.
Founder of Swara Sangama Sangeetha Vidyalaya to train clarinet artistes, Pt. Vadavati has performed in all prestigious Sabhas in India and abroad. He was the Chairperson of Sangeet Nritya Academy-Karnataka for one term and his art is recognised by various Universities.
Mysore Ananth formally began learning music at the age of 6 from Sunanda Chandramouli. Expressing a keen desire to pursue advanced training, he came under the tutelage of B. U. Ganesh Prasad in 2009. He has also received guidance from Bangalore S. Shankar and is currently receiving advanced training from Kunnakudi Balamurali Krishna.
Ananth is a regular performer at South Indian Music Academy Aradhanas [SIMA], Los Angeles Shiva Vishnu temple of San Diego and Hindu Temple Malibu for various events. He performs regularly during the Chennai Music season. He has participated and won several awards in the senior category at Cleveland Thyagaraja Festival including R. K. Srikantan Gold Medal. He has also won special Award at Chicago Thyagaraja Utsavam.
Vidushi Kalamandalam Prasanthi is a post-graduate and preparing of Ph. D in Performing Arts [Kutiyattam], a rare Sanskrit theatre from Kerala Kalamandalam Deemed University of Arts and Culture, Kerala.
She has participated in all major festivals in India and abroad to name a few: Nalanda Nrithyothsava, Mumbai, Dubai Festival and Delhi Sanskrit Drama Festival. She has also conducted workshops, Lecture /Demonstrations in [Kutiyattam] for young artistes. She is not only a performer but also an established choreographer of repute. | english |
New Delhi: Mrunal Thakur is one of the famous actresses of the film industry as well as of television. Recently, she took to her Instagram handle and posted a sizzling picture of herself.
Mrunal wore a golden Lehanga with golden neckless and styled her hair long-straight. The actress looked smart and gorgeous in this beautiful outfit. She completed her look with red lipstick, kajal, masakara and blusher on her cheeks. She attached her embroidered golden dupatta on one side of her shoulder.
Sharing the picture she captioned it with butterfly emojis. Fans flooded the comment section as one wrote, “Gorgeous”, Some commented “Cute”, other commented “My Queen”. Another wrote,
“Princess”.
Who is Mrunal Thakur?
Murnal Thakur is an Indian actress. She has appeared in Hindi and Marathi films and television shows. She began her career in 2012 with the television soap opera Mujhse Kuchh Kehti Yeh Khamoshiyaan. Next she was seen in Kumkum Bhagya (2014-2016).
Murnal Thakur made her film debut with the Marathi film Vitti Dandu in 2014. The actress transitioned to Hindi films with Love Sonia in 2018, for which she received critical acclaim. She has since starred in Super 30 in 2019, Batla House in 2019, Dhamaka in 2021, and Jersey in 2022.
She won FOI Online Award Love Sonia in 2018, Gold Award as Rising Star from TV to Film in 2019, Indian Television Academy Awardas Best Actress in a Supporting Role in Kumkum Bhagya in 2014, London Indian Film Festival, UK as Best Newcomer Award Love Sonia in 2018.
Mrunal Thakur also has appeared in the role of a journalist on Star Plus Show ‘Har Yug Mein Ayega Ek Arjun’. She also hosted a comedy stage play ‘Do Fool Chaar Mali along with co-host Barun Sobti in Dubai. In the year 2014, she participated in the sports reality entertainment show box Cricket League.
She was also a contestant in the show ‘Nach Baliye’ season 7 along with her longtime boyfriend Sharad Chandra Tripathi. | english |
{
"arxivLinks": {
"confidence": [
1.0
],
"excerpt": [
"https://arxiv.org/abs/1511.06335 and is customized to take advantage of current keras packages.\n\nWasserstein GAN is build based on paper https://arxiv.org/abs/1701.07875, implemented in kera",
"https://arxiv.org/abs/1701.07875, implemented in kera"
],
"technique": "Regular expression"
},
"codeRepository": {
"confidence": [
1.0
],
"excerpt": "https://github.com/chiqunz/Unsupervised_Models",
"technique": "GitHub API"
},
"dateCreated": {
"confidence": [
1.0
],
"excerpt": "2018-02-07T17:16:33Z",
"technique": "GitHub API"
},
"dateModified": {
"confidence": [
1.0
],
"excerpt": "2019-03-01T21:24:21Z",
"technique": "GitHub API"
},
"description": [
{
"confidence": [
0.837841165459789,
0.9654729864918549
],
"excerpt": "This repo has several customized or proposed unsupervised learning algorithms, most of which focuses on neural network. \nDeep embedding clustering model is based on paper https://arxiv.org/abs/1511.06335 and is customized to take advantage of current keras packages. \n",
"technique": "Supervised classification"
},
{
"confidence": [
1.0
],
"excerpt": "Unsupervised Learning Engines",
"technique": "GitHub API"
}
],
"downloadUrl": {
"confidence": [
1.0
],
"excerpt": "https://github.com/chiqunz/Unsupervised_Models/releases",
"technique": "GitHub API"
},
"forks_count": {
"confidence": [
1.0
],
"excerpt": {
"count": 0,
"date": "Tue, 28 Dec 2021 17:33:32 GMT"
},
"technique": "GitHub API"
},
"forks_url": {
"confidence": [
1.0
],
"excerpt": "https://api.github.com/repos/chiqunz/Unsupervised_Models/forks",
"technique": "GitHub API"
},
"fullName": {
"confidence": [
1.0
],
"excerpt": "chiqunz/Unsupervised_Models",
"technique": "GitHub API"
},
"hasExecutableNotebook": {
"confidence": [
1.0
],
"excerpt": [
"https://raw.githubusercontent.com/chiqunz/Unsupervised_Models/master/comparison%20semi-supervised/comparison_semisupervised.ipynb",
"https://raw.githubusercontent.com/chiqunz/Unsupervised_Models/master/comparison%20semi-supervised/.ipynb_checkpoints/comparison_semisupervised-checkpoint.ipynb"
],
"technique": "File Exploration"
},
"issueTracker": {
"confidence": [
1.0
],
"excerpt": "https://api.github.com/repos/chiqunz/Unsupervised_Models/issues{/number}",
"technique": "GitHub API"
},
"languages": {
"confidence": [
1.0
],
"excerpt": [
"Python",
"Jupyter Notebook"
],
"technique": "GitHub API"
},
"license": {
"confidence": [
1.0
],
"technique": "GitHub API"
},
"long_title": {
"confidence": [
1.0
],
"excerpt": "Unsupervised Learning Engines",
"technique": "Regular expression"
},
"name": {
"confidence": [
1.0
],
"excerpt": "Unsupervised_Models",
"technique": "GitHub API"
},
"owner": {
"confidence": [
1.0
],
"excerpt": "chiqunz",
"technique": "GitHub API"
},
"ownerType": {
"confidence": [
1.0
],
"excerpt": "User",
"technique": "GitHub API"
},
"readme_url": {
"confidence": [
1.0
],
"excerpt": "https://github.com/chiqunz/Unsupervised_Models/blob/master/README.md",
"technique": "GitHub API"
},
"stargazers_count": {
"confidence": [
1.0
],
"excerpt": {
"count": 0,
"date": "Tue, 28 Dec 2021 17:33:32 GMT"
},
"technique": "GitHub API"
}
} | json |
Adelaide, Dec 8 The West Indies have called up Omar Phillips as an emergency fielder for the second Test, pink ball day/night contest under lights, against Australia starting at Adelaide Oval on Thursday.
Some of the West Indies players including Nkrumah Bonner, who is ruled out due to concussion protocols after being struck on his helmet in the first Test, are unavailable for the second Test and thus Cricket West Indies have called-up Phillips as a precautionary measure.
"Phillips is presently playing club cricket in Australia and will join the squad on Thursday. The decision was made ahead of the Test as some members of the West Indies squad may be unavailable for selection due to injury. Additionally, Nkrumah Bonner has been ruled out due to concussion protocols after he was struck on the helmet in the 1st Test match," Cricket West Indies said on its official website.
Phillips played two Test matches for the West Indies against Bangladesh in 2009 as a left-handed opening batter. He scored 160 runs including a best of 94 on debut at the Arnos Vale in St Vincent.
Meanwhile, Australia too were forced to make a change to their squad as pacer Josh Hazlewood was ruled out of the Adelaide Test because of due to "general soreness" following a heavy workload during the Perth Test.
Michael Neser has been included in the squad in his place.
Neser made his Australia Test debut against England last year in Adelaide in similar circumstances as both Cummins (Covid-19 close contact) and Hazlewood (injury) were unavailable.
Neser has not played for Australia since that match. He was seen marking out his run-up out just before the start of play on Thursday. | english |
{%- capture article_class %}js-comment comment{% if include.name == site.author.name %} admin{% endif %}{% if include.is_reply %} child{% endif %}{% endcapture %}
{% assign comment_id = include.uid | prepend: 'comment-' %}
<article id="{{ comment_id }}" class="{{ article_class }}" uid="{{ include.uid }}">
<div class="comment__author">
{% if include.name == site.author.name %}
<span class="comment__admin_tag">Author</span>
{% endif %}
{{- include.name | strip_html }}
<span class="comment__date">
{%- if include.date -%}
•
<a href="#{{ comment_id}}" title="Permalink to this comment">
{{- include.date | date:"%B %e, %Y %H:%M" -}}
</a>
{%- endif -%}
</span>
</div>
<div class="comment__body">
{{ include.message | strip_html | markdownify }}
</div>
{% if include.is_reply %}
</article>
{% else %}
<div class="comment__meta">
<a rel="nofollow" class="comment__reply-link" onclick="return addComment.moveForm('{{ comment_id }}', 'respond', '{{ include.uid }}')">↪︎ Reply to {{ include.name }}</a>
</div>
</article>
{%- capture this_uid %}{{ include.uid }}{% endcapture %}
{%- assign replies = site.data.comments[page.slug] | where_exp: 'item', 'item.replying_to == this_uid' %}
{%- assign replies_date = replies | sort: 'date' %}
{% for reply in replies_date %}
{%- assign email = reply.email -%}
{%- assign name = reply.name -%}
{%- assign url = reply.url -%}
{%- assign date = reply.date -%}
{%- assign message = reply.message -%}
{%- assign uid = reply._id -%}
{% include comment.html is_reply=true uid=uid email=email name=name url=url date=date message=message %}
{% endfor %}
<hr style="margin-bottom: 10px;">
{% endif %} | html |
package protocol
import (
"context"
"encoding/hex"
"sync/atomic"
"time"
"i10r.io/crypto/ed25519"
"i10r.io/errors"
"i10r.io/log"
"i10r.io/protocol/bc"
"i10r.io/protocol/patricia"
"i10r.io/protocol/state"
)
var (
// ErrBadContractsRoot is returned when the computed contracts merkle root
// disagrees with the one declared in a block header.
ErrBadContractsRoot = errors.New("invalid contracts merkle root")
// ErrBadNoncesRoot is returned when the computed nonces merkle root
// disagrees with the one declared in a block header.
ErrBadNoncesRoot = errors.New("invalid nonces merkle root")
)
// GetBlock returns the block at the given height, if there is one,
// otherwise it returns an error.
func (c *Chain) GetBlock(ctx context.Context, height uint64) (*bc.Block, error) {
return c.store.GetBlock(ctx, height)
}
// GenerateBlock generates a valid, but unsigned, candidate block from
// the current pending transaction pool. It returns the new block and
// a snapshot of what the state snapshot is if the block is applied.
//
// After generating the block, the pending transaction pool will be
// empty.
func (c *Chain) GenerateBlock(ctx context.Context, timestampMS uint64, txs []*bc.CommitmentsTx) (*bc.UnsignedBlock, *state.Snapshot, error) {
err := c.bb.Start(c.State(), timestampMS)
if err != nil {
return nil, nil, err
}
for _, tx := range txs {
err := c.bb.AddTx(tx)
if err != nil {
log.Printkv(ctx, "event", "invalid tx", "error", err, "tx", hex.EncodeToString(tx.Tx.Program))
}
}
return c.bb.Build()
}
// CommitAppliedBlock takes a block, commits it to persistent storage and
// sets c's state. Unlike CommitBlock, it accepts an already applied
// snapshot. CommitAppliedBlock is idempotent.
func (c *Chain) CommitAppliedBlock(ctx context.Context, block *bc.Block, snapshot *state.Snapshot) error {
err := c.store.SaveBlock(ctx, block)
if err != nil {
return errors.Wrap(err, "storing block")
}
curState := c.State()
// CommitAppliedBlock needs to be idempotent. If block's height is less than or
// equal to c's current block, then it was already applied. Because
// SaveBlock didn't error with a conflict, we know it's not a different
// block at the same height.
if block.Height <= curState.Height() {
return nil
}
return c.finalizeCommitState(ctx, snapshot)
}
// CommitBlock takes a block, commits it to persistent storage and applies
// it to c. CommitBlock is idempotent. A duplicate call with a previously
// committed block will succeed.
func (c *Chain) CommitBlock(ctx context.Context, block *bc.Block) error {
err := c.store.SaveBlock(ctx, block)
if err != nil {
return errors.Wrap(err, "storing block")
}
curSnapshot := c.State()
// CommitBlock needs to be idempotent. If block's height is less than or
// equal to c's current block, then it was already applied. Because
// SaveBlock didn't error with a conflict, we know it's not a different
// block at the same height.
if block.Height <= curSnapshot.Height() {
return nil
}
snapshot := state.Copy(curSnapshot)
err = snapshot.ApplyBlock(block.UnsignedBlock)
if err != nil {
return err
}
if block.ContractsRoot.Byte32() != snapshot.ContractsTree.RootHash() {
return ErrBadContractsRoot
}
if block.NoncesRoot.Byte32() != snapshot.NonceTree.RootHash() {
return ErrBadNoncesRoot
}
return c.finalizeCommitState(ctx, snapshot)
}
func (c *Chain) finalizeCommitState(ctx context.Context, snapshot *state.Snapshot) error {
// Save the blockchain state tree snapshot to persistent storage
// if we haven't done it recently.
lastQueuedHeight := atomic.LoadUint64(&c.lastQueuedSnapshotHeight)
if lastQueuedHeight+c.blocksPerSnapshot <= snapshot.Height() {
c.queueSnapshot(ctx, snapshot)
}
// setState will update c's current block and snapshot, or no-op
// if another goroutine has already updated the state.
c.setState(snapshot)
// The below FinalizeHeight will notify other cored processes that
// the a new block has been committed. It may result in a duplicate
// attempt to update c's height but setState and setHeight safely
// ignore duplicate heights.
err := c.store.FinalizeHeight(ctx, snapshot.Height())
return errors.Wrap(err, "finalizing block")
}
func (c *Chain) queueSnapshot(ctx context.Context, s *state.Snapshot) {
// Non-blockingly queue the snapshot for storage.
select {
case c.pendingSnapshots <- s:
atomic.StoreUint64(&c.lastQueuedSnapshotHeight, s.Height())
default:
// Skip it; saving snapshots is taking longer than the snapshotting period.
lastQueuedHeight := atomic.LoadUint64(&c.lastQueuedSnapshotHeight)
log.Printf(ctx, "snapshot storage is taking too long; %d blocks since last snapshot queued",
s.Height()-lastQueuedHeight)
}
}
// NewInitialBlock produces the first block for a new blockchain,
// using the given pubkeys and quorum for its NextPredicate.
func NewInitialBlock(pubkeys []ed25519.PublicKey, quorum int, timestamp time.Time) (*bc.Block, error) {
// TODO(kr): move this into a lower-level package (e.g. chain/protocol/bc)
// so that other packages (e.g. chain/protocol/validation) unit tests can
// call this function.
root := bc.TxMerkleRoot(nil) // calculate the zero value of the tx merkle root
patRoot := bc.NewHash(new(patricia.Tree).RootHash())
var pkBytes [][]byte
for _, pk := range pubkeys {
pkBytes = append(pkBytes, pk)
}
b := &bc.Block{
UnsignedBlock: &bc.UnsignedBlock{
BlockHeader: &bc.BlockHeader{
Version: 3,
Height: 1,
TimestampMs: bc.Millis(timestamp),
TransactionsRoot: &root,
ContractsRoot: &patRoot,
NoncesRoot: &patRoot,
NextPredicate: &bc.Predicate{
Version: 1,
Quorum: int32(quorum),
Pubkeys: pkBytes,
},
},
},
}
return b, nil
}
| go |
<reponame>lospejos/minecraft-mod-manager
from typing import Union
from ...core.entities.mod import Mod
class ConfigureRepo:
def get_mod(self, id: str) -> Union[Mod, None]:
raise NotImplementedError()
def update_mod(self, mod: Mod) -> None:
raise NotImplementedError()
| python |
<reponame>jeremytammik/the_building_code_blog<filename>a/1402_bim_docs_addin_folders.html
<p><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="bc.css">
<script src="run_prettify.js" type="text/javascript"></script>
<!---
<script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js" type="text/javascript"></script>
-->
</head></p>
<!---
#dotnet #csharp
#fsharp #python
#grevit
#responsivedesign #typepad
#ah8 #augi #dotnet
#stingray #rendering
#3dweb #3dviewAPI #html5 #threejs #webgl #3d #mobile #vr #ecommerce
#Markdown #Fusion360 #Fusion360Hackathon
#javascript
#RestSharp #restAPI
#mongoosejs #mongodb #nodejs
#rtceur
#xaml
#3dweb #a360 #3dwebaccel #webgl @adskForge
@AutodeskReCap @Adsk3dsMax
#revitAPI #bim #aec #3dwebcoder #adsk #adskdevnetwrk @jimquanci @keanw
#au2015 #rtceur
#eraofconnection
Revit API, <NAME>, akn_include
BIM 360 Docs, Add-In Folders, Stallman and Abc #revitAPI #3dwebcoder @AutodeskRevit @adskForge #3dwebaccel #a360 #bim #RMS @researchdigisus
I am going to the University of Bern this afternoon to listen to <NAME> speak For A Free Digital Society.
Here are some other recent and not-so-recent topics
– BIM 360 Docs
– <NAME> in Switzerland
– Is the <i>abc</i> conjecture proven?
– Add-In Folders
– BIM 360 Docs is the new Autodesk platform for construction document management.
It provides web services to ensure that the entire project team is always building from the correct version of documents, plans, and models...
-->
<h3>BIM 360 Docs, Add-In Folders, Stallman and Abc</h3>
<p>I am going to the University of Bern this afternoon to listen to <NAME>
speak <a href="http://www.digitale-nachhaltigkeit.unibe.ch/veranstaltungen/richard_m_stallman/index_ger.html">For A Free Digital Society</a>.</p>
<p>Here are some other recent and not-so-recent topics:</p>
<ul>
<li><a href="#2">BIM 360 Docs</a></li>
<li><a href="#3"><NAME> in Switzerland</a></li>
<li><a href="#4">Is the <em>abc</em> conjecture proven?</a></li>
<li><a href="#5">Add-In Folders</a></li>
</ul>
<h4><a name="2"></a>BIM 360 Docs</h4>
<p><a href="http://www.autodesk.com/products/bim-360-docs/overview">BIM 360 Docs</a> is
the new Autodesk platform for construction document management.</p>
<p>The <a href="http://www.autodesk.com/products/bim-360-docs/overview">BIM 360 Docs</a> web
service ensures that the entire project team is always building from the correct version of documents, plans, and models.</p>
<p>This is obviously absolutely fundamental to save time, reduce risk, and mitigate errors in construction projects.</p>
<p>It was previously available as preview technology and is now unleashed as a real product,
so <a href="http://www.engineering.com/BIM/ArticleID/11434/BIM-360-Docs-Not-a-Preview-Anymore.aspx">not a preview any more</a>.</p>
<p>You can <a href="https://bim360docs.autodesk.com/session">sign in</a> for a test run right away.</p>
<p>Long-term, in my wildest fantasies, I can imagine BIM 360 Docs growing into something like a synthesis of Navisworks, the current BIM 360 platform, Vault, and more.</p>
<p>Pretty cool dream, isn't it?</p>
<h4><a name="3"></a><NAME> in Switzerland</h4>
<p><a href="https://de.wikipedia.org/wiki/Richard_Stallman"><NAME></a> of
the <a href="https://www.fsf.org">Free Software Foundation FSF</a> is visiting and giving talks in Switzerland:</p>
<ul>
<li><a href="https://www.fsf.org/events/rms-20160205-bern">Bern University</a>
– <a href="http://www.digitale-nachhaltigkeit.unibe.ch/veranstaltungen/richard_m_stallman/index_ger.html">For A Free Digital Society</a></li>
<li><a href="https://www.fsf.org/events/rms-20160208-zurich">Zurich ImpactHub</a></li>
<li><a href="https://www.fsf.org/events/rms-20160210-sierre">Sierre</a></li>
<li><a href="https://www.fsf.org/events/rms-speeches.html">More events with Stallman</a></li>
<li><a href="https://www.fsf.org/events/all.html">More FSF events</a></li>
</ul>
<p><center>
<img src="img/Richard_Stallman.jpg" alt="<NAME>" width="220">
</center></p>
<p>I am going to the presentation in Bern this afternoon, and hoping to meet my colleague
<a href="http://through-the-interface.typepad.com/through_the_interface/about-the-author.html"><NAME></a> there
too.</p>
<h4><a name="4"></a>Is the <em>abc</em> Conjecture Proven?</h4>
<p>Talking about universities and academics, a local newspaper just mentioned that
the <a href="https://en.wikipedia.org/wiki/Abc_conjecture">abc Conjecture</a> has now been proved
by <a href="https://en.wikipedia.org/wiki/Shinichi_Mochizuki">Shinichi Mochizuki</a>.</p>
<p>The <a href="https://en.wikipedia.org/wiki/Abc_conjecture">Wikipedia article</a> does
indeed mention his efforts and how challenging it is to verify them.</p>
<p>Interesting stuff.</p>
<p>I love diving into pure maths just a little bit now and then.</p>
<h4><a name="5"></a>Add-In Folders</h4>
<p>Back to Revit again. This rather dated question that a whole bunch of my colleagues from ADN chipped in to answer from
the <a href="http://forums.autodesk.com/t5/revit-api/bd-p/160">Revit API discussion forum</a> thread on
the <a href="http://forums.autodesk.com/t5/revit-api/autoloader-folder-applicationplugins/td-p/5556540">auto-loader folders for application plugins</a> has
been hanging around for a while in my to-do list:</p>
<p><strong>Question:</strong> It appears that the folders used for AutoCAD add-ins is also valid for use with Revit.</p>
<p>I can therefore use this path:</p>
<blockquote>
<p>C:\ProgramData\Autodesk\ApplicationPlugins\MySuperApp.bundle</p>
</blockquote>
<p>instead of the Revit specific add-in folder:</p>
<blockquote>
<p>C:\ProgramData\Autodesk\Revit\Addins\2014\MySuperApp.bundle</p>
</blockquote>
<p>Is this correct?</p>
<p>I would much rather have a common installation folder for both AutoCAD and Revit applications managed via the XML manifest file.</p>
<p><strong>Answer:</strong> Yes, the ApplicationPlugins folder should work for both AutoCAD and Revit (on the current versions).</p>
<p>Looking forward, we are thinking about moving the default to the <code>Program Files</code> folder for the AutoCAD environment.</p>
<p>The Revit API help file RevitAPI.chm does not have anything additional to say on this subject, as you can see under Developers > Revit API Developers Guide > Introduction > Add-In Integration
> <a href="http://help.autodesk.com/view/RVT/2015/ENU/?guid=GUID-4FFDB03E-6936-417C-9772-8FC258A261F7">Add-in Registration</a>.</p>
<p>My colleagues concur, saying:</p>
<p>Yes, that is the theory; Max, Maya and AutoCAD (at least) use</p>
<blockquote>
<p>C:\ProgramData\Autodesk\ApplicationPlugins</p>
</blockquote>
<p>As long as the host app looks in that folder, it should work.</p>
<p>I just checked, and that location works for Inventor 2015 AddIns as well.</p>
<p>The Inventor API Help describes these four recommended locations:</p>
<ul>
<li>All Users, Version Independent<ul>
<li>Windows 7 - %ALLUSERSPROFILE%\Autodesk\Inventor Addins\</li>
<li>Windows XP - %ALLUSERSPROFILE%\Application Data\Autodesk\Inventor Addins\</li>
</ul>
</li>
<li>All Users, Version Dependent<ul>
<li>Windows 7 - %ALLUSERSPROFILE%\Autodesk\Inventor 2013\Addins\</li>
<li>Windows XP - %ALLUSERSPROFILE%\Application Data\Autodesk\Inventor 2013\Addins\</li>
</ul>
</li>
<li>Per User, Version Dependent<ul>
<li>Both Window 7 and XP - %APPDATA%\Autodesk\Inventor 2013\Addins\</li>
</ul>
</li>
<li>Per User, Version Independent<ul>
<li>Both Window 7 and XP - %APPDATA%\Autodesk\ApplicationPlugins</li>
</ul>
</li>
</ul>
<p>Here is some additional information on this from the AppStore perspective:</p>
<p>These two folder locations were added to support our Exchange Store apps:</p>
<ul>
<li>%AppData%\Autodesk\ApplicationPlugins</li>
<li>%ProgramData%\Autodesk\ApplicationPlugins</li>
</ul>
<p>You can find more information on the XML files from
the <a href="http://www.autodesk.com/developapps">App Store Developer Centre</a>,
including <a href="http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=20143032">specifics about publishing Revit apps</a>.</p>
<p>Further down, the page provides a table with recordings and PowerPoint slide decks.
You may want to take a look at the XML tags mentioned there.
This is the location to place exchange apps for all the different products.
Make sure that you provide all relevant information in the XML file and structure your apps as self-contained archive file bundles as described in the publisher page.</p> | html |
<gh_stars>0
class Graph {
private ColorImage graph;
private String title = "";
private String xtitle = "";
private String ytitle = "";
Graph(ColorImage graph) {
this.graph = graph;
}
Graph(ColorImage graph, String title, String xtitle, String ytitle) {
this.graph = graph;
this.title = title;
this.xtitle = xtitle;
this.ytitle = ytitle;
}
String getTitle() {
return this.title;
}
void setTitle(String title) {
this.title = title;
}
void setXTitle(String xtitle) {
this.xtitle = xtitle;
}
void setYTitle(String ytitle) {
this.ytitle = ytitle;
}
void setEvenColummOddLinePixelsTransparent() {
for(int x = 0; x < this.graph.getWidth(); x++) {
if(x % 2 == 0) {
for(int y = 0; y < this.graph.getHeight(); y++) {
if(y % 2 != 0) {
this.graph.setColor(x, y, new Color(0, 0, 0));
}
}
}
}
}
void setOddColumnEvenLinePixelsTransparent() {
for(int x = 0; x < this.graph.getWidth(); x++) {
if(x % 2 != 0) {
for(int y = 0; y < this.graph.getHeight(); y++) {
if(y % 2 == 0) {
this.graph.setColor(x, y, new Color(0, 0, 0));
}
}
}
}
}
String getInfo() {
return "Title: ".concat(this.title).concat("\nX Axis Title: ").concat(this.xtitle).concat("\nY Axis Title: ").concat(this.ytitle);
}
ColorImage getImage() {
return this.graph;
}
static void test() {
Graph g = new Graph(GraphUtils.columnGraph(new int[]{20, 30, 10, 10, 25}, 10, 10, new Color(255, 255, 255)), "Test", "X", "Y");
Graph g2 = new Graph(GraphUtils.blurredColumnGraph(new int[]{20, 30, 10, 10, 25}, 20, 10, 4, new Color(0, 241, 255)));
return;
}
} | java |
const { Schema, model } = require('mongoose');
const dateFormat = require('../utils/dateFormat');
const applicationSchema = new Schema({
company: {
type: String,
required: 'You need to indicate a company!',
minlength: 1,
maxlength: 280,
trim: true,
},
date_applied: {
type: String,
required: 'You need to add a date!'
},
contact_name: {
type: String,
required: 'You need to indicate a contact name!'
},
contact_phone: {
type: String,
trim: true,
},
contact_email: {
type: String,
required: 'You need to indicate a contact email!',
trim: true,
},
contact_website: {
type: String,
trim: true,
},
response: {
type: String,
default: null
},
createdAt: {
type: Date,
default: Date.now,
get: (timestamp) => dateFormat(timestamp),
},
cover_letter: {
type: String,
default: null
},
});
const Application = model('Application', applicationSchema);
module.exports = Application;
| javascript |
Tiger Shroff has been Bollywood's best action performing actor; recently, he gave his fans a sneak-peek into his Ganapath action rehearsals.
Bollywood actor Tiger Shroff is one of the best action heroes in India. He is also the very fittest actor in the business. Today, Tiger Shroff took this social media handle to post an action sequence rehearsal video from his upcoming film Ganapath.
Tiger Shroff can definitely give any stuntman a run for his money if you don't believe it, check this video. Tiger can be seen doing triple kicks and his famous high jumps in the video while kicking off the Villains. The background music symbolises a serious fight sequence and the ever so energetic actor wrote in the captions,
"Heres a small sneak peak into our #ganpath action rehearsals with the amazing @timman79 🔥🙌this is just the beginning guys hes pushed me beyond my limits…some amazing stuff coming soon❤️stay tuned @jackkybhagnani #vikasbahl"
Ganapath is all set to release in 2022, and it is said that the film might have a part 2 sometime later. Earlier this year Ganapath's teaser was revealed, and it showed Tiger in a powerful avatar resting on a throne-like boss with a cigarette in one hand while showing off his chiselled body and washboard abs.
Tiger recently did his Hindi debut song, 'Vande Mataram' for which the PM himself praised him. On the work front, Tiger is all set to feature in a few big-budget movies like Heropanti 2, Baaghi 4, Rambo, along with Ganapath. | english |
The U. S. for the first time has approved the direct delivery of Stinger missiles to Ukraine as part of a package approved by the White House on Friday. The exact timing of delivery is not known, but officials say the U. S. is currently working on the logistics of the shipment. The officials agreed to discuss the development only if not quoted by name.
The decision comes on the heels of Germany’s announcement that it will send 500 Stinger missiles and other weapons and supplies to Ukraine. The high-speed Stingers are very accurate and are used to shoot down helicopters and other aircraft. Ukrainian officials have been asking for more of the powerful weapons.
Estonia has also been providing Ukraine with Stingers since January, and in order to do that had to get U. S. permission.
The Nordic nations of Sweden and Finland said they will send military aid to Ukraine including anti-tank weapons, helmets and body armour. Swedish Prime Minister Magdalena Andersson and Defence Minister Peter Hultqvist said at a news conference on Sunday that Stockholm would ship 5,000 anti-tank weapons, 5,000 helmets, 5,000 units of body armour and 1,35,000 field rations in support to Ukraine’s military.
Neighbouring Finland said earlier on Sunday that it would send 2,000 helmets, 2,000 bulletproof vests, 100 stretchers and equipment for two emergency medical care stations as aid to Ukraine. Russian forces invaded its smaller neighbour on Thursday, drawing sanctions and international condemnation.
Australia will provide lethal military equipment to Ukraine to help the Ukrainians resist the Russian invasion. The Australian government’s announcement on Monday gave no details on what material it may be sending. The move follows an offer on Friday of non-lethal military equipment, medical supplies and a USD 3 million contribution to a NATO trust fund for support of the besieged country.
Read all the Latest News India and Breaking News here(This story has not been edited by News18 staff and is published from a syndicated news agency feed - PTI) | english |
// Copyright 2019 <NAME>. See LICENSE file for terms.
#include "test.hpp"
int main() {
path_start();
int n=INT_RAND, k=INT_RAND, j=INT_RAND;
int x=0;
if ( n == 0 ) {
x++;
}
if (k == 0) {
x++;
}
if (j == 0) {
x++;
}
if (x == 3) {
path_goal();
}
}
| cpp |
<reponame>Silver-Connection/sico-web-helpers
/**
* @summary DataTables Bootstrap 4 helper
* @description Converts Paging and search to work with bootstrap
* @version 2.3
* @file dataTables.bootstrap.js
* @author Silver Connection OHG
* @contact <NAME>. <<EMAIL>>
* @copyright Copyright 2017 Silver Connection OHG
*
* This source file is free software, available under the following license:
* MIT license - http://datatables.net/license
*
* This source file is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
*
* For details please refer to: https://github.com/Silver-Connection/dataTables.bootstrap and http://www.datatables.net
*/
"use strict";
var _this = this;
var sico;
(function (sico) {
var DataTablesBootstrap4 = /** @class */ (function () {
function DataTablesBootstrap4() {
}
/**
* Render function for table filter
* @param table
*/
DataTablesBootstrap4.fnFeatureHtmlFilter = function (table) {
// set up filter
if ($("div.dataTables_filter", table).length > 0) {
var filterString = $("div.dataTables_filter label", table).text().trim();
if (filterString[filterString.length - 1] === ":") {
filterString = filterString.substring(0, filterString.length - 1);
}
var filterInput = $("div.dataTables_filter input", table).attr("placeholder", filterString);
var filterHtml = $("<div>", { class: "input-group" })
.append('<div class="input-group-prepend"><i class="input-group-text fa fa-search" aria-hidden="true"></i></div>')
.append(filterInput);
$("div.dataTables_filter", table).addClass("form-group").append(filterHtml);
$("div.dataTables_filter label", table).detach();
}
};
/**
* Render function for table length selector
* @param table
*/
DataTablesBootstrap4.fnFeatureHtmlLength = function (table) {
// set up page-size
if ($("div.dataTables_length", table).length > 0) {
$("div.dataTables_length", table)
.addClass("form-group")
.addClass("d-inline-flex")
.addClass("pull-right");
var pageSelect = $("div.dataTables_length select", table);
var pageHtml = $("<div>", { class: "input-group" })
.append('<span class="input-group-prepend"><i class="input-group-text fa fa-list" aria-hidden="true"></i></span>')
.append(pageSelect);
$("div.dataTables_length", table).append(pageHtml);
var pageString = $("div.dataTables_length label", table).text().trim();
pageSelect.attr("title", pageString);
$("div.dataTables_length label", table).detach();
}
};
DataTablesBootstrap4.Paging = {
bootstrap: {
fnInit: function (settings, paging, fnDraw) {
var oLang = settings.oLanguage.oPaginate;
var fnClickHandler = function (e) {
e.preventDefault();
if (settings.oApi._fnPageChange(settings, e.data.action)) {
fnDraw(settings);
}
};
var html = "\n<nav>\n <ul class=\"pagination\">\n <li class=\"" + settings.oClasses.sPageButton + " static-control first disabled\"><a href=\"#\" class=\"page-link\"><i class=\"fa fa-step-backward\"></i></a></li>\n <li class=\"" + settings.oClasses.sPageButton + " static-control prev disabled\"><a href=\"#\" class=\"page-link\"><i class=\"fa fa-caret-left\"></i></a></li>\n <li class=\"" + settings.oClasses.sPageButton + " static-control next disabled\"><a href=\"#\" class=\"page-link\"><i class=\"fa fa-caret-right\"></i></a></li>\n <li class=\"" + settings.oClasses.sPageButton + " static-control last disabled\"><a href=\"#\" class=\"page-link\"><i class=\"fa fa-step-forward\"></i></a></li>\n </ul>\n</nav>\n";
$(paging).append(html);
var els = $("a", paging);
$(els[0]).bind("click.DT", { action: "first" }, fnClickHandler);
$(els[1]).bind("click.DT", { action: "previous" }, fnClickHandler);
$(els[2]).bind("click.DT", { action: "next" }, fnClickHandler);
$(els[3]).bind("click.DT", { action: "last" }, fnClickHandler);
},
fnUpdate: function (settings, fnDraw) {
var dt = $(settings.nTable).dataTable().api();
// var dt: DataTables.DataTables = new $.fn.dataTable.Api(settings.nTable);
var info = dt.page.info();
var an = settings.aanFeatures["p"];
var btnMax = 5;
var btnOffset = Math.floor((btnMax - 1) / 2);
var jen = 0;
var j = 0;
// remove old btns
$("li:not(.static-control)", an[0]).remove();
// add / remove disabled classes from the static elements
if (info.pages > 1) {
// enable btns
$(an[0]).removeClass("invisible");
$("li.first, li.prev, li.next, li.last", an[0]).removeClass("disabled");
if (info.page === 0) {
$("li.first, li.prev", an[0]).addClass("disabled");
}
else if (info.page === (info.pages - 1)) {
$("li.next, li.last", an[0]).addClass("disabled");
}
if (btnMax > info.pages) {
btnMax = info.pages;
}
var count = btnMax + info.page - btnOffset;
var start = info.page - btnOffset;
if (start < 0) {
var offset = start * (-1);
start = start + offset;
count = count + offset;
}
if ((count + 1) > info.pages) {
var offset = count - info.pages;
start = start - offset;
count = info.pages;
}
// add the new list items and their event handlers
for (j = start, jen = count - 1; j <= jen; j++) {
var btnActive = 'class="'
+ settings.oClasses.sPageButton + ((j === info.page) ? " active" : "") + '"';
var btn = $("<li " + btnActive + '><a href="#" class="page-link">' + (j + 1) + "</a></li>")
.insertBefore($("li.next", an[0])[0]);
if (j === info.page) {
$("a", btn).attr("style", "cursor: default;");
}
else {
btn.bind("click", function (e) {
e.preventDefault();
dt.page((parseInt($("a", e.currentTarget).text(), 10) - 1));
fnDraw(settings);
});
}
}
}
else {
// Hide btns
$(an[0]).addClass("invisible");
// disable btns
$("li.first, li.prev, li.next, li.last", an[0]).addClass("disabled");
}
},
},
};
return DataTablesBootstrap4;
}());
sico.DataTablesBootstrap4 = DataTablesBootstrap4;
})(sico || (sico = {}));
if (typeof $.fn.dataTable === "function" &&
typeof $.fn.dataTable.versionCheck === "function" &&
$.fn.dataTable.versionCheck("1.10.0")) {
/* Default table settings */
$.extend(true, $.fn.dataTable.defaults, {
dom: "<'row'<'col-lg-5'f><'col-lg-7'Bl>>"
+ "<'row'<'col-lg-12't>>"
+ "<'row'<'col-lg-5'i><'col-lg-7'p>>Ox",
paging: true,
pagingType: "bootstrap",
stateSave: true,
language: {
buttons: {
print: '<i class="fa fa-print" aria-hidden="true"></i>',
copy: '<i class="fa fa-clipboard" aria-hidden="true"></i>',
csv: '<i class="fa fa-file-text-o" aria-hidden="true"></i>',
colvis: '<i class="fa fa-list-alt" aria-hidden="true"></i> <text>Columns</text>',
},
},
});
/* Default class names */
var defaultClasses = {
sWrapper: "dataTables_wrapper dt-bootstrap4",
sFilterInput: "form-control",
sLength: "dataTables_length",
sLengthSelect: "form-control",
sProcessing: "dataTables_processing panel panel-default",
sPaging: "dataTables_paginate pull-right page_",
sPageButton: "paginate_button page-item",
};
$.extend($.fn.dataTable.ext.classes, defaultClasses);
$.fn.dataTable.ext.buttons.collection.className += " dropdown-toggle";
/* Default button settings */
$.extend(true, $.fn.dataTable.Buttons.defaults, {
dom: {
container: {
className: "dt-buttons btn-group ",
},
button: {
className: "btn btn-outline-secondary",
},
collection: {
tag: "div",
className: "dt-button-collection dropdown-menu",
button: {
tag: "a",
className: "dt-button dropdown-item",
},
},
},
});
// Add select buttons
$.extend($.fn.dataTable.ext.buttons, {
selectInverse: {
text: '<i class="fa fa-exchange" aria-hidden="true"></i>',
className: "buttons-select-inverse",
action: function () {
var selected = _this.rows({ selected: true });
var deselected = _this.rows({ selected: false });
selected.deselect();
deselected.select();
},
},
});
/* bootstrap style pagination control */
$.extend($.fn.dataTable.ext.pager, sico.DataTablesBootstrap4.Paging);
/* register a new feature with DataTables */
$.fn.dataTable.ext.feature.push({
fnInit: function (settings) {
var init = settings.oInit;
// transform filter
if (settings.aanFeatures["f"] && settings.aanFeatures["f"] != null) {
sico.DataTablesBootstrap4.fnFeatureHtmlFilter(settings.nTableWrapper);
}
// transform page length
if (settings.aanFeatures["l"] && settings.aanFeatures["l"] != null) {
sico.DataTablesBootstrap4.fnFeatureHtmlLength(settings.nTableWrapper);
}
return;
},
cFeature: "x",
sFeature: "BootstrapInit",
});
}
else {
alert("Warning: BootstrapInit requires DataTables 1.10 or greater - www.datatables.net/download");
}
//# sourceMappingURL=sico.datatables.b4.js.map | javascript |
Minister Botsa Satyanarayana is the one who kept offering indications that Amaravati isn't safe location to have capital and YCP Government is keen to have the capital in some other part of the state. Once again, The Minister has made interesting commerts on the AP Capital.
Botsa maintained that YCP Govt-appointed Committee will decide where the Capital should be established whether its Amaravati or Hymavati. He offered a clear message (Amaravati won't be AP Capital) by doing so.
Reacting to Chandrababu Naidu's claim that 33,000 acres were offered by farmers for the sake of Capital, Botsa made it clear people are willing to handover lakhs of acres for the financial capital. He wondered why Babu, who increased AP debts during his rule, failed to build even a single permanent structure in AP Capital.
Botsa recalled Singapore Consortium had voluntarily offered to exit from the Start-Up Area. He also pointed out Peter Committee confirmed that all the structures in AP Capital are against the norms.
The Minister told expenditure will increase if Amaravati remains the capital of AP because 100-feet has to be dug to lay foundation for the structures. He added, 'Planning to build Country's best capital after the panel submits report in 6 weeks'.
There is a remark on Chandrababu Naidu that he choose Amaravati as the capital for helping his coterie attain huge wealth through land mafia. Looks like, YCP Government is now trying to teach the Yellow Camp a fitting lesson by shifting capital. | english |
<reponame>62442katieb/osr2020
---
layout: base
---
{% include header.html type="speaker" %}
{% assign img_path = nil %}
{% assign names = page.Name | downcase | split: " " %}
{% assign img_path = site.baseurl | append: "/img/person_default.jpg" %}
{% for file in site.static_files %}
{% if file.path contains names.first and file.path contains names[1] %}
{% assign img_path = file.path %}
{% endif %}
{% endfor %}
<div class="container" role="main">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<table style="border: none">
<tr style="border: none">
<td style="border: none">
<span> <h1>{{ page.Name }} {% if page.Pronouns %} <i>({{ page.Pronouns }})</i> {% endif %}</h1></span>
<h4> {{page.Job}}, {{ page.Affiliation }} </h4>
<p> {{ page.ShortBio | markdownify }} </p>
<h4>
{% if page.Twitter %} <a target="_blank" href="https://twitter.com/{{ page.Twitter }}"><i class="fa fa-twitter fa-2x" style="position: relative;text-indent:0px; vertical-align: middle; margin-left:4px; margin-right:4px;"></i></a> {% endif %}
{% if page.Github %} <a target="_blank" href="https://github.com/{{ page.Github }}"><i class="fa fa-github fa-2x" style="position: relative; text-indent:0px; vertical-align: middle; margin-left:4px; margin-right:4px; "></i></a>{% endif %}
{% if page.Website %} <a target="_blank" href="{{ page.Website }}"> <i class="fa fa-external-link-square fa-2x" style="position: relative; top: 0px;text-indent:0px; vertical-align: middle; margin-left:4px; margin-right:4px;"></i></a>{% endif %}
</h4>
</td>
<td style="border: none; width: 35%"><img src="{{ site.baseurl }}{{ img_path }}" class="person"></td>
</tr>
{% assign talks = site.data.accepted_talks | where: "Name", page.Name %}
{% if talks.size > 0 %}
<tr style="border: none; background: none"><td style="border: none; background: none">
<h3> Talks </h3>
{% for talk in talks %}
<span>
<h4><i> {{ talk.TalkTitle }} </i></h4>
<h5><a target="_blank" href="{{talk.Link}}">Talk abstract</a> - {{ talk.Date }} </h5>
<h5>Theme: {{talk.Theme}}</h5>
<h5>Format: {{talk.TalkFormat}}</h5>
<br>
</span>
{% endfor %}
</td></tr>
{% endif %}
</table>
</div>
</div>
</div>
| html |
While we're still waiting for AMC to announce who will play title character Jesse Custer for their TV adaptation of the comic Preacher (along with his vampire pal Cassidy) a very strange side character with an extremely messed-up backstory has been revealed. Behold, Arseface.
AMC has announced that fresh-faced newcomer Ian Colletti will play Eugene Root, a.k.a. Arseface. He's actually a very strange and sad character who wrecked his face trying to commit suicide like his idol, Kurt Cobain.
Arseface even got his own origin story single-issue comic, titled "Preacher: The Story of You-Know-Who" which makes us wonder if AMC and Seth Rogen and Evan Goldberg (producers on the series) will also do a single-episode backstory for this character. Either way, Arseface has a very strange arc in the Preacher comics, so we look forward to hearing him sing. This also might mean we'll get to meet the one-eyed Lorie Bobbs.
Man, the cast of Preacher is totally deranged. It should be interesting to see how this one shakes out on television.
| english |
package net.mureng.mureng.member.repository;
import net.mureng.mureng.member.entity.MemberAttendance;
import org.springframework.data.jpa.repository.JpaRepository;
public interface MemberAttendanceRepository extends JpaRepository<MemberAttendance, Long> {
}
| java |
import React, { useState } from 'react';
import { useDispatch } from 'react-redux';
import { Button, Divider, Input } from 'semantic-ui-react';
import Card from '../../components/Card';
import { MiscData, Show, Showtime } from '../../datatypes';
import { setData } from '../../reducers/dataReducer';
import database from '../../tools/database';
import { showMapper } from '../Homepage';
export default function AdminAddShow() {
const dispatch = useDispatch();
const [show, setShow] = useState(new Show());
const card = showMapper([show], [new Showtime()], new MiscData())[0];
const onSave = async () => {
try {
await database.shows.add(show);
} catch {
return;
}
dispatch(setData(await database.getPacket()));
setShow(new Show());
};
return (
<div className='ui container'>
<h1>Add show</h1>
<div style={{ display: 'flex', flexWrap: 'wrap' }}>
<InputField label='Name' update={value => setShow({ ...show, name: value })} />
<InputField label='Description' update={value => setShow({ ...show, description: value })} />
<InputField label='Card description' update={value => setShow({ ...show, shortDescription: value })} />
<InputField label='Image url' update={value => setShow({ ...show, imageUrl: value })} />
<InputField label='Color' update={value => setShow({ ...show, color: value })} />
</div>
<Button onClick={onSave}>Save</Button>
<Divider />
<h2>Card preview</h2>
<Card data={card} />
</div>
);
}
function InputField({ label, update }: { label: string, update: (value: string) => void; }) {
const [value, setValue] = useState('');
const onChange = (event: React.ChangeEvent<HTMLInputElement>) => {
setValue(event.target.value);
update(event.target.value);
};
return (
<div>
<label>{label}</label><br />
<Input value={value} onChange={onChange} style={{ margin: '0 10px 10px 0' }} />
</div>
);
}
| typescript |
Institute of Banking Personnel Selection, IBPS RRB Clerk Exam Analysis 2021 has been discussed here for the exam held on August 8, 2021. As per the experts, the papers of all the shifts were found to be moderately difficult. The remaining exams are scheduled to be held on August 14 and 15, 2021. Students would be able to get more information related to IBPS RRB Clerk Exam 2021 on the official website, ibps. in.
IBPS RRB Clerk Exam Analysis 2021 is completely based on the feedback provided by students and experts in the domain. As per the opinion, the questions in both quantitative aptitude and reasoning ability were easy to solve.
IBPS RRB Clerk Exam 2021 on August 8, 2021 was held with complete COVID 19 protocols and guidelines. Students can find IBPS RRB Clerk Exam Analysis 2021 represented below for each of the shifts.
The duration of the exam was 45 minutes carrying 80 questions in total and 40 from each of the sections. Students can also go through the number of good attempts for the exam held on August 8, 2021 shared below. Good attempts are just the safe number of attempts students have attempted in the examination which will help them clear the cut-off.
Candidates qualifying in prelims exam would be able to appear for the mains exam. The selection of the candidates will be done on the basis of their marks obtained in prelims, mains and interview round. The official website to get more information on IBPS RRB Clerk Exam Analysis 2021, cut offs etc is ibps. in.
IBPS RRB Clerk Exam is condcuted once in a year by the Institute of Banking Personnel Selection for recruiting the candidates for clerical posts. The selected candidates will get posted in various banks across the country. Keep following this page for more updates on IBPS RRB Clerk Exam Analysis 2021. | english |
Pop culture has always shaped our lives and mindset, but in the lockdown, everyone's average TV watching hours went up. While some people found new shows to binge-watch, many fell back on trusted favourites and did marathon sessions rewatching old classics. When you watch something so passionately, it impacts the way you look at the world. And while we have a lot of path-breaking television amidst us right now, some of the lead couples and friendship duos from our favourite shows have been so toxic to each other that we would have campaigned for them to break up IRL. As viewers, we're often even aware of this, but we can't help rooting for them, no matter how many times they hurt each other. Let’s take a look at some of the most adored and romanticised friends and couples, whom we all have glorified despite the inherent toxicity in their relationships!
While Gossip Girl was on air, most people were rooting for Chuck and Blair, the Upper-East side Queen B and the rich spoilt bad boy. Their romance was intense and perhaps some of us craved that kind of passion in our real life. However, as we grew older, we got wiser. Chuck and Blair brought out the worst in each other. Chuck even traded Blair with his Uncle Jack for a hotel he so desperately wanted to save but the show continued to glorify them as its lead couple. They ended up together on the show, which was a damn shame.
Were they ever on a break? Even though they always seemed like endgame and finally get back together in the last season, their relationship was all over the place. Ross' jealousy, Rachel's self-centeredness, her choosing Ross over her career (which probably would lead to a lot of resentment in real life) - none of these issues are small. Chandler and Monica were the much healthier couple on the show but for some reason Ross and Rachel are more popular.
Damon Salvatore is the reason most people watch The Vampire Diaries. There are dedicated “Delena” supporters and most of us were happy after the season finale. Nevertheless, we cannot look past the toxic traits their relationship had. Elena was sired to Damon and he tried to kill her brother! He controlled most of Elena’s decisions and often disregarded her choices. That is not a healthy relationship!
Rory’s first real boyfriend Dean, loved by all of us and Lorelai, was sweet, handsome and loving towards Rory. However, he might come off as toxic, once you are grown-up. Dean was jealous and possessive as a boyfriend. He wanted Rory to spend all her time with him which wasn’t something she could’ve afforded (her dreams of getting into Harvard were bigger than that). And, he chose to break up with her publicly, not once but TWICE!
Joey realised that she had a crush on her best friend, Dawson. She would have been better off without him and his feelings. Dawson was too self-involved even while he was with Jen and massively judgemental of what Joey did. She couldn’t talk to him about her feelings, which, really is sad. Once he was out of the picture, she blossomed.
Alex and Piper bring out the worst of each other. Period. They are weirdly addicted to toxic love and both are manipulative and disloyal. They have been a problematic couple since day one. Alex involved Piper in the first place and ratted her out. She is the real reason why Piper is behind the bars. Their lives would have been better if they had walked separate ways.
While Archie Andrews is saving his home town, he is tormented by his girlfriend’s father, Hiram Lodge. Although Hiram and Veronica are not on very good terms, she hardly ever stood up for Archie. Another most evident issue about this couple is that their dynamic is solely sexual despite being romantically involved. Having an open channel for communication is very important for a healthy relationship which is not shown here.
| english |
<filename>response/display/MegaIntro/datasources/default.json
{"megaIntroDataSource":{"type":"object","objectId":"headlineSample","properties":{"title":"","backgroundImage":{"contentDescription":null,"smallSourceUrl":null,"largeSourceUrl":null,"source":"https://www.megatv.com/wp-content/themes/whsk_megatv.com/common/imgs/mega_poster.jpg","backgroundColor":"#001254"},"textContent":{"primaryText":{"type":"PlainText","text":"Mega Channel"}},"logoUrl":"http://mega.smart-tv-data.com/img/logo.png","secondaryText":"Try, \"Alexa, play radio\" or \"Alexa, play TV\"","welcomeSpeechSSML":"<speak><amazon:emotion name='excited' intensity='medium'>Welcome to Mega Channel</amazon:emotion></speak>"},"transformers":[{"inputPath":"welcomeSpeechSSML","transformer":"ssmlToSpeech","outputName":"welcomeSpeech"}]}} | json |
I installed puppy linux 4.2.1 on an old laptop with AMD K6 processor, 64 MB RAM, 4GB hd(no partition).(Full installation as mentioned here)
then located 'menu.lst' file as said in manual but it did not had any entries specified in the manual, so left it as it is.
Thanks for your replies.:grin:
Practically, Is W705's advantage (2x bandwidth) of any use?
Even price difference is 1000 bucks (acc to Hotspot prices)
I plan to buy a new mobile. My budget being 18k (along with memory card).
I hv zeroed in on SE W705 and N79.
My requirements being :
*Good music player (must)
*Decent camera (i ll b making few clicks a week)
I installed the Ubuntu 8.04 LTS bundled with Digit and made it to dual boot with Windows XP Home Edition.
But, the problem now i encountered is the lappy does not boot in one attempt.
^^ thanks fr a quick reply..
task manager problem solved..
i want to copy the folder on vista lappy... so how i can??
| english |
<gh_stars>1-10
export function hi(): string {
return 'Hi, World!';
}
| typescript |
{
"WorkItem": {
"AffectedComponent": {
"Name": "",
"DisplayName": ""
},
"ClosedComment": "",
"ClosedDate": null,
"CommentCount": 0,
"Custom": null,
"Description": "We've deployed our application to several users, and we just received this error coming from the HTML Agility Pack:\n \nMessage: 'utf8' is not a supported encoding name.\n \nParameter name: name\n \nStacktrace:\nat System.Globalization.EncodingTable.internalGetCodePageFromName(String name)\nat System.Globalization.EncodingTable.GetCodePageFromName(String name)\nat HtmlAgilityPack.HtmlDocument.ReadDocumentEncoding(HtmlNode node)\nat HtmlAgilityPack.HtmlDocument.PushNodeEnd(Int32 index, Boolean close)\nat HtmlAgilityPack.HtmlDocument.Parse()\nat HtmlAgilityPack.HtmlDocument.Load(TextReader reader)\nat HtmlAgilityPack.HtmlDocument.LoadHtml(String html)\n \nAccording to this MS Connect case (http://bit.ly/3tcHmN), the bug is due to the malformed \"utf8\" encoding, when it should be \"utf-8\" (notice the hyphen). Can HTML Agility Pack work around this issue by checking for this condition?",
"LastUpdatedDate": "2013-02-21T18:47:21.517-08:00",
"PlannedForRelease": "",
"ReleaseVisibleToPublic": false,
"Priority": {
"Name": "Low",
"Severity": 50,
"Id": 1
},
"ProjectName": "htmlagilitypack",
"ReportedDate": "2009-11-09T07:23:05.087-08:00",
"Status": {
"Name": "Proposed",
"Id": 1
},
"ReasonClosed": {
"Name": "Unassigned"
},
"Summary": "UTF8 is not a supported encoding",
"Type": {
"Name": "Issue",
"Id": 3
},
"VoteCount": 1,
"Id": 25273
},
"FileAttachments": [],
"Comments": [
{
"Message": "I've uploaded a patch for this bug: http://htmlagilitypack.codeplex.com/SourceControl/PatchList.aspx",
"PostedDate": "2009-11-09T08:13:32.653-08:00",
"Id": -2147483648
},
{
"Message": "",
"PostedDate": "2013-02-21T18:47:21.517-08:00",
"Id": -2147483648
}
]
} | json |
"{\"success\":true,\"st\":true,\"dt\":{\"Total\":1,\"Data\":[{\"ObjectType\":1,\"ObjectID\":40,\"Name\":\"40 - Công viên Thống Nhất - Văn Lâm\",\"FleedCode\":\"40\",\"NameNoSign\":\"40 - cong vien thong nhat - van lam\",\"Data\":\"5h00 - 22h00 ; 12 phút/chuyến ; 7000VNĐ/lượt \",\"IsTwin\":false}]},\"msg\":\"Construct\"}" | json |
main{
height: 100%;
display: flex;
justify-content: center;
align-items: center;
position: relative;
}
body{
overflow: hidden;
background-repeat: no-repeat;
background-attachment: fixed;
background: linear-gradient(124deg, red,#ff2400, #e81d1d, #e8b71d, #1de840, #1ddde8, #2b1de8, #dd00f3, #dd00f3);
background-size: 1800% 1800%;
animation: rainbow 18s ease infinite;
}
@keyframes rainbow {
0%{background-position:9% 82%}
50%{background-position:100% 19%}
100%{background-position:9% 82%}
}
button{
}
.centredContent{
margin-bottom: 15vh;
display: flex;
flex-direction: column;
align-items: center;
cursor: default;
position: relative;
}
.mainTitle{
font-family: 'Kato';
letter-spacing: 2vw;
font-size: 10vmin;
margin-bottom: 6vmin;
transition: letter-spacing 0.4s ease-in-out;
color: white;
position: relative;
}
.mainTitle:hover{
letter-spacing: 1.9vw;
}
.btn{
margin: 2vmin;
padding: calc(1em + 2px);
text-align: center;
font-family: "Inconsolata", monospace;
font-weight: 600;
font-size: 3vmin;
border: 2px solid white;
cursor: pointer;
text-decoration: none;
color: white;
display: inline-block;
width: 30vmin;
outline: none;
}
a{
text-decoration: none;
outline: none;
}
.btn:focus{
outline: none;
}
.btn:hover{
border: 3px double white;
padding: 1em;
}
.historyIcon{
position: absolute;
color: white;
font-size: min(7vmin, 2rem);
top: 4vmax;
right:4vmax;
cursor: pointer;
} | css |
<reponame>pedrogustavo/developer-personal-dashboard
.box {
margin-bottom: 20px;
border-radius: 3px;
border: 1px solid rgba(27,31,35,0.15);
}
| css |
<filename>resources/json_data/record_4994.json<gh_stars>0
{"cam/image_array":"4994_cam-image_array_.jpg","user/throttle":0.0,"user/angle":-0.15746869146823884,"user/mode":"user"} | json |
/* ==UserStyle==
@name Prisjakt V7 - 1.0
@namespace USO Archive
@author C-3PO
@description `Centers and cleans up Prisjakt/PriceSpy, removes banners and ads.`
@version 20130122.14.39
@license NO-REDISTRIBUTION
@preprocessor uso
==/UserStyle== */
body {background: white; }
#main_content_wrapper {box-shadow: 0 0 10px #aaa; border-left: 5px solid #F8F7EE; border-right: 5px solid #F8F7EE; width: 990px; margin: 0 auto; float: none; }
.adbox {display: none;}
.annonstext {display: none; }
#logo_name {width: 90px !important;}
#logo_slogan {width: 180px !important; opacity:.4; margin: 12px 0 0 0 !important; }
#super_search_textbox {border-radius: 3px !important; -webkit-border-radius: 3px !important; padding: 3px 10px 4px 10px !important; }
.commandbox {padding:5px 0 0 0}
.commandbox.admin {border: none; background: none; }
.column.shadow { border:none; box-shadow: -5px -5px 10px rgba(83, 79, 51, 0.05) !important;}
.news span {font-size: .85em;}
#banner975_container {display: none !important; height: 0 !important; }
ul.big-tabs {margin: 0 0px 5px 0px !important;}
#centered_container {width:auto !important; float: none; }
.li-cat-images {display: block;padding: 15px 4px 0px 10px;margin: 0px 8px 10px 8px;width: 60px;height: none;float: left;text-align: center;}
.js-eas-load {display: none; }
#banner975 {display: none; }
#logo_slogan {display: none;}
.mainmenubar {display: none;}
#mainmenudiv .detailed {width: 320px; margin: 0 auto; float: none !important; } | css |
Armless stackable chairs are becoming popular in modern interior design for their sleek, space-saving design. These chairs are perfect for business owners and homeowners who need to maximize seating in a small space. They are comfortable, durable, and easy to clean. The chair's design creates a uniform look and allows for quick and easy storage in tight spaces. Whether you need seating for a conference room, a waiting area or even your home, these armless stackable chairs are the perfect fit. They come with a variety of color choices and materials, such as metal or plastic, to suit your needs. The chairs can be found online or in furniture stores, and some even come with a warranty. If you're looking for a durable and stylish seating solution, armless stackable chairs are the way to go.
Armless stackable chairs are a functional and practical solution for any busy environment. Whether it's a school, an office, or an event space, these chairs can help optimize space without sacrificing comfort. Their sleek design allows them to be easily stacked and stored, freeing up valuable floor space when they are not in use. But their benefits extend beyond just their storage capabilities. Armless chairs also provide greater flexibility and ease of movement, allowing individuals to easily shift and adjust their posture throughout the day. They also promote better circulation and can help reduce back pain caused by prolonged sitting. With their functional benefits, armless stackable chairs are a necessary addition to any space seeking to maximize comfort and efficiency.
Armless stackable chairs are a popular and functional furniture solution for large gatherings and events, as well as schools and offices with limited space. These chairs offer a variety of benefits, including ease of storing and efficient use of space, as well as being lightweight and easy to move. Additionally, armless stackable chairs have a compelling value proposition due to their durable construction, versatile design, and affordability. Whether you are hosting a large conference or outfitting an entire office, these chairs provide an excellent solution for your seating needs. So, if you want to save space and money while maintaining style and comfort, consider investing in armless stackable chairs for your next event or project.
Heshan Youmeiya Furniture Co., Ltd. attaches great importance to the raw materials of armless stackable chairs. Apart from choosing low-cost materials, we take the properties of material into consideration. All the raw materials sourced by our professionals are of the strongest properties. They are sampled and examined to ensure they comply with our high standards.
Yumeya Chairs products enjoy increasing recognition and awareness in the competitive market. Customers are greatly satisfied with their high-cost performance and high economic returns. The market share of these products is expanding, showing a great market potential. Therefore, there are more and more clients choosing these products for seeking an opportunity to boost their sales.
The most comprehensive, sincere and patient service is delivered to customers through Yumeya Chairs for better promoting armless stackable chairs and gain trust.
Armless stackable chairs are highly functional and versatile seating options. These chairs are designed without armrests, making them ideal for compact spaces such as classrooms, offices, and conference rooms. Additionally, their stackable design makes them easy to store when not in use, allowing for more efficient use of space.
Frequently Asked Questions (FAQ) about armless stackable chairs include concerns about their comfort, durability, and aesthetics. Many people wonder if armless chairs are comfortable to sit on for extended periods of time. The answer is that these chairs can be just as comfortable as chairs with armrests, as long as they are designed with ergonomics in mind. Durability also depends on the quality of the chair, and customers should look for chairs made of sturdy materials such as metal or solid plastic. Finally, aesthetics are a matter of personal preference, but many manufacturers offer a variety of colors and styles to suit different tastes.
| english |
<gh_stars>0
import React from 'react';
import TestRenderer from 'react-test-renderer';
import us from 'us';
import { Autocomplete } from '../';
describe('Autocomplete', () => {
test('renders', () => {
const json = TestRenderer.create(
<Autocomplete>
<Autocomplete.Label>Test</Autocomplete.Label>
<Autocomplete.Input />
<Autocomplete.Menu>
{us.STATES.map(state => (
<Autocomplete.Item
key={state.name}
item={state}
children={state.name}
/>
))}
</Autocomplete.Menu>
</Autocomplete>
).toJSON();
expect(json).toMatchSnapshot();
});
test('renders open', () => {
const json = TestRenderer.create(
<Autocomplete defaultIsOpen={true}>
<Autocomplete.Menu>
{us.STATES.map(state => (
<Autocomplete.Item
key={state.name}
item={state}
children={state.name}
/>
))}
</Autocomplete.Menu>
</Autocomplete>
).toJSON();
const [menu] = json.children;
expect(menu.children.length > 0).toBe(true);
});
test('renders with highlightedIndex', () => {
const json = TestRenderer.create(
<Autocomplete defaultIsOpen={true} defaultHighlightedIndex={0}>
<Autocomplete.Menu>
{us.STATES.map(state => (
<Autocomplete.Item
key={state.name}
item={state}
children={state.name}
/>
))}
</Autocomplete.Menu>
</Autocomplete>
).toJSON();
const [menu] = json.children;
const [firstItem] = menu.children;
expect(firstItem.props['data-highlighted']).toBe(true);
});
});
| javascript |
<reponame>eabasir/smart-plug
package com.ansari.smartplug.activities;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.design.widget.NavigationView;
import android.support.v4.view.GravityCompat;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import com.ansari.smartplug.R;
import com.ansari.smartplug.fragments.RelayDetailFragment;
import com.ansari.smartplug.fragments.SensorFragment;
/**
* Created by Eabasir on 4/6/2016.
*/
public class ActivityRelayDetail extends AppCompatActivity {
public static Intent createNewIntent(Context context) {
return new Intent(context, ActivityRelayDetail.class);
}
public static Intent createNamedIntent(Context context, String name) {
Intent i = new Intent(context, ActivityRelayDetail.class);
i.putExtra("Name", name);
return i;
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_base_layout);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
toolbar.setNavigationIcon(getResources().getDrawable(R.drawable.abc_ic_ab_back_mtrl_am_alpha));
toolbar.setNavigationOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
finish();
}
});
Bundle extras = getIntent().getExtras();
String userName;
String name = "New Plan";
if (extras != null) {
name = extras.getString("Name");
}
getSupportActionBar().setTitle(name);
getFragmentManager().beginTransaction().replace(R.id.fragment_container, new RelayDetailFragment()).commit();
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu_relay_detail, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
switch (id) {
case R.id.action_set:
setRelayData();
return true;
}
return super.onOptionsItemSelected(item);
}
private void setRelayData()
{
((RelayDetailFragment) getFragmentManager().findFragmentById(R.id.fragment_container)).setRelayData();
}
}
| java |
<gh_stars>0
---
uid: System.Data.Common.EntitySql.EntitySqlParser
ms.technology:
- "dotnet-ado"
author: "douglaslMS"
ms.author: "douglasl"
manager: "craigg"
---
---
uid: System.Data.Common.EntitySql.EntitySqlParser.Parse(System.String,System.Data.Common.CommandTrees.DbParameterReferenceExpression[])
ms.technology:
- "dotnet-ado"
author: "douglaslMS"
ms.author: "douglasl"
manager: "craigg"
---
---
uid: System.Data.Common.EntitySql.EntitySqlParser.ParseLambda(System.String,System.Data.Common.CommandTrees.DbVariableReferenceExpression[])
ms.technology:
- "dotnet-ado"
author: "douglaslMS"
ms.author: "douglasl"
manager: "craigg"
---
| markdown |
<filename>wwoom-event-processor/src/main/java/be/vlaanderen/event/wwoom/Application.java
package be.vlaanderen.event.wwoom;
import be.vlaanderen.burgerprofiel.wwoom.security.client.oauth.geosecure.GeoSecureClientConfig;
import be.vlaanderen.event.wwoom.applications.ApplicationRepository;
import be.vlaanderen.event.wwoom.applications.SimpleApplicationRepository;
import be.vlaanderen.event.wwoom.web.NotificationController;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;
@SpringBootApplication
@Import({
GeoSecureClientConfig.class,
NotificationController.class
})
public class Application {
@Bean
public ContextHolder contextHolder() {
return new ContextHolder();
}
@Bean
public ApplicationRepository applicationRepository(@Value("#{environment.PUBLIC_KEY}") String publicKey) {
return new SimpleApplicationRepository(publicKey);
}
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
| java |
<gh_stars>1-10
{"skeleton-dev.js":"<KEY>,"skeleton.js":"<KEY>} | json |
The Bihar School Education Board (BSEB) has released the admit cards of class 10 board exams of 2022. The admit card can be downloaded online by the school authorities from the official website — secondary. biharboardonline. com. Candidates will have to collect the admit cards from their respective schools. The Bihar board class 10 theory exams will begin from February 17 to 24 while the practical exams will be held between January 20 to 22.
The morning session will be held from 9:30 am to 12:45 pm and the afternoon session will be held from 1:45 pm to 5 pm. Candidates will get an additional 15 minutes before the exam begins to go through the question paper thoroughly.
The state board has directed all the BSEB affiliated schools to download the admit cards and provide them to the class 10 students after signing and stamping the admit card. It is necessary for candidates to collect the admit card from the schools as without it they will not be allowed to sit for the exams. The admit cards will contain the candidate’s name, roll number, exam dates, venue, time, and other required details. Candidates must cross-check all details of the admit cards and in case of any discrepancy must report to the authorities immediately.
To clear the class 10 board exams 2022, students need to secure at least 33 per cent marks in each exam as well as overall. Those who fail to obtain minimum passing marks in one or two subjects can improve their score by taking the compartmental exam, however, those who will be failed in more than two papers will have to repeat the year. | english |
use std::error::Error;
use std::fs;
fn main() -> Result<(), Box<dyn Error>> {
let input = fs::read_to_string("input")?;
let mut highest_seat = 0;
for line in input.lines() {
let chars: Vec<char> = line.chars().collect();
let mut row: i32 = 0;
for i in 0..7 {
if chars[i] == 'B' {
row |= 1 << (6 - i);
}
}
let mut column: i32 = 0;
for i in 0..3 {
if chars[7 + i] == 'R' {
column |= 1 << (2 - i);
}
}
let seat_id = row * 8 + column;
if seat_id > highest_seat {
highest_seat = seat_id;
}
}
println!("res: {}", highest_seat);
Ok(())
}
| rust |
import { MouseEvent, useCallback, useState } from 'react';
import { FiCheckSquare, FiFolder, FiTrash } from 'react-icons/fi';
import { toast } from 'react-toastify';
import '../styles/tasklist.scss';
import { Dropdown } from './Dropdown';
import { Modal } from './Modal';
interface Task {
id: number;
title: string;
isComplete: boolean;
}
export interface Folder {
id: number;
title: string;
tasks: Task[];
isOpen: boolean;
}
export function TaskList() {
const [tasks, setTasks] = useState<Task[]>([]);
const [folders, setFolders] = useState<Folder[]>([]);
const [isDropdownOpen, setIsDropdownOpen] = useState(false);
const [isModalOpen, setIsModalOpen] = useState(false);
const [modalType, setModalType] = useState<"task" | 'folder'>("task");
const [mousePositions, setMousePosition] = useState({left: '', top: ''});
function handleOpenDropdown(e: MouseEvent) {
const left = e.pageX + 'px';
const top = e.pageY + 'px';
e.preventDefault();
setIsDropdownOpen(true);
setMousePosition({left, top});
}
const handleOpenFolder = (folder: Folder) => {
folder.isOpen = !folder.isOpen;
const folderIndex = folders.findIndex(folderState => folderState.id === folder.id);
const cloneFolders = [...folders];
cloneFolders.splice(folderIndex, 1, folder);
if(folder.tasks.length === 0) {
toast.info("Ainda não há tarefas associadas a essa pasta")
}
setFolders(cloneFolders)
}
const onClickDropdownItem = useCallback((type: "folder"| "task") => {
setModalType(type)
setIsModalOpen(true);
setIsDropdownOpen(false);
}, [])
const handleCreateNewFolder = useCallback((name: string) => {
const newFolder = {
id: Math.ceil(Math.random() * (10000 - 1)) + 1,
title: name,
tasks: [],
isOpen: false
}
setFolders([...folders, newFolder]);
toast.success("Pasta criada com sucesso")
}, [folders])
const handleRemoveFolder = (folderId: number) => {
setFolders(folders.filter(folder => folder.id !== folderId))
}
function handleCreateNewTask(name: string, folderId: number | null ) {
const task: Task = {
id: Math.ceil(Math.random() * (10000 - 1)) + 1,
title: name,
isComplete: false
}
const folder = folders.find(folderState => folderState.id === folderId);
if(!folder) {
const newTasks = [...tasks, task];
return setTasks(newTasks)
}
folder?.tasks.push(task);
folder.isOpen = true;
const folderIndex = folders.findIndex(folderState => folderState.id === folder.id);
const cloneFolders = [...folders];
cloneFolders.splice(folderIndex, 1, folder);
toast.success("Tarefa criada com sucesso")
}
function handleToggleTaskCompletion(id: number, folderId?: number) {
if(!folderId) {
return setTasks(tasks.map((task) => {
if(task.id === id) {
task.isComplete? task.isComplete = false : task.isComplete = true
}
return task
}))
}
const cloneFolders = [...folders];
const folderExists = folders.find(folder => folder.id === folderId);
const folderIndex = folders.findIndex(folder => folder.id === folderId);
const newTasks = folderExists?.tasks.map(task => {
if(task.id === id) {
task.isComplete ? task.isComplete = false : task.isComplete = true
}
return task;
})
if(newTasks && folderExists) {
folderExists.tasks = newTasks;
}
cloneFolders.splice(folderIndex, 1, folderExists!)
setFolders(cloneFolders)
}
function handleRemoveTask(id: number, folderId?: number) {
if(!folderId) {
const filteredTasks = tasks.filter(task => task.id !== id)
return setTasks(filteredTasks)
}
const cloneFolders = [...folders];
const folderToUpdate = folders.find(folder => folder.id === folderId);
const folderToUpdateIndex = folders.findIndex(folder => folder.id === folderId);
const newTasks = folderToUpdate?.tasks.filter(task => task.id !== id);
if(folderToUpdate && newTasks) {
folderToUpdate.tasks = newTasks
cloneFolders.splice(folderToUpdateIndex, 1, folderToUpdate);
toast.success("Tarefa deletada com sucesso")
setFolders(cloneFolders)
} else {
toast.error("Ocorreu um erro ao remover sua tarefa")
}
}
return (
<>
<section className="task-list container" onContextMenu={handleOpenDropdown}>
<header>
<h2>Minhas tasks</h2>
<div className="button-group" >
<button onClick={() => {
setIsModalOpen(true)
setModalType('folder')
}}>
<FiCheckSquare size={16} color="#fff"/>
Nova pasta
</button>
<button onClick={() => {
setIsModalOpen(true)
setModalType('task')
}}>
<FiCheckSquare size={16} color="#fff"/>
Nova tarefa
</button>
</div>
</header>
<main>
<ul>
{folders.map(folder => (
<li key={folder.id}>
<div className='folder-container'>
<div onClick={() => handleOpenFolder(folder)} className="folder">
<FiFolder />
{folder.title}
</div>
<button type="button" onClick={() => handleRemoveFolder(folder.id)}>
<FiTrash size={16}/>
</button>
</div>
<ul>
{folder.isOpen && folder.tasks.map(task => (
<li key={task.id} className="todo">
<div className={task.isComplete ? 'completed' : ''} data-testid="task" >
<label className="checkbox-container">
<input
type="checkbox"
readOnly
checked={task.isComplete}
onClick={() => handleToggleTaskCompletion(task.id, folder.id)}
/>
<span className="checkmark"></span>
</label>
<p>{task.title}</p>
</div>
<button type="button" data-testid="remove-task-button" onClick={() => handleRemoveTask(task.id, folder.id)}>
<FiTrash size={16}/>
</button>
</li>
))}
</ul>
</li>
))}
</ul>
<ul>
{tasks.map(task => (
<li key={task.id} className="todo">
<div className={task.isComplete ? 'completed' : ''} data-testid="task" >
<label className="checkbox-container">
<input
type="checkbox"
readOnly
checked={task.isComplete}
onClick={() => handleToggleTaskCompletion(task.id)}
/>
<span className="checkmark"></span>
</label>
<p>{task.title}</p>
</div>
<button type="button" data-testid="remove-task-button" onClick={() => handleRemoveTask(task.id)}>
<FiTrash size={16}/>
</button>
</li>
))}
</ul>
</main>
</section>
{isDropdownOpen && <Dropdown onClickDropdownItem={onClickDropdownItem} onClose={() => setIsDropdownOpen(false)} left={mousePositions.left} top={mousePositions.top} /> }
{isModalOpen && <Modal folders={folders} addFolder={handleCreateNewFolder} addTask={handleCreateNewTask} type={modalType} onClose={() => setIsModalOpen(false)}/> }
</>
)
} | typescript |
import { IOptionObject, IResponseObject } from "./interfaces";
/**
* Now using the standard nodejs modules instead of 'request' deprecated dependency.
*
* To tweak the method, edit 'postToChevereto.ts' with the help of [the docs](https://nodejs.org/api/https.html#https_https_request_options_callback)
*
* @param {string} apiKey - Your Chevereto API key
* @param {string} image - Typically, the output of fileToString("path") function
* @param {string} cheveretoHost - Chevereto host; ccepts explicit protocol & port
* @param {Object} customPayload - Custom payload object that'll be spreaded into the request payload
*
* @returns A promise. Use `.then` as shown in [the README](https://github.com/TheRealBarenziah/imgbb-uploader#use) :
*/
interface IPostParams extends IOptionObject {
image: string;
cheveretoHost: string;
}
export declare const postToChevereto: (params: IPostParams) => Promise<string | IResponseObject>;
export {};
| typescript |
New Delhi: A special flight of Air India will depart today from Delhi to Wuhan to evacuate Indians who have been trapped in the region amid coronavirus outbreak. Air India’s 423-seater jumbo B747 plane will depart from Delhi airport at 12. 30 pm.
A team of five doctors from the Health Ministry and paramedical personnel from Air India will head to the Chinese city. They will be carrying all necessary resources like masks, medical equipment, packed food, and prescribed medicines.
Twenty crew members, including 15 cabin crew and five cockpit crew will be on board. | english |
<gh_stars>0
<p>从最初对滥用推广噱头的不屑一顾,到后来一集不落地开始关注,再到今天对落下帷幕的怅然若失——我从来没有想到我对这个节目会有如此心态转变。</p>
<p>其实直到最后我也从来没有pick过任何学员。只是在这些姑娘身上,我看见了许多或许我本可拥有却愈发难以企及的经历,于是便不由自主地把自己投射了上去。我的人生一直都平顺而寡淡——目标不用太多努力即可收获,奋斗几乎都是孤身一人,大学同僚情谊也因为留学轨迹而被割裂(甚至毕业典礼也没能参加)…… 我妈妈总是说她很高兴我的人生是如此顺利,可是deep inside我总觉得缺失了很多。我真的渴望可以像这些姑娘们一样,在绚烂的时光,与交心的伙伴,共同挥洒汗水。</p>
<p>最后一集尾声中一次次采访的打板,一次次提醒我需要回归现实。看书、练琴,这是目前能带给我最多愉悦的精神探索,但我也不知道它们能否带我到“最美的地方”。恍惚的人生,到底何时才是个头呢?</p>
<p>当然,这也可能只是shelter-in-place时期的无病呻吟……</p>
| html |
<filename>s/seznam-odsotnih-poslancev/card.json
{"_id":"579796e9ba3a88552771d50c","name":"Seznam odsotnih poslancev","group":"s","method":"seznam-odsotnih-poslancev","dataUrl":"https://analize.parlameter.si/v1/s/getAbsentMPs"} | json |
<filename>asecop/asecop/doctype/acta_comite/acta_comite_list.js
// Copyright (c) 2021, orlando and contributors
// For license information, please see license.txt
/*
frappe.listview_settings['acta_comite'] = {
filters: [["asesor", "=", frappe.defaults.get_user_default("var_asesor") ]],
onload: function (listview) {
let disabled = frappe.user.has_role("SUPERVISOR")
$('[data-fieldname="asesor"]').attr("disabled", !disabled);
}
}; */ | javascript |
Gold Coast, Apr 6 (AFP) Kyle Chalmers led an Aussie one-two in the 200 metres freestyle and anchored an emphatic relay win as the hosts grabbed a stunning five gold medals in the Commonwealth Games pool today.
Chalmers, the Olympic 100m freestyle champion, made a trademark last-lap surge to take 200m gold in a personal best of one minute 45. 56 seconds, the second fastest time in the world this year.
Chalmers then claimed his second Commonwealth gold in the mens 4x100m freestyle relay victory as Australia dominated the second evening, with sprint queen Cate Campbell again in record-breaking form on the Gold Coast.
Campbell, who anchored Australia to a world record as they won the 4x100m freestyle relay on Thursday, broke the Games mark with 23. 88 seconds in her 50m freestyle semi-final.
She was under world record pace for most of the one-length race before finishing just 0. 21sec outside Swede Sarah Sjostroms world record of 23. 67sec.
"Its been fantastic, really good. All the guys are swimming out of their skin really," Australias head coach Jacco Verhaeren said.
"Most of them are faster than at trials and that was the plan. There have been many highlights. I cant choose a medal but theyre all special. "
Chalmers continues to grow in stature after becoming the first Australian man in 48 years to win the Olympic 100m freestyle title in Rio two years ago.
He beat Mack Horton in the Games selection trials last month and repeated the feat on Friday, improving his time by 0. 93sec in the outdoor Southport pool.
"Obviously I have to have that bit more practice on how to actually swim the (200m) race," Chalmers said.
"I like to try and stick with people and try and go in that last 50, when I actually have to swim my own race right from the start, because I do have that 100m background.
"I probably should be that bit quicker, but to be able to come home like that in the last 50 gives me great confidence for the 200m. "
Horton, who backed up his Rio Olympic 400m freestyle gold with victory in the event in Thursdays Games final, was delighted to complete an Aussie one-two.
"Kyle and I became really great mates while in Rio, where we both shared gold," he said. "Its special to do it with him here in front of a home crowd. "
Meanwhile, Campbell continued her sizzling form at the Gold Coast meet with another record in the 50m freestyle semi-final.
"Its nice to have a few of them every once in a while," she said. "To swim a sub-24 seconds is something that only a handful of people can do, and have done in history. "
Looking ahead to the possibility of a clean sweep of her events at the meet -- the 50m/100m freestyle, 50m butterfly, 4x100m freestyle relay and 4x100m medley relay -- she added:
"I havent even thought that far. Its all about my next process rather than looking towards results. "
To cap a barn-storming night for Australia, there were further gold medals for Mitch Larkin (100m backstroke), Clyde Lewis (400m individual medley) and Emma McKeon (100m butterfly) | english |
{
"directions": [
"Preheat the oven to 350 degrees F (175 degrees C). Grease and flour two 9 inch round cake pans.",
"In a large bowl, cream together the shortening and 1 3/4 cups sugar until light and fluffy. Combine the flour, baking powder and salt; stir into the creamed mixture alternately with the milk, beginning and ending with the flour. Stir in vanilla and 1 cup coconut. In a separate glass or metal bowl, whip egg whites to soft peaks. Fold egg whites into the cake batter. Divide the batter evenly between the prepared pans.",
"Bake for 35 minutes in the preheated oven, or until a toothpick inserted into the center of the cakes comes out clean. Cool cakes in pans over a wire rack. When cakes are cool enough to handle, tap out of the pan to cool completely. Spread the Citrus Coconut Filling between the layers, and frost the outside with fluffy white frosting.",
"To make the Citrus Coconut Filling: Whisk together 1/2 cup sugar and cornstarch in a small saucepan. Add butter, coconut, and egg yolk, and cook over medium heat stirring constantly until the butter is melted, and the mixture has thickened. Remove from heat, and stir in the orange zest, orange juice and lemon juice.",
"To make Fluffy White Frosting: Combine 1 cup sugar with corn syrup and water in a small saucepan over medium heat. Bring to a boil, stirring occasionally to dissolve sugar. Continue cooking without stirring, until the temperature is between 234 and 240 degrees F (112 to 116 degrees C), or until a small amount of syrup dropped into cold water forms a soft ball that flattens when removed from the water and placed on a flat surface. In a large glass or metal bowl, whip remaining 2 egg whites until soft peaks form. Pour the hot syrup in a thin stream into the egg whites while continuing to whip until thick and glossy. Stir in almond extract."
],
"ingredients": [
"2/3 cup shortening",
"1 3/4 cups white sugar",
"2 1/2 cups sifted cake flour",
"1 tablespoon baking powder",
"1/2 teaspoon salt",
"1 cup milk",
"1 cup flaked coconut",
"1 1/2 teaspoons vanilla extract",
"5 egg whites",
"1/2 cup white sugar",
"1 1/2 teaspoons cornstarch",
"1 tablespoon butter",
"1 egg yolk, beaten",
"1/3 cup flaked coconut",
"2 tablespoons orange zest",
"1 tablespoon orange juice",
"1 tablespoon lemon juice",
"1 cup white sugar",
"1/2 cup light corn syrup",
"1/4 cup water",
"2 egg whites",
"1 teaspoon almond extract"
],
"language": "en-US",
"source": "allrecipes.com",
"tags": [],
"title": "Ambrosia Cake",
"url": "http://allrecipes.com/recipe/8087/ambrosia-cake/"
}
| json |
{
"region": "us-west-1",
"ec2_auto_scale": {
"min_size": 1,
"desired_capacity": 1,
"max_size": 1
},
"instance_type": "t2.micro",
"enable_gpus": false,
"ami_id": "/aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-gp2",
"elb": {
"health_check_interval_seconds": 5,
"health_check_path": "/healthz",
"health_check_port": 5000,
"health_check_timeout_seconds": 3,
"healthy_threshold_count": 2
},
"environment_variables": {
"var": "value",
"another_var": "value"
}
}
| json |
<filename>tobiko/tests/scenario/octavia/test_traffic.py
# Copyright (c) 2019 Red Hat
# 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.
from __future__ import absolute_import
import time
from oslo_log import log
import tobiko
from tobiko import config
from tobiko.openstack import keystone
from tobiko.openstack import octavia
from tobiko.openstack import stacks
from tobiko.shell import ssh
from tobiko.shell import sh
from tobiko.tests import base
LOG = log.getLogger(__name__)
CONF = config.CONF
CURL_OPTIONS = "-f --connect-timeout 2 -g"
class OctaviaOtherServerStackFixture(
stacks.OctaviaServerStackFixture):
pass
class OctaviaOtherMemberServerStackFixture(
stacks.OctaviaMemberServerStackFixture):
server_stack = tobiko.required_setup_fixture(
OctaviaOtherServerStackFixture)
class RequestException(tobiko.TobikoException):
message = ("Error while sending request to server "
"(command was '{command}'): {error}")
class TimeoutException(tobiko.TobikoException):
message = "Timeout exception: {reason}"
@keystone.skip_if_missing_service(name='octavia')
class OctaviaBasicTrafficScenarioTest(base.TobikoTest):
"""Octavia traffic scenario test.
Create a load balancer with 2 members that run a server application,
Create a client that is connected to the load balancer VIP port,
Generate network traffic from the client to the load balanacer.
"""
loadbalancer_stack = tobiko.required_setup_fixture(
stacks.OctaviaLoadbalancerStackFixture)
listener_stack = tobiko.required_setup_fixture(
stacks.OctaviaListenerStackFixture)
member1_stack = tobiko.required_setup_fixture(
stacks.OctaviaMemberServerStackFixture)
member2_stack = tobiko.required_setup_fixture(
OctaviaOtherMemberServerStackFixture)
client_stack = tobiko.required_setup_fixture(
stacks.OctaviaClientServerStackFixture)
members_count = 2
def setUp(self):
super(OctaviaBasicTrafficScenarioTest, self).setUp()
# Wait for members
self._check_member(self.member1_stack)
self._check_member(self.member2_stack)
# Check if load balancer is functional
self._check_loadbalancer()
def _request(self, client_stack, server_ip_address, protocol, server_port):
"""Perform a request on a server.
Returns the response in case of success, throws an RequestException
otherwise.
"""
if ':' in server_ip_address:
# Add square brackets around IPv6 address to please curl
server_ip_address = "[{}]".format(server_ip_address)
cmd = "curl {} {}://{}:{}/id".format(
CURL_OPTIONS, protocol.lower(), server_ip_address, server_port)
ssh_client = ssh.ssh_client(
client_stack.floating_ip_address,
username=client_stack.image_fixture.username)
ret = sh.ssh_execute(ssh_client, cmd)
if ret.exit_status != 0:
raise RequestException(command=cmd,
error=ret.stderr)
return ret.stdout
def _wait_resource_operating_status(self, resource_type, operating_status,
resource_get, *args):
start = time.time()
while time.time() - start < CONF.tobiko.octavia.check_timeout:
res = resource_get(*args)
if res['operating_status'] == operating_status:
return
time.sleep(CONF.tobiko.octavia.check_interval)
raise TimeoutException(
reason=("Cannot get operating_status '{}' from {} {} "
"within the timeout period.".format(
operating_status, resource_type, args)))
def _wait_lb_operating_status(self, lb_id, operating_status):
LOG.debug("Wait for loadbalancer {} to have '{}' "
"operating_status".format(lb_id, operating_status))
self._wait_resource_operating_status("loadbalancer",
operating_status,
octavia.get_loadbalancer,
lb_id)
def _wait_for_request_data(self, client_stack, server_ip_address,
server_protocol, server_port):
"""Wait until a request on a server succeeds
Throws a TimeoutException after CONF.tobiko.octavia.check_timeout
if the server doesn't reply.
"""
start = time.time()
while time.time() - start < CONF.tobiko.octavia.check_timeout:
try:
ret = self._request(client_stack, server_ip_address,
server_protocol, server_port)
except Exception as e:
LOG.warning("Received exception {} while performing a "
"request".format(e))
else:
return ret
time.sleep(CONF.tobiko.octavia.check_interval)
raise TimeoutException(
reason=("Cannot get data from {} on port {} with "
"protocol {} within the timeout period.".format(
server_ip_address, server_port,
server_protocol)))
def _check_loadbalancer(self):
"""Wait until the load balancer is functional."""
# Check load balancer status
loadbalancer_id = self.loadbalancer_stack.loadbalancer_id
self._wait_lb_operating_status(loadbalancer_id, 'ONLINE')
loadbalancer_vip = self.loadbalancer_stack.loadbalancer_vip
loadbalancer_port = self.listener_stack.lb_port
loadbalancer_protocol = self.listener_stack.lb_protocol
self._wait_for_request_data(self.client_stack,
loadbalancer_vip,
loadbalancer_protocol,
loadbalancer_port)
def _check_member(self, member_stack):
"""Wait until a member server is functional."""
member_ip = member_stack.server_stack.floating_ip_address
member_port = member_stack.application_port
member_protocol = self.listener_stack.pool_protocol
self._wait_for_request_data(self.client_stack, member_ip,
member_protocol, member_port)
def _check_members_balanced(self):
"""Check if traffic is properly balanced between members."""
replies = {}
loadbalancer_vip = self.loadbalancer_stack.loadbalancer_vip
loadbalancer_port = self.listener_stack.lb_port
loadbalancer_protocol = self.listener_stack.lb_protocol
for _ in range(20):
content = self._request(self.client_stack, loadbalancer_vip,
loadbalancer_protocol, loadbalancer_port)
if content not in replies:
replies[content] = 0
replies[content] += 1
# wait one second (required when using cirros' nc fake webserver)
time.sleep(1)
LOG.debug("Replies from load balancer: {}".format(
replies))
# assert that 'members_count' servers replied
self.assertEqual(len(replies), self.members_count)
if self.listener_stack.lb_algorithm == 'ROUND_ROBIN':
# assert that requests have been fairly dispatched (each server
# received the same number of requests)
self.assertEqual(len(set(replies.values())), 1)
def test_traffic(self):
self._check_members_balanced()
| python |
The Catholic Church\'s best-kept secret. The ancient scrolls which threaten that secret. And a journalist prepared to discover the truth at any cost.
1947, the Qumran Valley. Ancient scrolls are discovered that the Vatican desperately tries to suppress. Only five men know of their existence. But now four of the men have been found dead . . .
Priest and double agent, Rafael, is sent to investigate. The evidence he discovers may implicate journalist Sarah Monteiro, who already knows too many of the Church\'s secrets.
Finding themselves dangerously entangled in a life-threatening conspiracy that the church will go to any length to protect, Rafael and Sarah must uncover the truth before the killers do . . .
| english |
Ricky Starks impressed the wrestling world in his promo and bout against MJF for the AEW World Championship at Winter is Coming. He received much support from fellow talents of the industry including WWE Superstar Bayley. Recently, the Damage CTRL leader took to social media to share an image of her with Starks.
This week on Dynamite, the 32-year old AEW star addressed fans on his loss and cited he would not back down from the feud. Chris Jericho interrupted the young star in an unsuccessful bid to convince Ricky Starks to join Jericho Appreciation Society.
Prior to his championship match, Bayley proclaimed that she was rooting for the former FTW Champion to win in his bout against Maxwell Jacob Friedman. The AEW star and Bayley have actively engaged in friendly banter on social media over the past year.
Following Dynamite, The Role Model shared an image of herself with the AEW star on her Instagram story:
Former WWE Superstar Summer Rae also reacted to Starks' segment where he savagely roasted The Ocho.
A week before their clash at Winter is Coming, MJF confronted Ricky Starks in a bid to intimidate him but, instead, the contender lashed back in a verbal tirade, much to his surprise.
Additionally, this week, when the 32-year-old lashed out at Chris Jericho, he held nothing back and roasted the former ROH World Champion:
"Oh, wow, the Almighty Jericho gave me a compliment. I love it. Hey, it's my turn. You know what I like about you, Chris. I like the fact that you know how to stay relevant. I like the fact that you constantly evolve. Hell, just a few months ago, you were coming out here built like an air fryer. And now and now look at you. You're lean, you're mean, you're shredded. You're dressed like a single father on his fifth divorce." (00:03 - 00:33)
Following the title match last week, Bryan Danielson chased MJF out of the arena. He cited that the 26-year-old's actions towards William Regal forced him to go after him. While a new rivalry seems to be building up, it remains to be seen what lies in store for Starks.
Would you like to see Ricky Starks challenge the AEW World Champion again for the title? Sound off in the comments.
| english |
After much speculation, TV actress Rubina Dilaik has finally confirmed that she is all set to participate in the stunt-based reality show ‘Khatron Ke Khiladi 12’. The new season will see host Rohit Shetty and contestants heading to Cape Town for some breathtaking adventure and new high-octane stunts.
Former Bigg Boss 14 winner Rubina is elated to be a part of the show and excited to face the challenges. “I have endured many obstacles in life that have made me stronger, and I am very motivated and excited to be on Khatron Ke Khiladi," Rubina said in a statement obtained by the news agency IANS.
“I am confident that with Rohit Shetty sir’s guidance, I will be able to achieve more than I have set for myself. Much love to all my fans and I want them to support me in this new endeavour," She added.
Arjun Bijlani was the winner in the last season and Rubina is hopeful that she will be winning this season. Rubina’s husband, Abhinav Shukla was also part of Khatron Ke Khiladi Season 11.
If the latest reports are to be believed, the shooting for the show will begin soon. As reported by TellyChakkar. com, Khatron Ke Khiladi 12 shooting will start in the last week of May. Prior to this, all contestants of the show will also be flying to South Africa. Not just this, the report also claims that the tentative date for the show to go on air is likely to be in mid-July. However, there is no official confirmation regarding the same so far.
Earlier in March this year, Bigg Boss Tak reported that Bigg Boss 15 fame Pratik Sehajpal, Nishant Bhat, and Rajiv Adatia have been ‘almost confirmed’ for the show. The entertainment portal also claimed that Bigg Boss 13 fame and television actress Arti Singh is also in talks for KKK 12. Other celebrities whose names were reported as ‘almost confirmed’ contestants were Tushar Kalia, Pavitra Punia, Urvashi Dholakia, and Erica Fernandes. Reportedly, Balika Vadhu 2 fame Shivangi Joshi is also in talks for the show and is likely to be the highest-paid contestant for Khatron Ke Khiladi 12. However, there is no official announcement on any of these names so far.
Read all the Latest News , Breaking News and IPL 2022 Live Updates here. | english |
<filename>site/Code/Power_Path-Java/src/com/example/research/PuzzleSelect.java
package com.example.research;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
public class PuzzleSelect extends Activity
{
public static int puzzleIndex = 0;
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.puzzle_select);
((ImageButton)findViewById(R.id.b_puzzle1)).setOnClickListener(new View.OnClickListener()
{
@Override
public void onClick(View v)
{
puzzleIndex = 1;
startActivity(new Intent("android.intent.action.PLAYGAME"));
}
});
((ImageButton)findViewById(R.id.b_puzzle2)).setOnClickListener(new View.OnClickListener()
{
@Override
public void onClick(View v)
{
puzzleIndex = 2;
startActivity(new Intent("android.intent.action.PLAYGAME"));
}
});
((ImageButton)findViewById(R.id.b_puzzle3)).setOnClickListener(new View.OnClickListener()
{
@Override
public void onClick(View v)
{
puzzleIndex = 3;
startActivity(new Intent("android.intent.action.PLAYGAME"));
}
});
((ImageButton)findViewById(R.id.b_puzzle4)).setOnClickListener(new View.OnClickListener()
{
@Override
public void onClick(View v)
{
puzzleIndex = 4;
startActivity(new Intent("android.intent.action.PLAYGAME"));
}
});
((ImageButton)findViewById(R.id.b_puzzle5)).setOnClickListener(new View.OnClickListener()
{
@Override
public void onClick(View v)
{
puzzleIndex = 5;
startActivity(new Intent("android.intent.action.PLAYGAME"));
}
});
((ImageButton)findViewById(R.id.b_puzzle6)).setOnClickListener(new View.OnClickListener()
{
@Override
public void onClick(View v)
{
puzzleIndex = 6;
startActivity(new Intent("android.intent.action.PLAYGAME"));
}
});
}
}
| java |
New Delhi : Stone-pelting, which has been a major issue in the valley for a long time now; has been disrupting various Army operations and peace measures in Srinagar. As per ABP News’ secret agency sources, Pakistan has been indulging in cashless funding of these peace-disrupters.
As per sources, Pakistan is indulged in barter system with the stone-pelters that is they are paid goods in lieu of their work. How this barter system is brought to reality would startle anyone.
To site an example, if a truck carrying good worth Rs5 lakh leaves Muzaffarabad for Srinagar, goods worth only Rs 2 lakh would return back to Muzaffarabad; and a cut of Rs 3 lakh would reach the pockets of stone-pelters.
As per agencies, if the movement of these vehicles is barred, then the issue of stone-pelting would automatically come to an end and peace would resume in the valley.
The secret agencies and the Army is therefore, keeping a close check on the movement of these vehicles and are investigating the exchange of goods between the two countries.
Former Jammu and Kashmir Chief Minister Farooq Abdullah on Thursday virtually defended stone-pelters in Kashmir, and claimed that all stone-pelters are not the same. He also questioned, if the nation is concerned about them and their future.
He was asked whether he was playing with the sentiments of the nation by supporting stone-pelters. Than showing his resentment against the turbulence created by stone-pelters in the valley; former CM was seen sympathizing them instead.
“What is sentiments of whole nation? What do you mean by the sentiments of the nation? You have to see whether the boys have some grievances. Don’t you think they have some grievances? You only have concern for the nation. Does the nation have concern about them (stone-pelters) and their future? ” he said. | english |
Sanjay Raut claimed that there is a conspiracy to weaken Maharashtra and the Shiv Sena.
Digital Desk: Shiv Sena leader Sanjay Raut was taken into custody by the Enforcement Directorate (ED) around midnight after being questioned in connection with the Patra Chawl land scam for more than six hours. Raut, however, asserted that he is being framed and is innocent.
According to MP Sanjay Raut, there is a conspiracy to weaken Maharashtra and the Shiv Sena.
The investigation agency had already summoned Raut on July 20, which he skipped and advised them through lawyers that he could only appear after August 7 because of the ongoing Parliamentary session. On July 1, he had already recorded his statement. In the case, the ED had attached Raut's properties in Dadar and Alibag.
Here’s everything you need to know about the case:
1. On Sunday morning, a team from the Enforcement Directorate (ED) visited Shiv Sena MP Sanjay Raut's Mumbai home in connection with a money laundering investigation over alleged irregularities in the redevelopment of a Mumbai "chawl. "
2. In the evening, the ED seized him and began questioning him after hours of searching.
3. After the federal agency increased the pressure on Sanjay Raut, protests broke out across the nation. Workers for the Shiv Sena demonstrated against the ED action in some areas of Jammu and Pune.
4. During the raid on Sanjay Raut's home on Sunday in connection with the Patra chawl land fraud case, the ED seized cash worth Rs 11. 50 lakh.
5. Raut was detained in accordance with the Prevention of Money Laundering Act of 2002, and he will likely be presented in court on Monday afternoon.
6. The MP's attorney, Vikrant Sabne, asserted that no paperwork pertaining to Patra Chawl was brought into ED custody, despite the fact that the central investigation agency took cash worth Rs 11. 50 lakh from the MP's home.
7. The Crime Branch will ask for the Sena leader's custody when he appears in court in Mumbai later today, according to PTI.
8. The ED was looking into Raut in relation to a money laundering case involving purported anomalies in the redevelopment of a Mumbai "chawl. " Varsha Raut, the wife of Sanjay Raut, and two of his accomplices had previously had assets worth over Rs 11. 15 crore attached as part of the inquiry into the matter.
9. Sanjay Raut is being sought out by the agency in order to learn more about his "business and other relationships" with Pravin Raut and Patkar, as well as the real estate transactions involving his wife.
10. The ED had claimed that Pravin Raut appeared to be "operating as a front" or in cooperation with some powerful person after his arrest in February (s). | english |
<gh_stars>0
/**
* Copyright (C), 2019-2019, XXX有限公司
* FileName: ContentsApi
* Author: Soulmate
* Date: 2019/9/1 18:30
* Description: 内容管理接口
* History:
* <author> <time> <version> <desc>
* 作者姓名 修改时间 版本号 描述
*/
package com.agoni.my.shop.web.ui.api;
import com.agoni.my.shop.commons.utils.HttpClientUtils;
import com.agoni.my.shop.commons.utils.MapperUtils;
import com.agoni.my.shop.web.ui.dto.TbContent;
import java.util.List;
/**
* 〈一句话功能简述〉<br>
* 〈内容管理接口〉
*
* @author Soulmate
* @create 2019/9/1
* @since 1.0.0
*/
public class ContentsApi {
public static List<TbContent> ppt(String id) {
List<TbContent> tbContents = null;
String result = HttpClientUtils.doGet(API.API_CONTENTS+id);
try {
tbContents = MapperUtils.json2listByTree(result,"data",TbContent.class);
} catch (Exception e) {
e.printStackTrace();
}
return tbContents;
}
}
| java |
/*!
* Demos (v1.0.0): tools/config.js
* Copyright (c) 2019 Adorade (https://adorade.ro)
* Licensed under MIT
* ============================================================================
*/
const vars = {
plugins: 'plugins',
styles: 'styles',
scripts: 'scripts',
main: 'main'
};
const dirs = {
root: './',
src: 'src',
dist: 'dist',
tmp: 'tmp',
deploy: '.publish',
logs: 'logs'
};
const paths = {
styles: {
src: {
scss: `${dirs.src}/scss/**/*.scss`,
plugins: [
'./node_modules/normalize.css/normalize.css',
'./node_modules/animate.css/animate.css'
]
},
tmp: {
dir: `${dirs.tmp}/css/`,
css: [
`${dirs.tmp}/css/${vars.plugins}.css`, // => from `node_modules`
`${dirs.tmp}/css/${vars.styles}.css` // => from `scss`
]
},
dest: `${dirs.dist}/css/`
},
scripts: {
src: {
js: `${dirs.src}/es6/**/*.js`,
plugins: [
'node_modules/wowjs/dist/wow.js'
]
},
tmp: {
dir: `${dirs.tmp}/js/`,
js: [
`${dirs.tmp}/js/${vars.plugins}.js`, // => from `node_modules`
`${dirs.tmp}/js/${vars.scripts}.js` // => from `es6`
]
},
dest: `${dirs.dist}/js/`
},
views: {
src: [`${dirs.src}/views/**/*.pug`, `!${dirs.src}/views/**/_*.pug`],
all: `${dirs.src}/views/**/*.pug`,
tmp: {
dir: `${dirs.tmp}/`,
files: `${dirs.tmp}/*.html`
},
dest: {
dir: `${dirs.dist}/`,
files: `${dirs.dist}/*.html`
}
},
logs: {
gulp: `${dirs.logs}/gulp/`
}
};
module.exports = { vars, dirs, paths };
| javascript |
Paul Coughlin, Durham's T20 Blast captain, has decided to leave the County at the end of 2017 season. The 24-year-old all-rounder will be joining Nottinghamshire on a three-year deal.
"It was an extremely tough decision to leave Durham, but I am very excited about joining Nottinghamshire and playing at Trent Bridge," Coughlin said right after the news was announced on Tuesday (September 19).
"It is a fantastic opportunity to continue my development and I look forward to working with Peter Moores and his coaching staff."
Coughlin, who turned down an offer from Warwickshire 13 months ago, was, along with opening batsman Keaton Jennings, in Durham's scheme of things for future leadership. The club now finds itself grappling to hold onto youngsters instead, only twelve months after a financial crisis and a relegation into Division 2 left it destabilised. However, there's an immediate relief in the form of Paul Collingwood, the current County captain, who has decided to extend his career into 2018. Coughlin is currently carrying a side injury and won't feature again for Durham this season.
Durham County Cricket Club Chairman, Sir Ian Botham, expressed his frustration at letting go Coughlin, a player who made his first-class debut against Australia A in 2012 aged 19 and has been a product of an all-Durham set-up.
"Despite offering Paul - a player we have nurtured through our academy system and someone we hold in extremely high regard - a very competitive contract extension, our devoted support during periods of injury, continuous development and leadership opportunities; the player has chosen to leave Durham," Botham said.
"I respect Paul's right to move clubs and understand that players at certain times in their careers may want to move on, however; it's without question that our Second Division status, points penalties and difficult financial situation has created an opportunity for rival Counties and intermediaries to unsettle players with promises of First Division cricket, greater England opportunities and immediate financial reward."
Botham, reflecting on what transpired, dug into the systematic flaws that England's domestic circuit seems to be plagued with. "It concerns me that the current arrangements within cricket do not reward counties that invest in academies and produce exciting young English players.
"The ECB is currently reviewing its partnership agreement with the Counties and Durham will be making strong representations to properly reward those that invest in the development of local talent. They need to introduce a transfer or similar system of compensation, to remove the potential for conflict of interest by preventing serving Directors of Cricket acting as selectors and to better regulate the behaviour of agents."
Reacting to the news of signing Coughlin, who has taken 12 wickets in eight Royal London One-Day Cup games this season, Nottinghamshire's Director of Cricket Mick Newell said: "We see Paul as someone who can be influential for us in all forms of cricket and fits the type of cricketer that we want to sign.
"He is a dynamic fielder, bowls quickly and is an aggressive batsman - he's an exciting young player.
"From our perspective, he is coming to a Club where we have a good coaching team in place who we think can improve him as a player. We want to help Paul be the best cricketer that he can be."
| english |
{
"name": "cordova-toast-yl",
"version": "3.0.0",
"description": "",
"cordova": {
"id": "org.apache.yldemo",
"platforms": [
"android"
]
},
"repository": {
"type": "git",
"url": "https://github.com/MaxBalance/cordova-plugin-mjtest.git"
},
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "hqf",
"license": "Apache-2.0"
}
| json |
<filename>src/test/java/fr/metabohub/peakforest/security/model/UserTest.java
package fr.metabohub.peakforest.security.model;
import java.util.Date;
import org.junit.Assert;
import org.junit.Test;
public class UserTest {
@Test
public void testGetSetId() {
final User u = new User();
Assert.assertEquals(0L, u.getId(), 0);
u.setId(42L);
Assert.assertEquals(42L, u.getId(), 0);
}
@Test
public void testGetSetVersion() {
final User u = new User();
Assert.assertNull(u.getVersion());
u.setVersion(666L);
Assert.assertEquals(666L, u.getVersion(), 0);
}
@Test
public void testGetSetLogin() {
final User u = new User();
Assert.assertNull(u.getLogin());
u.setLogin("set-login");
Assert.assertEquals("set-login", u.getLogin());
}
@Test
public void testGetSetEmail() {
final User u = new User();
Assert.assertNull(u.getEmail());
u.setEmail("set-email");
Assert.assertEquals("set-email", u.getEmail());
}
@Test
public void testGetSetPassword() {
final User u = new User();
Assert.assertNull(u.getPassword());
u.setPassword("<PASSWORD>");
Assert.assertNull("set-password", u.getPassword());
}
@Test
public void testIsAdmin() {
final User u = new User();
Assert.assertFalse(u.isAdmin());
u.setAdmin(Boolean.TRUE);
Assert.assertTrue("set-admin", u.isAdmin());
}
@Test
public void testIsConfirmed() {
final User u = new User();
Assert.assertFalse(u.isConfirmed());
u.setConfirmed(Boolean.TRUE);
Assert.assertTrue("set-Confirmed", u.isConfirmed());
}
@Test
public void testGetSetCreated() {
final User u = new User();
Assert.assertNull(u.getCreated());
u.setCreated(new Date());
Assert.assertNotNull("set-Created", u.getCreated());
}
@Test
public void testGetSetUpdated() {
final User u = new User();
Assert.assertNull(u.getUpdated());
u.setUpdated(new Date());
Assert.assertNotNull("set-Updated", u.getUpdated());
}
@Test
public void testIsCurator() {
final User u = new User();
Assert.assertFalse(u.isCurator());
u.setCurator(Boolean.TRUE);
Assert.assertTrue("set-Curator", u.isCurator());
}
@Test
public void testGetSetToken() {
final User u = new User();
Assert.assertNull(u.getToken());
u.setToken("set-Token");
Assert.assertEquals("set-Token", u.getToken());
}
@Test
public void testPrune() {
final User u1 = new User();
u1.setLogin("login");
u1.setEmail("email");
u1.setAdmin(Boolean.TRUE);
u1.setPassword("password");
u1.setToken("token");
Assert.assertTrue(u1.isAdmin());
Assert.assertNull(u1.getPassword());
Assert.assertNotNull(u1.getToken());
final User u2 = u1.prune();
Assert.assertEquals("login", u2.getLogin());
Assert.assertEquals("email", u2.getEmail());
Assert.assertFalse(u2.isAdmin());
Assert.assertNull(u2.getPassword());
Assert.assertNull(u2.getToken());
}
@Test
public void testGetSetMainTechnology() {
final User u = new User();
Assert.assertEquals(User.PREF_LCMS, u.getMainTechnology());
u.setMainTechnology(User.PREF_GCMS);
Assert.assertEquals(User.PREF_GCMS, u.getMainTechnology());
}
}
| java |
<filename>packages/examples/quickstart/consumer.ts<gh_stars>1-10
// Copyright (c) 2020-present PowerBotKit Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
import {
BaseWorker,
ConsumerServer,
IBotWorker,
IWorkerRouterHandler,
TConsumerServerConfig,
TMiddlewareConfig,
WorkerRouterHandler
} from '@powerbotkit/consumer';
import { GDUserSession, MessageOutput, MessageType } from '@powerbotkit/core';
import {
InputMiddleware4Worker,
InputMiddlewareGlobal,
OutputMiddleware4Worker,
OutputMiddlewareGlobal
} from './middleware';
class EchoWorker extends BaseWorker {
constructor(defaultService: string) {
super(defaultService);
}
async process(dialog: GDUserSession): Promise<GDUserSession> {
return super.process(dialog);
}
echoService(dialog: GDUserSession): MessageOutput {
const userInput = super.getUserInput(dialog);
const card = {
type: 'AdaptiveCard',
version: '1.0',
body: [
{
type: 'TextBlock',
text: 'Echo ${value}!',
size: 'large'
}
],
actions: [
{
type: 'Action.OpenUrl',
url: 'http://adaptivecards.io',
title: 'Learn More'
}
]
};
const result = super.getRenderCard(card, userInput);
const outputMessage: MessageOutput = {
type: MessageType.cardAdd,
value: result
};
return outputMessage;
}
}
// eslint-disable-next-line @typescript-eslint/no-floating-promises,@typescript-eslint/require-await
(async () => {
const routerHandler: IWorkerRouterHandler = new WorkerRouterHandler(
'EchoWorker'
);
const echoWorker: IBotWorker = new EchoWorker('echoService');
const inputMiddlewareGlobal = new InputMiddlewareGlobal();
const outputMiddlewareGlobal = new OutputMiddlewareGlobal();
const inputMiddleware4Worker = new InputMiddleware4Worker();
const outputMiddleware4Worker = new OutputMiddleware4Worker();
routerHandler.register(
'EchoWorker',
echoWorker,
inputMiddleware4Worker,
outputMiddleware4Worker
);
const serverConfig: TConsumerServerConfig = {
routerHandler
};
const middlewareConfig: TMiddlewareConfig = {
inputMiddleware: inputMiddlewareGlobal,
outputMiddleware: outputMiddlewareGlobal
};
const server = new ConsumerServer();
server.setup(serverConfig, middlewareConfig);
await server.start();
})();
| typescript |
Begin typing your search above and press return to search.
BOKAKHAT, FEBRUARY 20: Officers and staff of all offices of Bokakhat Sub-Division today bid farewell to sub divisiol officer (civil) Mrigesh rayan Boruah, who has been promoted and transferred to lbari district. He will hand over charge to Azahar Ali tomorrow. The Sub-Divisiol Jourlist Association Bokakhat ,Bokakhat tya Mandir Committee, Asomiya Sahitya Sanmilani Bokakhat , Bokakhat Press Club, Puati Sahitya Sobha, Lekhika Somaroh Samitee Bokakhat and many other social organizations will bid him farewell on February 21 at a meeting to be held at Bokakhat tya Mandir at 3 p. m. | english |
# SMT [Note code has been moved to accumulated]
Stateful Merkle Trees provide the support for building and maintaining
information in Merkle Trees. On the face of this, SMT isn't very different
from how Merkle Trees have been used in blockchains since Bitcoin. However,
SMT allows a blockchain to maintain Merkle Trees spanning many blocks, and
even Merkle Trees of Merkle Trees.
An SMT can collect hashes of validated data from multiple sources and
create a Merkle Tree that orders all these hashes by arrival time to the
SMT. The arrival order of entries from all sources is maintained.
SMTs can be arranged in any way an application requires. The SMT manager
can be redirected to update multiple SMTs. Note that one of the logical
arrangements for SMT is to create an SMT of SMTs.
SMTs collect entries in lists maintained on power of 2 boundries (i.e.
every 4, 8, ... 1024, .... boundaries. Blocks are documented by creating
indexes of blocks and elements in a shadow Merkle tree. This is all that is
needed to be able to generate the state of the Merkle Tree at the end of any
block.
A single Merkle Tree, for example, could take as elements the letters of the
Alphabet. In this notation, a and b represent hashes, and ab represents
hash resulting from hashing a and b together. Because we combine
hashes on power of 2 boundaries, we can understand how to combine any set of n
characters where n is a power of 2.
for example, assume **H**(x) indicates the hash of x, and **+** is the
concatenation operator, then:
```
ab = H( a+b )
abcd = H( H( a+b ) + H( c+d )
abcdefgh = H( H( H( a+b ) + H( c+d ) + H( H( e+f ) + H( g+h ) )
```
Using this simplified notation, we can write out a Merkle Tree with 26
elements denoted by the letters a-z this way. Note that at 26 entries,
three sub merkle trees are not yet combined, and are denoted with [ ]s.
```
a b c d e f g h i j k l m n o p q r s t u v w x y z
ab cd ef gh ij kl mn op qr st uv wx [yz]
abcd efgh ijkl mnop qrst uvwx
abcdefgh ijklmnop [qrstuvwx]
[abcdefghijklmnop]
```
The roots of this tree are **abcdefghijklmnop**, **qrstuvwx**, and **yz**.
Given a hash function H(x), and a concatenation
operator +, The DAG root of the above partial Merkle Tree is
```
H( abcdefghijklmnop + H( [qrstuvwx] + [yz] ) )
```
In order to create blocks, suppose the alphabet were entered into a
blockchain that managed 5 elements per block (and we put any leftovers in
their own block). Then the above blockchain of characters becomes a Merkle
tree split up as follows, with each block labeled d0-d5:
```
a b c d e f g h i j k l m n o p q r s t u v w x y z
ab cd | ef gh ij kl mn | op qr st uv wx | yz
abcd | efgh | ijkl | mnop qrst uvwx | |
| abcdefgh | | ijklmnop | qrstuvwx | |
| | | abcdefghijklmnop | | |
| | | | | |
d0 d1 d2 d3 d4 d5
```
Note that we end up with six blocks, with the following elements:
* a b c d e
* f g h i j
* k l m n o
* p q r s t
* u v w x y
* z
Also note that each block has a DAG root. Consider the DAG roots below,
labeled d0 to d5 as follows:
* d0 = h(abcd+e)
* d1 = h(abcdefgh + ij)
* d2 = h(abcdefgh + h(ijkl + h(mn+o)))
* d3 = h(abcdefghijklmnop +qrst)
* d4 = h(abcdefghijklmnop + h(qrstuvwx + y))
* d5 = h(abcdefghijklmnop + h(qrstuvwx + yz)
Now we can construct a Merkle Tree that takes as elements the roots of a set
of merkle trees. Further note that regardless of the rules for constructing
blocks, any blockchain can fit within a Merkle Tree rather than fitting
Merkle Trees into blocks, using the method described above.
So suppose that we have not just d0-d5, but e0-e5, f0-f5, and g0-g5 where d,
e,f,g all represent DAG Roots of merkle trees. We can build a root Merkle
Tree that would take these elements:
```
d0 e0 f0 g0 d1 e1 f1 g1 d2 e2 f2 g2 d3 e3 f3 g3 d4 e4 f4 g4 d5 e5 f5 g5
d0e0 f0g0 d1e1 f1g1 d2e2 f2g2 d3e3 f3g3 d4e4 f4g4 d5e5 f5g5
d0e0f0g0 d1e1f1g1 d2e2f2g2 d3e3f3g3 d4e4f4g4 d5e5f5g5
d0e0f0g0d1e1f1g1 d2e2f2g2d3e3f3g3 d4e4f4g4d5e5f5g5
d0e0f0g0d1e1f1g1d2e2f2g2d3e3f3g3
```
Due to the limitations of a document like this, flushing out how deep the
merkle trees can be nested will not be illustrated. If the
root MerKle Tree can hold the DAGs of other Merkle Trees, those Merkle Trees
can also hold DAGS of other Merkle Trees.
## Binary Patricia Trees (BPT)
Patricia Trees are designed to be able to create small cryptographic proofs
about the particular state of values at a particular point of time in some
process. On a blockchain, a Patricia Tree can be used to prove the balance
of an account (an address) in a blockchain at a particular block height.
Accumulate organizes the blockchain into a series of chains under particular
identities. Being able to prove the state of a particular chain at a
particular block height becomes critical. The index of the block where a
chain was last modified is also important. The BPT provides these
proofs for the state of each chain.
To summarize:
* Identities can act as domains to allow addressing the blockchain as a set of
URLs
* Chains are organized under Identities
* The Membership of Chains is proven using Stateful Merkle Trees. All
entries in a chain are members of one, growing, Merkle Tree. At any point
in time, the membership of the Merkle Tree is provable by the Merkle State.
* Binary Patricia Trees are used to prove the state of every chain in a Block
Validator Node at a particular block height
A Merkle Tree takes a set of records, then hashes them in order to produce a
Merkle Root. The BPT does the same thing, adding a key per record to
organize where the records go into the BPT. So while a Merkle Tree organizes
the records by the order in which they are added, a Patricia tree organizes
records according to the key of each record. A principle feature of a
Patricia is that the adding order does not matter; the record set is what
matters.
At the heart of a blockchain is maintaining a proof of the state without
requiring all elements of that state to be at hand. Accumulate organizes
all these proofs as a very large set of chains. Even token transactions are
organized as chains where the membership and order of transactions from a
particular account exist in its own chain.
Knowing and proving what the complete state of a chain at a particular block
height becomes critical. That is known if one can prove the last state
of the Merkle Tree that holds those transactions.
We place these states in our Patricia Tree. The implementation here is the
Binary Patricia Tree. The Keys used are hashes derived from the URL for
each chain. The Values are the hash of the Merkle Tree States.
### Implementation
The quality we need in the Patricia Tree implementation is the ability to
quickly update its state, and that its state provides proofs of the state of
the entire protocol. This implementation ensures that, no matter what order is
used to add records to a Patricia Tree, the same set of records produces
exactly the same Patricia Tree (Assuming no two records modify the same
state). Note that this is true of any Patricia Tree Implementation.
Further, subsets of the Patricia Tree are independently provably correct,
as long as there is a path to the root of the Patricia Tree to the
subsection of the Patricia tree.
The BPT is a Binary Patricia Tree, and perhaps more correctly called
a Binary Patricia-Merkle Tree. The summary of all Key/Value pairs is a hash
that acts like the Merkle Root of a Merkle Tree, while additions or
modifications of the Merkle Tree only require localized re-computations.
Many implementations of Patricia Trees are described in the literature.
With BPT as are used by Accumulate, the keys are randomly distributed from
a binary point of view because the keys are the hashes of URLs. Mining
these hashes to build some particular pattern of leading bits is not very
manageable or possible as the keys derive from URLs. URLs can certainly be
mined to have interesting leading bits, but little incentive exists to do so.
Given that the keys created from hashes can be relied on to be numerically
random, a BPT will be very well-balanced if this feature is exploited.
Note that we use the leading bits to organize entries in the BPT. However,
nothing prevents using every 3rd bit, the trailing bits, or any other
random walk of bits in the key. Should any attack be mounted to create
chainIDs that significantly unbalance the BPT, we can refactor the Patricia
Tree using any of these methods, and do so over time (reorganizing only
parts of the BPT at a time).
We have three entry types in the BPT:
* Node -- Node entries are used to organize the tree. They have a left path
and a right path, and exist at a height in the BPT. The Height is used to
consider a particular bit in the BPT (at that point). The Left path is
taken if the key has a zero bit at that point. The Right path is taken
if the key has a 1 at that point.
* Value -- The key value pair in the BPT. Value entries have no children, and
paths through the BPT from parent to child Node entries must end with either
at a nil or a Value entry.
* Load -- Node represents the fact that the next Byte Block is not loaded,
and needs to be loaded if the search is running through this part of the
BPT.
Consider a set of keys that might be added to the BPT. The sequence of URLs
formed from acc://RedWagon/1, acc://RedWagon/2,acc://RedWagon/3, ... would
result in the following Keys, the first byte, and the binary of the first byte:
```
First First
Keys Byte Byte
(Hashs of the URLs acc://RedWagon/1, acc://RedWagon2, ...) in Hex in Binary
694833d340c7e952163b3dd8a25bfeea8b1163971d4816093a0eb77889006e5b 69 [01101001]
a100ecde2c835a02f722a395311d3f070cf874e9945f42645ba8bcfe8f883f1c a1 [10100001]
2de44ed61567e49d338c1a1dc42cd801e57080bfb925784d124b8027b7bc2a39 2d [00101101]
fb1f13654fb5178b489c1dc3f5ac24e488b68ee7beedeaabbb3e90f5ff38c96e fb [11111011]
efdcd18725e4ab8bdc5521d40bc6626c2374e453c86a1dcbca3a19c31696623e ef [11101111]
```
Walking through adding these entries to a BPT will illustrate the approach.
It is left to the reader to walk through adding these nodes in different
orders to demonstrate how order does not change the end state of the BPT.
In the chart above, we see the hashes of a set of URLs built off of the
RedWagon identity/identifier/domain. The following steps show adding the
states of these chains to an empty BPT.
We start with the Root entry, an empty Node
```
|L /R
Root
```
With the ChainID starting with 0x69, the first bit is zero:
```
69
\L /R <-- looking at bit 0
Root
```
Adding 0xA1:
```
69 a1
\L /R <-- looking at bit 0
Root
```
Adding 0x2d will push 0x69 up, adding a Node on the Left
```
2d 69
\L /R <-- Looking at bit 1
N a1
\L /R <-- Looking at bit 0
Root
```
Adding 0xfb will push 0xA1 up, adding a Node on the right
```
2d 69 a1 fb
\L /R \L /R <-- Looking at bit 1
N N
\L /R <-- Looking at bit 0
Root
```
Finally adding 0xef will push 0xfb up, adding a node on the right
```
ef fb
\L /R <-- Looking at bit 2
2d 69 a1 N
\L /R \L /R <-- Looking at bit 1
N N
\L /R <-- Looking at bit 0
Root
```
Note that even adding just 5 nodes resulted in a reasonably balanced tree.
Tests have demonstrated that we get pretty reasonable results with larger
test sets, even if the trees are rarely absolutely optimal.
## Saving the BPT to disk
Each byte of the ChainID represents up to 511 nodes/values in the MerkleTree
(1+2+4+...+256). The BPT packages each byte into one persisted BPT block. When
the BPT is updated, modified BPT blocks are persisted to the database.
BPT blocks are indexed in the database under the "BPT" bucket using the
preceding bytes as keys.
### Database
The database used underneath the MerkleManager is a key value store that
uses the concepts of salts, buckets, and labels to organize the key value
pairs generated in the process of building multiple Merkle Trees.
Salts provide a way of separating one Merkle Tree's data and hashes from
another. Some overall tracking of the contents of the database is done
without a salt, i.e. at the root level. Most if not all salts will be the
ChainID (hash of the chain URL).
* **Salt** *Root, no Salt*, no label, no key: Index Count
* **Index2Salt** Index / Salt -- Given a Salt Index returns a Salt
* **Salt2Index** Salt / Index -- Given a Salt returns a Salt Index
* **ElementIndex** *Salted by ChainID* element hash / element Index
* **States** *Salted by ChainID* element index / Merkle State -- Given an
element index in a Merkle Tree, return the Merkle State at that point. Not
all element indexes are defined
* **NextElement** *Salted by ChainID* element index / next element --
Returns the next element to be added to the Merkle Tree at a given index
* **Element** *Salted by ChainID* no label, no key: Count of elements in the
merkle tree
* **BPT** *no Salt* -- ChainID / Byte Block -- The nodes in the Binary
Patricia Tree (BPT) are saved as blocks of BPT nodes. Each BPT Byte Block
is addressed by the key up to the block.
* **Root** *no Salt, no Key* / BPT -- returns the state of the BPT and
the root node.
Buckets used by the MerkleManager:
* **BucketIndex** *Salted by ChainID* element index / BlockIndex struct -- A
BlockIndex struct has three indexes: The BVC block index, the Main chain
index, and the Pending Index. Either of the Main chain index or the
Pending Index can be -1 (indicating no entries in this block, but not both.
* **\<blockIndex\>** -- Using the block index as a key, returns the
BlockIndex struct at that index in the Block Index Chain (BlxIdxChain).
* **\<none\>** -- Providing no label or key, returns the highest
BlockIndex in the Block Index Chain (BlxIdxChain)
## SMT/managed/MerkleManager
The MerkleManager is used to build and persist Merkle Trees. Features
include the dynamic construction of Merkle Trees, saving such Merkle Trees
to a specified key value store, handling of multiple Merkle Trees, maintenance
of shadow Merkle Trees, and more.
* `func NewMerkleManager(DBManager *database.Manager, markPower int64,
Salt []byte) *MerkleManager` Returns a MerkleManager using the
given initial salt
* `func (m MerkleManager) Copy(salt []byte)` Effectively points the
MerkleManager to point to a MerkleTree associated with the given salt
`func (m MerkleManager) CurrentSalt() (salt []byte)` Returns the current
salt in used by the MerkleManagher
* `func (m MerkleManager) GetLementCount() (elementCount int64)` Returns the
count of elements in the Stateful Merkle Tree currently under the focus of
the MerkleManager
* `func (m MerkleManager) SetBlockIndex(blockIndex int)` Mark this point in the
Merkle
Tree as the last element in a block
* `func (m MerkleManager) GetState(element int64)` Get the state of the
MerkleTree at the given
element index. If no state was stored at that index, returns nil. Note
that the frequency at which states are stored is determined by the mark power.
* `func (m MerkleManager) GetNext(element int64)` Return the element added
at this index. We store
the state just prior to moving into the power of 2, and the element that
when added brings the merkle tree to a power of 2 (frequency determined by
the mark power). This is key to generating receipts efficiently from a
stateful merkle tree
* `func (m MerkleManager) AddHash(hash Hash)` Adds a hash to the current
MerkleTree under management
* `func (m MerkleManager) AddHashString(hash string)` Does a conversion of
a hex string to a binary hash before calling AddHash. Panics if provided
a string that is not a valid hex string.
## SMT/managed/Receipt
Receipts allow the generation and validation of the elements in a Merkle
Tree against other, later elements in the Merkle Tree. The use case this
supports is the dynamic construction of Merkle Trees that are anchored over
time either to other merkle trees or to blockchains.
* `GetReceipt(manager *MerkleManager, element Hash, anchor Hash) *Receipt`
Given the hash of an element in the Merkle Tree, and the hash of an
element that has been anchored externally, compute the receipt of the
element hash. Note that the element index must be less than or equal to
the anchor index. If either hash is not a member of the merkle tree, or
the hash of the element has an index higher than the index of the anchor,
a nil reciept is returned.
* `(r Receipt) Validate` applies the hashes as specified by the receipt and
validates that the element hash is proven by the anchor hash.
## SMT/managed/MerkleState
Supports the dynamic construction of Merkle Trees. Note that the
MerkleState only handles the "storm front" of merkle tree construction, such
that the state is updated as elements are added. The MerkleState object
does not persist the elements of a merkle tree. This is done externally, and
in this library this is done by the MerkleManager.
* `(m MerkleState) Copy()` Returns a new copy of the MerkleState
* `(m MerkleState) CopyAndPoint()` Returns a pointer to a new copy of the
MerkleState
* `(m MerkleState) Equal(m2 MerkleState) (isEqual bool)` Returns true if the
MerkleState is equal to the m2 MerkleState
* `(m MerkleState) Marshal() (MSBytes[]byte)` Returns a serialized version
of the MerkleState
* `(m *MerkleState) UnMarshal(MSBytes []byte)` Decodes the MerkleState from
the given bytes and updates the MerkleState to reflect that state.
* `(m *MerkleState) AddToMerkleTree(hash_ [32]byte` Add a given Hash to the
Merkle Tree and update the Merkle State
### Validation
Accumulate is based on authentications. We support a hierarchy of keys that
allows for cold storage and multi-signature security for the control and
management of an identity, and the chains and tokens managed by an identity.
| markdown |
On what would have been her 74th birthday, Olivia Newton-John was celebrated by those closest to her.
The "Physical" singer, who passed away in August after succumbing to her long battle with cancer, was honored by her dear friend, John Travolta, in a touching, yet simple post on his Instagram.
"Happy birthday my Olivia," he wrote, sharing a photo of him gazing into Newton-John's eyes in their beloved film, "Grease. "
The two played star-crossed lovers Sandy and Danny in the 1978 movie.
In addition to Travolta, Newton-John's husband John Easterling and daughter Chloe Lattanzi, along with other close friends, went out to dinner to celebrate the late matriarch.
Chloe also shared an old video of her mother feeding a tiger a carton of milk, writing in part, "Happy birthday mama bear. This is who you are. A nature girl with the biggest heart. The most down to earth beautiful being I have ever known. I hold you in my heart forever. "
John recounted fond memories he shared with his late wife, writing on his Instagram, "I remember the first birthday when were together and I took Olivia on a week-long adventure in the Out Islands of the Bahamas surrounded by beautiful, peaceful spectacular turquoise water…It was private, it was wonderful, and we would take the boat to uninhabited islands and beach it and just explore - just the two of us. "
He captioned his post in part, "Happy Birthday Honey - I Love You! " | english |
{
"<page title>": "Olympus D 560 Digital Camera 3 2 Megapixel | eBay",
"brand": "Olympus",
"bundled items": "Strap (Neck or Wrist)",
"country/region of manufacture": "Indonesia",
"megapixels": "3.2 MP",
"mpn": "269c53891",
"optical zoom": "10x",
"type": "Mini Digital Camera"
} | json |
<filename>MonoNative/mscorlib/System/Security/Cryptography/mscorlib_System_Security_Cryptography_SignatureDescription.cpp<gh_stars>1-10
#include <mscorlib/System/Security/Cryptography/mscorlib_System_Security_Cryptography_SignatureDescription.h>
#include <mscorlib/System/mscorlib_System_String.h>
#include <mscorlib/System/Security/Cryptography/mscorlib_System_Security_Cryptography_AsymmetricSignatureDeformatter.h>
#include <mscorlib/System/Security/Cryptography/mscorlib_System_Security_Cryptography_AsymmetricAlgorithm.h>
#include <mscorlib/System/Security/Cryptography/mscorlib_System_Security_Cryptography_HashAlgorithm.h>
#include <mscorlib/System/Security/Cryptography/mscorlib_System_Security_Cryptography_AsymmetricSignatureFormatter.h>
#include <mscorlib/System/mscorlib_System_Type.h>
namespace mscorlib
{
namespace System
{
namespace Security
{
namespace Cryptography
{
//Public Methods
mscorlib::System::Security::Cryptography::AsymmetricSignatureDeformatter SignatureDescription::CreateDeformatter(mscorlib::System::Security::Cryptography::AsymmetricAlgorithm key)
{
MonoType *__parameter_types__[1];
void *__parameters__[1];
__parameter_types__[0] = Global::GetType(typeid(key).name());
__parameters__[0] = (MonoObject*)key;
MonoObject *__result__ = Global::InvokeMethod("mscorlib", "System.Security.Cryptography", "SignatureDescription", 0, NULL, "CreateDeformatter", __native_object__, 1, __parameter_types__, __parameters__, NULL);
return mscorlib::System::Security::Cryptography::AsymmetricSignatureDeformatter(__result__);
}
mscorlib::System::Security::Cryptography::HashAlgorithm SignatureDescription::CreateDigest()
{
MonoObject *__result__ = Global::InvokeMethod("mscorlib", "System.Security.Cryptography", "SignatureDescription", 0, NULL, "CreateDigest", __native_object__, 0, NULL, NULL, NULL);
return mscorlib::System::Security::Cryptography::HashAlgorithm(__result__);
}
mscorlib::System::Security::Cryptography::AsymmetricSignatureFormatter SignatureDescription::CreateFormatter(mscorlib::System::Security::Cryptography::AsymmetricAlgorithm key)
{
MonoType *__parameter_types__[1];
void *__parameters__[1];
__parameter_types__[0] = Global::GetType(typeid(key).name());
__parameters__[0] = (MonoObject*)key;
MonoObject *__result__ = Global::InvokeMethod("mscorlib", "System.Security.Cryptography", "SignatureDescription", 0, NULL, "CreateFormatter", __native_object__, 1, __parameter_types__, __parameters__, NULL);
return mscorlib::System::Security::Cryptography::AsymmetricSignatureFormatter(__result__);
}
//Get Set Properties Methods
// Get/Set:DeformatterAlgorithm
mscorlib::System::String SignatureDescription::get_DeformatterAlgorithm() const
{
MonoObject *__result__ = Global::InvokeMethod("mscorlib", "System.Security.Cryptography", "SignatureDescription", 0, NULL, "get_DeformatterAlgorithm", __native_object__, 0, NULL, NULL, NULL);
return mscorlib::System::String(__result__);
}
void SignatureDescription::set_DeformatterAlgorithm(mscorlib::System::String value)
{
MonoType *__parameter_types__[1];
void *__parameters__[1];
__parameter_types__[0] = Global::GetType(typeid(value).name());
__parameters__[0] = (MonoObject*)value;
Global::InvokeMethod("mscorlib", "System.Security.Cryptography", "SignatureDescription", 0, NULL, "set_DeformatterAlgorithm", __native_object__, 1, __parameter_types__, __parameters__, NULL);
}
// Get/Set:DigestAlgorithm
mscorlib::System::String SignatureDescription::get_DigestAlgorithm() const
{
MonoObject *__result__ = Global::InvokeMethod("mscorlib", "System.Security.Cryptography", "SignatureDescription", 0, NULL, "get_DigestAlgorithm", __native_object__, 0, NULL, NULL, NULL);
return mscorlib::System::String(__result__);
}
void SignatureDescription::set_DigestAlgorithm(mscorlib::System::String value)
{
MonoType *__parameter_types__[1];
void *__parameters__[1];
__parameter_types__[0] = Global::GetType(typeid(value).name());
__parameters__[0] = (MonoObject*)value;
Global::InvokeMethod("mscorlib", "System.Security.Cryptography", "SignatureDescription", 0, NULL, "set_DigestAlgorithm", __native_object__, 1, __parameter_types__, __parameters__, NULL);
}
// Get/Set:FormatterAlgorithm
mscorlib::System::String SignatureDescription::get_FormatterAlgorithm() const
{
MonoObject *__result__ = Global::InvokeMethod("mscorlib", "System.Security.Cryptography", "SignatureDescription", 0, NULL, "get_FormatterAlgorithm", __native_object__, 0, NULL, NULL, NULL);
return mscorlib::System::String(__result__);
}
void SignatureDescription::set_FormatterAlgorithm(mscorlib::System::String value)
{
MonoType *__parameter_types__[1];
void *__parameters__[1];
__parameter_types__[0] = Global::GetType(typeid(value).name());
__parameters__[0] = (MonoObject*)value;
Global::InvokeMethod("mscorlib", "System.Security.Cryptography", "SignatureDescription", 0, NULL, "set_FormatterAlgorithm", __native_object__, 1, __parameter_types__, __parameters__, NULL);
}
// Get/Set:KeyAlgorithm
mscorlib::System::String SignatureDescription::get_KeyAlgorithm() const
{
MonoObject *__result__ = Global::InvokeMethod("mscorlib", "System.Security.Cryptography", "SignatureDescription", 0, NULL, "get_KeyAlgorithm", __native_object__, 0, NULL, NULL, NULL);
return mscorlib::System::String(__result__);
}
void SignatureDescription::set_KeyAlgorithm(mscorlib::System::String value)
{
MonoType *__parameter_types__[1];
void *__parameters__[1];
__parameter_types__[0] = Global::GetType(typeid(value).name());
__parameters__[0] = (MonoObject*)value;
Global::InvokeMethod("mscorlib", "System.Security.Cryptography", "SignatureDescription", 0, NULL, "set_KeyAlgorithm", __native_object__, 1, __parameter_types__, __parameters__, NULL);
}
}
}
}
}
| cpp |
<reponame>Hidayatilman/stikerinbot
{
"clientID": "zFJh2At0ESq/wRSf+RN9fQ==",
"serverToken": "<KEY>
"clientToken": "ED7YFZEU6/Xo8UV12ORaz6Km9IGf1UINwlDBUHMswho=",
"encKey": "<KEY>
"macKey": "<KEY>
}
| json |
The world's largest planemaker said that group CEO Guillaume Faury, who has combined the job of running the wider company with the jetliner business since 2019, said the move would free him to steer the group in a "fast-evolving global environment".
Scherer's appointment as Commercial Aircraft CEO, first reported by Reuters, will take effect from Jan. 1 after discussions with unions, Airbus said.
The shake-up propels a company veteran to effective number two of Europe's largest aerospace group Europe's largest aerospace group, allowing Faury to focus on the group's wider portfolio amid uncertainties over its future in space and the pace of development of a new fighter.
The appointment of Scherer, 61, heralds broad continuity inside the main commercial arm, which competes with Boeing and makes up about 70% of the company's revenues.
It comes at a time when the aerospace industry faces widespread disruption in the global supply chain.
Airbus shares rose 0.2% in a slightly weaker market.
Scherer, who is currently chief commercial officer, said Airbus would meet its operational objectives.
Airbus has said it plans to deliver 720 jets this year and raise benchmark single-aisle jet output by about 50% to 75 planes a month by 2026.
Airbus formally merged with its dominant planemaking business in 2018, meaning it combines two separate headquarters and operational functions under one CEO, with the Helicopters and Defence & Space divisions sitting underneath.
The shake-up brings back a separate planemaking CEO under the same roof but the company does not appear to be re-creating two entities, something that had created a stage for chronic in-fighting in the past. Airbus insists that era is over.
Faury said in a statement he and Scherer already worked "hand in hand" and that the existing combination of parent group and planemaking business had allowed "alignment and speed of execution during a period of multiple crises and change".
Download The Economic Times News App to get Daily Market Updates & Live Business News.
| english |
The symptoms of Parkinson's disease may cause you to move more slowly. You may also feel tightness, pain, and weakness, especially in the muscles and joints. Physical and occupational therapy may help with these symptoms.
How Does Physical Therapy Help Parkinson's Disease?
Physical therapy cannot cure Parkinson's disease, because at this time, neurological damage cannot be reversed. But therapy can help you compensate for the changes brought about by the condition. These "compensatory treatments," as they're called, include learning about new movement techniques, strategies, and equipment. A physical therapist can teach you exercises to strengthen and loosen muscles. Many of these exercises can be performed at home. The goal of physical therapy is to improve your independence and quality of life by improving movement and function and relieving pain.
Physical therapy can help with:
Important note: Some physical therapists may apply diathermy (local heat application produced by high-frequency electrical current) to relieve muscle aches and pains. This could be dangerous to patients who have deep brain stimulators.
Where Can I Receive Physical Therapy?
Many hospitals offer outpatient physical therapy services. However, you may need to get a doctor's order to be seen in physical therapy. If you feel you can benefit from physical therapy, do not hesitate to ask your doctor for a referral.
How Many Physical Therapy Visits Will I Need?
Treatments in physical therapy often can be completed in one to three office visits. The first appointment includes an evaluation and recommendations for exercises. The following appointments check your progress and review and expand your home program. Most hospitals can provide additional sessions of outpatient therapy if needed.
What Other Services Does Physical Therapy Provide?
Recommendations. A physical therapist can make recommendations for physical therapy at home, at an outpatient facility, or at a nursing or rehabilitation facility.
Work capacity evaluations. Many physical therapists can perform functional capacity evaluations to provide more information for disability claims based on physical performance. This functional capacity evaluation can be useful when the Social Security office denies disability to a person who is unable to work for an eight-hour day.
What Is Occupational Therapy?
Occupational therapy can help people with Parkinson's disease stay active in daily life. By improving your skills, showing you different ways to complete tasks, or introducing you to handy equipment, an occupational therapist can help you perform everyday activities with greater ease and satisfaction. An occupational therapist may also recommend making changes to your home or workplace to promote your independence.
How Can Occupational Therapy Help Parkinson's Disease?
For Parkinson's disease, occupational therapy generally provides assessment, treatment, and recommendations in the following areas:
Where Can I Receive Occupational Therapy?
Many hospitals offer outpatient occupational therapy services. However, you may need to get a doctor's order to be seen in occupational therapy. If you feel you can benefit from occupational therapy, do not hesitate to ask your doctor for a referral.
How Many Occupational Therapy Visits Will I Need?
Occupational therapy sessions vary for each person. The first appointment includes an evaluation and recommendations. The following appointments check your progress and review or expand your program.
| english |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.