text stringlengths 1 1.04M | language stringclasses 25 values |
|---|---|
<gh_stars>0
{
"name": "electron-pos-printer-parseint",
"version": "1.2.9",
"description": "Electron thermal 80mm printer",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"test": "mocha",
"start": "npm run build && npm run demo",
"demo": "electron ./demo/",
"pack": "webpack --config ./webpack.config.js",
"build": "tsc",
"test:all": "mocha -R mocha-jenkins-reporter --timeout 20000 \"./src/test/**/*test-*.js\"",
"test:one": "mocha --watch -u bdd \"./src/test/**/test-*.js\" --grep \"test-login-form\""
},
"repository": {
"type": "git",
"url": "git+https://github.com/parseint/electron-pos-printer.git"
},
"keywords": [
"electron",
"printer",
"thermal",
"pos"
],
"author": {
"name": "<NAME>",
"email": "<EMAIL>"
},
"license": "ISC",
"bugs": {
"url": "https://github.com/Hubertformin/electron-pos-printer/issues"
},
"homepage": "https://github.com/Hubertformin/electron-pos-printer#readme",
"dependencies": {},
"devDependencies": {
"@types/node": "^16.9.2",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"electron": "^14.0.1",
"mocha": "^6.2.3",
"spectron": "^9.0.0",
"typescript": "^3.9.6",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.12",
"webpack-node-externals": "^1.7.2"
}
}
| json |
which will be focussed on digital acceleration. The company said that it will deliver advanced technology solutions to its global client base to help accelerate their digital transformation journeys from the center. It also said that it plans to create 2,000 new jobs in Canada in the next three years, and engage Canada’s local talent to serve global clients.
“From our newest center, clients can experience a whole new world of technological innovation enabled by leading edge immersive technologies, HCL’s best in class Intellectual property solutions and a unique design thinking approach to some of the most complex problems of Canadian enterprises,” said Joelien Jose, EVP & Country Head – Canada, HCL Technologies.
The center will provide next-gen services including digital and analytics solutions, cloud consulting and migration, cybersecurity, IT infrastructure and application services.
, Ontario will be one of the largest for HCL in Canada with a capacity of 350 people and will house co-innovation labs for customers as well.
to our daily newsletter for the latest and must-read tech news, delivered straight to your inbox.
| english |
<filename>README.md<gh_stars>0
# Template Generator
This project is intended to unify boilerplate code between team members and make the setup process for starting a new component shorter and less tedious.
### Installation
```bash
python -m pip install TemplateCreator
```
### Usage
```bash
python -m TemplateCreator --template shared-component --folder-name my-example
```
or use the short syntax
```bash
python -m TemplateCreator -t shared-component -n my-example
```
Components with name constructed of multiple words should be separated by '-' this will result in camel cased class name (MyExampleComponent)
### Template options
--template shared-component
--template class_component
--template function_component
--template ts-function-component
--template ts-connected-component
--template state
--template ts-state
#### shared-component
creates 4 files:
* my-component.component.jsx
* my-component.styles.js
* my-component.readme.md
* my-component.test.jsx
#### class-component / function-component / ts-function-component / ts-connected-component
creates 2 files:
* my-component.component.jsx (.tsx)
* my-component.styles.scss (.tsx)
#### state
creates 3 files:
* my-state.reducer.js
* my-state.state.js
* my-state.actions.js
#### ts-state
creates 3 files:
* my-state.reducer.ts
* my-state.state.ts
* my-state.actions.ts
### Add A New Template
1. Add a new template file (follow jinja2 convention) to templates folder (for example: my-new-template.jsx)
2. In template_options.py add TemplateInfo(name='my-new-template', file_name=f'{folder_name}.custom.jsx').
The name attribute should be the same as the template file name (without the extension)
3. Update template_options.py get_batch_templates_dictionary method with a key (passed in as --template parameter)
and a value of list of TemplateInfo to create
### Deploy new version
1. Create the version file
```python
python setup.py sdist
```
2. Deploy the newly created version
```python
python -m twine upload dist/TemplateCreator-${new_version}.tar.gz
```
| markdown |
Serena Williams' husband and Reddit co-founder Alexis Ohanian, honored his late mother, Anke Ohanian, on Mother's Day.
Anke Ohanian was a pharmacy technician and volunteer who was born in the city of Hamburg in her native Germany. In 1974, Anke met Alexis Ohanian's father Chris J. Ohanian in Ireland and they eventually moved to the United States, where they tied the knot in 1980.
Anke's passion for helping others extended beyond her work as a pharmacist. She volunteered her time at Howard County public schools and animal welfare societies. Additionally, she worked at Howard County General Hospital as a pharmacist for over two decades.
In 2005, Anke was diagnosed with an incurable brain tumor. She passed away in March 2008 at the age of 54 in her home in Columbia, Maryland.
On Sunday, May 14, Alexis Ohanian took to social media to honor his late mother on Mother's Day. He shared a heartwarming photo of himself as a child with Anke, as well as a picture of the plaque from the chair he dedicated to the University of Virginia in her memory.
In his touching tribute, Ohanian expressed his hope that his mother would be proud of his venture capital firm, Seven Seven Six (776). He also shared that she would have adored being a grandmother twice.
"Love your mama every day! After I sold @Reddit, my mom passed, + I had enough to dedicate a chair at @UVA for her (Front of the class! Where she'd have sat if she'd gone to college). I think she'd be so excited for the @776Foundation + she'd have LOVED being a grandma (2x! )," Ohanian tweeted.
Serena Williams and her husband Alexis Ohanian are all set to welcome their second child. The 23-time Grand Slam champion and Ohanian announced the exciting news on the red carpet of the 2023 Met Gala.
Williams also shared some heartwarming photos on Instagram.
"Was so excited when Anna Wintour invited the 3 of us to the Met Gala," Serena Williams captioned her Instagram post.
Ohanian also made the exciting announcement on his social media. He went on to express that their first daughter, Olympia, would make an exceptional big sister, as she had been eagerly requesting a sibling for quite some time.
"Mama & Papa love this parenting-thing, so we're back at it 😁 and @olympiaohanian is gonna be the best Big Sister — she's been asking & praying for this for a minute," Alexis Ohanian wrote. | english |
<gh_stars>0
//! The main entrypoint for controlling audio from gameplay code.
mod backend;
pub(crate) mod command;
pub mod error;
mod renderer;
pub mod resources;
pub use backend::*;
pub use renderer::*;
use std::sync::Arc;
use ringbuf::RingBuffer;
use crate::{
audio_stream::{AudioStream, AudioStreamHandle, AudioStreamId, AudioStreamWrapper},
clock::{Clock, ClockHandle, ClockId},
error::CommandError,
parameter::{Parameter, ParameterHandle, ParameterId, Tween},
sound::{
wrapper::{SoundWrapper, SoundWrapperShared},
Sound, SoundHandle, SoundId,
},
track::{SubTrackId, Track, TrackHandle, TrackId, TrackSettings},
value::Value,
};
use self::{
command::{
producer::CommandProducer, AudioStreamCommand, ClockCommand, Command, MixerCommand,
ParameterCommand, SoundCommand,
},
error::{
AddAudioStreamError, AddClockError, AddParameterError, AddSoundError, AddSubTrackError,
},
renderer::context::Context,
resources::{create_resources, create_unused_resource_channels, ResourceControllers},
};
/// Settings for an [`AudioManager`].
pub struct AudioManagerSettings {
/// The number of commands that be sent to the renderer at a time.
///
/// Each action you take, like playing a sound or pausing a parameter,
/// queues up one command.
pub command_capacity: usize,
/// The maximum number of sounds that can be loaded at a time.
pub sound_capacity: usize,
/// The maximum number of instances of sounds that can be playing at a time.
pub instance_capacity: usize,
/// The maximum number of parameters that can exist at a time.
pub parameter_capacity: usize,
/// The maximum number of mixer sub-tracks that can exist at a time.
pub sub_track_capacity: usize,
/// The maximum number of clocks that can exist at a time.
pub clock_capacity: usize,
/// The maximum number of audio streams that can be loaded at a time.
pub audio_stream_capacity: usize,
}
impl Default for AudioManagerSettings {
fn default() -> Self {
Self {
sound_capacity: 128,
command_capacity: 128,
instance_capacity: 128,
parameter_capacity: 128,
sub_track_capacity: 128,
clock_capacity: 1,
audio_stream_capacity: 32,
}
}
}
/// Controls audio from gameplay code.
pub struct AudioManager<B: Backend> {
backend: B,
context: Arc<Context>,
command_producer: CommandProducer,
resource_controllers: ResourceControllers,
}
impl<B: Backend> AudioManager<B> {
/// Creates a new [`AudioManager`].
pub fn new(settings: AudioManagerSettings, mut backend: B) -> Result<Self, B::InitError> {
let sample_rate = backend.sample_rate();
let context = Arc::new(Context::new(sample_rate));
let (unused_resource_producers, unused_resource_collector) =
create_unused_resource_channels(&settings);
let (resources, resource_controllers) =
create_resources(&settings, unused_resource_producers, &context);
let (command_producer, command_consumer) =
RingBuffer::new(settings.command_capacity).split();
let renderer = Renderer::new(context.clone(), resources, command_consumer);
backend.init(renderer, unused_resource_collector)?;
Ok(Self {
backend,
context,
command_producer: CommandProducer::new(command_producer),
resource_controllers,
})
}
/// Returns a mutable reference to this manager's backend.
pub fn backend_mut(&mut self) -> &mut B {
&mut self.backend
}
/// Returns the current playback state of the [`Renderer`].
pub fn state(&self) -> RendererState {
self.context.state()
}
/// Sends a sound to the renderer and returns a handle to the sound.
pub fn add_sound(&mut self, sound: impl Sound + 'static) -> Result<SoundHandle, AddSoundError> {
let id = SoundId(
self.resource_controllers
.sound_controller
.try_reserve()
.map_err(|_| AddSoundError::SoundLimitReached)?,
);
let mut sound = Box::new(sound);
let shared = Arc::new(SoundWrapperShared::new());
let handle = SoundHandle {
id,
duration: sound.duration(),
default_loop_behavior: sound.default_loop_behavior(),
shared: shared.clone(),
instance_controller: self.resource_controllers.instance_controller.clone(),
command_producer: self.command_producer.clone(),
};
let sound_wrapper = SoundWrapper { sound, shared };
self.command_producer
.push(Command::Sound(SoundCommand::Add(id, sound_wrapper)))?;
Ok(handle)
}
/// Creates a parameter with the specified starting value.
pub fn add_parameter(&mut self, value: f64) -> Result<ParameterHandle, AddParameterError> {
let id = ParameterId(
self.resource_controllers
.parameter_controller
.try_reserve()
.map_err(|_| AddParameterError::ParameterLimitReached)?,
);
let parameter = Parameter::new(value);
let handle = ParameterHandle {
id,
shared: parameter.shared(),
command_producer: self.command_producer.clone(),
};
self.command_producer
.push(Command::Parameter(ParameterCommand::Add(id, parameter)))?;
Ok(handle)
}
/// Creates a mixer sub-track.
pub fn add_sub_track(
&mut self,
settings: TrackSettings,
) -> Result<TrackHandle, AddSubTrackError> {
let id = SubTrackId(
self.resource_controllers
.sub_track_controller
.try_reserve()
.map_err(|_| AddSubTrackError::SubTrackLimitReached)?,
);
let sub_track = Track::new(settings, &self.context);
let handle = TrackHandle {
id: TrackId::Sub(id),
shared: sub_track.shared(),
command_producer: self.command_producer.clone(),
};
self.command_producer
.push(Command::Mixer(MixerCommand::AddSubTrack(id, sub_track)))?;
Ok(handle)
}
/// Creates a clock.
pub fn add_clock(&mut self, interval: impl Into<Value>) -> Result<ClockHandle, AddClockError> {
let id = ClockId(
self.resource_controllers
.clock_controller
.try_reserve()
.map_err(|_| AddClockError::ClockLimitReached)?,
);
let clock = Clock::new(interval.into());
let handle = ClockHandle {
id,
shared: clock.shared(),
command_producer: self.command_producer.clone(),
};
self.command_producer
.push(Command::Clock(ClockCommand::Add(id, clock)))?;
Ok(handle)
}
/// Sends an audio stream to the renderer and returns a handle to the
/// audio stream.
pub fn add_audio_stream(
&mut self,
audio_stream: impl AudioStream + 'static,
track: impl Into<TrackId>,
) -> Result<AudioStreamHandle, AddAudioStreamError> {
let id = AudioStreamId(
self.resource_controllers
.audio_stream_controller
.try_reserve()
.map_err(|_| AddAudioStreamError::AudioStreamLimitReached)?,
);
let audio_stream =
AudioStreamWrapper::new(Box::new(audio_stream), track.into(), &self.context);
let handle = AudioStreamHandle {
id,
shared: audio_stream.shared(),
};
self.command_producer
.push(Command::AudioStream(AudioStreamCommand::Add(
id,
audio_stream,
)))?;
Ok(handle)
}
/// Fades out and pauses the [`Renderer`].
pub fn pause(&mut self, fade_out_tween: Tween) -> Result<(), CommandError> {
self.command_producer.push(Command::Pause(fade_out_tween))
}
/// Resumes the [`Renderer`] and fades in the audio.
pub fn resume(&mut self, fade_out_tween: Tween) -> Result<(), CommandError> {
self.command_producer.push(Command::Resume(fade_out_tween))
}
}
| rust |
{
"commentStamp" : "",
"super" : "MaObject",
"category" : "Magma server-File",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [
"file",
"filePos",
"byteArray"
],
"name" : "MaAtomicFileWriter",
"type" : "normal"
} | json |
<filename>region_city_data/Kuwait/Muḩāfaz̧at al Farwānīyah.json
{"region_data":{"adminCode1":"07","lng":"47.91667","geonameId":285816,"toponymName":"<NAME>","countryId":"285570","fcl":"A","population":640375,"countryCode":"KW","name":"<NAME>","fclName":"country, state, region,...","countryName":"Kuwait","fcodeName":"first-order administrative division","adminName1":"<NAME>","lat":"29.25","fcode":"ADM1"},"country_data":{"ISO":"KW","ISO3":"KWT","ISO_Numeric":"414","fips":"KU","country":"Kuwait","capital":"Kuwait City","area":"17820","Population":"2789132","Continent":"AS","tld":".kw","CurrencyCode":"KWD","CurrencyName":"Dinar","Phone":"965","Postal_Code_Format":"#####","Postal_Code_Regex":"^(\\d{5})$","Languages":"ar-KW,en","geonameid":"285570","neighbours":"SA,IQ","EquivalentFipsCode":""},"cities":[{"geonameid":"285603","name":"<NAME>","asciiname":"Janub as Surrah","alternatenames":["Janub as Surrah","Janūb as Surrah","South Surra","janub aalsurat","جَنُوب اَلسُّرَّة"],"latitude":"29.26917","longitude":"47.97806","feature_class":"P","feature_code":"PPL","country_code":"KW","cc2":"","admin1_code":"07","admin2_code":"","admin3_code":"","admin4_code":"","population":"18496","elevation":"","dem":"49","timezone":"Asia/Kuwait","modification_date":"2015-01-04"},{"geonameid":"285815","name":"<NAME>","asciiname":"<NAME>ah","alternatenames":["<NAME>","<NAME>","<NAME>","Al-Farawaniyah","Al-Farwaniyyah","Farwaniah","Farwaniyyeh","aalfarwaniat","اَلْفَرْوَانِيَّة"],"latitude":"29.2775","longitude":"47.95861","feature_class":"P","feature_code":"PPLA","country_code":"KW","cc2":"","admin1_code":"07","admin2_code":"","admin3_code":"","admin4_code":"","population":"86525","elevation":"","dem":"44","timezone":"Asia/Kuwait","modification_date":"2013-05-05"}]} | json |
<reponame>AntoineFSG/improper-markDown<gh_stars>0
import React, { useState } from "react"
import Img from 'gatsby-image'
import Modal from "../components/modal"
import galleryItemStyles from '../css/galleryItem.module.scss'
const GalleryItem=(props)=>{
const fluid = props.fluid;
const alt = props.alt;
const [show, setShow] = useState(false);
const showModal = () => {
setShow(!show);
};
const handleClick=(e)=>{
e.preventDefault();
showModal();
}
const handleKeyPress=(e)=>{
if (e.key === "Tab"){return}else{showModal();}
}
return (
<div tabindex="0" role="button" className={galleryItemStyles.imgContainer} onClick={handleClick} onKeyDown={handleKeyPress}>
<Img fluid={fluid} alt={alt}/>
<Modal show={show} handleClick={handleClick}>
<Img fluid={fluid} alt={alt}/>
</Modal>
</div>
)
}
export default GalleryItem; | javascript |
<gh_stars>0
{
"data": [
{
"id": 1,
"title": "Writing Native Code in Flutter",
"thumbnail": "https://miro.medium.com/max/700/1*10RECXGTH5NyaeBg5yD1pw.png",
"desc": "Flutter memungkinkan kita memanggil Native API untuk...",
"link": "https://medium.com/rplgdc-laboratory/writing-native-code-in-flutter-cfd6604125f3",
"published": "Nov 4, 2020"
},
{
"id": 2,
"title": "Create Landing Page Website with Flutter",
"thumbnail": "https://miro.medium.com/max/700/1*_u5SUE60Hb17Nb9-zbqDAQ.png",
"desc": "Flutter merupakan framework bahasa pemrograman dart ...",
"link": "https://medium.com/rplgdc-laboratory/create-a-landing-page-website-with-flutter-2f68bf2d6630",
"published": "Oct 4, 2020"
},
{
"id": 3,
"title": "Flutter: ListView Part 1",
"thumbnail": "https://miro.medium.com/max/700/1*NPaPZh80RX1AvMykALzR_w.png",
"desc": "Pada kesempatan kali ini saya akan membahas ListView...",
"link": "https://medium.com/rplgdc-laboratory/flutter-listview-part-1-36e3f0a8f4ce",
"published": "Oct 3, 2020"
},
{
"id": 4,
"title": "Flutter Face Detection App with Firebase ML Kit",
"thumbnail": "https://miro.medium.com/max/700/1*IOS86CPoIY-xxZvMKlPc8A.jpeg",
"desc": "ML Kit merupakan SDK yang menghadirkan Machine Learn...",
"link": "https://medium.com/@amalkhairin/flutter-face-detection-app-with-firebase-ml-kit-5acdd9087e1",
"published": "Dec 20, 2019"
},
{
"id": 5,
"title": "Flutter #1: Membuat aplikasi Hello World",
"thumbnail": "https://miro.medium.com/max/700/1*uviOipWoE9XDn5BZsEPs2Q.png",
"desc": "Pada tutorial pertama ini, kita akan mencoba membuat...",
"link": "https://medium.com/@amalkhairin/flutter-1-membuat-aplikasi-hello-world-a43c26309875",
"published": "Oct 17, 2019"
},
{
"id": 6,
"title": "Dart Fundamental",
"thumbnail": "https://miro.medium.com/max/700/1*mUG0qA5DqrFxCIRW6Vq02Q.png",
"desc": "Dartlang atau Dart Language merupakan bahasa pemrogr...",
"link": "https://medium.com/@amalkhairin/dart-fundamental-c360df33971c",
"published": "Oct 6, 2019"
},
{
"id": 7,
"title": "Flutter? Apa sih itu?",
"thumbnail": "https://miro.medium.com/max/700/1*DhN70kLtMHKe6g5pA6BSEg.png",
"desc": "Flutter merupakan UI Toolkit yang dibuat oleh Google...",
"link": "https://medium.com/rplgdc-laboratory/what-is-flutter-6c6498952c34",
"published": "Oct 3, 2019"
}
]
} | json |
New Delhi: The Supreme Court collegium on Wednesday recommended the elevation of Orissa High Court judge Justice Jaswant Singh as the Chief Justice of the Tripura High Court.
The collegium, which is headed by Chief Justice of India D.Y. Chandrachud and comprises Justices Sanjay Kishan Kaul and K.M. Joseph, at a meeting reconsidered its earlier decision dated September 28, 2022.
The collegium in September last year had recommended the elevation of Justice Singh, who is originally from the Punjab and Haryana High Court, as the Chief Justice of the Orissa High Court.
Born on February 23, 1961 in Rohtak, Justice Singh was elevated as a judge of the Punjab and Haryana High Court on December 5, 2007. He enrolled himself as an advocate in 1986 and started practising law at the district courts of Sirsa.
| english |
It has been reported that current SmackDown commentator Pat McAfee could possibly be competing in another wrestling match for WWE.
Since signing for the company in 2018, the NFL veteran has made sporadic in-ring appearances. He competed at WrestleMania 38, where he was victorious against Theory. With SummerSlam fast approaching, WWE is looking to stack the show's card, and Pat's mainstream popularity could bring many eyes to the product.
According to Dave Meltzer of Wrestling Observer Radio, WWE may be looking to book McAfee in a match against Happy Corbin following their confrontation last Friday on SmackDown.
"It felt watching it, I don’t know this, but it felt watching it like they’re going to do McAfee and Corbin at you know, like, maybe SummerSlam." (H/T Ringside News)
After his impressive display at WrestleMania earlier in the year, the WWE Universe has been clamoring to see McAfee step back into the ring.
Post his victory on the Grandest Stage of Them All, the SmackDown commentator's night got even more surreal as Mr. McMahon decided to face off against him in a match.
Speaking on The Pat McAfee Show, the 35-year-old explained how he felt he was in a movie when he saw Vince McMahon standing across the ring from him.
"I sat up there for a second and I looked around and I saw 76-year-old Vince McMahon taking his shirt off. I’m like, ‘is this a movie right now? Like, this has to be a simulation’." (H/T Sportskeeda)
Despite losing to Vince, McAfee would end up being saved from a Theory and McMahon beatdown, thanks to an assist by Stone Cold Steve Austin.
| english |
<gh_stars>0
---
layout: default
title: Podman
---
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-132755160-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-132755160-1');
</script>
<link rel="shortcut icon" type="image/x-icon" href="/images/favicon.ico">
<link rel="shortcut icon" type="image/x-icon" href="/images/favicon.ico">
</head>
<img src="images/podman.svg" alt="podman logo">
<h3>Welcome to the website for the Pod Manager tool (<a href="https://github.com/containers/libpod">podman</a>). This site features announcements and news around Podman, and occasionally other <a href="https://github.com/containers/">container tooling</a> news.</h3>
<h3>What is Podman? Podman is a daemonless container engine for developing, managing, and running OCI Containers on your Linux System. Containers can either be run as root or in rootless mode. Simply put: `alias docker=podman`. More details <a href="whatis.html">here</a>.
<h1>What's New!</h1>
<section class="posts">
{% for post in site.categories.new %}
<p><span>{{ post.date | date_to_string }}</span> » <a href="{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></p>
<p>{{ post.excerpt }}</p><hr>
{% endfor %}
</section>
<h4>Now where is that Container Commandos <a href=https://github.com/mairin/coloringbook-container-commandos/blob/master/Web.pdf>Coloring Book</a>?</h4>
| html |
One of Asia's largest airlines, Cathay Pacific, is facing a revolt from pilots who say Hong Kong's tough quarantine rules under its zero-Covid policies are endangering their mental health, leading to rising stress and resignations.
Cathay Pacific Airways Ltd last week fired three pilots who breached company rules by leaving their hotel rooms during a layover in Frankfurt and later tested positive for Covid-19.
The government responded by forcing more than 270 people, including school children linked to their families, into tiny quarters at a state quarantine camp.
Some pilots declared themselves unfit to fly for their first rostered duties upon release.
The extreme example of pandemic-related precautions under China's zero-Covid policy highlights the difficult working conditions facing Cathay pilots, all fully vaccinated, even as other Asian countries slowly reopen.
Cathay rivals including Australia's Qantas Airways Ltd have begun unwinding strict layover policies but the Hong Kong government is tightening rules further in line with the mainland, hoping to convince Beijing to allow cross-border travel.
"I don't think I can keep this up," one Cathay pilot who spoke on condition of anonymity told Reuters. "Just the stress of potential quarantine of my family and friends is taking a toll. "
Draft e-Commerce Rules 2021: Why aren't all ministries on the same page?
Several other current and recently departed Cathay pilots told Reuters morale was low and resignations were rising a year after many had their pay permanently cut by as much as 58%.
Extreme stress is a significant issue in an industry where any sign of psychological problems can make it difficult to get another job.
"What's the risk if I say to them I'm a bit stressed? " asked a pilot who has spent more than 200 nights locked in hotel rooms away from Hong Kong since the pandemic began. "Does that affect my medical? And then you leave here and they ask have you ever been stood down for psychological reasons? "
The pilots also expressed frustration with the ambiguity of some government-imposed pandemic-related rules. Pilots, for example, are required to avoid "unnecessary social contact" for three weeks after returning to Hong Kong, but they are not given time off to compensate.
Cathay acknowledged to Reuters in a statement that pilot resignations have risen beyond normal levels since the end of October.
"Regrettably, the incident in Frankfurt has affected current sentiment," the airline said.
Hong Kong classifies many destinations including the United States and Britain as "high-risk," meaning Cathay pilots flying passengers inbound from those places are subject to two weeks of hotel quarantine.
To staff those flights, Cathay started running "closed-loop" rosters on a voluntary basis in February involving five consecutive weeks locked in hotel rooms with no access to fresh air or a gym and then two weeks off at home.
"I did it to earn some money, since the 50% pay cut (last year) made life much more difficult," said a recently departed pilot who did two closed loops. "There are people currently in their 5th or 6th closed loop. "
Cathay said on Thursday some inbound flights during the peak demand season of December would be cancelled, indicating a lack of volunteers.
The airline said it recognised the strain on its pilots and had bi-weekly dial-in sessions to share concerns and programmes like a peer-based pilot assistance network as well as offering extended leaves of absence.
As conditions improve elsewhere in the world, other airlines including Emirates and U. S. cargo carrier Atlas Air Worldwide Holdings Inc are head-hunting Cathay pilots, said those who spoke with Reuters.
Emirates, which has launched a recruitment drive for 600 pilots, declined to comment. Atlas did not respond to a request for comment.
The pilots Reuters spoke to said they expected more resignations next year when transitional housing and schooling benefits expired.
Cathay said it would employ "several hundred" new pilots and restart its cadet programme in the coming year.
Hong Kong's strict rules led FedEx Corp to close its pilot base in the city last week, underscoring the dimming allure of the territory as a major logistics hub.
"I really, truly feel for people that are at Cathay," a FedEx pilot who recently left Hong Kong said. "I am genuinely concerned about their mental health and how they are. "
(Only the headline and picture of this report may have been reworked by the Business Standard staff; the rest of the content is auto-generated from a syndicated feed. ) | english |
<filename>data/styles/142325.json
{
"id": 142325,
"info": {
"name": "Clean Wikipedia. Minimalist White",
"description": "<strong>\r\n- contents list floating on the side\r\n- limited width for readability\r\n- no clutter\r\n- big serif font</strong><br/><br/>\r\nBLACK/DARK VERSION HERE: <a href=https://userstyles.org/styles/137180/clean-wikipedia-minimalist-black-dark\">Clean Wikipedia - Minimalist Black / Dark</a>",
"additionalInfo": "/*****************************************\r\nREMOVED DUE TO STYLISH PRIVACY INVASION \r\nmore info here: https://www.theregister.co.uk/2018/07/05/browsers_pull_stylish_but_invasive_browser_extension/\r\n\r\nMy styles will probably soon be available here: https://openusercss.org/profile/5b3e81947d90940b00ad06a4\r\n*****************************************/",
"format": "uso",
"category": "global",
"createdAt": "2017-05-08T13:48:04.000Z",
"updatedAt": "2018-07-05T20:40:53.000Z",
"license": "NO-REDISTRIBUTION",
"author": {
"id": 337672,
"name": "anotheryou"
}
},
"stats": {
"installs": {
"total": 407,
"weekly": 0
}
},
"screenshots": {
"main": {
"name": "142325_after.gif",
"archived": true
}
},
"discussions": {
"stats": {
"discussionsCount": 0,
"commentsCount": 0
},
"data": []
},
"style": {
"css": "/*****************************************\r\nREMOVED DUE TO STYLISH PRIVACY INVASION \r\nmore info here: https://www.theregister.co.uk/2018/07/05/browsers_pull_stylish_but_invasive_browser_extension/\r\n\r\nMy styles will probably soon be available here: https://openusercss.org/profile/5b3e81947d90940b00ad06a4\r\n*****************************************/"
}
} | json |
symphylan, (class Symphyla), any of a group of insects that are often included with the centipedes (Chilopoda) and millipedes (Diplopoda) in the superclass Myriapoda of the subphylum Labiata. The approximately 120 species resemble small centipedes with the largest being less than 10 mm (0.4 inch) long. The antennae are long and many-jointed. The soft, white body is divided into 14 segments, 12 of which bear pairs of hooklike legs. All of the legs on one side move simultaneously, alternating with those on the opposite side, thus producing a twisting, turning motion.
Symphylans occur worldwide but chiefly in the tropics. Most live in and eat decaying plant matter, although some feed on dead insects and the tender parts of living plants. The so-called garden centipede (Scutigerella immaculata) of North America, Europe, and Hawaii damages beets, celery, lettuce, and other crops. Scolopendrella is common in North America.
| english |
<reponame>Kay01010101/PredictVersion
#include "streams/DS_MemoryStream.h"
#include "streams/DS_FileStream.h"
#include <algorithm>
using std::min;
using namespace DataStructures;
//------------------------------------------------------------------- MemoryStream ------------------------------------------------------------------------
MemoryStream::MemoryStream(const char *filePath)
: Stream(), m_currentPosition(0), m_length(0), m_usedLength(0), m_imported(false)
{
strcpy(mFileName, filePath);
FileStream *stream = new FileStream(filePath, "rb");
if (!stream->CanSeek())
{
delete stream;
m_length = MEMORYSTREAM_STACK_ALLOCATION_SIZE;
m_data = (char *)malloc(MEMORYSTREAM_STACK_ALLOCATION_SIZE);
}
else
{
m_length = (__u32)stream->Length();
m_data = (char *)malloc(m_length);
stream->Rewind();
stream->Read(m_data, m_length);
m_usedLength = m_length;
delete stream;
}
}
size_t MemoryStream::Grow(int growth)
{
if (!growth)
return (__u32)m_length;
m_length = m_length + growth;
if (m_length<0)
{
Reset();
return 0;
}
m_data = (char *)realloc(m_data, m_length);
if (m_usedLength > m_length)
m_usedLength = m_length;
if (m_currentPosition >= (__u32)m_usedLength)
m_currentPosition = (__u32)m_usedLength;
return GetAllocatedSize();
}
void MemoryStream::Reset()
{
m_currentPosition = 0;
m_usedLength = 0;
}
__s64 MemoryStream::Seek(__s64 position, int option)
{
__s32 actPosition;
switch (option)
{
case SEEK_SET:
if (position < 0)
return false;
if (position >= m_usedLength)
return false;
m_currentPosition = (__u32)position;
break;
case SEEK_CUR:
actPosition = (__s32)(m_currentPosition + position);
if (actPosition < 0)
break;
if (actPosition >= m_usedLength)
break;
m_currentPosition = actPosition;
break;
case SEEK_END:
actPosition = (__s32)(m_usedLength - position);
if (actPosition < 0)
break;
if (actPosition >= m_usedLength)
break;
m_currentPosition = actPosition;
break;
}
return m_currentPosition;
}
size_t MemoryStream::Write(const void *buffer, size_t size)
{
__s32 sizeGap = (__s32)(m_currentPosition + size - m_length);
if (sizeGap>0)
Grow(sizeGap + MEMORYSTREAM_STACK_ALLOCATION_SIZE);
memmove(m_data + m_currentPosition, buffer, size);
m_currentPosition += size;
if (m_currentPosition > (__u32)m_usedLength)
m_usedLength = m_currentPosition;
return size;
}
size_t MemoryStream::Read(void *dst, size_t size)
{
if (Eof() || !size)
return 0;
__u32 actSize = static_cast<__u32>(min((size_t)(m_usedLength - m_currentPosition), size));
memcpy(dst, m_data + m_currentPosition, actSize);
m_currentPosition += actSize;
return actSize;
}
bool MemoryStream::SetLength(__s64 size)
{
if (!CanSeek())
return false;
if (size > m_length)
{
m_data = (char *)realloc(m_data, m_length);
m_length = (__u32)size;
}
m_usedLength = (__u32)size;
if (m_currentPosition >= (__u32)m_usedLength)
m_currentPosition = (__u32)m_usedLength;
return true;
}
__u32 MemoryStream::GetMemoryCost()
{
__u32 cost = Stream::GetMemoryCost();
cost += sizeof(m_data);
cost += sizeof(__u32) * 3;
cost += sizeof(bool);
cost += m_length;
return cost;
}
| cpp |
You can't really blame Sohail Khan for trying here. His I - Proud To Be An Indian had a theme not really tackled in Indian cinema - racism in U.K. But how many of us know that the film was really inspired from American History X starring Edward Norton?
Sohail Khan despite giving a fine performance could not really pull of an original film. A young producer, a young actor and a debutant director did not have what it takes to Indianize this complex cult film. Since there was an 'X' in the title of the original Strangely Khan must have felt that an 'I' would work for his film. Even more strangely (no funnily) the 'I' was his name in the film.
Khan also seems to like Norton a lot! He also made Norton's Fight Club in Hindi with the same title.
It is common knowledge that Mallika Sherawat has no inhibitions in displaying her anatomy. So when she teamed up with director Govind Menon for the umpteenth time in Kis Kiski Kismat, she decided to spur up another controversy. If you see the picture above, you should notice a bit of her undergarments. The pose tried to imitate the beautiful Marilyn Monroe but somehow the Indian sensibilities could not digest it.
Result: Furor took place over the raunchy pictures and the producers were subsequently asked to take of the pictures from the promotions. Now now, Mallika! With the amount of Monroe look-alikes already, you really didn't think this would take you places. Incidentally Kis Kiski Kismat also had a song 'Diamonds are a girl's best friend' which was song from Monroe's film 'Gentlemen prefer Blondes'.
Talk about high-class creativity!!!
| english |
“Our aim will be to resolve 5-6 lakh of the pending cases this year. An initiative has been taken to increase the manpower of trial courts to this end,” he said while talking to reporters after inaugurating a basic training workshop for assistant judges at the Judicial Administration Training Institute (JATI) in the capital.
Describing the alternative dispute resolution (ADR) system as Prime Minister Sheikh Hasina’s epoch-making initiative, he laid emphasis on widely using the system and urged judges to apply it in criminal cases that are eligible for mediation.
Anisul also called upon judges to work sincerely so that people get justice quickly and easily.
JATI Director General Justice Khondker Musa Khaled, and Law, Justice and Parliamentary Affairs Secretary Md Golam Sarwar were also present on the occasion.
| english |
Now that Intel's latest processors have launched, we put the 14600K vs 13600K to the test find which is the best processor for your needs and budget.
Now that Intel's latest processors have launched, we put the 14700K vs 13700K to the test to find which is the best processor for your needs and budget.
Now that Intel's latest processors have launched, we put the 14900K vs 7950X to the test find which is the best flagship processor for your needs.
Intel’s Raptor Lake Refresh processor has already set a new world record, and we can expect more where that came from.
Now that Intel's latest flagship has launched, we put the 14900K vs 13900K to find which is the best premium processor for your needs and budget.
Buying Guide We've carefully selected the best CPUs to get your PC running fast and efficiently.
The Intel Core i9-14900K is the best processor around, but only just barely, giving few a real reason to upgrade.
The Intel Core i7-14700K is easily the best CPU in Intel's 14th generation launch lineup, but it's only marginally better than its phenomenal predecessor.
The Intel Core i5-14600K is technically the best value of any chip I tested, but it's a real stretch to think it'll stay that way for long, so you're better off waiting for Meteor Lake in 2024.
Get the hottest deals available in your inbox plus news, reviews, opinion, analysis, deals and more from the TechRadar team.
| english |
{"bug_id": "81", "target": ["org/apache/commons/math/linear/EigenDecompositionImpl.java:905", "org/apache/commons/math/linear/EigenDecompositionImpl.java:1541"], "tool": "ARJA", "correctness": "Incorrect", "project": "Math", "ID": "352_PFL_ARJA_Patch_31_27"} | json |
package com.winsun.fruitmix.file.view;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import com.winsun.fruitmix.BaseActivity;
import com.winsun.fruitmix.R;
import com.winsun.fruitmix.databinding.ActivityFileDownloadBinding;
import com.winsun.fruitmix.eventbus.TaskStateChangedEvent;
import com.winsun.fruitmix.eventbus.OperationEvent;
import com.winsun.fruitmix.file.view.fragment.FileDownloadFragment;
import com.winsun.fruitmix.interfaces.BaseView;
import com.winsun.fruitmix.util.Util;
import com.winsun.fruitmix.viewmodel.ToolbarViewModel;
import org.greenrobot.eventbus.EventBus;
import org.greenrobot.eventbus.Subscribe;
import org.greenrobot.eventbus.ThreadMode;
public class FileDownloadActivity extends BaseActivity implements BaseView {
private FileDownloadFragment fileDownloadFragment;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ActivityFileDownloadBinding binding = DataBindingUtil.setContentView(this, R.layout.activity_file_download);
initToolbar(binding);
fileDownloadFragment = new FileDownloadFragment(this, null, null);
binding.mainFramelayout.addView(fileDownloadFragment.getView());
}
private void initToolbar(ActivityFileDownloadBinding binding) {
ToolbarViewModel toolbarViewModel = new ToolbarViewModel();
toolbarViewModel.titleText.set(getString(R.string.transmission_manage));
toolbarViewModel.showMenu.set(true);
toolbarViewModel.setBaseView(this);
toolbarViewModel.setToolbarMenuBtnOnClickListener(new ToolbarViewModel.ToolbarMenuBtnOnClickListener() {
@Override
public void onClick() {
fileDownloadFragment.getBottomSheetDialog(fileDownloadFragment.getMainMenuItem()).show();
}
});
binding.setToolbarViewModel(toolbarViewModel);
}
@Subscribe(threadMode = ThreadMode.MAIN)
public void handleOperationEvent(OperationEvent operationEvent) {
String action = operationEvent.getAction();
if (action.equals(Util.DOWNLOADED_FILE_DELETED) || action.equals(Util.DOWNLOADED_FILE_RETRIEVED)) {
fileDownloadFragment.handleOperationEvent(operationEvent);
}
}
@Subscribe(threadMode = ThreadMode.MAIN, sticky = true)
public void handleEvent(TaskStateChangedEvent taskStateChangedEvent) {
EventBus.getDefault().removeStickyEvent(taskStateChangedEvent);
if (fileDownloadFragment != null)
fileDownloadFragment.handleEvent(taskStateChangedEvent);
}
@Override
public void onBackPressed() {
if (fileDownloadFragment.handleBackPressedOrNot()) {
fileDownloadFragment.onBackPressed();
} else {
super.onBackPressed();
}
}
}
| java |
The Pfister Comet SR is one of the most popular sports cars featured in GTA Online.
Despite not being as fast as the Itali RSX or as dashing as the Pariah, the vehicle makes a great case for itself in GTA Online. It can be purchased from Legendary Motorsport in GTA Online for a price of $1,145,000.
Forget everything you think you know about the Pfister Comet. Forget cruising through Vinewood with a bellyful of whiskey dropping one-liners about the size of your bonus. Forget picking up workers and passing them off as your fiancé at family gatherings. The SR was made for only one thing: to make every other sports car look like it's the asthmatic kid in gym. Now get in line.
LEGENDARY MOTORSPORT DESCRIPTION.
Released on 27 February 2018, the Pfister Comet SR is one of the most popular sports cars featured in GTA Online. It was added to the game as part of the Doomsday Heist and has been famous ever since.
Inspired by the Porsche 997 GT2 RS, the Pfister Comet SR is a sight to behold and tends to turn heads wherever it goes.
The Comet SR is exceptionally fast and makes for one heck of a vehicle. Recorded at a top speed of 122.00 mph (196.34 km/h), it is unarguably one of the fastest cars in GTA Online and rules the fast-track.
Moreover, the vehicle is extremely nimble and handles like a personal robot. This also makes the Comet SR incredibly compatible for beginners who are still learning the ropes of driving in GTA Online.
On average, the vehicle drives pretty much like the standard Comet but the added modifications, including the engine power and the stable tires give it an edge over the related variant.
The Pfister Comet SR comes equipped with a single-cam car-buretted V8 and is simply one of the best four-wheel drives featured in GTA Online.
For The Biggest GTA 6 Map Leaks, Click Here.
| english |
Jesus’ comforting words came to the disciples in the midst of a terrible storm. Just before this (v. 48) the Lord tells us that “they were making headway painfully, for the wind was against them.” Earlier that day, Jesus fed 20,000 people with a little boy’s lunch. It was a mountaintop experience! The disciples wanted to stay with Jesus, but He sent them away… out into a boat… in the dark of night with a storm approaching!
Have you ever wondered why He did that? Why does Jesus let us face such painful, difficult circumstances? “Does He really love us?” The disciples previously asked, "Teacher, do you not care that we are perishing?"
Jesus saved the disciples that night. And He is always faithful to us, too. But why does He allow us to suffer. And why can He seem so far away when we are crying out to Him? What could His purpose be? Why all the darkness and the tortuous pain? Does it mean that we are out of God’s will?
When revisiting the story of the loaves and fish, it’s not obvious that the disciple’s hearts were hardened. But God is the only one who really knows our hearts!
He knows we cannot learn ALL of the lessons we need to learn when times are good. He knows exactly what we need! He works all things together for our good (Romans 8:28), even in experiences we would never choose for ourselves.
Pray this prayer to the Lord who knows and meets our needs:
Thank You, Lord! Thank You for the hard things. Thank You for loving us so much that You, too, suffered for our good. Please help us to respond to every circumstance of life the way You want us to. Make us more like You. We love You. Amen.
Keep on Praying!
| english |
<filename>profiles/lyahovska_irina_ievgeniyivna.json<gh_stars>1-10
{"2010":"","2016":"","AdditionalNote":"","Department":"Апеляційний суд Дніпропетровської області (суд припинив роботу)","Link":"http://dpa.court.gov.ua/sud0490/lkdfgjdljfghidgr/declar2014/declar2014_zubakova/","Link 2015":"","Name":"<NAME>","Note":"","Position":"Суддя Апеляційного суду Дніпропетровської області м. Кривий Ріг (суд припинив роботу)","Region":"Дніпропетровська область","Youtube":"","analytics":[{"b":6650,"c":1,"fc":1,"ff":121,"ffa":2,"fi":138692,"h":59,"ha":1,"i":252473,"k":89,"ka":1,"l":602,"la":1,"y":2013},{"b":20499,"c":1,"fc":1,"ff":180.33,"ffa":3,"fi":112295,"h":59,"ha":1,"i":243376,"k":118.7,"ka":2,"l":602,"la":1,"y":2014},{"b":1135,"c":1,"fc":1,"ff":91.47,"ffa":2,"fi":95364,"h":59,"ha":1,"i":250201,"j":4,"k":29.63,"ka":1,"l":602,"la":1,"y":2015}],"declarationsLinks":[{"id":"vulyk_71_138","provider":"declarations.com.ua.opendata","url":"http://static.declarations.com.ua/declarations/chosen_ones/judges_batch/464_liakhovska_iryna_ievheniivna.pdf","year":2013},{"id":"vulyk_41_183","provider":"declarations.com.ua.opendata","url":"http://static.declarations.com.ua/declarations/chosen_ones/mega_batch/liakhovska_iryna_ievheniivna.pdf","year":2014},{"id":"vulyk_108_112","provider":"declarations.com.ua.opendata","url":"http://static.declarations.com.ua/declarations/chosen_ones/judges_batch/2411_liakhovska_iryna_ievheniivna_2015.pdf","year":2015}],"field8":"","field9":"","key":"lyahovska_irina_ievgeniyivna","type":"judge","Декларація доброчесності судді подано у 2016 році (вперше)":"","Декларація родинних зв’язків судді подано у 2016 році":"","Декларації 2013":"","Декларації 2014":"","Декларації 2015":"","Декларації 2016":"","Клейма":"3","Кількість дисциплінарних стягнень":"","Кількість скарг":"4","Кількість справ":"","Оскаржені":"","ПІБ2":"","Фото":"","Як живе":"","декларації 2015":"","судові рішення по справах Майдану":""} | json |
<reponame>soasme/rio
# -*- coding: utf-8 -*-
"""
rio.blueprints.event.controllers
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"""
import json
import logging
from uuid import uuid4
from rio.core import cache
from rio.core import graph
from rio.models import get_data_by_slug_or_404
from rio.tasks import exec_event
logger = logging.getLogger('rio.event')
class MissingSender(Exception):
pass
class WrongSenderSecret(Exception):
pass
class NotAllowed(Exception):
pass
def emit_event(project_slug, action_slug, payload, sender_name, sender_secret,
event_uuid=None):
"""Emit Event.
:param project_slug: the slug of the project
:param action_slug: the slug of the action
:param payload: the payload that emit with action
:param sender_name: name that identified the sender
:parma sender_secret: secret string
:return: dict with task_id and event_uuid
raise MissingSender if sender does not exist
raise WrongSenderSecret if sender_secret is wrong
raise NotAllowed if sender is not allowed to emit action to project
"""
project_graph = graph.get_project_graph(project_slug)
project_graph.verify_sender(sender_name, sender_secret)
action = project_graph.get_action(action_slug)
project = project_graph.project
# execute event
event_uuid = event_uuid or uuid4()
event = {'uuid': event_uuid, 'project': project['slug'], 'action': action['slug']}
res = exec_event(event, action['webhooks'], payload)
logger.info('EMIT %s "%s" "%s" %s',
event_uuid, project_slug, action_slug, json.dumps(payload))
return dict(
task=dict(
id=res.id,
),
event=dict(
uuid=event_uuid,
),
)
| python |
<reponame>masx200/ant-colony-algorithm-function-test<gh_stars>1-10
import { convergence_coefficient_max } from "./convergence_coefficient_max";
import { max_number_of_stagnation } from "./max_number_of_stagnation";
const convergence_coefficient_grow_speed = 1.1;
const convergence_coefficient_min = 1;
export function update_convergence_coefficient({
number_of_stagnation,
coefficient_of_diversity_increase,
convergence_coefficient,
iterate_best_length,
greedy_length,
}: {
number_of_stagnation: number;
coefficient_of_diversity_increase: number;
convergence_coefficient: number;
iterate_best_length: number;
greedy_length: number;
}): number {
if (coefficient_of_diversity_increase > 0) {
convergence_coefficient = Math.max(
convergence_coefficient_min,
convergence_coefficient *
Math.pow(1 - coefficient_of_diversity_increase, 1)
);
return convergence_coefficient;
}
if (number_of_stagnation >= max_number_of_stagnation) {
return Math.max(
convergence_coefficient_min,
convergence_coefficient /
Math.pow(
convergence_coefficient_grow_speed,
max_number_of_stagnation / 4
)
);
}
if (iterate_best_length > greedy_length) {
convergence_coefficient *= convergence_coefficient_grow_speed ** 5;
return Math.min(convergence_coefficient_max, convergence_coefficient);
} else {
convergence_coefficient *= convergence_coefficient_grow_speed;
return Math.min(convergence_coefficient_max, convergence_coefficient);
}
// return convergence_coefficient;
}
| typescript |
<reponame>e2tha-e/fepper-drupal
{
"body_class": "path-node page-node-type-article",
"article_title": "<span property=\"schema:name\">How to build a campfire</span>",
"img": {
"landscape_16x9": {
"src": "../../_assets/src/thumb-square-fire.jpg",
"alt": "Fire"
}
}
}
| json |
JS.ENV.Test = JS.ENV.Test || {}
Test.FakeClockSpec = JS.Test.describe(JS.Test.FakeClock, function() { with(this) {
include(JS.Test.FakeClock)
before(function() { this.clock.stub() })
after(function() { this.clock.reset() })
describe("setTimeout", function() { with(this) {
before(function() { with(this) {
this.calls = 0
this.timer = setTimeout(function() { calls += 1 }, 1000)
}})
it("runs the timeout after clock has ticked enough", function() { with(this) {
clock.tick(1000)
assertEqual( 1, calls )
}})
it("runs the timeout after time has accumulated", function() { with(this) {
clock.tick(500)
assertEqual( 0, calls )
clock.tick(500)
assertEqual( 1, calls )
}})
it("only runs the timeout once", function() { with(this) {
clock.tick(1500)
assertEqual( 1, calls )
clock.tick(1500)
assertEqual( 1, calls )
}})
it("does not run the callback if it is cleared", function() { with(this) {
clearTimeout(timer)
clock.tick(1000)
assertEqual( 0, calls )
}})
}})
describe("setInterval", function() { with(this) {
before(function() { with(this) {
this.calls = 0
this.timer = setInterval(function() { calls += 1 }, 1000)
}})
it("runs the timeout after clock has ticked enough", function() { with(this) {
clock.tick(1000)
assertEqual( 1, calls )
}})
it("runs the timeout after time has accumulated", function() { with(this) {
clock.tick(500)
assertEqual( 0, calls )
clock.tick(500)
assertEqual( 1, calls )
}})
it("runs the timeout repeatedly", function() { with(this) {
clock.tick(1500)
assertEqual( 1, calls )
clock.tick(1500)
assertEqual( 3, calls )
}})
it("does not run the callback if it is cleared", function() { with(this) {
clearInterval(timer)
clock.tick(1000)
assertEqual( 0, calls )
}})
}})
describe("with interleaved calls", function() { with(this) {
before(function() { with(this) {
this.calls = []
setTimeout(function() {
setTimeout(function() { calls.push("third") }, 100)
calls.push("first")
}, 50)
setTimeout(function() { calls.push("second") }, 50)
setInterval(function() { calls.push("ping") }, 40)
}})
it("schedules chains of functions correctly", function() { with(this) {
clock.tick(150)
assertEqual( ["ping", "first", "second", "ping", "ping", "third"], calls )
}})
}})
describe("cancelling and resetting a timeout", function() { with(this) {
before(function() { with(this) {
this.calls = []
this.timer = setTimeout(function() { calls.push("done") }, 1000)
}})
it("prolongs the delay before the timeout", function() { with(this) {
clock.tick(500)
clearTimeout(timer)
setTimeout(function() { calls.push("done") }, 1000)
clock.tick(500)
assertEqual( [], calls )
clock.tick(500)
assertEqual( ["done"], calls )
}})
}})
describe(Date, function() { with(this) {
before(function() { with(this) {
this.a = this.b = null
setTimeout(function() { b = new Date().getTime() }, 100)
a = new Date().getTime()
}})
it("mirrors the fake time", function() { with(this) {
clock.tick(200)
assertEqual( 100, b - a )
}})
}})
}})
| javascript |
{
"_links": {
"self": "https://api2.frontapp.com/events/evt_28du6my"
},
"id": "evt_28du6my",
"type": "assign",
"emitted_at": 1518307894.354,
"conversation": {
"_links": {
"self": "https://api2.frontapp.com/conversations/cnv_keo696",
"related": {
"events": "https://api2.frontapp.com/conversations/cnv_keo696/events",
"followers": "https://api2.frontapp.com/conversations/cnv_keo696/followers",
"messages": "https://api2.frontapp.com/conversations/cnv_keo696/messages",
"comments": "https://api2.frontapp.com/conversations/cnv_keo696/comments",
"inboxes": "https://api2.frontapp.com/conversations/cnv_keo696/inboxes"
}
},
"id": "cnv_keo696",
"subject": "",
"status": "invisible",
"assignee": {
"_links": {
"self": "https://api2.frontapp.com/teammates/tea_40yq",
"related": {
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
}
},
"id": "tea_40yq",
"email": "<EMAIL>",
"username": "leela",
"first_name": "Leela",
"last_name": "Turanga",
"is_admin": true,
"is_available": true
},
"recipient": {
"_links": {
"related": {
"contact": "https://api2.frontapp.com/contacts/crd_62euuy"
}
},
"handle": "<EMAIL>",
"role": "to"
},
"tags": [],
"last_message": {},
"created_at": 1518307874.673
},
"source": {
"_meta": {
"type": "teammate"
},
"data": {
"_links": {
"self": "https://api2.frontapp.com/teammates/tea_40yq",
"related": {
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
}
},
"id": "tea_40yq",
"email": "<EMAIL>",
"username": "leela",
"first_name": "Leela",
"last_name": "Turanga",
"is_admin": true,
"is_available": true
}
},
"target": {
"_meta": {
"type": "teammate"
},
"data": {
"_links": {
"self": "https://api2.frontapp.com/teammates/tea_40yq",
"related": {
"inboxes": "https://api2.frontapp.com/teammates/tea_40yq/inboxes",
"conversations": "https://api2.frontapp.com/teammates/tea_40yq/conversations"
}
},
"id": "tea_40yq",
"email": "<EMAIL>",
"username": "leela",
"first_name": "Leela",
"last_name": "Turanga",
"is_admin": true,
"is_available": true
}
}
}
| json |
<strong>Project</strong>: fabric-sdk-go<br><strong>Branch</strong>: master<br><strong>ID</strong>: 23873<br><strong>Subject</strong>: [FAB-10944] Use Invoker for int test retries<br><strong>Status</strong>: MERGED<br><strong>Owner</strong>: <NAME> - <EMAIL><br><strong>Assignee</strong>:<br><strong>Created</strong>: 6/29/2018, 10:48:52 AM<br><strong>LastUpdated</strong>: 6/29/2018, 1:30:47 PM<br><strong>CommitMessage</strong>:<br><pre>[FAB-10944] Use Invoker for int test retries
This change removes explicit Sleeps from the
integration tests.
Retry polling is replaced with the Invoker.
Change-Id: I0283fc4c5525ebd1e7d5c38bbbbe5a8ff6a5c1e7
Signed-off-by: <NAME> <<EMAIL>>
</pre><h1>Comments</h1><strong>Reviewer</strong>: <NAME> - <EMAIL><br><strong>Reviewed</strong>: 6/29/2018, 10:48:52 AM<br><strong>Message</strong>: <pre>Uploaded patch set 1.</pre><strong>Reviewer</strong>: Hyperledger Jobbuilder - <EMAIL><br><strong>Reviewed</strong>: 6/29/2018, 10:49:02 AM<br><strong>Message</strong>: <pre>Patch Set 1:
Build Started https://jenkins.hyperledger.org/job/fabric-sdk-go-tests-verify-s390x/3082/ (1/2)</pre><strong>Reviewer</strong>: Hyperledger Jobbuilder - <EMAIL><br><strong>Reviewed</strong>: 6/29/2018, 10:52:26 AM<br><strong>Message</strong>: <pre>Patch Set 1:
Build Started https://jenkins.hyperledger.org/job/fabric-sdk-go-tests-verify-x86_64/3108/ (2/2)</pre><strong>Reviewer</strong>: <NAME> - <EMAIL><br><strong>Reviewed</strong>: 6/29/2018, 10:56:34 AM<br><strong>Message</strong>: <pre>Uploaded patch set 2.</pre><strong>Reviewer</strong>: Hyperledger Jobbuilder - <EMAIL><br><strong>Reviewed</strong>: 6/29/2018, 10:56:41 AM<br><strong>Message</strong>: <pre>Patch Set 2:
Build Started https://jenkins.hyperledger.org/job/fabric-sdk-go-tests-verify-s390x/3083/ (1/2)</pre><strong>Reviewer</strong>: Hyperledger Jobbuilder - <EMAIL><br><strong>Reviewed</strong>: 6/29/2018, 10:56:57 AM<br><strong>Message</strong>: <pre>Patch Set 1: Verified-1
Build Failed
https://jenkins.hyperledger.org/job/fabric-sdk-go-tests-verify-x86_64/3108/ : ABORTED
No problems were identified. If you know why this problem occurred, please add a suitable Cause for it. ( https://jenkins.hyperledger.org/job/fabric-sdk-go-tests-verify-x86_64/3108/ )
Logs: https://logs.hyperledger.org/production/vex-yul-hyp-jenkins-3/fabric-sdk-go-tests-verify-x86_64/3108
https://jenkins.hyperledger.org/job/fabric-sdk-go-tests-verify-s390x/3082/ : ABORTED
No problems were identified. If you know why this problem occurred, please add a suitable Cause for it. ( https://jenkins.hyperledger.org/job/fabric-sdk-go-tests-verify-s390x/3082/ )
Logs: https://logs.hyperledger.org/production/vex-yul-hyp-jenkins-3/fabric-sdk-go-tests-verify-s390x/3082</pre><strong>Reviewer</strong>: Hyperledger Jobbuilder - <EMAIL><br><strong>Reviewed</strong>: 6/29/2018, 10:59:15 AM<br><strong>Message</strong>: <pre>Patch Set 2:
Build Started https://jenkins.hyperledger.org/job/fabric-sdk-go-tests-verify-x86_64/3109/ (2/2)</pre><strong>Reviewer</strong>: Hyperledger Jobbuilder - <EMAIL><br><strong>Reviewed</strong>: 6/29/2018, 11:39:47 AM<br><strong>Message</strong>: <pre>Patch Set 2: Verified+1
Build Successful
https://jenkins.hyperledger.org/job/fabric-sdk-go-tests-verify-x86_64/3109/ : SUCCESS
Logs: https://logs.hyperledger.org/production/vex-yul-hyp-jenkins-3/fabric-sdk-go-tests-verify-x86_64/3109
https://jenkins.hyperledger.org/job/fabric-sdk-go-tests-verify-s390x/3083/ : SUCCESS
Logs: https://logs.hyperledger.org/production/vex-yul-hyp-jenkins-3/fabric-sdk-go-tests-verify-s390x/3083</pre><strong>Reviewer</strong>: <NAME> - <EMAIL><br><strong>Reviewed</strong>: 6/29/2018, 11:48:48 AM<br><strong>Message</strong>: <pre>Uploaded patch set 3.</pre><strong>Reviewer</strong>: Hyperledger Jobbuilder - <EMAIL><br><strong>Reviewed</strong>: 6/29/2018, 11:48:54 AM<br><strong>Message</strong>: <pre>Patch Set 3:
Build Started https://jenkins.hyperledger.org/job/fabric-sdk-go-tests-verify-s390x/3085/ (1/2)</pre><strong>Reviewer</strong>: Hyperledger Jobbuilder - <EMAIL><br><strong>Reviewed</strong>: 6/29/2018, 11:51:49 AM<br><strong>Message</strong>: <pre>Patch Set 3:
Build Started https://jenkins.hyperledger.org/job/fabric-sdk-go-tests-verify-x86_64/3111/ (2/2)</pre><strong>Reviewer</strong>: <NAME> - <EMAIL><br><strong>Reviewed</strong>: 6/29/2018, 11:52:43 AM<br><strong>Message</strong>: <pre>Uploaded patch set 4.</pre><strong>Reviewer</strong>: Hyperledger Jobbuilder - <EMAIL><br><strong>Reviewed</strong>: 6/29/2018, 11:52:54 AM<br><strong>Message</strong>: <pre>Patch Set 4:
Build Started https://jenkins.hyperledger.org/job/fabric-sdk-go-tests-verify-s390x/3086/ (1/2)</pre><strong>Reviewer</strong>: Hyperledger Jobbuilder - <EMAIL><br><strong>Reviewed</strong>: 6/29/2018, 11:53:26 AM<br><strong>Message</strong>: <pre>Patch Set 3: Verified-1
Build Failed
https://jenkins.hyperledger.org/job/fabric-sdk-go-tests-verify-x86_64/3111/ : ABORTED
No problems were identified. If you know why this problem occurred, please add a suitable Cause for it. ( https://jenkins.hyperledger.org/job/fabric-sdk-go-tests-verify-x86_64/3111/ )
Logs: https://logs.hyperledger.org/production/vex-yul-hyp-jenkins-3/fabric-sdk-go-tests-verify-x86_64/3111
https://jenkins.hyperledger.org/job/fabric-sdk-go-tests-verify-s390x/3085/ : FAILURE
No problems were identified. If you know why this problem occurred, please add a suitable Cause for it. ( https://jenkins.hyperledger.org/job/fabric-sdk-go-tests-verify-s390x/3085/ )
Logs: https://logs.hyperledger.org/production/vex-yul-hyp-jenkins-3/fabric-sdk-go-tests-verify-s390x/3085</pre><strong>Reviewer</strong>: Hyperledger Jobbuilder - <EMAIL><br><strong>Reviewed</strong>: 6/29/2018, 11:56:14 AM<br><strong>Message</strong>: <pre>Patch Set 4:
Build Started https://jenkins.hyperledger.org/job/fabric-sdk-go-tests-verify-x86_64/3112/ (2/2)</pre><strong>Reviewer</strong>: <NAME> - <EMAIL><br><strong>Reviewed</strong>: 6/29/2018, 11:58:26 AM<br><strong>Message</strong>: <pre>Patch Set 4: Code-Review+1</pre><strong>Reviewer</strong>: <NAME> - <EMAIL><br><strong>Reviewed</strong>: 6/29/2018, 12:20:27 PM<br><strong>Message</strong>: <pre>Patch Set 4: Code-Review+2</pre><strong>Reviewer</strong>: <NAME> - <EMAIL><br><strong>Reviewed</strong>: 6/29/2018, 12:42:59 PM<br><strong>Message</strong>: <pre>Patch Set 4: Verified+1</pre><strong>Reviewer</strong>: <NAME> - <EMAIL><br><strong>Reviewed</strong>: 6/29/2018, 12:43:07 PM<br><strong>Message</strong>: <pre>Change has been successfully merged by <NAME></pre><strong>Reviewer</strong>: Hyperledger Jobbuilder - <EMAIL><br><strong>Reviewed</strong>: 6/29/2018, 12:43:16 PM<br><strong>Message</strong>: <pre>Patch Set 4:
Build Started https://jenkins.hyperledger.org/job/fabric-sdk-go-tests-merge-s390x/705/ (1/2)</pre><strong>Reviewer</strong>: Hyperledger Jobbuilder - <EMAIL><br><strong>Reviewed</strong>: 6/29/2018, 12:45:56 PM<br><strong>Message</strong>: <pre>Patch Set 4:
Build Started https://jenkins.hyperledger.org/job/fabric-sdk-go-tests-merge-x86_64/756/ (2/2)</pre><strong>Reviewer</strong>: Hyperledger Jobbuilder - <EMAIL><br><strong>Reviewed</strong>: 6/29/2018, 1:30:47 PM<br><strong>Message</strong>: <pre>Patch Set 4:
Build Successful
https://jenkins.hyperledger.org/job/fabric-sdk-go-tests-merge-x86_64/756/ : SUCCESS
Logs: https://logs.hyperledger.org/production/vex-yul-hyp-jenkins-3/fabric-sdk-go-tests-merge-x86_64/756
https://jenkins.hyperledger.org/job/fabric-sdk-go-tests-merge-s390x/705/ : SUCCESS
Logs: https://logs.hyperledger.org/production/vex-yul-hyp-jenkins-3/fabric-sdk-go-tests-merge-s390x/705</pre><h1>PatchSets</h1><h3>PatchSet Number: 1</h3><blockquote><strong>Type</strong>: REWORK<br><strong>Author</strong>: <NAME> - <EMAIL><br><strong>Uploader</strong>: <NAME> - <EMAIL><br><strong>Created</strong>: 6/29/2018, 10:48:52 AM<br><strong>UnmergedRevision</strong>: [78b3583622ff4c12fbdd740afc41ca1c2fc34755](https://github.com/hyperledger-gerrit-archive/fabric-sdk-go/commit/78b3583622ff4c12fbdd740afc41ca1c2fc34755)<br><br><strong>Approver</strong>: Hyperledger Jobbuilder - <EMAIL><br><strong>Approved</strong>: 6/29/2018, 10:56:57 AM<br><strong>Type</strong>: Verified<br><strong>Value</strong>: -1<br><br></blockquote><h3>PatchSet Number: 2</h3><blockquote><strong>Type</strong>: REWORK<br><strong>Author</strong>: <NAME> - <EMAIL><br><strong>Uploader</strong>: <NAME> - <EMAIL><br><strong>Created</strong>: 6/29/2018, 10:56:34 AM<br><strong>UnmergedRevision</strong>: [c766c0ac98c0c871536a3d610f4d673527386e31](https://github.com/hyperledger-gerrit-archive/fabric-sdk-go/commit/c766c0ac98c0c871536a3d610f4d673527386e31)<br><br><strong>Approver</strong>: Hyperledger Jobbuilder - <EMAIL><br><strong>Approved</strong>: 6/29/2018, 11:39:47 AM<br><strong>Type</strong>: Verified<br><strong>Value</strong>: 1<br><br></blockquote><h3>PatchSet Number: 3</h3><blockquote><strong>Type</strong>: REWORK<br><strong>Author</strong>: <NAME> - <EMAIL><br><strong>Uploader</strong>: <NAME> - <EMAIL><br><strong>Created</strong>: 6/29/2018, 11:48:48 AM<br><strong>UnmergedRevision</strong>: [22a2f212487af244a9e8608f7aee943983947798](https://github.com/hyperledger-gerrit-archive/fabric-sdk-go/commit/22a2f212487af244a9e8608f7aee943983947798)<br><br><strong>Approver</strong>: Hyperledger Jobbuilder - <EMAIL><br><strong>Approved</strong>: 6/29/2018, 11:53:26 AM<br><strong>Type</strong>: Verified<br><strong>Value</strong>: -1<br><br></blockquote><h3>PatchSet Number: 4</h3><blockquote><strong>Type</strong>: REWORK<br><strong>Author</strong>: <NAME> - <EMAIL><br><strong>Uploader</strong>: <NAME> - <EMAIL><br><strong>Created</strong>: 6/29/2018, 11:52:43 AM<br><strong>GitHubMergedRevision</strong>: [632e832be49cf669037e3abf6e95f8930b7a5ba5](https://github.com/hyperledger-gerrit-archive/fabric-sdk-go/commit/632e832be49cf669037e3abf6e95f8930b7a5ba5)<br><br><strong>Approver</strong>: <NAME> - <EMAIL><br><strong>Approved</strong>: 6/29/2018, 12:42:59 PM<br><strong>Type</strong>: Verified<br><strong>Value</strong>: 1<br><br><strong>Approver</strong>: <NAME> - <EMAIL><br><strong>Approved</strong>: 6/29/2018, 12:20:27 PM<br><strong>Type</strong>: Code-Review<br><strong>Value</strong>: 1<br><br><strong>MergedBy</strong>: Firas Qutishat<br><strong>Merged</strong>: 6/29/2018, 12:43:07 PM<br><br><strong>Approver</strong>: <NAME> - <EMAIL><br><strong>Approved</strong>: 6/29/2018, 11:58:26 AM<br><strong>Type</strong>: Code-Review<br><strong>Value</strong>: 1<br><br></blockquote> | markdown |
GOLAGHAT, May 16: The All Assam Minorities Students’ Union (AAMSU) of Golaghat district committee staged two-hour sit-in protest near DC office here on Monday demanding release of fund for Minority Scholarship.
AAMSU’s Golaghat District Committee president Kadir Ali and general secretary Essad Hussain said that the condition of the minority people living in the state are more deplorable than tiol average.
“Literacy rate amongst the Minority people of Assam also much lesser than the tiol rate. As per recommendations of the Sacchar Committee, Prime minister’s New 15 Point Programme for the Welfare for Minorities has been launched throughout India. The clause A (5) provides for Scholarship to the students belonging to Minority community. The Central Government had been proving Minority Scholarships amongst the students for which the students availed some sort of relief as well as encouragement . Unfortutely, the Central Government has not released fund for Minority-Scholarship for Assam for the academic secession of 2015-16 for which students are facing severe hardship,” they said.
They also alleged that there are massive anomalies in distribution of minority scholarship in the state due to negligence and corrupt practice of the officials.
AAMSU activists later submitted a memorandum addressed to Prime Minister through Golaghat DC demanding immediate release of the fund of Minority Scholarship. | english |
429 First Information Reports (FIRs) have been filed under various statutes, and 436 accused people have been found and taken into custody on the same day. In accordance with the director General of police Anjani Kumar's directives, Anti-Human Trafficking Units (AHTUs) were established in each police Commissionerate and district, and they began collecting cases that were still being investigated and unreported cases of missing people.
According to swati Lakra, Additional Director-General of police, women Safety Wing, the discovery of child missing cases has increased as a result of systematic gathering of missing cases through Daily Situation Reports (DSR) and collaboration with police stations for tracing of such instances. Five such cases of missing children were located during the course of the month-long search. The teams saved kids from places like bus and train stations, churches, intersections, mechanic shops, brick kilns, building construction sites, sidewalk tea stands, stores and other locations. According to officials, the operation resulted in the rescue of up to 800 youngsters, including 69 females who were either from another State or nation.
Total children rescued – 2617 (Girls 263)
FIRs registered – 429 and 436 people arrested. | english |
<filename>app.json<gh_stars>0
{
"name": "React Video Call",
"description": "React Video Call App powered by WebRTC, React and Socket.io",
"repository": "https://github.com/jafar-albadarneh/react-videocall",
"logo": "https://raw.githubusercontent.com/jafar-albadarneh/react-videocall/production/client/src/assets/icon1.png",
"keywords": ["react", "express", "video call","node"]
}
| json |
Building trust and credibility with USA customers can be a challenging task for foreign sellers. Establishing a strong foundation of trust is crucial in developing successful business relationships and expanding market presence. This article will explore the challenges faced by foreign sellers in building trust and credibility with USA customers, emphasizing the significance of trust in business transactions. By understanding these challenges and implementing effective strategies, foreign sellers can establish themselves as trustworthy partners in the competitive USA market.
– Highlighting the Challenges:
Building trust and credibility is particularly challenging for foreign sellers due to factors such as language barriers, cultural differences, and the lack of familiarity with the local market norms and practices.
– Importance of Trust and Credibility:
Trust is the cornerstone of successful business relationships. It influences customers’ willingness to make purchases, engage in long-term partnerships, and recommend products or services to others.
– Relevance to Foreign Sellers:
This article is relevant to foreign sellers targeting the USA market who aim to overcome the challenges they face in building trust and credibility with USA customers. It provides valuable insights and strategies to establish a strong and reliable presence in the USA market.
To build trust and credibility with USA customers as a foreign seller, it is essential to understand their perspective and meet their expectations. Here are key points to consider:
A. Researching Cultural Nuances and Expectations:
– Familiarize yourself with the cultural nuances, values, and customs prevalent in the USA. This includes understanding communication styles, business etiquette, and social norms.
– Recognize the importance of punctuality, professionalism, and clear communication in business interactions with USA customers.
B. Factors Considered by USA Customers:
– Identify the factors that USA customers prioritize when evaluating the trustworthiness of foreign sellers. This may include factors such as product quality, customer reviews, customer service responsiveness, and secure payment options.
– Understand that USA customers value transparency, honesty, and reliability in their business dealings. Providing accurate product information, transparent pricing, and clear return policies can contribute to building trust.
C. Addressing Stereotypes and Misconceptions:
– Be aware of any stereotypes or misconceptions that USA customers may have about foreign sellers. Proactively address these perceptions through clear and authentic communication, emphasizing your commitment to customer satisfaction and high-quality products.
– Showcase your credibility by highlighting certifications, partnerships, or positive customer testimonials that demonstrate your trustworthiness.
By gaining a deep understanding of the USA customer perspective, foreign sellers can tailor their approach, communication, and business practices to build trust and credibility in the USA market.
Creating a professional and trustworthy online presence is crucial for foreign sellers targeting the USA market. Here are some key tips to establish credibility:
A. Build a Professional Website:
– Design a visually appealing and user-friendly website that reflects your brand identity.
– Ensure that your website provides a seamless browsing experience, with easy navigation and clear information about your products or services.
– Display your contact information prominently, including a dedicated customer support channel.
B. Optimize for the USA Market:
– Adapt your website to cater specifically to the USA market. This may involve language localization, using American English, and incorporating local currency and measurements.
– Communicate clearly and concisely, avoiding cultural references or jargon that may be unfamiliar to USA customers.
– Highlight any certifications or compliance with USA standards to assure customers of your commitment to quality.
C. Showcase Customer Testimonials and Reviews:
– Feature genuine customer testimonials, reviews, and case studies on your website to build social proof and demonstrate positive experiences with your products or services.
– Encourage satisfied customers to leave feedback or reviews on reputable platforms, such as review websites or social media platforms.
– Leverage the power of user-generated content by sharing customer photos or videos showcasing your products in action.
By establishing a professional online presence, foreign sellers can instill confidence and credibility in USA customers, increasing the likelihood of building trust and fostering long-term business relationships.
Transparency and authenticity play a significant role in building trust and credibility with USA customers. Here’s how foreign sellers can demonstrate these qualities:
A. Transparent Business Practices:
– Clearly communicate your shipping policies, including estimated delivery times, shipping costs, and any additional fees or restrictions.
– Provide detailed information about your return and refund policies, making it easy for customers to understand the process and feel confident in their purchases.
– Ensure prompt and responsive customer support, addressing inquiries and concerns in a timely manner.
B. Communicate Company Values and Commitment:
– Clearly articulate your company’s values, mission, and commitment to customer satisfaction on your website and marketing materials.
– Demonstrate a customer-centric approach by actively seeking and incorporating customer feedback to improve your products or services.
– Highlight any certifications, partnerships, or awards that showcase your commitment to quality and ethical business practices.
C. Share Your Brand Story:
– Share the story behind your brand or business, including its origins, values, and the expertise that sets you apart from competitors.
– Emphasize your experience and expertise in your industry to instill confidence in customers that you are knowledgeable and reliable.
– Incorporate personal touches or anecdotes that humanize your brand and create a connection with customers.
Providing excellent customer service is crucial for building trust and credibility with USA customers. Here are some tips to enhance your customer service:
A. Prompt and Responsive Support:
– Respond to customer inquiries and concerns in a timely manner, ideally within 24 hours.
– Offer multiple channels of communication, such as email, live chat, and phone, to accommodate customer preferences.
– Utilize automation tools or chatbots to provide immediate assistance and gather basic information before connecting customers with a representative.
B. Well-Trained Customer Service Team:
– Train your customer service team to be knowledgeable about your products or services, policies, and procedures.
– Emphasize the importance of being friendly, empathetic, and patient when interacting with customers.
– Encourage active listening and problem-solving skills to address customer issues effectively.
C. Exceed Customer Expectations:
– Go above and beyond to resolve customer issues and provide personalized solutions.
– Offer proactive communication, such as order updates, delivery notifications, and follow-ups to ensure customer satisfaction.
– Consider implementing a customer loyalty program or offering special perks to reward and retain loyal customers.
Ensuring secure and reliable transactions is essential to gain the trust of USA customers. Here’s how you can enhance the security and reliability of your transactions:
A. Secure Payment Methods:
– Implement reputable and secure payment gateways that offer encryption and fraud protection.
– Display recognized payment icons, such as Visa, Mastercard, or PayPal, to reassure customers of secure transactions.
– Clearly communicate the steps taken to safeguard customer payment information.
B. Data Privacy and Security Measures:
– Clearly outline your data privacy policy, detailing how customer information is collected, stored, and protected.
– Comply with relevant data protection regulations, such as the General Data Protection Regulation (GDPR) if applicable.
– Display trust seals or certifications from recognized security providers to demonstrate your commitment to data security.
C. Transparent Pricing:
– Clearly state your product prices, including any additional costs such as shipping fees or taxes.
– Avoid hidden charges or unexpected fees during the checkout process.
– Provide a breakdown of costs and offer shipping cost calculators to provide transparency to customers.
By prioritizing excellent customer service and ensuring secure and reliable transactions, foreign sellers can build trust and credibility with USA customers. These practices not only enhance the customer experience but also contribute to long-term customer loyalty and repeat business.
Building partnerships and collaborations with reputable entities in the USA can significantly enhance your credibility as a foreign seller. Here are some strategies to consider:
A. Establish Partnerships:
– Identify and forge partnerships with established USA-based businesses that align with your values and target market.
– Seek out complementary businesses in related industries to create mutually beneficial collaborations.
– Collaborate with influencers or bloggers who have a strong presence in your target market to amplify your reach and credibility.
B. Community Involvement:
– Engage with local organizations or charities in the USA to demonstrate your commitment to the community.
– Sponsor or participate in events that align with your brand values and resonate with your target audience.
– Share your involvement in community initiatives through social media and other marketing channels to showcase your dedication to making a positive impact.
C. Leverage Endorsements and Recommendations:
– Utilize partnerships to gain endorsements or recommendations from trusted sources in the USA.
– Highlight testimonials or quotes from influential individuals or organizations that speak positively about your products or services.
– Feature these endorsements on your website, social media platforms, and other marketing materials to enhance your credibility and build trust with potential customers.
Remember to approach partnerships and collaborations strategically, ensuring they align with your brand values and target market. Building strong relationships with reputable USA-based businesses and influencers can significantly boost your credibility as a foreign seller, providing you with valuable endorsements, expanding your reach, and gaining the trust of USA customers.
Maintaining consistent communication and engagement with USA customers is vital for building trust and credibility as a foreign seller. Here are some strategies to achieve this:
A. Regular Communication:
– Send out informative and engaging email newsletters to keep customers updated on new products, promotions, or industry trends.
– Leverage social media platforms to share valuable content, industry insights, or product-related information.
– Consider starting a blog where you can provide in-depth articles or guides that address customer needs and interests.
B. Meaningful Conversations:
– Actively monitor and respond to customer feedback, reviews, and comments on your website, social media platforms, and review websites.
– Engage in genuine conversations with customers, asking for their opinions, suggestions, and experiences.
– Show empathy and understanding when addressing any customer concerns or issues.
C. Appreciation and Personalization:
– Show gratitude to customers for their support and loyalty by offering exclusive offers, discounts, or personalized incentives.
– Segment your customer base and provide targeted offers or recommendations based on their preferences and purchase history.
– Personalize your communication whenever possible, addressing customers by their names and tailoring messages to their specific interests.
In conclusion, as a foreign seller targeting the USA market, building trust and credibility with customers is crucial for long-term success. By understanding the customer perspective, establishing a professional online presence, providing excellent customer service, fostering transparent communication, and consistently engaging with customers, you can earn their trust and loyalty. These efforts contribute to building a strong reputation, positive customer experiences, and ultimately, business growth. Implementing these tips will position you as a trusted seller in the USA market and set you apart from the competition.
Remember, building trust and credibility is an ongoing process that requires dedication and continuous improvement. By prioritizing these strategies, you can establish strong relationships with USA customers, gain a competitive edge, and thrive as a foreign seller in the USA market. | english |
{"pos":"proper","translits":{"biḡ·ṯā·nā":{"est.6.2|6":["of","Bigthan","and Teresh、"]},"biḡ·ṯān":{"est.2.21|7":["became furious、","Bigthan","and Teresh、"]}},"meanings":{"bigthan":2},"meaningsCount":1,"occurences":2} | json |
Masala vada or dal vada or paruppu vadai is a popular south Indian snack served with tea or as part of meals. These are also known as chana dal vada and made with chana dal, onions, red chillies, some herbs and spices. Vegan and gluten free.
- Pick and rinse 1 cup chana dal and 2 tablespoons toor dal thoroughly. Adding toor dal is optional.
- Place the rinsed lentils in a wide bowl and add enough water to soak them. Set aside for 2 hours. After the lentils have well soaked and turned soft, drain excess water from soaked chana dal and set aside.
- To a a small mixer grinder jar add 1 teaspoon fennel seeds, 3 peeled garlic flakes, a small peeled ginger piece and 4 dried chilies.
- Grind to a coarse paste without adding any water. Remove to a bowl.
- In the same jar add the soaked lentils. Pulse it just twice or thrice without adding any water. Please refer to the picture, there should be few whole lentils for that perfect crispy texture. Do not grind into a paste.
- Remove the pulsed lentils to a large mixing bowl. To that add the ground spices, 3/4 cup finely chopped onions, 15 torn curry leaves, 1/4 cup finely chopped mint leaves and salt to taste.
- Mix very well. This is the batter or dough for masala vada. It should be thick and you should be able to hold and shape it into ball. If the mixture falls apart add 2 tablespoons rice flour , mix and shape. I have not added any rice flour here.
- Mix the prepared parppu vada dough very well and divide into 12 equal sized balls. Flatten each balls gently and shape like a vada. While you are shaping all the dough balls heat oil for deep frying.
- Once the oil is hot drop 2-3 shaped vadas to the hot oil depending upon the size of your pan. Do not disturb them for 20-30 seconds. Once they have firmed up, flip gently and deep fry until they turn crispy and golden brown from all sides. Maintain medium flame.
- Remove the fried chana dal vada to a plate lined with kitchen towel to absorb excess oil. Serve masala vada hot. | english |
Bhubaneswar: The Council of Higher Secondary Education (CHSE), Odisha, has issued a clarification on the procedure for calculation of average marks of last three years and award of marks in Practical/Project Papers for Annual Higher Secondary Examination 2021.
The CHSE Controller of Examinations, in a letter to Principals of all affiliated Higher Secondary Schools/Colleges of the Council stated that necessary arrangements be made for award of marks in the Practical/Project papers basing on the notified criteria i.e. (i) Practical Record (ii) performance of the examinee in the regular laboratory work experiments in the Practical Classes and (iii) Performance of the examinee in 10th Board Examination for the Practical Papers, and (i) Project Report and (ii) Performance of examinee in the 10th Board Examination for the Project Papers.
The Council added that marks awarded to the examinees in the Practical Papers/Project Reports shouldn’t exceed the average range of Practical/Project marks in that paper for that Higher Secondary School/College during the last three years. For this purpose, the maximum marks in a Practical/Project Paper are to be graded into five different ranges as given below:
From the tabulation registers of Annual Higher Secondary Examination, 2018, 2019 & 2020 the examinees scoring marks in different ranges as given above should be calculated for each Practical/Project Paper of that Higher Secondary School/College. After calculation of the number of examinees in each range the percentage of Examinees in each range is to be calculated. After that the average percentage of examinees in each range for the three years, taken together, is to be computed, stated the Council.
Basing on these figures marks in the Practical/Project Papers are to be awarded to the examinees. The percentage of examinees in different marks range for the Annual Higher Secondary Examination, 2021 must tally with the average percentage of examinees in the different marks range calculated for the three previous years (2018,2019 & 2020) taken together, it added.
The Council has directed the Principals to appoint Internal Examiners for different Practical/Project Papers in the concerned Higher Secondary School/College from among the available subject teachers. If in any Higher Secondary School/College regular teachers are not available in a subject(s) the Principal can utilize the services of such suitable regular teachers from the nearby Higher Secondary Schools/Colleges as Internal Examiners. In no case the services of guest faculties or contractual teachers be utilized for the purpose. The Internal Examiners appointed will be entitled for Remuneration at the prescribed rate along with CA/DA/TA for teachers coming from nearby/outside Higher Secondary Schools/Colleges.
For Higher Secondary Schools/Colleges having result of only two previous years (2019 & 2020), average to be calculated for the last two years only and for Higher Secondary Schools/Colleges having result of only last year (2020), the same marks range will be deemed to be the average mark range. In Higher Secondary Schools/Colleges where students were to appear in Higher Secondary Examination for the first time in 2021, marks in Practical/Project Papers to be awarded strictly basing on the criteria mentioned in the first paragraph, it added.
Finally, the Council has stated that the COVID-19 guidelines issued by the Govt. must be strictly followed by one and all engaged in evaluation and uploading of marks.
| english |
The Supreme Court has vacated its order granting protection from arrest to former Kolkata police commissioner Rajeev Kumar in the Saradha chit fund scam case.
By Aneesha Mathur: The Supreme Court on Friday vacated its order granting protection from arrest to former Kolkata police commissioner Rajeev Kumar in the Saradha chit fund scam case.
The Supreme Court on Friday allowed the CBI to "act in accordance with law" on the matter of the custodial interrogation of Rajiv Kumar, who according to the CBI was involved in tampering of evidence and protecting "high and mighty" political persons from an investigation into the Saradha and Rose Valley Chit fund scams.
The matter raises "very serious issues" said Justice Sanjiv Khanna while reading out part of the judgment.
The Supreme Court, however, granted the former Kolkata Police Commissioner seven days to approach a competent court to seek protection.
Rajeev Kumar's legal team is likely to move Kolkata High Court for anticipatory bail. According to sources in the legal team of the West Bengal government, Rajeev Kumar will approach the Election Commission for permission to travel to Kolkata to file plea anticipatory bail.
Since all lawyers in Kolkata are currently on strike, Rajeev Kumar may have to appear before the court personally to argue his case.
On February 5, the Supreme Court had passed orders that prohibited the CBI from taking any coercive action against Rajeev Kumar or arresting him.
He was then called for questioning by the CBI under court orders. The CBI claimed that as the head of the SIT probing into the chit fund scam, Rajeev Kumar was responsible for the destruction of evidence to protect the accused.
The CBI had told the top court that it wanted custodial interrogation of Rajeev Kumar, who was earlier heading West Bengal Police SIT probing chit fund scam, as there was prima facie evidence of his allegedly trying to destroy or tamper with evidence and "shield high and mighty" in the case.
However, Rajeev Kumar's counsel had countered CBI's submissions and told a bench headed by Chief Justice Ranjan Gogoi that the agency wanted his custodial interrogation "just to humiliate" him and CBI should not be allowed to abuse the process of law.
WATCH | Is Mamata using police as shield in Saradha chit fund scam? | english |
The global community should make it clear to the Taliban that international assistance and recognition is conditional on a more moderate policy that includes allowing girls to go to school, said child labour activist and Nobel peace prize winner Kailash Satyarthi.
Mr. Satyarthi, who was appointed one of 17 global “Advocates” for the United Nations’ Sustainable Development Goals (UN SDG) by UN Secretary General Antonio Guterres on Friday, called for the UN General Assembly this month to raise the issue of children in Afghanistan, along with other discussions on the situation in the country.
“If children are not given education, particularly girls on an equal footing, then there are many more chances of perpetual exploitation, injustices and violence,” Mr. Satyarthi told The Hindu in an interview, after his appointment by the UNSDG was announced.
Mr Satyarthi’s concerns come as the Taliban government announced on Saturday that it was reopening secondary schools, but ordered only boys and male teachers back, indicating that the Islamist group may not let girls and female teachers return.
“This present [Taliban] regime, if they are really in power, cannot remain in isolation. They have to get financial support, they have to get political and diplomatic support, and they have to get recognition from many countries and from international community. I’m hopeful that they will be moderate for girls and women, and only then the international community would extend their helping hand,” said Mr. Satyarthi, who is organising a special conference of “[Nobel] Laureates and Leaders” on the issue of child labour during the UNGA on September 22.
International agencies now estimate that the situation in Afghanistan could add to the already growing numbers of children forced into labour or trafficked for sexual or commercial exploitation due to the coronavirus pandemic, that has led to economic and job losses worldwide. According to the International Labour Organisation (ILO), the numbers have increased to 160 million estimated child labourers in 2021, the first such rise in more than two decades.
According to Mr. Satyarthi, if unchecked, the numbers will mean that the UN Sustainable Development Goals, that mandate every country to “eradicate forced labour, end modern slavery and human trafficking and secure the prohibition and elimination of the worst forms of child labour, including recruitment and use of child soldiers, and by 2025 end child labour in all its forms,” (UN SDG 8. 7) cannot be realised. A “Global Slavery Index” survey used by ILO also said that India has the highest number of men, women and children in “modern slavery”, a term the Modi government has objected to, calling for the use of “forced labour” instead.
“Different governments agree with some phrases and terminologies and words and some other governments are very sensitive about it. But the reality is that government has collaborated with us at the State level, at local levels in rescuing girls and boys being trafficked and who are bonded labour. And that is, in the broader definition, the contemporary form of slavery,” Mr. Satyarthi said.
He added that while India has ratified two important ILO conventions on the worst forms of child labour and on the minimum age of employment, it falls short in preventing children from being exploited due to lack of enough investment in education, nutrition and protection.
When asked about the recent government actions against international NGOs working on child rights and slavery issues that restricted foreign funds coming into India, as had been reported in The Hindu, Mr. Satyarthi said while he was unaware of the specific cases, “role of civil society organisations” was imperative, and there is a “serious need of dialogue and mutual trust between the state agencies, state and civil society”.
In terms of solutions, Mr. Satyarthi, who pioneered the “Rugmark” and “GoodWeave” standards to certify carpets and textiles that were not made by using child labour, said a “global social protection fund” especially for marginalised children in low income countries was needed to take the UN’s global goals forward. | english |
There has been a considerable amount of fear, uncertainty and doubt sown about Apple’s new Lightning Dock Connector adapters, introduced alongside the iPhone 5. There are three adapters that do a couple of different things, along with two more on the way.
I reached out to Apple and a spokesperson clarified several things that had become sticking points and topics for misinformation. Just for reasons involving my own sanity, I’m going to lay down the facts surrounding these adapters, perhaps helping others that may be confused by their capabilities.
There are three adapters currently available, two of which are a bit special:
These two adapters are a bit pricier than you’d think they would be, but that’s for good reason. There are actually chips in the dongles that enable several features that would be unavailable without them. Much of the reasons for this have to do with the fact that there are more and varied pins in the original dock connector (30) than there are in the new one (9). These are not just bits of plastic and metal.
The things that the dock connector adapters let you do:
- Analog audio output to stereos, docks and anything else that uses a 30-pin cable of any sort to send audio.
- USB audio output. If you’ve got a car stereo that takes a digital input over a wired-in USB cable, you’re still fine with this adapter.
- Syncing and charging, of course.
The things that they do not let you do:
- Utilize iPod Out, a relatively little used feature that allows transference of the iPod or iPhone’s music controls to an external screen or buttons, like the one in a car or on some home audio systems. BMW was an Apple partner for this feature.
- Video out. There are separate adapters coming for that.
Then there are two adapters on the way:
- Lightning to HDMI – $?
- Lightning to VGA – $?
These two adapters will let you send video out over either HDMI or VGA to projectors or other equipment. Now that Apple devices almost all have AirPlay, this isn’t as big of a deal, but it definitely can be for those without an Apple TV or who are in a corporate IT environment and just want to plug into presentation equipment. There still isn’t information about whether or not the HDMI adapter will send audio and video, but the current Digital AV Adapter does, so it should too.
Then there is an adapter to satisfy regulations surrounding the use of Micro-USB for charging and sync in the European Union:
That adapter doesn’t do anything but charge and sync, that’s it.
So, I hope this helps a bit as a cheat sheet for those confused about the functions of these adapters and which ones they really need. If you still have questions, check out this article from Mike Rose at TUAW and this one from Dan Frakes at Macworld or feel free to drop them in the comments below and I’ll try to answer them at some point.
Get the most important tech news in your inbox each week.
| english |
<reponame>perfectrecall/aws-sdk-cpp<filename>aws-cpp-sdk-securityhub/source/model/PortRangeFromTo.cpp
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/securityhub/model/PortRangeFromTo.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace SecurityHub
{
namespace Model
{
PortRangeFromTo::PortRangeFromTo() :
m_from(0),
m_fromHasBeenSet(false),
m_to(0),
m_toHasBeenSet(false)
{
}
PortRangeFromTo::PortRangeFromTo(JsonView jsonValue) :
m_from(0),
m_fromHasBeenSet(false),
m_to(0),
m_toHasBeenSet(false)
{
*this = jsonValue;
}
PortRangeFromTo& PortRangeFromTo::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("From"))
{
m_from = jsonValue.GetInteger("From");
m_fromHasBeenSet = true;
}
if(jsonValue.ValueExists("To"))
{
m_to = jsonValue.GetInteger("To");
m_toHasBeenSet = true;
}
return *this;
}
JsonValue PortRangeFromTo::Jsonize() const
{
JsonValue payload;
if(m_fromHasBeenSet)
{
payload.WithInteger("From", m_from);
}
if(m_toHasBeenSet)
{
payload.WithInteger("To", m_to);
}
return payload;
}
} // namespace Model
} // namespace SecurityHub
} // namespace Aws
| cpp |
<filename>data_bank/wgbb_5234.json<gh_stars>0
{"questions": [{"player_1": {"name": "<NAME>", "player_stat": 140.65}, "player_2": {"name": "<NAME>", "player_stat": 142.97}, "stat": "strike_rate", "skill": "BAT", "question_text": "Who has the better batting strike rate?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 7.4}, "player_2": {"name": "<NAME>", "player_stat": 7.38}, "stat": "economy", "skill": "BOWL", "question_text": "Who has the better economy rate?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 0.0}, "player_2": {"name": "<NAME>", "player_stat": 1.0}, "stat": "zeroes", "skill": "BAT", "question_text": "Who has more ducks?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 18.4}, "player_2": {"name": "<NAME>", "player_stat": 20.2}, "stat": "strike_rate", "skill": "BOWL", "question_text": "Who has the better bowling strike rate?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 160.0}, "player_2": {"name": "<NAME>", "player_stat": 26.0}, "stat": "wickets", "skill": "BOWL", "question_text": "Who has taken more wickets?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 29.29}, "player_2": {"name": "<NAME>", "player_stat": 26.68}, "stat": "average", "skill": "BOWL", "question_text": "Who has the better bowling average?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 0.0}, "player_2": {"name": "<NAME>", "player_stat": 1.0}, "stat": "zeroes", "skill": "BAT", "question_text": "Who has more ducks?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 124.72}, "player_2": {"name": "<NAME>", "player_stat": 108.63}, "stat": "strike_rate", "skill": "BAT", "question_text": "Who has the better batting strike rate?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 1.0}, "player_2": {"name": "<NAME>", "player_stat": 7.0}, "stat": "maidens", "skill": "BOWL", "question_text": "Who has bowled more maidens?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 31.0}, "player_2": {"name": "<NAME>", "player_stat": 19.0}, "stat": "wickets", "skill": "BOWL", "question_text": "Who has taken more wickets?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 29.91}, "player_2": {"name": "<NAME>", "player_stat": 21.28}, "stat": "average", "skill": "BOWL", "question_text": "Who has the better bowling average?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 2.0}, "player_2": {"name": "<NAME>", "player_stat": 0.0}, "stat": "hundreds", "skill": "BAT", "question_text": "Who has scored more hundreds?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 44.72}, "player_2": {"name": "<NAME>", "player_stat": 36.67}, "stat": "average", "skill": "BOWL", "question_text": "Who has the better bowling average?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 26.2}, "player_2": {"name": "<NAME>", "player_stat": 26.44}, "stat": "average", "skill": "BOWL", "question_text": "Who has the better bowling average?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 18.4}, "player_2": {"name": "<NAME>", "player_stat": 20.4}, "stat": "strike_rate", "skill": "BOWL", "question_text": "Who has the better bowling strike rate?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 27.42}, "player_2": {"name": "<NAME>", "player_stat": 16.62}, "stat": "average", "skill": "BAT", "question_text": "Who has the better batting average?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 19.8}, "player_2": {"name": "<NAME>", "player_stat": 28.24}, "stat": "average", "skill": "BOWL", "question_text": "Who has the better bowling average?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 0.0}, "player_2": {"name": "<NAME>", "player_stat": 0.0}, "stat": "maidens", "skill": "BOWL", "question_text": "Who has bowled more maidens?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 4.0}, "player_2": {"name": "<NAME>", "player_stat": 1.0}, "stat": "fifties", "skill": "BAT", "question_text": "Who has scored more fifties?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 2.0}, "player_2": {"name": "<NAME>", "player_stat": 1.0}, "stat": "maidens", "skill": "BOWL", "question_text": "Who has bowled more maidens?", "greater": true}]} | json |
<reponame>isabella232/networks
package loadtest
import (
"encoding/csv"
"fmt"
"os"
"path"
"strconv"
"strings"
)
var desiredPrometheusMetrics = map[string]interface{}{
"go_goroutines": nil,
"go_memstats_alloc_bytes": nil,
"go_threads": nil,
"node_memory_MemFree_bytes": nil,
"node_network_receive_bytes_total": nil,
"node_network_transmit_bytes_total": nil,
"node_procs_running": nil,
"process_open_fds": nil,
"tendermint_consensus_block_interval_seconds": nil,
"tendermint_consensus_block_size_bytes": nil,
"tendermint_consensus_byzantine_validators": nil,
"tendermint_consensus_height": nil,
"tendermint_consensus_latest_block_height": nil,
"tendermint_consensus_num_txs": nil,
"tendermint_consensus_rounds": nil,
"tendermint_consensus_total_txs": nil,
"tendermint_mempool_size": nil,
"tendermint_p2p_peer_receive_bytes_total": nil,
"tendermint_p2p_peer_send_bytes_total": nil,
"tendermint_p2p_peers": nil,
}
// PlotSingleTestSummaryResults will look in the given `inputDir` for a
// `summary.csv` file (generated by the single-test load testing) and write the
// relevant plotly.js files out to the given `outputDir` (one for each
// histogram, basically).
func PlotSingleTestSummaryResults(inputDir, outputDir string) error {
// ensure the output path exists
if err := os.MkdirAll(outputDir, 0755); err != nil {
return fmt.Errorf("Failed to create output directory %s: %s", outputDir, err.Error())
}
summaryStatsFile := path.Join(inputDir, "summary.csv")
stats, err := ReadCombinedStatsFromFile(summaryStatsFile)
if err != nil {
return fmt.Errorf("Failed to read combined stats from file %s: %s", summaryStatsFile, err.Error())
}
cfgFile := path.Join(inputDir, "config.toml")
cfg, err := LoadConfig(cfgFile)
if err != nil {
return fmt.Errorf("Failed to load configuration from file %s: %s", cfgFile, err.Error())
}
nodesStats, err := readPrometheusStats(cfg, inputDir)
if err != nil {
return err
}
result, err := RenderSingleTestSummaryPlot(cfg, stats, nodesStats)
if err != nil {
return fmt.Errorf("Failed to render summary plot: %s", err.Error())
}
outputFile := path.Join(outputDir, "single-test-summary.html")
f, err := os.Create(outputFile)
if err != nil {
return fmt.Errorf("Failed to create output file %s: %s", outputFile, err.Error())
}
defer f.Close()
if _, err := f.Write([]byte(result)); err != nil {
return fmt.Errorf("Failed to write output template to %s: %s", outputFile, err.Error())
}
return nil
}
func readPrometheusStats(cfg *Config, inputDir string) (map[string]map[string]MetricFamilyData, error) {
var emptyMap map[string]map[string]MetricFamilyData
// metric family ID -> hostname -> metric family data
nodesStats := make(map[string]map[string]MetricFamilyData)
timestamps := make([]float64, 0)
for _, target := range cfg.TestNetwork.Targets {
ferr := func() error {
hostStatsFile := path.Join(inputDir, fmt.Sprintf("%s.csv", target.ID))
f, err := os.Open(hostStatsFile)
if err != nil {
return fmt.Errorf("Failed to open host stats file for reading: %s", hostStatsFile)
}
defer f.Close()
// read the timestamps from the file
cr := csv.NewReader(f)
row, err := cr.Read()
if err != nil {
return fmt.Errorf("Failed to read first row of CSV file: %s (%s)", hostStatsFile, err)
}
if len(row) < 3 {
return fmt.Errorf("Not enough timestamps in host stats file: %s", hostStatsFile)
}
hostTimestamps := make([]float64, 0)
// parse out the timestamps
for i, ts := range row[2:] {
tsf, err := strconv.ParseFloat(ts, 64)
if err != nil {
return fmt.Errorf("Failed to parse timestamp in row 0, column %d (%s) of %s", 2+i, ts, hostStatsFile)
}
hostTimestamps = append(hostTimestamps, tsf)
}
if len(timestamps) == 0 {
timestamps = hostTimestamps
} else {
if len(timestamps) != len(hostTimestamps) {
return fmt.Errorf("Timestamps for host stats file %s do not match first host's timestamps", hostStatsFile)
}
}
lineNo := 1
// now parse out the metric families we want
for {
row, err = cr.Read()
if err != nil {
break
}
mfIDParts := strings.Split(row[0], ":")
mfID := mfIDParts[0]
if len(mfIDParts) > 1 {
mfID = strings.Join(mfIDParts[1:], ":")
}
if _, mfDesired := desiredPrometheusMetrics[mfID]; mfDesired {
if len(row)-2 < len(timestamps) {
return fmt.Errorf("Not enough data in host stats file (expected %d entries, but got %d), line %d: %s", len(timestamps), len(row)-2, lineNo, hostStatsFile)
}
values := make([]float64, 0)
for i, val := range row[2:] {
valf, err := strconv.ParseFloat(val, 64)
if err != nil {
return fmt.Errorf("Failed to parse data point in row %d, column %d (%s) of %s", lineNo, 2+i, val, hostStatsFile)
}
values = append(values, valf)
}
mfData := MetricFamilyData{
ID: row[0],
Help: row[1],
Data: values,
Timestamps: timestamps,
}
if _, ok := nodesStats[mfData.ID]; !ok {
nodesStats[mfData.ID] = make(map[string]MetricFamilyData)
}
nodesStats[mfData.ID][target.ID] = mfData
}
lineNo++
}
return nil
}()
if ferr != nil {
return emptyMap, ferr
}
}
return nodesStats, nil
}
| go |
Amongst the slew of subscription service startups, just one cares about man’s best friend. Based in New York City, BarkBox is a monthly subscription service of hand-selected goodies and essentials for man’s best friend; “the Birchbox for dogs,” if you will.
BarkBox works with several small vendors in and around the New York area to fill boxes with carefully selected doggie products and presents- anything from bones and treats to shampoos, leashes and playful new gadgets. After four successful months in business, the team behind BarkBox including Prehype’s co-founder Henrik Werdelin, Meetup co-founder Matt Meeker and first time entrepreneur Carly Strife has decided to expand internationally. First stop, Canada.
“After all, dogs in Canada should be spoiled too!” says Henrik.
After over 100 requests from Canadian dog owners, Meeker took the first bus north this past weekend to announce BarkBox’s expansion. Pricing ($25 per month) and package contents will remain the same, however shipping will cost $5 to Canadian residents. As a show of gratitude, BarkBox will offer free shipping (for life) to the first 100 dog lovers from Canada who sign up.
To get started, choose whether your pup is of small, medium or large size as each box is tailored to fit accordingly. $3 from every box is donated to a local rescue organization. Looking forward, BarkBox plans to turn its company logo– the golden retriever pictured below on the right– into an animated cartoon series. “It’ll be the next Snoopy,” says Carly.
Get the most important tech news in your inbox each week.
| english |
<gh_stars>1-10
{
"heading": "# A-la-carte (treeshaking)",
"treeshakeWarning": "Treeshaking работает только с Webpack 4 в **production mode**. Это автоматически доступно при использовании Vue CLI.",
"loaderHeader1": "## vuetify-loader",
"loaderText1a": "Отслеживание всех компонентов, которые вы используете, может быть настоящим ужасом. [vuetify-loader](https://github. om/vuetifyjs/vuetify-loader) смягчает эту боль, автоматически импортируя все компоненты Vuetify, где вы их используете. Это также сделает code-splitting более эффективным, так как webpack будет загружать только компоненты, необходимые для отображения чанка.",
"loaderHeader2": "### Импорт",
"loaderText2a": "Чтобы воспользоваться компонентами a-la-carte, вы должны импортировать Vuetify из **vuetify/lib**.",
"optionsInfo": "Объект параметров, который вы передаете в качестве второго аргумента **Vue.use** также может включать components, directives и transitions property.",
"loaderHeader3": "### Установка vue.config.js",
"loaderText3a": "Хотя это не рекомендуется, вы можете отказаться от использования Vue CLI плагина и вместо этого вручную настроить загрузчик через [configure webpack](https://cli. uejs.org/config/#configurewebpack) из Vue CLI.",
"loaderHeader4": "### Установка Webpack",
"loaderText4a": "Вы также можете явно установить loader для проектов на основе webpack. Подобно настройке vue.config.js, вы просто добавляете loader в webpack plugins вашего проекта.",
"loaderHeader5": "## Требуемые стили",
"loaderText5a": "Когда вы импортируете из `vuetify/lib`, также используются базовые стили фреймворка. Каждый компонент индивидуально отвечает за свои стили и будет скомпилирован точно так же. Если вы используете Vue CLI и плагин `vue-cli-plugin-vuetify`, это делается для вас автоматически, и вы можете **пропустить** этот раздел. Если вы работаете в проекте, где у вас нет доступа к клиенту, вы можете вручную включить необходимые пакеты.",
"sassInfo": "Для более подробной информации о том, как настроить ваше приложение для обработки SASS, перейдите на [страницу темы](/customization/theme).",
"loaderText5b": "После установки вам необходимо настроить webpack.config.js для разбора файлов .sass. Для получения дополнительной информации о том, как сделать это с **fibers**, ознакомьтесь с [официальной документацией](https://webpack.js.org/loaders/sass-loader/).",
"loaderHeader6": "## Custom dynamic imports",
"loaderText6a": "Vuetify-loader также позволяет написать собственные пользовательские функции для импорта компонентов вашего проекта. Это может быть сделано как в Vue CLI, так и в webpack проектах.",
"loaderHeader7": "## Ограничения",
"loaderText7a": "При использовании `vuetify-loader` существует несколько сценариев, требующих ручного импорта компонентов.",
"loaderHeader8": "### Динамические компоненты",
"loaderText8a": "`v-data-iterator` может использовать любой компонент через prop. Этот компонент должен быть зарегистрирован [глобально](#markup-js-a-la-carte-manual):",
"loaderText8b": "Динамические компоненты, используемые с `<component :is=\"my-component\">`, могут быть зарегистрированы [локально](#markup-js-a-la-carte-destructuring):",
"loaderHeader9": "### Функциональные компоненты",
"loaderHeader10": "## Ручной импорт",
"loaderText10a": "Компоненты могут быть импортированы вручную, если не используется загрузчик Vuetify. Вы также захотите сделать это при использовании динамических компонентов и **vuetify-loader**, поскольку он анализирует только явное использование. Это обычно происходит при использовании встроенного в Vue `<component is=\"my-component\" />`. Более подробная информация о динамических компонентах находится в официальной Vue [документации](https://vuejs.org/v2/guide/components.html#Dynamic-Components).",
"loaderText10b": "Вы также можете импортировать компоненты в .vue файлы, как показано ниже."
}
| json |
package com.civitasv.ioslike.dialog;
import android.app.Dialog;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.graphics.Typeface;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.GradientDrawable;
import android.net.Uri;
import android.view.Gravity;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.TextView;
import androidx.annotation.ColorRes;
import androidx.annotation.DrawableRes;
import androidx.annotation.StringRes;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.core.content.ContextCompat;
import androidx.core.content.res.ResourcesCompat;
import com.civitasv.dialog.R;
import com.civitasv.ioslike.model.DialogText;
import com.civitasv.ioslike.model.DialogTextStyle;
import com.civitasv.ioslike.util.DisplayUtil;
import com.civitasv.ioslike.util.UIUtil;
import com.civitasv.ioslike.view.ProgressView;
import com.civitasv.ioslike.view.LoadingView;
import java.util.Timer;
import java.util.TimerTask;
/**
* @author Civitasv
* iOS Human Interface Guidelines
* 2020-11-22
*/
public class DialogHud {
// 必须参数
private final Context mContext;
private final Dialog mDialog;
private final LoadingView mLoadingView;
private final ProgressView mProgressView;
private final TextView mLabel;
private final TextView mDetailLabel;
private boolean mShowLabel = false;
private boolean mShowDetailLabel = false;
private boolean mShowLoading = true;
private boolean mShowProgress = false;
private boolean mAutomaticDisappear = false; // 自动消失
private int mDisappearTime = 2000; // 自动消失时间 2s
private Mode mode = Mode.LOADING; // 显示模式 默认为loading
public enum Mode {
// 加载 圆环 成功 失败
LOADING, ANNULAR, SUCCESS, FAIL
}
/**
* 构造方法
*
* @param context 上下文
*/
public DialogHud(Context context) {
mContext = context;
// 获取Dialog布局
View view = View.inflate(context, R.layout.dialog_hud, null);
// 初始化
mLabel = view.findViewById(R.id.label);
mDetailLabel = view.findViewById(R.id.label_detail);
mLoadingView = view.findViewById(R.id.progress_view);
mProgressView = view.findViewById(R.id.pie);
mDialog = new Dialog(context, R.style.HudDialogStyle);
mDialog.setContentView(view);
// 默认只能通过dismiss()方法关闭
mDialog.setCancelable(false);
mDialog.setCanceledOnTouchOutside(false);
Window dialogWindow = mDialog.getWindow();
if (dialogWindow == null) return;
WindowManager.LayoutParams lp = dialogWindow.getAttributes();
// 设置宽度、高度、居中
lp.width = WindowManager.LayoutParams.WRAP_CONTENT;
lp.height = WindowManager.LayoutParams.WRAP_CONTENT;
lp.gravity = Gravity.CENTER;
dialogWindow.setAttributes(lp);
}
/**
* 设置加载信息
*
* @param label 加载信息
* @return 弹窗对象
*/
public DialogHud setLabel(String label) {
if (label == null)
throw new NullPointerException();
return setLabel(new DialogText.Builder(label).build());
}
/**
* 设置加载信息
*
* @param resId 加载信息
* @return 弹窗对象
*/
public DialogHud setLabel(@StringRes int resId) {
return setLabel(mContext.getResources().getString(resId));
}
/**
* 设置加载信息
*
* @param title 加载信息
* @param onClickListener 点击事件
* @return 弹窗对象
*/
public DialogHud setLabel(String title, View.OnClickListener onClickListener) {
if (title == null || onClickListener == null)
throw new NullPointerException();
return setLabel(new DialogText.Builder(title).setOnclickListener(onClickListener).build());
}
/**
* 设置加载信息
*
* @param resId 加载信息
* @param onClickListener 点击事件
* @return 弹窗对象
*/
public DialogHud setLabel(@StringRes int resId, View.OnClickListener onClickListener) {
return setLabel(mContext.getResources().getString(resId), onClickListener);
}
/**
* 设置加载信息
*
* @param title 加载信息
* @param itemStyle 条目样式
* @return 弹窗对象
*/
public DialogHud setLabel(String title, DialogTextStyle itemStyle) {
if (title == null || itemStyle == null)
throw new NullPointerException();
return setLabel(new DialogText.Builder(title).setDialogTextStyle(itemStyle).build());
}
/**
* 设置加载信息
*
* @param resId 加载信息
* @param itemStyle 条目样式
* @return 弹窗对象
*/
public DialogHud setLabel(@StringRes int resId, DialogTextStyle itemStyle) {
return setLabel(mContext.getResources().getString(resId), itemStyle);
}
/**
* 设置加载信息
*
* @param title 加载信息
* @param onClickListener 点击事件
* @param itemStyle 条目样式
* @return 弹窗对象
*/
public DialogHud setLabel(String title, View.OnClickListener onClickListener, DialogTextStyle itemStyle) {
if (title == null || itemStyle == null || onClickListener == null)
throw new NullPointerException();
return setLabel(new DialogText.Builder(title).setDialogTextStyle(itemStyle).setOnclickListener(onClickListener).build());
}
/**
* 设置加载信息
*
* @param resId 加载信息
* @param onClickListener 点击事件
* @param itemStyle 条目样式
* @return 弹窗对象
*/
public DialogHud setLabel(@StringRes int resId, View.OnClickListener onClickListener, DialogTextStyle itemStyle) {
return setLabel(mContext.getResources().getString(resId), onClickListener, itemStyle);
}
/**
* 设置加载信息
*
* @param label 加载信息
* @return 弹窗对象
*/
public DialogHud setLabel(DialogText label) {
if (label == null)
throw new NullPointerException("title can't be null!");
if (label.getText() != null)
mLabel.setText(label.getText());
if (label.getOnClickListener() != null)
mLabel.setOnClickListener(label.getOnClickListener());
if (label.getDialogTextStyle() != null) {
mLabel.setTextSize(label.getDialogTextStyle().getTextSize());
mLabel.setTextColor(label.getDialogTextStyle().getColor());
mLabel.setTypeface(label.getDialogTextStyle().getTypeface());
}
mShowLabel = true;
return this;
}
/**
* 设置加载信息样式
*
* @param style 样式
* @return 弹窗对象
*/
public DialogHud setLabelStyle(DialogTextStyle style) {
if (style == null)
throw new NullPointerException();
mLabel.setTextSize(style.getTextSize());
mLabel.setTextColor(style.getColor());
mLabel.setTypeface(style.getTypeface());
return this;
}
/**
* 设置加载信息点击事件
*
* @param onClickListener 点击事件
* @return 弹窗对象
*/
public DialogHud setLabelClickListener(View.OnClickListener onClickListener) {
if (onClickListener == null)
throw new NullPointerException();
mLabel.setOnClickListener(onClickListener);
return this;
}
/**
* 设置加载信息详情内容
*
* @param labelDetail 加载信息详情内容
* @return 弹窗对象
*/
public DialogHud setLabelDetail(String labelDetail) {
if (labelDetail == null)
throw new NullPointerException();
return setLabelDetail(new DialogText.Builder(labelDetail).build());
}
/**
* 设置详情信息内容
*
* @param resId 弹窗内容
* @return 弹窗对象
*/
public DialogHud setLabelDetail(@StringRes int resId) {
return setLabelDetail(mContext.getResources().getString(resId));
}
/**
* 设置详情信息内容
*
* @param labelDetail 弹窗内容
* @param onClickListener 点击事件
* @return 弹窗对象
*/
public DialogHud setLabelDetail(String labelDetail, View.OnClickListener onClickListener) {
if (labelDetail == null || onClickListener == null)
throw new NullPointerException();
return setLabelDetail(new DialogText.Builder(labelDetail).setOnclickListener(onClickListener).build());
}
/**
* 设置详情信息内容
*
* @param resId 弹窗内容
* @param onClickListener 点击事件
* @return 弹窗对象
*/
public DialogHud setLabelDetail(@StringRes int resId, View.OnClickListener onClickListener) {
return setLabelDetail(mContext.getResources().getString(resId), onClickListener);
}
/**
* 设置详情信息内容
*
* @param labelDetail 弹窗内容
* @param itemStyle 样式
* @return 弹窗对象
*/
public DialogHud setLabelDetail(String labelDetail, DialogTextStyle itemStyle) {
if (labelDetail == null || itemStyle == null)
throw new NullPointerException();
return setLabelDetail(new DialogText.Builder(labelDetail).setDialogTextStyle(itemStyle).build());
}
/**
* 设置详情信息内容
*
* @param resId 弹窗内容
* @param itemStyle 样式
* @return 弹窗对象
*/
public DialogHud setLabelDetail(@StringRes int resId, DialogTextStyle itemStyle) {
return setLabelDetail(mContext.getResources().getString(resId), itemStyle);
}
/**
* 设置详情信息内容
*
* @param labelDetail 弹窗内容
* @param onClickListener 点击事件
* @param itemStyle 样式
* @return 弹窗对象
*/
public DialogHud setLabelDetail(String labelDetail, View.OnClickListener onClickListener, DialogTextStyle itemStyle) {
if (labelDetail == null || itemStyle == null || onClickListener == null)
throw new NullPointerException();
return setLabelDetail(new DialogText.Builder(labelDetail).setDialogTextStyle(itemStyle).setOnclickListener(onClickListener).build());
}
/**
* 设置详情信息内容
*
* @param resId 弹窗内容
* @param onClickListener 点击事件
* @param itemStyle 样式
* @return 弹窗对象
*/
public DialogHud setLabelDetail(@StringRes int resId, View.OnClickListener onClickListener, DialogTextStyle itemStyle) {
return setLabelDetail(mContext.getResources().getString(resId), onClickListener, itemStyle);
}
/**
* 设置详情信息内容
*
* @param labelDetail 详情内容
* @return 弹窗对象
*/
public DialogHud setLabelDetail(DialogText labelDetail) {
if (labelDetail == null)
throw new NullPointerException("content can't be null!");
if (labelDetail.getText() != null)
mDetailLabel.setText(labelDetail.getText());
if (labelDetail.getOnClickListener() != null)
mDetailLabel.setOnClickListener(labelDetail.getOnClickListener());
if (labelDetail.getDialogTextStyle() != null) {
mDetailLabel.setTextSize(labelDetail.getDialogTextStyle().getTextSize());
mDetailLabel.setTextColor(labelDetail.getDialogTextStyle().getColor());
mDetailLabel.setTypeface(labelDetail.getDialogTextStyle().getTypeface());
}
mShowDetailLabel = true;
return this;
}
/**
* 设置内容样式
*
* @param style 样式
* @return 弹窗对象
*/
public DialogHud setLabelDetailStyle(DialogTextStyle style) {
if (style == null)
throw new NullPointerException();
mDetailLabel.setTextSize(style.getTextSize());
mDetailLabel.setTextColor(style.getColor());
mDetailLabel.setTypeface(style.getTypeface());
return this;
}
/**
* 设置内容点击事件
*
* @param onClickListener 点击事件
* @return 弹窗对象
*/
public DialogHud setLabelDetailClickListener(View.OnClickListener onClickListener) {
if (onClickListener == null)
throw new NullPointerException();
mDetailLabel.setOnClickListener(onClickListener);
return this;
}
/**
* 设置弹窗宽度所占比例
*
* @param widthRatio 宽度比例
* @return 弹窗对象
*/
public DialogHud setWidthRatio(float widthRatio) {
if (widthRatio < 0 || widthRatio > 1) {
throw new IllegalArgumentException("width ratio should not less than zero and bigger than one!");
}
Window dialogWindow = mDialog.getWindow();
WindowManager.LayoutParams lp = dialogWindow.getAttributes();
lp.width = (int) (DisplayUtil.getInstance(mContext).getScreenWidth() * widthRatio);
dialogWindow.setAttributes(lp);
return this;
}
/**
* 设置弹窗宽度
*
* @param width 宽度 单位:dp
* @return 弹窗对象
*/
public DialogHud setWidth(float width) {
if (width < 0 || width > DisplayUtil.getInstance(mContext).getScreenWidth()) {
throw new IllegalArgumentException("width should not less than zero and bigger than screen width!");
}
Window dialogWindow = mDialog.getWindow();
WindowManager.LayoutParams lp = dialogWindow.getAttributes();
lp.width = UIUtil.dipToPx(mContext, width);
dialogWindow.setAttributes(lp);
return this;
}
/**
* 设置弹窗高度所占比例
*
* @param heightRatio 高度比例
* @return 弹窗对象
*/
public DialogHud setHeightRatio(float heightRatio) {
if (heightRatio < 0 || heightRatio > 1) {
throw new IllegalArgumentException("width ratio should not less than zero and bigger than one!");
}
Window dialogWindow = mDialog.getWindow();
WindowManager.LayoutParams lp = dialogWindow.getAttributes();
lp.height = (int) (DisplayUtil.getInstance(mContext).getScreenHeight() * heightRatio);
dialogWindow.setAttributes(lp);
return this;
}
/**
* 设置弹窗高度
*
* @param height 高度 单位:dp
* @return 弹窗对象
*/
public DialogHud setHeight(float height) {
if (height < 0 || height > DisplayUtil.getInstance(mContext).getScreenHeight()) {
throw new IllegalArgumentException("height should not less than zero and bigger than screen height!");
}
Window dialogWindow = mDialog.getWindow();
WindowManager.LayoutParams lp = dialogWindow.getAttributes();
lp.height = UIUtil.dipToPx(mContext, height);
dialogWindow.setAttributes(lp);
return this;
}
/**
* 设置循环图像
*
* @param resId resource id
* @return 弹窗对象
*/
public DialogHud setLoadingImage(@DrawableRes int resId) {
return setLoadingImage(ResourcesCompat.getDrawable(mContext.getResources(), resId, mContext.getTheme()));
}
/**
* 设置循环图像
*
* @param drawable 循环图像
* @return 弹窗对象
*/
public DialogHud setLoadingImage(Drawable drawable) {
if (drawable == null)
throw new NullPointerException();
mLoadingView.setImageDrawable(drawable);
return this;
}
/**
* 设置循环图像
*
* @param bitmap 循环图像
* @return 弹窗对象
*/
public DialogHud setLoadingImage(Bitmap bitmap) {
if (bitmap == null)
throw new NullPointerException();
mLoadingView.setImageBitmap(bitmap);
return this;
}
/**
* 设置循环图像
*
* @param uri 循环图像
* @return 弹窗对象
*/
public DialogHud setLoadingImage(Uri uri) {
if (uri == null)
throw new NullPointerException();
mLoadingView.setImageURI(uri);
return this;
}
/**
* 设置背景颜色
*
* @param resId 颜色id
* @return 弹窗对象
*/
public DialogHud setBackgroundColor(@ColorRes int resId) {
ConstraintLayout constraintLayout = mDialog.findViewById(R.id.dialog_hud);
GradientDrawable drawable = (GradientDrawable) constraintLayout.getBackground();
drawable.setColor(mContext.getResources().getColor(resId));
return this;
}
/**
* 设置背景颜色
*
* @param color 颜色
* @return 弹窗对象
*/
public DialogHud setBackgroundColor(String color) {
ConstraintLayout constraintLayout = mDialog.findViewById(R.id.dialog_hud);
GradientDrawable drawable = (GradientDrawable) constraintLayout.getBackground();
drawable.setColor(Color.parseColor(color));
return this;
}
/**
* 设置背景色
*
* @param amount 背景暗色程度
* @return 弹窗对象
*/
public DialogHud setDimAmount(float amount) {
if (amount < 0 || amount > 1) {
throw new IllegalArgumentException("dim amount should not less than zero and bigger than one!");
}
Window dialogWindow = mDialog.getWindow();
dialogWindow.setDimAmount(amount);
return this;
}
/**
* 停止动画转动
*
* @return 弹窗
*/
public DialogHud stopAnimation() {
mLoadingView.clearAnimation();
return this;
}
/**
* 开始动画转动
*
* @return 弹窗
*/
public DialogHud startAnimation() {
mLoadingView.start();
return this;
}
/**
* 设置弹窗是否可以使用返回键消失
*
* @param cancelable true: 可以使用返回键使其消失 反正不可以
* @return 弹窗对象
*/
public DialogHud setCancelable(boolean cancelable) {
mDialog.setCancelable(cancelable);
return this;
}
/**
* 设置点击外部区域,弹窗是否消失
*
* @param canceledOnTouchOutside true: 点击外部区域,弹窗消失 反正不消失
* @return 弹窗对象
*/
public DialogHud setCanceledOnTouchOutside(boolean canceledOnTouchOutside) {
mDialog.setCanceledOnTouchOutside(canceledOnTouchOutside);
return this;
}
/**
* 设置详情信息可见性
*
* @param showLabel 详情信息可见性
* @return 弹窗对象
*/
public DialogHud setShowLabel(boolean showLabel) {
this.mShowLabel = showLabel;
mLabel.setVisibility(showLabel ? View.VISIBLE : View.GONE);
return this;
}
/**
* 设置详情信息按钮可见性
*
* @param showLabelDetail 详情信息按钮可见性
* @return 弹窗对象
*/
public DialogHud setShowLabelDetail(boolean showLabelDetail) {
this.mShowDetailLabel = showLabelDetail;
mDetailLabel.setVisibility(showLabelDetail ? View.VISIBLE : View.GONE);
return this;
}
/**
* 设置弹窗自动消失
*
* @param automaticDisappear true: 自动消失 false 不自动消失
* @return 弹窗对象
*/
public DialogHud setAutomaticDisappear(boolean automaticDisappear) {
this.mAutomaticDisappear = automaticDisappear;
if (mode == Mode.ANNULAR)
mProgressView.setAutoDismiss(automaticDisappear);
return this;
}
/**
* 设置弹窗自动消失时间
*
* @param disappearTime 自动消失时间 单位: ms
* @return 弹窗对象
*/
public DialogHud setDisappearTime(int disappearTime) {
if (disappearTime < 0) {
throw new IllegalArgumentException("disappearTime should not less than zero!");
}
this.mDisappearTime = disappearTime;
if (mode == Mode.ANNULAR)
mProgressView.setDismissTime(disappearTime);
return this;
}
/**
* 展示加载弹窗
*
* @param progress 当前进度
* @return 弹窗对象
*/
public DialogHud setProgress(float progress) {
if (progress < 0 || progress > mProgressView.getMaxProgress()) {
throw new IllegalArgumentException("progress should not less than zero and bigger than maxProgress!");
}
mProgressView.setProgress(progress, this);
return this;
}
/**
* 设置进度最大值
*
* @param maxProgress 进度最大值
* @return 弹窗对象
*/
public DialogHud setMaxProgress(float maxProgress) {
if (maxProgress < 0) {
throw new IllegalArgumentException("maxProgress should not less than zero!");
}
progress();
mProgressView.setMaxProgress(maxProgress);
return this;
}
/**
* 设置是否显示进度条内部文字
*
* @param showProgressText 是否显示进度条内部文字
* @return 弹窗对象
*/
public DialogHud setShowProgressText(boolean showProgressText) {
mProgressView.setShowProgressText(showProgressText);
return this;
}
/**
* 设置进度条内部字体大小
*
* @param progressTextSize 进度条内部字体大小
* @return 弹窗对象
*/
public DialogHud setProgressTextSize(float progressTextSize) {
mProgressView.setProgressTextSize(progressTextSize);
return this;
}
/**
* 设置进度条内部字体颜色
*
* @param resId 进度条内部字体颜色
* @return 弹窗对象
*/
public DialogHud setProgressTextColor(@ColorRes int resId) {
mProgressView.setProgressTextColor(ContextCompat.getColor(mContext, resId));
return this;
}
/**
* 设置进度条内部字体颜色
*
* @param color 进度条内部字体颜色
* @return 弹窗对象
*/
public DialogHud setProgressTextColor(String color) {
if (color == null)
throw new NullPointerException();
mProgressView.setProgressTextColor(Color.parseColor(color));
return this;
}
/**
* 设置进度条内部字体样式
*
* @param typeface 进度条内部字体样式
* @return 弹窗对象
*/
public DialogHud setProgressTextTypeface(Typeface typeface) {
if (typeface == null)
throw new NullPointerException();
mProgressView.setProgressTextTypeface(typeface);
return this;
}
/**
* 设置进度条颜色
*
* @param color 进度条颜色
* @return 弹窗对象
*/
public DialogHud setProgressColor(String color) {
if (color == null)
throw new NullPointerException();
mProgressView.setProgressColor(Color.parseColor(color));
return this;
}
/**
* 设置进度条颜色
*
* @param resId 进度条颜色
* @return 弹窗对象
*/
public DialogHud setProgressColor(@ColorRes int resId) {
mProgressView.setProgressColor(ContextCompat.getColor(mContext, resId));
return this;
}
/**
* 设置进度条背景颜色
*
* @param color 进度条背景颜色
* @return 弹窗对象
*/
public DialogHud setProgressBgColor(String color) {
if (color == null)
throw new NullPointerException();
mProgressView.setProgressBgColor(Color.parseColor(color));
return this;
}
/**
* 设置进度条背景颜色
*
* @param resId 进度条背景颜色
* @return 弹窗对象
*/
public DialogHud setProgressBgColor(@ColorRes int resId) {
mProgressView.setProgressBgColor(ContextCompat.getColor(mContext, resId));
return this;
}
/**
* 设置进度条半径
*
* @param progressRadius 进度条半径 单位: dp
* @return 弹窗对象
*/
public DialogHud setProgressRadius(float progressRadius) {
if (progressRadius < 0)
throw new IllegalArgumentException("progress radius should not less than zero!");
mProgressView.setProgressRadius(progressRadius);
return this;
}
/**
* 设置进度条宽度
*
* @param progressWidth 进度条宽度 单位: dp
* @return 弹窗对象
*/
public DialogHud setProgressWidth(float progressWidth) {
if (progressWidth < 0)
throw new IllegalArgumentException("progress width should not less than zero!");
mProgressView.setProgressWidth(progressWidth);
return this;
}
/**
* 设置进度条方向
*
* @param direction 方向
* @return 弹窗对象
*/
public DialogHud setDirection(ProgressView.Direction direction) {
mProgressView.setDirection(direction.getDirection());
return this;
}
/**
* 设置显示模式
*
* @param mode 显示模式 {@link Mode}
* @return 弹窗对象
*/
public DialogHud setMode(Mode mode) {
this.mode = mode;
switch (mode) {
case LOADING:
showLoading();
break;
case ANNULAR:
progress();
break;
case FAIL:
showFail();
break;
case SUCCESS:
showSuccess();
break;
}
return this;
}
/**
* 展示圆形进度条
*/
private void progress() {
mShowLoading = false;
mShowProgress = true;
}
/**
* 展示loading动画
*/
private void loading() {
mShowLoading = true;
mShowProgress = false;
}
/**
* 设置可见性
*/
private void setVisibility() {
mLabel.setVisibility(mShowLabel ? View.VISIBLE : View.GONE);
mDetailLabel.setVisibility(mShowDetailLabel ? View.VISIBLE : View.GONE);
mLoadingView.setVisibility(mShowLoading ? View.VISIBLE : View.GONE);
mProgressView.setVisibility(mShowProgress ? View.VISIBLE : View.GONE);
}
/**
* 设置可见性,并展示该弹窗
*/
public void show() {
setVisibility();
if (!mDialog.isShowing())
mDialog.show();
if (mAutomaticDisappear)
if (mode != Mode.ANNULAR) {
new Timer().schedule(new TimerTask() {
@Override
public void run() {
mDialog.dismiss();
}
}, mDisappearTime);
}
}
/**
* 消失
*/
public void dismiss() {
mDialog.dismiss();
}
/**
* 设置弹窗显示加载成功
*/
private void showSuccess() {
loading();
setLoadingImage(R.drawable.ic_load_success);
stopAnimation();
}
/**
* 设置弹窗显示加载成功
*/
private void showLoading() {
loading();
setLoadingImage(R.drawable.ic_progress_view);
startAnimation();
}
/**
* 设置弹窗显示加载失败
*/
private void showFail() {
loading();
setLoadingImage(R.drawable.ic_load_fail);
stopAnimation();
}
}
| java |
LAS VEGAS, NV (June 18, 2008) – Optoma, a leading manufacturer of award-winning digital projection and display devices, introduces the first Pico projector based on the DLP Pico chipset. Smaller than most smart phones, this new micro-portable projector fits in your palm and is the ideal companion to ultra-portable media devices such as iPods®, PDA's, smart phones and digital cameras.
When connected to an ultra-mobile device, the four-ounce Optoma Pico Projector allows users to share photos and videos, and enjoy a far better visual experience with an image that is up to 100 times larger than the small screen of the source device.
"The Pico Projector is the next step in sharing visual media for today's ultra-mobile consumers. Fitting in your shirt pocket, the Pico Projector can display pictures, videos or any content from a mobile media player or smart phone" says Jon Grodem, director of Product Management for Optoma. "Optoma's Pico breaks free from the limitations of the 2 or 3 inch displays found on today's mobile devices. This category defining projector creates a new benchmark for sharing content-on-the-go."
Optoma's Pico Projector utilizes the latest LED technology resulting in a colorful and vivid image. The small and powerful unit is based upon DLP technology assuring the highest possible contrast.
"The handheld Pico projector represents the latest advancement in the mobile device display industry. We view the Pico projector as a completely new and exciting market – one which dramatically expands the reach and potential of projection products into new end user applications," says Dr. William Coggshall, founder and president of Pacific Media Associates.
The product will be first shown at Texas Instrument's InfoComm 2008 booth C909 and will be available in limited distribution in Europe and Asia in late 2008, with a worldwide launch in 2009.
| english |
"The NHS is traditionally like an oil tanker – it moves slowly. For 39 separate units to ask for this, this is something that isn't at the beginning any more, it's now mainstream."
Dr Derek Connolly, a consultant interventional cardiologist at the Sandwell and West Birmingham Hospitals NHS Trust, has been using HeartFlow's technology for around a year. Over the past 12 months, he's seen interest in using the tech, which helps doctors see inside the coronary arteries, grow in the UK.
HeartFlow, a medtech company based in California, recently received $500m in funding to help it commercialise its technology. Its algorithms analyse medical scans to produce 3D reconstructions of the coronary arteries, and makes use of machine learning and AI to improve accuracy.
The coronary arteries are the vessels that supply the heart with blood. If those vessels get narrowed – due to smoking or high cholesterol, for example – the heart doesn't get the blood it needs to keep on working effectively, and that can lead to a heart attack. Heart disease is the biggest killer of men in the UK, and the second biggest cause of mortality overall, accounting for over one in 10 deaths.
In order to bring down the number of people dying from heart disease, doctors would like to be able to catch patients before they arrive in A&E – an ounce of prevention really is worth a pound of cure. "By the time they've come to me, they've already had a heart attack. In many ways, what would be nicer would be if we could catch them before they've had a heart attack and change the future," Connolly said.
And that's where HeartFlow comes in. The technology, which grew out of Stanford University research into fluid dynamics, takes data from CT scans of patients and builds a 3D representation of their hearts. That allows doctors to view exactly where, and how significantly, the coronary arteries are narrowed.
SEE: How to implement AI and machine learning (ZDNet special report) | Download the report as a PDF (TechRepublic)
While it may sound simple, it marks a significant departure from previous practice – and one that could spare patients a lot of stress, waiting around, and unnecessary invasive tests.
For any patient who turns up at the hospital with chest pain that's thought to be due to heart disease and then referred to the rapid access chest pain clinic, the first-line test is a cardiac CT. Those patients with evidence of seriously narrowed arteries may be offered an invasive angiogram – a procedure that sees them wheeled into the catheter laboratory and a wire inserted into a coronary artery, and the pressure measured at the top and bottom of the vessels. If the difference, known as fractional flow reserve (FFR), is under 80 percent, the patient will need stents – tubes put inside the arteries to keep them open.
"Cardiac CT is really good, it's the most sensitive and specific test we've got, but it tends to exaggerate disease – the narrowing looks worse on cardiac CT than it does on invasive angiograms. The question is could we take that technology that we use in the cath lab and use it downstream?" said Connolly.
By studying the flow of a material called contrast through patients' arteries during the CT scan of their heart, HeartFlow can calculate a patient's FFR without the need for the invasive angiography.
That's good news for the patient, says Connolly, who is spared the risks associated with the invasive testing. For example, the radiation a patient absorbs in a cardiac CT is a quarter of the amount they absorb in an invasive angiogram. "The more radiation you get, the more likely you are to induce a cancer, particularly in younger patients. The less radiation you use, the better. Secondly, [cardiac CT] saves on danger. For every diagnostic angiogram we do, one in 3,000 of the patients could have a serious illness or die. Because we're touching the coronary arteries, we can rip them and that's not unheard of. It's much safer to have a CT than to have an invasive angiogram."
SEE: Managing AI and ML in the enterprise (ZDNet special report) | Download the report as a PDF (TechRepublic)
By using HeartFlow to calculate the FFR, fewer patients end up having an invasive angiogram and the risks that go with it – and the ones that do go on to have an angiogram are the people that really need it.
"For every five patients [that have a CT and HeartFlow], four patients go home knowing they don't need anything else. Half of those will be on cholesterol tablets, because they have early disease, half have normal coronary arteries. The one in five historically we send for a catheter angiogram, now seven out of 10 don't need to go to the cath lab for an invasive procedure, an operation, because the HeartFlow rules out that they have a significant stenosis," Connolly said.
Not only does it make life easier for patients, it makes life easier and cheaper for the hospitals – fewer invasive angiograms are done on those that don't need them, saving the money that would be spent on unnecessary procedures and freeing up the labs to only investigate those that are really at risk of having serious cardiovascular disease. "If we take someone to the cath lab, and they have normal coronaries, it takes up to an hour and that's a slot wasted. If we take someone where we think they're going to need a stent, that's useful time."
At the moment, the CT scans done in Birmingham are done and uploaded to HeartFlow's cloud. Once the company's algorithms have worked on the scans, it reports the results – for Birmingham patients, it's around three hours later. Connolly expects that delay to come down, perhaps to the point where a patient can have a scan, go for a coffee, and have the results by the time they've finished their drink.
SEE: Sensor'd enterprise: IoT, ML, and big data (ZDNet special report) | Download the report as a PDF (TechRepublic)
While currently, the scans are done only on patients with cardiac chest pain, if the costs and time lag come down, the testing could be done on broader populations of people to diagnose the beginnings of heart disease and work to prevent it progressing.
"The next question is, what if you take a high-risk population, say, patients that have diabetes, high blood pressure, high cholesterol, or they're heavy smokers, or all of the above – what percentage of those will have disease? The CT scanner might tell us. Then the question is, if they have narrowing [of their coronary arteries], would they benefit just from tablets, or bypass surgery, or stents? I think the future is going to be incredibly bright."
While CT and HeartFlow can currently only show whether patients have significant narrowing in their arteries and should have stents put in, in future the system could give doctors an even greater steer on what to do next. Connolly predicts that before too long, HeartFlow will be able to suggest not only if stents are required, but also what size should be used, where it should be positioned, and what outcome might be expected, as its machine learning works on a greater and greater number of scans.
"At the moment, HeartFlow is good at predicting who doesn't need stents. Going forward, we should be able to predict what would happen if we put a stent in and that will help us make a clinical judgment as to whether a stent is right for the patient, or not."
The cardiologist rejects concerns that the growing use of AI in medicine could see technology de-skilling doctors, and instead views it as a way of giving physicians an additional evidence base to draw on.
"Do I fear a machine telling me the probability to 17 decimal points the patient would be better with treatment x or y? Not in the slightest. We aren't there yet, but clearly technology has its uses and the era of the doctor just saying 'I think', with not much evidence, is going to disappear and we'll be able to plug people into the experience of hundreds of thousands or millions of patients."
For a health service in the middle of funding squeeze, can new technologies help to improve care and cut costs?
Digital transformation can help the NHS make better use of scarce resources. That means rethinking some of the assumptions around healthcare.
The wrong attitudes towards risk and complexity could leave you open to attack.
Physician, reboot thyself! The health service is caught between its creaky past and a shiny future. But change is needed, and fast.
Healthcare security nightmare: UK's NHS lost nearly 10K patient records last year (TechRepublic)
Despite having electronic record systems in place, 94% of NHS Trusts still use handwritten notes for patient record keeping, according to a report from Parliament Street.
Government websites hijacked by cryptocurrency-mining malware (CNET)
Over 4,000 websites worldwide were affected by the malware.
| english |
India vs Australia 2020: Indian cricketers began their preparations for the second Test against Australia in Melbourne.
Indian cricket team is now focused on the second Test as they began preparations from Wednesday in Melbourne seeking to bounce back after a crushing eight-wicket defeat on Saturday. The team will be led by Ajinkya Rahane for the remaining matches with Virat Kohli returning home on paternity leave.
Among those who first hit the nets included Rahane, Cheteshwar Pujara, Mayank Agarwal and Ravindra Jadeja. Test hopeful Shubman Gill and the struggling Prithvi Shaw also sweated it out.
Shaw was out in similar fashion in both the innings of the Adelaide Test after leaving a gap between the bat and pads to be bowled which led to heavy criticism. There have been calls to replace him with Shubman Gill who hit a fifty in a tour match against Australia A before the start of the series.
However, it’s still not clear whether Gill will make his Test debut at the Melbourne Cricket Ground or if Shaw will be given another chances despite twin failures.
Meanwhile, India may shore up their batting for the second Test meaning Rishabh Pant could get a game replacing Wriddhiman Saha. Pant too batted in the nets and was seen having a discussion with head coach Ravi Shastri.
KL Rahul, who last played a Test in August 2019, is also likely to make his comeback in place of Kohli.
With Mohammed Shami also out of the tour with a fractured forearm, there’s a three-way battle between Navdeep Saini, Shardul Thakur and Mohammed Siraj for the slot of a third pacer.
Jadeja also bowled during the session and is also in contention to get a game MCG, possibly replacing Hanuma Vihari. The team also did some catching practice considering how poor they have been in the department throughout the tour.
One of those drops proved costly in the first Test as Australia captain Tim Paine was reprieved early in his innings and he went on to play a match-defining knock 0f 74 cutting down India’s lead significantly.
The second Test gets underway from December 26. | english |
This is not medical advice. It is based on various reports and academic papers published in recent days. It is hoped that some light will be shed on temperature and the spread of COVID-19 virus.
There are now some early hints that COVID-19 may vary with the seasons. An unpublished analysis comparing the weather in 500 locations around the world where there have been COVID-19 cases seems to suggest a link between the spread of the virus and temperature, wind speed and relative humidity.
The study has also shown higher temperatures are linked to lower incidence of COVID-19, but also says that temperature alone cannot account for the global variation in incidence. On the other hand, the Indian Council of Medical Research (ICMR) has dismissed any impact on spread of coronavirus due to temperature. This article is a deliberation of the study done by scientists.
The coronavirus belongs to the family of so-called ‘enveloped Viruses’, which have an oily coat known as a lipid bilayer. These viruses are studded with proteins that stick out like spikes of a crown which gives them the name – Corona, which is Latin for the ‘crown’. Recent research on other enveloped viruses had found that this oily coat makes the viruses more susceptible to heat than those that do not have one. In colder conditions, the oily coat hardens into a rubber-like state to protect the virus and give it a longer life outside the body, in warmer zones it just melts down, exposing and destroying the virus.
Scientists from the Massachusetts Institute of Technology (MIT) in the USA have accessed data on the number of COVID-19 infections from different parts of the world and compared it with parameters of temperature and humidity. Their findings suggest that warm and humid weather is linked to the slower spread of the virus. Accordingly, Asian countries experiencing monsoon may see lesser transmission of the virus. Ninety per cent of the coronavirus till 28th March has occurred in regions with temperature between 3 and 17 degrees Celsius.
Iran, which has accounted for about 90% of the coronavirus cases in the Middle East, is unique as it sits on a plateau where winter conditions resemble those of more northerly countries. At the same time, many South-East Asian countries with close business and tourism links to China have seen surprisingly few cases, even if we assume that their less developed public health systems are not properly detecting them. Thailand, Indonesia and the Philippines have each seen fewer cases than Estonia, Slovenia or Iceland, despite a combined population more than 100 times as large.
In regards to temperature, the coronavirus can remain intact at 4-100 Celsius for a longer period, with the optimal temperature for the spread being 8. 720 Celsius. At around 23-260 Celsius, the virus is no longer efficiently transmitted, but at 300 Celsius, it gets inactivated. In India and other countries with warm summers, the virus could be challenged at temperatures of 350 Celsius and more.
Temperature cannot be discounted as being a very important factor in how countermeasures should be drawn for the future containment of the virus. Countries with lower temperatures and lesser humi-dity create a better environment for the spread of the virus, whereas countries with warmer weather may have a better chance of containment because of this factor.
6A. Conclusions of the Hong Kong University : Two scientists, Dr. Malik Peiris and Dr. Seto Wing Hong from the Hong Kong University have proved that low temperatures and low relative humidity had allowed the SARS virus, which was a coronavirus too, to survive much longer than they did in high temperatures and humidity. The HKU team argued that this was the reason why warm and humid South-East Asian countries did not have SARS outbreaks, unlike Hong Kong and Singapore where there was intensive use of air-conditioning.
6B. Studied research in Wuhan, China and its limitations : Another intriguing study of scientists in China too suggests the relationship between how deadly COVID-19 can be and the weather conditions. They analysed 2,300 deaths in Wuhan and compared them to the humidity, temperature and pollution levels on the day it occurred. Although it has yet to be published in an academic journal, their research suggests mortality rates were lower on days when the humidity levels and temperatures were higher. Their analysis also suggests that on days where the maximum and minimum temperature ranges were greater, there were higher levels of mortality. But this work is largely also based on computer modelling, so the exact nature of this relationship, and whether it will be seen in other parts of the world, is still to be explored.
Dr. Alan Evangelista, a microbiology and virology professor at St. Christopher’s Hospital for Children in Philadelphia found results similar to the other studies. His research showed that as humidity increases, the viral droplet size becomes larger and settles out of the air rapidly. In contrast, in low humidity, there is rapid evaporation of respiratory droplets and they remain airborne for prolonged periods, increasing the time and distance over which transmission can occur.
University of Utah physicists Saveez Saffarian and Michael Vershinin are conducting studies on how the virus’ protective outer shell responds to changes in heat and humidity. According to the duo, “Viruses are not able to do anything on their own, as they are simply shells with genetic instructions tucked inside; when a virus invades a host’s cells, it uses that cell’s machinery to replicate itself, over and over again. What we know is that the droplets are better at staying afloat when the air is cold and dry, when the air is humid and warm, they fall to the ground more quickly, making transmission harder”.
Dr. Mohammad Sajadi, an associate professor of medicine at the University of Maryland too thinks weather might play a role. He and colleagues found a striking temperature similarity among regions with sustained outbreaks of COVID-19 – They all have outdoor temperatures between 5 and 11 degrees Celsius.
Elizabeth McGraw, Director of the Center for Infectious Disease Dynamics at Pennsylvania State University, explained to Time Magazine, “The droplets that carry Viruses do not stay suspended in the humid air as long, and the warmer temperatures lead to more rapid Virus degradation”. Recent comments attributed to Professor John Nicholls from the University of Hong Kong’s Department of Pathology suggests that weather conditions will be a key factor in the demise of the coronavirus. Sunlight will cut the virus’ ability to grow in half, so the half-life will be two-and-a-half minutes and in the dark, it is about 13–20 minutes. Sunlight is really good at killing viruses’, he said. “That’s why I believe that Australia and the southern hemisphere will not see any great infection rates because they have lots of sunlight and they are in the middle of summer”, he added.
The ‘Global Virus Network’ has predicted that weather modelling can explain the spread of COVID-19. Their observation is that the spread of COVID-19 is along a narrow corridor of 30-50” Latitudes at consistently similar weather conditions of 5 to 11 degree Celsius and 47% to 79% humidity. They also suggested that a temperature rise of 12 degrees Celsius or higher, the viral transmission may be difficult.
It is a hot topic now whether the summer of our country will be able to kill the virus. We still don’t know. So what will be the fate of the virus in the scorching Indian summer is a valid speculation. Amidst the fearful theories, this offers you a ray of hope. But we have to remember that all these conjectures are without firm evidence. We have to hold tight till late April, maintain the lockdown properly, adhere to social distancing and hygiene and leave the rest to scorching sun rays.
Realise that Policemen who get assaulted by Tablighis are arrogant with the Hindus ! Will the Telangana Government ever try to use the worship places of other religions like this ?
Siddipet (Telangana) – The District Police have arrested M Vishnuvardhan Reddy on charges of criminal conspiracy, sedition, promoting enmity among different communities and issuing statements amounting to public mischief after he opposed the use of a guest house of a Temple for accommodating a section of the minorities who are suspected coronavirus affected persons.
He is accused of spreading rumours against the Devasthanam of Sri Varasiddhi Vinayaka Swami Temple at Kanipakam near Chittoor which administered by the Endow-ments Department. Reddy had used his social media platforms to spread news that the Department was using the Devasthanam to accommodate coronavirus affected persons. He accused the Temple authorities of hurting the sentiments of devotees.
Reacting to the posts, the Temple authorities had issued a clarification that it was not the Devasthanam, but only a guest house that was converted into a quarantine facility. Despite the clarification, the accused stepped up his campaign, forcing the Devasthanam Executive Officer to approach SP and lodge a complaint against the accused. | english |
{"relation":{"__op":"AddRelation","objects":[{"__type":"Pointer","className":"user","objectId":"epaKcaYZqsREdSMY"}]},"objectId":"relation_user_id","createDate":"2015-08-11T09:44:20.873Z"} | json |
Hyderabad can soon boast of an exclusive Islamic Art Gallery. Work is on at the Salarjung Museum (SJM) here to put up a huge gallery which will have everything about Islamic art under one roof.
The 26,000 sq ft gallery is being readied on the second floor of the Museum's eastern block at a cost of Rs. 4 crore.
The SJM plans to display more than 2,500 exhibits such as swords, textiles, manuscripts, Persian carpets, holy Quran, jade, porcelain and glass objects containing Quranic inscriptions in the new gallery. At present, these objects are on display in different galleries.
“The British Museum and Victoria Albert Museum in London have an Islamic art gallery. In India, no museum has such a gallery,” said A. Nagender Reddy, director, SJM.
The SJM library is a veritable treasure trove of rare books and manuscripts. It has more than 56,000 books and around 9,000 manuscripts in different languages. Visitors will now be able to see all of the 2,600 Arabic manuscript collection, 4,800 Persian, 1,000 Urdu, 25 Turkish and nearly 1,400 lose panels of calligraphy at one place.
Not just this. The SJM library has a rich collection of the holy Quran. It has 365 copies of Al Quran in Kufi, Naskh, Nataliq, Raihan and Thulth scripts. Most of these are illustrated and decorated. A jade ‘rehal' (book stand) and ‘zafar takia' are something to look at.
The SJM boasts of the oldest folio of Quran on parchment in the Kufi script belonging to the ninth century representing rare calligraphy work. The miniature Quran measuring two cm. by three cm. printed in 31 folios is simply awe-inspiring. There are only two such small Qurans – one in Iran and another at SJM. All these will be shifted to the new gallery.
Authorities also propose to shift the Egyptian and Syrian collections and the 200-odd rosaries to the new gallery. The prayer beads are now languishing in the museum store. Also, the archer rings of the Moghal king, Shahjhan, which are in dark green jade will find place in the Islamic art gallery.
At present, the museum artefacts are categorised as Indian art, Middle Eastern art, European and Far Eastern collection. “Now we want to present all the Islamic art at one place,” Mr. Reddy said. | english |
'use strict'
import React from 'react'
import {render} from 'react-dom'
import {Provider} from 'react-redux'
import {createStore, applyMiddleware} from 'redux'
import reducer from './redux-reducer'
import Schedule from './components/Schedule'
import thunk from 'redux-thunk'
const middleware = [thunk]
const store = applyMiddleware(...middleware)(createStore)(reducer, window.__dehydratedState)
render(
<Provider store={store}>
<Schedule />
</Provider>,
document.getElementById('app-container')
)
| javascript |
{
"title": "Портал: Личный кабинет",
"changeLanguage": "Изменить язык на English",
"fontSize": {
"title": "Изменить размер шрифта",
"small": "Маленький",
"medium": "Средний",
"big": "Большой"
},
"new": {
"title": "Портал: создание нового пользователя или контакта"
},
"checkUsername": {
"busy": "Пользователь \"{{current}}\" занят",
"free": "Пользователь \"{{current}}\" свободен"
},
"edit": {
"title": "Портал: редактирование пользователя \"{{current}}\"",
"notFound": "Нет вариантов",
"clear": "Очистить",
"open": "Открыть",
"loading": "Загрузка..."
},
"btnEdit": "Анкета",
"btnEquipment": "Закрепленное оборудование",
"searchPlaceholder": "Найти заявку...",
"notFound": "Карточка сотрудника не найдена",
"equipment": {
"title": "Закреплённое оборудование",
"number": "Инвентарный номер",
"name": "Наименование",
"count": "Количество"
}
}
| json |
<reponame>alegione/CodonShuffle<filename>lib/EMBOSS-6.6.0/jemboss/org/emboss/jemboss/draw/GeneticMarker.java
/********************************************************************
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*
* @author: Copyright (C) <NAME>
*
********************************************************************/
package org.emboss.jemboss.draw;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.table.AbstractTableModel;
import javax.swing.table.TableCellRenderer;
import javax.swing.border.Border;
import java.awt.event.*;
import java.awt.*;
import java.util.Vector;
import java.awt.Dimension;
import org.emboss.jemboss.gui.form.TextFieldInt;
import org.emboss.jemboss.gui.form.TextFieldFloat;
public class GeneticMarker extends JPanel
implements TableModelListener
{
private DNADraw draw;
private JTable markerTable;
private MarkerTableModel markerModel;
public GeneticMarker(final DNADraw draw,final Vector block)
{
super();
this.draw = draw;
Box bdown = Box.createVerticalBox();
Dimension d = new Dimension(100,25);
bdown.add(Box.createVerticalStrut(4));
Vector columnNames = new Vector();
columnNames.add("Label");
columnNames.add("Start");
columnNames.add("End");
columnNames.add("Colour");
columnNames.add("Line width");
columnNames.add("Arrow head");
columnNames.add("Arrow tail");
markerModel =
new MarkerTableModel(block,columnNames);
markerTable = new JTable(markerModel);
markerTable.getModel().addTableModelListener(this);
setUpColorRenderer(markerTable);
setUpColorEditor(markerTable);
// set number of clicks to one
DefaultCellEditor edFloat = (DefaultCellEditor)
markerTable.getDefaultEditor(Float.class);
edFloat.setClickCountToStart(1);
JScrollPane scrollMarker = new JScrollPane(markerTable);
scrollMarker.setPreferredSize(new Dimension(200,150));
scrollMarker.getViewport().setBackground(Color.white);
bdown.add(scrollMarker);
bdown.add(Box.createVerticalStrut(4));
bdown.add(new JSeparator());
// Data entry
bdown.add(Box.createVerticalStrut(4));
Box bacross = Box.createHorizontalBox();
final TextFieldInt start = new TextFieldInt();
start.setMaximumSize(d);
start.setPreferredSize(d);
bacross.add(new JLabel("start:"));
bacross.add(start);
bacross.add(Box.createHorizontalStrut(4));
final TextFieldInt end = new TextFieldInt();
end.setMaximumSize(d);
end.setPreferredSize(d);
bacross.add(new JLabel(" stop:"));
bacross.add(end);
bacross.add(Box.createHorizontalStrut(4));
// final ColourPanel markerColour = new ColourPanel("Feature Colour",
// Color.red);
final JButton markerColour = setUpColorButton(Color.red);
bacross.add(new JLabel(" colour:"));
bacross.add(markerColour);
bacross.add(Box.createHorizontalStrut(4));
final TextFieldFloat lineSize = new TextFieldFloat();
int lsize = 10;
if(draw != null)
lsize = draw.getLineSize();
final JSlider slider = new JSlider(1,25,lsize);
lineSize.setColumns(3);
lineSize.setValue((float)lsize);
bacross.add(new JLabel(" line width:"));
bacross.add(lineSize);
bacross.add(new JLabel(" "));
bacross.add(Box.createHorizontalStrut(4));
// change line size on carriage return
lineSize.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
float size = (float)lineSize.getValue();
slider.setValue((int)size);
}
});
slider.addChangeListener(new ChangeListener()
{
public void stateChanged(ChangeEvent e)
{
int size = slider.getValue();
lineSize.setValue((float)size);
}
});
bacross.add(slider);
bacross.add(Box.createHorizontalGlue());
bdown.add(bacross);
bacross = Box.createHorizontalBox();
JButton addMarker = new JButton("Add Feature");
addMarker.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
Vector marker = new Vector();
marker.add(new String("CDS"));
marker.add(new Integer(start.getValue()));
marker.add(new Integer(end.getValue()));
marker.add(markerColour.getBackground());
marker.add(new Float(lineSize.getValue()));
marker.add(new Boolean(true));
marker.add(new Boolean(false));
Block drawBlock;
if(draw != null)
{
drawBlock = new Block(marker,draw);
draw.addBlock(drawBlock);
}
else
drawBlock = new Block(marker);
marker.add(drawBlock);
block.add(marker);
markerModel.addRow();
}
});
bacross.add(addMarker);
bacross.add(Box.createHorizontalGlue());
bdown.add(bacross);
add(bdown);
}
public void tableChanged(TableModelEvent e)
{
if(draw != null)
draw.repaint();
}
protected JMenuBar createMenuBar(final JFrame f)
{
JMenuBar menuBar = new JMenuBar();
JMenu fileMenu = new JMenu("File");
fileMenu.setMnemonic(KeyEvent.VK_F);
menuBar.add(fileMenu);
JMenuItem closeMenu = new JMenuItem("Close");
closeMenu.setAccelerator(KeyStroke.getKeyStroke(
KeyEvent.VK_E, ActionEvent.CTRL_MASK));
closeMenu.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
f.dispose();
}
});
fileMenu.add(closeMenu);
JMenu toolMenu = new JMenu("Tools");
menuBar.add(toolMenu);
JMenuItem deleteRow = new JMenuItem("Delete Selected Row");
deleteRow.setAccelerator(KeyStroke.getKeyStroke(
KeyEvent.VK_DELETE, ActionEvent.CTRL_MASK));
deleteRow.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
int row = markerTable.getSelectedRow();
Block drawBlock = (Block)markerModel.getValueAt(row,7);
draw.remove(drawBlock);
markerModel.deleteRow(row);
}
});
toolMenu.add(deleteRow);
return menuBar;
}
class ColorRenderer extends JLabel
implements TableCellRenderer
{
Border unselectedBorder = null;
Border selectedBorder = null;
boolean isBordered = true;
public ColorRenderer(boolean isBordered)
{
super();
this.isBordered = isBordered;
setOpaque(true); //MUST do this for background to show up.
}
public Component getTableCellRendererComponent(
JTable table, Object color,
boolean isSelected, boolean hasFocus,
int row, int column)
{
setBackground((Color)color);
if(isBordered)
{
if(isSelected)
{
if(selectedBorder == null)
selectedBorder = BorderFactory.createMatteBorder(2,5,2,5,
table.getSelectionBackground());
setBorder(selectedBorder);
}
else
{
if(unselectedBorder == null)
unselectedBorder = BorderFactory.createMatteBorder(2,5,2,5,
table.getBackground());
setBorder(unselectedBorder);
}
}
return this;
}
}
private void setUpColorRenderer(JTable table)
{
table.setDefaultRenderer(Color.class,
new ColorRenderer(true));
}
private void setUpColorEditor(JTable table)
{
//First, set up the button that brings up the dialog.
final JButton button = new JButton("")
{
public void setText(String s) {
//Button never shows text -- only color.
}
};
button.setBackground(Color.white);
button.setBorderPainted(false);
button.setMargin(new Insets(0,0,0,0));
//Now create an editor to encapsulate the button, and
//set it up as the editor for all Color cells.
final ColorEditor colorEditor = new ColorEditor(button);
table.setDefaultEditor(Color.class, colorEditor);
//Set up the dialog that the button brings up.
final JColorChooser colorChooser = new JColorChooser();
ActionListener okListener = new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
colorEditor.currentColor = colorChooser.getColor();
}
};
final JDialog dialog = JColorChooser.createDialog(button,
"Pick a Color",
true,
colorChooser,
okListener,
null); //XXXDoublecheck this is OK
//Here's the code that brings up the dialog.
button.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
button.setBackground(colorEditor.currentColor);
colorChooser.setColor(colorEditor.currentColor);
dialog.show();
}
});
}
private JButton setUpColorButton(Color col)
{
//First, set up the button that brings up the dialog.
final JButton button = new JButton("")
{
public void setText(String s) {
//Button never shows text -- only color.
}
};
button.setBackground(col);
button.setBorderPainted(false);
button.setMargin(new Insets(0,0,0,0));
Dimension d = new Dimension(25,25);
button.setPreferredSize(d);
button.setMinimumSize(d);
button.setMaximumSize(d);
//Set up the dialog that the button brings up.
final JColorChooser colorChooser = new JColorChooser();
ActionListener okListener = new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
button.setBackground(colorChooser.getColor());
}
};
final JDialog dialog = JColorChooser.createDialog(button,
"Pick a Color",
true,
colorChooser,
okListener,
null); //XXXDoublecheck this is OK
//Here's the code that brings up the dialog.
button.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
// button.setBackground(colorChooser.getColor());
dialog.show();
}
});
return button;
}
/*
* The editor button that brings up the dialog.
* We extend DefaultCellEditor for convenience,
* even though it mean we have to create a dummy
* check box. Another approach would be to copy
* the implementation of TableCellEditor methods
* from the source code for DefaultCellEditor.
*/
class ColorEditor extends DefaultCellEditor
{
Color currentColor = null;
public ColorEditor(JButton b)
{
super(new JCheckBox()); //Unfortunately, the constructor
//expects a check box, combo box,
//or text field.
editorComponent = b;
setClickCountToStart(1); //This is usually 1 or 2.
//Must do this so that editing stops when appropriate.
b.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
fireEditingStopped();
}
});
}
protected void fireEditingStopped()
{
super.fireEditingStopped();
}
public Object getCellEditorValue()
{
return currentColor;
}
public Component getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
{
((JButton)editorComponent).setText(value.toString());
currentColor = (Color)value;
return editorComponent;
}
}
class MarkerTableModel extends AbstractTableModel
{
private Vector rowData;
private Vector columnNames;
public MarkerTableModel(Vector rowData,Vector columnNames)
{
super();
this.columnNames = columnNames;
this.rowData = rowData;
}
public int getColumnCount()
{
return columnNames.size();
}
public int getRowCount()
{
return rowData.size();
}
public String getColumnName(int col)
{
return (String)columnNames.elementAt(col);
}
public Object getValueAt(int row, int col)
{
return ((Vector)rowData.elementAt(row)).elementAt(col);
}
/*
* JTable uses this method to determine the default renderer/
* editor for each cell. If we didn't implement this method,
* then the last column would contain text ("true"/"false"),
* rather than a check box.
*/
public Class getColumnClass(int c)
{
return getValueAt(0,c).getClass();
}
/*
* Don't need to implement this method unless your table's
* editable.
*/
public boolean isCellEditable(int row, int col)
{
return true;
}
/*
* Don't need to implement this method unless your table's
* data can change.
*/
public void setValueAt(Object value, int row, int col)
{
Vector vrow = (Vector)rowData.elementAt(row);
vrow.setElementAt(value,col);
rowData.setElementAt(vrow,row);
fireTableCellUpdated(row, col);
}
public void addRow()
{
fireTableRowsInserted(rowData.size(),rowData.size());
}
/**
*
* Delete a row from the table
* @param row number to delete
* @return true if deleted
*
*/
public boolean deleteRow(int row)
{
if(row < 0 || row>=rowData.size())
return false;
rowData.remove(row);
fireTableRowsDeleted(row,row);
return true;
}
}
}
| java |
"Overview. A short introduction to the Processing software and projects from the community.
"We're thrilled to announce the launch of Processing 2.0—the latest incarnation of the programming language, development environment, and online community that has grown dramatically since its debut in 2001. This new release builds on the versions of Processing that have been downloaded almost two million times. We invite you to download Processing 2.0 from www.processing.org. The Processing software is free and open source, and runs on the Mac, Windows, and GNU/Linux platforms.
"For the past twelve years, Processing has promoted software literacy, particularly within the visual arts, and visual literacy within technology. Initially created to serve as a software sketchbook and to teach programming fundamentals within a visual context, Processing has also evolved into a development tool for professionals. We stand by our mission statement:
Processing seeks to ruin the careers of talented designers by tempting them away from their usual tools and into the world of programming and computation. Similarly, the project is designed to turn engineers and computer scientists to less gainful employment as artists and designers. (((Hilarious tech-art coder humor there, folks.)))
"The Processing 2.0 release focuses on faster graphics, new infrastructure for working with data, and enhanced video playback and capture. It also expands the potential of the programming environment. The new Modes feature allows other programming systems, such as JavaScript and Android, to be easily used from within the development environment. The new Contributions Manager makes it simple to distribute and install extensions developed by the community. The P2D and P3D renderers are now built using modern OpenGL, and programs can now utilize custom GLSL shaders.
"Processing continues to be an alternative to proprietary software tools with restrictive and expensive licenses, making it accessible to schools and individual students. Its open source status encourages the community participation and collaboration that is vital to Processing’s growth. Contributors share programs, contribute code, and build libraries, tools, and modes to extend the possibilities of the software. The Processing community has written more than a hundred libraries to facilitate computer vision, data visualization, music composition, networking, 3D file exporting, and programming electronics. Please read about our amazing team of volunteers and the list of community contributions at www.processing.org.
"Processing is currently developed primarily in Boston (at Fathom Information Design), Los Angeles (at the UCLA Arts Software Studio), and New York City (at NYU’s ITP).
"From the beginning, Processing was designed as a first programming language. It was inspired by earlier languages like BASIC and Logo, as well as our experiences as students and teaching visual arts foundation curricula. The same elements taught in a beginning high school or university computer science class are taught through Processing, but with a different emphasis. Processing is geared toward creating visual, interactive media, so the first programs start with drawing. Students new to programming find it incredibly satisfying to make something appear on their screen within moments of using the software. This motivating curriculum has proved successful for leading design, art, and architecture students into programming and for engaging the wider student body in general computer science classes.
"Processing is used in classrooms worldwide, often in art schools and visual arts programs in universities, but it's also found frequently in high schools, computer science programs, and humanities curricula. Museums such as the Exploratorium in San Francisco use Processing to develop their exhibitions. In a National Science Foundation-sponsored survey, students in a college-level introductory computing course taught with Processing at Bryn Mawr College said they would be twice as likely to take another computer science class as the students in a class with a more traditional curriculum.
"The innovations in teaching through Processing have been adapted for the Khan Academy computer science tutorials, offered online for free. The tutorials begin with drawing, using most of the Processing functions for drawing. The Processing approach has also been applied to electronics through the Arduino and Wiring projects. Arduino uses a syntax inspired by that used with Processing, and continues to use a modified version of the Processing programming environment to make it easier for students to learn how to program robots and countless other electronics projects.
"The Processing software is used by thousands of visual designers, artists, and architects to create their works. Projects created with Processing have been featured at the Museum of Modern Art in New York, the Victoria and Albert Museum in London, the Centre Georges Pompidou in Paris, and many other prominent venues. Processing is used to create projected stage designs for dance and music performances; to generate images for music videos and film; to export images for posters, magazines, and books; and to create interactive installations in galleries, in museums, and on the street. Some prominent projects include the House of Cards video for Radiohead, the MIT Media Lab’s generative logo, and the Chronograph projected software mural for the Frank Gehry-designed New World Center in Miami. But the most important thing about Processing and culture is not high-profile results – it's how the software has engaged a new generation of visual artists to consider programming as an essential part of their creative practice.
"Software prototyping and data visualization are two of the most important areas for Processing developers. Research labs inside technology companies like Google and Intel have used Processing for prototyping new interfaces and services. Companies including General Electric, Nokia, and Yahoo! have used Processing to visualize their internal data. For example, the New York Times Company R&D Lab used Processing to visualize the way their news stories travel through social media. The NSF and NOAA supported research exploring phytoplankton and zooplankton diversity that was realized at the University of Washington as a dynamic ecology simulation. Researchers at the Texas Advanced Computer Center at UT Austin have used Processing to display large data visualizations across a grid of screens in the service of humanities research.
"With the launch of Processing 2.0, we are excited to take a new step forward and establish the Processing Foundation. Up to this point, Processing has been developed almost exclusively by volunteers. We realized that funding was essential to support Processing’s vast user base and maintain the high quality of the software.
"The primary charge of the Foundation is to develop and distribute the Processing software, both the core Application Programming Interface (API) and the programming environment, the Processing Development Environment (PDE). To meet this charge, we welcome donations from individuals and organizations to assist in developing the Processing software. The board of directors for the Processing Foundation consists of Ben Fry, Casey Reas, and Daniel Shiffman. The first two members of the board of advisors are John Maeda (President, RISD) and Red Burns (Founder, NYU ITP). We are in the final stages of applying for non-profit status as a 501(c)(3) organization.
"Processing was started by Ben Fry and Casey Reas in the spring of 2001,while both were graduate students at the MIT Media Lab within John Maeda's Aesthetics and Computation research group. Development continued in their free time while Casey pursued his artistic and teaching career and Ben pursued a Ph.D. and founded Fathom Information Design. Many of the ideas in Processing go back to Muriel Cooper's Visual Language Workshop, and it grew directly out of Maeda's Design By Numbers project, developed at the Media Lab and released in 1999. The Wiring and Arduino projects, in turn, grew out of Processing while Casey was teaching at the Interaction Design Institute Ivrea in Italy. Processing also prompted John Resig (jQuery) to build Processing.js, a JavaScript version that then inspired more related work such as the Khan Academy curriculum in computer science. Versions of Processing that use Python, Ruby, ActionScript, and Scala are also in development. Processing and its sister projects have inspired over twenty educational books."
| english |
---
title:
parent: Virtual Event
grandparent: Experiences
description: In this topic you will learn how to configure VOD videos so they appear as if they are live.
layout: staging
---
<h1>シミュレートされたライブビデオの使用シミュレートされたライブビデオの使用方法</h1>
<article class="bcls-article">
<summary>{{ page.description }}</summary>
<section class="bcls-section">
<p><strong></strong> Simuliveはの略です <em>シミュレートされたライブ</em> これは、VODコンテンツをライブであるかのようにエンドユーザーに表示できる方法です。Simulive コンテンツは、コンテンツの事前録音とライブ前の広範なテストを可能にするため、イベント主催者にとって魅力的です。エンコーダの問題やその他のロジスティクスによって発生する従来のライブイベントにおいて、障害発生の可能性が軽減されます。Simulive 動画には、ライブになるタイミングを示すカウントダウンタイマーがビデオとともに表示されます。以下の例は、注目のコレクションの simulive ビデオです。</p>
<figure class="bcls-figure"><img class="bcls-image--no-border" alt="" src="/assets/images/experiences/virtual-event/simulive-featured-countdown.png" /></figure>
<p>プライマリコレクションとセカンダリコレクションのビデオの場合、カウントダウンタイマーがビデオのカードに表示されます。</p>
<figure class="bcls-figure"><img class="bcls-image--no-border" alt="" src="/assets/images/experiences/virtual-event/simulive-primary-countdown.png" /></figure>
<p>バーチャルイベントエクスペリエンスで simulive コンテンツを使用するには、次の操作を行う必要があります。</p>
<ul>
<li>Simulive Player プラグインを設定する</li>
<li>プレイヤーをエクスペリエンスに関連付ける</li>
<li>Simulive カスタムフィールドを作成する</li>
<li>Simuliveビデオプロパティの設定</li>
</ul>
<aside class="bcls-aside bcls-aside--information">注:カウントダウンタイマーの一部として表示されるテキストは、<code translate="No">labels</code>設定ファイルのオブジェクト内にあり、簡単にカスタマイズまたはローカライズできます。</aside>
</section>
<section class="bcls-section">
<h2 id="plugin">Simulive Player プラグインの設定</h2>
<p>Simulive プレーヤープラグインは、バーチャルイベントエクスペリエンスで使用するプレーヤー用に構成する必要があります。プラグインの構成に必要な情報を入手するには、アカウントマネージャーに連絡してください。</p>
<ol class="bcls-tasklist">
<li>ナビゲーションヘッダーの[<strong>Players</strong>]をクリックし、Playersモジュールを開きます。</li>
<li>ブライトコーブでは、仮想イベントエクスペリエンスのための専用プレーヤーを作成することをお勧めします。専用プレイヤーを作成していない場合は、[ <strong>新規プレイヤー] をクリックし</strong>、プレイヤーの名前を付け、[ <strong>保存] をクリックします</strong>。</li>
<li>設定するプレーヤーのリンクをクリックします。</li>
<li>左側のナビゲーションメニューで [ <strong>プラグイン</strong> ] をクリックします。</li>
<li><strong>プラグインを追加 > カスタムプラグインをクリックします</strong>。</li>
<li>[ <strong>プラグイン名</strong> ] に、と入力します<code translate="No">simulivePlugin</code>。</li>
<li><strong>JavaScript URL</strong>および<strong> CSS URL については</strong>、アカウントマネージャーから提供された値を使用します。</li>
<li><strong>[保存]</strong> をクリックして、変更を保存します。</li>
</ol>
<aside class="bcls-aside bcls-aside--information">注:プレイヤーに加えた変更は、公開されているプレイヤーに表示されるまでに最大 5 分かかる場合があります。</aside>
</section>
<section class="bcls-section">
<h2 id="custom_player">カスタムプレーヤーの設定</h2>
<p>カスタムプレーヤーを使用するように仮想イベントエクスペリエンスを構成するには、次の手順に従います。</p>
<ol class="bcls-tasklist-restart">
<li><strong></strong>ギャラリーモジュールを開きます。</li>
<li>エクスペリエンスを編集します。</li>
<li>クリック<strong>ビデオと再生>プレーヤーとリードフォーム</strong>左側のナビゲーションで。
<figure class="bcls-figure"></figure>
</li>
<li>[ <strong>サイト固有のプレーヤーを使用]</strong>オプションを選択し、Simulive プラグインで設定されたプレーヤーを選択します。</li>
<li>[ <strong>保存] をクリックします</strong>。
</ol>
</section>
<section class="bcls-section">
<h2 id="custom_field">Simulive カスタムフィールドを作成する</h2>
<p>カスタムフィールドは、ビデオが使用可能になる日付と時刻を格納するために使用されます。Simulive カスタムフィールドを作成するには、次の手順を実行します。</p>
<ol class="bcls-tasklist-restart">
<li>ナビゲーションヘッダーで、[ <strong>管理</strong> ]、[ <strong>ビデオフィールド] の順にクリックします</strong>。管理者メニューにアクセスするには、アカウント管理者である必要があります。</li>
<li>[ <strong>カスタムフィールドの追加] をクリックします</strong>。</li>
<li>次の値を使用して、新しいカスタムフィールドを作成します。
<ul>
<li><strong>表示名</strong> -Simulive スタート</li>
<li><strong>内部名</strong> -simulive_start</li>
<li><strong>タイプ</strong> -テキスト</li>
<li><strong>説明</strong> -予想されるフォーマットは YYYY-MM-DDTHH: MM: SS-HH: MM です</li>
</ul>
<figure class="bcls-figure"><img class="bcls-image--no-border" alt="" src="/assets/images/experiences/virtual-event/simulive-custom-field.png" /></figure>
</li>
<li>[ <strong>フィールドを保存] をクリックします</strong>。</li>
</ol>
カスタムフィールドの作成については、「<a href="https://studio.support.brightcove.com/admin/creating-custom-metadata-fields.html">カスタムメタデータフィールドの作成」を参照してください</a>。</section>
<section class="bcls-section">
<h2 id="assign_fields">Simuliveビデオプロパティの設定</h2>
<p>カスタムフィールド<strong> Simulive Start</strong>には、ビデオが利用可能になる日時が格納されます。Simulive 開始時刻に達するまで、ビデオは閲覧できません。<strong>シミュレーション動画にもサイマルタグを付ける必要があります</strong>。ビデオを Simulive ビデオとして設定するには、次の手順に従います。</p>
<ol class="bcls-tasklist-restart">
<li>Media モジュールを開きます。</li>
<li>ビデオタイトルをクリックしてプロパティを開きます。</li>
<li>[ <strong>ビデオプロパティ]</strong>セクションを見つけて、[ <strong>編集] をクリックします</strong>。</li>
<li><strong>ビデオにsimuliveタグを付けます</strong>。
<figure class="bcls-figure"><img class="bcls-image--no-border" alt="" src="/assets/images/experiences/virtual-event/simulive-tag.png" /></figure>
</li>
<li>[<strong>保存</strong>]をクリックします。</li>
<li>[ <strong>カスタムフィールド]</strong>セクションを見つけて、[ <strong>編集] をクリックします</strong>。</li>
<li>[ <strong>シミュレーション開始]</strong>フィールドに日付と時刻の値を入力します。フィールドの正しい形式は、必要に応じて先頭にゼロが付いた年、月、<code translate="No">YYYY-MM-DDTHH:MM:SS-HH:MM</code><code translate="No">YYYY-MM-DD</code>日付をどこにあるかです。<code translate="No">HH:MM:SS</code>は、24 時間の時間、分、秒を適宜先頭にゼロで指定します。また、<code translate="No">-HH:MM</code>タイムゾーンのオフセットです(UTC-4 の場合は-04:00、UTC+8.5 の場合は + 08:30 など)。
<figure class="bcls-figure"><img class="bcls-image--no-border" alt="" src="/assets/images/experiences/virtual-event/simulive-simulive-start.png" /></figure>
<aside class="bcls-aside bcls-aside--information">注:Simulive は、ローカルコンピューター時刻と構成された<strong> Simulive Start Time を比較して、</strong>特定のユーザーのローカルコンピューター時間に基づいてイベントをいつ開始するかを決定します。このため、一部のユーザーでは、イベントが予想よりも早く開始されることがあります。これは、通常、' これらのユーザーのコンピュータの時間が不正確であるためです。</aside>
</li>
<li>[<strong>保存</strong>]をクリックします。</li>
</ol>
</section>
<section class="bcls-section">
<h2 id="policy-key">ポリシーキー値の更新</h2>
<p>カウントダウンタイマーをシミュレーションビデオに表示するには、設定ファイルのポリシーキー値を検索が有効なポリシーキーで更新する必要があります。これを行わないと、動画にカウントダウンが表示されなくなります。検索が有効なポリシーキーを取得する手順については、「<a href="https://apis.support.brightcove.com/policy/getting-started/quick-start-policy-api.html">コードサンプル:ポリシーキーを生成します</a>。新しいポリシーキーが作成されたら、<code translate="No">policyKey</code>設定ファイルの値を更新し、エクスペリエンスを再公開します。</p>
</section>
</article> | html |
<gh_stars>0
import {CE, GetTreeNodesInObjTree} from "js-vextensions";
let helperProps = ["_key", "_id"];
/** Note: this mutates the original object. */
export function RemoveHelpers(data) {
var treeNodes = GetTreeNodesInObjTree(data, true);
for (let treeNode of treeNodes) {
if (CE(helperProps).Contains(treeNode.prop))
delete treeNode.obj[treeNode.prop];
}
return data;
}
export function GetUpdates(oldData, newData, useNullInsteadOfUndefined = true) {
let result = {};
for (let key of oldData.VKeys(true).concat(newData.VKeys(true))) {
if (newData[key] !== oldData[key]) {
result[key] = newData[key];
if (newData[key] === undefined && useNullInsteadOfUndefined) {
result[key] = null;
}
}
}
return RemoveHelpers(result);
} | typescript |
<filename>styles/App.css
.error {
position: absolute;
top: 42%;
right: 25%;
color: white;
font-family: 'Roboto', sans-serif;
}
.loading-container {
width: 100%;
height: 100vh;
background-color: #7084a9;
}
#loading-icon {
margin: auto;
display: block;
}
.backGround {
background-color: #FEFEF7;
background-image: url('../images/background1.jpg');
background-repeat-x: no-repeat;
background-repeat-y: repeat;
background-size: 407px;
background-position: right;
}
.change-city {
width: 25%;
height: 25px;
margin-left: 60%;
font-size: 25px;
}
.change-city-btn {
width: 5%;
height:25px;
border: none;
background-color: #DB634B;
color: white;
}
.search-container {
width: 100%;
height: 70px;
display: flex;
justify-content: center;
align-items: center;
}
@media only screen and (max-width: 320px) {
.aang-bending {
display: none;
}
} | css |
The tax department has given banks three more months, until 30 June, to obtain permanent account number (PAN) or Form 60 from all account holders, as it looks to tighten the noose around evaders.
Though the deadline for getting the PAN or Form 60 (if PAN is not available) by banks ended on 28 February, the tax department on 5 April notified the extension of the time till 30 June.
In the notification, the Income Tax Department said that in Income Tax Rules 114B, in the fourth proviso, "for the figures, letters and words '28th day of February' the figures, letters and words '30th day of June' shall be substituted. " Rule 114B lists various transactions for which quoting PAN is mandatory.
holders, and maintain all records for transactions under Rule 114B of IT Act.
It had said that persons who have not quoted PAN, or did not furnish Form 60 at the time of opening account, will have to provide the same by 28 February. Form 60 is a declaration form filed by an individual without PAN.
Following the demonetisation move effective 9 November, the tax department had asked banks and post offices to report to it all deposits above Rs 2. 5 lakh in savings accounts, and more than Rs 12. 50 lakh in current accounts, made between 10 November and 30 December 2016.
Also, cash deposits exceeding Rs 50,000 in a single day had to be reported.
With an estimated Rs 15 lakh crore in junked currency notes coming back into the banking system post demonetisation, the tax department has started analysing the bank deposit trends. | english |
import {Vector2} from 'three/src/math/Vector2';
import {WebGLRenderer} from 'three/src/renderers/WebGLRenderer';
import {Poly} from '../../src/engine/Poly';
interface RendererConfig {
canvas: HTMLCanvasElement;
renderer: WebGLRenderer;
viewer?: WebGLRenderer;
}
export class RendererUtils {
private static _configs: RendererConfig[] = [];
static async waitForRenderer(): Promise<RendererConfig> {
return new Promise(async (resolve) => {
const canvas = document.createElement('canvas');
document.body.appendChild(canvas);
const size = new Vector2(canvas.width, canvas.height);
const viewer = window.perspective_camera1.renderController.createRenderer(canvas, size);
const renderer = await Poly.renderersController.waitForRenderer();
const config = {canvas, viewer, renderer};
this._configs.push(config);
resolve(config);
});
}
static dispose() {
let config: RendererConfig | undefined;
while ((config = this._configs.pop())) {
config.viewer?.dispose();
document.body.removeChild(config.canvas);
}
}
}
| typescript |
<gh_stars>0
# Skeleton
from fastapi_skeleton.core import messages
def test_auth_using_prediction_api_no_apikey_header(test_client) -> None:
response = test_client.post("/api/model/predict")
assert response.status_code == 400
assert response.json() == {"detail": messages.NO_API_KEY}
def test_auth_using_prediction_api_wrong_apikey_header(test_client) -> None:
response = test_client.post(
"/api/model/predict", json={"image": "test"}, headers={"token": "WRONG_TOKEN"}
)
assert response.status_code == 401
assert response.json() == {"detail": messages.AUTH_REQ}
| python |
{"type":"ConnectionTemplateCollection","members":[{"type":"connection-template","bandwidth":{"maximumBandwidth":800,"typicalBandwidth":200},"name":"defaultConnectionTemplate","description":null,"state":"Active","status":"OK","eTag":"7d9434f6-aa08-43d9-935d-eb1d76b32d33","created":"2016-01-22T19:06:45.364Z","modified":"2016-02-01T16:08:30.734Z","category":"connection-templates","uri":"/rest/connection-templates/defaultConnectionTemplate"}],"start":0,"nextPageUri":null,"prevPageUri":null,"total":1,"count":1,"eTag":null,"created":null,"modified":null,"category":"connection-templates","uri":"/rest/connection-templates?start=0&count=1"} | json |
Disappointing news out today reveals that Alex Oxlade-Chamberlain, whose return from injury was initially predicted to be three months, won’t return until some point in 2014. It doesn’t seem like he’s re-aggravated the injury, just that recovery is taking longer. He can’t even start training until mid-December, so the original prediction that he might return by the end of November now sounds hopelessly optimistic, and the earlier reports that suggested a six-month absence sound more accurate.
The knee injury, originally suffered on 20 August against Aston Villa, might keep Ox out of action until February. Whether this might affect plans for the January transfer-window is subject for debate. Theo Walcott could be ready in time to face Southampton (23 November), but it’s more likely that we could see Serge Gnabry at some point during the match, and why not? He may be only eighteen, but he’s shown confidence and maturity beyond those years, and the skill-set he brings could come in handy against a stubborn Southampton side that has conceded only five goals so far this season.
The attacking midfield against Man Utd included Cazorla, Ramsey, and Özil, but this trio proved unable to finally unlock Man Utd’s defence or test De Gea even after the departure of Vidi? softened them up, at least theoretically. While Cazorla, Ramsey, and Özil are tricky and creative with the ball, none of them presents the direct, aggressive pace that Gnabry can bring. While he may not be as fleet as Walcott or Ox, he adds strength to the mix. Among the three, he may just possess the most technical ability, not that he’d make anyone forget, say, Özil with the ball at his feet.
However, his bag of tricks is deep, and he’s not afraid to go at or around defenders. And if finesse or speed aren’t quite enough, he has the strength to overpower them. Arsène pointed out that “we have some other boys who have the technical quality to play in the Premier League but are not resistant enough yet to compete physically, but Gnabry has that. ” At 1. 73m and 73 kg, he may not have much weight to throw around, but he’s solid enough to more than hold his own.
While we’ve worried about Theo’s finishing, Gnabry has shown in the past that he does possess a Podolski-esque cannon, as he showed against France’s u18s (see video above).
For as much as we’ve fretted about depth, there’s a scintillating plethora of options we have for the attacking midfield, even with Podolski, Ox, and Walcott unavailable. With Wilshere, Özil, Cazorla, and Ramsey, it can get a bit crowded in there. However, Gnabry has some tantalizing talents that should be enough to earn him some playing time, whether it’s as a starter or subbing on to take advantage of weary defenses.
The early signs suggest that, when given the chance, he’ll make a convincing case for featuring more regularly. If he can deliver more goals like the one against Swansea (which made him the second-youngest player to score a Prem goal for Arsenal), he could show that it’s not just blockbuster German transfers who can offer exhilarating football. In 2011, aged 14, he joined the Academy after leaving Stuttgart for £84k. He signed a new contract in October, good through 2018, and had this to say :
Arsenal is a great football club and I’m so happy to be here and sign a new contract. For me, now it’s all about working hard and developing my game. I’ve had some good opportunities recently in the first team, which has given me extra confidence, and this will only improve my game. I’m looking forward to giving my best for this club in the years to come.
Having made the leap to the first team, Serge is looking to make good on his promise and potential; I hope he gets a chance when Southampton comes to the Emirates on Saturday. | english |
1 Infiakian Jesus na ay maepadpachongan kan chicha: “Ifiakiak kan chakayu nan tit-iwa. Nan taku ay achi sungkop as nan sugpan nan punchag chi karnero, ngem kun uy komarab as nan arad at mangaakiw ya homohold-ap. 2 Nan taku ay sungkop as nan sugpan at hiya nan mangay-aywan as nan karnero. 3 Hiya nan paskopun nan munkukuwarcha as nan sugpan. As nan manguyawan nan mangay-aywan as nan ngachan nan tunggal usa as nan chiyuycha karnerona at ematonancha nan kalina at umuycha kan hiya. Angkiay ya epanguna chicha ay pumitiw. 4 Kuna pay enpapitiw am-in nan kuwana, epanguna chicha, ya nan karnerona at umunudcha kan hiya, tay ammucha nan kalina. 5 Achicha umunud as nan tukún, ngem kuncha at lomayaw ay manaynan kan hiya, tay achicha ammu nan kalina.” 6 Hiyana nan maepadpachongan ay infiakian Jesus kan chicha, ngem chaancha naawatan nan laychuna ay kanan.
7 Isunga kasin kenalen Jesus kan chicha, “Ifiakiak kan chakayu nan tit-iwa. Ha-un nan maepachong as nan sugpan ay sungkopan nan chiyuycha karnero.* Jn. 6:35; 14:6 8 Nan am-in ay enmon-ona ay enmali mu ha-un at chicha nan mangaakiw ya homohold-up, ngem chaan enafurot nan chiyuycha karnero chicha. 9 Ha-un nan sugpan. Mu ngachana nan sungkop ay manguy kan ha-un at maesarakan. Maepachong hiya as nan karnero ay mafialin ay sungkop ya pumitiw ay mun-anap as munkiarafiana.
11 Inturuy Jesus, “Ha-un nan ammay ay mangay-aywan as karnero. Nan ammay ay mangay-aywan at nakasakiana ay mangichat as fiyagna para as nan karnerona uray mu matuy hiya. 12 Nan malagfuwan ay fiakun tit-iwa ay mangay-aywan ya fiakun nakin kuwa as nan karnero at lomayaw ay manaynan as nan karnero mu wachay ilauna as atap ay asu ay cha omali. Nan atap ay asu at chupapuna nan karnero, ya pasisiyanuna chicha. 13 Lomayaw hiya kiapú ta hiya at malagfuwan yangkiay, ya achina ayyiwan nan chiyuycha karnero. 14 Ha-un nan ammay ay mangay-aywan as karnero. O, am-ammok nan karnerok, ya nan karnerok at am-ammuwak us. 15 Hiyasa us kan Ama ay am-ammuwak ya am-ammok us hiya, ya ichatku nan fiyagku kiapú as nan karnerok. 16 Wachacha nan tapina ay karnerok ay maid pay as nan nauy punchag. Masapor etoróngku us chicha hena, at chumngorchantu as nan kalek. Mu hiyasa, munfialincha as henpamurukian ya usa nan mangay-aywan kan chicha.
39 Penachascha kasin ay mangtiliw kan Jesus, ngem enlayawana chicha. 40 Angkiay ya kasin nunfiangad hi Jesus ay kinumchang henan wawwang ay Jordan henan lukiar ay nunfunfunyakian Juan ad kasin, ya hid-i nan nagyanana. 41 Ongor ay tataku nan inmuy kan hiya, at kenalicha, “Maid enat Juan as nakaskaschaaw ay sinyar, ngem am-in ay kenarkalen Juan maepangkep kan tona ay taku at tit-iwa.” 42 Ongor ay tataku nan enmafurot kan Jesus hid-i.
| english |
<filename>pkg/query/selection_test.go
/*
* Copyright 2018 The Service Manager Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package query_test
import (
"context"
"fmt"
"strings"
. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/extensions/table"
. "github.com/onsi/gomega"
. "github.com/Peripli/service-manager/pkg/query"
)
var _ = Describe("Selection", func() {
var ctx context.Context
BeforeEach(func() {
ctx = context.TODO()
})
Describe("Add criteria to context", func() {
addInvalidCriterion := func(criterion Criterion) {
ctx, err := AddCriteria(ctx, criterion)
Expect(err).To(HaveOccurred())
Expect(ctx).To(BeNil())
}
Context("Invalid", func() {
Specify("Univariate operator with multiple right operands", func() {
addInvalidCriterion(ByField(EqualsOperator, "leftOp", "1", "2"))
})
Specify("IsNullable operator applied to label query", func() {
addInvalidCriterion(ByLabel(EqualsOrNilOperator, "leftOp", "1"))
})
Specify("Numeric operator to non-numeric right operand", func() {
addInvalidCriterion(ByField(GreaterThanOperator, "leftOp", "non-numeric"))
addInvalidCriterion(ByField(GreaterThanOrEqualOperator, "leftOp", "non-numeric"))
addInvalidCriterion(ByField(LessThanOperator, "leftOp", "non-numeric"))
addInvalidCriterion(ByField(LessThanOrEqualOperator, "leftOp", "non-numeric"))
})
Specify("Right operand containing new line", func() {
addInvalidCriterion(ByField(EqualsOperator, "leftOp", `value with
new line`))
})
Specify("Left operand with query separator", func() {
addInvalidCriterion(ByField(EqualsOperator, "leftop and more", "value"))
})
Specify("Multiple limit criteria", func() {
var err error
ctx, err = AddCriteria(ctx, LimitResultBy(10))
Expect(err).ShouldNot(HaveOccurred())
addInvalidCriterion(LimitResultBy(5))
})
})
Context("Valid", func() {
Specify("Multivariate operator with single right operand", func() {
_, err := AddCriteria(ctx, ByField(InOperator, "leftOp", "1"))
Expect(err).ToNot(HaveOccurred())
})
Specify("With numeric right operand", func() {
_, err := AddCriteria(ctx, ByField(LessThanOperator, "leftOp", "5"))
Expect(err).ToNot(HaveOccurred())
})
for _, op := range Operators {
Specify("With valid operator parameters", func() {
_, err := AddCriteria(ctx, ByField(op, "leftOp", "rightop"))
Expect(err).ToNot(HaveOccurred())
})
}
})
})
Describe("Context with criteria", func() {
Context("When there are no criteria in the context", func() {
It("Adds the new ones", func() {
newCriteria := []Criterion{ByField(EqualsOperator, "leftOp", "rightOp")}
newContext, err := ContextWithCriteria(ctx, newCriteria...)
Expect(err).ShouldNot(HaveOccurred())
Expect(CriteriaForContext(newContext)).To(ConsistOf(newCriteria))
})
})
Context("When there are criteria already in the context", func() {
It("Overrides them", func() {
oldCriteria := []Criterion{ByField(EqualsOperator, "leftOp", "rightOp")}
oldContext, err := ContextWithCriteria(ctx, oldCriteria...)
Expect(err).ShouldNot(HaveOccurred())
newCriteria := []Criterion{ByLabel(NotEqualsOperator, "leftOp1", "rightOp1")}
newContext, err := ContextWithCriteria(oldContext, newCriteria...)
Expect(err).ShouldNot(HaveOccurred())
criteriaForNewContext := CriteriaForContext(newContext)
Expect(criteriaForNewContext).To(ConsistOf(newCriteria))
Expect(criteriaForNewContext).ToNot(ContainElement(oldCriteria[0]))
})
})
Context("When limit is already in the context adding it again", func() {
It("should return error", func() {
ctx, err := ContextWithCriteria(ctx, LimitResultBy(10), LimitResultBy(5))
Expect(err).Should(HaveOccurred())
Expect(ctx).Should(BeNil())
})
})
})
Describe("Parse query", func() {
for _, queryType := range CriteriaTypes {
Context("With no query", func() {
It("Should return empty criteria", func() {
criteria, err := Parse(queryType, "")
Expect(err).ToNot(HaveOccurred())
Expect(len(criteria)).To(Equal(0))
})
})
Context("With missing query operator", func() {
It("Should return an error", func() {
criteria, err := Parse(queryType, "leftop_rightop")
Expect(err).To(HaveOccurred())
Expect(criteria).To(BeNil())
})
})
Context("When there is an invalid field query", func() {
It("Should return an error", func() {
criteria, err := Parse(queryType, "leftop lt 'rightop'")
Expect(err).To(HaveOccurred())
Expect(criteria).To(BeNil())
})
})
Context("When passing multivariate query", func() {
It("Should be ok", func() {
criteria, err := Parse(queryType, "leftop in ('rightop', 'rightop2')")
Expect(err).ToNot(HaveOccurred())
Expect(criteria).To(ConsistOf(NewCriterion("leftop", InOperator, []string{"rightop2", "rightop"}, queryType)))
})
})
Context("When passing multiple queries", func() {
It("Should build criteria", func() {
criteria, err := Parse(queryType, "leftop1 in ('rightop','rightop2') and leftop2 eq 'rightop3'")
Expect(err).ToNot(HaveOccurred())
Expect(criteria).To(ConsistOf(NewCriterion("leftop1", InOperator, []string{"rightop2", "rightop"}, queryType), NewCriterion("leftop2", EqualsOperator, []string{"rightop3"}, queryType)))
})
})
Context("Operator is unsupported", func() {
It("Should return error", func() {
criteria, err := Parse(queryType, "leftop1 @ ('rightop', 'rightop2')")
Expect(err).To(HaveOccurred())
Expect(criteria).To(BeNil())
})
})
Context("Right operand is empty", func() {
It("Should be ok", func() {
criteria, err := Parse(queryType, "leftop1 in ()")
Expect(err).ToNot(HaveOccurred())
Expect(criteria).ToNot(BeNil())
Expect(criteria).To(ConsistOf(NewCriterion("leftop1", InOperator, []string{""}, queryType)))
})
})
Context("Multivariate operator with right operand without opening brace", func() {
It("Should return error", func() {
criteria, err := Parse(queryType, "leftop in 'rightop','rightop2')")
Expect(err).To(HaveOccurred())
Expect(criteria).To(BeNil())
})
})
Context("Multivariate operator with right operand without closing brace", func() {
It("Should return error", func() {
criteria, err := Parse(queryType, "leftop in ('rightop','rightop2'")
Expect(err).To(HaveOccurred())
Expect(criteria).To(BeNil())
})
})
Context("Right operand with escaped quote", func() {
It("Should be okay", func() {
criteria, err := Parse(queryType, "leftop1 eq 'right''op'")
Expect(err).ToNot(HaveOccurred())
Expect(criteria).ToNot(BeNil())
Expect(criteria).To(ConsistOf(NewCriterion("leftop1", EqualsOperator, []string{"right'op"}, queryType)))
})
})
Context("Complex right operand", func() {
It("Should be okay", func() {
rightOp := "this is a mixed, input example. It contains symbols words ! -h@ppy p@rs'ng"
escaped := strings.Replace(rightOp, "'", "''", -1)
criteria, err := Parse(queryType, fmt.Sprintf("leftop1 eq '%s'", escaped))
Expect(err).ToNot(HaveOccurred())
Expect(criteria).ToNot(BeNil())
Expect(criteria).To(ConsistOf(NewCriterion("leftop1", EqualsOperator, []string{rightOp}, queryType)))
})
})
Context("Duplicate query key", func() {
It("Should return error", func() {
//ExistQuery type doesn't support left operands nor it excepts any operators aside from NotExist/Exist operators
if queryType != ExistQuery {
criteria, err := Parse(queryType, "leftop1 eq 'rightop' and leftop1 eq 'rightop2'")
Expect(err).To(HaveOccurred())
Expect(criteria).To(BeNil())
}
})
})
for _, op := range Operators {
op := op
for _, queryType := range []CriterionType{FieldQuery, LabelQuery} {
queryType := queryType
Context(fmt.Sprintf("With %s operator and %s query type", op.String(), queryType), func() {
It("Should behave as expected", func() {
leftOp := "leftOp"
rightOp := []string{"rightOp"}
stringParam := fmt.Sprintf("'%s'", rightOp[0])
if op.IsNumeric() {
rightOp = []string{"5"}
stringParam = rightOp[0]
}
if op.Type() == MultivariateOperator {
rightOp = []string{"rightOp1", "rightOp2"}
stringParam = fmt.Sprintf("('%s')", strings.Join(rightOp, "','"))
}
query := fmt.Sprintf("%s %s %s", leftOp, op, stringParam)
criteria, err := Parse(queryType, query)
if op.IsNullable() && queryType == LabelQuery {
Expect(err).To(HaveOccurred())
Expect(criteria).To(BeNil())
} else {
Expect(err).ToNot(HaveOccurred())
Expect(criteria).ToNot(BeNil())
c := criteria[0]
expectedQuery := NewCriterion(leftOp, op, rightOp, queryType)
Expect(c.LeftOp).To(Equal(expectedQuery.LeftOp))
Expect(c.Operator).To(Equal(expectedQuery.Operator))
Expect(c.RightOp).To(ConsistOf(expectedQuery.RightOp))
Expect(c.Type).To(Equal(expectedQuery.Type))
}
})
})
}
}
Context("When separator is not properly escaped in first query value", func() {
It("Should return error", func() {
criteria, err := Parse(queryType, "leftop1 eq 'not'escaped' and leftOp2 eq 'rightOp'")
Expect(err).To(HaveOccurred())
Expect(criteria).To(BeNil())
})
})
Context("When separator is not escaped in value", func() {
It("Trims the value to the separator", func() {
criteria, err := Parse(queryType, "leftop1 eq 'not'escaped'")
Expect(err).To(HaveOccurred())
Expect(criteria).To(BeNil())
})
})
Context("When using equals or operators", func() {
It("should build the right ge query", func() {
criteria, err := Parse(FieldQuery, "leftop ge -1.35")
Expect(err).ToNot(HaveOccurred())
Expect(criteria).ToNot(BeNil())
expectedQuery := ByField(GreaterThanOrEqualOperator, "leftop", "-1.35")
Expect(criteria).To(ConsistOf(expectedQuery))
})
It("should build the right le query", func() {
criteria, err := Parse(FieldQuery, "leftop le 3")
Expect(err).ToNot(HaveOccurred())
Expect(criteria).ToNot(BeNil())
expectedQuery := ByField(LessThanOrEqualOperator, "leftop", "3")
Expect(criteria).To(ConsistOf(expectedQuery))
})
})
}
})
DescribeTable("Validate Criterion",
func(c Criterion, expectedErr ...string) {
err := c.Validate()
if len(expectedErr) == 0 {
Expect(err).To(BeNil())
} else {
Expect(err).NotTo(BeNil())
Expect(err.Error()).To(ContainSubstring(expectedErr[0]))
}
},
Entry("Empty right operand is not allowed",
ByField(InOperator, "left"),
"missing right operand"),
Entry("Limit that is not a number is not allowed",
NewCriterion(Limit, NoOperator, []string{"not a number"}, ResultQuery),
"could not convert string to int"),
Entry("Negative limit is not allowed",
LimitResultBy(-1),
"should be positive"),
Entry("Valid limit is allowed",
LimitResultBy(10)),
Entry("Missing order type is not allowed",
NewCriterion(OrderBy, NoOperator, []string{"field"}, ResultQuery),
"expects field name and order type"),
Entry("Valid order by is allowed",
OrderResultBy("field", AscOrder)),
Entry("Multiple right operands are not allowed for univariate operators",
ByField(EqualsOperator, "left", "right1", "right2"),
"single value operation"),
Entry("Operators working with nil are not allowed for label queries",
ByLabel(EqualsOrNilOperator, "left", "right"),
"only for field queries"),
Entry("Non-numeric operand is not allowed by comparison operators",
ByField(LessThanOperator, "left", "not numeric"),
"not numeric or datetime"),
Entry("Separator word 'and' is allowed to appear in left operand as a substring",
ByField(EqualsOperator, "band", "music")),
Entry("Separator word 'and' is not allowed to be the only word in the left operand",
ByField(EqualsOperator, "and", "this"),
"separator and is not allowed"),
Entry("Separator word 'and' is not allowed to appear as a standalone word in middle of left operand",
ByField(EqualsOperator, "a and b", "this"),
"separator and is not allowed"),
Entry("Separator word 'and' is not allowed to appear as a standalone word in beginning of left operand",
ByField(EqualsOperator, "and b", "this"),
"separator and is not allowed"),
Entry("Separator word 'and' is not allowed to appear as a standalone word in end of left operand",
ByField(EqualsOperator, "a and", "this"),
"separator and is not allowed"),
Entry("New line character is not allowed in right operand",
ByField(EqualsOperator, "left", "one\ntwo"),
"forbidden new line character"),
)
})
| go |
Rudragouda Patil alias R D Patil, the alleged kingpin of the police sub-inspector (PSI) recruitment scam, has filed his nomination to contest the May 10 Karnataka Assembly elections as a Samajwadi Party candidate from Afzalpur Assembly constituency. Patil, 38, who was in jail, filed his nomination on Monday and was released on bail on Tuesday.
Patil has 16 cases against him, most of them related to recruitment scams. As he was in judicial custody, on Monday, the police brought him to the Afzalpur Election Commission office where he filed his nomination in the presence of a large following.
A civil contractor, Patil is the brother of Congress leader Mahanthesh D Patil, who recently quit the party and started campaigning for his brother. He will contest against Congress’s M Y Patil and BJP’s Malikaiah Guttedar.
On Tuesday afternoon, after he came out of prison, Patil was welcomed by his followers and started campaigning.
In his affidavit, Patil has declared assets worth Rs 6. 58 crore that he owns with his wife. Apart from cases related to cheating, forgery and tampering evidence, Patil has also been booked in a dowry case, among many others.
In the PSI recruitment scam, Patil has been accused of collecting crores from aspirants, facilitating them with Bluetooth devices during the exam and rigging examination centres to help aspirants who allegedly paid Rs 40 lakh to Rs 60 lakh for a PSI post. The CID has arrested more than 100 people, including senior police officials, candidates and others, in the scam.
Patil is also an accused in a case related to irregularities in the recruitment examination of assistant engineers for the Public Works Department.
Speaking to The Indian Express, Patil alleged a political conspiracy against him by his opponents. “I have been a Grama Panchayat member and was preparing to contest. I was already in public life. Few people who thought I was growing fixed the PSI recruitment scam. I will fight the elections,” he said.
Patil said that he had only approached Samajwadi Party, which gave him a ticket to contest.
Meanwhile, the BJP has fielded Manikantha Rathod, a rowdy sheeter accused of stealing government foodgrain, against Congress leader Priyank Kharge in Chittapur constituency. Rathod had been barred from entering Kalaburagi district previously due to his criminal history. He had also issued a death threat to Priyank Kharge and was arrested in November 2022. | english |
[{"namaKab":"<NAME>","originalFilename":"sarbaini.jpg","namaPartai":"Part<NAME>","id":240018,"noUrut":1,"nama":"SARBAINI","stringJenisKelamin":"Laki-Laki"},{"namaKab":"<NAME>","originalFilename":"pang.jpg","namaPartai":"<NAME>","id":141935,"noUrut":2,"nama":"<NAME>","stringJenisKelamin":"Laki-Laki"},{"namaKab":"<NAME>","originalFilename":"dewi sartika.jpg","namaPartai":"<NAME>","id":220630,"noUrut":3,"nama":"<NAME>","stringJenisKelamin":"Perempuan"},{"namaKab":"<NAME>","originalFilename":"suryani.jpg","namaPartai":"<NAME>","id":240518,"noUrut":4,"nama":"SURIYANI","stringJenisKelamin":"Perempuan"}] | json |
Chelsea have agreed one-year extensions for Willy Caballero and Olivier Giroud, as they returned to EPL training in groups - for the first time since football was suspended in March.
Caballero, 38, has been at Chelsea since joining from league rivals Manchester City on a free transfer in the summer of 2017.
The Argentina international stepped into the breach, making four EPL appearances this term as club-record signing Kepa Arrizabalaga endured a spell of poor form.
Frank Lampard temporarily replaced the Spaniard with their second-choice goalkeeper, who has regularly impressed in training despite being afforded limited opportunities.
It's this same work ethic and competitive nature which allowed Caballero to settle quickly at Chelsea, where he's made nine appearances across all competitions this season.
During a brief video posted on the club's Twitter to announce his extension, Caballero had some words to say and was grateful to earn another deal.
He said: "I'm really happy to renew my contract with Chelsea, hopefully you're [the supporters] going to enjoy more in the next season. For me to stay in a big club as Chelsea's, it was a really easy decision. "
In addition, the club posted some quotes and information on the significance of his extension on their website. As for Chelsea boss Lampard, he again reiterated that Caballero has earned his trust after a difficult season where they sat fourth before the suspension of play.
"I trust in Willy, he trains brilliantly and is a great professional. He stepped into the team earlier this year and showed his quality, and his experience is invaluable in the dressing room. I'm delighted he will be with us next season. "
As for Giroud, his future has been up in the air for quite some time now. However, he's glad to remain at Chelsea and eager to prove his credentials as a starter in future.
"I am delighted to continue my journey and adventure at Chelsea. I can't wait to get back to playing and enjoying competitive football with my team-mates.
I'm looking forward to wearing the Chelsea shirt again, especially in front of our fans at a full Stamford Bridge, whenever it is safe to do so. "
Giroud was frozen out of the matchday squad from December to February, but scored two goals in three EPL starts before the enforced break - against Tottenham and Everton.
Lampard said: "Since I have been back at Chelsea, Olivier has been brilliant as a professional and as a man in general.
He has great qualities to help the squad both on and off the pitch, not only with his talent but the example he sets every day and experience he brings to our young squad. I am very pleased that will continue next season. "
Chelsea were three points clear of closest Champions League-chasing rivals Manchester United in the final UCL qualification berth, but have tricky fixtures should the season resume.
As well as games against defending champions Manchester City and league leaders Liverpool, they are still to play Wolves and Sheffield United in their final nine EPL games. | english |
Maya Hari and Rajiv Srivastav, left the media speculating that alls not well.
India MD; Hemant Sachdeva (from Bharti) as head of consumer and online business;
entertainment and devices division.
a pronounced focus on the consumer line too. Like other software vendors,
If Project Shiksha was the first phase in its Partners in Learning program,
global peers was another initiative under its aegis.
Hyderabad successfully completing a decade of its existence.
(Rs crore)
| english |
package edu.uconn.engr.dna.io;
import edu.uconn.engr.dna.util.GroupedRandomAccessMap;
import edu.uconn.engr.dna.util.RandomAccessMap;
import java.io.InputStream;
public class DefaultTwoFieldParser<R> extends AbstractParser implements
Parser<RandomAccessMap<String,R>> {
private final String lineFormat;
private final int fieldOneIndex;
private final int fieldTwoIndex;
// private static final Logger log =
// Logger.getLogger(DefaultTwoFieldParser.class);
private final GroupedRandomAccessMap<String, String, R> output;
public DefaultTwoFieldParser(String lineFormat, int firstFieldIndex,
int secondFieldIndex,
GroupedRandomAccessMap<String, String, R> output) {
this.output = output;
this.lineFormat = lineFormat;
this.fieldOneIndex = firstFieldIndex;
this.fieldTwoIndex = secondFieldIndex;
}
/**
* Creates a new Parser for the format "field1 field2"
*
* @return a new ClustersParser
*/
public static <R> DefaultTwoFieldParser<R> getRegularTwoFieldParser(
GroupedRandomAccessMap<String, String, R> output) {
return new DefaultTwoFieldParser<R>("clusterId transcript", 0, 1,
output);
}
/**
* Creates a new ClustersParser for the format "transcriptId clusterId"
*
* @return a new ClustersParser
*/
public static <R> DefaultTwoFieldParser<R> getInvertedTwoFieldParser(
GroupedRandomAccessMap<String, String, R> output) {
return new DefaultTwoFieldParser<R>("transcript clusterId", 1, 0,
output);
}
@Override
public RandomAccessMap<String, R> parse(InputStream clusterInputStream) throws Exception {
super.read(clusterInputStream);
return output;
}
@Override
public void processLine(String line) {
if (line.isEmpty()) {
return;
}
String[] parts = line.split("\\s");
String fieldOne = getField(parts, fieldOneIndex);
String fieldTwo = getField(parts, fieldTwoIndex);
output.add(fieldOne, fresh(fieldTwo));
}
@Override
protected void handleException(String line, Exception e) throws Exception {
System.out.println("ErrorLine " + line);
System.err.println("Invalid file format! Expected: " + lineFormat
+ "\nIn line: " + line);
e.printStackTrace();
throw e;
}
}
| java |
__author__ = '<NAME> <<EMAIL>>'
__version__ = '0.2'
| python |
{
"main": {
"toolTipHeader": "Stretchly - Потсетник за паузи",
"syncPreferences": "Синхронизирај подесувања",
"contributorPreferences": "Подесувања на соработници",
"preferences": "Подесувања",
"cancel": "Откажи",
"continue": "Продолжи",
"warning": "Ова ќе ги врати стандардните вредност на апликацијата и сите ваши подесувања ќе бидат избришани.",
"restoreDefaults": "Вратете ги стандардните вредности",
"quitStretchly": "Затвори Stretchly",
"resetBreaks": "Ресетирај паузи",
"indefinitely": "Неопределено",
"untilMorning": "До изутрина",
"for5Hours": "5 часа",
"for2Hours": "2 часа",
"forHour": "1 час",
"pause": "Паузирај паузи",
"resume": "Продолжи со паузи",
"skipToTheNext": "Прескокни до следната",
"toMicrobreak": "Кратка пауза",
"toBreak": "Долга пауза",
"downloadLatestVersion": "Превземање на најновата верзија",
"resumingBreaks": "Продолжување на паузите",
"breakIn": "Долга пауза за $t(utils.seconds, {'count': {{seconds}} })",
"microbreakIn": "Мала пауза за $t(utils.seconds, {'count': {{seconds}} })"
},
"preferences": {
"schedule": {
"strictMode": "Строг Режим:",
"enablePostponeLong": "Овозможете одложување на Долги Паузи",
"showNotificationBeforeLongBreak": "Прикажи нотификација пред започнувањето на Долга Пауза",
"enableLongBreaks": "Овозможи Долги Паузи",
"longBreaksInfo": "Долгите паузи се прават помалку редовно, но имаат поголемо траење, што ви овозможува да направите подолга пауза од вашата работа.",
"longBreaks": "Долги Паузи:",
"enablePostponeMini": "Овозможете одложување на <NAME>",
"showNotificationBeforeMiniBreak": "Прикажи нотификација пред започнување на <NAME>",
"every": "Секои:",
"breakFor": "Пауза за:",
"enableMiniBreaks": "Овозможи <NAME>",
"miniBreaksInfo": "Мали паузи се кратки паузи направени редовно за да ви дадат можност да се истегнете и опуштите.",
"miniBreaks": "Мали паузи:"
},
"settings": {
"restoreDefaults": "Врати ги стандардните вредности",
"language": "Избери јазик:",
"monitorDnd": "Прикажи ги паузите и во режимот „Не вознемирувај“",
"monitorIdleTime": "Следете го времето на мирување на системот (паузите се паузираат ако системот е во мирување).",
"allScreens": "Прикажи ги паузите на сите монитори",
"showIdeas": "Прикажи совети за вежби за време на паузите",
"fullscreen": "Цел екран",
"window": "Прозорец",
"showBreaksIn": "Прикажи ги паузите на:",
"openAtLogin": "Стартувај го Stretchly автоматски кога ќе се најавиш"
},
"nav": {
"heart": "Засакај го Stretchly",
"about": "За нас",
"theme": "Тема",
"schedule": "Распоред",
"settings": "Подесувања"
},
"title": "Stretchly подесувања"
},
"break": {
"title": "Време е за пауза!",
"skip": "Прескокнете ја оваа пауза",
"postpone": "Одложете ја оваа пауза"
}
} | json |
Xiaomi Civi 3 is all set to go official on May 25. Ahead of the official debut, the Chinese smartphone brand has released multiple posters, showing the complete design of the Civi series smartphone. The Xiaomi Civi 3 is teased to come with a 50-megapixel primary rear sensor with support for Optical Image Stabilisation (OIS). Just like the predecessor Xiaomi Civi 2, it is shown with a pill-shaped cutout on the display housing two 32-megapixel front-facing cameras. The Xiaomi Civi 3 is confirmed to be powered by a MediaTek Dimensity 8200 SoC.
As we are inching closer to the launch of the Xiaomi Civi 3, Xiaomi has revealed more design details and specifications of the smartphone via Weibo. As mentioned, the teasers show off the handset with a pill-shaped cutout on the display and curved edges. It has a dual-tone design and a circular-shaped camera module.
Xiaomi had already announced that the launch of Xiaomi Civi 3 will take place on May 25. The launch event will begin at 2:00pm local time (11:30am IST) in China. The handset will be equipped with the MediaTek Dimensity 8200 SoC. It is confirmed to come in Adventure Gold, Coconut Grey, Mint Green, and Rose Purple shades. Xiaomi has not commented on the global release of the new Civi phone yet.
The Xiaomi Civi 2 was launched in China last year with a starting price of CNY 2,399 (roughly Rs. 27,000) for the 8GB RAM + 128GB storage model.
Xiaomi launched its camera focussed flagship Xiaomi 13 Ultra smartphone, while Apple opened it's first stores in India this week. We discuss these developments, as well as other reports on smartphone-related rumours and more on Orbital, the Gadgets 360 podcast. Orbital is available on Spotify, Gaana, JioSaavn, Google Podcasts, Apple Podcasts, Amazon Music and wherever you get your podcasts. Affiliate links may be automatically generated - see our ethics statement for details.
| english |
#include "appconfig_reader.h"
#include "common.h"
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/ini_parser.hpp>
#include <boost/algorithm/string.hpp>
#include <iostream>
using namespace boost;
static const char *kAppConfigRoot = "server";
static const char *kDogCheckInterval = "DogCheckInterval";
static const char *kHeartbeatInterval = "HeartbeatInterval";
static const char *kMaxSupportClientNum = "MaxSupportClientNum";
static const char *kServerPort = "ServerPort";
// load app configure
ServerConfig loadAppConfig(const std::string &filepath)
{
property_tree::ptree pt;
property_tree::ini_parser::read_ini(filepath, pt);
property_tree::ptree client;
client = pt.get_child(kAppConfigRoot);
ServerConfig cfg;
auto a = client.get_optional<int>(kHeartbeatInterval);
if (a)
cfg.heartbeatInterval = *a;
auto b = client.get_optional<int>(kDogCheckInterval);
if (b)
cfg.dogCheckInterval = *b;
auto c = client.get_optional<int>(kMaxSupportClientNum);
if (c)
cfg.maxSupportClientNum = *c;
auto d = client.get_optional<int>(kServerPort);
if (d)
cfg.serverPort = *d;
return cfg;
}
| cpp |
ONE atomweight kickboxing world champion, Janet Todd, spoke to SCMP Martial Arts ahead of her ONE 159 bout about a possible Muay Thai title unification matchup with the current champion, Allycia Rodrigues. She said:
"I want the best version of Allycia. "
Allycia Rodrigues became the undisputed Muay Thai champion after dethroning Stamp Fairtex for the world title in 2020. The Brazilian powerhouse sent shockwaves across Asia after winning a five-round decision against the former Thai champion.
However, it's been two years since Rodrigues last fought in the circle. While she was away, she became a full-time mother and has since been on the road to recovery.
When Janet "JT" Todd was asked about the possibility of unifying her title belt against Rodrigues in the near future, she said:
In continuation, 'JT' was also asked if she wouldn't mind defending her interim belt a few times before Rodrigues felt ready to return. She said:
Watch the full interview below:
Janet Todd heads towards an interim title bout after a long year of waiting. Hence, the 36 year-old champion is pumped to make her return to the circle against Spanish WBC Muay Thai World Champion Lara Fernandez on July 22, 2022.
Deeply rooted into Muay Thai, Janet Todd made her jump to kickboxing stardom after defeating the Thai prodigy Stamp Fairtex for the kickboxing world title in 2020.
Initially, the American standout began her ONE Championship journey as a Muay Thai fighter. After suffering her debut loss against Fairtex in Muay Thai, she looked towards kickboxing instead.
In the following months, Todd made her debut against Chin Long Wang. The American champion proved she was on a different level and dominated Wang with powerful strikes and relentless pressure. She depleted Wang's energy and finished her in round two with leg kicks.
After her successful debut, Janet looked unstoppable. In 2020, she challenged Fairtex again but this time under kickboxing rules. The Californian native emerged victorious and was crowned the new atomweight kickboxing champion via split-decision.
Janet Todd will have to defend her interim title a few times before she can fight for the main title. In the meantime, she has other fish to fry and rumour has it that Anissa Meksen might be her next challenger. | english |
At the risk of sticking my neck out, I'm going to say this - I'm cautiously optimistic for graphics card prices in 2022. Yes, things are bleak. Yes, things can only get better. But, there are glimmers of hope on the horizon this year.
Like many of our readers, I'm a long-suffering PC gamer trying to make last-gen's cards stretch just that little bit further. I've been running an AMD RX 480 since 2016 and I've watched the release of the Nvidia RTX 3050 with bated breath wondering will this finally be the one?
Long story short, I held out and the card sold out - quickly, I might add. Still, a lucky few managed to get a decent card for just $249 this week. For gamers everywhere that's fantastic news. For too long now we've had to settle for buying second cards from way-back-when or settle for horrendously price-gouged budget GPUs.
Better yet still, several sites have reported that the GPU market is finally stabilizing, if not outright improving just yet. This, alongside developments in the Crypto market, has me cautiously optimistic. I want to believe, and there's finally evidence to suggest this year it might be possible to build a gaming PC without selling a kidney or remortgaging your house.
Now, before we get into it, for the sake of balance it's important to quickly cover a few counterpoints to what I've suggested above.
First up, the fact is that both Nvidia and AMD (and Intel, for that matter) are facing increasing manufacturing costs this year. TMSC, which is the Taiwanese semi-conductor firm that most of the big silicon giants use for their latest chips, has quoted increases anywhere between 10 to 20%, depending on the process.
Off the bat, that right there does not look good for graphics card prices in 2022. It's giving retailers and vendors another excuse to hike up those prices even before they hit the shelves to face the scalpers. Before I sound conspiratorial - many have speculated that the numbers over the past year simply don't add up.
YouTube channel TechLens for example in a post from October 2021, found that even with increased manufacturing costs, import tariffs, and shipping costs, prices were still inflated. It straight-up sucks that retailers would join in on the GPU price gouging but it seems there's evidence to suggest that that's partly the case.
Manufacturing costs aside, It's also worth noting that GPU prices have fallen in the past year, only to sharply rise again in conjunction with developments in crypto. Prices peaked over May last year, fell dramatically in July, but then steadily rose again throughout the year to November - after which they've shown signs of slowing down again. In short, it's a rollercoaster ride that no one's been able to predict with any certainty.
Back to the RTX 3050 launch specifically. Yesterday, cards were generally priced around the $250 mark to the $440 mark, with the cheapest being $249.99 for single-fan low profile cards with reference clock speeds. The priciest card was the ASUS ROG Strix GeForce RTX 3050, which went for $489.99 according to Tom's Hardware.
No surprises - all of these cards sold out in both the US and UK (our main areas of operation) within hours, if not minutes. In particular, the beefier cards with aftermarket coolers tended to go the quickest, although that's just based on our own anecdotal observations - for all intents and purposes, most cards were gone in a flash.
While that's not exactly good news for anyone hoping to snap up a card, the fact remains that some lucky people did in fact manage to snag themselves a pretty capable card for $249. That alone bodes well for graphics card prices in 2022, although we think there are stronger indicators for a positive change this year.
You see, even though the RTX 3050 expectedly flew off the shelves this week there's actually another card that's a better indicator of where the market is going - the AMD Radeon RX 6500 XT.
Now, before you say 'TechRadar, that card is absolutely dreadful' let us say - 'yes, it absolutely is'. Its performance is on par with mid-range cards from 2016 / 2017 and it's literally the same $220ish price at launch. That, however, has meant that as of writing this card is still in stock at Amazon for $299 - even a full week after its release.
Yep, we've finally got a new graphics card that's so bad that even the scalpers aren't bothering to horde them. Hyperbole aside, however, this is the first launch we've seen in over a year that's resembled anything normal - and gamers should see that as a positive change for 2022. It's a bad card, sure, but we've seen equally bad (and older) cards go for more over the past year, even on the second-hand market.
There's also the fact that we could be seeing major changes in the Crypto market for 2022. As of writing, both Bitcoin and Ethereum are currently facing a slump in value (I'm wary of calling it a crash) and the latter is also set to move to proof of stake this year. While it's almost a certainty that cryptocurrencies aren't going anywhere fast, the most heavily mined coin moving to an infrastructure where GPU mining is no longer profitable is eye-wateringly good news for gamers.
And, even better still the heavily rumored Intel Arc GPUs are on their way this year. Will they be the silver bullet? Let's face it - it's not likely, although more competition and demand from the silicone giants has generally always been a win for consumers.
So, what am I getting at here? Well, right here is the bitter truth of graphics card prices in 2022; demand is going to stabilize, overall prices are going to fall, but we'll likely still be faced with poorer choices circa pre-2020. I base that on the launch of RX 6500 XT, the RTX 3050, and the observed stabilization in GPU prices from well-known tracking sites like Tom's Hardware, TechSpot, and 3D Center.
In particular, the Tom's Hardware article highlights something very interesting - not only are cards starting to get ever-so-slightly cheaper on eBay, but the overall number of transactions is now trending down. If demand is falling, surely we'll see prices following soon enough.
An optimistic but realistic prediction for 2022 is we'll no longer be paying two to three times MSRP for a card but closer to 30% more by the end of the year. We're already seeing markups as low as 59% for some higher-end AMD cards new, so I don't think it's wildly unrealistic to expect this if demand stabilizes.
Get the hottest deals available in your inbox plus news, reviews, opinion, analysis, deals and more from the TechRadar team.
Alex is deals editor at TechRadar. With over three years of experience on-site and eight years working in e-commerce, Alex has made it his personal mission to share all his favorite tips, bargains, and deals with our readers here at TechRadar. At work, he specializes in computing, phones, and covering huge sales events like Black Friday and Amazon Prime Day. Outside of work, you'll find him indulging his keen love of photography and PC gaming, or down at the local climbing gym hanging off boulders far too difficult for his abilities. His editorial bylines also include contributions to T3 and GamesRadar.
| english |
League, here today.
Royals are coming back to the IPL this year after serving a two-year ban and the official event was more of promotional nature aired by official broadcasters Star Sports as Smith's choice as leader was just a formality.
Smith, inarguably one of the best batsman in world cricket at present, was part of the Rajasthan Royals in 2014 and 2015 and was retained by the franchise.
Notably Smith had led the the Rising Pune Supergiant last year to the final of the IPL where they eventually lost to champions Mumbai Indians. In what was a successful season for him, Smith had amassed 472 runs in 15 matches in the last IPL season.
Smith said that he was looking forward to work with Warne.
Its great to be back with the Royals. It s an honour and privilege to be leading Royals and looking forward to working with the King (Shane Warne)," the right handed batsman was quoted as saying in a media release issued here.
Mentor Shane Warne said the Royals will continue to play intense cricket. | english |
import * as React from 'react';
// Most of the elements we use don't actually have any default behavior of their own,
// but their parent elements might have some behavior (default or implemented by us)
// that we need to prevent.
// In most cases, stopPropagation would probably be sufficient for that. However,
// there is at least one case where preventDefault is crucial: The default behavior
// of touch events is a conversion to mouse events, so when we explicitly handle a
// touch event, we definitely do need to call preventDefault. Similarly but less
// importantly, when we handle a mouse down/up event, we usually want to prevent the
// conversion to a click event.
export function disableDefaultBehavior(event: React.SyntheticEvent<HTMLElement>): void {
event.stopPropagation();
event.preventDefault();
}
// Like disableDefaultBehavior, but keeps (actually, replicates) the default behavior
// that mousedown/touchstart events blur other elements.
export function disableOwnDefaultBehavior(event: React.SyntheticEvent<HTMLElement>): void {
disableDefaultBehavior(event);
if (event.type === 'mousedown' || event.type === 'touchstart') {
// It would be nice if we could just call event.currentTarget.focus() instead,
// but that doesn't seem to have any effect.
blurActiveElement();
}
}
function blurActiveElement(): void {
const activeElement = document.activeElement;
if (activeElement instanceof HTMLElement && activeElement.tagName !== 'BODY') {
activeElement.blur();
}
}
// Keep all default behavior, but don't call parent event handlers.
// This is mainly useful for touch events: We often want to keep their default
// behavior of simulating a mouse event (especially in standard controls, where we
// might not even define any handlers of our own). However, if a parent element
// contains a handler for the touch event, then that handler is called instead,
// unless we stop propagation before the handler is reached.
export function limitDefaultBehaviorToElement(event: React.SyntheticEvent<HTMLElement>): void {
event.stopPropagation();
}
| typescript |
{
"ConnectionStrings": {
"DefaultConnection": "Server=.;Database=HealthHub;Trusted_Connection=True;MultipleActiveResultSets=true"
},
"SendGrid": {
"ApiKey": "string api key created from sendgrid.com and to be kept in appsettings.Production.json"
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*"
}
| json |
<filename>src/main/java/de/tum/in/test/api/WhitelistClass.java
package de.tum.in.test.api;
import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Documented;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import org.apiguardian.api.API;
import org.apiguardian.api.API.Status;
/**
* Marks a class trusted for the test scope the annotation is applied to. The
* class has therefore more freedom and is less restricted by the
* SecurityManager.
*
* @author <NAME>
* @since 0.4.4
* @version 1.0.0
*/
@API(status = Status.MAINTAINED)
@Documented
@Retention(RUNTIME)
@Target({ TYPE, METHOD, ANNOTATION_TYPE })
@Repeatable(WhitelistClasses.class)
public @interface WhitelistClass {
Class<?>[] value();
}
| java |
const {contextBridge, ipcRenderer} = require('electron');
contextBridge.exposeInMainWorld('windroid', {
system: {
getConfiguration: async (key) => ipcRenderer.invoke('system:gconf', key),
setConfiguration: async (key, value) => ipcRenderer.invoke('system:sconf', key, value),
},
user: {
registerScene: async () => ipcRenderer.invoke('user:rgscene'),
loginScene: async () => ipcRenderer.invoke('user:lgscene'),
getName: async () => await ipcRenderer.invoke('user:gname'),
getPass: async () => await ipcRenderer.invoke('user:gpass'),
setName: async (arg) => ipcRenderer.invoke('user:sname', arg),
setPass: async (arg) => ipcRenderer.invoke('user:spass', arg),
register: async (arg0, arg1) => ipcRenderer.invoke('user:reg', arg0, arg1),
login: async (arg0, arg1) => ipcRenderer.invoke('user:log', arg0, arg1)
}
}) | javascript |
Be warned! Both these series are simply out of this world and heavy duty. So be prepared to listen to them at least twice.
Surah Anfal, Chapter 8, Verse 24:
\\\'O you who believe! answer (the call of) Allah and His Messenger when he calls you to that which gives you life; and know that Allah intervenes between man and his heart, and that to Him you shall be gathered.\\\' (8:24)
Be warned! Both these series are simply out of this world and heavy duty. So be prepared to listen to them at least twice.
Surah Anfal, Chapter 8, Verse 24:
\'O you who believe! answer (the call of) Allah and His Messenger when he calls you to that which gives you life; and know that Allah intervenes between man and his heart, and that to Him you shall be gathered.\' (8:24)
In a speech commemorating the liberation of South Lebanon from Israeli occupation in 2000, Hezbollah leader Hassan Nasrallah blasts the Takfiri Wahhabi mentality that is spreading in the post-Arab Spring Middle East and calls it a disease that should not be ignored. He specifically gives examples from Iraq and Pakistan where these Takfiri groups killed people indiscriminately, not necessarily based only on sectarian affiliation but also based on political views.
He also warned that this disease that has been heading to Lebanon poses a grave danger to the Lebanese society at large (Muslims and Christians), including all Lebanese institutions. He also considered the Syrian provinces adjacent to Lebanon as a critical area to prevent these groups from flooding into Lebanon.
The End of Negative Suffering - Br. Khalil Jaffer Uploaded on May 4, 2011 Be warned! Both these series are simply out of this world and heavy duty. So be prepared to listen to them at least twice. Surah Anfal, Chapter 8, Verse 24: \\\\\\\\\\\\\\\'O you who believe! answer (the call of) Allah and His Messenger when he calls you to that which gives you life; and know that Allah intervenes between man and his heart, and that to Him you shall be gathered.\\\\\\\\\\\\\\\' (8:24)
The End of Negative Suffering - Br. Khalil Jaffer Uploaded on May 4, 2011 Be warned! Both these series are simply out of this world and heavy duty. So be prepared to listen to them at least twice. Surah Anfal, Chapter 8, Verse 24: \\\\\\\'O you who believe! answer (the call of) Allah and His Messenger when he calls you to that which gives you life; and know that Allah intervenes between man and his heart, and that to Him you shall be gathered.\\\\\\\' (8:24)
The Leader of Iran\\\\\\\\\\\\\\\'s Islamic Revolution says the country\\\\\\\\\\\\\\\'s nuclear program is just an excuse for the United States to continue its enmity toward the Iranian nation.
Ayatollah Seyyed Ali Khamenei referred to the history of US hostility toward the Iranian nation. He said that the US officials had targeted Iran with various forms of plots, campaigns and schemes, before the nuclear issue even existed. The Leader rejected as simplistic or ill-intended those statements made by some elements who claim that if Iran gives up its nuclear rights, all economic and other problems facing the country will be resolved overnight. Ayatollah Khamenei defended the Iranian negotiating team against internal criticism. He said the Iranian negotiators-- who have held talks with the UN Security Council\\\\\\\\\\\\\\\'s permanent members plus Germany, are shouldering a tough responsibility. The Leader however reiterated his skepticism of US intentions, saying a smiling enemy cannot be trusted.
In Afghanistan, Loya Jirga-- or the grand assembly of tribal elders-- has approved a controversial security pact with the US. But the president has refused to sign it.
Karzai made the remarks in the final hours of Loya Jirga. He said to guarantee peace, a free and fair vote is needed and therefore Washington should not meddle in the April elections. Karzai also noted that Americans don\'t have the right to raid Aghans\' homes and if they do it once more, there will be no agreement. However, the US has praised Loya Jirga\'s decision and urged Karzai to sign the pact before the end of 2014. If signed, the agreement will allow thousands of US troops to stay in the country beyond 2014. It also gives them immunity from prosecution under Afghan law.
The Israeli parliament has approved a law that allows new illegal migrants to be held without charge.
The Israeli parliament has approved a law that allows new illegal migrants to be held without charge.
Under the new law, illegal migrants face up to a year in detention. The law also gives Israeli authorities the right to send illegal immigrants living in Israeli cities to complexes called open facilities-- until they are deported or voluntarily go back to their homeland. The first such facilities is due to start operating this week in the Negev Desert in southern Israel. Migrants kept there will have no right to work. Critics of the new law have described such open facilities as prisons. They predict the new law- like the previous one- will be challenged in the Supreme Court. More than 50-thousand African immigrants currently work in low-paying jobs in Israel.
Israel has once again violated international law by illegally drawing up a line between the occupied Palestine territories and neighboring Lebanon. The move gives Tel Aviv access to more areas which are very rich in oil.
Shia Muslims in Pakistan come under yet another terrorist attack. Two-dozen Shia pilgrims have been killed in a bomb blast. The pilgims\' bus was targeted at a village in the southwestern province of Balochistan, as they were returning from their visit to Iran. Our correspondent in Pakistan gives us the details.
Cito gives Tayo a tour of the garage. From the repair shop to the car wash to the training center, Tayo finds everything fascinating and fun. Tayo is left by himself when Cito and Rogi go off to work. Curious about the city, Tayo leaves the garage but ends up getting lost. The buses set out on a search for Tayo but to no avail. In the end, Tayo is reunited with his friends thanks to Rookie and Pat and safely returns home.
Tayo becomes envious when Rogi goes off on a picnic. Speedy suggests a picnic with him and Toto but unfortunately, Tayo has to work. Tayo lies about being sick the next day and gives all his work to Gani so that he can go on a picnic with Speedy and Toto. The three of them come across a broken down car on their picnic. Toto acts responsibly although it is his day off, and tows the car to the repair shop. Tayo regrets lying about being sick and resolves to never to neglect his work again.
Russia and China have skipped a UN Security Council meeting called to discuss a draft resolution that would impose more sanctions on Syria unless the government gives unrestricted access to deliver aid.
The resolution was drafted by Australia, Jordan, and Luxembourg. Russia\'s UN envoy, Vitaly Churkin, vowed to veto the proposed measure if necessary, saying that the resolution would increase tension in Syria and disrupt the current humanitarian efforts. The Russian ambassador added that the measure would endanger the Geneva-two negotiations being held in Switzerland.
Hana sends Tayo on an errand to a construction site. There, Tayo meets heavy machinery and gets excited, making the vehicles bicker about who is cooler. They decide to hold a contest to settle the matter, with Tayo as their judge. However, Tayo gives them weird quizzes and embarrassing assignments to carry out. The last assignment, knocking down barrels with tires, leads to havoc when the atmosphere becomes overheated and the construction walls get knocked down, creating a mess on the nearby roads. The vehicles quickly act together to restore things as they were. Everyone realizes that heavy machinery is coolest when cooperating with each other.
Dealing with violent security situation still remains a serious challenge in Pakistan.
Dealing with violent security situation still remains a serious challenge in Pakistan.
Now after months of consultations, Pakistan government has finally approved a new national security policy. The 86-page document gives a rare insight into the country\'s current security problems. According to the first-ever national security policy document, close to 50,000 people were killed in Pakistan among them over 5000 personnel of the law-enforcement agencies since the country joined the so-called US-led war on terror after 9/11 attacks in 2001. The document goes on to estimate the total loss to economy in the last ten years because of terrorism at $78 billion.
The following is the full text of the sermons delivered on August 9, 2013 by Ayatollah Khamenei, the Supreme Leader of the Islamic Revolution, during Eid ul-Fitr prayers in Tehran.
All praise is due to Allah, the Lord of the Worlds, the Creator of all creatures, Whom we praise, from Whom we seek help, to Whom we repent, and Whom we rely on, and peace and greetings be upon His beloved and noble one, the best among His servants, the protector of His secret, the promoter of His message, the harbinger of His mercy, the warner of His chastisement, our Master and Prophet, Ab-al-Qassem al-Mustafa Muhammad, upon his immaculate, pure and chosen household, and upon those who guide the guided, and who are immaculate and respected, especially the one remaining with Allah on earth.
I advise myself and all of you dear brothers and sisters, who said your prayers in this magnificent meeting, to fear God and engage in piety which is the source of happiness and victory in this world and in the hereafter. I would like to congratulate all of you, all the people of Iran and all Muslims throughout the world on the occasion of the auspicious Eid ul-Fitr.
The month of Ramadan, which is full of divine blessings for our nation and other Muslims, is over and many happy people benefited from the blessings of this month. These people spent the day obeying God while they were fasting and while they felt hungry and thirsty in such hot weather and on such hot days and they avoided carnal desires and curbed their human passions.
I hope that Allah the Exalted accepts your prayers, bestows and showers His mercy and blessings on the people of Iran and bestows abundant rewards on you for the efforts that you made in this month. One of the great efforts that the people made in this month was the Quds Day rallies. One cannot describe in any way, how significant what you did is. Throughout the country, you marched on the streets in such hot weather and while you were fasting in order to prove the resistance of the Iranian nation on this important issue of the world of Islam and the history of Islam. This is the meaning of a living nation. I deem it necessary to express my gratitude, from the bottom of my heart, to the Iranian nation for this effort.
This year, more than previous years, a good tradition was witnessed. It is good to pay attention to this issue which is the act of providing the people with simple and unadorned iftar meals in our mosques and on the streets of many cities of the country. Unlike the act of offering extravagant iftar meals which we heard a number of people did, this is a very appropriate act. Under the pretext of offering iftar meals, these people engaged in extravagant acts. Instead of becoming an instrument for establishing a psychological relationship with the poor and the deprived in the month of Ramadan, they indulged themselves in carnal desires by doing this.
We do not want to say that if somebody eats a delicious food during iftar, this is forbidden. No, according to Sharia, these things are not forbidden. But extravagance and overindulgence are forbidden. The extravagance which is sometimes witnessed in such occasions is forbidden. It is so much better for those who want to offer iftar meals to do this by cherishing the tradition which has become common. In such traditions, a number of individuals offer free iftar meals - with great generosity - to people and passers-by and those who like to benefit from these iftar meals on the streets and in different Hussayniyyahs.
I hope that Allah the Exalted bestows His blessings on all of you people of Iran and accepts your actions. I hope that He bestows on you the blessing to preserve the achievements of the auspicious month of Ramadan until next year.
I swear by the time,
Most surely man is in loss,
All praise is due to Allah, the Lord of the Worlds, and peace and greetings be upon our Master and Prophet, Ab-al-Qassem al-Mustafa Muhammad and upon his immaculate, pure and chosen household, especially upon the Commander of the Faithful, the Mistress of all Women, Hassan and Hussein- the children of mercy and the Imams of the guided, Ali ibn al-Hussein Zayn al-Abidin, Muhammad ibn Ali al-Baqir, Ja\\\\\\\\\\\\\\\'far ibn Muhammad al-Sadiq, Musa ibn Ja\\\\\\\\\\\\\\\'far al-Kadhim, Ali ibn Musa ar-Ridha, Muhammad ibn Ali al-Jawad, Ali ibn Muhammad al-Hadi, Hassan ibn Ali al-Askari and Hujjat al-Qaem al-Mahdi. Greetings be upon them all and upon the Imams of Muslims, supporters of the oppressed, and those who guide the faithful. We ask for Allah\\\\\\\\\\\\\\\'s forgiveness and we turn repentant to Him.
I advise all the brothers and sisters to observe piety in their speech, behavior and positions and in different social, economic and political arenas.
These days, many events are taking place in West Asia, North Africa and, generally, in Islamic regions. I will briefly refer to a number of these events. In our own country, the important event is the formation of the new administration. Thankfully, with the determination and all-out efforts of the people, this legal request was granted and this national tradition was preserved in the best way possible. By Allah\\\\\\\\\\\\\\\'s favor, after the Majlis carries out its responsibility of choosing competent ministers, the administration will be formed and it will start to fulfill the great and important tasks which it is in charge of although it has already started to fulfill many of the tasks. I hope that the honorable president and the executive officials of the country will benefit from divine blessings. I hope that the people\\\\\\\\\\\\\\\'s support and assistance will help them carry out the great responsibilities - great responsibilities have great advantages as well as great difficulties - which they have in the best way possible.
However in countries which are located around us - countries in West Asia and North Africa - the events that are taking place are not happy events. Rather, they are worrying events. One event is the event of the oppressed Palestine. After the passage of 65 years since the official occupation of Palestine, this oppressed nation continues to suffer from oppression and cruelty on a daily basis. Houses are destroyed, innocent people are arrested, children are separated from their parents and prisons are filled with people who are innocent or who have served their prison terms. What is distressing is that western powers support these criminals with all their power. One of the disasters of today\\\\\\\\\\\\\\\'s world is that an act of clear oppression, which is a combination of tens and hundreds of oppressive acts, is supported by those who claim they support human rights and democracy and who chant beautiful and colorful slogans, but who support criminals in practice.
Now, a number of negotiations have begun again between the self-governing government of Palestine and the Zionists. These negotiations will definitely not produce any results other than what happened during previous negotiations in which Palestinians gave up their rights and encouraged the transgressors to transgress more and stop the lawful political activities of the people of Palestine. They destroy houses, build unlawful buildings for the people who have occupied Palestine and then they say that they are negotiating. Now, they have announced that negotiations will be conducted in secret. The way global arrogance cooks these negotiations will definitely be to the disadvantage of the Palestinians.
We believe that the world of Islam should not back down on the issue of Palestine and it should condemn the usurping act of the predatory and wolf-like Zionists and their international supporters. It should not let these negotiations which are conducted with the so-called mediation of America lead to more oppression against the people of Palestine and to the isolation of Muslim Palestinian fighters. In fact, America is not a mediator. Rather, the Americans themselves are one side of these negotiations and they are on the side of the usurpers of Palestine, the Zionists.
Another issue is the issue of Egypt. We are concerned about what is happening in Egypt. Considering the things that are being done in this country, the idea that a civil war may break out in Egypt is gaining strength on a daily basis and this is a disaster. It is necessary for the great people of Egypt and political, scientific and religious personalities in this country to take a look at the current situation and see what catastrophic consequences this situation may have. They should see the current situation in Syria. They should see the consequences of the presence of western and Zionist mercenaries and terrorists wherever they are active. They should see these dangers. Democracy should receive attention. The killing of people is vigorously condemned by Muslims. Using the language of violence and bullying by different groups of people is absolutely useless and it will cause great harm.
The intervention of foreign powers - the way it is witnessed in the present time - will produce nothing except for loss and harm. The problems of Egypt should be solved by the people of Egypt and the outstanding personalities of Egypt. They should think about the catastrophic and dangerous consequences of this situation. If, God forbid, there is mayhem and if, God forbid, a civil war breaks out, what can then preclude this? In such conditions, there will be excuse for the intervention of superpowers which are the greatest disaster for any country and nation. We are concerned. We would like to offer a brotherly piece of advice to outstanding Egyptian personalities, the people of Egypt, political and religious groups and religious scholars. They should think of a solution on their own and adopt this solution on their own. They should not allow foreigners and powers - whose intelligence services have, most likely, played a role in creating this situation - to make more interventions.
Another issue is the issue of Iraq. In Iraq, a democratic administration and government has come to power with the votes of the people. Because superpowers and the reactionary forces of the region are unhappy about this situation, they do not want to let the people of Iraq feel comfort. These explosions, these killings and these criminal and terrorist activities results from the assistance and financial, political and arms support of a number of regional and ultra-regional powers which do not want to let the Iraqi nation live its life the way it wants. It is necessary for Iraqi politicians and officials, Iraqi groups, Shia and Sunni Muslims, Arabs and Kurds to take a look at the situation which exists in a number of other countries. They should notice that the consequences of civil wars and domestic conflicts, which destroy the infrastructures of any country, ruin the future of any nation. In all these events, the Zionist regime and usurpers sit and watch this situation with satisfaction and they feel comfort. Should this be allowed to continue?
Dear God, by the blessedness of Muhammad (s.w.a.) and his household (a.s.), awaken us from ignorance. Dear God, cut off the hands of malicious people and transgressors in Islamic nations and countries. Dear God, by the blessedness of Muhammad (s.w.a.) and his household (a.s.), make Islam and Muslims achieve victory wherever they are.
To you, have We granted the Fount (of Abundance),
Therefore to your Lord turn in Prayer and Sacrifice,
First of all, I would like to welcome all the dear brothers and sisters and the glorious officials who render many services in one of the outstanding arenas of the Islamic community - that is to say, the arena of hajj and visiting the House of God and the enlightened city of Madina. I hope that you will benefit from this great achievement in the hereafter. I hope that your actions and efforts in this auspicious arena will be so sincere that your performance sheet in the hereafter shines, like the sun, with the light of purity and sincerity. I express my gratitude to the honorable gentlemen for the efforts that they have made in the arena of hajj. The things that they have done - whether in cultural, spiritual, moral and educational areas or in practical and organizational areas - should really be appreciated.
What is important is that we should know hajj is one of the strong points of the holy religion of Islam. Although there are not a few strong points in Islamic sharia, hajj plays an outstanding role because of the characteristics which it enjoys and which we are more or less familiar with. In fact, we can say that hajj is a source of power for the Islamic community and the Islamic Ummah. The day when we Muslims from different countries and with different denominations manage to achieve intellectual growth so much so that we can form the Islamic Ummah in the real sense of the word - unfortunately, we Muslims have not managed to achieve this moral, political and intellectual growth until today - and the day when we Muslims from eastern parts to western parts of the world of Islam manage to form one single ummah although we may have different governments, we understand how hajj can be a source of power, strength, transcendence and dignity for this Islamic Ummah.
Today, the Islamic Republic should adopt such an outlook towards hajj. It should regard hajj as a means of power. What kind of power? By power, do we mean materialistic, political, military power or soft power such as cultural or linguistic power? The answer is no. The power of hajj is far beyond this. As well as showing the political and cultural power of the Islamic government, hajj provides a source of spiritual power. That is to say, it builds human beings from the inside, prepares them to overcome difficult obstacles and opens their eyes to realities which cannot be seen and felt without being present in the arena of hajj. By performing hajj rituals, one can understand a number of spiritual and educational realities of Islam. Hajj plays such a role.
One of the requirements of hajj is that hajj pilgrims should behave in a brotherly - in the real sense of the word - way towards one another in the arena of hajj and this great Islamic obligation. They should not look at one another as outsiders and enemies. They should see themselves as people who are moving towards one goal, who pursue one thing, who revolve around one pivot.
Allah the Exalted says, \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Let there be no obscenity, no wickedness and no quarreling in the Hajj.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" [The Holy Quran, 2: 197] The meaning of \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"no quarreling\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" is not that we should not quarrel with the enemy. On the contrary, hajj is the manifestation of quarreling with the enemy. Some narrow-minded and pessimistic people say, \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"There should be ‘no quarreling\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' during hajj pilgrimage. Why do you hold a detestation ceremony during hajj pilgrimage?\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" The enmity which is reflected in this ceremony means enmity towards polytheism and atheism. This is one of the most fundamental principles of Islamic life. The kind of enmity which should not exist in hajj pilgrimage is enmity between brothers and believers and enmity between people who believe in monotheism. This enmity should not exist. Not only should we Muslims express in words that we have no enmity towards one another, but also we should feel this from the bottom of our hearts.
This is the exact opposite of what the enemies of Islam are trying to do in the Islamic community. You should pay attention to this. The existence of differences between Islamic denominations and between Shia and Sunni Muslims will not create any problem as long as these differences are confined to ideological differences. One person may believe in something and another person may believe in something else. Problems arise when these ideological differences lead to behavioral differences, confrontation, hostility and enmity. The enemies of the world of Islam are after creating such a situation and hatching such a plot.
They have properly understood that the Zionist regime can breathe easily if Islamic denominations in the world of Islam start confronting and fighting with one another. They have understood this truth perfectly and properly. On the one hand, they form groups which engage in takfirism - not only do these groups anathematize and curse Shia Muslims, but they also anathematize Sunni denominations - and on the other hand, they hire a number of mercenaries to add fuel to the fire of discord. You know and have heard about this plot. They provide these groups and mercenaries with different means of mass communication. Where do they do this? They do this in America and London. The kind of Shia Islam which is promoted from London and America is useless for Shia Muslims.
Shia leaders - particularly the leaders who emerged after the victory of the Islamic Revolution - our Imam and other leaders placed great emphasis on preserving the unity of the Islamic Ummah and behaving in a brotherly way towards Muslims. This is while a number of people - who interfere in the affairs of Muslims for no reason - are after fueling the fire of discord. This is the thing which the enemy wants. This is the thing which the enemies of Islam - who are neither Shia nor Sunni - like to pursue. We should understand this condition properly and we should pay attention to it.
Another important point is that Muslims should share and exchange their original Islamic cultures and their Islamic experiences with one another. This is another strong point of hajj and another source of power for it. We may have heard different things about such and such an Islamic country. But, hearing is different from sitting and talking directly to an individual from an Islamic country. This individual can also compare what he has heard about our dear Islamic Iran with what he sees in you and hears from you. This way, he can discover the truth about Iran.
There are an enormous number of propaganda campaigns against the Islamic Republic. There are a large and surprising number of media networks who propagandize against the Islamic Republic with different methods. When a young individual from such and such an African, Asian, Arab or non-Arab country goes on the Internet, watches such and such an international channel or reads such and such an international newspaper, how can he or she understand that what such media networks say is false? Your presence in hajj and in this international arena gives you the opportunity to reveal the truth not only in words but also in action. It helps you to speak the truth about Shia Islam, the Islamic Revolution and the events which are happening today.
Another important and crucial point about hajj is the thing which I referred to earlier: strengthening spirituality in our hearts and souls. My dear ones, we can put up a resistance in the arenas of jihad for the sake of God only if our hearts are filled with faith in God and reliance on Allah the Exalted. It is not possible to move forward without spirituality. It is not possible to take difficult paths without a strong faith. Without reliance on Allah the Exalted, it is not possible to ignore the superficial power of powerful countries and see the real power. Reliance on God, faith and belief in God\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s promises are necessary. These things can be achieved in hajj. When people go on hajj pilgrimage they \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Witness the benefits (provided) for them.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" [The Holy Quran, 22: 28] These benefits are not only material benefits. There are otherworldly, spiritual and psychological benefits as well as material benefits in hajj pilgrimage. This is the significance of hajj.
Well, today you can see that besides creating intellectual, psychological and ideological discord among Muslims throughout the world of Islam, the enemies fuel the fire of war as well. See how they fuel the fire of war in our neighboring countries with the pretext of Shia and Sunni differences. They do this in different ways in our neighboring countries such as Pakistan, Iraq, Syria and Bahrain. Even when the problem is not about Shia and Sunni, they say that it has occurred because of Shia and Sunni differences. I have given many examples in this regard. The enemies are prepared to set the region on fire for their own political interests. Superpowers are like this. They are not afraid that an explosion may take place in such and such a neighborhood of an Iraqi city and they are not afraid that 50 people may be killed in this explosion. They are not afraid that certain events may happen in Syria, Egypt or other countries which may turn them into a ruin. Superpowers - such as America and countries like America - do such things for their own illegitimate interests. We hope that the Americans are serious about their new outlook on Syria. We hope that it is not another political game.
It is several weeks that they have been threatening the region to wage a war and create a serious conflict for the sake of the interests which they have defined for themselves. And they consider it legitimate to defend these interests no matter if they jeopardize the interests of ten other countries and nations. They are such people. They do not care about justice and the interests of human beings. They refer to such interests as national interests, but these are not really their national interests. Rather, these are the interests of the Zionists and the enemies of humanity. These are the interests of capitalists who have proved during the last 70, 80 years that they are not committed to any human principle and value. But they call it national interests and they are prepared to fuel all kinds of wars and fitnas for the sake of these proclaimed national interests.
It is several weeks that they have been trying to cause great controversy by threatening the region with a war and bombardment. Well, if they are serious about their recent outlook, this means that they have turned back from the wrong path which they have been taking during the last few weeks. We hope that they are serious. This is the condition of the region and the world.
The Islamic Republic takes a look at all these issues with open eyes and with its full attention. What we have understood is that as a nation with a total population of 70, 80 million people and with a sensitive geographical location in the world, we should strengthen our position by adopting the right outlook and by benefiting from our Islamic power. We should let the entire humanity see our lofty and human goals which have originated from Islam and we should invite all human beings to cherish the gift which Islam has offered to human beings. This is our responsibility. I have repeatedly said that strengthening the country from the inside is possible primarily with firm faith, unity of the people, appropriate actions by the officials of the country, cooperation between the people and officials and reliance on Allah the Exalted. That is to say, we should benefit from rationality, spirituality, reliance on God and diligence. Undoubtedly, this will influence the conditions of the region as it has influenced the region so far.
I hope that what Islam wants for the Islamic Republic, people throughout the world, Muslims and non-Muslims will be achieved with your presence in different arenas - including your presence in the arena of hajj which manifests your rationality and your clear outlook. I hope that your presence in such arenas will bring about communal happiness.
I ask all of you to pray for us. I hope that this year you will experience a good hajj pilgrimage and I hope that you, all Iranian hajj pilgrims and all the pilgrims who visit the House of God from throughout the world will benefit from divine blessings and mercy. I hope that your hajj pilgrimage will be accepted by God.
This documentary gives a glimpse into how the people of Gaza are living their day to day life as a result of unending sieges and strikes.
This documentary gives a glimpse into how the people of Gaza are living their day to day life as a result of unending sieges and strikes.
This documentary gives a glimpse into how the people of Gaza are living their day to day life as a result of unending sieges and strikes.
This documentary gives a glimpse into how the people of Gaza are living their day to day life as a result of unending sieges and strikes.
This documentary gives a glimpse into how the people of Gaza are living their day to day life as a result of unending sieges and strikes.
This documentary gives a glimpse into how the people of Gaza are living their day to day life as a result of unending sieges and strikes.
This documentary gives a glimpse into how the people of Gaza are living their day to day life as a result of unending sieges and strikes.
This documentary gives a glimpse into how the people of Gaza are living their day to day life as a result of unending sieges and strikes.
The following is the full text of the speech delivered on July 23, 2014 by Ayatollah Khamenei, the Supreme Leader of the Islamic Revolution, in a meeting with students. The meeting was held on the eve of Quds Day.
I thank Allah the Exalted because at this point in time our country is witness to a group of young, religious, enthusiastic, motivated, reasonable and thoughtful people. Today, our meeting was a very good meeting. This matter has two parts: one is related to the details of the statements that the friends madew in this meeting. Well, good and valuable statements were made. It is possible that this humble person agrees or disagrees with these statements. The issue of content is one part of the issue. In my opinion, the part that is important and praiseworthy is the enthusiastic and inquiring spirit of students. This showed itself in the statements of the students who delivered a speech. This is important.
It is possible that some of the requests that these students made are reasonable and that some are not reasonable, achievable and acceptable. But the essence of this inquiring spirit and this motivation for wanting, thinking, suggesting and criticizing is perfect. Of course, one should observe morality, piety and religious obligations in all affairs. We should avoid unfair statements. We should avoid baseless and unsubstantiated statements. These points are important in their own respect, but what is of primary importance is that our young students should be inquiring, motivated, enthusiastic, present on the scene and attentive to the issues of the country.
Well, let us spend a few minutes discussing some of the issues that the friends raised in the meeting. The first issue is what I just said. I became happy with the spirit that exists in our young students - most of whom are representatives of student groups - and I thank God because one can feel that they enjoy enthusiasm, new ideas, motivation and an inquiring spirit. I hope that by Allah\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s favor, this spirit remains in you until you will be in charge of affairs because in the future, you will be officials in charge of affairs and you will be the managers of the country. I hope that by Allah\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s favor, this spirit and this critical, inquiring, responsible and dutiful outlook remains in you. If this happens, the country will be saved.
The friends in the meeting raised a number of issues which, in my opinion, are noteworthy and important. The issue of \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"knowledge for the sake of knowledge without paying attention to its benefits for the country\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" - which was raised by a number of friends - is completely correct and we have repeatedly brought it up as well.
Today, scientific work and endeavor in the country and in our universities and research centers is a lively, successful and praiseworthy endeavor. However, everyone should pay attention that knowledge is an introduction to action. Valuable knowledge is the kind of knowledge that helps the country and that is useful for solving its problems. Mere publication of our articles in, say, ISI journals and other such journals - even if they become a reference point - is not an ideal although it is praiseworthy in terms of knowledge. Scientific work should address the needs of the country.
This was mentioned by the friends in this meeting as well and I would like to stress it. The officials and high-ranking managers in charge of higher education are present in this meeting. I hope that by Allah\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s favor, they pay attention to this point.
There was another point in the statements of the friends which was correct. I too would like to place emphasis on it. This point is the relationship between methods of economic management and the culture of society. The idea that we brought up the issue of cultural invasion in the 1370s while the invasion was economic is completely correct. We do not reject this, but our outlook on knowledge as an original and vital issue should receive everyone\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s attention at any level.
At that time too, certain complaints were made about the methods of economic management. However, what was important and what is important today is our outlook on cultural orientations. Of course, we agree that the methods of economic management have certain effects on culture, but the opposite is true as well.
An issue that was discussed as a peripheral issue - but that is not peripheral to me and that is an important issue - is the issue of youth\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s marriage [students laugh and make noises indicating support]. We knew that you would have such a reaction to this issue. The issue of youth\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s marriage is an important issue. I fear that this indifferent outlook towards the issue of marriage - unfortunately, this indifferent outlook exists more or less today - will have terrible consequences for the future of the country.
You brought up the issue of military service, but in my opinion, the issue of military service is not a difficult issue. It is possible to think about and work on this issue. The solution for the problem of military service as an obstacle in the way of marriage is not that we shorten the term. We can adopt other methods for this problem, but it remains an issue. Motivation for marriage should turn into a practical measure. That is to say, marriage should be promoted.
Allah the Exalted says, \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"If they are in poverty, Allah will give them means out of His grace\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" [The Holy Quran, 24: 32]. This is a divine promise. We should trust this promise as we trust other divine promises. Marriage and starting a family has not made and will not make individuals experience hard living conditions. This means that one does not necessarily go through rough times because of marriage- on the contrary- marriage may solve the problems of individuals.
The academic environment is a good and appropriate environment for preparing the ground for marriage. In my opinion, youth themselves, their families and officials in charge of universities should think about and make a decision about the issue of youth\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s marriage. We should not allow the age of marriage - which has unfortunately gone up today, particularly among women - to continue going up.
There are certain wrong notions and traditions that are highly problematic. These wrong traditions are an obstacle in the way of promoting marriage among youth. Therefore, they should be practically broken. In my opinion, you - who are young, inquiring and enthusiastic and you who suggest breaking many habits and traditions - you should break the wrong traditions that exist on the issue of marriage. This is another issue that I deem necessary to stress.
Of course, it was common in the past for a number of well-intentioned matchmakers and religious individuals to act as intermediaries and to introduce eligible women and men to one another. In this way, they helped them get married. Such tasks should be carried out. There should really be a movement in society in this regard.
Another point that was witnessed in the statements of the friends in the meeting - this point also existed in the questions that students asked me indirectly - is about the compatibility between the political positions of students or student groups, and the viewpoints of the Leadership. Before this meeting, students had been asked: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"What would you say if you were present in this meeting?\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" We have received certain answers. They brought us a book that contained 100 - or even more - pages. This book is about the opinions of students.
I saw in the book that this question has been posed. And in this meeting, it was posed in a different way. In my opinion, this is not a very good and reasonable question. It is not the case that all the positions that people from different social backgrounds - including students who are among the leading groups among the people - adopt should be a copy of the viewpoints that the Leadership puts forward. This is not the case.
As Muslims and as religious and thoughtful individuals, you should take a careful look in order to perceive your responsibilities and to make your own analyses. I will expand on this later on. You should adopt a position and express your viewpoints about individuals, orientations, policies and governments. It is not the case that you should wait and see what position the Leadership adopts about such and such an individual, movement, measure and policy so that you adopt your position on the basis of this position. This will lock affairs up. The Leadership has certain responsibilities. If Allah the Exalted helps him and bestows His blessings on him, he will carry them out. You too have certain responsibilities.
You should look at the scene and make your own decisions. However, the standard should be piety. The standard should be piety. Piety means exercising self-restraint in supporting or opposing someone and in criticizing or praising someone. You should observe piety. If it is observed, then both criticizing, and supporting and praising people is good no matter if it is an individual, an administration, a political orientation or a political event that you criticize or support. There is nothing wrong with this criticism and support.
Of course, if this humble person expresses his viewpoint about an issue, it is possible that it influences the decision of those who have trust in him and who accept this viewpoint. However, this does not mean that individuals should be absolved of responsibilities and opinions. This is not what I mean. Everyone should take a look and carry out their responsibility. As I said, the standard is that piety should be observed. That is to say, if we make a criticism, if we support someone, if we approve of a movement and a policy or if we reject it, this should really be done out of a sense of responsibility and without engaging our personal interests and temptations. This is another point.
One of the friends in the meeting said that students have lost sleep over a certain issue. If concerns make students be so sensitive, this is very good. Of course, we hope that you get enough sleep and go to sleep on time! The expression \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"I have lost sleep over something\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" is a very good expression. If this is really the case, we become very happy. This feeling of worry and anxiety about different issues makes you look at issues with open eyes.
As for what I have written down to discuss, it has two, three parts and I will discuss each part by paying attention to our time. First of all, we should consider students to be among those individuals who manifest the vigilant conscience of a people and a country. Of course, this is the truth of the matter. If students launch a movement in a society and if they make a move and a request, this shows the general orientation of that society. This is the case all over the world.
Students are, in fact, among those groups of people who show the vigilant conscience and orientation of a nation. Therefore, students should pay attention to issues in a very wise way. They should know their conditions and their environment. They should know threats, opportunities, enemies and enmities. Of course, we do not expect students to forget about their lessons and different affairs in order to engage in political work only. This is not what we expect them to do. Rather, we expect them to look at issues with open eyes, with a clear outlook, with a sense of responsibility and with a high motivation. This is our expectation of students.
Some of the issues that we are faced with today are issues related to our surrounding environment and to the region. Regional issues are not separate from the issues of the country. Today, one important and fundamental issue is the issue of Palestine and Gaza. Well, the issue of Gaza and the disasters that have befallen the people of Gaza today and that have a long history should receive our attention from two perspectives: one perspective is that this shows the truth of the Zionist regime. This is the Zionist regime.
In my opinion, this is not the important part of the issue. The Zionist regime is a regime that has set itself the goal of showing blatant violence since the beginning of its illegitimate birth. They do not even deny this violence. They have set themselves the goal of clenching an iron fist. They say this everywhere and they are proud of it. This is their policy.
Since the year 1948 - when this fake regime came into being officially - until today, they have been pursuing this policy. It is 66 years now that they have been pursuing this policy. Of course, it had committed many crimes in Palestine even before it was officially recognized and even before colonialists imposed it on the world and on the region. But during these 66 years, they did whatever they could as a government and as a political system. They committed any violent act that one can think a government can do to a people. And they have no scruples whatsoever. This is the truth of the Zionist regime.
There is no cure for this except the annihilation of this regime. Annihilating the Zionist regime does not at all mean massacring the Jewish people in the region. The logical statement that our magnanimous Imam (r.a.) made - that Israel should be annihilated - is based on a human principle. We presented to the world the practical solution for this and no one could criticize it in a reasonable way. We said that a poll and a referendum should be conducted so that the people who live in, come from and belong to this region determine who should rule over it. We said that the people should resolve this issue.
This is the meaning of annihilating the Zionist regime. This is the solution. This is a solution that is understandable and favored by today\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s standards of logic in the world. This is a practical solution. We even put forward a proposal to the United Nations and a number of international organizations in charge of such affairs. And this proposal was discussed by them.
There is no cure for the problem that this savage and wolfish regime - whose policy is to behave towards people with iron fists, cruelty and savagery and that does not care about and deny killing people and children, attacking different regions and causing destruction - has created except its destruction and annihilation. If, by Allah\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s favor, that day comes and if it is annihilated, then so much the better. But what is the cure as long as this fake regime survives? The cure is decisive and militant resistance against this regime.
The Palestinians should display power in the face of the Zionist regime. No one should think that if it had not been for the missiles of Gaza, the Zionist regime would have stopped their incursions. This is not the case. Notice what they are doing in the West Bank. This is while there is no missile, weapon and gun in the West Bank. The only weapon that the people have there is stones. Notice what the Zionist regime is doing there. It is doing whatever it can. It destroys people\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s homes, it destroys their gardens, it destroys their lives and it humiliates and belittles them. If it is necessary, it closes water on them and it blacks out electricity.
The Zionists could not tolerate someone like Yasser Arafat who compromised with them. They besieged, humiliated, poisoned and destroyed him. It is not the case that if we do not display power in the face of the Zionists, they will tolerate and show mercy to people and observe their rights. This is not the case at all. The only cure that exists before the Zionist regime is annihilated is that the Palestinians manage to act in a powerful way.
If they act in a powerful way, it is possible that the other side - which is this wolfish and violent regime - will retreat, as they are looking for a truce with all their power. This means that they have become desperate. They kill people and children and they show cruelty in an excessive way. But they are desperate as well. They are in dire straits and this is why they are after a truce.
Therefore, we believe that the West Bank should become armed like Gaza. It is necessary to show power. Those people who are interested in the fate of Palestine should do whatever they can. This is what should be done: the people in the West Bank should become armed as well. The only thing that can alleviate the Palestinians\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' pains is to show power. Otherwise, if we act in a tame, subservient and obedient way, nothing that is to the advantage of the Palestinians will be done and the violence that this violent, malevolent and wolfish creature is showing will not decrease.
Today, the responsibility of people all over the world is political support. There is no doubt about this. As you can see, there are popular movements in Islamic and even non-Islamic countries. By Allah\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s favor, the world will witness the loud and great voice of the people of Iran on Quds Day. God willing, on Quds Day, the people of Iran will show how motivated they are about Palestine.
Of course, some people wanted to show the opposite of this with the slogan \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"neither Gaza nor Lebanon\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\". They are wrong. The people of Iran believe in defending the oppressed: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Be an enemy of the oppressor and helper of the oppressed\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" [Nahjul Balaghah, Letter 47]. This is what the people of Iran want and by Allah\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s favor, it will be shown. This is one perspective about the issue of Gaza. This is important and great emphasis should be placed on it.
Today, western imperialist powers - that is to say, a few large, rich and powerful western powers which are headed by America and malevolent England behind it - have stood firm in order to defend this usurping, oppressive and cold-hearted regime. This is a very important issue. They are supporting it openly. What are they supporting? They are supporting a creator of disasters and no ordinary and fair-minded person can accept any indifference towards these crimes.
A small area and a piece of land named Gaza is being attacked by airplanes, missiles, armies and tanks. They have used all kinds of munitions on these people. This is really an astonishing event. So many children are being killed, so many houses are being destroyed and people\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s lives are being accompanied by so much bitterness, cruelty and torture. This is while these so-called gentlemen are supporting it.
With what reason do they support this regime? They support it with the stupid reason that the President of America gives. He says, \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Israel has the right to ensure its own security\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\". Well, do the Palestinians not have the right to ensure their security? Is it acceptable for a government to threaten the lives of a people who have been cruelly besieged by it and who show no reaction? Does anyone accept this? How will history judge this reason?
The officials of these arrogant countries do not understand what they are doing - with these kinds of support - to their dignity and the dignity of their countries and regimes in history. They stand up with complete shamelessness and say that they support Israel. They do not at all point to the events that are happening in the region and to the disasters that this destructive and dangerous element is creating.
This shows that today, the logic of liberal democracy - the logic and the intellectual system on the basis of which western countries are ruled and controlled - does not benefit from the slightest moral value. There is not any moral value and humane feeling in it. In fact, they are disgracing themselves. They are disgracing themselves in the face of the critical look of nations throughout the world, whether those who live in the present time or those who will live in the future.
We should preserve this as an important experience for ourselves and we should know America. This is liberal democracy. This will and should influence our actions, our judgment and our behavior. This is the camp - that is to say, the government of the United States of America and its followers - that has stood up against the Islamic Republic today and that has challenged the Islamic Republic in different events. This is the truth about them. The truth about them is this: not only do they not show any sensitivity about the massacre of human beings and defenseless people but they also defend and support oppressors and perpetrators of appalling and great crimes - such as what is happening in Gaza today.
This should be a standard for us. The people of Iran, our intellectual apparatus, our students and our broad-minded personalities should not forget this. This is America. This is western power and its intellectual basis - which is liberal democracy. Today, it is this intellectual basis that is confronting the Islamic system.
Today, the politicians who are most indifferent to human rights are those who are in charge of managing these countries. They do not at all believe in human beings, human rights and human principles. Their behavior in Gaza and other such events is proving this. They do not at all believe in human rights, human dignity and respect, people\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s votes and anything else. The only thing that they believe in is money and bullying. There is no other reason for their behavior. In my opinion, whatever comes out of their mouths about the issue of freedom, human rights and other such things is a travesty of freedom and human rights.
Well, we are not saying this as a piece of advice to America, the President of America and American politicians. It is clear [that they do not listen]. We are saying this for ourselves so that when we want to carry out an analysis, make a judgment and adopt a measure, we understand who we are dealing with and who the people we are faced with are. We are saying this so that we know what exists at the bottom of their thoughts. We should determine our responsibilities.
What is important is that we should have a correct analysis of the west\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s behavior in the present time. Their confrontation with the Islamic Republic of Iran, the Islamic Revolution and the Islamic movement and Awakening is part of their major polices. The major policy of global arrogance is enslaving nations and dominating their fate without paying the least attention to their interests and requests. This is the major policy of arrogance and we should pay attention to it. Anti-American, anti-western and anti-arrogance slogans in our country reflect this truth.
Some people should not immediately jump to the conclusion that a biased or completely unreasonable task is being carried out as soon as they hear an anti-western or anti-American slogan. They should not think like this because this is not the case. This anti-western and anti-American outlook in the Islamic Revolution is based on a correct experience, outlook and calculation.
On that day, I said to the executive officials and decision-makers of the country that the main goal of the enemy is to create disruption in our calculation system. When one\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s calculation system is disrupted, it produces wrong outputs out of correct inputs. That is to say, experiences will no longer be useful to it. When our calculation system does not function properly and correctly and when calculation is not carried out in the right way, experiences will no longer be beneficial.
Notice how westerners and the leaders of the current western civilization have treated our country during the past 80, 90, 100 years. We have a long experience of receiving blows from the west. There are some people in the country - some western-oriented, westernized and westoxicated individuals - who witness these experiences in front of their eyes, but who do not learn a lesson from them. Well, they saw that westerners brought Reza Khan to power and helped him dominate the country. As a result of this, a bizarre Reza Khani dictatorship was established in the country by the English.
They helped a thuggish and unreasonable person who was completely indifferent to the principles of the country. Afterwards during the 1320s, the same powers came and occupied Iran. In fact, they divided it among themselves in one sense. The same powers looted our oil and imposed cruel contracts on this country. The same powers launched the coup d\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'état of the 28th of Mordad and overthrew and destroyed a national government which originated from the votes of the people despite all its flaws. The same powers made our national oil movement deviate from its path and consequently, they once more dominated our natural and material sources.
The same powers established Mohammad Reza\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s dictatorship in the country for a long time and they supported it with all their power. During the 30-plus-year rule of Mohammad Reza over the country, our material and spiritual sources of wealth were looted. They created a disastrous situation for our people. They kept them in poverty and ignorance, they promoted public corruption in all bases of the country and they truly destroyed the culture of the country, the people\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s religion and everything. This was done with the support of the same western governments.
They created as many obstacles as they could during their confrontation with the Iranian peoples\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' Revolution and great movement. They supported and defended Saddam Hussein although they did not approve of him. Because Saddam was against the Islamic Republic, they helped him as much as they could. Westerners, England, America and France provided him with chemical bombs and different kinds of military weapons. Well, these are our experiences. Westoxicated intellectuals do not benefit from these experiences and they do not analyze them correctly because their calculation system has been disrupted.
One of the most important services of the Islamic Revolution was reviving true logic and reason in the country. The fact that you young students analyze regional issues, look at different events with complete precision, identify the enemy, analyze regional events and stand firm shows the reasonable life of a country. It was the Revolution that offered this to us, but today, some people still want to go back to prior conditions. The same westernized orientations - the ones that love the west, that humiliate our people and our achievements and that humiliate national culture and identity to the advantage of western powers - want the same powers to come again and to define and introduce standards for the affairs, culture and orientation of the country.
Those who are working against the Islamic Republic under the flag of the bloody enemies of the people of Iran are people who are after dominating the same ignorance - calculational ignorance - and the same satanic temptation that once existed opposed to the rationality of this country. I advise the dear students to strengthen their studies - both on the issue of religious and political areas - as well their scientific work. You should try to strengthen your power of analysis.
Of course, when I take a look at students\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' statements today, I witness good and outstanding points. This really requires our gratitude. It really requires that we thank God, but you should work on this as much as you can. Today, we did not have the time to discuss different issues of the country. By Allah\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s favor, we will discuss these issues in the other meetings that we will hold with students or other groups of people.
Students should provide people with analyses on different issues of the country including social, economic and political issues. The people should be able to benefit from students\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' analyses. Students\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' power of analysis should be like this. This depends on studying. Therefore, students should study. It should not be the case that students\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' outlook is a purely emotional one. Your intellectual products should not only be based on tabloid issues. You should deeply study, think about and discuss issues.
Many of the statements that the friends in this meeting discussed are statements that should be resolved in student meetings and in free discussions. I have written this down. The free debates that we brought up and that requires free discussions in academic environments can resolve and clarify many of the issues that the friends discussed in this meeting. Students should be able to find the pros and cons of every issue in their student discussions.
Another point that I want to discuss is that competitive discourse in academic environments is a good thing provided that it is accompanied by tolerating the opposing views. One should not become surprised, angry and intimidated at the existence of opponents. None of these three feelings is acceptable in the face of opponents.
If we become surprised at the existence of opponents, this means that we are overconfident about ourselves. This is the reason why we are surprised when someone is opposed to us, but there is no room for surprise. Well, every individual, every thought, every movement and every orientation has certain opponents. And it is not the case that we think those opponents are necessarily wrong. This is not the case. There are certain weak points and these weak points make some people oppose us. Therefore, the existence of opponents should not make us surprised, as it should not provoke our anger. We should not become angry at their opposition. Opposition is understandable and acceptable.
We should not be intimidated either. Being afraid of the existence of opponents shows that we are not confident about the power and strength of our position. This should not be the case. We have a reason. We should strengthen and build up the bases of our reason and then we should enter the arena of competitive discourse and engage in discussion. The spirit of students should be like this.
Therefore, academic environments should continue working with the same spirit that they thankfully enjoy today. They should tolerate one another, they should speak to one another, they should discuss different issues with one another and they should strengthen the bases. In practical areas, the basis of their work should be piety and in intellectual areas, the basis of their work should be observing Islamic limits, knowing the enemy and knowing the methods that he uses for showing his enmity.
I hope that Allah the Exalted bestows success on all of you and preserves you youth for furthering the goals of the Revolution. I hope that He increases your achievements on a daily basis. I hope that by Allah\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s favor, you youth create a good future for your Revolution and for your country.
Greetings be upon you and Allah\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s mercy and blessings.
Tayo\'s head is full of space travel as he goes to bed after watching a meteor shower with his friends. Hana wakes Tayo up and equips him with rockets that will allow him to fly into space.
While traveling, Tayo meets Ray, a princess who is running away from Bully the Space Pirate. Tayo manages to give Bully the slip after a close chase and safely takes Princess Ray to Planet Clover. The princess gives Tayo a sticker of a clover in return. Tayo runs out of rocket fuel on his way back to Earth and falls from the sky. He wakes up in bed, startled. Tayo thinks everything was a dream, but there\'s a clover sticker stuck to his body.
Demonstrations against the Shah of Iran were in full swing in the United States and Europe as early as 1977 and continued until the success of the Islamic Revolution of Iran in January of 1979. This victory led to the fall of the Pahlavi regime. Consequently, many regime supporters including members of SAVAK, the dictator’s personal secret police force, began to hold demonstrations demanding the United States overthrow the elected government and reinstall the Shah – or his son – as monarch. The hope was that the United States would orchestrate a coup similar to the one they had helped manufacture in 1953 against Iranian Prime Minister Mohammad Mosaddegh. At the same time, pro-revolution demonstrations continued, often in conflict with the pro-Shah supporters. One demonstration turned particularly chaotic in the summer of 1980. Safiyyah Abdullah was there and gives her account of the events that led up to a spontaneous act of solidarity by a group of indigenous American activists.
What is infiltration? How exactly does it work? How does exactly the enemy infiltrate a country? The Leader gives us a short, yet detailed lesson on infiltration. This will blow your mind!
The Leader gives an empowering talk that calls on the Muslim Ummah to have self-belief, to trust in our strengths and, most importantly, to trust in and realize that Allah the Exalted is on our side.
Video Tags:
A very short clip in which the Leader of the Muslim Ummah, Imam Sayyid Ali Khamenei, gives a very important instruction to prayer leaders directly, and to all Muslims as well.
Video Tags:
Duplicity of the West and their false pretexts to justify their actions and in-actions is evident when America\'s stance on Yemen and Syria are compared. America gives green signal to the Saudis in all its crimes and at top of it, provides immunity in the so-called internal human rights organizations!
Video Tags:
| english |
Thursday May 06, 2021,
IT services major Infosys has doubled its commitment towards Covid relief efforts to Rs 200 crore that will be used to add hospital beds and augment the supply of oxygen concentrators and ventilators among other activities.
In an email to employees, Infosys Chief Executive Officer Salil Parekh said the company has established vaccination centres for employees and their families at seven of its development centres (DC) across the country, and work is in progress to establish them in other DCs.
Infosys has also collaborated with over 130 hospitals across India, where staff and their family members can get vaccinated.
"We had committed Rs 100 crores last year to support the fight against this pandemic including contribution towards the PM Cares fund. We will continue our efforts across the country in the coming year, and have expanded our original commitment to Rs 200 crores for Covid relief efforts," he said in his email, a copy of which was seen by PTI.
Some of this will be directed to help set up and expand the capacity of Covid care hospital beds, augment the supply of oxygen concentrators and ventilators, as well as provide ration and support funds to migrant labourers and families impacted by the lockdowns, Parekh noted.
He added that the company has contributed to providing PPE kits, sanitisers, medicines, masks, and gloves to support law enforcement officials, health officials, and health institutions.
The Bengaluru-based company is also supporting the Karnataka government with an app called Apthamitra.
"To each of you, I want to say that we are doing everything possible to support you now and, in the weeks ahead. Our company is coming together to help us all be better prepared for what lies ahead," he said.
The massive rise in infections in the second wave of the pandemic has led to hospitals in several states reeling under a shortage of medical oxygen and beds. Social media timelines are filled with SOS calls with people looking for oxygen cylinders, hospital beds, plasma donors, and ventilators.
Organisations across the spectrum have come forward to source and donate oxygenators, breathing machines, and ventilators.
IT companies like Tata Consultancy Services and HCL Technologies are taking a number of steps to contribute to these efforts, including setting up Covid care centres at their facilities.
Capgemini has committed Rs 50 crore to augment medical infrastructure in India, while SAP said it is doubling its COVID-19 Emergency Fund that was announced last year to 6 million euros. Accenture has pledged $ 25 million (about Rs 185 crore) for pandemic relief efforts in the country.
Parekh said employee Covid Care Centres have been set up at Pune, Bengaluru, Hyderabad, Chennai, Mysore, Mangalore, and Gurugram.
"We are working as fast as we can to set up similar Covid Care Centres in other cities, subject to approvals from local policymakers. To support employees who are now working from their hometowns around the country, we have partnered with over 1,500 hospitals across India, for the treatment of employees and their families," Parekh said.
He added that the company has collaborated with ambulance providers, testing labs, video medical consultations, etc. in most of the major cities to support staff.
The executive highlighted that several clients of Infosys have communicated their support.
"Our clients have increasing needs that we are best positioned to provide, and we will ensure we deliver the highest quality of service while keeping all of your health and safety foremost. . . We will walk, one step at a time, through this current situation, and emerge with strength and grace," he said. | english |
Fortnite introduces various cosmetics and items for loopers to purchase or redeem. These range from skins, pickaxes, etc., which can be redeemed if a user has a Battle Pass.
In these progressive years, there have been various additions to the cosmetic design and overall equipment. It includes customizable styles and different variations of the corresponding item. This allows and motivates loopers to grab these cosmetics to have more fun and opportunities to play the game.
The concept of Omnichips was released with the latest Chapter 3 Season 2 and is very similar to the original concept from Chapter 2.
What are Omnichips in Fortnite Chapter 3 Season 2?
Fortnite Chapter 3 Season 2 introduced players to an entirely new Battle Pass featuring members of The Resistance and the Imagined Order. Ranging from The Imagined to Gunnar, several new characters from The Seven and the IO were introduced.
One such member who has a customizable cosmetic set is Tsuki 2.0. Tsuki was originally a skin that was released in Chapter 1 Season 9 as a Item Shop skin worth 1200 V-Bucks. She is a part of the Kata Tech Set. In the latest Fortnite season, Tsuki has been given an entirely new makeover in the form of Tsuki 2.0, where her set is still called the Kata Tech set.
Tsuki 2.0's set consists of a customizable back bling, skin style, and glider style. Her pickaxe, called Omni Sword, is highly customizable, with over a hundred combinations that a player can use. These custom assets can be redeemed using a token item called Omnichips.
Omnichips work similarly to Haven's Feathers in the previous season, but these cannot be availed from chests, toolboxes, supply drops, or ammo boxes. Fortnite has added separate Omni Sword quests for loopers to complete upon, which they can win Omnichips and unlock the cosmetics of the pickaxe.
Currently, there are eight bonus seasonal quests that can be completed to acquire omnichips via loopers with additional quests, where loopers can visit a POI and collect them. More quests can be seen that will be available in the next 10 days, via which they can acquire more omnichips.
Players are in high favor of the Omni Sword pickaxe as it not only gives players a fully customizable pickaxe with sounds but also animations that they have never seen before. Some loopers currently think that this looks similar to a lightsaber from Star Wars, and they have hopes for Fortnite adding customizable lightsabers to the game.
A few other players are not as keen about the Omni Blade animation or cosmetic style as they think it could have been more realistic, like Halo's energy sword. For now, loopers continue to stack up on their Omnichips every week as the new Fortnite season begins.
The Battle Bus is heading into Fortnite Chapter 4 Season 4 soon! Check out the final Fortnite item shop today!
| english |
---
name: Feature request
about: Suggest an idea for this project
title: "[Feature Request] Feature name here..."
labels: enhancement
assignees: ''
---
**Describe the feature you'd like to see**
A clear and concise description of what you want to happen.
**Describe *why* this feature would be helpful to you**
A clear and concise description of the underlying reason why you'd like to see this feature added. For example, "If I had this feature, then I could..." This helps us understand the underlying reasoning when making decisions about what actually gets implemented.
**Additional context**
Add any other context or screenshots about the feature request here.
| markdown |
Henry Cejudo has responded to Daniel Cormier after the former heavyweight and light heavyweight champion blasted him on Instagram for training with Jon Jones.
It's well documented that Jones and 'DC' share a fierce rivalry both inside and outside the octagon. When Cejudo decided to help 'Bones' train for his imminent octagon return, Cormier expressed his displeasure on social media, saying 'f**k Cejudo'.
In the latest episode of The Triple C and Schmo podcast, Cejudo explained why he decided to train with Jon Jones. Cejudo initially pointed out that both he and 'DC' are currently retired while Jones is an active fighter. As a legend of the sport, Cejudo feels it's his duty to help a fellow legend like Jones, irrespective of Bones' beef with Cormier.
Cejudo concluded by saying that if DC doesn't like it, he can 'bend the knee to King Triple C.'
"Daniel man, you know I love you my man. You're retired just like me... As a legend, I'm a legend but as a legend we got to take care of other legends whether you guys had beef or not... I believe a happy Jon Jones is a successful Jon Jones and I think we got to take care of each other, we got to take care of our brothers... It's a certain fraternity, it's like the world championship or Olympic club that we always got to watch out for each other so that's all it is, Daniel Cormier. But if you don't like it DC, you can do me a favor and you can bend the knee to king Triple C," Henry Cejudo said.
When will Jon Jones return to the octagon?
Jon Jones has been away from the octagon for almost two years now. The last time he stepped into the cage was back in February 2020 at UFC 247 against Dominick Reyes. Although he escaped with a decision victory, Jones looked vulnerable on several occasions in the fight.
Following the win, Jon Jones decided to vacate the light heavyweight title and seek new pastures in the heavyweight division. Jones is yet to make his heavyweight debut, but said he's just months away from making his much-awaited return to the octagon.
He also said he'd be keeping a close eye on the upcoming heavyweight title unification bout between Ciryl Gane and Francis Ngannou.
| english |
<filename>pyfr/backends/opencl/types.py<gh_stars>100-1000
# -*- coding: utf-8 -*-
from functools import cached_property
import numpy as np
import pyfr.backends.base as base
class _OpenCLMatrixCommon:
@cached_property
def _as_parameter_(self):
return int(self.data)
class OpenCLMatrixBase(_OpenCLMatrixCommon, base.MatrixBase):
def onalloc(self, basedata, offset):
self.basedata = basedata
self.offset = offset
# If necessary, slice the buffer
if offset:
self.data = basedata.slice(offset, self.nbytes)
else:
self.data = basedata
# Process any initial value
if self._initval is not None:
self._set(self._initval)
# Remove
del self._initval
def _get(self):
# Allocate an empty buffer
buf = np.empty((self.nrow, self.leaddim), dtype=self.dtype)
# Copy
self.backend.queue.barrier()
self.backend.cl.memcpy(self.backend.queue, buf, self.data, self.nbytes,
blocking=True)
# Unpack
return self._unpack(buf[None, :, :])
def _set(self, ary):
buf = self._pack(ary)
# Copy
self.backend.queue.barrier()
self.backend.cl.memcpy(self.backend.queue, self.data, buf, self.nbytes,
blocking=True)
class OpenCLMatrixSlice(_OpenCLMatrixCommon, base.MatrixSlice):
@cached_property
def data(self):
if self.offset:
nbytes = ((self.nrow - 1)*self.leaddim + self.ncol)*self.itemsize
return self.basedata.slice(self.offset, nbytes)
else:
return self.basedata
class OpenCLMatrix(OpenCLMatrixBase, base.Matrix): pass
class OpenCLConstMatrix(OpenCLMatrixBase, base.ConstMatrix): pass
class OpenCLView(base.View): pass
class OpenCLXchgView(base.XchgView): pass
class OpenCLXchgMatrix(OpenCLMatrix, base.XchgMatrix):
def __init__(self, backend, ioshape, initval, extent, aliases, tags):
super().__init__(backend, ioshape, initval, extent, aliases, tags)
# Allocate an empty buffer on the host for MPI to send/recv from
shape, dtype = (self.nrow, self.ncol), self.dtype
self.hdata = backend.cl.pagelocked_empty(shape, dtype)
class OpenCLGraph(base.Graph):
def commit(self):
super().commit()
# Map from kernels to event table locations
evtidxs = {}
# Kernel list complete with dependency information
self.klist = klist = []
for i, k in enumerate(self.knodes):
evtidxs[k] = i
# Resolve the event indices of kernels we depend on
wait_evts = [evtidxs[dep] for dep in self.kdeps[k]] or None
klist.append((k, wait_evts, k in self.depk))
# Dependent MPI request list
self.mreqlist = mreqlist = []
for req, deps in zip(self.mpi_reqs, self.mpi_req_deps):
if deps:
mreqlist.append((req, [evtidxs[dep] for dep in deps]))
def run(self, queue):
from mpi4py import MPI
events = [None]*len(self.klist)
wait_for_events = self.backend.cl.wait_for_events
# Submit the kernels to the queue
for i, (k, wait_for, ret_evt) in enumerate(self.klist):
if wait_for is not None:
wait_for = [events[j] for j in wait_for]
events[i] = k.run(queue, wait_for, ret_evt)
# Flush the queue to ensure the kernels have started
queue.flush()
# Start all dependency-free MPI requests
MPI.Prequest.Startall(self.mpi_root_reqs)
# Start any remaining requests once their dependencies are satisfied
for req, wait_for in self.mreqlist:
wait_for_events([events[j] for j in wait_for])
req.Start()
# Wait for all of the MPI requests to finish
MPI.Prequest.Waitall(self.mpi_reqs)
| python |
<gh_stars>1000+
import * as React from "react";
import { render } from "react-dom";
import { useClickOutside } from "react-click-outside-hook";
function Component() {
const [ref, hasClickedOutside] = useClickOutside();
return <div ref={ref}>{hasClickedOutside.toString()}</div>;
}
render(<Component />, document.getElementById("test"));
| typescript |
New Delhi: BJP MP Shatrughan Sinha, who has often taken a position at variance with the party's stand, on Wednesday came out in support of arrested JNU student union leader Kanhaiya Kumar, who is facing sedition charges, and called for his release soon.
“Hope wish and pray that he's released soon, sooner the better. . . ”, the actor-turned-politician said, adding “Kumar has said nothing anti-national”, contradicting his partys stand on the issue.
“Have heard transcript of speech of Kanhaiya, our Bihar boy president of JNUSU. He has said nothing anti-national or against Constitution”, wrote Sinha on Twitter.
Kumar is facing sedition charges for allegedly shouting anti-national slogans during an event organised at JNU campus last week to protest the hanging of Parliament attack convict Afzal Guru on his third death anniversary.
As the Jawaharlal Nehru University(JNU) row escalated, Sinha also countered the claim by some BJP leaders that the prestigious varsity has become the hub of anti-national activities.
“It(JNU) is a seat of learning for some of India's brightest young minds & also some very respectable teachers. Save it from further embarrassment”, Sinha said.
Sinha also said that any accusations in the JNU controversy needed to be substantiated with hard facts.
“If students, teachers or politicians make accusations, they need to be prepared to substantiate them with hard facts that they can stand by”, he said in another tweet.
“JNU is going through a crisis for reasons best known to politicians. It is an institution of international repute, enviable record &history”, he added. | english |
A draft letter circulated by Britain to the UN Security Council lays out a timetable and criteria for choosing the successor to Ban Ki-moon, who steps down at the end of 2016 after 10 years on the job.
The move, however, is facing opposition from Russia, and to some extent China, which are resisting attempts to change the mostly secretive selection process for the top UN post, diplomats said.
The choice of the UN chief has for decades been the purview of the five permanent Security Council members — Britain, China, France, Russia and the United States — in a selection process kept mostly behind closed doors.
In a bid to lift some of the secrecy, the General Assembly adopted a resolution in September that for the first time in the UN’s 70-year history asked candidates to present their resumes and lay out their vision for the job.
“One of the most important things that the UN needs to do is to choose a worthy successor to Ban Ki-moon,” said British Ambassador Matthew Rycroft.
Britain hopes to win backing from the council to send the letter to all 193 countries, which would be the first time that there would be a call for nominations to the top post.
The 15 council members have until Friday to decide if they support the letter, which sets deadlines for the selection.
“Those seeking the role should declare their interest in a timely manner to facilitate full participation in the process,” says the draft letter, seen by AFP.
It states that the appointment should be made three to four months before January 1, 2017, to give the new secretary-general time to prepare.
Candidates should put themselves forward by the spring and the council will begin the selection process in the summer, it added.
After a first draft of the British letter was circulated last week, Russian Ambassador Vitaly Churkin complained that there was no need to “overcomplicate matters” and that the selection of the secretary-general was described in the UN charter.
The charter states that the UN chief is nominated by the Security Council and elected by the General Assembly, falling short of any specifics.
The row over kicking off the race comes amid much behind-the-scenes maneuvering over whether to choose the first woman secretary-general and picking a candidate from Eastern Europe.
Russia has said that the next UN chief should come from that region, the only one that has yet to be represented in the top job.
Among the names being floated are two Bulgarians — UNESCO chief Irina Bokova and EU budget commissioner Kristalina Georgieva — along with Croatian Foreign Minister Vesna Pusic.
Among non-Eastern Europeans, attention has focused on former New Zealand prime minister Helen Clark, who now heads the UN Development Program, and Chilean President Michelle Bachelet.
“There is a whole new process to select the next secretary-general,” said Yvonne Terlingen of the “1 for 7 billion” campaign of NGOs lobbying for more transparency.
Terlingen said holding up the call for nominations could scuttle plans to hold hearings for candidates to make their pitch for the job, a key feature of the resolution adopted by the General Assembly. | english |
Exxon Mobil Corp's global oil and gas reserves tumbled by a third last year as the COVID-19 pandemic slammed global oil prices and demand, the company said on Wednesday.
The largest U. S. oil producer is reeling from the sharp decline in oil demand and a series of bad bets on projects when prices were much higher. It slashed project spending by a third last year, cut jobs and added to debt to cover its dividend.
Exxon's reserves are at their lowest since the merger between Exxon and Mobil in 1999 and were "a result of very low prices during 2020 and the effects of reductions in capital expenditures," the company said in a filing.
Total reserves for all products fell to 15. 2 billion barrels of oil and gas at the end of 2020 from 22. 4 billion the year before, mostly driven by oil sands in Canada and U. S. shale gas properties, according to the filing.
Exxon cut the value of its shale gas properties by over $20 billion last year, most of them acquired in a 2010 merger with XTO Energy that had pushed its reserves up by about 2 billion barrels.
The plunge in its value of oil and gas properties was worse than during the 2014 through 2016 downturn, when Exxon had a 4. 8 billion cut in its reserves.
The reserves Exxon removed could be added back in the future based on a recovery in oil prices, cost reduction or operating efficiencies, a company representative said.
The number of Exxon workers at the end of the year was 72,000, down from 74,900 at the end of 2019.
Exxon has said it could cut 14,000 employees and contractors, or 15% of its global workforce, by the end of 2021.
Earlier this month, it reported a net annual loss of $22. 4 billion for 2020, compared with a full-year profit of $14. 34 billion in 2019. Exxon had previously churned out profits since it merged with Mobil and through the 1980s oil bust. | english |
<reponame>NJBLAGA/Pokedex
{
"name": "vanilla-js-jest-boilerplate",
"version": "1.0.0",
"description": "boilerplate code to get started with vanilla JS web apps that use jest unit testing",
"main": "index.js",
"scripts": {
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --watchAll"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Andrew-CC-Martin/vanilla-js-jest-boilerplate.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/Andrew-CC-Martin/vanilla-js-jest-boilerplate/issues"
},
"homepage": "https://github.com/Andrew-CC-Martin/vanilla-js-jest-boilerplate#readme",
"devDependencies": {
"jest": "^26.6.3"
},
"type": "module"
}
| json |
<gh_stars>0
[dir="ltr"] .sa-debugger-container {
margin-right: 0.2rem;
}
[dir="rtl"] .sa-debugger-container {
margin-left: 0.2rem;
}
.sa-debugger-small .sa-debugger-container {
display: none !important;
}
.sa-debugger-interface {
display: none;
position: absolute;
z-index: 492;
background-color: white;
width: 565px;
height: 25rem;
}
.sa-debugger-interface h1 {
padding: 10px;
z-index: 10;
width: calc(100% - 20px);
font-size: 20px;
}
.sa-debugger-tabs {
margin: 0;
display: flex;
align-items: center;
padding: 0 15px;
font-size: 0.75rem;
}
.sa-debugger-tabs li {
margin: 0;
display: flex;
align-items: center;
padding: 0.5em 1em;
background-color: rgba(0, 0, 0, 0.1);
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 1rem;
color: white;
cursor: pointer;
}
.sa-debugger-tabs li + li {
margin-inline-start: 10px;
}
.sa-debugger-tabs li:hover {
background-color: rgba(0, 0, 0, 0.15);
}
.sa-debugger-tabs li.sa-debugger-tab-selected {
background-color: white;
background-clip: padding-box;
border-color: rgba(0, 0, 0, 0.25);
color: #4d97ff;
}
.sa-debugger-tabs li img {
margin: 0;
margin-right: 0.25rem;
width: 1rem;
filter: brightness(0) invert(1);
}
.sa-debugger-tabs li.sa-debugger-tab-selected img {
filter: none;
}
.sa-debugger-header-buttons img {
width: 20px;
height: 20px;
}
.sa-debugger-unpause {
animation: saDebuggerUnpause 2s infinite alternate;
}
@keyframes saDebuggerUnpause {
0% {
background-color: rgba(0, 0, 0, 0.15);
}
100% {
background-color: rgba(0, 0, 0, 0);
}
}
.sa-debugger-tab-content {
width: 100%;
height: 100%;
overflow: auto;
cursor: auto;
}
.sa-debugger-chart {
width: 100%;
height: 100%;
}
.sa-performance-tab-content {
padding: 15px;
}
.sa-debugger-log-outer {
height: 100%;
}
.sa-debugger-log-inner {
position: relative;
overflow-y: auto;
font-size: 12px;
line-height: 1.2;
height: 100%;
contain: strict;
}
.sa-debugger-log-empty {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
font-size: 20px;
font-style: italic;
}
.sa-debugger-log-end {
position: absolute;
top: 0;
left: 0;
width: 1px;
height: 1px;
}
.sa-debugger-log {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 20px;
box-sizing: border-box;
display: flex;
align-items: center;
border-bottom: 1px solid rgba(0, 0, 0, 0.15);
padding-left: 4px;
font-family: monospace;
color: #000;
}
.sa-debugger-log[data-type="warn"] {
border-color: hsl(50deg, 100%, 75%);
color: hsl(39deg 100% 18%);
background-color: hsl(50deg 100% 95%);
}
.sa-debugger-log[data-type="error"] {
border-color: hsl(0deg 100% 92%);
color: red;
background-color: hsl(0deg 100% 95%);
}
.sa-debugger-log-repeats {
background-color: hsla(163, 85%, 40%, 1);
color: white;
border-radius: 100px;
padding: 1px 6px;
margin-right: 4px;
}
.sa-debugger-log-icon {
width: 16px;
height: 16px;
margin-right: 4px;
}
[data-type="warn"] .sa-debugger-log-icon {
background-image: url(./icons/warning.svg);
}
[data-type="error"] .sa-debugger-log-icon {
background-image: url(./icons/error.svg);
}
.sa-debugger-threads .sa-debugger-log-icon {
background-image: url(./icons/subthread.svg);
}
.sa-debugger-log-link {
color: inherit;
cursor: pointer;
opacity: 0.5;
text-decoration: underline;
float: right;
text-align: right;
max-width: 100%;
padding-left: 4px;
margin-right: 4px;
margin-left: auto;
}
.sa-debugger-log-link:hover {
text-decoration: underline;
color: #4d97ff;
opacity: 1;
}
.sa-debugger-log-link-unknown {
pointer-events: none;
}
.sa-debugger-log-text {
overflow: hidden;
text-overflow: ellipsis;
white-space: pre;
}
.sa-debugger-log-text-empty {
font-style: italic;
}
.sa-debugger-log-internal .sa-debugger-log-text {
font-style: italic;
}
.sa-debugger-thread-indent {
width: calc(16px * var(--level));
margin-right: 4px;
}
.sa-debugger-thread-title .sa-debugger-thread-indent {
margin: 0;
}
.sa-debugger-thread-target-name {
font-weight: bold;
margin-right: 8px;
}
.sa-debugger-thread-running {
background-color: rgba(255, 187, 0, 0.233);
font-weight: bold;
}
.sa-debugger-block-preview {
color: white;
padding: 1px 6px;
margin-right: 4px;
}
.sa-debugger-block-preview[data-shape="round"] {
border-radius: 100px;
}
.sa-debugger-block-preview[data-shape="stacked"] {
border-radius: 3px;
}
| css |
Why this website?
Who owns the Media?
The platform created celebrities out of virtual nobodies, millionaires out of paupers, and showed that it could shape political propaganda and give rise to movements.
Short films have taken time to get to centrestage in India but looks like they are here to stay,
There is not a single digital company among India's largest media companies, as yet. Only six percent of advertising last year went to digital.
| english |
/*
* Copyright 2017 <NAME>.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.gs.tablasco;
import org.junit.Assert;
import org.junit.Rule;
import org.junit.Test;
import java.io.IOException;
public class OutputEncodingSecurityTest
{
@Rule
public final TableVerifier tableVerifier = new TableVerifier()
.withFilePerMethod()
.withMavenDirectoryStrategy();
@Test
public void htmlTagsAreEncoded() throws IOException
{
final VerifiableTable table1 = TableTestUtils.createVerifiableTable("name", 1, "Col", "<script language=\"javascript\">alert(\"boo\")</script>", "<script language=\"javascript\">alert(\"boo\")</script>");
final VerifiableTable table2 = TableTestUtils.createVerifiableTable("name", 1, "Col", "<script language=\"javascript\">alert(\"boo\")</script>", "<script language=\"javascript\">alert(\"foo\")</script>");
TableTestUtils.assertAssertionError(() -> tableVerifier.verify(table1, table2));
Assert.assertEquals(
"<table border=\"1\" cellspacing=\"0\">\n" +
"<tr>\n" +
"<th class=\"pass\">Col</th>\n" +
"</tr>\n" +
"<tr>\n" +
"<td class=\"pass\"><script language=\"javascript\">alert(\"boo\")</script></td>\n" +
"</tr>\n" +
"<tr>\n" +
"<td class=\"surplus\"><script language=\"javascript\">alert(\"foo\")</script><p>Surplus</p>\n" +
"</td>\n" +
"</tr>\n" +
"<tr>\n" +
"<td class=\"missing\"><script language=\"javascript\">alert(\"boo\")</script><p>Missing</p>\n" +
"</td>\n" +
"</tr>\n" +
"</table>", TableTestUtils.getHtml(this.tableVerifier, "table"));
}
} | java |
Tianhui- salah satu pengeluar dan pembekal cip LED UV terkemuka menyediakan perkhidmatan cip LED UV ODM/OEM.
Pada halaman ini, anda boleh menemui kandungan berkualiti tertumpu pada sistem pengawetan yang diketuai uv. Anda juga boleh mendapatkan produk dan artikel terkini yang berkaitan dengan sistem pengawetan led uv secara percuma. Jika anda mempunyai sebarang pertanyaan atau ingin mendapatkan maklumat lanjut mengenai sistem pengawetan yang diketuai uv, sila hubungi kami.
Semasa pengeluaran sistem pengawetan yang diketuai uv, Zhuhai Tianhui Electronic Co., Ltd. membahagikan proses kawalan kualiti kepada empat peringkat pemeriksaan. 1. Kami menyemak semua bahan mentah yang masuk sebelum digunakan. 2. Kami melakukan pemeriksaan semasa proses pembuatan dan semua data pembuatan direkodkan untuk rujukan masa hadapan. 3. Kami menyemak produk siap mengikut piawaian kualiti. 4. Pasukan QC kami akan menyemak gudang secara rawak sebelum penghantaran.
Produk Tianhui membantu membina kesedaran jenama yang lebih besar. Sebelum produk dipasarkan secara global, ia diterima baik di pasaran domestik untuk kualiti premium. Mereka mengekalkan kesetiaan pelanggan digabungkan dengan perkhidmatan nilai tambah yang pelbagai, yang meningkatkan hasil operasi keseluruhan syarikat. Dengan prestasi cemerlang yang dicapai oleh produk, mereka bersedia untuk maju ke arah pasaran antarabangsa. Mereka berada dalam kedudukan dominan dalam industri.
sistem pengawetan yang diketuai uv dihantar dalam masa yang diperlukan berkat usaha kami dalam bekerjasama dengan pembekal logistik terbaik. Pembungkusan yang kami sediakan di Zhuhai Tianhui Electronic Co., Ltd. mempunyai ketahanan dan kebolehpercayaan yang tinggi.
| english |
Situated on the banks of the gushing Saraswati river, Mana is the last Indian village located near the Indo-China border, in the Chamoli district of Uttarakhand. This tranquil village, surrounded by high Himalayan hills, is situated at an altitude of 3219 m above sea level. It is located at a distance of 3 km from Badrinath, which is a famous place of pilgrimage.
The surreal beauty of this tiny village draws a lot of visitors each year, which is why Mana has been rightly titled as a 'Tourism Village' by the Uttarakhand Government. Apart from being stunningly beautiful, it is also famous for its handcrafted woolen shawls and blankets, local herbs, etc.
The village and its landscapes are believed to be strongly associated with the Indian epic of Mahabharata. It is believed that the Pandavas had crossed the Mana village en route their journey to the heaven. The Vedic River Saraswati also originates in the Himalayan mountains that surround this heavenly place. Ancient caves that are associated with mythology are also located in the Mana village.
Mana is a place for all kinds of travellers. Given its stark beauty, picturesque trekking trails, ancient temples and mysterious caves, Mana is a favoured destination for leisure travellers, adventure enthusiasts, history & mythology enthusiasts, as well as spiritual and religious beings.
Mana can be comfortably reached from Badrinath and Joshimath, both of these towns are well-connected with the rest of the Uttarakhand state. Travellers mostly arrive at and hire taxis from Haridwar or Rishikesh, as these are well connected to major cities like Delhi and Dehradun.
Mana is at a distance of 3 km from Badrinath and 48 km from Joshimath. The nearest railway station is at Haridwar, which is at a distance of 275 km. The nearest airport at Jolly Grant, Dehradun, is 319 km from Mana.
Summer is an ideal period to visit this Himalayan village. This is also the time when the pilgrim tour of Char Dham Yatra at Badrinath begins. Monsoons get pretty hostile and are avoided by tourists. Tourists, travellers, trekkers, and devotees visiting Badrinath temple flock Mana once again post monsoon until October-November. The entire region receives heavy snowfall in the winter months and the villagers migrate to lower altitudes during the winter months.
A couple of tea and coffee shops in the region boast to be the last shops of India near the Indo-Tibet border. While some of these are genuinely the oldest shops around the area, others are modern and recently established. Nevertheless, it is an amazing feeling to sip tea and enjoy some piping hot Maggie with a stunning view of the mountains at the last tea shop of India.
The region has many mountains and ancient caves. One such cave which is right in the Mana village is believed to be the cave where Hindu God Ganesh had narrated the legend of Mahabharata to sage Shri Ved Vyas. A simple, minimalistically decorated Ganesh Temple, which is surrounded by a cave, is located at this spot.
The great Hindu sage Ved Vyas, who is known to be the author of Mahabharata, is believed to have lived in Mana town while composing the four sacred Vedas that are knowledge and storehouses of Hinduism. This ancient cave is more than 5000 years old. The top portion of the cave is often considered to resemble the pages of the Holy books of this wise sage.
The Saraswati river is known as a sacred and mystical river among the Hindu population in our country. This mystical river originates in the high mountains near Mana. A small temple dedicated to the river is situated next to the place, where she cascades from high rocks before steadily flowing down into a stream.
With strong roots in the Hindu mythology, it isn't surprising to see traces of mythology, stories, and legends in most landscapes of the Mana village. A popular story around a bridge over the Saraswati river says it was a huge boulder thrown by Bheem himself (the mightiest of the Pandava brothers) to help his family cross the roaring Saraswati river when they were passing through the Mana village in their journey to heaven.
Located at a distance of approximately 6 km from Mana, the Vasudhara falls is a sight to behold. The trek to the falls is quite challenging, given the high altitude and rugged terrain. It usually takes about 2 hours to reach the falls. The walk is extremely tiring but rewarding as well at the same time because of the panoramic views that it offers of the beautiful valley.
Get best deals on travel, receive travel tips and travel stories instantly Subscribe to Nativeplanet. | english |
/*
Theme Name : Expo
Theme URI : http://sitename.com/
Description: This is a -- website
Author Name: <NAME>
Author URI : http://nishanmazumder.com/
Tags : website, law
Version : 1.0.0
*/
/* ==========================================================================
Author's custom styles
========================================================================== */
/*********************
Global Section
**********************/
*{
padding:0px;
margin:0px;
}
body{
margin:0px auto;
height:auto;
}
ul li {
list-style-type:none;
}
a{
text-decoration:none;
}
a:hover{
text-decoration:none;
}
h1{
font-weight: bold;
font-size: 40px;
}
.underline{
height:2px;
background:#1F88C2;
border: 1px solid #1F88C2;
width: 30%;
margin: 0px auto;
margin-bottom:5px;
}
/*********************
Header Section
**********************/
header{
padding:20px 0px 20px 0px;
height:auto;
}
.logo{
width: 18%;
float:right;
margin-left:300px;
margin-top: 0px !important;
}
.navbar-brand{
padding: 0px 15px !important;
}
.google-translate-sec>.form-control{
font-size: 13px;
padding: 0px !important;
}
.google-translate-sec>select{
width:54%;
height:20px;
float:right;
}
.google-translate-sec>ul{
float:right;
}
.google-translate-sec>ul>li{
float:left;
margin-left:5px;
}
.google-translate-sec>ul>li>img{
display: inline-block;
}
/*********************
Nav Section
**********************/
.navbar{
background: #fff !important;
border: none !important;
height:auto !important;
padding-bottom:10px !important;
}
.nav>li>a{
font-weight: bold;
font-size: 17px;
}
.nav>li>a:hover{
color: #E96656 !important;
}
.dropdown-menu>li>a:hover{
color: #E96656 !important;
}
/*********************
Slider Section
**********************/
.slider-section{
padding-top:120px;
}
.video-wrap{
height:650px !important;
}
.carousel-inner>.item>img{
height: 650px !important;
width: 100% !important;
}
.carousel-indicators{
display: block;
position:absolute;
top: 680px;
}
.carousel-indicators>.active{
background: #34D293 !important;
}
.carousel-indicators>li{
background:#272727 !important;
border:none;
color: #fff;
padding: 10px !important;
}
.carousel-inner>.item>img{
border-bottom: 10px solid #DFDFDF;
}
.slide-down{
color: #DFDFDF;
position: absolute;
top:-20px;
left:615px;
}
/*********************
Superfan Section
**********************/
.super-fan{
padding: 70px 0px 70px 0px;
}
.super-fan>.container>.row>.col-md-12>h1{
padding-bottom:80px;
}
#owl-demo .item .carousel-caption h3,p{
color: #272727 !important;
}
#owl-demo .item{
margin: 0px;
}
#owl-demo .item img{
display: block;
width: 80%;
height: auto;
border:10px solid #919191;
margin: 0px auto !important;
}
#owl-demo .item img:hover{
border:10px solid #DD4F43 !important;
}
#owl-demo .item .carousel-caption{
position:relative;
padding-top: 50px !important;
left: 0px;
}
/*********************
Company Section
**********************/
.company-area{
background: #272727;
padding: 70px 0px 70px 0px;
}
.company-area>.container>.row,.progressbar>.col-md-12>h1,h4{
color: #fff;
}
.company-area>.container>.row:first-child{
margin-bottom: 50px;
}
.sub-head>p{
margin-top: 25px;
color:#939393 !important;
}
/*Progress Bar*/
.progressbar-sec>.row:first-child{
margin-top:45px;
}
.progressbar-sec>.row{
margin-top:20px;
}
/*********************
News Section
**********************/
.news-area{
padding: 70px 0px 70px 0px;
}
.news-area>.container>.row:first-child{
margin-bottom: 50px;
}
.news-area>.container>.row:last-child>.col-md-4>img{
width: 90%;
margin: 0px auto;
}
/*********************
Mail Subscribe Section
**********************/
.mail-subscribe-area{
background: #7F7F7F;
padding: 70px 0px 70px 0px;
}
.mail-subscribe-area>.container>.row:first-child>.col-md-12>h1{
color: #fff;
}
.mail-subscribe-area>.container>.row:first-child{
margin-bottom: 50px;
}
.input-inline:first-child{
margin-left:0px !important;
}
.input-inline{
width:31.35% !important;
display: inline-block;
margin-left:2.55%;
}
.btn-send-message{
background:#E96656 !important;
color: #fff;
border: none;
margin-top: 15px;
}
.btn-send-message:hover{
background:#CB4332 !important;
color: #fff;
}
/*********************
Footer Section
**********************/
footer{
background: #272727;
padding: 70px 0px 70px 0px;
}
footer>.container>.row>.col-md-3>ul>li>a{
color:#939393;
font-size:16px;
}
footer>.container>.row>.col-md-3>ul>li>a>i{
margin-bottom:10px;
transition: .7s;
}
footer>.container>.row>.col-md-3>ul>li>a>i:hover{
color: #E96656;
}
footer>.container>.row>.col-md-3>ul>li>a:hover{
color:#E96656;
}
footer>.container>.row>.col-md-3>a{
color:#939393;
}
footer>.container>.row>.col-md-3>a:hover{
color: #E96656;
}
.social-link-area>ul{
margin-left: 30px;
}
.social-link-area>ul>li{
float:left;
}
.social-link-area>ul>li>a>i{
padding:8px;
color:#939393;
font-size: 20px;
}
.fa-phone-square{
color:#3AB0E2;
}
.fa-envelope{
color:#34D293;
}
.fa-map-marker{
color:#CF32A5;
}
/* ==========================================================================
Media Queries
========================================================================== */
@media only screen and (max-width:1030px){
.carousel-indicators{
top: 680px;
}
.slide-down{
left:486px;
}
.google-translate-sec>select{
width:65%;
}
}
@media only screen and (max-width:780px){
.google-translate-sec>ul{
float:left;
}
.navbar-brand{
padding: 25px 15px !important;
}
.nav>li>a{
font-weight: normal;
font-size: 15px;
}
.slider-section{
padding-top:100px;
}
.video-wrap{
height:450px !important;
}
.carousel-inner>.item>img{
height: 450px !important;
width: 100% !important;
}
.carousel-indicators{
top: 480px;
}
.slide-down{
left:358px;
}
.underline{
width: 15%;
}
#owl-demo>.item{
margin-top:50px;
}
.sub-head>p{
text-align:center !important;
margin-top:30px;
}
.company-area>.container>.row:last-child>.col-md-4>h1{
text-align:center;
}
.news-area>.container>.row:last-child>.col-md-4{
width: 100%;
margin: 0px auto;
margin-top:50px;
}
.input-inline:first-child{
margin-left:5% !important;
}
.input-inline{
width:90% !important;
display: inline-block;
margin-left:5%;
margin-top:15px;
}
.text-message-area{
width:90%;
margin-left:5%;
}
.btn-send-message{
margin-left:5% !important;
}
.social-link-area>ul{
display: inline-block;
margin: 0px auto;
}
.social-link-area{
text-align:center;
}
footer>.container>.row>.col-md-3{
margin-top:15px;
}
}
@media only screen and (max-width:650px){
.navbar-toggle{
float:left;
position:absolute;
top:30px;
left:10px;
background: #E96656 !important;
}
.navbar-brand{
padding:0px 15px !important;
}
.slider-section{
padding-top:50px;
}
.video-wrap{
height:350px !important;
}
.carousel-inner>.item>img{
height: 350px !important;
width: 100% !important;
}
.carousel-indicators{
top: 380px;
}
.slide-down{
left:294px;
}
.super-fan>.container>.row>.col-md-12>h1{
padding-bottom:20px;
}
.news-area>.container>.row:first-child{
margin-bottom: 20px;
}
}
@media only screen and (max-width:490px){
.carousel-indicators{
top: 380px;
}
.slide-down{
left:218px;
}
.google-translate-sec>ul{
margin-left:130px;
}
.google-translate-sec>select{
margin-right:80px;
}
.navbar-toggle{
top:60px;
}
} | css |
BTS’ Jungkook and SEVENTEEN’s Mingyu are not only 97-liner best friends but also labelmates. Both of them are supportive of each other's solo endeavors and their joint dance challenges are proof of that.
On October 11, SEVENTEEN’s Mingyu hosted a Weverse live for CARATs where he spoke about his recent activities and answered some fan questions. A fan asked him about filming a 3D dance challenge on TikTok with BTS’ Jungkook.
For those unversed, 3D is Jungkook's latest hit single in collaboration with American rapper Jack Harlow. It was released on September 29.
SEVENTEEN's Mingyu revealed the duo practiced for 20 minutes before filming the dance challenge and they even wore matching denim outfits for the same. The SEVENTEEN singer replied that his bandmate Wonwoo, who had also joined the Weverse live, filmed the 3D dance challenge for BTS’ Jungkook and SEVENTEEN's Mingyu.
An X user, @R_taekook22, shared a post about Mingyu talking about filming the 3D challenge:
"I did the 3d challenge right, once we finished practicing. we practiced quickly for like 20 minutes. just like when we filmed Seven. We filmed it with matching clothes and asked Wonwoo film it for us."
BTS’ Jungkook and SEVENTEEN's Mingyu are no strangers to filming fun dance challenges. The 97-liner best friends previously filmed SEVEN dance challenge which was Bangtan's maknae official solo debut and Billboard's summer song of the year.
To return the favor, BTS’ Jungkook filmed the SUPER dance challenge with Mingyu. Now, the HYBE labelmates teamed up to film the 3D dance challenge. According to fans, BTS’ Jungkook and SEVENTEEN's Mingyu looked handsome in matching denim outfits and stylish hats as they grooved to 3D together.
Despite practicing only 20 minutes before filming the challenge, fans lauded Mingyu for being a quick learner and matching steps with the Euphoria singer. Additionally, Mingyu revealed that the Dreamers singer edited the video.
Fans took to social media to lavish praise on the duo's 3D dance challenge:
Notably, BTS’ Jungkook and SEVENTEEN's Mingyu's other 97-liner friend, ASTRO's Cha Eun-woo, was present during the 3D dance challenge but this cannot be verified as he is not seen on camera.
The My You singer showcased his solid bond and friendship with SEVENTEEN's members again when he used Mingyu's Weverse account to comment on Seungkwan's live.
Bangtan's maknae is currently in the midst of his promotional activities for his album, GOLDEN, and is slated to debut his latest hit single 3D on Music Bank. He will appear on Friday, October 13, telecast of Music Bank.
Three weeks post that, on November 3, he will be releasing his debut solo album GOLDEN consisting of 11 tracks, two of which are 3D and SEVEN. The maknae will be releasing GOLDEN's music video teaser, tracklist, album preview, and main track poster.
On November 20, he will host his first solo concert "GOLDEN Live On Stage" at Jangchung Arena in Seoul, South Korea at 8 pm KST. For international ARMYs, the concert will be streamed live on Weverse. More details will be shared in due course of time.
| english |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.