text
stringlengths
1
1.04M
language
stringclasses
25 values
<filename>Foundation/src/DirectoryIterator_VMS.cpp // // DirectoryIterator_VMS.cpp // // Library: Foundation // Package: Filesystem // Module: DirectoryIterator // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #include "Poco/DirectoryIterator_VMS.h" #include "Poco/Path.h" #include "Poco/Exception.h" #include <iodef.h> #include <atrdef.h> #include <fibdef.h> #include <starlet.h> namespace Poco { DirectoryIteratorImpl::DirectoryIteratorImpl(const std::string& path): _rc(1) { Path p(path); p.makeDirectory(); _search = p.toString(); _search.append("*.*;*"); _fab = cc$rms_fab; _fab.fab$l_fna = (char*) _search.c_str(); _fab.fab$b_fns = _search.size(); _fab.fab$l_nam = &_nam; _nam = cc$rms_nam; _nam.nam$l_esa = _spec; _nam.nam$b_ess = sizeof(_spec); if (sys$parse(&_fab) & 1) throw OpenFileException(path); next(); } DirectoryIteratorImpl::~DirectoryIteratorImpl() { } const std::string& DirectoryIteratorImpl::next() { if (sys$search(&_fab) & 1) _current.clear(); else _current.assign(_fab.fab$l_nam->nam$l_name, _fab.fab$l_nam->nam$b_name + _fab.fab$l_nam->nam$b_type); return _current; } } // namespace Poco
cpp
/* ============================================================================== This file is part of the JUCE library. Copyright (c) 2022 - Raw Material Software Limited JUCE is an open source library subject to commercial or open-source licensing. By using JUCE, you agree to the terms of both the JUCE 7 End-User License Agreement and JUCE Privacy Policy. End User License Agreement: www.juce.com/juce-7-licence Privacy Policy: www.juce.com/juce-privacy-policy Or: You may also use this code under the terms of the GPL v3 (see www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE DISCLAIMED. ============================================================================== */ namespace juce { namespace dsp { class ProcessorChainTest : public UnitTest { template <int AddValue> struct MockProcessor { void prepare (const ProcessSpec&) noexcept { isPrepared = true; } void reset() noexcept { isReset = true; } template <typename Context> void process (const Context& context) noexcept { bufferWasClear = context.getInputBlock().getSample (0, 0) == 0; if (! context.isBypassed) context.getOutputBlock().add (AddValue); } bool isPrepared = false; bool isReset = false; bool bufferWasClear = false; }; public: ProcessorChainTest() : UnitTest ("ProcessorChain", UnitTestCategories::dsp) {} void runTest() override { beginTest ("After calling setBypass, processor is bypassed"); { ProcessorChain<MockProcessor<1>, MockProcessor<2>> chain; setBypassed<0> (chain, true); expect (isBypassed<0> (chain)); setBypassed<0> (chain, false); expect (! isBypassed<0> (chain)); setBypassed<1> (chain, true); expect (isBypassed<1> (chain)); setBypassed<1> (chain, false); expect (! isBypassed<1> (chain)); } beginTest ("After calling prepare, all processors are prepared"); { ProcessorChain<MockProcessor<1>, MockProcessor<2>> chain; expect (! get<0> (chain).isPrepared); expect (! get<1> (chain).isPrepared); chain.prepare (ProcessSpec{}); expect (get<0> (chain).isPrepared); expect (get<1> (chain).isPrepared); } beginTest ("After calling reset, all processors are reset"); { ProcessorChain<MockProcessor<1>, MockProcessor<2>> chain; expect (! get<0> (chain).isReset); expect (! get<1> (chain).isReset); chain.reset(); expect (get<0> (chain).isReset); expect (get<1> (chain).isReset); } beginTest ("After calling process, all processors contribute to processing"); { ProcessorChain<MockProcessor<1>, MockProcessor<2>> chain; AudioBuffer<float> buffer (1, 1); AudioBlock<float> block (buffer); ProcessContextReplacing<float> context (block); block.clear(); chain.process (context); expectEquals (buffer.getSample (0, 0), 3.0f); expect (get<0> (chain).bufferWasClear); expect (! get<1> (chain).bufferWasClear); setBypassed<0> (chain, true); block.clear(); chain.process (context); expectEquals (buffer.getSample (0, 0), 2.0f); expect (get<0> (chain).bufferWasClear); expect (get<1> (chain).bufferWasClear); setBypassed<1> (chain, true); block.clear(); chain.process (context); expectEquals (buffer.getSample (0, 0), 0.0f); expect (get<0> (chain).bufferWasClear); expect (get<1> (chain).bufferWasClear); setBypassed<0> (chain, false); block.clear(); chain.process (context); expectEquals (buffer.getSample (0, 0), 1.0f); expect (get<0> (chain).bufferWasClear); expect (! get<1> (chain).bufferWasClear); } beginTest ("Chains with trailing items that only support replacing contexts can be built"); { AudioBuffer<float> inBuf (1, 1), outBuf (1, 1); juce::dsp::AudioBlock<float> in (inBuf), out (outBuf); struct OnlyReplacing { void prepare (const juce::dsp::ProcessSpec&) {} void process (const juce::dsp::ProcessContextReplacing<float>& c) { c.getOutputBlock().multiplyBy (2.0f); } void reset() {} }; { juce::dsp::ProcessorChain<juce::dsp::Gain<float>, OnlyReplacing, OnlyReplacing> c; juce::dsp::ProcessContextNonReplacing<float> context (in, out); get<0> (c).setGainLinear (1.0f); c.prepare (ProcessSpec{}); inBuf.setSample (0, 0, 1.0f); c.process (context); expectEquals (outBuf.getSample (0, 0), 4.0f); } } } }; static ProcessorChainTest processorChainUnitTest; } // namespace dsp } // namespace juce
cpp
{ "latest_version": [ "0.4" ], "meta": { "description": "create classes to (un)pack packets to/from objects with named fields", "homepage": "http://www.ultimate.com/phil/python/#packet", "license": "MIT" }, "versions": {} }
json
Telstra announced on Tuesday afternoon that its unlimited data offer for home broadband customers that was slated to end in April would be extended to the end of June. The data boost, announced last month, covers customers on the National Broadband Network, ADSL, and cable customers. "As things change, we need to adapt and recognise we're all in this for the long haul. We all have a continued responsibility to do what we can to help people through this period and our next step is to extend our customer support measures for another few months," Telstra consumer and small business group executive Michael Ackland said. Other initiatives that would be extended to the end of June include Telstra's decision to waive late payments, its 25GB offer to postpaid mobile customers, and the offer of unlimited calls to local, national, 13/1300 numbers, and Australian mobiles to pensioners with a home phone plan. The Australian incumbent telco also launched an online bill assistance hub for customers who are struggling to pay their bills. Through the hub, these customers can enter into a payment plan with Telstra, make an agreement to pay at a later date, suspend all services for up to 90 days, or they can downsize their plan. "We're making it as easy as possible for customers to access our digital self-serve billing options to cater for any scenario they may be in, including payment extensions, queries and plan changes. If consumer and small business customers are unable to keep up with their bills, they can now make changes to assist them with making payments and to prevent them from having their service disconnected," Ackland said. Meanwhile, Vodafone has introduced a temporary AU$10 per month plan for existing postpaid customers and business customers on Red or Red Plus plans who have been financially impacted by COVID-19. "We recognise this is a very stressful time for many of our customers who have lost employment or income as a result of COVID-19, and we are a key part of their support network," Vodafone CEO Inaki Berroeta said. "This plan will allow customers to stay connected to the people important to them and the services they need, without worrying about their phone bill." The plan includes 3GB of mobile data and unlimited standard national voice calls and SMS for use in Australia. The temporary plan would be valid for three months and requires customers to provide proof of financial difficulty when applying. After the three-month period, customers would return to their existing plans. Optus is also playing its part by partnering with the Australian Business and Community Network (ABCN) to provide disadvantaged secondary school students with a free Optus Prepaid mobile plan through Optus' Donate Your Data program. Initially, the telco plans to work with a "small number" of NSW schools to distribute "several hundred" SIM cards with the aim of supporting 6,000 disadvantaged students nationally. The SIM cards offer unlimited national standard talk and text and 10GB data for use in Australia, which is topped up with extra data donated by Optus customers. "It is essential that young Australians can continue to learn and stay connected with their classmates, which is why we are delighted to be partnering with ABCN to ensure that students in most need are supported by our Donate Your Data initiative and have the connectivity in place to continue with their studies." Optus CEO Kelly Bayer Rosmarin said. Optus said it is looking to expand the Donate Your Data program by partnering with additional charities and causes to help more disadvantaged Australians. The program was launched at the end of last year and allows Optus postpaid and prepaid mobile customers to donate their data.
english
<reponame>tangmi/egui<gh_stars>0 //! Color picker widgets. use crate::{ paint::{color::*, *}, *, }; fn contrast_color(color: impl Into<Rgba>) -> Color32 { if color.into().intensity() < 0.5 { Color32::WHITE } else { Color32::BLACK } } /// Number of vertices per dimension in the color sliders. /// We need at least 6 for hues, and more for smooth 2D areas. /// Should always be a multiple of 6 to hit the peak hues in HSV/HSL (every 60°). const N: u32 = 6 * 6; fn background_checkers(painter: &Painter, rect: Rect) { let mut top_color = Color32::from_gray(128); let mut bottom_color = Color32::from_gray(32); let checker_size = Vec2::splat(rect.height() / 2.0); let n = (rect.width() / checker_size.x).round() as u32; let mut triangles = Triangles::default(); for i in 0..n { let x = lerp(rect.left()..=rect.right(), i as f32 / (n as f32)); triangles.add_colored_rect( Rect::from_min_size(pos2(x, rect.top()), checker_size), top_color, ); triangles.add_colored_rect( Rect::from_min_size(pos2(x, rect.center().y), checker_size), bottom_color, ); std::mem::swap(&mut top_color, &mut bottom_color); } painter.add(Shape::triangles(triangles)); } pub fn show_color(ui: &mut Ui, color: impl Into<Color32>, desired_size: Vec2) -> Response { show_srgba(ui, color.into(), desired_size) } fn show_srgba(ui: &mut Ui, srgba: Color32, desired_size: Vec2) -> Response { let (rect, response) = ui.allocate_at_least(desired_size, Sense::hover()); background_checkers(ui.painter(), rect); ui.painter().add(Shape::Rect { rect, corner_radius: 2.0, fill: srgba, stroke: Stroke::new(3.0, srgba.to_opaque()), }); response } fn color_button(ui: &mut Ui, color: Color32) -> Response { let desired_size = ui.style().spacing.interact_size; let (rect, response) = ui.allocate_at_least(desired_size, Sense::click()); let visuals = ui.style().interact(&response); background_checkers(ui.painter(), rect); ui.painter().add(Shape::Rect { rect, corner_radius: visuals.corner_radius.at_most(2.0), fill: color, stroke: visuals.fg_stroke, }); response } fn color_slider_1d(ui: &mut Ui, value: &mut f32, color_at: impl Fn(f32) -> Color32) -> Response { #![allow(clippy::identity_op)] let desired_size = vec2( ui.style().spacing.slider_width, ui.style().spacing.interact_size.y * 2.0, ); let (rect, response) = ui.allocate_at_least(desired_size, Sense::click_and_drag()); if response.active { if let Some(mpos) = ui.input().mouse.pos { *value = remap_clamp(mpos.x, rect.left()..=rect.right(), 0.0..=1.0); } } let visuals = ui.style().interact(&response); background_checkers(ui.painter(), rect); // for alpha: { // fill color: let mut triangles = Triangles::default(); for i in 0..=N { let t = i as f32 / (N as f32); let color = color_at(t); let x = lerp(rect.left()..=rect.right(), t); triangles.colored_vertex(pos2(x, rect.top()), color); triangles.colored_vertex(pos2(x, rect.bottom()), color); if i < N { triangles.add_triangle(2 * i + 0, 2 * i + 1, 2 * i + 2); triangles.add_triangle(2 * i + 1, 2 * i + 2, 2 * i + 3); } } ui.painter().add(Shape::triangles(triangles)); } ui.painter().rect_stroke(rect, 0.0, visuals.bg_stroke); // outline { // Show where the slider is at: let x = lerp(rect.left()..=rect.right(), *value); let r = rect.height() / 4.0; let picked_color = color_at(*value); ui.painter().add(Shape::polygon( vec![ pos2(x - r, rect.bottom()), pos2(x + r, rect.bottom()), pos2(x, rect.center().y), ], picked_color, Stroke::new(visuals.fg_stroke.width, contrast_color(picked_color)), )); } response } fn color_slider_2d( ui: &mut Ui, x_value: &mut f32, y_value: &mut f32, color_at: impl Fn(f32, f32) -> Color32, ) -> Response { let desired_size = Vec2::splat(ui.style().spacing.slider_width); let (rect, response) = ui.allocate_at_least(desired_size, Sense::click_and_drag()); if response.active { if let Some(mpos) = ui.input().mouse.pos { *x_value = remap_clamp(mpos.x, rect.left()..=rect.right(), 0.0..=1.0); *y_value = remap_clamp(mpos.y, rect.bottom()..=rect.top(), 0.0..=1.0); } } let visuals = ui.style().interact(&response); let mut triangles = Triangles::default(); for xi in 0..=N { for yi in 0..=N { let xt = xi as f32 / (N as f32); let yt = yi as f32 / (N as f32); let color = color_at(xt, yt); let x = lerp(rect.left()..=rect.right(), xt); let y = lerp(rect.bottom()..=rect.top(), yt); triangles.colored_vertex(pos2(x, y), color); if xi < N && yi < N { let x_offset = 1; let y_offset = N + 1; let tl = yi * y_offset + xi; triangles.add_triangle(tl, tl + x_offset, tl + y_offset); triangles.add_triangle(tl + x_offset, tl + y_offset, tl + y_offset + x_offset); } } } ui.painter().add(Shape::triangles(triangles)); // fill ui.painter().rect_stroke(rect, 0.0, visuals.bg_stroke); // outline // Show where the slider is at: let x = lerp(rect.left()..=rect.right(), *x_value); let y = lerp(rect.bottom()..=rect.top(), *y_value); let picked_color = color_at(*x_value, *y_value); ui.painter().add(Shape::Circle { center: pos2(x, y), radius: rect.width() / 12.0, fill: picked_color, stroke: Stroke::new(visuals.fg_stroke.width, contrast_color(picked_color)), }); response } /// What options to show for alpha #[derive(Clone, Copy, PartialEq)] pub enum Alpha { // Set alpha to 1.0, and show no option for it. Opaque, // Only show normal blend options for it. OnlyBlend, // Show both blend and additive options. BlendOrAdditive, } fn color_picker_hsvag_2d(ui: &mut Ui, hsva: &mut HsvaGamma, alpha: Alpha) { ui.vertical(|ui| { let current_color_size = vec2( ui.style().spacing.slider_width, ui.style().spacing.interact_size.y * 2.0, ); let opaque = HsvaGamma { a: 1.0, ..*hsva }; if alpha == Alpha::Opaque { hsva.a = 1.0; show_color(ui, *hsva, current_color_size).on_hover_text("Current color"); } else { let a = &mut hsva.a; // We signal additive blending by storing a negative alpha (a bit ironic). let mut additive = *a < 0.0; if alpha == Alpha::OnlyBlend { if additive { *a = 0.5; } color_slider_1d(ui, a, |a| HsvaGamma { a, ..opaque }.into()).on_hover_text("Alpha"); } else { ui.horizontal(|ui| { ui.label("Blending:"); ui.radio_value(&mut additive, false, "Normal"); ui.radio_value(&mut additive, true, "Additive"); if additive { *a = -a.abs(); } if !additive { *a = a.abs(); } }); if !additive { color_slider_1d(ui, a, |a| HsvaGamma { a, ..opaque }.into()) .on_hover_text("Alpha"); } } show_color(ui, *hsva, current_color_size).on_hover_text("Current color"); show_color(ui, opaque, current_color_size).on_hover_text("Current color (opaque)"); } let HsvaGamma { h, s, v, a: _ } = hsva; color_slider_2d(ui, h, s, |h, s| HsvaGamma::new(h, s, 1.0, 1.0).into()) .on_hover_text("Hue - Saturation"); color_slider_2d(ui, v, s, |v, s| HsvaGamma { v, s, ..opaque }.into()) .on_hover_text("Value - Saturation"); color_slider_1d(ui, h, |h| HsvaGamma { h, ..opaque }.into()).on_hover_text("Hue"); color_slider_1d(ui, s, |s| HsvaGamma { s, ..opaque }.into()).on_hover_text("Saturation"); color_slider_1d(ui, v, |v| HsvaGamma { v, ..opaque }.into()).on_hover_text("Value"); }); } fn color_picker_hsva_2d(ui: &mut Ui, hsva: &mut Hsva, alpha: Alpha) { let mut hsvag = HsvaGamma::from(*hsva); color_picker_hsvag_2d(ui, &mut hsvag, alpha); *hsva = Hsva::from(hsvag); } pub fn color_edit_button_hsva(ui: &mut Ui, hsva: &mut Hsva, alpha: Alpha) -> Response { let pupup_id = ui.auto_id_with("popup"); let button_response = color_button(ui, (*hsva).into()).on_hover_text("Click to edit color"); if button_response.clicked { ui.memory().toggle_popup(pupup_id); } // TODO: make it easier to show a temporary popup that closes when you click outside it if ui.memory().is_popup_open(pupup_id) { let area_response = Area::new(pupup_id) .order(Order::Foreground) .default_pos(button_response.rect.max) .show(ui.ctx(), |ui| { ui.style_mut().spacing.slider_width = 256.0; Frame::popup(ui.style()).show(ui, |ui| { color_picker_hsva_2d(ui, hsva, alpha); }) }); if !button_response.clicked { let clicked_outside = ui.input().mouse.click && !area_response.hovered; if clicked_outside || ui.input().key_pressed(Key::Escape) { ui.memory().close_popup(); } } } button_response } /// Shows a button with the given color. /// If the user clicks the button, a full color picker is shown. pub fn color_edit_button_srgba(ui: &mut Ui, srgba: &mut Color32, alpha: Alpha) -> Response { // To ensure we keep hue slider when `srgba` is grey we store the // full `Hsva` in a cache: let mut hsva = ui .ctx() .memory() .color_cache .get(srgba) .cloned() .unwrap_or_else(|| Hsva::from(*srgba)); let response = color_edit_button_hsva(ui, &mut hsva, alpha); *srgba = Color32::from(hsva); ui.ctx().memory().color_cache.set(*srgba, hsva); response } // ---------------------------------------------------------------------------- /// Like Hsva but with the `v` (value/brightness) being gamma corrected /// so that it is perceptually even in sliders. #[derive(Clone, Copy, Debug, Default, PartialEq)] struct HsvaGamma { /// hue 0-1 pub h: f32, /// saturation 0-1 pub s: f32, /// value 0-1, in gamma-space (perceptually even) pub v: f32, /// alpha 0-1. A negative value signifies an additive color (and alpha is ignored). pub a: f32, } impl HsvaGamma { pub fn new(h: f32, s: f32, v: f32, a: f32) -> Self { Self { h, s, v, a } } } // const GAMMA: f32 = 2.2; impl From<HsvaGamma> for Rgba { fn from(hsvag: HsvaGamma) -> Rgba { Hsva::from(hsvag).into() } } impl From<HsvaGamma> for Color32 { fn from(hsvag: HsvaGamma) -> Color32 { Rgba::from(hsvag).into() } } impl From<HsvaGamma> for Hsva { fn from(hsvag: HsvaGamma) -> Hsva { let HsvaGamma { h, s, v, a } = hsvag; Hsva { h, s, v: linear_from_srgb(v), a, } } } impl From<Hsva> for HsvaGamma { fn from(hsva: Hsva) -> HsvaGamma { let Hsva { h, s, v, a } = hsva; HsvaGamma { h, s, v: srgb_from_linear(v), a, } } } /// [0, 1] -> [0, 1] fn linear_from_srgb(s: f32) -> f32 { if s < 0.0 { -linear_from_srgb(-s) } else if s <= 0.04045 { s / 12.92 } else { ((s + 0.055) / 1.055).powf(2.4) } } /// [0, 1] -> [0, 1] fn srgb_from_linear(l: f32) -> f32 { if l < 0.0 { -srgb_from_linear(-l) } else if l <= 0.0031308 { 12.92 * l } else { 1.055 * l.powf(1.0 / 2.4) - 0.055 } }
rust
Best Spanish-language version of a popular English-language pop or rock song? GO! I will share my 3 faves ever soon. NUMBER 2! And this is NUMBER 1 for me! Tip: mention @twtextapp on a Twitter thread with the keyword “unroll” to get a link to it. Latest Threads Unrolled: Las mejores calculadoras online en 2020A thread http://totumat.com/2020/11/26/las-mejores-calculadoras-online-en-2020/ Cuando se estudian asignaturas que requieren de cálculos complicados, nada mejor que contar con una buena calculadora.
english
{"all_contexts":[ {"num_warnings": 1, "context":[{"lineno": -1, "instr": " %5 = alloca i8*, align 8"}], "warnings":[{"warn_data": {"at_line": 509, "warn_str": "Non-constant size used in copy_to(or from)_user function.", "at": "err = copy_from_user(pkt, buf, len);", "inst_trace": [], "at_file": "drivers/misc/hpilo.c", "by": "TaintedSizeDetector says:", "at_func": "ilo_write"}, "warn_no": 1}]}, {"num_warnings": 1, "context":[{"lineno": -1, "instr": " %5 = alloca i8*, align 8"}, {"lineno": 514, "file": "drivers/misc/hpilo.c", "instr": "ilo_pkt_enqueue(hw, driver_ccb, SENDQ, pkt_id, len);"}, {"lineno": 140, "file": "drivers/misc/hpilo.c", "instr": "entry = mk_entry(id, len);"}], "warnings":[{"warn_data": {"at_line": 52, "warn_str": "Potential overflow, using tainted value in binary operation.", "at": "int qlen = len & 7 ? (len >> 3) + 1 : len >> 3;", "inst_trace": [{"instr_func": "ilo_write", "instr_loc": -1, "instr": " %5 = alloca i8*, align 8"}, {"instr_func": "ilo_write", "instr_loc": 490, "instr_file": "drivers/misc/hpilo.c", "instr": "{"}, {"instr_func": "ilo_write", "instr_loc": 514, "instr_file": "drivers/misc/hpilo.c", "instr": "ilo_pkt_enqueue(hw, driver_ccb, SENDQ, pkt_id, len);"}, {"instr_func": "ilo_write", "instr_loc": 514, "instr_file": "drivers/misc/hpilo.c", "instr": "ilo_pkt_enqueue(hw, driver_ccb, SENDQ, pkt_id, len);"}, {"instr_func": "ilo_pkt_enqueue", "instr_loc": 131, "instr_file": "drivers/misc/hpilo.c", "instr": "{"}, {"instr_func": "ilo_pkt_enqueue", "instr_loc": 140, "instr_file": "drivers/misc/hpilo.c", "instr": "entry = mk_entry(id, len);"}, {"instr_func": "ilo_pkt_enqueue", "instr_loc": 140, "instr_file": "drivers/misc/hpilo.c", "instr": "entry = mk_entry(id, len);"}, {"instr_func": "mk_entry", "instr_loc": 51, "instr_file": "drivers/misc/hpilo.c", "instr": "{"}, {"instr_func": "mk_entry", "instr_loc": 52, "instr_file": "drivers/misc/hpilo.c", "instr": "int qlen = len & 7 ? (len >> 3) + 1 : len >> 3;"}, {"instr_func": "mk_entry", "instr_loc": 52, "instr_file": "drivers/misc/hpilo.c", "instr": "int qlen = len & 7 ? (len >> 3) + 1 : len >> 3;"}], "at_file": "drivers/misc/hpilo.c", "by": "IntegerOverflowDetector says:", "at_func": "mk_entry"}, "warn_no": 1}]}]}
json
Bhopal: After deflating the BJP’s Karnataka euphoria the Congress leadership in Madhya Pradesh has got down to the job of insulating itself against imminent retaliation from a wounded opposition. Chief Minister Kamal Nath held a meeting of his Cabinet and asked them to guard the party flock. Each minister has been tasked to take responsibility for ten MLAs. The Two BJP legislators Sharad Kol of Beohari and Narayan Tripathi of Maihar who cross-voted in favour of Congress to help pass a Bill on prevention against mob lynching in Madhya Pradesh Assembly were put in the care of Bhopal MLA Arif Masood and another leader Praveen Pathak. They were escorted to Kamal Nath’s residence for dinner late Wednesday. The BJP legislature party, on the other hand, got into a huddle under former chief minister Shivraj Singh Chouhan first in the chamber of Gopal Bhargava, the leader of the opposition and then at Chouhan’s residence before the senior leaders met at the party office late in the night. BJP president Amit Shah had sought a report from the leaders and rushed the state unit president Rakesh Singh to Bhopal leaving the Lok Sabha session midway. Late in the night Chouhan also visited the Sangh headquarters to brief senior functionary Dipak Vispute. Shah is keen not to let go of the defiant MLAs. They will be persuaded to change their mind. Singh said the MLAs still belong to BJP. The BJP would console itself suggesting that Tripathi and Kol may have voted for the Congress but they are still with the BJP. Theoretically true, but the duo has gone too far with their Ghar Wapsi statements to remain in the BJP stable. Tripathi said the BJP humiliates and exploits the MLAs joining from the other parties. Kol, a tribal leader, said he was disillusioned with the BJP’s attitude towards the tribals. Tripathi also pointed to another flaw in the BJP’s functioning. He said the top leaders make tall promises to people without taking MLAs into confidence. The MLAs have been reduced to defending the leaders without the merit of the issues. The same is the view of several other BJP MLAs who have been imported from other parties. They may not need to surrender their membership of the House immediately as they are technically with the Opposition. The BJP can expel them at its own peril especially when the Congress is in a position to lure away some more members. On arrival late in the evening Singh said Gopal Bhargava’s utterances did not reflect the party line. The BJP is not in favour of pulling down any government. Bhargava could have avoided division of votes by getting the party to stage a walkout from the House. But throughout the past seven months the BJP has been sending contradictory signals through its leaders. Kailash Vijayvargiya, a hatchet man of Amit Shah, who is opposed to Chouhan has consistently suggested the government was BJP’s mercy. After the House was adjourned a sullen Bhargava cried foul and said the game was still on. Another senior MLA and former parliamentary affairs Narottam Mishra also said the game was started by the Congress but BJP will take it to the logical conclusion. The script for Wednesday’s drama was prepared over the weekend. The Congress was keen to have a showdown on Monday through a division of votes. Realizing that its numbers were short BJP staged a walkout protesting over Sheila Dixit not being mourned by the House as she did not belong to Congress’ first family. Kamal Nath had prepared the party for Wednesday’s showdown. Bhargava apparently failed on two counts. One, he often went out of his way to run down Shivraj Singh Chouhan and steal the limelight. Two, it was dereliction of duty on his part not to have kept a watch on Tripathi and Kol while there were reports of them hobnobbing with the Congress. Not many people know the price tag the two MLAs were carrying. But a faction-ridden Congress will have to check whether it can compensate them and some more suitably while it has not been able to accommodate the existing lot. Factionalism is a matter of concern for BJP, too. Senior party members Gopal Bhargava, Narottam Mishra, Kailash Vijayvargiya and Shivraj Chouhan don’t pull together. The party is wary of more pitfalls before the civic elections due later this year. Kailashvargiya and his son Akash enacted the Indore tamasha to gain an upper hand vis-a-vis the other leaders the bastion of the rightists as both the Indore mayor Malti Gaur and the former LoK Sabha Speaker Sumitra Mahajan are opposed to their brawny ways. (IANS)
english
<gh_stars>10-100 package cfg import ( "errors" "fmt" "regexp" "strings" "sync" "time" "github.com/scrapli/scrapligo/logging" "github.com/scrapli/scrapligo/driver/base" "github.com/scrapli/scrapligo/driver/network" ) var ErrGetCheckpointFailed = errors.New("get checkpoint operation failed") type nxosPatterns struct { bytesFreePattern *regexp.Regexp buildConfigPattern *regexp.Regexp configVersionPattern *regexp.Regexp configChangePattern *regexp.Regexp outputHeaderPattern *regexp.Regexp checkpointLinePattern *regexp.Regexp } var ( nxosPatternsInstance *nxosPatterns //nolint:gochecknoglobals nxosPatternsInstanceOnce sync.Once //nolint:gochecknoglobals ) func getNXOSPatterns() *nxosPatterns { nxosPatternsInstanceOnce.Do(func() { nxosPatternsInstance = &nxosPatterns{ bytesFreePattern: regexp.MustCompile( `(?i)(?P<bytes_available>\d+)(?: bytes free)`, ), buildConfigPattern: regexp.MustCompile(`(?im)(^!command:.*$)`), configVersionPattern: regexp.MustCompile( `(?im)(^!running configuration last done.*$)`, ), configChangePattern: regexp.MustCompile(`(?im)(^!time.*$)`), checkpointLinePattern: regexp.MustCompile(`(?m)^\s*!#.*$`), } nxosPatternsInstance.outputHeaderPattern = regexp.MustCompile( fmt.Sprintf( `(?im)%s|%s|%s`, nxosPatternsInstance.buildConfigPattern.String(), nxosPatternsInstance.configVersionPattern.String(), nxosPatternsInstance.configChangePattern.String(), ), ) }) return nxosPatternsInstance } type NXOSCfg struct { conn *network.Driver VersionPattern *regexp.Regexp Filesystem string filesystemSpaceAvailBufferPerc float32 configCommandMap map[string]string replaceConfig bool CandidateConfigFilename string candidateConfigFilename string } // NewNXOSCfg return a cfg instance setup for an Cisco NXOS device. func NewNXOSCfg( //nolint:dupl conn *network.Driver, options ...Option, ) (*Cfg, error) { options = append( []Option{ WithConfigSources([]string{"running", "startup"}), WithFilesystem("bootflash:"), }, options...) c, err := newCfg(conn, options...) if err != nil { return nil, err } c.Platform = &NXOSCfg{ conn: conn, VersionPattern: regexp.MustCompile(`(?i)\d+\.[a-z0-9\(\).]+`), configCommandMap: map[string]string{ "running": "show running-config", "startup": "show startup-config", }, filesystemSpaceAvailBufferPerc: 10.0, } err = setPlatformOptions(c.Platform, options...) if err != nil { return nil, err } return c, nil } func (p *NXOSCfg) ClearConfigSession() { p.candidateConfigFilename = "" } // GetVersion get the version from the device. func (p *NXOSCfg) GetVersion() (string, []*base.Response, error) { versionResult, err := p.conn.SendCommand("show version | i \"NXOS: version\"") if err != nil { return "", nil, err } return p.VersionPattern.FindString( versionResult.Result, ), []*base.Response{ versionResult, }, nil } // GetConfig get the configuration of a source datastore from the device. func (p *NXOSCfg) GetConfig(source string) (string, []*base.Response, error) { cmd, err := getConfigCommand(p.configCommandMap, source) if err != nil { return "", nil, err } configResult, err := p.conn.SendCommand(cmd) if err != nil { return "", nil, err } return configResult.Result, []*base.Response{configResult}, nil } func (p *NXOSCfg) getFilesystemSpaceAvail() (int, error) { patterns := getNXOSPatterns() filesystemSizeResult, err := p.conn.SendCommand(fmt.Sprintf("dir %s | i bytes", p.Filesystem)) if err != nil { return -1, ErrFailedToDetermineDeviceState } return parseSpaceAvail(patterns.bytesFreePattern, filesystemSizeResult) } func (p *NXOSCfg) prepareConfigPayload(config string) string { tclshFilesystem := fmt.Sprintf("/%s/", strings.TrimSuffix(p.Filesystem, ":")) tcslhStartFile := fmt.Sprintf( `set fl [open "%s%s" wb+]`, tclshFilesystem, p.candidateConfigFilename, ) splitConfig := strings.Split(config, "\n") tclshConfig := make([]string, 0) for _, configLine := range splitConfig { tclshConfig = append(tclshConfig, fmt.Sprintf("puts -nonewline $fl {%s\n}", configLine)) } tclshEndFile := "close $fl" return strings.Join( []string{tcslhStartFile, strings.Join(tclshConfig, "\n"), tclshEndFile}, "\n", ) } // LoadConfig load a candidate configuration. func (p *NXOSCfg) LoadConfig( config string, replace bool, options *OperationOptions, ) ([]*base.Response, error) { p.replaceConfig = replace var scrapliResponses []*base.Response filesystemBytesAvail, err := p.getFilesystemSpaceAvail() if err != nil { return nil, err } spaceSufficient := isSpaceSufficient( filesystemBytesAvail, p.filesystemSpaceAvailBufferPerc, config, ) if !spaceSufficient { return nil, ErrInsufficientSpaceAvailable } if p.candidateConfigFilename == "" { p.candidateConfigFilename = determineCandidateConfigFilename(p.CandidateConfigFilename) logging.LogDebug( FormatLogMessage( p.conn, "debug", fmt.Sprintf( "candidate configuration filename name will be %s", p.candidateConfigFilename, ), ), ) } config = p.prepareConfigPayload(config) err = p.conn.AcquirePriv("tclsh") if err != nil { return nil, err } r, err := p.conn.SendConfig(config, base.WithDesiredPrivilegeLevel("tclsh")) if err != nil { return nil, err } err = p.conn.AcquirePriv(p.conn.DefaultDesiredPriv) if err != nil { return scrapliResponses, err } scrapliResponses = append(scrapliResponses, r) return scrapliResponses, nil } func (p *NXOSCfg) deleteCandidateConfigFile() (*base.MultiResponse, error) { deleteCommands := []string{ "terminal dont-ask", fmt.Sprintf("delete %s%s", p.Filesystem, p.candidateConfigFilename), } return p.conn.SendCommands(deleteCommands) } // AbortConfig abort the loaded candidate configuration. func (p *NXOSCfg) AbortConfig() ([]*base.Response, error) { scrapliResponses := make([]*base.Response, 0) r, err := p.deleteCandidateConfigFile() if err != nil { return scrapliResponses, err } scrapliResponses = append(scrapliResponses, r.Responses...) return scrapliResponses, err } func (p *NXOSCfg) SaveConfig() (*base.Response, error) { return p.conn.SendCommand("copy running-config startup-config") } // CommitConfig commit the loaded candidate configuration. func (p *NXOSCfg) CommitConfig(source string) ([]*base.Response, error) { var scrapliResponses []*base.Response var commitResult *base.Response var err error if p.replaceConfig { commitResult, err = p.conn.SendCommand( fmt.Sprintf( "rollback running-config file %s%s", p.Filesystem, p.candidateConfigFilename, ), ) } else { commitResult, err = p.conn.SendCommand( fmt.Sprintf("copy %s%s running-config", p.Filesystem, p.candidateConfigFilename), ) } if err != nil { return scrapliResponses, err } scrapliResponses = append(scrapliResponses, commitResult) saveResult, err := p.SaveConfig() if err != nil { return scrapliResponses, err } scrapliResponses = append(scrapliResponses, saveResult) cleanupResult, err := p.deleteCandidateConfigFile() if err != nil { return scrapliResponses, err } scrapliResponses = append(scrapliResponses, cleanupResult.Responses...) return scrapliResponses, nil } func (p *NXOSCfg) getDiffCommand(source string) string { if p.replaceConfig { return fmt.Sprintf( "show diff rollback-patch %s-config file %s%s", source, p.Filesystem, p.candidateConfigFilename, ) } return "" } func (p *NXOSCfg) normalizeSourceAndCandidateConfigs( sourceConfig, candidateConfig string, ) (normalizedSourceConfig, normalizedCandidateConfig string) { patterns := getNXOSPatterns() normalizedSourceConfig = patterns.outputHeaderPattern.ReplaceAllString(sourceConfig, "") normalizedSourceConfig = strings.Replace(normalizedSourceConfig, "\n\n", "\n", -1) normalizedCandidateConfig = patterns.checkpointLinePattern.ReplaceAllString(candidateConfig, "") normalizedCandidateConfig = patterns.outputHeaderPattern.ReplaceAllString( normalizedCandidateConfig, "", ) normalizedCandidateConfig = strings.Replace(normalizedCandidateConfig, "\n\n", "\n", -1) return normalizedSourceConfig, normalizedCandidateConfig } // DiffConfig diff the candidate configuration against a source config. func (p *NXOSCfg) DiffConfig( source, candidateConfig string, ) (responses []*base.Response, normalizedSourceConfig, normalizedCandidateConfig, deviceDiff string, err error) { var scrapliResponses []*base.Response deviceDiff = "" diffCmd := p.getDiffCommand(source) if diffCmd != "" { diffResult, diffErr := p.conn.SendCommand(p.getDiffCommand(source)) if diffErr != nil { return scrapliResponses, "", "", "", diffErr } scrapliResponses = append(scrapliResponses, diffResult) if diffResult.Failed != nil { logging.LogError( FormatLogMessage( p.conn, "error", "failed generating diff for config session", ), ) return scrapliResponses, "", "", "", nil } deviceDiff = diffResult.Result } sourceConfig, getConfigR, err := p.GetConfig(source) if err != nil { return scrapliResponses, "", "", "", nil } scrapliResponses = append(scrapliResponses, getConfigR[0]) if getConfigR[0].Failed != nil { logging.LogError( FormatLogMessage( p.conn, "error", "failed fetching source config for diff comparison", ), ) return scrapliResponses, "", "", "", nil } normalizedSourceConfig, normalizedCandidateConfig = p.normalizeSourceAndCandidateConfigs( sourceConfig, candidateConfig, ) return scrapliResponses, normalizedSourceConfig, normalizedCandidateConfig, deviceDiff, nil } // GetCheckpoint return a checkpoint file from the target device. func (p *NXOSCfg) GetCheckpoint() (*Response, error) { logging.LogDebug( FormatLogMessage(p.conn, "info", "get checkpoint requested"), ) r := NewResponse(p.conn.Host, "GetCheckpoint", ErrGetCheckpointFailed) timestamp := time.Now().Unix() checkpointCommands := []string{ "terminal dont-ask", fmt.Sprintf("checkpoint file %sscrapli_cfg_tmp_%d", p.Filesystem, timestamp), fmt.Sprintf("show file %sscrapli_cfg_tmp_%d", p.Filesystem, timestamp), fmt.Sprintf("delete %sscrapli_cfg_tmp_%d", p.Filesystem, timestamp), } scrapliResponses, err := p.conn.SendCommands(checkpointCommands) if err != nil { return r, err } r.Record(scrapliResponses.Responses, "") return r, nil }
go
A metropolitan magistrate's court in Mumbai has issued summons to Congress chief Rahul Gandhi and CPM leader Sitaram Yechury after a defamation complaint was filed by an RSS worker for allegedly linking journalist Gauri Lankesh's murder with "BJP-RSS ideology". RSS worker and lawyer Dhrutiman Joshi had filed a private complaint in the court in 2017 against Rahul Gandhi, UPA chairperson Sonia Gandhi, the CPM and its general secretary Mr Yechury. Magistrate PK Deshpande on February 18 ordered that "process be issued" against Rahul Gandhi and Sitaram Yechury. He, however, dismissed the complaint against Sonia Gandhi and the CPM, saying a party cannot be held liable for comments made by individuals. The matter was set for further hearing on March 25. Ms Lankesh was shot dead outside her house in Bengaluru in September 2017, allegedly by the members of a right-wing extremist group. Mr Joshi alleged that within 24 hours of Ms Lankesh's death, Rahul Gandhi told media persons that "anybody who speaks against the ideology of the BJP, against the ideology of the RSS is pressured, beaten, attacked and even killed". Mr Yechury too stated that it was the RSS' ideology and the RSS men who had killed the journalist known for her trenchant criticism of right-wing politics, he alleged. Mr Joshi claimed that these statements slandered the Rashtriya Swayamsevak Sangh (RSS), and therefore a case of criminal defamation under IPC section 500 be registered against Rahul Gandhi, Yechury, CPM and Sonia Gandhi. He named the CPM because Mr Yechury belongs to that party and Sonia Gandhi because she was then Congress chief. The Congress president is already facing another case for defamation, filed by a Bhiwandi-based RSS worker, for allegedly blaming the Sangh for Mahatma Gandhi's assassination.
english
{"id":7,"card_set":[{"id":61,"level":1,"hp":6,"ap":4,"dp":5,"rarity":5,"deck_cost":8,"slot":1,"stand_image":"standchara07","chara_image":"cc07_01.swf","artifact_image":"","bg_image":"","next_id":62,"kind":0,"created_at":"2010-09-16 07:15:29 UTC","skill":null,"skill_pointer":[73]},{"id":62,"level":2,"hp":6,"ap":5,"dp":5,"rarity":5,"deck_cost":11,"slot":61,"stand_image":"standchara07","chara_image":"cc07_02.swf","artifact_image":"","bg_image":"","next_id":63,"kind":0,"created_at":"2010-09-16 07:15:29 UTC","skill":null,"skill_pointer":[73,76]},{"id":63,"level":3,"hp":6,"ap":5,"dp":6,"rarity":5,"deck_cost":15,"slot":61,"stand_image":"standchara07","chara_image":"cc07_03.swf","artifact_image":"","bg_image":"","next_id":64,"kind":0,"created_at":"2010-09-16 07:15:29 UTC","skill":null,"skill_pointer":[73,76,79]},{"id":64,"level":4,"hp":7,"ap":6,"dp":6,"rarity":5,"deck_cost":15,"slot":761,"stand_image":"standchara07","chara_image":"cc07_04.swf","artifact_image":"","bg_image":"","next_id":65,"kind":0,"created_at":"2010-09-16 07:15:29 UTC","skill":null,"skill_pointer":[73,76,79]},{"id":65,"level":5,"hp":8,"ap":7,"dp":7,"rarity":5,"deck_cost":19,"slot":761,"stand_image":"standchara07","chara_image":"cc07_05.swf","artifact_image":"","bg_image":"","next_id":0,"kind":0,"created_at":"2010-09-16 07:15:29 UTC","skill":null,"skill_pointer":[73,76,79,82]},{"id":66,"level":1,"hp":7,"ap":6,"dp":6,"rarity":6,"deck_cost":19,"slot":1761,"stand_image":"standchara07","chara_image":"cc07_a.swf","artifact_image":"","bg_image":"","next_id":67,"kind":0,"created_at":"2010-09-16 07:15:29 UTC","skill":null,"skill_pointer":[73,76,79,82]},{"id":67,"level":2,"hp":8,"ap":7,"dp":7,"rarity":7,"deck_cost":21,"slot":1761,"stand_image":"standchara07","chara_image":"cc07_b.swf","artifact_image":"","bg_image":"","next_id":68,"kind":0,"created_at":"2010-09-16 07:15:29 UTC","skill":null,"skill_pointer":[75,76,79,82]},{"id":68,"level":3,"hp":9,"ap":7,"dp":8,"rarity":8,"deck_cost":23,"slot":61761,"stand_image":"standchara07","chara_image":"cc07_c.swf","artifact_image":"","bg_image":"","next_id":69,"kind":0,"created_at":"2010-09-16 07:15:29 UTC","skill":null,"skill_pointer":[75,78,79,82]},{"id":69,"level":4,"hp":10,"ap":8,"dp":9,"rarity":9,"deck_cost":26,"slot":61761,"stand_image":"standchara07","chara_image":"cc07_d.swf","artifact_image":"","bg_image":"","next_id":70,"kind":0,"created_at":"2010-09-16 07:15:29 UTC","skill":null,"skill_pointer":[75,78,81,82]},{"id":70,"level":5,"hp":11,"ap":9,"dp":9,"rarity":10,"deck_cost":29,"slot":761761,"stand_image":"standchara07","chara_image":"cc07_e.swf","artifact_image":"","bg_image":"","next_id":0,"kind":0,"created_at":"2010-09-16 07:15:29 UTC","skill":null,"skill_pointer":[75,78,81,84]},{"id":50063,"level":3,"hp":6,"ap":5,"dp":6,"rarity":3,"deck_cost":15,"slot":61,"stand_image":"standchara07","chara_image":"cc07_03.swf","artifact_image":"","bg_image":"","next_id":0,"kind":12,"created_at":"","skill":null,"skill_pointer":[73,76,79]}],"name":{"jp":"ジェッド","en":"Jead","fr":"Jead","kr":"제드","scn":"杰多","tcn":"傑多","ina":"Jead","thai":"เจด"},"ab_name":{"jp":"- Vagrant - Jead","en":"- Vagrant -","fr":"- Vagrant -","kr":"- Vagrant - Jead","scn":"- Vagrant - Jead","tcn":"- Vagrant - Jead","ina":"- Vagrant -Jead","thai":"- Vagrant - Jead"},"caption":{"jp":"ミリガディアの幼きスラム王。その不可思議な力はすべてを支配する。","en":"The young ruler of the Meriguadian slum. He uses his mysterious power to control everything.","fr":"Jeune souverain des bas-quartiers de Meriguadian.","kr":"미리가디아의 빈민가의 어린 왕. 그 신비한 능력은 모든 것을 지배한다.","scn":"米利加迪亚年幼的贫民窟之王。使用着那不可思议的力量支配着一切。","tcn":"米利加迪亞年幼的貧民窟之王。使用著那不可思議的力量支配著一切。","ina":"Penguasa muda Meriguadian yang menggunakan kekuatan misterius untuk mengendalikan semuanya.","thai":"ราชาแห่งชุมชนแออัดมิลิกาเดีย มีเป้าหมายจะยึดครองทุกอย่างด้วยพลังอันลี้ลับ"}}
json
HUR vs THU Dream11 Prediction: Hobart Hurricanes will be squaring off against Sydney Thunder in the Eliminator of Big Bash League 2019-20. Both the sides won their last game to get the entry in the Eliminators. Hurricanes are in tremendous form with hat-trick of wins in their recent games. While Thunders are struggling with just 2 victories in their last five games. Now a loss in any of the match from now will end the hopes of the side. So both the sides will try to bring their best on the field to remain in hunt. HUR vs THU Match Details & Live Score: The Eliminator of BBL 2019-20 between Hobart Hurricanes and Sydney Thunder is scheduled to take place on 30th January at Belleville Oval, Hobart. The match will commence from 2:10 PM (IST) onwards with live telecast and live streaming on Sony Six and Sony LIV respectively. The live score can be viewed on official websites. HUR vs THU Squads: D’Arcy Short has remain as the most crucial player for Hurricanes for many years. The Southpaw is back in form after his return to the side and has smashed back to back fifties in recent two matches. Moreover, the recent fifer makes him the hot pick in any fantasy side. Short has smashed 320 runs in 8 matches till now at an average of 45.71. Matthew Wade has again started to play match winning knocks after a while. The wicket-keeper batsman smashed a brilliant ton in the do-or-die encounter which helped Hobart to the Eliminator. With 337 runs under his belt in 8 matches, Wade is the leading run-getter for the side. Alex Hales has been in sensational form in recent matches. The Englishman smashed 45, 63 and 85 runs in recent three matches and is the main reason for the qualifications of Thunder in the Eliminator alongside Sams. Once again all eyes will be on Hales to entertain and take team over the line in knockouts. With 445 runs to his name in 14 matches, the stalwart is the leading run-getter for the side. Daniel Sams has evolved as the most consistent bowler for the side this season. Sams has scalped 25 wickets till now which also makes him the leading wicket-taker for the side. Sams has an average of 14.80 and economy of 7.81 in 14 games. 3. Alex Hales (vc) 6. D’Arcy Short (c) HUR vs THU live match prediction will help you earn money easily. Pick your Dream Team players and play your favourite championships like Head to Head, Hot Contests, Mega Contests, Comeback Contests, Contest of Champions, Winner Takes All, etc.II, etc.
english
<reponame>BjornLuG/bjorn-lu { "name": "@bjornlu/rollup-plugin-markdown", "version": "0.0.1", "private": true, "author": "<NAME>", "license": "MIT", "type": "module", "exports": "./index.js", "dependencies": { "@bjornlu/markdown": "workspace:*" } }
json
#!/usr/bin/env python import logging logging.debug('this is deb') logging.info('this is inf') logging.warning('this is war') logging.error('this is err') logging.log(logging.INFO, 'this is inf too')
python
/* * IResourceHandler.java - part of the GATOR project * * Copyright (c) 2018 The Ohio State University * * This file is distributed under the terms described in LICENSE in the * root directory. */ package presto.android.resources; import java.io.InputStream; import java.util.Set; /** * Common interface for handlers working on Android resource XML files * * @author <NAME> * */ public interface IResourceHandler { /** * Called when the contents of an Android resource file shall be processed * @param fileName The name of the file in the APK being processed * @param fileNameFilter A list of names to be used for filtering the files * in the APK that actually get processed. * @param stream The stream through which the resource file can be accesses */ public void handleResourceFile(String fileName, Set<String> fileNameFilter, InputStream stream); }
java
HAPPY CHAITRA NAVRATRI IMAGES, SMS, WISHES QUOTES, STATUS, MESSAGES: The year’s much-anticipated festival is almost here. We are talking about the festival of nine nights. Chaitra Navratri is marked to celebrate the the nine incarnations of Goddess Durga. The last day of Chaitra Navratri is celebrated to commemorate Lord Rama’s birth. Chaitra Navratri will start on Wednesday, March 22 and will last until Thursday, March 30. Devotees observe fast during this time of the year. They also follow the sattvik diet, which excludes onion, garlic, eggs, meats, and alcohol. As we gear up for the country’s largest festival, we’ve compiled a list of wishes and images for you to share with your friends, family, and loved ones. 1. Happy Chaitra Navratri to you and your family. May Maa Durga bless you with goodness and prosperity. 2. Wishing you the energy of Maa Durga, the poise of Maa Saraswati; Wishing you a warm and blessed Navratri. 3. Wishing you the energy of Maa Durga, the poise of Maa Saraswati; Wishing you a warm and blessed Navratri. 4. The nine forms of Goddess Durga bring nine different strengths to the world. May you be blessed with all. 5. Dear Durga, give as much power as you have to all girls to protect themselves from the invisible rakshasas on earth. 6. Dear Durga, give as much power you have to all girls to protect themselves from the invisible rakshasas on earth. 7. Happy Chaitra Navratri. Let darkness pass and the road be paved with happiness and prosperity. 8. Devi-Mahatmayam has a special meaning for spirituality, With illumination, wisdom, strength - to freedom finally! 9. Celebrate Chaitra Navratri with devotion, prosperity and happiness. Let the divine power bless you with all that you strive for. 10. May Maa Durga bestow upon you and your family nine forms of blessings- Fame, Name, Wealth, Prosperity, Happiness, Education, Health, Power, and Commitment. Happy Navratri! 11. Happiness, peace, good health, wealth, prosperity and harmony – let Goddess Durga bring it all to your life. Happy Chaitra Navratri.
english
opinion/op-ed/the-uncharted- territory-of-outer-space/ article32449729.ece#:~:text= Space%20law%20is%20a% 20product,appropriation%20by% 20claims%20of%20sovereignty% E2%80%9D. - In the intro, mention the technology changes taking place in the outer space. - In the body mention the challenges-obsolescence of the multilateral framework, sharing responsibility with the non-state actors, role of military etc. At the national level, India needs legislation to coordinate between commercial, legal, technical and diplomatic level. - Conclude by mentioning how the technology developed in one domain help transform other domains and space technology cannot the the exception to it.
english
Actors Ryan Reynolds and Rob McElhenney marked yet another milestone in their Wrexham FC journey when the club beat Coventry City, a team three leagues ahead of them, in the FA Cup. This was the first time since the 1998-99 season that the club made it into the FA Cup 4th round. Wrexham stunned Coventry 4-3 in the third round of the FA Cup on Saturday. At one point they were leading 1-4 against a considerably stronger team to them but then had to endure a nervy last few minutes after Coventry managed to score twice despite a red card. The Wrexham story was one that was thought to be dead and buried until the Hollywood duo turned up in November 2020 to purchase the club. Wrexham, the third-oldest professional football club in England had seen a steady decline in their fortunes which saw them reach the National League – the fifth division of English football consisting of a bevy of semi-professional football clubs. Wrexham, once great architects of the FA Cup success story, beat then Premier League champions Arsenal in 1992 in the third round of the tournament. After the ownership changed officially in 2021, Wrexham are currently in the second spot in the National League – the best team of the league gains automatic promotion to the English Football League Two, while another team gains promotion through the playoff system. “I’m completely and totally speechless. What a club. What a town. What a win. @Wrexham_AFC forever”, tweeted Ryan Reynolds after the win. 4000 away supporters followed the club to support them against Coventry. The club was bought for a grand total of £2 million and the eventual goal of Ryan Reynolds and Rob McElhenney is to use their fame and stardom to market the club digitally as it grows through the ranks of English football. They intend to do so with a documentary released on Disney+ called ‘Welcome to Wrexham’. After the release of the documentary, Wrexham’s organic traffic on their website increased by 121% in the year of 2021 and they received a 198% increase in demographic from North America between 2021 and 2022. The series intended to create a market that still remains largely untapped for football and can have the same effect on the sport as ‘Drive to Survive’ has had for F1. A rags-to-riches run in the FA Cup is exactly the kind of good television that the club owner’s envisaged could lead to more seasons of the show and continue to raise the popularity of a unique experiment in football.
english
import {IRepo} from '../IRepo' import {UserDocument} from '../../models' export interface IUsersRepo extends IRepo<UserDocument> { getByUsername(username: string): Promise<UserDocument> getByIdForRefreshToken(id: string): Promise<UserDocument> }
typescript
The State government has designed Disha App and Disha Bill for the safety of women, and has introduced many schemes for their welfare, said Home Minister Mekathoti Sucharita. She participated in the National Women’s Parliament, organised by Andhra Pradesh Women’s Commission, in association with the National Women’s Commission, at Acharya Nagarjuna University (ANU) in Guntur district on Friday. Mahila Commission chairperson Vasireddy Padma presided over the programme. MLA Vundavalli Sridevi, MLCs Pothula Sunitha and Kalpalatha, ANU Vice-Chancellor Rajashekar and others participated. Students, NGOs and representatives of various organisations performed cultural shows on women empowerment, safety of girls and women and created awareness on laws and Acts, related to safety of women. The Home Minister said Chief Minister Y. S. Jagan Mohan Reddy was giving priority to women safety. Many schemes and programmes were introduced for empowering women, even during the pandemic, Ms. Sucharita said. Ms. Padma gave a presentation on the activities of AP Women’s Commission. She said that Andhra Pradesh implemented 50% for women in filling nominated posts and passed AP Disha Bill. The theme of the National Women’s Parliament is to enlighten the women on laws and Acts. Safety of women and girls, enhancement of age for marriage, harassment at workplace, Domestic Violence Act, POCSO Act, women empowerment, Disha Bill, Anti-Human Trafficking, Disha App and other topics were discussed.
english
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Sprint Challenge - Contact</title> <link href="https://fonts.googleapis.com/css?family=Roboto|Rubik" rel="stylesheet"> <link rel="stylesheet" href="css/index.css"> </head> <body> <div class="container"> <header> <nav class="nav-container"> <div class="nav-logo"> <img class="big-screen-only" src="img/lambda-black.png" alt="Lambda Logo"> <img class="media-only" src="img/lambda-logo.png" alt="Lambda Logo"> </div> <div class="nav-navigation"> <a href="index.html">Home</a> <a href="about.html">About</a> <a href="products.html">Products</a> <a href="#">Blog</a> <a href="contact.html">Contact</a> </div> </nav> <img class="img-full-width" src="img/jumbo-contact.jpg"> </header> <div class="row-text center"> <h2 class="form-heading">Contact Us</h2> <p>We are always thrilled to hear from you. Our obust synopsis for high level overviews. Iterative approaches to corporate strategy foster collaborative thinking to further the overall value proposition. Organically grow the holistic world view of disruptive innovation via workplace diversity and empowerment. </p> </div> <form class="form-container"> <div class="form-row"> <label for="name">Name:</label> <input type="text" placeholder="name" id="name" name="user_name"> </div> <div class="form-row"> <label for="email">Email:</label> <input type="email" placeholder="email" id="email" name="user_email"> </div> <div class="form-row"> <label for="msg">Message:</label> <textarea id="msg" name="user_message"></textarea> </div> <div class="form-row"> <button class>Submit</button> </div> </form>
html
<filename>pkg/operator/k8sutil/pod_test.go /* Copyright 2016 The Rook Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package k8sutil import ( "github.com/stretchr/testify/assert" v1 "k8s.io/api/core/v1" "testing" ) func TestGetContainerInPod(t *testing.T) { expectedName := "mycontainer" imageName := "myimage" // no container fails _, err := GetMatchingContainer([]v1.Container{}, expectedName) assert.NotNil(t, err) // one container will allow any name container, err := GetMatchingContainer([]v1.Container{{Name: "foo", Image: imageName}}, expectedName) assert.Nil(t, err) assert.Equal(t, imageName, container.Image) // multiple container fails if we don't find the correct name container, err = GetMatchingContainer( []v1.Container{{Name: "foo", Image: imageName}, {Name: "bar", Image: imageName}}, expectedName) assert.NotNil(t, err) // multiple container succeeds if we find the correct name container, err = GetMatchingContainer( []v1.Container{{Name: "foo", Image: imageName}, {Name: expectedName, Image: imageName}}, expectedName) assert.Nil(t, err) assert.Equal(t, imageName, container.Image) }
go
<filename>CSZYJKXT/scripts/widgets/rightManager/config/featuresListConfig.json [ { "layerID":1, "layerName":"地名点搜索", "layerURL":"http://192.168.127.12:8399/arcgis/rest/services/CQ_ZCQ_POI/MapServer/0", "outFields": ["NAME", "ADDRESS", "SSQX"], "returnObjFields":["NAME", "ADDRESS", "SSQX"], "displayFiledName":["名称","地址","所属区县"], "queryFilter":"", "searchType":"", "where":"", "pupopTpl":"<div><div>名称:${NAME}&nbsp;</div><div>地址:${ADDRESS}&nbsp;</div><div>所属区县:${SSQX}&nbsp;</div>" }, { "layerID":2, "layerName":"区县界_面", "layerURL":"http://www.digitalcq.com/RemoteRest/services/CQ_XZQH/MapServer/1", "outFields": ["MC", "SJLY", "QXDM"], "returnObjFields":["MC", "SJLY", "QXDM"], "displayFiledName":["名称","数据来源","区县代码"] } ]
json
<filename>src/tfwebserver/static/blog/client/legacy/client.44444e83.js<gh_stars>0 import"./client.b4a6b013.js";
javascript
import request from 'supertest'; import { app } from '../../app'; import mongoose from 'mongoose'; import { natsWrapper } from '../../nats-wrapper'; import { Ticket } from '../../models/ticket'; it('returns a 404 if the ticket doesnt exist', async () => { await request(app) .put('/api/tickets/asdasdasdasd') .set('Cookie', global.signin()) .send({ title: 'title', price: 10, }) .expect(404); }); it('returns a 401 if the user is not logged in', async () => { await request(app) .put('/api/tickets/asdasdasdasd') .send({ title: 'title', price: 10, }) .expect(401); }); it('returns a 401 if the user is not the owner of the ticket', async () => { const res = await request(app) .post('/api/tickets') .set('Cookie', global.signin()) .send({ title: 'title', price: 10, }); await request(app) .put(`/api/tickets/${res.body.id}`) .set('Cookie', global.signin()) .send({ title: 'another', price: 11, }) .expect(401); }); it('returns a 400 if the user provides an invalid title or price', async () => { const cookie = global.signin(); const res = await request(app) .post('/api/tickets') .set('Cookie', cookie) .send({ title: 'title', price: 10, }); await request(app) .put(`/api/tickets/${res.body.id}`) .set('Cookie', cookie) .send({ title: '', price: 11, }) .expect(400); await request(app) .put(`/api/tickets/${res.body.id}`) .set('Cookie', cookie) .send({ title: 'newtitle', price: -11, }) .expect(400); }); it('it updates the ticket and returns a 200', async () => { const cookie = global.signin(); const res = await request(app) .post('/api/tickets') .set('Cookie', cookie) .send({ title: 'title', price: 10, }); await request(app) .put(`/api/tickets/${res.body.id}`) .set('Cookie', cookie) .send({ title: 'newtitle', price: 11, }) .expect(200); }); it('publishes an event', async () => { const cookie = global.signin(); const res = await request(app) .post('/api/tickets') .set('Cookie', cookie) .send({ title: 'title', price: 10, }); await request(app) .put(`/api/tickets/${res.body.id}`) .set('Cookie', cookie) .send({ title: 'newtitle', price: 11, }) .expect(200); expect(natsWrapper.client.publish).toHaveBeenCalled(); }); it('rejects updates if the ticket is reserved', async () => { const cookie = global.signin(); const res = await request(app) .post('/api/tickets') .set('Cookie', cookie) .send({ title: 'title', price: 10, }); const ticket = await Ticket.findById(res.body.id); ticket.set({ orderId: new mongoose.Types.ObjectId().toHexString() }); await ticket.save() await request(app) .put(`/api/tickets/${res.body.id}`) .set('Cookie', cookie) .send({ title: 'newtitle', price: 11, }) .expect(400); });
typescript
Apple Inc. ’s much-anticipated update to its line-up of iPhones may leave the impression that the technology pioneer’s focus has shifted to making more affordable products than engineering innovative breakthroughs – cutting price to lure the masses. This is the time of year that Apple Inc. typically shows off the latest generation of its iPhone,a device that has reshaped the way people use computers since its debut in 2007. Apple Inc. took the wraps off the iPhone 5,the current model,last September. The company has never waited longer than a year to update the iPhone,which has generated $88 billion in revenue during the past year. In keeping with its tight-lipped ways,Apple Inc. hasn’t disclosed what’s on the agenda for the coming-out party scheduled to begin at 10 am PDT (1700 GMT) Tuesday at its Cupertino,California,headquarters. Apple’s timetable for rolling out products has vexed many investors who have watched the company’s growth slow and profit margins decrease. Meanwhile,a bevy of smartphone makers,most of whom rely on Google Inc. ’s free Android software,release wave after wave of devices that cost less than the iPhone. Those concerns are reflected in Apple’s stock price,which has declined nearly 30 percent since peaking at $705. 07 at about the same time the iPhone 5 went on sale last year. The Standard & Poor’s 500 index has risen about 14 percent during the same stretch. Even though Apple’s market value of roughly $460 billion is more than any other company in the world,the deterioration in its stock price is escalating the pressure on CEO Tim Cook to prove he’s the right leader to carry on the legacy of co-founder Steve Jobs. Since Cook became CEO two years ago,Apple has only pushed out new versions of products developed under Jobs,raising questions about whether the company’s technological vision has become blurred under the new regime. In public appearances,Cook has repeatedly said Apple is working on some exciting breakthroughs,but he hasn’t revealed details. The company is believed to be working on a so-called ‘smartwatch” that would work like a wrist-bound smartphone. Samsung Electronics,one of Apple’s biggest rivals,introduced its own $300 smartwatch called Gear last week,as did Sony and Qualcomm Inc. It’s unclear whether a smartwatch will be on Apple’s Tuesday agenda. The company isn’t expected to reveal the latest model of its tablet computer,the iPad,until later in the fall. Apple introduced a smaller,less expensive version of the iPad last year in response to the success of more compact and cheaper tablets running on the Android system. This year’s refresh of the iPhone line may address the growing popularity of cheaper Android phones. Based on leaks from suppliers,it appears Apple is poised to release a less elaborate and less expensive version of the iPhone in an attempt to appeal to consumers too frugal or too poor to pay for the high-end model that sells for more than $600 without a wireless contract. If reports published in technology blogs and newspapers pan out,the stripped-down iPhone will be called the ”5C” and be housed in plastic casing that will be offered in a variety of colors instead of an aluminum casing. If it introduces a cheaper iPhone,Apple might end production of the iPhone 4 and iPhone 4S that were released in 2010 and 2011,respectively. Those models have been sold at a discount to the iPhone 5,a factor that has lowered the average price Apple has fetched for its phones. A new version of the high-end iPhone also is expected to be revealed Tuesday. The top-of-the-line model,expected to be dubbed the ‘iPhone 5S,’ will be the first to be sold with Apple’s revamped mobile software,iOS 7,already installed. The new system,which will automatically update apps installed on the device,can be downloaded on the iPhone 4 and later models,as well as on the tablets beginning with the iPad 2. The redesigned software announced in June relies on simple graphical elements in neon and pastel colors. Gone is the effort to make the icons look like three-dimensional,embossed objects _ a tactic known as “skeuomorphism,” that was favored by Jobs. This will be the second iPhone model that Apple has released since Jobs’ death in October 2011. Besides running on iOS 7,the upgraded iPhone may include technology that enables its owner to unlock the device with a fingerprint instead of a four-digit code. There is also speculation that the high-end iPhone will be sold in a golden color to supplement the product line’s more prosaic choice of black or white. One of the big questions is whether Apple is going to push the envelope on the iPhone or do they feel they have pretty much gone as far as they can go on the smartphone side of things? ” said Gartner Inc. analyst Carolina Milanesi. If there is a gold iPhone,it would be the latest sign of Apple’s intensifying focus on China _ a market where hundreds of millions of Internet-connected devices are expected to eventually to be sold as the standard of living improves in the world’s most populous country. The color gold is considered to be a sign of good fortune in China. A less expensive iPhone would also help Apple boost sales in China and other less-developed countries where people don’t have as much disposable income as in the U. S. and Europe. In an unusual move,Apple has invited media to another event in Beijing that will be held a few hours after the gathering at its headquarters is scheduled to adjourn. The Beijing event has fed speculation that Apple has lined up a deal to sell its new iPhones through China Mobile,the country’s largest wireless carrier. It is an alliance that Cook has been openly courting. The Wall Street Journal last week cited anonymous people who said Apple is preparing to ship iPhones to China Mobile. Although Apple still touts the iPhone as the best of its breed,the device has been losing some of its panache among consumers. In the three months ending in June,Apple sold 31 million iPhones worldwide compared to 187 million Android phones made by the likes of Samsung,HTC and LG Electronics,according to the research firm International Data Corp. That left the iPhone with 13 percent of the global market,down from 17 percent at the same time last year. Android phones held a 79 percent share,up from 69 percent last year,according to IDC.
english
The era gone by saw many A-listers turning producers after their films achieved stupendous success at the box office. But now, the younger brigade is way too quick in taking decisions. Actors like Ranbir Kapoor and Anushka Sharma have already entered the film production arena and the latest entrant is Sonakshi Sinha. The details of their upcoming films are still being kept under wraps. Sonakshi Sinha, for now, has too many projects in her platter. While she will soon be starting up with the promotions of Action Jackson, she has also been shooting for films like Tevar and her south debut Lingaa.
english
Aggregate CapEx has risen to Rs 6. 3 lakh cr in FY22 vs Rs 5. 5 lakh cr in FY21. Now that even the astute investors have started making new/increasing stakes in the soft CapEx theme which is driving the capital-intensive sectors. Big investors have raised their stakes for the June quarter. Representative Image. New Delhi: Aggregate CapEx has risen to Rs 6. 3 lakh cr in FY22 vs Rs 5. 5 lakh cr in FY21. Now that even the astute investors have started making new/increasing stakes in the soft CapEx theme which is driving the capital-intensive sectors. Big investors have raised their stakes for the June quarter. Ace investor, Vijay Kedia has increased his stake from 1. 19% to 1. 85% in Elecon Engineering. He has been adding close to 8 lakh shares in the company over the last two quarters. Sunil Singhania of Abakkus Asset Management saw a fresh buy/holding above 1% at a 1. 3% stake in, for Paras Defense while increased stakes from 2. 7% to 2. 8% in Technocraft. Ashish Kacholia also raised stakes in Gravita India and United Drilling Tools. Fresh investment in National Oxygen was reported in Dolly Khanna 's portfolio. The shareholding pattern in Precision Camshafts also shows investor Ajay Upadhyaya having a 1. 88% stake in the company for the first time in the June quarter. Key positive triggers for the industrial segment are the infrastructure asset creation cycle being created, automation, increasing private and public CapEx, deleveraged balance sheet, strong export incentives and scaling-up in manufacturing exports. Industrials stocks are in focus with stocks such as Siemens India , and ABB India focusing on automation and shift to new energy. Brokerages like HSBC and Macquarie have also been bullish on the industrials. BSE Capital Goods has risen by 9 percent this month and over 19 percent over the last 12 months. Stocks such as ABB India, Siemens India, L&T and Honeywell automation have also risen between 10-14 percent in July. Even FII 's have been increasing stake in both ABB India and Siemens India over the last two years. Kotak Securities have also picked Cummins India as their top pick for the industrials segment, which has delivered 25 percent plus return on capital invested-first time in seven years. As per a note by ICRA, the capital goods orders are at a six-year high.
english
Samsung’s mobile division has been going through a rough patch for the past few months now. Earlier this month, we saw Samsung reporting profits below estimate owing to slumping smartphone sales. With access to the absolute figures, a report claims that Samsung sold 10. 2 million units of the Galaxy S9 smartphone in Q1 2018, and only about 9 million units in all of Q2. The company has also reportedly brought forward the Galaxy Note 9 event in order to compensate for this drop. Separately, the South Korean phone maker is said to have plans to merge the Galaxy S ‘Plus’ handset lineup with its Galaxy Note series. As per a report by Korean publication The Bell, the Galaxy S9 range sold about 9 million units in Q2 2018, compared to 18. 7 million units of the Galaxy S8 sold in Q2 2017. This is Samsung’s worst performance in years, as 2015 saw 19. 9 million units of the Galaxy S7 being shipped in Q2 and 2016 witnessed 15. 6 million shipments of the Galaxy S7 in the same quarter. First quarter performance was, however, on par with the Galaxy S7, launched around the same time, as the Galaxy S9, in 2016. Overall sales of the Galaxy S9 in the first half of 2018, recorded at 19. 2 million, were down 9. 4 percent from the 21. 2 million units that the Galaxy S8 sold in the first half of 2017. Ever since the launch of the Galaxy S7, H1 sales have continued to drop for the second consecutive year. In a separate report, The Bell claimed that Samsung’s mobile division has been considering unifying the ‘Plus’ variant in the flagship Galaxy S range with the Galaxy Note lineup. This development is reported to take place soon after the Galaxy S10 launch, making the Galaxy S10+ the last one in the category. Reasoning for this merger would be the overlapping concepts of both smartphones series in terms of what they offer. Removing the S Pen from the Galaxy Note essentially leaves us with just a similarly-sized Galaxy S Plus smartphone, with more or less the same internals. For instance, the Galaxy S9+, launched earlier this year, bears a 6. 22-inch panel while the Galaxy Note 8 has a slightly bigger 6. 3-inch display. Following on that, the Galaxy Note 9 is expected to bear a 6. 38-inch display, while next year’s Galaxy S10+ might get a 6. 4-inch one.
english
html { overflow-y: auto !important; } body { height: 100%; } #ComplexTableField_Popup_DetailForm input.loading { background: white url(../images/network-save.gif) left center no-repeat; padding-left: 16px; } .PageControls { padding: 5px; width: 100%; } .PageControls * { vertical-align: middle; } .PageControls .Left { width: 33%; } .PageControls .Count { width: 33%; text-align: center; } .PageControls .Right { width: 33%; text-align: right; } .ComplexTableField_Popup td.hidden { display: none; } .ComplexTableField_Popup th.HiddenField { display: none; } .ComplexTableField_Popup span.right { float: right; clear: none; } .ComplexTableField_Popup span.left { float: left; clear: none; } .ComplexTableField_Popup form p.checkbox input { margin: 0pt 1px; } .ComplexTableField_Popup form ul.optionset { margin: 0; padding: 0; } .ComplexTableField_Popup form ul.optionset li { margin: 4px 0; } .ComplexTableField_Popup form div.Actions input { font-size: 11px; margin-top: 10px; } /* Pagination */ #ComplexTableField_Pagination, #ComplexTableField_Pagination * { vertical-align: middle; } #ComplexTableField_Pagination { margin-top: 10px; margin-left: auto; margin-right: auto; font-size: 11px; } #ComplexTableField_Pagination a { /*font-size: 1.2em;*/ font-size: 13px; font-weight: bold; text-decoration: none; width: 1px; height: 1px; margin: 1px; } #ComplexTableField_Pagination a:hover { background: none; } #ComplexTableField_Pagination span { display: inline; font-weight: bold; font-size: 15px; color: #f00; } #ComplexTableField_Pagination div { display: inline; } #ComplexTableField_Pagination_Previous { padding-right: 10px; } #ComplexTableField_Pagination_Next { padding-left: 10px; } #ComplexTableField_Pagination_Next img, #ComplexTableField_Pagination_Previous img { margin: 0 3px 2px; }
css
*{margin:0;padding:0;} .update_supplier,.update_other{ user-select:none; cursor:pointer; margin:0px auto; height:35px; text-align:center; line-height:35px; color:white; border-radius: 3px; width:10%; font-size:14px; } .update_supplier,.update_other{ background:rgba(49, 194, 124, 1); } .submit_other,.submit_supplier{ user-select:none; cursor:pointer; /*margin:0px auto;*/ height:35px; text-align:center; line-height:35px; color:white; border-radius: 3px; width:15%; font-size:14px; } .submit_other,.submit_supplier{ background:rgba(62, 155, 234, 1); }
css
The makers of Prabhas’s Radhe Shyam have unveiled a surprise poster today, wishing him an advanced happy birthday. “The BIG moment has arrived! ! 🔥🔥 Here’s introducing #Prabhas as #Vikramaditya from #RadheShyam! #RadheShyamSurprise #HappyBirthdayPrabhas,” read the announcement. Prabhas looks uber cool in the poster as he seen alongside a few vintage cars. He dons a black trouser and shiny blue blazer. The poster has a charming vibe to it, all thanks to Prabhas who carries off the classy look with a whole lot of grace. This should come as a sweet surprise to Prabhas’s fans who are eagerly waiting for the motion poster of the film which will be out October 23rd which marks Prabhas’s birthday. Team Radhe Shyam is presently in Turin, Italy, shooting for a key schedule. In other news, Prabhas has announced a donation of Rs 1. 5 crore towards Telangana flood relief.
english
<filename>BasicOperations/09_NumPy/02_Numpy_01_where.py import numpy as np x = np.arange(9.).reshape(3, 3) row,col = np.where( x > 5 ) #mid 返回两以为数组,对应序数组成坐标对,此坐标对指向的数为满足条件的数 a1 = np.where(x>1) b = x[np.where( x > 3.0 )] #mid result is 1D. c = np.where(x < 5, x, -1) #mid broadcasting. d = 8
python
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ // Do not edit this file. It is machine generated. { "breakpoints": "ブレークポイント", "breakpointsAriaTreeLabel": "デバッグ ブレークポイント", "breakpointsSection": "ブレークポイント セクション", "callStack": "コール スタック", "callStackAriaLabel": "コール スタックのデバッグ", "callstackSection": "コール スタック セクション", "debugStopped": "{0} で一時停止", "expressionsSection": "式セクション", "variables": "変数", "variablesAriaTreeLabel": "変数のデバッグ", "variablesSection": "変数セクション", "watch": "ウォッチ式", "watchAriaTreeLabel": "ウォッチ式のデバッグ" }
json
The two titans of the Indian cricket team, Virat Kohli & Rohit Sharma are gearing up for the IND vs SL match in the ODI World Cup 2023. The star batters have always fancied playing against Sri Lanka and have raked bucketloads of runs against their neighbors. Virat Kohli & Rohit Sharma Top 3 partnerships in IND vs SL matches: - 219 runs at Colombo in 2017: After electing to bat first in the 4th ODI at the Premadasa Stadium, Kohli and Rohit piled up a humongous 2019 run stand to take India to 375 runs. Both batters ended their innings with a strike rate of over 110, taking India to 225 runs in just 30 overs. Their innings helped India get a 168-run win as they whitewashed the hosts 5-0. - 202 runs at Eden Gardens in 2014: This match is remembered for Rohit Sharma’s record-breaking 264 runs but amidst that, the two stitched a beautiful 202-run partnership to take India to 404. While Kohli only made 66 runs, his innings helped Rohit reach the highest individual score by a batter in ODI history. - 154 runs at Bulawayo in 2010: Their first and arguably their best stand against Sri Lanka in ODIs. Both players were still young in their careers and were out to make their mark in international cricket. After losing their openers for 47, Rohit and Virat showed their might, chasing down 243 runs with ease. India eventually chased the total with 39 balls to spare and 7 wickets in hand. Also Read:
english
<reponame>bydan/pre /* *AVISO LEGAL © Copyright *Este programa esta protegido por la ley de derechos de autor. *La reproduccion o distribucion ilicita de este programa o de cualquiera de *sus partes esta penado por la ley con severas sanciones civiles y penales, *y seran objeto de todas las sanciones legales que correspondan. *Su contenido no puede copiarse para fines comerciales o de otras, *ni puede mostrarse, incluso en una version modificada, en otros sitios Web. Solo esta permitido colocar hipervinculos al sitio web. */ package com.bydan.erp.cartera.business.entity; import java.io.Serializable; import java.io.File; import java.util.Calendar; import java.sql.Timestamp; import java.util.Set; import java.util.HashSet; import java.util.List; import java.util.ArrayList; import java.util.Map; import java.util.HashMap; import java.util.Date; import org.hibernate.validator.*; import com.bydan.framework.erp.business.entity.*; import com.bydan.framework.erp.business.entity.DatoGeneral; import com.bydan.framework.erp.business.dataaccess.ConstantesSql; //import com.bydan.framework.erp.business.entity.Mensajes; import com.bydan.framework.erp.util.Constantes; import com.bydan.framework.erp.util.ConstantesValidacion; //import com.bydan.erp.cartera.util.ParametroFuncionalConstantesFunciones; import com.bydan.erp.cartera.util.*; @SuppressWarnings("unused") public class ParametroFuncional extends ParametroFuncionalAdditional implements Serializable ,Cloneable {//ParametroFuncionalAdditional,GeneralEntity private static final long serialVersionUID=1L; public Object clone() { return super.clone(); } protected Long id; protected boolean isNew; protected boolean isChanged; protected boolean isDeleted; protected boolean isSelected; protected Date versionRow; protected String sType; public Long getId() { return this.id; } public void setId(Long newId) { if(this.id!=newId) { this.isChanged=true; } this.id=newId; super.setId(newId); } public Date getVersionRow(){ //ESTO SIEMPRE SE EJECUTA CUANDO SE CONSUME EJB return this.versionRow; } public void setVersionRow(Date newVersionRow){ if(this.versionRow!=newVersionRow){ //LE COMENTO PORQUE CUANDO HAGO GET SIEMPRE POR ESTO LE PONE isChanged=true //this.isChanged=true; } this.versionRow=newVersionRow; super.setVersionRow(newVersionRow); } public boolean getIsNew() { return this.isNew; } public void setIsNew(boolean newIsNew) { this.isNew=newIsNew; super.setIsNew(newIsNew); } public boolean getIsChanged() { return this.isChanged; } public void setIsChanged(boolean newIsChanged) { this.isChanged=newIsChanged; super.setIsChanged(newIsChanged); } public boolean getIsDeleted() { return this.isDeleted; } public void setIsDeleted(boolean newIsDeleted) { this.isDeleted=newIsDeleted; super.setIsDeleted(newIsDeleted); } public boolean getIsSelected() { return this.isSelected; } public void setIsSelected(boolean newIsSelected) { this.isSelected=newIsSelected; super.setIsSelected(newIsSelected); } public String getsType() { return this.sType; } public void setsType(String sType) { this.sType=sType; super.setsType(sType); } private ParametroFuncional parametrofuncionalOriginal; private Map<String, Object> mapParametroFuncional; public Map<String, Object> getMapParametroFuncional() { return mapParametroFuncional; } public void setMapParametroFuncional(Map<String, Object> mapParametroFuncional) { this.mapParametroFuncional = mapParametroFuncional; } public void inicializarMapParametroFuncional() { this.mapParametroFuncional = new HashMap<String,Object>(); } public void setMapParametroFuncionalValue(String sKey,Object oValue) { this.mapParametroFuncional.put(sKey, oValue); } public Object getMapParametroFuncionalValue(String sKey) { return this.mapParametroFuncional.get(sKey); } @NotNull(message=ConstantesValidacion.SVALIDACIONNOTNULL) private Boolean con_copia_clientes; @NotNull(message=ConstantesValidacion.SVALIDACIONNOTNULL) private Boolean con_copia_proveedor; @NotNull(message=ConstantesValidacion.SVALIDACIONNOTNULL) private Boolean con_proveedor_cliente; public ParametroFuncional () throws Exception { super(); this.id=0L; this.versionRow=new java.sql.Timestamp(Calendar.getInstance().getTime().getTime());//new Date(); this.isNew=true; this.isChanged=false; this.isDeleted=false; this.sType="NONE"; this.parametrofuncionalOriginal=this; this.con_copia_clientes=false; this.con_copia_proveedor=false; this.con_proveedor_cliente=false; /*PARA REPORTES*/ this.inicializarVariablesParaReporte(); /*PARA REPORTES*/ } //PARA REPORTES public ParametroFuncional (Long id,Date versionRow,Boolean con_copia_clientes,Boolean con_copia_proveedor,Boolean con_proveedor_cliente) throws Exception { super(); this.id=id; this.versionRow=versionRow; this.isNew=true; this.isChanged=false; this.isDeleted=false; this.parametrofuncionalOriginal=this; this.con_copia_clientes=con_copia_clientes; this.con_copia_proveedor=con_copia_proveedor; this.con_proveedor_cliente=con_proveedor_cliente; /*PARA REPORTES*/ this.inicializarVariablesParaReporte(); /*PARA REPORTES*/ } //PARA REPORTES public ParametroFuncional (Boolean con_copia_clientes,Boolean con_copia_proveedor,Boolean con_proveedor_cliente) throws Exception { super(); this.id=0L; this.versionRow=new Date(); this.isNew=true; this.isChanged=false; this.isDeleted=false; this.parametrofuncionalOriginal=this; this.con_copia_clientes=con_copia_clientes; this.con_copia_proveedor=con_copia_proveedor; this.con_proveedor_cliente=con_proveedor_cliente; /*PARA REPORTES*/ this.inicializarVariablesParaReporte(); /*PARA REPORTES*/ } public boolean equals(Object object) { boolean equal=false; ParametroFuncional parametrofuncionalLocal=null; if(object!=null) { parametrofuncionalLocal=(ParametroFuncional)object; if(parametrofuncionalLocal!=null) { if(this.getId()!=null && parametrofuncionalLocal.getId()!=null) { if(this.getId().equals(parametrofuncionalLocal.getId())) { equal=true; } } } } return equal; } public String toString() { String sDetalle=""; if(!ParametroFuncionalConstantesFunciones.CON_DESCRIPCION_DETALLADO) { sDetalle=ParametroFuncionalConstantesFunciones.getParametroFuncionalDescripcion(this); } else { sDetalle=ParametroFuncionalConstantesFunciones.getParametroFuncionalDescripcionDetallado(this); } return sDetalle; } public ParametroFuncional getParametroFuncionalOriginal() { return this.parametrofuncionalOriginal; } public void setParametroFuncionalOriginal(ParametroFuncional parametrofuncional) { try { this.parametrofuncionalOriginal=parametrofuncional; } catch(Exception e) { ; } } protected ParametroFuncionalAdditional parametrofuncionalAdditional=null; public ParametroFuncionalAdditional getParametroFuncionalAdditional() { return this.parametrofuncionalAdditional; } public void setParametroFuncionalAdditional(ParametroFuncionalAdditional parametrofuncionalAdditional) { try { this.parametrofuncionalAdditional=parametrofuncionalAdditional; } catch(Exception e) { ; } } public Boolean getcon_copia_clientes() { return this.con_copia_clientes; } public Boolean getcon_copia_proveedor() { return this.con_copia_proveedor; } public Boolean getcon_proveedor_cliente() { return this.con_proveedor_cliente; } public void setcon_copia_clientes(Boolean newcon_copia_clientes)throws Exception { try { if(this.con_copia_clientes!=newcon_copia_clientes) { if(newcon_copia_clientes==null) { //newcon_copia_clientes=false; if(Constantes.ISDEVELOPING) { System.out.println("ParametroFuncional:Valor nulo no permitido en columna con_copia_clientes"); } } this.con_copia_clientes=newcon_copia_clientes; this.setIsChanged(true); } } catch(Exception e) { throw e; } } public void setcon_copia_proveedor(Boolean newcon_copia_proveedor)throws Exception { try { if(this.con_copia_proveedor!=newcon_copia_proveedor) { if(newcon_copia_proveedor==null) { //newcon_copia_proveedor=false; if(Constantes.ISDEVELOPING) { System.out.println("ParametroFuncional:Valor nulo no permitido en columna con_copia_proveedor"); } } this.con_copia_proveedor=newcon_copia_proveedor; this.setIsChanged(true); } } catch(Exception e) { throw e; } } public void setcon_proveedor_cliente(Boolean newcon_proveedor_cliente)throws Exception { try { if(this.con_proveedor_cliente!=newcon_proveedor_cliente) { if(newcon_proveedor_cliente==null) { //newcon_proveedor_cliente=false; if(Constantes.ISDEVELOPING) { System.out.println("ParametroFuncional:Valor nulo no permitido en columna con_proveedor_cliente"); } } this.con_proveedor_cliente=newcon_proveedor_cliente; this.setIsChanged(true); } } catch(Exception e) { throw e; } } /*PARA REPORTES*/ String con_copia_clientes_descripcion="";String con_copia_proveedor_descripcion="";String con_proveedor_cliente_descripcion=""; public String getcon_copia_clientes_descripcion() { return con_copia_clientes_descripcion; } public String getcon_copia_proveedor_descripcion() { return con_copia_proveedor_descripcion; } public String getcon_proveedor_cliente_descripcion() { return con_proveedor_cliente_descripcion; } public void setcon_copia_clientes_descripcion(String newcon_copia_clientes_descripcion)throws Exception { try { this.con_copia_clientes_descripcion=newcon_copia_clientes_descripcion; } catch(Exception ex) { throw ex; } } public void setcon_copia_proveedor_descripcion(String newcon_copia_proveedor_descripcion)throws Exception { try { this.con_copia_proveedor_descripcion=newcon_copia_proveedor_descripcion; } catch(Exception ex) { throw ex; } } public void setcon_proveedor_cliente_descripcion(String newcon_proveedor_cliente_descripcion)throws Exception { try { this.con_proveedor_cliente_descripcion=newcon_proveedor_cliente_descripcion; } catch(Exception ex) { throw ex; } } public void inicializarVariablesParaReporte() { this.con_copia_clientes_descripcion="";this.con_copia_proveedor_descripcion="";this.con_proveedor_cliente_descripcion=""; } /*PARA REPORTES FIN*/ }
java
“Bailey Trail” trek traces the historic route taken by Lt. Col. F M Bailey and Capt. H T Morshed, British officers who were commissioned to survey the lands between Arunachal Pradesh and Tibet during 1911-12. The trek was initially an ancient trade route that connected Burma, India and Tibet. In 1962 the Chinese army used this route to strike deep into Arunachal Pradesh. The ‘Bailey Trail’ as it is known now, crosses through some pristine remote forests of the Eastern Himalayas, where pine, oak and rhododendrons grow aplenty. Throughout the trek, the presence of breathtaking landscapes will overwhelm you, and at times, you’ll be able to see the majestic peaks of Gorichen and Kangto, two of northeastern India’s highest peaks. The highest point of this trek will be Sela Pass at a height of 4550 m. Entirely, you’ll be crossing high mountain passes, glacial rivers, crystal clear lakes, villages of the Monpa Tribe, and will be staying at campsites that will awe you. And as a bonus, you’ll be visiting the Buddhist hill station of Tawang where the second largest Buddhist monastery of Asia is magnificently located. No details found.
english
<reponame>GraphMIC/GraphMIC #include "gmLogicItkBinaryFillholeImageFilter.hpp" namespace gm { namespace Logic { namespace Itk { auto BinaryFillholeImageFilter::Register = Logic::Register<BinaryFillholeImageFilter>("itk", "BinaryFillholeImageFilter", "http://www.itk.org/Doxygen/html/classitk_1_1BinaryFillholeImageFilter.html"); } } }
cpp
#include "hikcontroller.h" #ifdef WINDOWS #include <Windows.h> #include <BaseTsd.h> #include <WinNT.h> #endif #include "HCNetSDK.h" #include "glog/logging.h" #include<string> #include <mutex> //#include "camara.h" extern "C" EXPORT CamaraController* GetController() { LOG(INFO) << "Create HikDeviceProcesser"; NET_DVR_Init(); return new HikCamaraController; } HikCamaraController::HikCamaraController(): login_(false), sdkusers_() { } HikCamaraController::~HikCamaraController() { } bool HikCamaraController::Login(std::string id, std::string ip, int port, std::string name, std::string pwd) { NET_DVR_USER_LOGIN_INFO struLoginInfo = { 0 }; struLoginInfo.bUseAsynLogin = false; memcpy(struLoginInfo.sDeviceAddress, ip.c_str(), NET_DVR_DEV_ADDRESS_MAX_LEN); memcpy(struLoginInfo.sUserName, name.c_str(), NAME_LEN); memcpy(struLoginInfo.sPassword, pwd.c_str(), PASSWD_LEN); struLoginInfo.wPort = port; NET_DVR_DEVICEINFO_V40 struDeviceInfoV40 = { 0 }; LONG lUserID = NET_DVR_Login_V40(&struLoginInfo, &struDeviceInfoV40); if (lUserID < 0) { LOG(ERROR) << "ע���豸ʧ��:\r\n" << "�豸IP:[" << ip << "]\r\n" << "�豸�˿�:[" << port << "]\r\n" << "�û���:[" << name << "]\r\n" << "����:[" << pwd << "]\r\n" << "������: " << NET_DVR_GetLastError(); return false; } LOG(INFO) << "Login " << id <<" : " << ip <<" successfully"; NET_DVR_DEVICECFG_V40 devConfig; memset(&devConfig, 0, sizeof(devConfig)); DWORD dwBytesReturned = 0; BOOL ret = NET_DVR_GetDVRConfig(lUserID, NET_DVR_GET_DEVICECFG_V40, 0, &devConfig, sizeof(devConfig), &dwBytesReturned); LOG(INFO) << "device type : " << devConfig.byDevTypeName; std::shared_ptr<SdkUser> user = std::make_shared<SdkUser>(); user->SetUserId(lUserID); user->SetChannelId(0); user->Online(true); user->deviceid_ = id; user->ip_ = ip; user->port_ = port; user->userName_ = name; user->password_ = <PASSWORD>; sdkusers_.emplace(id, user); return true; } bool HikCamaraController::Login(std::shared_ptr<SdkUser> user) { return Login(user->GetDeviceId(), user->ip_, user->port_, user->userName_, user->password_); } bool HikCamaraController::isLogin() const { return false; } static bool DecodePTZCommand(const std::string& id, std::string sCode, DWORD &dwPTZCommand, DWORD &dwStop, DWORD &dwSpeed) { #define GB_PTZ_RIGHT 1 //�� #define GB_PTZ_LEFT 2 //�� #define GB_PTZ_DOWN 4 //�� #define GB_PTZ_UP 8 //�� #define GB_PTZ_ZOOM_BIG 16 //�Ŵ� #define GB_PTZ_ZOOM_SMARLL 32 //��С #define GB_PTZ_CIRCLE_SMARLL 0x48 //��Ȧ��С #define GB_PTZ_CIRCLE_BIG 0x44 //��Ȧ��� #define GB_PTZ_CIRCLE_STOP 0x40 //��Ȧֹͣ #define GB_PTZ_FOCUS_NER 0x42 //����� #define GB_PTZ_FOCUS_FAR 0x41 //����Զ #define GB_PTZ_CIRCLE_FOCUS 0x49 //����Զ+��ȦС #define GB_PTZ_PRESET_ADD 0x81 //����Ԥ��λ #define GB_PTZ_PRESET_SET 0x82 //����Ԥ��λ #define GB_PTZ_PRESET_DEL 0x83 //ɾ��Ԥ��λ int ispeed = 0; std::string ptzcode = sCode; ptzcode = ptzcode.substr(6, 2); //int icmd = atoi(ptzcode.c_str()); int icmd = 0; sscanf(ptzcode.c_str(), "%x", &icmd); if (icmd == 0) { dwStop = 1; } else { ptzcode = sCode.substr(8, 2); //int param5 = atoi(ptzcode.c_str()); //ˮƽ�ٶ� int param5; sscanf(ptzcode.c_str(), "%x", &param5);//ˮƽ�ٶ� ptzcode = sCode.substr(10, 2); //int param6 = atoi(ptzcode.c_str()); //�����ٶ� int param6; sscanf(ptzcode.c_str(), "%x", &param6);//�����ٶ� ptzcode = sCode.substr(12, 2); //int param7 = atoi(ptzcode.c_str()); //�����ٶ� int param7; sscanf(ptzcode.c_str(), "%x", &param7);//�����ٶ� switch (icmd) { case GB_PTZ_RIGHT: //00000001 dwPTZCommand = PAN_RIGHT; ispeed = param5 & 0xFF; break; case GB_PTZ_LEFT: //00000010 dwPTZCommand = PAN_LEFT; ispeed = param5 & 0xFF; break; case GB_PTZ_DOWN: //00000100 dwPTZCommand = TILT_DOWN; ispeed = param6 & 0xFF; break; case GB_PTZ_UP: //00001000 dwPTZCommand = TILT_UP; ispeed = param6 & 0xFF; break; case GB_PTZ_DOWN + GB_PTZ_RIGHT: //00000101 dwPTZCommand = DOWN_RIGHT; ispeed = param5 & 0xFF; break; case GB_PTZ_DOWN + GB_PTZ_LEFT: //00000110 dwPTZCommand = DOWN_LEFT; ispeed = param5 & 0xFF; break; case GB_PTZ_UP + GB_PTZ_RIGHT: //00001001 dwPTZCommand = UP_RIGHT; ispeed = param5 & 0xFF; break; case GB_PTZ_UP + GB_PTZ_LEFT: //00001010 dwPTZCommand = UP_LEFT; ispeed = param5 & 0xFF; break; /*************************��ͷ����*********************************/ case GB_PTZ_ZOOM_BIG: //00010000 �䱶�Ŵ� dwPTZCommand = ZOOM_IN; ispeed = ((param7 & 0xF0) >> 4); break; case GB_PTZ_ZOOM_SMARLL: //00100000 �䱶��С dwPTZCommand = ZOOM_OUT; ispeed = ((param7 & 0xF0) >> 4); break; case GB_PTZ_CIRCLE_SMARLL: //0X48 ��Ȧ��С dwPTZCommand = IRIS_CLOSE; //m_pHikDevice->UpdateModel_LastFI(stsipid, IRIS_CLOSE); ispeed = param6 & 0xFF; break; case GB_PTZ_CIRCLE_BIG: // 0x44 ��Ȧ��� dwPTZCommand = IRIS_OPEN; //m_pHikDevice->UpdateModel_LastFI(stsipid, IRIS_OPEN); ispeed = param6 & 0xFF; break; case GB_PTZ_CIRCLE_STOP: //0x40 ����\��Ȧֹͣ { //BaseModel model; //if (m_pHikDevice->GetModel(stsipid, model)) //{ // dwPTZCommand = model.m_lastFI; //} dwPTZCommand = IRIS_OPEN; ispeed = 0; } break; case GB_PTZ_FOCUS_NER: //0x42 ����� dwPTZCommand = FOCUS_NEAR; //m_pHikDevice->UpdateModel_LastFI(stsipid, FOCUS_NEAR); ispeed = param5 & 0xFF; break; case GB_PTZ_CIRCLE_FOCUS: //0x49 ����Զ+��ȦС �豸��֧�ֵ�0x41���� case GB_PTZ_FOCUS_FAR: //0x41 ����Զ dwPTZCommand = FOCUS_FAR; //m_pHikDevice->UpdateModel_LastFI(stsipid, FOCUS_FAR); ispeed = param5 & 0xFF; break; default: LOG(WARNING) << "PTZCommand: " << icmd << "dose not exist"; /*************************��ͷ������С*********************************/ } } //dwSpeed = ispeed*7/255; if (ispeed > 7) { dwSpeed = 7; } else if (ispeed <= 0) { dwSpeed = 1; } else { dwSpeed = ispeed; } return true; } static bool DecodePTZPreset(std::string sCode, DWORD& dwPTZPresetCmd, DWORD& dwPresetIndex) { #define GB_PTZ_PRESET_ADD 0x81 //����Ԥ��λ #define GB_PTZ_PRESET_SET 0x82 //����Ԥ��λ #define GB_PTZ_PRESET_DEL 0x83 //ɾ��Ԥ��λ std::string ptzcode = sCode; ptzcode = sCode.substr(6, 2); //int icmd = atoi(ptzcode.c_str()); int icmd = 0; sscanf(ptzcode.c_str(), "%x", &icmd); ptzcode = sCode.substr(10, 2); sscanf(ptzcode.c_str(), "%x", &dwPresetIndex); dwPresetIndex = dwPresetIndex & 0xFF; switch (icmd) { case GB_PTZ_PRESET_ADD: dwPTZPresetCmd = SET_PRESET; break; case GB_PTZ_PRESET_SET: dwPTZPresetCmd = GOTO_PRESET; break; case GB_PTZ_PRESET_DEL: dwPTZPresetCmd = CLE_PRESET; break; default: LOG(WARNING) << "PTZCommand: " << icmd << "dose not exist"; //LOG_WARN(g_nLogID, "PTZCommand[" << icmd << "] PTZ_PRESET is not exist"); } return true; } static bool DecodePTZCruise(std::string scode, DWORD &dwPTZCruiseCmd, BYTE &byCruiseRoute, BYTE &byCruisePoint, WORD &wInput) { #define GB_PTZ_CRUISE_ADD 0x84 //����Ѳ���� #define GB_PTZ_CRUISE_DLL 0x85 //ɾ��Ѳ���� #define GB_PTZ_CRUISE_SPEED 0x86 //����Ѳ���ٶ� #define GB_PTZ_CRUISE_DWELL 0x87 //����Ѳ��ͣ��ʱ�� #define GB_PTZ_CRUISE_START 0x88 //��ʼѲ�� std::string ptzcode = scode; ptzcode = scode.substr(6, 2); //int icmd = atoi(ptzcode.c_str()); int icmd = 0; sscanf(ptzcode.c_str(), "%x", &icmd); ptzcode = scode.substr(8, 2); //int param5 = atoi(ptzcode.c_str()); int param5 = 0; sscanf(ptzcode.c_str(), "%x", &param5); ptzcode = scode.substr(10, 2); //int param6 = atoi(ptzcode.c_str()); int param6 = 0; sscanf(ptzcode.c_str(), "%x", &param6); ptzcode = scode.substr(12, 2); //int param7 = atoi(ptzcode.c_str()); int param7 = 0; sscanf(ptzcode.c_str(), "%x", &param7); int tmp = 0; switch (icmd) { case GB_PTZ_CRUISE_ADD: //0x84 ����Ѳ���� dwPTZCruiseCmd = FILL_PRE_SEQ; byCruiseRoute = param5 & 0xFF; byCruisePoint = param6 & 0xFF; wInput = param6 & 0xFF; break; case GB_PTZ_CRUISE_DLL: //0x85 ɾ��Ѳ���� dwPTZCruiseCmd = CLE_PRE_SEQ; byCruiseRoute = param5 & 0xFF; byCruisePoint = param6 & 0xFF; wInput = param6 & 0xFF; break; case GB_PTZ_CRUISE_SPEED: //0x86 ����Ѳ���ٶ� dwPTZCruiseCmd = SET_SEQ_SPEED; byCruiseRoute = param5 & 0xFF; tmp = param6 & 0xFF; wInput = (((param7 & 0xF0) << 4) + tmp) * 40 / 4095; //�����ٶ����40 ������� 0xfff if (wInput == 0) { wInput = 1; } break; case GB_PTZ_CRUISE_DWELL: //0x87 ����Ѳ��ͣ��ʱ�� dwPTZCruiseCmd = SET_SEQ_DWELL; byCruiseRoute = param5 & 0xFF; tmp = param6 & 0xFF; wInput = (((param7 & 0xF0) << 4) + tmp) * 255 / 4095; //�����ٶ����40 ������� 0xfff if (wInput == 0) { wInput = 1; } break; case GB_PTZ_CRUISE_START: //0x88 ��ʼѲ�� ֹͣѲ����PTZֹͣ���� dwPTZCruiseCmd = RUN_SEQ; byCruiseRoute = param5 & 0xFF; break; default: LOG(WARNING) << "PTZCommand: " << icmd << "dose not exist"; //LOG_WARN(g_nLogID, "PTZCommand[" << icmd << "] PTZ_CRUISE is not exist"); } return true; } void HikCamaraController::ptzControl(std::string id, std::string cmd) { LOG(INFO) << "HikCamaraController ptzControl"; auto search = sdkusers_.find(id); if (search == sdkusers_.end()) { if (!Login(search->second)) { return; } } else { std::string ptzcode = cmd.substr(6, 2); int icmd = atoi(ptzcode.c_str()); if (icmd < 0x4A) { DWORD dwPTZCommand = PAN_RIGHT;//��ʼ����ֵ�������ֹͣ����dwPTZCommand������ֵ DWORD dwStop = 0;//1ֹͣ��̨���� DWORD dwSpeed = 1;//�ٶȡ�1-7�� if (!DecodePTZCommand(id, cmd, dwPTZCommand, dwStop, dwSpeed)) { LOG(ERROR) << "������̨�������,SIPID:" << id; return; } //NET_DVR_PTZControlWithSpeed(Model.m_nRealHandle, dwPTZCommand, dwStop, dwSpeed)) if (!NET_DVR_PTZControlWithSpeed_Other(search->second->GetUserId(), 1, dwPTZCommand, dwStop, dwSpeed)) { LOG(ERROR) << "��̨���Ƴ���,SIPID:" << id << "����ԭ��:" << NET_DVR_GetLastError(); return; } LOG(INFO) << "����ptz�ɹ�,SIPID:" << id << " cmd = " << icmd << " HKcmd =" << dwPTZCommand << " stop=" << dwStop << " speed=" << dwSpeed; } else if ((0x80 < icmd) && (icmd < 0x84)) { DWORD dwPTZPresetCmd = SET_PRESET; DWORD dwPresetIndex = 0; if (!DecodePTZPreset(cmd, dwPTZPresetCmd, dwPresetIndex)) { LOG(ERROR) << "������̨Ԥ�õ��������,SIPID:" <<id; return; } if (!NET_DVR_PTZPreset_Other(search->second->GetUserId(), 1, dwPTZPresetCmd, dwPresetIndex)) { LOG(ERROR) << "������̨Ԥ�õ��������,SIPID:" << id << "����ԭ��:" << NET_DVR_GetLastError(); return; } LOG(INFO) << "����Ԥ�õ�ɹ�,SIPID:" << id << " cmd = " << icmd << " HKcmd =" << dwPTZPresetCmd << " INDEX=" << dwPresetIndex; } else if ((0x83 < icmd) && (icmd < 0x89)) { DWORD dwPTZCruiseCmd = SET_PRESET; BYTE byCruiseRoute = 0; BYTE byCruisePoint = 0; WORD wInput = 0; if (!DecodePTZCruise(cmd, dwPTZCruiseCmd, byCruiseRoute, byCruisePoint, wInput)) { LOG(ERROR) << "������̨Ԥ�õ��������,SIPID:" << id; return; } if (!NET_DVR_PTZCruise_Other(search->second->GetUserId(), 1, dwPTZCruiseCmd, byCruiseRoute, byCruisePoint, wInput)) { LOG(ERROR) << "������̨Cruise�������,SIPID:" << id << "����ԭ��:" << NET_DVR_GetLastError(); return; } LOG(INFO) << "����Cruise�ɹ�,SIPID:" << id << " cmd = " << icmd << " HKcmd =" << dwPTZCruiseCmd << " rute=" << byCruiseRoute << " point=" << byCruisePoint << " input=" << wInput; } else if ((0x88 < icmd) && (icmd < 0x8B)) { LOG(WARNING) << "������̨ɨ�躣����֧��,SIPID:" << id << " cmd = " << icmd; } else { LOG(WARNING) << "������̨������귶Χ,SIPID:" << id << " cmd = " << icmd; } } return; } void HikCamaraController::getDeviceStatusAsync(std::string id, std::function<void(int)> cb) { auto search = sdkusers_.find(id); if (search == sdkusers_.end()) { if (!Login(search->second)) { cb(0); return; } } else { NET_DVR_WORKSTATE_V40 *pStruWorkStateV40 = new NET_DVR_WORKSTATE_V40; DWORD dwList = 0; memset(pStruWorkStateV40, 0, sizeof(NET_DVR_WORKSTATE_V40)); NET_DVR_GETWORKSTATE_COND struWorkStateCond = { 0 }; struWorkStateCond.dwSize = sizeof(NET_DVR_GETWORKSTATE_COND); struWorkStateCond.byFindChanByCond = 0; struWorkStateCond.byFindHardByCond = 0; if (!NET_DVR_GetDeviceConfig(search->second->GetUserId(), NET_DVR_GET_WORK_STATUS, 1, \ &struWorkStateCond, sizeof(NET_DVR_GETWORKSTATE_COND), &dwList, pStruWorkStateV40, sizeof(NET_DVR_WORKSTATE_V40)) || (dwList != 0)) { cb(0); return; } if (0 == pStruWorkStateV40->dwDeviceStatic) { cb(0); } else { cb(1); } } } void HikCamaraController::getDeviceStatus(std::string id, dt::DeviceStatus & st) { auto search = sdkusers_.find(id); if (search == sdkusers_.end()) { if (!Login(search->second)) { //cb(0); st.status = 0; return; } } else { NET_DVR_WORKSTATE_V40 *pStruWorkStateV40 = new NET_DVR_WORKSTATE_V40; DWORD dwList = 0; memset(pStruWorkStateV40, 0, sizeof(NET_DVR_WORKSTATE_V40)); NET_DVR_GETWORKSTATE_COND struWorkStateCond = { 0 }; struWorkStateCond.dwSize = sizeof(NET_DVR_GETWORKSTATE_COND); struWorkStateCond.byFindChanByCond = 0; struWorkStateCond.byFindHardByCond = 0; if (!NET_DVR_GetDeviceConfig(search->second->GetUserId(), NET_DVR_GET_WORK_STATUS, 1, \ &struWorkStateCond, sizeof(NET_DVR_GETWORKSTATE_COND), &dwList, pStruWorkStateV40, sizeof(NET_DVR_WORKSTATE_V40)) || (dwList != 0)) { st.status = 0; return; } if (0 == pStruWorkStateV40->dwDeviceStatic) { st.status = 0; } else { st.status = 1; } } } void HikCamaraController::processData(long hd, char *data , uint32_t len) { // streamMutex_.lock(); // auto cb = cbMap_.find(hd); // if (cb != cbMap_.end()) // { // streamMutex_.unlock(); // cb->second(data, len); // } // else // { // streamMutex_.lock(); // return; // } } bool HikCamaraController::logIn(std::string id, std::string ip, int port, std::string userName, std::string pwd) { NET_DVR_USER_LOGIN_INFO struLoginInfo = { 0 }; struLoginInfo.bUseAsynLogin = false; memcpy(struLoginInfo.sDeviceAddress, ip.c_str(), NET_DVR_DEV_ADDRESS_MAX_LEN); memcpy(struLoginInfo.sUserName, userName.c_str(), NAME_LEN); memcpy(struLoginInfo.sPassword, pwd.c_str(), PASSWD_LEN); struLoginInfo.wPort = port; NET_DVR_DEVICEINFO_V40 struDeviceInfoV40 = { 0 }; LONG lUserID = NET_DVR_Login_V40(&struLoginInfo, &struDeviceInfoV40); if (lUserID < 0) { LOG(ERROR) << "ע���豸ʧ��:\r\n" << "�豸IP:[" << ip << "]\r\n" << "�豸�˿�:[" << port << "]\r\n" << "�û���:[" << userName << "]\r\n" << "����:[" << pwd << "]\r\n" << "������: " << NET_DVR_GetLastError(); return false; } LOG(INFO) << "Login " << ip << " successfully"; NET_DVR_DEVICECFG_V40 devConfig; memset(&devConfig, 0, sizeof(devConfig)); DWORD dwBytesReturned = 0; BOOL ret = NET_DVR_GetDVRConfig(lUserID, NET_DVR_GET_DEVICECFG_V40, 0, &devConfig, sizeof(devConfig), &dwBytesReturned); LOG(INFO) << "device type : " << devConfig.byDevTypeName; std::shared_ptr<SdkUser> user = std::make_shared<SdkUser>(); user->SetUserId(lUserID); user->SetChannelId(0); user->Online(true); user->deviceid_ = id; user->ip_ = ip; user->port_ = port; user->userName_ =userName; user->password_ = <PASSWORD>; sdkusers_.emplace(id, user); return true; } static void __stdcall RealDataCallBack(LONG lPlayHandle, DWORD dwDataType, BYTE *pBuffer, DWORD dwBufSize, void* pUser) { //std::cout<<"receive data: "<< dwBufSize <<" type: "<< dwDataType <<std::endl; if (pUser == nullptr) { return; } HikCamaraController * controller = (HikCamaraController*)pUser; //std::shared_ptr<PSBuffer> buf = ((PSBuffer *)pUser)->getPtr(); char *id = (char *)pUser; switch (dwDataType) { case NET_DVR_SYSHEAD: break; case NET_DVR_STREAMDATA: { auto start = std::chrono::high_resolution_clock::now(); //StreamManager::getInstance()->putDatatoBuffer("60000000001310001430", pBuffer, dwBufSize); controller->processData(lPlayHandle, (char *)pBuffer, dwBufSize); auto elapsed = std::chrono::high_resolution_clock::now() - start; //LOG(INFO) << "elapse " << std::chrono::duration_cast<std::chrono::microseconds>(elapsed).count() << " microseconds"; } break; default: break; } } static void __stdcall newRealDataCallBack(LONG lPlayHandle, DWORD dwDataType, BYTE *pBuffer, DWORD dwBufSize, void* pUser) { if (pUser == nullptr) { return; } std::function<void(char *, uint32_t)> *cb = (std::function<void(char *, uint32_t)> *)pUser; switch (dwDataType) { case NET_DVR_SYSHEAD: break; case NET_DVR_STREAMDATA: { auto start = std::chrono::high_resolution_clock::now(); //StreamManager::getInstance()->putDatatoBuffer("60000000001310001430", pBuffer, dwBufSize); //controller->processData(lPlayHandle, (char *)pBuffer, dwBufSize); (*cb)((char *)pBuffer, dwBufSize); auto elapsed = std::chrono::high_resolution_clock::now() - start; //LOG(INFO) << "elapse " << std::chrono::duration_cast<std::chrono::microseconds>(elapsed).count() << " microseconds"; } break; default: break; } } //bool HikCamaraController::openRealStream(const dt::OpenRealStream& param) bool HikCamaraController::openRealStream(std::string id, std::string ip, int port, std::string user, std::string pwd, std::function<void(char *, uint32_t)> datacb) { auto search = sdkusers_.find(id); if (search == sdkusers_.end()) { if (!logIn(id, ip, port, user, pwd)) { LOG(ERROR) << "Hik sdk login camara failed when opening stream"; return false; } } LOG(ERROR) << "Hik sdk login camara {"<< ip<<" : "<<port<<"} successfully!"; auto sdkuser = sdkusers_.find(id); if (sdkuser == sdkusers_.end()) { LOG(ERROR) << "Hik opening stream failed"; return false; } dataCallBack *dtcb = new dataCallBack(datacb); //sdkuser->second->SetCallBack(dtcb); //HWND hWnd = NULL; NET_DVR_PREVIEWINFO struPlayInfo = { 0 }; #if (defined(_WIN32) || defined(_WIN_WCE)) struPlayInfo.hPlayWnd = NULL; #elif defined(__linux__) struPlayInfo.hPlayWnd = 0; #endif //struPlayInfo.hPlayWnd = NULL; //��Ҫ SDK ����ʱ�����Ϊ��Чֵ����ȡ��������ʱ����Ϊ�� struPlayInfo.lChannel = 1;// struPlayInfo.dwLinkMode = 0;//0- TCP ��ʽ�� 1- UDP ��ʽ�� 2- �ಥ��ʽ�� 3- RTP ��ʽ�� 4-RTP/RTSP�� 5-RSTP/HTTP struPlayInfo.dwStreamType = 0;//0-�������� 1-�������� 2-���� 3�� 3-���� 4���Դ����� // struPlayInfo.byPreviewMode = 0;//����Ԥ�� struPlayInfo.bBlocked = 1;//0- ������ȡ���� 1- ����ȡ�� struPlayInfo.bPassbackRecord = 0;//������¼��ش�; struPlayInfo.byProtoType = 0;//˽��Э�� //long playHandle_ = NET_DVR_RealPlay_V40(sdkuser->second->GetUserId(), &struPlayInfo, RealDataCallBack, (void *)this); long playHandle_ = NET_DVR_RealPlay_V40(sdkuser->second->GetUserId(), &struPlayInfo, newRealDataCallBack, dtcb); if (playHandle_ < 0) { LOG(ERROR) << "Hik sdk open stream failed, error code: " << NET_DVR_GetLastError(); return false; } else { //int iRet = NET_DVR_SetRealDataCallBack(playHandle_, RealDataCallBack, this); sdkuser->second->SetPlayHandle(playHandle_); std::lock_guard<std::mutex> lk(streamMutex_); //cbMap_.emplace(playHandle_, datacb); cbMap_.emplace(playHandle_, dtcb); LOG(INFO) << "Hik sdk open stream successfully!"; return true; } } bool HikCamaraController::closeRealStream(const std::string & id) { auto search = sdkusers_.find(id); if (search == sdkusers_.end()) { LOG(ERROR) << "Hik sdk close stream failed: not find camara " << id; return false; } auto sdksuer = search->second; LOG(ERROR) << "hik sdk PlayHandle: " << sdksuer->GetPlayHandle(); int ret = NET_DVR_SetRealDataCallBack(search->second->GetPlayHandle(), NULL, 0); if(!ret) { LOG(ERROR) << "NET_DVR_SetRealDataCallBack error: " << NET_DVR_GetLastError(); } if(!NET_DVR_StopRealPlay(search->second->GetPlayHandle())) { LOG(ERROR) << "Hik sdk close stream failed, error code: " << NET_DVR_GetLastError(); } std::lock_guard<std::mutex> lk(streamMutex_); auto cb = cbMap_.find(search->second->GetPlayHandle()); if (cb == cbMap_.end()) { return true; } auto c = cb->second; delete c; cbMap_.erase(cb); return true; }
cpp
Human ingenuity knows no boundaries, especially not when it comes to gaming. Despite having access to eight generations of perfectly good consoles designed specifically to play video games, intrepid, tech-savvy gamers can’t seem to stop modding everything with a chip and a screen to play video games. There’s a difference between mini-computers/ad hoc consoles — it’s amazing what you can build with a Raspberry Pi — and running games on something that was never intended for that purpose. So this list won’t have anything like that — just the original hardware and software, hacked to run games. Side note: you’ll notice most of these devices have been modded to play Doom specifically. This is because Doom‘s source code has been available for public use for 20 years. That’s not to say they can only run Doom — but it’s more impressive to watch the gory grandaddy of first-person shooters on a miniature screen than it would be to see, for example, Pong. These are the weirdest things people have modded or hacked to play games on. As revealed by Motherboard, someone hacked a TS100 soldering iron pencil to play Tetris. The real estate is miniscule at 5.5.mm by 2.5 mm, but it’s got two buttons and a screen, so by gosh, we will play some Russian block puzzles on it. The soldering iron heats up every time you lose, making it simultaneously the tiniest and riskiest Tetris game you’ll ever play. Speaking of something that doesn’t have a lot of screen real estate — the narrow Touch Bar isn’t an ideal place to play a gory first-person shooter like Doom, but it can be done. As Bryan Clark pointed out when he first saw it, it’s playable, only just. At least it won’t heat up like a soldering iron. Out of all the non-consoles hacked to play Doom, a car looks by far the most dangerous to actually play. YouTuber vexal demonstrates how to run Doom on a Porsche Cabriolet’s smart display screen, using the car’s wheel and gearbox as a controllers. Unless you have access to a street layout exactly similar to the layout of Doom‘s levels, it’ll be difficult to play — though if you do, let me know. I want to move there. If you ever get the urge to use some other piece of office hardware to play a game, then look no further than the Canon Pixma Inkjet printer. This was actually done for a practical reason: it was intended to demonstrate a security flaw in the Pixma’s firmware. But it still shouldn’t surprise anyone that, when security researcher Michael Jordon had the chance to use any software in the world to point out the flaw, he chose to use Doom. Get the most important tech news in your inbox each week.
english
Newly appointed Karnataka Primary and Secondary Education Minister Madhu Bangarappa on Tuesday indicated the possibility of revising school textbooks in the days ahead, in the interest of the students and to ensure that their minds are not "polluted". He however did not wish to make any comments on overturning te 'hijab ban', saying the matter was before court, and asked people to wait for answers on the new government's plans to scrap the National Education Policy (NEP). The Congress in its poll manifesto had promised to undo the changes made to school textbooks when the BJP was in power, and had also promised to scrap NEP. "I was the vice president of the Congress' manifesto committee, and in the manifesto we had said clearly that textbook revision will take place in the interest of the students' future. We don't want their minds to get polluted," Bangarappa said. Speaking to reporters here, he said, "We have already said that students come to schools to get educated and we don't want it to be disturbed, and there should be no mistake on part of the government or me or officials or the system in this regard. We have given the commitment. " Stating that textbooks for the start of school from tomorrow have been dispatched to an extent, he said, "The challenge before us now is -- how we will do it with care, without affecting the students and their studies. " The commitment in the manifesto will be taken forward with the guidance of the Chief Minister and Deputy Chief Minister, he added. Asserting that the act of "polluting children's minds through texts and lessons" cannot be condoned, Chief Minister Siddaramaiah on Monday had said, "As the academic year has started, we will discuss and take action so that the education of the children is not disturbed. " Noting that the education sector will not be allowed to be "adulterated" in the name of NEP, the CM had said that a separate meeting would be convened in this regard once again to discuss it comprehensively and take strict decisions. My first preference was BJP: Lingayat MLC Manjunath post joining JD(S) Stating that he has already held one round of discussions with the Chief Minister, Bangarappa said he will be creating a team to take things forward in the department. "I can't divulge much on this now, cabinet meeting is scheduled to take place on June 1, and on that day things might take shape for him to share more information," he said. There was a textbook controversy during the previous regime, with demands by opposition Congress and some writers for sacking the then textbook review committee chief Rohith Chakratirtha for allegedly "saffronising" school textbooks by including the speech of RSS founder Keshav Baliram Hedgewar as a chapter, and omitting chapters on key figures like freedom fighters, social reformers, and the writings of noted literary figures. There were also allegations of erroneous content on 12th century social reformer Basavanna and certain factual errors in the textbooks, including accusations of disrespecting 'Raashtra Kavi' (national poet) Kuvempu and distortion of the state anthem penned by him. Initially the allegations were refuted but subsequently rectifications were made in some cases. Responding to a question on whether the hijab ban will be overturned in schools and colleges, the minister said, "As the matter is in the court, if I make any comments, it will be wrong. Whatever has to be done legally by the government will be done by the Law Department. This is the direction I have got as of now. . . if I say anything else, it will become a commitment. " Asked about Congress' plans to scrap the National Education Policy, Bangarappa said, "You will get answers for this in the days to come. I have just got the responsibility of the department yesterday. (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>_buildlogs/images/issues/806.png.json { "templmd5": "523d4615240572e66d3c9373d01f37cd", "number": "806", "title": "Numeri utili sevizi socio-assistenziali per persone fragili (supporto psicologico, spesa a domicilio, assistenza) #ValleDiSusa #Piemonte", "BACKCOLOR": "cyan", "FRONTCOLOR": "black", "filemd5": "92b4311b6cc2719c2b506d2add08d08d" }
json
use std::fs::read; use wapc::WapcHost; use wascc_codec::{deserialize, serialize}; #[test] fn runs_wapc_guest() -> anyhow::Result<()> { let buf = read("tests/wasm/wapc_guest/test.wasm".to_string())?; let engine = wasmtime_provider::WasmtimeEngineProvider::new(&buf, None); let guest = WapcHost::new(Box::new(engine), move |_a, _b, _c, _d, _e| Ok(vec![]))?; let callresult = guest.call("echo", &serialize("hello world").unwrap())?; let result: String = deserialize(&callresult).unwrap(); assert_eq!(result, "hello world"); Ok(()) }
rust
Sweetie in Lithuanian: What's Lithuanian for sweetie? If you want to know how to say sweetie in Lithuanian, you will find the translation here. You can also listen to audio pronunciation to learn how to pronounce sweetie in Lithuanian and how to read it. We hope this will help you to understand Lithuanian better. "Sweetie in Lithuanian." In Different Languages, https://www.indifferentlanguages.com/words/sweetie/lithuanian. Accessed 07 Oct 2023. Check out other translations to the Lithuanian language:
english
<reponame>InsightCenterNoodles/NoodlesPlusPlus<filename>old_src/example_server/imageplot.cpp<gh_stars>0 #include "imageplot.h" #include "plotty.h" void ImagePlot::rebuild(Domain const& d) { auto center = (m_top_left + m_bottom_right) / 2.0f; auto o = -(m_bottom_left - center); if (!m_image_texture) { m_image_texture = noo::create_texture_from_file(m_doc, m_image_data); } if (!m_image_mat) { noo::MaterialData mat; mat.color = { 1, 1, 1, 1 }; mat.metallic = 0; mat.roughness = 1; mat.texture = m_image_texture; m_image_mat = noo::create_material(m_doc, mat); } noo::MeshTPtr mesh; { // create a plane std::array<glm::vec3, 4> positions = { m_top_left, m_bottom_left, m_bottom_right, o }; for (auto& p : positions) { p = d.transform(p); } std::array<glm::vec3, 4> normals; for (auto& n : normals) { n = glm::cross(m_top_left - m_bottom_left, m_bottom_right - m_bottom_left); n = glm::normalize(n); } std::array<glm::u16vec3, 2> index = { glm::u16vec3 { 0, 1, 2 }, glm::u16vec3 { 3, 1, 2 }, }; noo::BufferMeshDataRef ref; ref.positions = positions; ref.normals = normals; ref.triangles = index; std::vector<std::byte> mesh_data; auto result = noo::pack_mesh_to_vector(ref, mesh_data); noo::BufferCopySource buffer_data; buffer_data.to_copy = mesh_data; auto buffer_ptr = noo::create_buffer(m_doc, buffer_data); noo::MeshData noo_mesh_data(result, buffer_ptr); mesh = create_mesh(m_doc, noo_mesh_data); } noo::ObjectData object_data; object_data.material = m_image_mat; object_data.transform = glm::mat4(1); object_data.mesh = mesh; m_obj = create_object(m_doc, object_data); } ImagePlot::ImagePlot(Plotty& host, int64_t id, std::vector<std::byte> image_data, glm::vec3 top_left, glm::vec3 bottom_left, glm::vec3 bottom_right) : Plot(host, id), m_image_data(std::move(image_data)), m_top_left(top_left), m_bottom_left(bottom_left), m_bottom_right(bottom_right) { rebuild(host.domain()->current_domain()); } ImagePlot::~ImagePlot() { } void ImagePlot::domain_updated(Domain const& d) { rebuild(d); }
cpp
<filename>public/json/words/hebrew-7011.json {"pos":"n","translits":{"wə·qay·yām":{"dan.6.26|20":["living","and steadfast","forever、"]},"qay·yā·māh":{"dan.4.26|8":["your kingdom","shall be assured","after"]}},"meanings":{"steadfast":1,"assure":1},"meaningsCount":2,"occurences":2}
json
India’s badminton icon Saina Nehwal clung on to her number three spot in the latest Badminton World Federation (BWF) rankings. Saina has been having a lacklustre 2013 so far. She made early exits in the recent Thailand and Djarum Indonesian Open tournaments where she lost in the quarterfinals and semifinals respectively. China’s Wang Yihan is ranked second, while her country mate Li Xeurui is ranked number one. Germany’s Juliane Schenk is placed fourth, while Thailand’s Ratchanok Intanon is ranked fifth. India’s top ranked men’s singles player Parupalli Kashyap retained his last week’s ranking of 13. PV Sindhu, who won the Yonex Malaysian Open – her maiden senior singles crown – and later opted out of the Djaram Indonesian Open, retained her last week’s ranking of 12. Among the other Indian men, RMV Gurusaidutt retained his last week’s ranking of 21. Ajay Jayaram, who reached the quarterfinals of the Sunrise Indian Open and the Skycity New Zealand Open earlier in the year, held on to his 24th spot. Sourabh Varma dropped one spot to be ranked 36th. Same was the case with B Sai Praneeth and K Srikanth, both of whom fell to 40th and 41st positions respectively. . Anand Pawar fell one spot to be placed 43st. HS Pranoy dropped one spot to move out of the top-50 bracket to occupy the 51st position. Arvind Bhat jumped ten places to occupy the 71st spot. Old warhorse Chetan Anand retained his last week’s ranking of 102. Among the other Indian women, Arundhati Pantawane, who broke in the top-50 recently, fell one spot to be placed 53rd. PC Thulasi retained her last week’s ranking of 65. Tanvi Lad dropped one spot to be at 81st position.
english
its A116 Canvas HD smartphone. The smartphone was available for pre-booking from company's website and through the deal site snapdeal.com, and a total of 9,000 units were sold out in just 24 hours. As per company's claims this smartphone is being booked at a pace of 25 units per minute. Shedding more light on the trend, Snapdeal.com has shared that the first lot of the A116 Canvas HD was sold out within 15 minutes of announcing the sale at midnight of 14 February 2013. The second lot which consisted of 300 units and was up for sale at 9:00 AM to was sold out within 15 minutes and the third lot of 1,200 phones took about 45 minutes to be sold out. Just to recap, Micromax A116 Canvas HD come with 5-inch HD IPS screen that sports 1280x720 resolution and a colour depth of 16.7 million. Micromax A116 Canvas HD is powered by MediaTek's MT6589 quad-core processor that clocks 1.2GHz. It runs on Android 4.1 (Jelly Bean) out of the box. It packs in a 2000mAh battery. For camera, there is an 8-megapixel rear shooter with LED flash and 4X zoom and a VGA front camera. Other features of the smartphone include 1GB RAM and 4GB of internal storage, which can be expanded to up to 32GB via microSD card. It is a dual-SIM GSM + GSM smartphone. Commenting on the sales, Shubhodip Pal, CMO Micromax, said, "The response from our consumers has been phenomenal and the demand has been increasing every passing minute. After the unprecedented success of the Canvas 2, we are overwhelmed with the customer response for Canvas HD. This is the first time our online sales partners have ever witnessed a digital queue in cyberspace to such an extent for any product, to the traditional cue one normally sees. The data also shows that 60% of the orders received online have come from the metros." He further added, "It was great to witness consumers wait until 12:00am for their chance to book the Canvas HD on Valentine's Day. We expect the sales of this device to touch a new high in the coming weeks which will soon be available for sale at all leading retail stores in the country. We hope to further strengthen our leadership in the new phablet category in India." Commenting on the sales Tony Navin, Vice President - Business Development, Snapdeal.com said, "This product, one of the most awaited launches exceeded our expectations by a huge margin. We took this live at midnight and we were completely surprised to see all 500 units which we expected to sell in the entire day sold out within 15 minutes of launch. Our call volume shot through the roof with enquiries and we have replenished inventory levels to cater to more sales. In a category such as Mobiles, this kind of pace of sales beats our previous records that we have witnessed. Our partnership with Micromax is now more than a year old and has been one of the most exciting journeys for both the parties. We look forward to such meaningful associations in the future as well". Micromax has shared that they are now looking at replenishing the stock at the earliest but did not mention the exact availability date for the same.
english
"""\ Code generator functions for wxDatePickerCtrl objects @copyright: 2002-2007 <NAME> @copyright: 2014-2016 <NAME> @copyright: 2016-2021 <NAME> @license: MIT (see LICENSE.txt) - THIS PROGRAM COMES WITH NO WARRANTY """ import common, compat import wcodegen class PythonDatePickerCtrlGenerator(wcodegen.PythonWidgetCodeWriter): tmpl = '%(name)s = %(klass)s(%(parent)s, %(id)s%(style)s)\n' # XXX the following needs to depend on the code generator when Phoenix is about to be supported fully: if compat.IS_PHOENIX: import_modules = ['import wx.adv\n'] if compat.IS_PHOENIX: def cn(self, name): # don't process already formatted items again if name.startswith('wx.'): return name if name.startswith('wx'): return 'wx.adv.' + name[2:] elif name.startswith('EVT_'): return 'wx.adv.' + name return name def _prepare_tmpl_content(self, obj): wcodegen.PythonWidgetCodeWriter._prepare_tmpl_content(self, obj) self.has_setdefault = int(obj.properties.get('default', 0)) return class CppDatePickerCtrlGenerator(wcodegen.CppWidgetCodeWriter): import_modules = ['<wx/datectrl.h>'] tmpl = '%(name)s = new %(klass)s(%(parent)s, %(id)s, ' \ 'wxDefaultDateTime, wxDefaultPosition, wxDefaultSize, ' \ '%(style)s);\n' prefix_style = False set_default_style = True def _prepare_tmpl_content(self, obj): wcodegen.CppWidgetCodeWriter._prepare_tmpl_content(self, obj) self.has_setdefault = int(obj.properties.get('default', 0)) return def xrc_code_generator(obj): xrcgen = common.code_writers['XRC'] class DatePickerCtrlXrcObject(xrcgen.DefaultXrcObject): def write_property(self, name, val, output, tabs): if name == 'label': # translate & into _ as accelerator marker val2 = val.replace('&', '_') if val.count('&&') > 0: while True: index = val.find('&&') if index < 0: break val = val2[:index] + '&&' + val2[index+2:] else: val = val2 xrcgen.DefaultXrcObject.write_property(self, name, val, output, tabs) return DatePickerCtrlXrcObject(obj) def initialize(): klass = 'wxDatePickerCtrl' common.class_names['EditDatePickerCtrl'] = klass common.register('python', klass, PythonDatePickerCtrlGenerator(klass)) common.register('C++', klass, CppDatePickerCtrlGenerator(klass)) common.register('XRC', klass, xrc_code_generator)
python
package com.example.administrator.xiangou.mine.followpage.followgoods; import android.util.Log; import com.example.administrator.xiangou.mvp.BasePresenterImpl; import com.example.administrator.xiangou.net.BaseSubscriber; import com.example.administrator.xiangou.net.ExceptionHandle; public class FollowGoodsPresenter extends BasePresenterImpl<FollowGoodsContract.View> implements FollowGoodsContract.Presenter{ @Override public void getCollectGoodsList(int user_id, int page_no, String goods_name) { addSubscription(mApiService.getCollectGoodsListApi(user_id, page_no, goods_name) , new BaseSubscriber<FollowGoodsBean>(mView.getContext()) { @Override public void onNext(FollowGoodsBean followGoodsBean) { switch (followGoodsBean.getState().getCode()){ case 101: mView.sendFialRequest(followGoodsBean.getState().getMsg()); break; case 200: mView.getGoodsListSuccess(followGoodsBean); break; case 1: mView.sendFialRequest("用户尚未登录!"); break; } } @Override public void onFinish() { } @Override public void onError(ExceptionHandle.ResponeThrowable e) { Log.e("gstorep", "onError: " + e.toString()); mView.sendFialRequest(e.getMessage()); } }); } }
java
<reponame>imbhargav5/new-website<filename>sri/angular-material/0.10.1-rc2-master-712bc72.json {"angular-material.css":"sha256-GRa7foHFtec9yUO1lUEDOxD5VsnVAt4IH9C5WaE2Mmo=","angular-material.js":"sha256-JlbXZGPilaoGpMf4BGScRARWN+WUZkfP3HUQ6IY2mxQ=","angular-material.min.css":"sha256-6DH8y3SxrJhhgh3yWEGgQDGoW0t5jk+L1yb1Dc5Lum4=","angular-material.min.js":"sha256-JaEpc5KHC//4JdNauAPdiz69NGl2a1gimaBzffj6rdY="}
json
Everyone is aware of Naruto's feelings for Sakura when they were young. The protagonist was head over heels for Sakura, but she loved Sasuke from the beginning. There have been numerous situations in which the protagonist attempted to express his love for her, but she constantly rejected his advances. However, one episode in the series shocked not only the characters present in the scene but also the entire fanbase. Sakura confessed her love to Naruto despite loving Sasuke for all these years. Naturally, the fanbase was too stunned to react, but there is a reason behind her actions. Let's look at why Sakura confessed her love to him, despite liking Sasuke since she met him at the academy. Disclaimer: Sportskeeda claims no ownership of the media used in this article unless otherwise stated. Why did Sakura confess her love to Naruto in the series? These events occurred in episode 206 of Naruto Shippuden, titled "Sakura's Feelings". In this episode, Sakura decided to confess her love to the protagonist, shocking Kiba, and Yamato, who were bystanders in this situation. She said that she had grown to love him and that Sasuke was a criminal who proceeded to join one of the biggest criminal syndicates in the shinobi world, the Akatsuki. However, Naruto did not react positively and recalled certain events just as she finished talking to him. He remembered when Sakura longed for Sasuke's love and when Sakura's eyes were filled with tears as she asked Naruto to bring Sasuke back to the village. He also recalled when Sakura cried because she thought Sasuke was no more. At this point, the protagonist realized that she was lying and expressed his frustration towards her for lying. Despite his warning, Sakura attempted to lie again to convince the protagonist that she liked him. But he didn't buy any of what Sakura had said, and he told her how he hated people who lied to others and themselves. Sakura said he no longer needed to honor the promise to bring Sasuke back. Naruto was close to informing Sakura about Itachi's actions and why Sasuke fled from Konohagakure. But Kakashi intervened, and the protagonist said it was his wish to bring him back. Sakura lied because she wanted to stop Naruto from risking his life to bring Sasuke back. She thought he was bringing Sasuke back for her sake and because of the promise he made when Sasuke had just left the village. She knew the risk was far too high since he was a Nine-Tailed Beast jinchuriki the Akatsuki was targeting. She knew about Naruto's feelings towards her, which is why she assumed that confessing her love to him would have stopped him from pursuing Sasuke any further. It was a mixture of guilt and concern that led to the false confession. Sportskeeda Anime is now on Twitter! Follow us here for latest news & updates.
english
// Copyright 2021 University of Nottingham Ningbo China // Author: <NAME> <<EMAIL>> // // 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. // PLOT ACTONS export const SET_CHANNEL_STATUS = 'SET_CHANNEL_STATUS'; export const LOAD_CHANNELS = 'LOAD_CHANNELS'; export const PLOT_PLAY = 'PLOT_PLAY'; export const PLOT_PAUSE = 'PLOT_PAUSE'; export const PLOT_STOP = 'PLOT_STOP'; export const FETCH_DATA = 'FETCH_DATA'; export const SET_CHANNEL_SETTING = "SET_CHANNEL_SETTING"; export const INITIALIZE_CHANNELS = "INITIALIZE_CHANNELS"; // PARAMETERS ACTIONS export const SAVE_PARAMETER = 'SEND_PARAMETER'; // REGISTERS ACTIONS export const LOAD_REGISTERS = 'LOAD_REGISTERS'; export const SEND_REGISTER = 'SEND_REGISTER'; // GENERAL SETTINGS ACTIONS export const SET_SETTING = 'SET_SETTING'; // VIEWS ACTIONS export const LOAD_VIEWS = 'LOAD_VIEWS'; // SCRIPTS ACTIONS export const ADD_SCRIPT = "ADD_SCRIPT"; export const REMOVE_SCRIPT = "REMOVE_SCRIPT"; export const LOAD_ALL_SCRIPTS = "LOAD_ALL_SCRIPTS"; export const EDIT_SCRIPT = "EDIT_SCRIPT"; export const SAVE_SCRIPT_WORKSPACE = "SAVE_SCRIPT_WORKSPACE"; // PERIPHERALS ACTIONS export const LOAD_PERIPHERALS = 'LOAD_PERIPHERALS'; export const ADD_PERIPHERAL = 'ADD_PERIPHERAL'; export const EDIT_PERIPHERAL = 'EDIT_PERIPHERAL'; export const REMOVE_PERIPHERAL = 'REMOVE_PERIPHERAL'; // APPLICATIONS ACTIONS export const LOAD_APPLICATIONS = 'LOAD_APPLICATIONS'; export const ADD_APPLICATION = 'ADD_APPLICATION'; export const EDIT_APPLICATION = 'EDIT_APPLICATION'; export const REMOVE_APPLICATION = 'REMOVE_APPLICATION'; // FCORE PROGRAMS export const ADD_PROGRAM = "ADD_PROGRAM"; export const REMOVE_PROGRAM = "REMOVE_PROGRAM"; export const LOAD_ALL_PROGRAMS = "LOAD_ALL_PROGRAM"; export const EDIT_PROGRAM = "EDIT_PROGRAM"; // BITSTREAMS export const ADD_BITSTREAM = "ADD_BITSTREAM"; export const REMOVE_BITSTREAM = "REMOVE_BITSTREAM"; export const LOAD_ALL_BITSTREAMS = "LOAD_ALL_BITSTREAMS"; export const EDIT_BITSTREAM = "EDIT_BITSTREAM";
javascript
[% extends 'pages/templates/boxPage.html' %] [% region contents %] <p> Hello there! I am a full-stack software engineer in Toronto, Canada. </p> <p> I'm passionate about building great things. You can see some of my work <a href="[% url 'projects' %]">on this site</a> or on <a href="https://github.com/ClintonMorrison">GitHub</a>. </p> <p> I write about technology and my current projects on <a href="[% url 'blog' %]">my blog</a>. </p> [% end region %]
html
<filename>base/definitions.py # -*- coding: utf-8 -*- """ Definitions commonly used on apps """ # django from django.utils.translation import ugettext_lazy as _ MONTHS = ( (0, _(u'January')), (1, _(u'February')), (2, _(u'March')), (3, _(u'April')), (4, _(u'May')), (5, _(u'June')), (6, _(u'July')), (7, _(u'August')), (8, _(u'September')), (9, _(u'October')), (10, _(u'November')), (11, _(u'December')), )
python
{ "popclip version": 3785, "identifier": "com.pilotmoon.popclip.extension.sort", "name": "Sort", "icon": "sort.png", "regex": "\\R", "javascript file": "sort.js", "description": "Sort the selected lines alphabetically.", "note": "1 Nov 2021: Updated for macOS Monterey. Requires PopClip 2021.11." }
json
Jhalak Dikhhla Jaa 10: Madhuri Dixit, Amruta Khanvilkar dance to Dola Re Dola, Karan Johar calls it 'best moment' Madhuri Dixit will be seen dancing to her song Dola Re Dola with Jhalak Dikhhla Jaa 10 participant Amruta Khanvilkar and choreographer Ashish Patil this weekend. Watching the three of them dance together to the song, filmmaker, and co-judge, Karan Johar said, “Abhi tak Jhalak ka best moment (best moment of Jhalak Dikhhla Jaa till now). ” Nora Fatehi is the third judge on the show. As Colors TV shared the promo of the upcoming weekend episode on Instagram, fans asked if Amruta's choreographer Pratik Utekar has been replaced by Ashish. Pratik is Amruta's choreographer on the show but the actor was joined by Ashish Patil for the Dola Re Dola performance. Ashish too decked up in a saree and jewellery, just like Amruta. Meanwhile, Madhuri is also gearing up for the release of her Prime Video film, Maja Maa. It is a story about a loving mother, who unwittingly becomes a hurdle in her son's marriage plans and contests societal norms. Madhuri plays Pallavi, a woman who is the backbone of her middle class family. She plays the wife of Badhaai Ho actor Gajraj Rao in the film. It is directed by Anand Tiwari and will be streaming on Amazon Prime Video from October 6. “This film has everything that a Bollywood film has, like laughter, gravitas and all the ingredients of a potboiler. It has lovely songs and foot tapping music," Madhuri told PTI about the film. She said her character in the film is “resilient” and her “strength of conviction” is what attracted her to the project.
english
{ "latest_version": [ "8.0.0" ], "meta": { "description": "Ncurses based console user interface to configure Fuel master node", "homepage": "", "license": "" }, "versions": {} }
json
The ends aren't supposed to justify the means, and people shouldn't be unnecessarily risked for the sake of medical progress. But if paying patients to risk themselves would accelerate progress, is it okay? That dilemma is raised in a solution proposed by two University of Chicago health policy experts to a paradox of drug development: If moderately effective drugs are already available, patients will have little reason to volunteer for tests of drugs that could be better, but might not work at all. The policy experts, Anup Malani and Tomas Philipson, illustrate the paradox with data from the early days of HAART, the anti-HIV drug cocktail that hit the market in 1996. Compared to existing drug regimens, HAART was genuinely revolutionary, and has allowed many people to live with the virus for decades rather than years. But HAART still has limitations: Not everyone responds, the side effects can be vicious, and it's a delay rather than a cure. Using data from a survey of more than 1,000 HIV-positive men involved in the Multicenter AIDS Cohort Study, Malani and Philipson found a massive decline in clinical drug trial participation after HAART's debut. Many people with AIDS, happy with the new treatment, wouldn't participate in clinical trials. competition closedIt was a completely understandable decision, of course. But the basic pattern, extrapolated to drug development at large, may represent a problem. And while not everyone agrees with the pharmaceutical industry's own take on drug development difficulties, it stands to reason that new drugs won't be approved if they can't be tested. Malani and Philipson's proposal, contained in a paper published in May by the National Bureau of Economic Research, is straightforward: Pay patients an attractive wage to participate in experimental drug trials. Under existing rules, patients can receive only small stipends. Anything more could be coercive, an anathema to ethical standards established to prevent people from being lured into risking their lives for cash. But Malani and Philipson say that, as long as people are educated about risks, they should be able to take them — especially when withholding payment prevents the development of better, life-saving drugs. "So long as consenting subjects understand the risks of research, there is nothing special about compensating for health risks in trials," wrote Malani and Philipson, noting that paying people to take risks is the essence of modern military service. Over at the University of Minnesota's Fear and Loathing in Bioethics Blog, the response was harsh. "The patient is desperately ill. She needs treatment right away. But you need research subjects for your clinical trial, and she wants proven therapy," wrote a poster identified as Carl. "What's a clinical investigator to do? The answer is simple: pay her to sign up for the trial. You get a research subject; she gets a paycheck; and if the experimental treatment doesn't work, well, you warned her." Image: Woman on hospital bed. (Hamed Saber/Flickr) See Also:
english
<gh_stars>1000+ package mage.cards.c; import java.util.UUID; import mage.MageInt; import mage.abilities.common.DealsCombatDamageToAPlayerTriggeredAbility; import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.costs.mana.ManaCostsImpl; import mage.abilities.effects.common.RegenerateSourceEffect; import mage.abilities.effects.common.discard.DiscardTargetEffect; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.constants.SubType; import mage.constants.Zone; /** * * @author LoneFox */ public final class ChillingApparition extends CardImpl { public ChillingApparition(UUID ownerId, CardSetInfo setInfo) { super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{B}"); this.subtype.add(SubType.SPIRIT); this.power = new MageInt(1); this.toughness = new MageInt(1); // {B}: Regenerate Chilling Apparition. this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{B}"))); // Whenever Chilling Apparition deals combat damage to a player, that player discards a card. this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(new DiscardTargetEffect(1), false, true)); } private ChillingApparition(final ChillingApparition card) { super(card); } @Override public ChillingApparition copy() { return new ChillingApparition(this); } }
java
Kolkata: TMC's popular poll jingle 'Khela Hobe' (game is on) seems to have also caught the fancy of rival BJP, as political heavyweights of both the parties draw references to its lyrics, sometimes even building slogans around the song, at their public meetings in Bengal. Originally written and uploaded on YouTube by TMC leader Debangshu Bhattacharya in January, the jingle has since undergone many variations, with the party's Birbhum strongman Anubrata Mondal first giving it a spin and chanting 'bhoyonkor khela hobe' (fierce game will be played) at a rally. "The song 'Khela Hobe' has been able to establish an instant connect with people. It has received a favourable response from youth across the state," Bhattacharya said. At a recent rally in Kamarhati constituency addressed by Bhattacharya, a thousand-strong crowd lapped up every word of the song delivered in a rap format. Former minister and the ruling camp's candidate from the constituency, Madan Mitra, has recorded his own version of 'Khela Hobe', while the party's Ghatal MLA Shankar Dolai was recently seen dancing wildly to the beats of the song at a roadshow. Chief Minister Mamata Banerjee has also been asking voters at rallies if they were ready for the game to begin (Khela Hobe? ), drawing loud cheers from the crowd. "Khela Hobe. Ami goalkeeper. Dekhi ke jete," (the game is on. I will do the goal keeping. Let's wait and see who wins," Banerjee said at a meeting. The BJP, which had initially criticised the TMC for likening the political battle with a game and "trivialising" the democratic process, co-adopted the slogan later, with defence minister Rajnath Singh, among other saffron camp leaders, bringing 'khela hobe' references in their speech, in a bid to take a jibe at Banerjee and her party. Prime Minister Narendra Modi, while addressing a public meeting here recently, had said 'khela khatam, vikas shuru' (game ends, development begins). "Election can never be equated with a game. There is an element of threat hidden in the slogan," BJP spokesman Shamik Bhattacharya said. BJP state president Dilip Ghosh, however, does not mind borrowing the slogan from the TMC to give the opponents a befitting reply. "Let the game begin. People of the state will vote for the BJP and give a befitting reply to TMC for its misrule. Paribartan (change) will happen very soon," Ghosh said. The jingle penned by Debanshu says, "Baire theke bargi ashe/Niyom kore proti mashe/Amio achi, tumio robe/Bondhu ebar khela hobe! (Looters from outside are visiting the state every month, but we are ready to face them. The game is on). . Read all the Latest News, Breaking News and Coronavirus News here(This story has not been edited by News18 staff and is published from a syndicated news agency feed - PTI)
english
Palghar: In a shocking incident, a 25-year-old man from Nallasopara in Maharashtra allegedly strangulated a woman with a shoelace at his residence because she refused to have sex with him. The Maharashtra Police on Monday said accused Haridas Nirgude and victim Ankita More (20) became friends through social networking site 'Facebook'. Nirgude had called More to his house in Nallasopara on Sunday. After the victim reached there, he demanded sexual favours and as she refused it, the man killed her, an officer said. The accused then threw the victim's body. Locals alerted the police, following which officials reached the spot and took her body, the officer said. According to The Times of India, the girl's body was found on the ground floor of Taniya Monarch building, Alkapuri, Nalasopara (east). The accused was detained and he confessed the crime, the officer said, adding the process to arrest him was underway. Notably, this is not the first time people have used the social media to help plan out their crimes. On Sunday, a 19-year-old woman filed a complaint with the Jammu and Kashmir Police, alleging rape by a youth from Himachal Pradesh in Jammu on the pretext of marriage after befriending her on Facebook. A case of rape was registered against the accused, a resident of Kullu, and efforts are on to nab him, a police official had said on Sunday. In her complaint, the woman has said that she had developed a friendship with the accused on Facebook about seven years ago and thereafter he lured her for marriage and made physical relations with her. She claimed that the youth has now refused to marry her, the officer said, adding that they have begun the investigation.
english
Shiv Sena and BJP fight over Marathi issue ahead of BMC polls. After allegations from Uddhav Thackeray and his son Aaditya Thackeray that the present government in Maharashtra is helping Gujarat at the cost of their own state, BJP has now launched a fresh counter attack. Mumbai: After allegations from Uddhav Thackeray and his son Aaditya Thackeray that the present government in Maharashtra is helping Gujarat at the cost of their own state, BJP has now launched a fresh counter attack. Aaditya Thackeray had alleged that the Vedanta Foxconn project which was won over by Maharashtra as per the claims of Maha Vikas Aghadi government, was handed over to Gujarat by the present government. Aaditya Thackeray had also claimed that the project was supposed to provide jobs to the youth of Maharashtra which has been lost now. BJP leader Nitesh Rane launched a counter allegation raising his concern about the Marathi population being forced to leave the city of Mumbai. The BJP MLA also wrote a letter to Deputy Chief Minister Devendra Fadnavis claiming that a section of real estate developers close to a certain political party were responsible in forcing out Marathis from Mumbai. "Just ahead of the BMC elections now, the Uddhav and Aditya Sena have started this false rhetoric that Mumbai will be cut off from Maharashtra. They are spreading these false fears that Marathi people are being forced out of Mumbai city. However, the truth is that they are close to developers who are responsible for Marathis being forced out of Mumbai," Rane said. "Many Marathis used to stay in slums which were slated to be redeveloped under SRA schemes. The builders had agreed to pay rent to house owners until the flat possession was given. However, many of these builders purposely flouted these norms and stopped paying rent to owners. The projects were delayed and thus Marathis were forced out of Mumbai because of no option. Patra Chawl in which there is involvement of Sena leader Sanjay Raut is one such example," Rane alleged. "Marathi families who have been staying in Mumbai since generations are forced to stay in the outskirts of Mumbai or go to their native places because of this builder-BMC-Sena nexus. No proper action was taken against these defaulting builders. The inaction or support of this party to certain defrauding builders at the expense of Marathis is shameful," Rane said. The BJP MLA has also requested Fadnavis to look into the matter, punish the defaulting builders and get justice for the Mumbaikars who suffered in this scam. Manipur Unrest: CM N Biren Singh Hints At Involvement Of 'External Forces' In Ethnic Violence, Calls It 'Pre-Planned'
english
from django.apps import AppConfig class ApiAppConfig(AppConfig): name = 'api_app'
python
import json import sys def compatible_loads(json_data): """ Function json.loads in python 3.0 - 3.5 can't handle bytes, so this function handle it. :param json_data: :return: unicode (str if it's python 3) """ if isinstance(json_data, bytes) and (3, 0) <= sys.version_info < (3, 6): json_data = json_data.decode("utf-8") return json.loads(json_data) def get_massage_from_io_error(error): """ :param: IOError :return: error message """ if sys.version_info >= (3, 0): return error.strerror else: return error.message
python
<filename>google-ads/src/main/java/com/google/ads/googleads/v3/services/RecommendationServiceProto.java // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v3/services/recommendation_service.proto package com.google.ads.googleads.v3.services; public final class RecommendationServiceProto { private RecommendationServiceProto() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } static final com.google.protobuf.Descriptors.Descriptor internal_static_google_ads_googleads_v3_services_GetRecommendationRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_googleads_v3_services_GetRecommendationRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_ads_googleads_v3_services_ApplyRecommendationRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_googleads_v3_services_ApplyRecommendationRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_CampaignBudgetParameters_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_CampaignBudgetParameters_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_TextAdParameters_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_TextAdParameters_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_KeywordParameters_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_KeywordParameters_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_TargetCpaOptInParameters_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_TargetCpaOptInParameters_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_CalloutExtensionParameters_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_CalloutExtensionParameters_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_CallExtensionParameters_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_CallExtensionParameters_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_SitelinkExtensionParameters_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_SitelinkExtensionParameters_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_MoveUnusedBudgetParameters_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_MoveUnusedBudgetParameters_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_ads_googleads_v3_services_ApplyRecommendationResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_googleads_v3_services_ApplyRecommendationResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_ads_googleads_v3_services_ApplyRecommendationResult_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_googleads_v3_services_ApplyRecommendationResult_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_ads_googleads_v3_services_DismissRecommendationRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_googleads_v3_services_DismissRecommendationRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_ads_googleads_v3_services_DismissRecommendationRequest_DismissRecommendationOperation_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_googleads_v3_services_DismissRecommendationRequest_DismissRecommendationOperation_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_ads_googleads_v3_services_DismissRecommendationResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_googleads_v3_services_DismissRecommendationResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_ads_googleads_v3_services_DismissRecommendationResponse_DismissRecommendationResult_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_googleads_v3_services_DismissRecommendationResponse_DismissRecommendationResult_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n=google/ads/googleads/v3/services/recom" + "mendation_service.proto\022 google.ads.goog" + "leads.v3.services\032/google/ads/googleads/" + "v3/common/extensions.proto\0326google/ads/g" + "oogleads/v3/enums/keyword_match_type.pro" + "to\032*google/ads/googleads/v3/resources/ad" + ".proto\0326google/ads/googleads/v3/resource" + "s/recommendation.proto\032\034google/api/annot" + "ations.proto\032\027google/api/client.proto\032\037g" + "oogle/api/field_behavior.proto\032\031google/a" + "pi/resource.proto\032\036google/protobuf/wrapp" + "ers.proto\032\027google/rpc/status.proto\"b\n\030Ge" + "tRecommendationRequest\022F\n\rresource_name\030" + "\001 \001(\tB/\340A\002\372A)\n\'googleads.googleapis.com/" + "Recommendation\"\250\001\n\032ApplyRecommendationRe" + "quest\022\030\n\013customer_id\030\001 \001(\tB\003\340A\002\022W\n\nopera" + "tions\030\002 \003(\0132>.google.ads.googleads.v3.se" + "rvices.ApplyRecommendationOperationB\003\340A\002" + "\022\027\n\017partial_failure\030\003 \001(\010\"\202\017\n\034ApplyRecom" + "mendationOperation\022\025\n\rresource_name\030\001 \001(" + "\t\022r\n\017campaign_budget\030\002 \001(\0132W.google.ads." + "googleads.v3.services.ApplyRecommendatio" + "nOperation.CampaignBudgetParametersH\000\022b\n" + "\007text_ad\030\003 \001(\0132O.google.ads.googleads.v3" + ".services.ApplyRecommendationOperation.T" + "extAdParametersH\000\022c\n\007keyword\030\004 \001(\0132P.goo" + "gle.ads.googleads.v3.services.ApplyRecom" + "mendationOperation.KeywordParametersH\000\022t" + "\n\021target_cpa_opt_in\030\005 \001(\0132W.google.ads.g" + "oogleads.v3.services.ApplyRecommendation" + "Operation.TargetCpaOptInParametersH\000\022v\n\021" + "callout_extension\030\006 \001(\0132Y.google.ads.goo" + "gleads.v3.services.ApplyRecommendationOp" + "eration.CalloutExtensionParametersH\000\022p\n\016" + "call_extension\030\007 \001(\0132V.google.ads.google" + "ads.v3.services.ApplyRecommendationOpera" + "tion.CallExtensionParametersH\000\022x\n\022siteli" + "nk_extension\030\010 \001(\0132Z.google.ads.googlead" + "s.v3.services.ApplyRecommendationOperati" + "on.SitelinkExtensionParametersH\000\022w\n\022move" + "_unused_budget\030\t \001(\0132Y.google.ads.google" + "ads.v3.services.ApplyRecommendationOpera" + "tion.MoveUnusedBudgetParametersH\000\032Y\n\030Cam" + "paignBudgetParameters\022=\n\030new_budget_amou" + "nt_micros\030\001 \001(\0132\033.google.protobuf.Int64V" + "alue\032E\n\020TextAdParameters\0221\n\002ad\030\001 \001(\0132%.g" + "oogle.ads.googleads.v3.resources.Ad\032\322\001\n\021" + "KeywordParameters\022.\n\010ad_group\030\001 \001(\0132\034.go" + "ogle.protobuf.StringValue\022X\n\nmatch_type\030" + "\002 \001(\0162D.google.ads.googleads.v3.enums.Ke" + "ywordMatchTypeEnum.KeywordMatchType\0223\n\016c" + "pc_bid_micros\030\003 \001(\0132\033.google.protobuf.In" + "t64Value\032\232\001\n\030TargetCpaOptInParameters\0226\n" + "\021target_cpa_micros\030\001 \001(\0132\033.google.protob" + "uf.Int64Value\022F\n!new_campaign_budget_amo" + "unt_micros\030\002 \001(\0132\033.google.protobuf.Int64" + "Value\032i\n\032CalloutExtensionParameters\022K\n\022c" + "allout_extensions\030\001 \003(\0132/.google.ads.goo" + "gleads.v3.common.CalloutFeedItem\032`\n\027Call" + "ExtensionParameters\022E\n\017call_extensions\030\001" + " \003(\0132,.google.ads.googleads.v3.common.Ca" + "llFeedItem\032l\n\033SitelinkExtensionParameter" + "s\022M\n\023sitelink_extensions\030\001 \003(\01320.google." + "ads.googleads.v3.common.SitelinkFeedItem" + "\032X\n\032MoveUnusedBudgetParameters\022:\n\025budget" + "_micros_to_move\030\001 \001(\0132\033.google.protobuf." + "Int64ValueB\022\n\020apply_parameters\"\236\001\n\033Apply" + "RecommendationResponse\022L\n\007results\030\001 \003(\0132" + ";.google.ads.googleads.v3.services.Apply" + "RecommendationResult\0221\n\025partial_failure_" + "error\030\002 \001(\0132\022.google.rpc.Status\"2\n\031Apply" + "RecommendationResult\022\025\n\rresource_name\030\001 " + "\001(\t\"\202\002\n\034DismissRecommendationRequest\022\030\n\013" + "customer_id\030\001 \001(\tB\003\340A\002\022v\n\noperations\030\003 \003" + "(\0132].google.ads.googleads.v3.services.Di" + "smissRecommendationRequest.DismissRecomm" + "endationOperationB\003\340A\002\022\027\n\017partial_failur" + "e\030\002 \001(\010\0327\n\036DismissRecommendationOperatio" + "n\022\025\n\rresource_name\030\001 \001(\t\"\366\001\n\035DismissReco" + "mmendationResponse\022l\n\007results\030\001 \003(\0132[.go" + "ogle.ads.googleads.v3.services.DismissRe" + "commendationResponse.DismissRecommendati" + "onResult\0221\n\025partial_failure_error\030\002 \001(\0132" + "\022.google.rpc.Status\0324\n\033DismissRecommenda" + "tionResult\022\025\n\rresource_name\030\001 \001(\t2\350\005\n\025Re" + "commendationService\022\315\001\n\021GetRecommendatio" + "n\022:.google.ads.googleads.v3.services.Get" + "RecommendationRequest\0321.google.ads.googl" + "eads.v3.resources.Recommendation\"I\202\323\344\223\0023" + "\0221/v3/{resource_name=customers/*/recomme" + "ndations/*}\332A\rresource_name\022\353\001\n\023ApplyRec" + "ommendation\022<.google.ads.googleads.v3.se" + "rvices.ApplyRecommendationRequest\032=.goog" + "le.ads.googleads.v3.services.ApplyRecomm" + "endationResponse\"W\202\323\344\223\0028\"3/v3/customers/" + "{customer_id=*}/recommendations:apply:\001*" + "\332A\026customer_id,operations\022\363\001\n\025DismissRec" + "ommendation\022>.google.ads.googleads.v3.se" + "rvices.DismissRecommendationRequest\032?.go" + "ogle.ads.googleads.v3.services.DismissRe" + "commendationResponse\"Y\202\323\344\223\002:\"5/v3/custom" + "ers/{customer_id=*}/recommendations:dism" + "iss:\001*\332A\026customer_id,operations\032\033\312A\030goog" + "leads.googleapis.comB\201\002\n$com.google.ads." + "googleads.v3.servicesB\032RecommendationSer" + "viceProtoP\001ZHgoogle.golang.org/genproto/" + "googleapis/ads/googleads/v3/services;ser" + "vices\242\002\003GAA\252\002 Google.Ads.GoogleAds.V3.Se" + "rvices\312\002 Google\\Ads\\GoogleAds\\V3\\Service" + "s\352\002$Google::Ads::GoogleAds::V3::Services" + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.ads.googleads.v3.common.ExtensionsProto.getDescriptor(), com.google.ads.googleads.v3.enums.KeywordMatchTypeProto.getDescriptor(), com.google.ads.googleads.v3.resources.AdProto.getDescriptor(), com.google.ads.googleads.v3.resources.RecommendationProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.protobuf.WrappersProto.getDescriptor(), com.google.rpc.StatusProto.getDescriptor(), }); internal_static_google_ads_googleads_v3_services_GetRecommendationRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_ads_googleads_v3_services_GetRecommendationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v3_services_GetRecommendationRequest_descriptor, new java.lang.String[] { "ResourceName", }); internal_static_google_ads_googleads_v3_services_ApplyRecommendationRequest_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_google_ads_googleads_v3_services_ApplyRecommendationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v3_services_ApplyRecommendationRequest_descriptor, new java.lang.String[] { "CustomerId", "Operations", "PartialFailure", }); internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_descriptor, new java.lang.String[] { "ResourceName", "CampaignBudget", "TextAd", "Keyword", "TargetCpaOptIn", "CalloutExtension", "CallExtension", "SitelinkExtension", "MoveUnusedBudget", "ApplyParameters", }); internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_CampaignBudgetParameters_descriptor = internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_descriptor.getNestedTypes().get(0); internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_CampaignBudgetParameters_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_CampaignBudgetParameters_descriptor, new java.lang.String[] { "NewBudgetAmountMicros", }); internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_TextAdParameters_descriptor = internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_descriptor.getNestedTypes().get(1); internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_TextAdParameters_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_TextAdParameters_descriptor, new java.lang.String[] { "Ad", }); internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_KeywordParameters_descriptor = internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_descriptor.getNestedTypes().get(2); internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_KeywordParameters_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_KeywordParameters_descriptor, new java.lang.String[] { "AdGroup", "MatchType", "CpcBidMicros", }); internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_TargetCpaOptInParameters_descriptor = internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_descriptor.getNestedTypes().get(3); internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_TargetCpaOptInParameters_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_TargetCpaOptInParameters_descriptor, new java.lang.String[] { "TargetCpaMicros", "NewCampaignBudgetAmountMicros", }); internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_CalloutExtensionParameters_descriptor = internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_descriptor.getNestedTypes().get(4); internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_CalloutExtensionParameters_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_CalloutExtensionParameters_descriptor, new java.lang.String[] { "CalloutExtensions", }); internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_CallExtensionParameters_descriptor = internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_descriptor.getNestedTypes().get(5); internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_CallExtensionParameters_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_CallExtensionParameters_descriptor, new java.lang.String[] { "CallExtensions", }); internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_SitelinkExtensionParameters_descriptor = internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_descriptor.getNestedTypes().get(6); internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_SitelinkExtensionParameters_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_SitelinkExtensionParameters_descriptor, new java.lang.String[] { "SitelinkExtensions", }); internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_MoveUnusedBudgetParameters_descriptor = internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_descriptor.getNestedTypes().get(7); internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_MoveUnusedBudgetParameters_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v3_services_ApplyRecommendationOperation_MoveUnusedBudgetParameters_descriptor, new java.lang.String[] { "BudgetMicrosToMove", }); internal_static_google_ads_googleads_v3_services_ApplyRecommendationResponse_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_google_ads_googleads_v3_services_ApplyRecommendationResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v3_services_ApplyRecommendationResponse_descriptor, new java.lang.String[] { "Results", "PartialFailureError", }); internal_static_google_ads_googleads_v3_services_ApplyRecommendationResult_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_google_ads_googleads_v3_services_ApplyRecommendationResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v3_services_ApplyRecommendationResult_descriptor, new java.lang.String[] { "ResourceName", }); internal_static_google_ads_googleads_v3_services_DismissRecommendationRequest_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_google_ads_googleads_v3_services_DismissRecommendationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v3_services_DismissRecommendationRequest_descriptor, new java.lang.String[] { "CustomerId", "Operations", "PartialFailure", }); internal_static_google_ads_googleads_v3_services_DismissRecommendationRequest_DismissRecommendationOperation_descriptor = internal_static_google_ads_googleads_v3_services_DismissRecommendationRequest_descriptor.getNestedTypes().get(0); internal_static_google_ads_googleads_v3_services_DismissRecommendationRequest_DismissRecommendationOperation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v3_services_DismissRecommendationRequest_DismissRecommendationOperation_descriptor, new java.lang.String[] { "ResourceName", }); internal_static_google_ads_googleads_v3_services_DismissRecommendationResponse_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_google_ads_googleads_v3_services_DismissRecommendationResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v3_services_DismissRecommendationResponse_descriptor, new java.lang.String[] { "Results", "PartialFailureError", }); internal_static_google_ads_googleads_v3_services_DismissRecommendationResponse_DismissRecommendationResult_descriptor = internal_static_google_ads_googleads_v3_services_DismissRecommendationResponse_descriptor.getNestedTypes().get(0); internal_static_google_ads_googleads_v3_services_DismissRecommendationResponse_DismissRecommendationResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v3_services_DismissRecommendationResponse_DismissRecommendationResult_descriptor, new java.lang.String[] { "ResourceName", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.AnnotationsProto.http); registry.add(com.google.api.ClientProto.methodSignature); registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.ads.googleads.v3.common.ExtensionsProto.getDescriptor(); com.google.ads.googleads.v3.enums.KeywordMatchTypeProto.getDescriptor(); com.google.ads.googleads.v3.resources.AdProto.getDescriptor(); com.google.ads.googleads.v3.resources.RecommendationProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.WrappersProto.getDescriptor(); com.google.rpc.StatusProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }
java
Jimmy Garoppolo is entering the final year of his contract with the San Francisco 49ers, making him a trade candidate during the 2022 NFL offseason. The 49ers are unlikely to extend Garoppolo beyond this season, so it would be wise to trade him now and receive something back for him, rather than allowing him to walk for nothing next year. The main reason why the 49ers are unlikely to extend Garoppolo's contract is because they traded all the way up to the third pick of the 2021 NFL Draft to select Trey Lance. He was drafted to replace Garoppolo at some point, especially because they surrendered draft capital to acquire him. If the 49ers make Garoppolo available in the trade market, there will likely be several teams interested. While acquiring a veteran quarterback with Super Bowl experience sounds attractive on the surface, he may not be the ideal fit for certain teams. Here are three teams who would be better off avoiding Jimmy Garoppolo. Head coach Ron Rivera believes the Washington Commanders will be active in the quarterback market during the offseason. While they could use an upgrade, Garoppolo wasn't significantly better than Taylor Heinicke in the 2021 season. They threw the same number of touchdowns while Heinicke threw three more interceptions and also accumulated almost 300 more rushing yards. Both quarterbacks started 15 games in the 2021 season. Garoppolo earned two more wins than Heinicke but did so with a far superior roster. While Garoppolo is an upgrade, it's probably not significant enough to be worth trading for and giving up draft picks. The Denver Broncos are expected to be aggressive in pursuing a quarterback during the 2022 offseason, but it would be wise for them to avoid Garoppolo. Their pair of quarterbacks last season, Teddy Bridgewater and Drew Lock, combined to throw the same number of touchdowns as Garoppolo with more yards and fewer interceptions. Acquiring Garoppolo doesn't solve their issue. The New Orleans Saints would be much better off signing Jameis Winston to a new contract than trading for Jimmy Garoppolo. Winston started seven games for the Saints last season, recording a 5-2 record with 14 touchdowns and just three interceptions. He could likely be signed for a similar price tag and it wouldn't cost them draft picks to acquire him.acquire him.
english
<!DOCTYPE html> <html lang="pt-br"> <head> <meta meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Números 12</title> <meta name="description" content="Então disse: Ouvi agora as minhas palavras: se entre vós houver profeta, eu, o Senhor, a ele me farei conhecer em visão, em sonhos falarei com ele. Mas não é assim com o meu servo Moisés, que é fiel em toda a minha casa; boca a boca falo com ele, claramente e não em enigmas; pois ele contempla a forma do Senhor. Por que, pois, não temestes falar contra o meu servo, contra Moisés? Assim se acendeu a ira do Senhor contra eles; e ele se retirou; também a nuvem se retirou de sobre a tenda; e eis que Miriã se tornara leprosa, branca como a neve; e olhou Arão para Miriã e eis que estava leprosa. Pelo que Arão disse a Moisés: Ah, meu senhor! rogo-te não ponhas sobre nós este pecado, porque procedemos loucamente, e pecamos."> <meta name="keywords" content="Arão, carne, cuchita, coluna, Deus, envergonhada, fechada, Hazerote, leprosa, loucamente, Moisés, Miriã, pecamos, revelação"> <meta name="robots" content="index, follow"> <meta name="author" content="Marcus"> <link rel="stylesheet" type="text/css" href="../../css/style.css"> <link rel="icon" href="../../imagens/bible.ico"> </head> <body> <header class="cabecalho "> <a href="https://mlssystem.github.io/trabalhadoresdaseara/"> <h1 class="logo">Trabalhadores da Seara</h1> </a> </header> <div class="img-ico"> <a href="../../index.html"><img src="../../imagens/bible.ico"></a> </div> <p> </p> <div class="titulo"> <a href="../../index.html"><h1>BÍBLIA SAGRADA</h1></a> </div> <section id="tbl-radius" class="pagina-inicial"> <a href="numeros.html"> <h3>NÚMEROS 12</h3> </a> <p><span class="numero">1 </span> Ora, falaram Miriã e Arão contra Moisés, por causa da mulher cuchita que este tomara; porquanto tinha tomado uma mulher cuchita.</p> <p><span class="numero">2 </span> E disseram: Porventura falou o Senhor somente por Moisés? Não falou também por nós? E o Senhor o ouviu.</p> <p><span class="numero">3 </span> Ora, Moisés era homem mui manso, mais do que todos os homens que havia sobre a terra.</p> <p><span class="numero">4 </span> E logo o Senhor disse a Moisés, a Arão e a Miriã: Saí vos três à tenda da revelação. E saíram eles três.</p> <p><span class="numero">5 </span> Então o Senhor desceu em uma coluna de nuvem, e se pôs à porta da tenda; depois chamou a Arão e a Miriã, e os dois acudiram.</p> <p><span class="numero">6 </span> Então disse: Ouvi agora as minhas palavras: se entre vós houver profeta, eu, o Senhor, a ele me farei conhecer em visão, em sonhos falarei com ele.</p> <p><span class="numero">7 </span> Mas não é assim com o meu servo Moisés, que é fiel em toda a minha casa;</p> <p><span class="numero">8 </span> boca a boca falo com ele, claramente e não em enigmas; pois ele contempla a forma do Senhor. Por que, pois, não temestes falar contra o meu servo, contra Moisés?</p> <p><span class="numero">9 </span> Assim se acendeu a ira do Senhor contra eles; e ele se retirou;</p> <p><span class="numero">10</span> também a nuvem se retirou de sobre a tenda; e eis que Miriã se tornara leprosa, branca como a neve; e olhou Arão para Miriã e eis que estava leprosa.</p> <p><span class="numero">11</span> Pelo que Arão disse a Moisés: Ah, meu senhor! rogo-te não ponhas sobre nós este pecado, porque procedemos loucamente, e pecamos.</p> <p><span class="numero">12</span> Não seja ela como um morto que, ao sair do ventre de sua mãe, tenha a sua carne já meio consumida.</p> <p><span class="numero">13</span> Clamou, pois, Moisés ao Senhor, dizendo: Ó Deus, rogo-te que a cures.</p> <p><span class="numero">14</span> Respondeu o Senhor a Moisés: Se seu pai lhe tivesse cuspido na cara não seria envergonhada por sete dias? Esteja fechada por sete dias fora do arraial, e depois se recolherá outra vez.</p> <p><span class="numero">15</span> Assim Miriã esteve fechada fora do arraial por sete dias; e o povo não partiu, enquanto Miriã não se recolheu de novo.</p> <p><span class="numero">16</span> Mas depois o povo partiu de Hazerote, e acampou-se no deserto de Parã.&nbsp;<a href="numeros-13.html"><span class="proximo">Próximo capítulo</span></a></p> <div class="cap-rod"> <h2>Capítulos</h2> </div> <table class="nao"> <tbody> <tr> <td><a href="numeros-1.html"><p>1</p></a></td> <td><a href="numeros-2.html"><p>2</p></a></td> <td><a href="numeros-3.html"><p>3</p></a></td> <td><a href="numeros-4.html"><p>4</p></a></td> <td><a href="numeros-5.html"><p>5</p></a></td> <td><a href="numeros-6.html"><p>6</p></a></td> <td><a href="numeros-7.html"><p>7</p></a></td> <td><a href="numeros-8.html"><p>8</p></a></td> <td><a href="numeros-9.html"><p>9</p></a></td> <td><a href="numeros-10.html"><p>10</p></a></td> </tr> <tr> <td><a href="numeros-11.html"><p>11</p></a></td> <td><a class="ativo" href="numeros-12.html"><p>12</p></a></td> <td><a href="numeros-13.html"><p>13</p></a></td> <td><a href="numeros-14.html"><p>14</p></a></td> <td><a href="numeros-15.html"><p>15</p></a></td> <td><a href="numeros-16.html"><p>16</p></a></td> <td><a href="numeros-17.html"><p>17</p></a></td> <td><a href="numeros-18.html"><p>18</p></a></td> <td><a href="numeros-19.html"><p>19</p></a></td> <td><a href="numeros-20.html"><p>20</p></a></td> </tr> <tr> <td><a href="numeros-21.html"><p>21</p></a></td> <td><a href="numeros-22.html"><p>22</p></a></td> <td><a href="numeros-23.html"><p>23</p></a></td> <td><a href="numeros-24.html"><p>24</p></a></td> <td><a href="numeros-25.html"><p>25</p></a></td> <td><a href="numeros-26.html"><p>26</p></a></td> <td><a href="numeros-27.html"><p>27</p></a></td> <td><a href="numeros-28.html"><p>28</p></a></td> <td><a href="numeros-29.html"><p>29</p></a></td> <td><a href="numeros-30.html"><p>30</p></a></td> </tr> <tr> <td><a href="numeros-31.html"><p>31</p></a></td> <td><a href="numeros-32.html"><p>32</p></a></td> <td><a href="numeros-33.html"><p>33</p></a></td> <td><a href="numeros-34.html"><p>34</p></a></td> <td><a href="numeros-35.html"><p>35</p></a></td> <td><a href="numeros-36.html"><p>36</p></a></td> </tr> </tbody> </table> </section> <footer> <p>Copyright &copy;2020</p> <p><a href="https://github.com/bibliasagrada" target="_blank">Saiba mais sobre o Projeto</a></p> <p class="mls">by ¬<NAME></p> <a href="numeros-12.html"><h1 class="top">top</h1></a> </footer> </body> </html>
html
<gh_stars>0 const express = require("express"); const mongoose = require('mongoose') const app = express(); const PORT = process.env.PORT || 3001; const routes = require("./routes/api") const jwt = require("express-jwt"); const jwksRsa = require("jwks-rsa"); const { Client } = require("./models/Client") require("dotenv").config(); const authorizeAccessToken = jwt({ secret: jwksRsa.expressJwtSecret({ cache: true, rateLimit: true, jwksRequestsPerMinute: 5, jwksUri: `${process.env.AUTH0_DOMAIN}.well-known/jwks.json` }), audience: process.env.AUTH0_AUDIENCE, issuer: [ process.env.AUTH0_DOMAIN ], algorithms: ["RS256"] }); // Define middleware here app.use(express.urlencoded({ extended: true })); app.use(express.json()); // Serve up static assets (usually on heroku) if (process.env.NODE_ENV === "production") { app.use(express.static("client/build")); } if (app.get("env") === "production") { session.cookie.secure = true; } mongoose.connect(process.env.MONGODB_URI || 'mongodb://localhost/gcas-clients', { useNewUrlParser: true, useUnifiedTopology: true, useCreateIndex: true, useFindAndModify: false }) app.get('/api/messages/protected-message', authorizeAccessToken, async (req, res) => { try { console.log(req.user) res.json({ message: `private endpoint` }) } catch (err) { res.json({ message: `failed` }) } }) app.use(routes); // Start the API server app.listen(PORT, function() { console.log(`🌎 ==> API Server now listening on PORT ${PORT}!`); });
javascript
/* * Copyright © 2005 - 2021 Schlichtherle IT Services. * All rights reserved. Use is subject to license terms. */ /** * Reads and writes files according to the Random Access Encryption * Specification (RAES). * RAES is an extensible file format specification which enables fast, * transparent random read access to encrypted arbitrary data (the * <i>pay load</i>) with multistep authentication. * <p> * RAES is <b>extensible</b>, which means that the file header contains a * single byte to identify the <i>Type</i> of the RAES file. * Each data type specifies the cryptographic parameters required to decrypt or * encrypt and authenticate the <i>pay load</i> data when reading or writing * files of this type. * <p> * Currently, only Type-0 is specified, but more types may be added in future. * Note that it is an error for an implementation to process an unknown type. * <p> * RAES features <b>transparent random read access</b> to the encrypted data. * In order to do so, RAES has some invariants: * <ul> * <li>RAES uses only block ciphers which are operated in Counter Mode (CTR). * According to <a href="http://csrc.nist.gov/CryptoToolkit/modes/workshop1/papers/lipmaa-ctr.pdf">cryptanalysis</a> * by the US National Institute of Standards and Technology (NIST), CTR * mode is considered to provide a strong level of privacy for the * encrypted data. * <li>RAES provides two methods to authenticate the pay load: * <ol> * <li>The first, mandatory method is the <i>cipher Key and text Length * Authentication Code (KLAC)</i>. * <li>The second, optional method is the well-known * <i>Message Authentication Code</i> (MAC) on the full cipher text. * </ol> * </ul> * <p> * The mandatory KLAC method authenticates the cipher key and the length of the * cipher text only. * This is a very limited authentication which does not prevent an opponent to * modify the contents of the cipher text. * However, its processing time is constant (O(1)). * Hence, relying on this authentication method alone may be acceptable if the * pay load data provides another considerably secure means of authentication. * <p> * The optional MAC method authenticates the full cipher text. * This is secure and should be used whenever the pay load does not to provide * additional means of authentication. * However, its processing time is linear to the size of the file (O(n)). * Please note that this option does not require the cipher text to be * decrypted first, which features comparably fast processing. * <p> * An example of a pay load which offers an authentication method by itself is * the ZIP file format specification: Entries in a ZIP file are checksummed * with CRC-32, which is applied to decompressed (deflated) source data. * It is considered computationally infeasible to attack the integrity of a ZIP * file which contains only compressed (deflated) entries and has a * considerable size (say, at least 512KB) so that after decryption of the * archive <em>and</em> decompression (inflation) the CRC-32 value of an entry * still matches! * This should hold true even though CRC-32 is not at all a good cryptographic * hash function because of its frequent collisions, its linear output and * small output size. * It is the ZIP inflation algorithm which actually comes to its rescue! * * <h3>RAES types</h3> * <p> * As said, RAES currently defines only <i>Type-0</i> files. * Type-0 has the following specifications: * <ul> * <li>The encryption scheme is password based according to * <a href="http://www.rsasecurity.com/rsalabs/pkcs/pkcs-5/index.html">PKCS #5</a> * V2.0 with the password base key derivation function (PBKDF) according to * <a href="http://www.rsasecurity.com/rsalabs/pkcs/pkcs-12/index.html">PKCS #12</a> * V1.0. * The latter allows to use Unicode password characters. </li> * <li>The cipher algorithm is the Advanced Encryption Standard (AES) with a * key length of 128, 192 or 256 bits. </li> <li> The salt is the same * length as the cipher key length. * <li>The digest used to derive the cipher key, Initialization Vector (IV) and * authentication codes is the Secure Hash Algorithm (SHA) Version 2 with * 256 bits output length. * </ul> * <p> * As usual with PKCS #12 the Initialization Vector (IV) for the CTR mode is * derived from the password, the salt and the counter by the same Pseudo * Random Number Generation (PRNG) function which is also used to derive the * cipher key - so SHA-256. </p> <p> Type 0 also supports the use of key files * instead of passwords. If a key file is used for encryption, the first 512 * bytes of the file are decoded into 16 bit Unicode characters in big endian * format (without the byte order indicator) so that the byte order is * preserved when the resulting character array is then again encoded into a * byte array according to PKCS #12. * <p> * A file which shall be used as a key file for <em>encryption</em> must not be * shorter than 512 bytes. * However, in order to provide a certain level of fault tolerance for bogus * RAES implementations, when using a key file for <em>decryption</em> an * implementation is only required to assert that no more than the first 512 * bytes of the key file are used. * So the key file may actually be shorter. * <p> * As an optional step, an implementation should also check whether the key * file used for encryption is a reasonably good source of entropy. * The easiest way to achieve this is to use a compression API like * {@link java.util.zip.Deflater}. * After compression, the result should be no shorter than the maximum key size * (256 bits). * Assuming a worst-case overhead for the deflater's algorithm of 100%, the * minimum number of compressed bytes for the first 512 bytes of a key file * should be no less than 2 * 256 / 8 = 64 bytes. */ @javax.annotation.Nonnull @javax.annotation.ParametersAreNonnullByDefault package net.java.truevfs.driver.zip.raes.crypto;
java
Bhubaneswar: The Special Task Force (STF) of Odisha Crime Branch has seized around 2.06 kilogram of brown sugar with the arrest of three persons in Balasore district on Thursday. Reportedly, acting on an intelligence input, a team of STF from Bhubaneswar conducted a raid against the illegal trade of Narcotic Drugs Jaleswar Bazar in Balasore and nabbed three persons. 066Gms and other incriminating materials were recovered and seized from their possession. A case in this regard under Narcotic Drugs and Psychotropic Substances (NDPS) Act was registered and investigation is underway in this regard. Since 2020, STF in the special drive against narcotic drugs has seized more than 32 Kg of Brown Sugar/Heroin and more than 66 quintals ( 6600 kg) of Ganja /Marijuna and arrested more than 100 drug dealers/peddlers.
english
Tamil movie 'Goa' which is releasing in Telugu with the same title is all set to hit the screens at the end of this month. Though the movie was supposed to release already, it got postponed due to delay in dubbing work. Now that the movie just completed the dubbing work, it is ready for release. In Tamil, Soundarya Rajinikanth had produced this romantic comedy and this movie turned out to be a major hit there. Vaibhav and Sneha are the main leads while Simbhu and Nayanatara will be seen in cameo appearances. Pia Bajpayee, Prasanna,Jai, Premji, Aravind Akash, Sampath Raj et al will be seen playing key roles. Yuvan Shankar Raja composed music for it. "It is a story of three youngsters who aspire to marry foreign girls like their friend. They think Goa is the best place to find foreign girls and hence go there. It is hilarious and absolutely entertaining" says Gangavarapu Srinivasulu Naidu from Sai Balaji films banner who is presenting this movie to Telugu audience. Follow us on Google News and stay updated with the latest!
english
package caller import ( "errors" "io/ioutil" "os/exec" "runtime/debug" "time" "go.uber.org/zap" "sercomm.com/demeter/commons/logger" ) // Call ... Execute ubus CLI // method - method of target ubus path depends on definitions of each ubus command. E.g. "Get","Install","Delete" etc. // path - ubus command path. E.g. "Services.Management.LCM.ExecutionEnvironments" // payload - payload JSON string. Please refer to Sercomm_LCM_UBUS_API.xlsx or any up-to-date document func Call(method string, path string, payloadString string) (string, error) { //logger.New().Info("UBUS CALL: ", zap.String("PATH", path), zap.String("METHOD", method), zap.String("PAYLOAD", payloadString)) var responseString string var err error var cmd *exec.Cmd if "" != payloadString { cmd = exec.Command("ubus", "call", path, method, payloadString) } else { cmd = exec.Command("ubus", "call", path, method) } stdout, err := cmd.StdoutPipe() defer stdout.Close() if err != nil { logger.New().Info("UBUS ERROR: ", zap.String("MESSAGE", err.Error())) return responseString, err } stderr, err := cmd.StderrPipe() defer stderr.Close() if err != nil { logger.New().Info("UBUS ERROR: ", zap.String("MESSAGE", err.Error())) return responseString, err } // execute the command if err := cmd.Start(); err != nil { logger.New().Info("UBUS ERROR: ", zap.String("MESSAGE", err.Error())) return responseString, err } // read stderr buffer, err := ioutil.ReadAll(stderr) if nil == err { errMsg := string(buffer) if errMsg != "" { logger.New().Info("UBUS RESPONSE: ", zap.String("ERROR", errMsg)) err = errors.New(errMsg) } else { // read stdout buffer, err = ioutil.ReadAll(stdout) if nil == err { responseString = string(buffer) logger.New().Info("UBUS RESPONSE: ", zap.String("RESPONSE", responseString)) } } } // force killing the process if it cannot exit normally timer := time.AfterFunc(time.Duration(3)*time.Second, func() { if err := cmd.Process.Kill(); err != nil { logger.New().Info("UBUS FAILED TO KILL PROCESS: ", zap.String("MESSAGE", err.Error())) } logger.New().Info("UBUS PROCESS KILLED AS TIMEOUT REACHED") }) // wait for the process to finish or kill it after 3 seconds (whichever happens first): done := make(chan error, 1) defer close(done) go func() { done <- cmd.Wait() defer cmd.Process.Release() defer timer.Stop() defer debug.FreeOSMemory() }() select { case err := <-done: if err != nil { logger.New().Info("UBUS PROCESS FINISHED WITH ERROR: ", zap.String("MESSAGE", err.Error())) } } return responseString, err }
go
31 “Make the outer robe ·to be worn under the holy vest [L of the ephod], ·using only blue cloth [L all of blue]. 32 Make ·a hole [an opening] in the center for ·Aaron’s [L the] head, with a woven collar ·with an oversewn edge [L like a coat of mail; C the Hebrew is obscure] around the ·hole [opening] so it will not tear. 33 Make balls like pomegranates of blue, purple, and ·red [scarlet] thread, and hang them around the bottom of the outer robe with gold bells between them. 34 All around the bottom of the outer robe there should be a gold bell and a pomegranate ball, a gold bell and a pomegranate ball. 35 Aaron must wear this robe when he ·serves as priest [ministers]. ·The ringing of the bells [L Their sound] will be heard when he enters and leaves the Holy Place before the Lord so that he will not die. 36 “Make a ·strip [rosette; medallion; plate; L flower] of pure gold and ·carve [engrave] these words on it as you would ·carve [engrave] a ·seal [signet]: ‘Holy to the Lord.’ 37 Use blue ·ribbon [cord] to tie it to the turban; put it on the front of the turban. 38 Aaron must wear this on his forehead. In this way, he will ·be blamed [L carry/bear the guilt] if anything is wrong with the ·gifts [holy offerings] of the Israelites. ·Aaron must always wear this on his head [L It will always be on his forehead] so the Lord will ·accept the gifts of the people [L be favorable toward them].
english
package finmall //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. // // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. import ( "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" ) // GetDocumentDownloadUrl invokes the finmall.GetDocumentDownloadUrl API synchronously // api document: https://help.aliyun.com/api/finmall/getdocumentdownloadurl.html func (client *Client) GetDocumentDownloadUrl(request *GetDocumentDownloadUrlRequest) (response *GetDocumentDownloadUrlResponse, err error) { response = CreateGetDocumentDownloadUrlResponse() err = client.DoAction(request, response) return } // GetDocumentDownloadUrlWithChan invokes the finmall.GetDocumentDownloadUrl API asynchronously // api document: https://help.aliyun.com/api/finmall/getdocumentdownloadurl.html // asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) GetDocumentDownloadUrlWithChan(request *GetDocumentDownloadUrlRequest) (<-chan *GetDocumentDownloadUrlResponse, <-chan error) { responseChan := make(chan *GetDocumentDownloadUrlResponse, 1) errChan := make(chan error, 1) err := client.AddAsyncTask(func() { defer close(responseChan) defer close(errChan) response, err := client.GetDocumentDownloadUrl(request) if err != nil { errChan <- err } else { responseChan <- response } }) if err != nil { errChan <- err close(responseChan) close(errChan) } return responseChan, errChan } // GetDocumentDownloadUrlWithCallback invokes the finmall.GetDocumentDownloadUrl API asynchronously // api document: https://help.aliyun.com/api/finmall/getdocumentdownloadurl.html // asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) GetDocumentDownloadUrlWithCallback(request *GetDocumentDownloadUrlRequest, callback func(response *GetDocumentDownloadUrlResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { var response *GetDocumentDownloadUrlResponse var err error defer close(result) response, err = client.GetDocumentDownloadUrl(request) callback(response, err) result <- 1 }) if err != nil { defer close(result) callback(nil, err) result <- 0 } return result } // GetDocumentDownloadUrlRequest is the request struct for api GetDocumentDownloadUrl type GetDocumentDownloadUrlRequest struct { *requests.RpcRequest BizType string `position:"Query" name:"BizType"` BizId string `position:"Query" name:"BizId"` DocumentId string `position:"Query" name:"DocumentId"` UserId string `position:"Query" name:"UserId"` } // GetDocumentDownloadUrlResponse is the response struct for api GetDocumentDownloadUrl type GetDocumentDownloadUrlResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Code string `json:"Code" xml:"Code"` Message string `json:"Message" xml:"Message"` Data Data `json:"Data" xml:"Data"` } // CreateGetDocumentDownloadUrlRequest creates a request to invoke GetDocumentDownloadUrl API func CreateGetDocumentDownloadUrlRequest() (request *GetDocumentDownloadUrlRequest) { request = &GetDocumentDownloadUrlRequest{ RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("finmall", "2018-07-23", "GetDocumentDownloadUrl", "finmall", "openAPI") return } // CreateGetDocumentDownloadUrlResponse creates a response to parse from GetDocumentDownloadUrl response func CreateGetDocumentDownloadUrlResponse() (response *GetDocumentDownloadUrlResponse) { response = &GetDocumentDownloadUrlResponse{ BaseResponse: &responses.BaseResponse{}, } return }
go
/* ==UserStyle== @name LeMonde.fr no-Ads @namespace USO Archive @author <NAME> @description `Un petit style pour nettoyer lemonde.fr d'une grandes parties de ses publicités.N'hésitez pas à soumettre vos remarques sur la page de ce style (ici-même donc).` @version 20080918.11.2 @license NO-REDISTRIBUTION @preprocessor uso ==/UserStyle== */ @namespace url(http://www.w3.org/1999/xhtml); @-moz-document domain("lemonde.fr") { /* publicité */ iframe, .banner300, .banner728, .headerBanner, .googleAds, #pubOAS_middle, .appel-lepost, .AdvertMiddle1, .AdvertMiddle2, #twoColumnTextAdvert, #bottomAdvert, .advert, .tete3, .pub-top1, #placedemarche, #FinContentMiddle12 + div, table[bgcolor='#e7e7e7'], .pg-dtebg{ display: none !important; } /* annonces (emplois, rencontres) */ #announcesBlock, #talentsBlock{ display: none !important; } /* services (télé, météo, voyage) */ #servicesBlock{ display: none !important; } /* même sujet + pub */ #pave_meme_sujet_hidden, .tp-box{ display: none !important; } } @-moz-document domain("blog.lemonde.fr") { li > center{ display: none !important; } }
css
116/7 (17. 0 ov) 119/4 (16. 1 ov) 172/7 (20. 0 ov) 157 (20. 0 ov) Frenzied fans of Sunrisers Hyderabad filled the Rajiv Gandhi international stadium in Hyderabad on Sunday night to support the home team, which stormed into the play-offs of the Indian Premier League (IPL) 2013. Dale Steyn, the world's most feared pacer, on Tuesday backed his country South Africa to come out trumps in the three-Test series against India to be held at the end of this year, but was also wary of the quality of the opposing batting line-up. Sunrisers Hyderabad coach Tom Moody lavished praise on Mumbai Indians all-rounder Kieron Pollard, saying the visitors had won "80 per cent" of the IPL game before the West Indian got in their way. A hungry beast that goes by the name of Kieron Pollard tore into the Sunrisers Hyderabad bowlers as Mumbai Indians snatched an almost unbelievable win to keep their unbeaten streak at home intact in the Indian Premier League (IPL) 2013. A couple of blistering knocks from opener Shikhar Dhawan (59 off 41 balls) and skipper Cameron White (43 not out off 23 balls) ensured Mumbai Indians have a steep task keeping their unbeaten record at home intact as the Sunrisers Hyderabad put on a daunting 178 for three on the board in their Indian Premier League (IPL) encounter. With both teams eyeing a knock-out stage berth, a consistent Mumbai Indians will lock horns with dark horses Sunrisers Hyderabad in a crucial 62nd match of the Indian Premier League (IPL) tie at the Wankhede Stadium on Monday. The Sunrisers Hyderabad will look to get back to winning ways when they travel to Mohali to face Adam Gilchrist's Kings XI Punjab. Adam Gilchrist wins the toss and elects to field first against the Sunrisers Hyderabad in the 59th match of the Indian Premier League 2013. Sunrisers Hyderabad will aim to pick up pieces after their drubbing in the hands of Chennai Super Kings as they aim to get past Kings XI Punjab in the Indian Premier League (IPL) encounter at Mohali.
english
- Punjab government has allowed schools, colleges to reopen from tomorrow, February 7, 2022 onwards. - Schools can conduct offline classes from Classes 6 to 12. Students will have an option to opt for online classes as well. - The government had extended the closure till Feb 8 but following a protest by school teachers, staff and parents, schools will be reopening tomorrow. Government of Punjab has decided to reopen schools and colleges from February 7, 2022. This decision comes after it was announced at schools and colleges will remain closed till Feb 8. Many parents, teachers, and school management staff began to protest while claiming they won’t vote in the upcoming assembly elections if schools are not reopened. The state government issued an official circular today regarding the guidelines for reopening. The circular has stated that Schools (Classes 6 and above), colleges, universities, coaching institutions and other education institutions are allowed to open from February 7, 2022, for physical classes. A decision regarding resuming physical classes for students in classes lower than Class 6 will be communicated sometime soon and until then, online classes will continue for them. Students will also have the option to opt for either offline classes or continue with online classes. Institutions have been directed to adopt necessary social distancing norms, regular and frequent sanitisation and other COVID-19 SOPs. Schools have also been told to ensure students in the age group of 15 to 18 years must have at least had their first dose of vaccination before attending offline classes. Apart from Schools, gatherings have been allowed up to 500 people for indoor meets and 1000 people for outdoor meets. This number, however, will be subject to the upper limit of the 50% capacity of the venue. All COVID appropriate norms must be followed. These guidelines are to be followed in the state from today, February 6 till February 15, 2022. Punjab has reported a total of 7. 5 lakh COVID-19 cases as of February 5, 2022. Union Territory of Chandigarh alone has 90 thousand cases.
english
""" Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ import functools import hawq_constants from resource_management import Script from resource_management.core.resources.system import File from resource_management.libraries.functions.default import default from resource_management.libraries.resources.hdfs_resource import HdfsResource from resource_management.libraries.resources.xml_config import XmlConfig from resource_management.libraries.functions import get_kinit_path from resource_management.libraries.functions.get_not_managed_resources import get_not_managed_resources config = Script.get_config() config_attrs = config['configuration_attributes'] def __get_component_host(component): """ Returns the first host where the given component is deployed, None if the component is not deployed """ component_host = None if component in config['clusterHostInfo'] and len(config['clusterHostInfo'][component]) > 0: component_host = config['clusterHostInfo'][component][0] return component_host hostname = config['hostname'] # Users and Groups hdfs_superuser = config['configurations']['hadoop-env']['hdfs_user'] user_group = config['configurations']['cluster-env']['user_group'] # Convert hawq_password to unicode for crypt() function in case user enters a numeric password hawq_password = unicode(config['configurations']['hawq-env']['hawq_password']) # HAWQ Hostnames hawqmaster_host = __get_component_host('hawqmaster_hosts') hawqstandby_host = __get_component_host('hawqstandby_hosts') hawqsegment_hosts = sorted(default('/clusterHostInfo/hawqsegment_hosts', [])) hawq_master_hosts = [host for host in hawqmaster_host, hawqstandby_host if host] hawq_all_hosts = sorted(set(hawq_master_hosts + hawqsegment_hosts)) # HDFS hdfs_site = config['configurations']['hdfs-site'] default_fs = config['configurations']['core-site']['fs.defaultFS'] security_enabled = config['configurations']['cluster-env']['security_enabled'] hdfs_user_keytab = config['configurations']['hadoop-env']['hdfs_user_keytab'] kinit_path_local = get_kinit_path(default('/configurations/kerberos-env/executable_search_paths', None)) hdfs_principal_name = config['configurations']['hadoop-env']['hdfs_principal_name'] dfs_nameservice = default('/configurations/hdfs-site/dfs.nameservices', None) # HDFSResource partial function HdfsResource = functools.partial(HdfsResource, user=hdfs_superuser, security_enabled=security_enabled, keytab=hdfs_user_keytab, kinit_path_local=kinit_path_local, principal_name=hdfs_principal_name, hdfs_site=hdfs_site, default_fs=default_fs, immutable_paths = get_not_managed_resources()) # File partial function File = functools.partial(File, owner=hawq_constants.hawq_user, group=hawq_constants.hawq_group, mode=0644) # XMLConfig partial function XmlConfig = functools.partial(XmlConfig, conf_dir=hawq_constants.hawq_config_dir, owner=hawq_constants.hawq_user, group=hawq_constants.hawq_group, mode=0644) # For service Check is_pxf_installed = __get_component_host("pxf_hosts") is not None namenode_path = "{0}:{1}".format(__get_component_host("namenode_host"), hawq_constants.PXF_PORT) if dfs_nameservice is None else dfs_nameservice table_definition = { "HAWQ": { "name": "ambari_hawq_test", "create_type": "", "drop_type": "", "description": "(col1 int) DISTRIBUTED RANDOMLY" }, "EXTERNAL_HDFS_READABLE": { "name": "ambari_hawq_pxf_hdfs_readable_test", "create_type": "READABLE EXTERNAL", "drop_type": "EXTERNAL", "description": "(col1 int) LOCATION ('pxf://{0}{1}?PROFILE=HdfsTextSimple') FORMAT 'TEXT'".format(namenode_path, hawq_constants.pxf_hdfs_test_dir) }, "EXTERNAL_HDFS_WRITABLE": { "name": "ambari_hawq_pxf_hdfs_writable_test", "create_type": "WRITABLE EXTERNAL", "drop_type": "EXTERNAL", "description": "(col1 int) LOCATION ('pxf://{0}{1}?PROFILE=HdfsTextSimple') FORMAT 'TEXT'".format(namenode_path, hawq_constants.pxf_hdfs_test_dir) } } # YARN # Note: YARN is not mandatory for HAWQ. It is required only when the users set HAWQ to use YARN as resource manager rm_host = __get_component_host('rm_host') yarn_ha_enabled = default('/configurations/yarn-site/yarn.resourcemanager.ha.enabled', False) # Config files hawq_check_content = config['configurations']['hawq-check-env']['content'] # database user limits hawq_limits = config['configurations']['hawq-limits-env'] # sysctl parameters hawq_sysctl = config['configurations']['hawq-sysctl-env'] # hawq config hawq_site = config['configurations']['hawq-site'] # hdfs-client for enabling HAWQ to work with HDFS namenode HA hdfs_client = config['configurations']['hdfs-client'] # yarn-client for enabling HAWQ to work with YARN resource manager HA yarn_client = config['configurations']['yarn-client'] # Directories and ports hawq_master_dir = hawq_site.get('hawq_master_directory') hawq_segment_dir = hawq_site.get('hawq_segment_directory') hawq_master_temp_dirs = hawq_site.get('hawq_master_temp_directory') hawq_segment_temp_dirs = hawq_site.get('hawq_segment_temp_directory') # Extract hawq hdfs directory from hdfs url. Ex: /hawq/hawq_default from # host:8080/hawq/hawq_default hawq_hdfs_data_dir = "/{0}".format(hawq_site.get('hawq_dfs_url').split('/', 1)[1]) hawq_master_address_port = hawq_site.get('hawq_master_address_port') hawq_segment_address_port = hawq_site.get('hawq_segment_address_port')
python
<gh_stars>0 {"data":{"site":{"siteMetadata":{"title":"개미의 개발노트","description":"ugaemi's dev note","author":"ugaemi"}}}}
json
.auth { display: flex; justify-content: space-around; margin-top: 50px; } .socialAuth { display: flex; flex-direction: column; align-items: center; margin-top: 30px; } .loginHeading { opacity: 0.6 }
css
# -*- coding: utf-8 -*- ############################################################################## ## ## This file is part of Taurus ## ## http://taurus-scada.org ## ## Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain ## ## Taurus is free software: you can redistribute it and/or modify ## it under the terms of the GNU Lesser General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## (at your option) any later version. ## ## Taurus 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 Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public License ## along with Taurus. If not, see <http://www.gnu.org/licenses/>. ## ############################################################################## import sys import taurus import unittest def _import(name): __import__(name) return sys.modules[name] class QtTestCase(unittest.TestCase): _api_name = None def setUp(self): taurus.setLogLevel(taurus.Critical) self.opt_mods = ("QtDesigner", "QtNetwork", "Qt", "QtSvg", "QtUiTools", "QtWebKit", "Qwt5", "uic") # store a "snapshot" of the currently loaded modules self._orig_mods = set(sys.modules.keys()) # this import initializes Qt in case it is not loaded from taurus.external.qt import Qt, API_NAME self._api_name = API_NAME self.__qt = Qt def test_qt_base_import(self): mods = set(sys.modules.keys()) other_apis = set(('PyQt5', 'PySide2', 'PyQt4', 'PySide')) other_apis.remove(self._api_name) # the selected API and the QtCore should be loaded self.assertTrue(self._api_name in mods, self._api_name + " not loaded") self.assertTrue(self._api_name + ".QtCore" in mods, "QtCore not loaded") # the other APIs should *not* be loaded for other_api in other_apis: self.assertFalse( other_api in mods, other_api + " loaded in " + self._api_name + " test") # the other Qt submodules should *not* be loaded for opt_mod in self.opt_mods: mod = "{0}.{1}".format(self._api_name, opt_mod) self.assertFalse(mod in mods - self._orig_mods, mod + " is loaded") def __test_qt_module(self, qt_mod_name): """Checks that the given shim is complete""" taurus_qt_mod_name = "taurus.external.qt.{0}".format(qt_mod_name) orig_qt_mod_name = "{0}.{1}".format(self._api_name, qt_mod_name) TaurusQtMod = _import(taurus_qt_mod_name) OrigQtMod = _import(orig_qt_mod_name) taurus_qt_mod_members = [m for m in dir(TaurusQtMod) if not m.startswith("_")] orig_qt_mod_members = [m for m in dir(OrigQtMod) if not m.startswith("_")] for orig_member_name in orig_qt_mod_members: self.assertTrue( orig_member_name in taurus_qt_mod_members, "Taurus {0} does not contain {1}".format(qt_mod_name, orig_member_name) ) def test_qt_core(self): """Check the QtCore shim""" return self.__test_qt_module("QtCore") def test_qt_gui(self): """Check the QtGui shim""" return self.__test_qt_module("QtGui") def main(): unittest.main(verbosity=2) if __name__ == "__main__": main()
python
Officials said that while the average rainfall in June is 128. 3 mm, the state received 188. 8 mm this year in the month. However, 60 mandals received less than the normal amount. Another four mandals recorded deficit in the same period. Officials said overall, the state received 47% more rain than the average. The highest rain fall of 88. 8 mm was recorded at Soan in Nirmal district on June 24. animal hus bandry special chief secretary Suresh Chanda,the disaster management officials, fire services and agriculture department on Friday . Meena directed the agriculture officials to keep seeds and fertilizers ready for farmers in view of good rains. He also asked irrigation officials to be vigilant to prevent any damage to irrigation sources and railway tracks in case of heavy rain. Light to moderate rainfall has been predicted for the next one week in Adilabad, Nirmal, Peddapally , Mancherial, Jagityal, Warangal, Bhadradri, Karimnagar, Asifabad adn Khammam.
english
<filename>lib/Motor/Motor.cpp #include "Arduino.h" #include "Motor.h" Motor::Motor(unsigned int number) { motor = new AF_DCMotor(number); } Motor::~Motor() { delete motor; } void Motor::setValue(int value) { int allowedValue = constrain(value, -255, 255); if (abs(allowedValue) < 70) allowedValue = 0; if (allowedValue == 0) { motor->run(RELEASE); } else if (allowedValue > 0) { motor->run(FORWARD); motor->setSpeed(abs(allowedValue)); } else { motor->run(BACKWARD); motor->setSpeed(abs(allowedValue)); } }
cpp
{ "header": { "category": "progressive-commentary-hour", "image": { "type": "image", "url": "http://progressivecommentaryhour.podbean.com/mf/web/g3iv7a/vaccine-syringe-istock.jpg" }, "layout": "podcast", "link": "http://progressivecommentaryhour.podbean.com/e/progressive-commentary-hour-022415/", "podcast": { "developer-note": "", "length": "57:19", "note": "", "size": 20638886, "type": "audio/mpeg", "url": "http://progressivecommentaryhour.podbean.com/mf/feed/4tsvk6/PCH_022415.mp3" }, "show": { "category": [ "News & Politics" ], "image": { "height": 144, "url": "http://imglogo.podbean.com/image-logo/371244/GaryNull-PCH_AlbumArt.jpg", "width": 144 }, "owner": { "email": "<EMAIL>", "name": "Progressive Radio Network" }, "published": { "string": "Wed, 25 Feb 2015 20:55:24 +0000", "timestamp": "1424915724" }, "subtitle": "<NAME> discusses progressive issues with some of the most remarkable minds in the world.", "title": "Progressive Commentary Hour" }, "tags": [ "News & Politics", "progressive-commentary-hour" ], "title": "Progressive Commentary Hour" }, "title": "Progressive Commentary Hour", "date": "2015-02-25 00:00:00 -0500", "categories": [ "progressive-commentary-hour" ], "content": "<p>The lack of efficacy and health risks of the HPV Vaccines – Gardasil and Cervarix, with Dr. <NAME>, Dr.\n&lt;!--more--&gt;\n<NAME>, and Dr <NAME></p>\n\n<p>Dr <NAME> is an early career postdoctoral fellow. <br />\nShe received her PhD in Biochemistry, from the Comparative Genomics Centre at James Cook University in Townsville, Australia. <br />\nIn 2010, and  joined the Neural Dynamics Research Group at the University of British Columbia to work on with renowned neuroscientist Prof. <br />\n<NAME>. <br />\nHer research has focused up the neurotoxic properties of the human papilloma virus vaccines and aluminum vaccine adjuvants. <br />\nRecently she was a visiting research at the University of Tel Aviv in Israel to discover the HPV vaccine mechanisms leading to autoimmune disorders. <br />\nLucija is also an Associate Editor of the Journal of Alzheimer’s Disease.<br />\n She and her colleagues are among the few courageous university researchers undertaking independent and honest experiments into the causation for adverse vaccine effects.\n<br /></p>\n\n<p>Dr <NAME> is a board pediatrician medicine and a environmental activist. <br />\nHe is a founder and president of the International Hyperbaric Medical Association, a diplomat of the American Board of Pediatrics and a founder of the Humane Farming Association. <br />\nHaving become frustrated with medical agency and association cover-ups and the corporate medical lobbying powers over the rapid rise in children’s developmental disabilities, Dr Stoller and other physicians testified before Congress on the role vaccinations have played, particularly mercury, in the rise of autism and other related conditions.<br />\n  In 2006, he met with environmental scientists at CDC headquarters to discover their concern about mercury but being powerless to affect the agency’s policy. <br />\nHis letter of resignation to the American Pediatric Association, published in a distinguished peer review medical journal, raised quite a storm in the pediatric community.   His website is BodiesInRebellion.com</p>\n\n<p>Dr <NAME> is a Chiropracter physician in southern California and a fellow of the American Association of Integrative Medicine.  He specializes in functional medicine under the guidance of the pioneer functional medical scientist <NAME>. He became internationally renown for his work treating individuals with Hashimoto hypothyroidism.<br />\n  More recently he has been observing the serious side effects of the HPV vaccines in young adults and has been investing treatments for vaccine injuries. <br />\nDr Flannery has degrees from University of Southern California and Rochester Institute of Technology, and received Doctor of Chiropractic degree graduating cum laude from Cleveland Chiropractic College, Los Angeles.  His website is DrFlannery.com<br /></p>\n" }
json
The APHC says Pakistan is benefactor and only hope of oppressed people of occupied Jammu and Kashmir who have been facing worst Indian state terrorism for the last over seven decades. In a statement, Senior leader of All Parties Hurriyat Conference, Ghulam Ahmad Gulzar, felicitated the newly appointed Army Chief General Asim Munir, and Chairman Joint Chiefs of Staff Committee General Sahir Shamshad Mirza. He expressed the hope that new military leadership will not only enhance the defence capabilities of Pakistan but also play a vital role in resolving the Kashmir dispute in accordance with the Kashmiris’ aspirations and relevant UN resolutions. Ghulam Ahmad Gulzar said the Kashmiris are fully aware that Pakistan is facing numerous challenges including Hindutva sponsored terrorism and expressed the confidence that new military leadership will counter all difficulties and threats successfully. Meanwhile, APHC-AJK chapter leader Muhammad Sultan Butt also felicitated newly appointed military leadership of Pakistan and expressed the hope that Pakistan’s defence will become impregnable under their command. He said India is the worst enemy of peace in the region and its expansionist designs are threat to millions of people.
english
package qmul.gvgai.engine.core.vgdl; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.Pixmap; import qmul.gvgai.engine.core.player.Player; import qmul.gvgai.engine.core.game.Game; import javax.swing.*; import java.awt.*; import java.util.ArrayList; public class VGDLViewer extends JComponent { /** * Reference to the game to be painted. */ public Game game; /** * Dimensions of the window. */ private Dimension size; /** * Sprites to draw */ public SpriteGroup[] spriteGroups; /** * Player of the game */ public Player player; private final VGDLRenderer renderer; /** * Creates the viewer for the game. * * @param game game to be displayed */ public VGDLViewer(Game game) { this.game = game; this.size = game.getScreenSize(); renderer = new VGDLRenderer(game); } /** * Main method to paint the game * * @param gx Graphics object. */ public void paintComponent(Graphics gx) { gx.drawImage(new ImageIcon(renderer.getBuffer()).getImage(), 0,0, null); } /** * Paints the sprites. * * @param spriteGroupsGame sprites to paint. */ public void paint(SpriteGroup[] spriteGroupsGame) { renderer.renderPixelObservation(); this.repaint(); } /** * Gets the dimensions of the window. * * @return the dimensions of the window. */ public Dimension getPreferredSize() { return size; } }
java
{"web":[{"value":["拖延的","延长的","持久"],"key":"protracted"},{"value":["持续戒断"],"key":"protracted withdrawal"},{"value":["延时照射","迁延性照射"],"key":"protracted exposure"}],"query":"protracted","translation":["旷日持久的"],"errorCode":"0","dict":{"url":"yddict://m.youdao.com/dict?le=eng&q=protracted"},"webdict":{"url":"http://m.youdao.com/dict?le=eng&q=protracted"},"basic":{"us-phonetic":"prə'træktɪd","phonetic":"prə'træktɪd","uk-phonetic":"prə'træktɪd","explains":["adj. 拖延的","v. 拖延;绘制;伸展(protract的过去分词)"]},"l":"EN2zh-CHS"}
json
OPPO recently launched two new mid-range smartphones, the OPPO F17 and the OPPO F17 Pro. Both smartphones sport attractive designs, powerful internals, and high-capacity batteries with fast charging. The OPPO F17 Pro is priced at Rs 22,990, and we had a chance to get hands-on experience of the smartphone. The phone has a colorful, 6.43-inch Super AMOLED screen with Full HD+ resolution, a MediaTek Helio P95 processor, 8GB RAM, 128GB storage, a quad-camera setup with a 48MP primary camera, a 16MP selfie camera, and a 4,035mAh battery with 30W fast charging. The phone is available in three colors: Magic Blue, Matte Black, and Metallic White. Have a look at our hands-on experience of the OPPO F17 Pro in the video below.
english
<filename>src/rust/iced-x86-js/src/register.rs // SPDX-License-Identifier: MIT // Copyright (C) 2018-present iced project and contributors use wasm_bindgen::prelude::*; // GENERATOR-BEGIN: Enum // ⚠️This was generated by GENERATOR!🦹‍♂️ /// A register #[wasm_bindgen] #[derive(Copy, Clone)] #[allow(missing_docs)] pub enum Register { None = 0, AL = 1, CL = 2, DL = 3, BL = 4, AH = 5, CH = 6, DH = 7, BH = 8, SPL = 9, BPL = 10, SIL = 11, DIL = 12, R8L = 13, R9L = 14, R10L = 15, R11L = 16, R12L = 17, R13L = 18, R14L = 19, R15L = 20, AX = 21, CX = 22, DX = 23, BX = 24, SP = 25, BP = 26, SI = 27, DI = 28, R8W = 29, R9W = 30, R10W = 31, R11W = 32, R12W = 33, R13W = 34, R14W = 35, R15W = 36, EAX = 37, ECX = 38, EDX = 39, EBX = 40, ESP = 41, EBP = 42, ESI = 43, EDI = 44, R8D = 45, R9D = 46, R10D = 47, R11D = 48, R12D = 49, R13D = 50, R14D = 51, R15D = 52, RAX = 53, RCX = 54, RDX = 55, RBX = 56, RSP = 57, RBP = 58, RSI = 59, RDI = 60, R8 = 61, R9 = 62, R10 = 63, R11 = 64, R12 = 65, R13 = 66, R14 = 67, R15 = 68, EIP = 69, RIP = 70, ES = 71, CS = 72, SS = 73, DS = 74, FS = 75, GS = 76, XMM0 = 77, XMM1 = 78, XMM2 = 79, XMM3 = 80, XMM4 = 81, XMM5 = 82, XMM6 = 83, XMM7 = 84, XMM8 = 85, XMM9 = 86, XMM10 = 87, XMM11 = 88, XMM12 = 89, XMM13 = 90, XMM14 = 91, XMM15 = 92, XMM16 = 93, XMM17 = 94, XMM18 = 95, XMM19 = 96, XMM20 = 97, XMM21 = 98, XMM22 = 99, XMM23 = 100, XMM24 = 101, XMM25 = 102, XMM26 = 103, XMM27 = 104, XMM28 = 105, XMM29 = 106, XMM30 = 107, XMM31 = 108, YMM0 = 109, YMM1 = 110, YMM2 = 111, YMM3 = 112, YMM4 = 113, YMM5 = 114, YMM6 = 115, YMM7 = 116, YMM8 = 117, YMM9 = 118, YMM10 = 119, YMM11 = 120, YMM12 = 121, YMM13 = 122, YMM14 = 123, YMM15 = 124, YMM16 = 125, YMM17 = 126, YMM18 = 127, YMM19 = 128, YMM20 = 129, YMM21 = 130, YMM22 = 131, YMM23 = 132, YMM24 = 133, YMM25 = 134, YMM26 = 135, YMM27 = 136, YMM28 = 137, YMM29 = 138, YMM30 = 139, YMM31 = 140, ZMM0 = 141, ZMM1 = 142, ZMM2 = 143, ZMM3 = 144, ZMM4 = 145, ZMM5 = 146, ZMM6 = 147, ZMM7 = 148, ZMM8 = 149, ZMM9 = 150, ZMM10 = 151, ZMM11 = 152, ZMM12 = 153, ZMM13 = 154, ZMM14 = 155, ZMM15 = 156, ZMM16 = 157, ZMM17 = 158, ZMM18 = 159, ZMM19 = 160, ZMM20 = 161, ZMM21 = 162, ZMM22 = 163, ZMM23 = 164, ZMM24 = 165, ZMM25 = 166, ZMM26 = 167, ZMM27 = 168, ZMM28 = 169, ZMM29 = 170, ZMM30 = 171, ZMM31 = 172, K0 = 173, K1 = 174, K2 = 175, K3 = 176, K4 = 177, K5 = 178, K6 = 179, K7 = 180, BND0 = 181, BND1 = 182, BND2 = 183, BND3 = 184, CR0 = 185, CR1 = 186, CR2 = 187, CR3 = 188, CR4 = 189, CR5 = 190, CR6 = 191, CR7 = 192, CR8 = 193, CR9 = 194, CR10 = 195, CR11 = 196, CR12 = 197, CR13 = 198, CR14 = 199, CR15 = 200, DR0 = 201, DR1 = 202, DR2 = 203, DR3 = 204, DR4 = 205, DR5 = 206, DR6 = 207, DR7 = 208, DR8 = 209, DR9 = 210, DR10 = 211, DR11 = 212, DR12 = 213, DR13 = 214, DR14 = 215, DR15 = 216, ST0 = 217, ST1 = 218, ST2 = 219, ST3 = 220, ST4 = 221, ST5 = 222, ST6 = 223, ST7 = 224, MM0 = 225, MM1 = 226, MM2 = 227, MM3 = 228, MM4 = 229, MM5 = 230, MM6 = 231, MM7 = 232, TR0 = 233, TR1 = 234, TR2 = 235, TR3 = 236, TR4 = 237, TR5 = 238, TR6 = 239, TR7 = 240, TMM0 = 241, TMM1 = 242, TMM2 = 243, TMM3 = 244, TMM4 = 245, TMM5 = 246, TMM6 = 247, TMM7 = 248, } // GENERATOR-END: Enum #[allow(dead_code)] pub(crate) fn register_to_iced(value: Register) -> iced_x86_rust::Register { // Safe, the enums are exactly identical unsafe { std::mem::transmute(value as u8) } } #[allow(dead_code)] pub(crate) fn iced_to_register(value: iced_x86_rust::Register) -> Register { // Safe, the enums are exactly identical unsafe { std::mem::transmute(value as u8) } }
rust
import { LoopModes, getChannel, Channels } from './dsp'; export class Sampler { protected loaded: boolean; protected samples: Float64Array; protected rawSamples: number[]; protected signal: Float64Array; protected frameCount: number; protected envelope: any; protected amplitude: number; protected rootFrequency: number; protected frequency: number; protected step: number; protected duration: number; protected samplesProcessed: number; protected playhead: number; protected audio: any; constructor( protected file: string, protected bufferSize: number, protected sampleRate: number, protected playStart: number = 0, // 0% protected playEnd: number = 1, // 100% protected loopStart: number = 0, protected loopEnd: number = 1, protected loopMode: number = LoopModes.OFF, ) { this.loaded = false; this.rawSamples = []; this.samples = new Float64Array(); this.signal = new Float64Array(bufferSize); this.frameCount = 0; this.envelope = null; this.amplitude = 1; this.rootFrequency = 110; // A2 110 this.frequency = 550; this.step = this.frequency / this.rootFrequency; this.duration = 0; this.samplesProcessed = 0; this.playhead = 0; //var audio = /* new Audio();*/ document.createElement('AUDIO'); /* this.audio.addEventListener('MozAudioAvailable', this.loadSamples, false); this.audio.addEventListener('loadedmetadata', this.loadMetaData, false); this.audio.addEventListener('ended', this.loadComplete, false); this.audio.src = file; this.audio.play(); */ } protected loadSamples(event: any) { let buffer = getChannel(Channels.MIX, event.frameBuffer); this.rawSamples = [...buffer]; } protected loadComplete() { // convert fle xible js array into a fast typed array this.samples = new Float64Array(this.rawSamples); this.loaded = true; } protected loadMetaData() { this.duration = this.audio.duration; } public applyEnvelope() { this.envelope.process(this.signal); return this.signal; } public generate() { var frameOffset = this.frameCount * this.bufferSize; var loopWidth = this.playEnd * this.samples.length - this.playStart * this.samples.length; var playStartSamples = this.playStart * this.samples.length; // ie 0.5 -> 50% of the length var playEndSamples = this.playEnd * this.samples.length; // ie 0.5 -> 50% of the length var offset; for (var i = 0; i < this.bufferSize; i++) { switch (this.loopMode) { case LoopModes.OFF: this.playhead = Math.round( this.samplesProcessed * this.step + playStartSamples, ); if (this.playhead < this.playEnd * this.samples.length) { this.signal[i] = this.samples[this.playhead] * this.amplitude; } else { this.signal[i] = 0; } break; case LoopModes.FW: this.playhead = Math.round( ((this.samplesProcessed * this.step) % loopWidth) + playStartSamples, ); if (this.playhead < this.playEnd * this.samples.length) { this.signal[i] = this.samples[this.playhead] * this.amplitude; } break; case LoopModes.BW: this.playhead = playEndSamples - Math.round( (this.samplesProcessed * this.step) % loopWidth, ); if (this.playhead < this.playEnd * this.samples.length) { this.signal[i] = this.samples[this.playhead] * this.amplitude; } break; case LoopModes.FWBW: if ( Math.floor( (this.samplesProcessed * this.step) / loopWidth, ) % 2 === 0 ) { this.playhead = Math.round( ((this.samplesProcessed * this.step) % loopWidth) + playStartSamples, ); } else { this.playhead = playEndSamples - Math.round( (this.samplesProcessed * this.step) % loopWidth, ); } if (this.playhead < this.playEnd * this.samples.length) { this.signal[i] = this.samples[this.playhead] * this.amplitude; } break; } this.samplesProcessed++; } this.frameCount++; return this.signal; } public setFreq(frequency: number) { var totalProcessed = this.samplesProcessed * this.step; this.frequency = frequency; this.step = this.frequency / this.rootFrequency; this.samplesProcessed = Math.round(totalProcessed / this.step); } public reset() { this.samplesProcessed = 0; this.playhead = 0; } }
typescript
The world is currently mourning the demise of the acting legend and philanthropist Sir Roger Moore. He has essayed a variety of roles in his acting career which includes playing the role of a British spy, James Bond. Down here is a list that features one of his most remembered performance as James Bond. This was the first Bond movie in which Roger Moore starred as the lead by filling in the shoes of Sean Connery. It is also the eighth film in the James Bond franchise. The film is also best remembered for featuring an African-American Bond girl for the time ever in a Bond movie as his romantic interest. The film is adapted from Ian Fleming's novel of the same name. The screenplay writer Tom Mankiewicz made some changes to suit Moore's persona by giving more comedy scenes and a light-hearted approach to Bond. This was the second film in which Roger Moore played James Bond. This was the fourth and final film directed by Guy Hamilton. The film borrowed one of its primary themes from the 1973 energy crisis. During that time martial arts was a rage and therefore a lot of kung fu scenes were added in the film. The Swedish model Britt Ekland was cast as the leading Bond girl. Though the film borrows its title from Ian Fleming's novel The Spy Who Loved Me, it does not feature any of the novel's elements. The film paired him opposite Barbara Bach who played the role of Anya Amasova, an attractive yet dangerous Russian agent. Curd Jurgens played the main antagonist, the shipping tycoon and anarchist Karl Stromberg who has plans of destroying the world and recreating a new civilisation underwater. It is considered as one of the best performances by Roger Moore in the series. The film's premier was attended by Princess Anne. The initial plans included of filming For Your Eyes Only but instead, this title from Ian's novel was chosen due to the rising popularity of science fiction genre caused by the success of Star Wars. The plot involves James Bond investigating the theft of a space shuttle along with the CIA agent and astronaut Dr Holly Goodhead ( played by Lois Chiles) which leads them to Hugo Drax (played by Michael Lonsdale), an industrialist who plans to kill all humans in order to start producing his own superior species. This film brought back The Bond franchise to a much more realistic approach especially after the last release of the film series. This was the directorial debut of John Glen who was earlier an editor in three Bond films. This film saw the return of its protagonist James Bond to more serious roots. In the film, Bond is sent to retrieve the stolen missile command system and is tried to be deceived by Melina Havelock ( played by Carole Bouquet), who is set out to avenge her parent's death and Aristotle Kristatos (played by Julian Glover) who is initially shown as his friend but is later revealed to be the main antagonist. The film's plot has hardly been inspired by the short story Octopussy except for some scenes and a title character's background. This is the only Bond film that has been named after a female character Octopussy, played by the talented actress Maud Adams who is a wealthy businesswoman as well as a jewel smuggler. The film's plot revolves around Bond who has been assigned the task of investigating and identifying the identity of the seller who has killed the British agent 009 and it also leads him to encounter the wealthy Afghan prince, Kamal Khan (played by Louis Jourdan) and his associate, Octopussy along the way. This was the last film in which Roger Moore starred in the leading role of James Bond. This was also the first Bond film to premiere Outside UK. Moore went to star to say that it was least favourite Bond film. The film's screenplay was completely original. In this film, Bond has to fight against Max Zorin(played by Christopher Walken), a psychotic industrialist who plans to destroy California's Silicon Valley.
english
<reponame>David-Durst/embeddedHaskellAetherling import fault import aetherling.helpers.fault_helpers as fault_helpers from aetherling.space_time import * from aetherling.space_time.reshape_st import DefineReshape_ST import magma as m import json @cache_definition def Module_0() -> DefineCircuitKind: class _Module_0(Circuit): name = "Module_0" IO = ['I', In(ST_TSeq(8, 0, ST_Int(16, False)).magma_repr()),'O', Out(ST_TSeq(1, 7, ST_Int(16, False)).magma_repr())] + ClockInterface(has_ce=False,has_reset=False) + valid_ports st_in_t = [ST_TSeq(8, 0, ST_Int(16, False))] st_out_t = ST_TSeq(1, 7, ST_Int(16, False)) binary_op = False @classmethod def definition(cls): n19 = DefineConst(ST_TSeq(8, 0, ST_Int(16, False)), (1,2,3,4,2,1,2,3,), has_valid=True, delay=1)() wire(cls.valid_up, n19.valid_up) n5 = DefineMap2_T(8, 0, DefineAtomTupleCreator(ST_Int(16, False), ST_Int(16, False), has_valid=True))() wire(n19.O, n5.I0) wire(cls.I, n5.I1) wire(n19.valid_down & cls.valid_up, n5.valid_up) n11 = DefineMap_T(8, 0, DefineMul_Atom(True))() wire(n5.O, n11.I) wire(n5.valid_down, n11.valid_up) n14 = DefineReduce_T(8, 0, DefineAdd_Atom(False))() wire(n11.O, n14.I) wire(n11.valid_down, n14.valid_up) wire(n14.O, cls.O) wire(n14.valid_down, cls.valid_down) return _Module_0 @cache_definition def Module_1() -> DefineCircuitKind: class _Module_1(Circuit): name = "top" IO = ['I', In(ST_TSeq(2, 0, ST_TSeq(8, 0, ST_Int(16, False))).magma_repr()),'O', Out(ST_TSeq(2, 0, ST_TSeq(1, 7, ST_Int(16, False))).magma_repr())] + ClockInterface(has_ce=False,has_reset=False) + valid_ports st_in_t = [ST_TSeq(2, 0, ST_TSeq(8, 0, ST_Int(16, False)))] st_out_t = ST_TSeq(2, 0, ST_TSeq(1, 7, ST_Int(16, False))) binary_op = False @classmethod def definition(cls): n1 = DefineFIFO(ST_TSeq(2, 0, ST_TSeq(8, 0, ST_Int(16, False))), 1, has_valid=True)() wire(cls.I, n1.I) wire(cls.valid_up, n1.valid_up) n15 = DefineMap_T(2, 0, Module_0())() wire(n1.O, n15.I) wire(n1.valid_down, n15.valid_up) n16 = DefineFIFO(ST_TSeq(2, 0, ST_TSeq(1, 7, ST_Int(16, False))), 1, has_valid=True)() wire(n15.O, n16.I) wire(n15.valid_down, n16.valid_up) n17 = DefineFIFO(ST_TSeq(2, 0, ST_TSeq(1, 7, ST_Int(16, False))), 1, has_valid=True)() wire(n16.O, n17.I) wire(n16.valid_down, n17.valid_up) n18 = DefineFIFO(ST_TSeq(2, 0, ST_TSeq(1, 7, ST_Int(16, False))), 1, has_valid=True)() wire(n17.O, n18.I) wire(n17.valid_down, n18.valid_up) wire(n18.O, cls.O) wire(n18.valid_down, cls.valid_down) return _Module_1 Main = Module_1 fault_helpers.compile(Main(), "v./home/durst/dev/embeddedHaskellAetherling//test/no_bench/magma_examples/tuple_reduce/tuple_reduce_1 % 8thr.py")
python
Will Barton is reportedly on the way to Toronto after completing his buyout with the Washington Wizards according to Adrian Wojnarowski. The move, which comes on the heels of the team waiving Juancho Hernangomez, will hopefully give Barton a fresh start. Although Barton will move up the Eastern Conference ladder slightly with the move, the Raptors sit just one spot ahead of the Wizards. Currently, over 40 games played this season, Barton has averaged 7. 7 points, 2. 8 rebounds, and 2. 5 assists per game for the Wizards. During that time, he's shot 38. 7% from the field, as well as 38% from beyond the arc. You can see some of his season highlights in the video above! This isn’t the first time Will Barton has been linked to the Toronto Raptors. In the midst of a season that saw him struggle to shoot the ball at times. After seeing his load decrease significantly at the end of 2022, reports emerged that the NBA vet had drawn interest from several teams. Although the Wizards were reportedly receptive to calls before the trade deadline, it’s clear that the Raptors were keeping an eye on things. Now has the opportunity to contribute more in Toronto, many are hoping his production improves. So far there has been no word yet on how long the Raptors will look to sign Will Barton for after his buyout. It is important to note that he and the Wizards must complete the buyout first before anything is finalized in Toronto. From the look of things, Barton will play a pretty consistent role with the Raptors. With the team waiving Juancho Hernangomez, it’s no secret that they lack a backup small forward. At six-foot-six, Barton can provide a strong offensive presence, despite the fact that his defensive rating of 116. 3 leaves a lot to be desired. Most notably, Barton brings playoff experience to the young team. With 29 career postseason games during his time in Denver and in Portland, Barton’s experience could be a guiding force for the team both on and off the court. With the Raptors being a bottom-three team in both offensive and defensive efficiency this season, do you think Barton will be able to get things going? Above you can see footage of Barton dropping 22 points on the Brooklyn Nets prior to the All- Star break.
english
/** * Returns the result of multiplying together an array of double-double-precision * floating point numbers naively (i.e. not using pairwise addition to reduce * error a bit). * * * an error bound is given by: (n-1)(1+ϵ), * where ϵ <= 7u^2, u = 0.5 * Number.EPSILON */ declare function ddProduct(qs: number[][]): number[]; export { ddProduct };
typescript
Mumbai Indians (MI) and Chennai Super Kings (CSK) are the two most successful franchises of the Indian Premie League, both teams sharing 9 out of the total 14 titles in the IPL. Their rivalry has grown over the years with fans getting passionate at the knock of every encounter, their clash billed as the ‘El Clásico’ of cricket of the IPL. The CSK-MI rivalry, though, is not yet at the heated levels of say, Barcelona and Real Madrid. Hence, it hasn’t got the fans all riled up when some players have featured for both the teams! Here are 5 players who have played for both CSK and MI: That Ambati Rayudu has played all his IPL career- from 2010 – for the two best IPL franchises tells you how good and in-demand he has been. However, Rayudu, who has batted at positions from opening to number 8, has been an underrated star, but both MI and CSK have valued his contributions to the team. He’s won 3 IPL titles with MI (2013, 2015, 2017) and with CSK (), playing a crucial role in all those wins. He was with MI from 2010 to 2017 and has been with CSK since 2018, overall scoring a total of 4817 runs in 187 matches at 29. Veteran Indian off-spinner Harbhajan Singh donned the MI jersey from 2008 to 2017 – winning three titles there – and then the yellow CSK jersey for the next two seasons in 2018 – when CSK won their third title – and 2019; he pulled out of the 2020 season. Harbhajan was with KKR in 2021 after which he announced his retirement. Bhajji took a staggering 127 wickets for MI and was a regular for the franchise throughout his time there; he bagged 23 wickets in two seasons at CSK where Dhoni used him sparingly. With 183 wickets, Dwayne Bravo is IPL’s all-time leading wicket-taker. While he made his name as one of the best death bowlers in the world during his time at CSK, Bravo started his IPL journey with Mumbai Indians. He was at MI for the first three seasons in 2008, 2009, and 2010. Then CSK bought him in 2011 and barring the two years in 2016 and 2017 when the franchise was banned and Bravo played for Gujarat Lions, the all-rounder has been with the Yellow Army, part of their last three title wins. He has snared 140 wickets for the Super Kings. Piyush Chawla was a star spinner for Kings XI Punjab and Kolkata Knight Riders for the first 10 seasons. Then in his next two IPL season, he got to play for the two most successful franchises – CSK in 2020 and MI in 2021. However, he didn’t have a great time with the ball for either of the two seasons – picking 6 wickets in 7 games for CSK and 1 wicket in 1 match for MI while leaking more than 9 runs an over for both – and didn’t get any buyer at the IPL 2022 mega-auction. Nonetheless, with 157 wickets to his name, Piyush Chawla is currently the fifth-highest wicket-taker in the IPL history. Uttar Pradesh leg-spinner Karn Sharma got to be hailed as the lucky charm for franchises in the IPL. He has won three titles with three different teams in three consecutive years: SRH in 2016; MI in 2017; CSK in 2018 and featured in two finals. Karn doesn’t really have any outstanding numbers – 59 wickets in 58 IPL matches – but captains look him as an X-factor.
english
#include "CloudLoadAllResponse.h" FCloudLoadAllResponse::FCloudLoadAllResponse() { }
cpp
Cricket is one of the games where the players can earn huge money in the various professional fields. And when we observe the Indian cricket, it shows clearly. Recently, BCCI (Board of Control for Cricket in India) raised the central contracts for the national cricketers as they doubled salary in the each Grade. Apart from that, IPL (Indian Premier League) contract is another important source of earning for the Indian cricketers. Now we will look for the current top 10 highest per hour earning Indian cricketers. For this article, we took just the fixed earnings of Indian cricketers. as they also earn more from the cricket matches and endorsements. (Note: These earnings of Indian cricketers are only based on their fixed earnings from the latest BCCI’s central contract and IPL salary) 10. Ravindra Jadeja – INR 8,562 per hour (approx.) Currently, one of India’s best all-rounder Ravindra Jadeja is at the 10th placed according to the fixed per hour earnings of Indian cricketers. Getting INR 55 million from IPL contract, Jadeja is recently promoted to Grade A (INR 2 crores) in the latest BCCI contract. According to his fixed earnings from professional cricket, Jadeja is currently earning nearly INR 8,562 per hour. - Harbhajan Singh – INR 9,132 per hour (approx.) Making the debut in international cricket in 1998, Indian off-spinner Harbhajan Singh was an important part of India’s many successes along with 2007 ICC World T20 and 2011 ICC World Cup victories. But nowadays he is hardly getting a chance to play for India. He was excluded from the latest BCCI’s central contract. However, this Mumbai Indians off-spinner is earning INR 80 million from IPL contract which makes his per hour earnings nearly INR 9,132. - Suresh Raina – INR 10,845 per hour (approx.) Once India’s dependable middle-order batsman Suresh Raina is recently omitted from the BCCI central contract due to his recent poor form. Though, his IPL contract (INR 95 million) still gives a decent money which is nearly INR 10, 845 per hour. - Ravichandran Ashwin – INR 10,845 per hour (approx.) Indian off-spinner Ravichandran Ashwin is currently one of the best spinners in international cricket, while he is also handy with the bat. Ashwin remains at the Grade A (INR 2 crores) in the latest BCCI contract while his IPL contract is 75 million. Ashwin’s current per hour earning is 10, 845 (approx.). - Gautam Gambhir – INR 11,416 per hour (approx.) Gautam Gambhir’s contributions for India’s huge success in international cricket (like winning 2007 ICC World T20, 2011 ICC World Cup) is unforgettable. Gambhir has been axed from the central contract a few years ago. However, Gambhir’s per hour earning (nearly INR 11,416) is still very higher than the other Indian cricketers due to his IPL contract (INR 100 million). - Ajinkya Rahane – INR 11,416 per hour (approx.) Indian batsman Ajinkya Rahane is one of the most important members in the current national side. Having a Grade A (INR 2 crores) central contract, Rahane’s IPL contract is INR 80 million. Rahane’s present per hour fixed earning from cricket is 11,416 (approx.). - Rohit Sharma – INR 14,269 per hour (approx.) Indian batsman Rohit Sharma is one of the best openers in the international cricket. Currently, Rohit is at the Grade B (INR 1 crore) in the central contract while his IPL contract is INR 115 million which produce his per hour earning is nearly INR 14,269. - Shikhar Dhawan – INR 14,840 per hour (approx.) Another Indian opening batsman Shikhar Dhawan has attractive earnings from professional cricket despite not being a regular member in the current national side. Recently, Dhawan is slipped down to Grade C (INR 50 lakhs) in the central contract while his IPL contract is INR 125 million. These mean Dhawan’s current per hour earning is almost 14,840. - MS Dhoni – INR 16,553 per hour (approx.) MS Dhoni is one of the best captain and also one of the best finisher in international cricket history. Recently, Dhoni has signed off from the captaincy in the most of the professional cricket (including international cricket and IPL), but his finishing ability has not reduced. Currently, Dhoni is one of the most earning cricketers in the cricket world. Having a Grade A (INR 2 crores) central contract, Dhoni’s IPL contract is INR 125 million. From the professional cricket, Dhoni’s fixed per hour earning is around INR 16,553. - Virat Kohli – INR 19,406 per hour (approx.) It is not surprising that Virat Kohli is leading here. Currently India’s most important cricketer Virat Kohli is also one of the great cricketers in the international cricket history. Very usually, Kohli is at the Grade A position (INR 2 crores) in the central contract while he also has the highest IPL contract of INR 150 million. With the highest fixed earnings in the all professional cricket, Kohli earns nearly INR 19,406 per hour at present.
english
<reponame>charles-halifax/recipes<filename>index/c/coffee-hazelnut-and-raspberry-torte-1066.json { "directions": [ "Press raspberries through fine sieve into small bowl. Press jam through same sieve into raspberry puree; discard seeds. Stir to blend well. Cover and chill overnight.", "Combine 3/4 cup cream, white chocolate and coffee crystals in heavy medium saucepan. Stir over low heat just until chocolate melts, coffee dissolves and mixture is smooth. Remove from heat. Let stand until cool and thick, whisking occasionally, about 1 1/2 hours.", "Using electric mixer, beat 1 3/4 cups cream in large bowl until firm peaks form. Fold large spoonful of whipped cream into chocolate mixture to lighten. Fold chocolate mixture into whipped cream in 4 additions. Cover and refrigerate frosting until very firm, about 6 hours. (Can be prepared 1 day ahead; keep chilled.)", "Preheat oven to 350\u00b0F. Line three 9-inch diameter cake pans with 1 1/2-inch-high sides with parchment. Butter and flour parchment. Combine nuts, flour, 1/4 cup sugar, coffee crystals and salt in processor. Blend until nuts are finely ground.", "Using electric mixer, beat yolks and 1/2 cup sugar in large bowl until very thick, about 5 minutes. Beat in water and vanilla. Stir in flour mixture. Using clean dry beaters, beat egg whites in large bowl until soft peaks form. Gradually add 1/2 cup sugar, beating until stiff but not dry. Fold into yolk mixture in 3 additions.", "Transfer batter to prepared pans. Bake cakes until tester inserted into center comes out clean, about 18 minutes. Cool cakes in pans on racks. Cut around pan sides to loosen cakes. Turn cakes out; peel off parchment.", "Place 1 cake on platter and second cake on piece of foil. Spread 1/3 cup filling over each; let stand 20 minutes to set up. Spread 1 cup frosting over each. Lift cake off foil; place atop cake on platter. Top with third cake. Spread remaining frosting over sides and top of torte. (Can be prepared 1 day ahead. Cover with cake dome and refrigerate.)", "Garnish torte with fresh berries, if desired. Cut into wedges and serve." ], "ingredients": [ "1 cup frozen unsweetened raspberries, thawed, drained", "1 cup raspberry jam", "2 1/2 cups chilled whipping cream", "10 ounces good-quality white chocolate (such as Lindt or Bakers), chopped", "1 cup hazelnuts, toasted, husked", "1 cup sifted all purpose flour", "1 1/4 cups sugar", "1 teaspoon instant coffee crystals", "1/4 teaspoon salt", "6 large eggs, separated", "1/4 cup water", "1 teaspoon vanilla extract", "Fresh raspberries (optional)" ], "language": "en-US", "source": "www.epicurious.com", "tags": [ "Cake", "Coffee", "Berry", "Chocolate", "Nut", "Dessert", "Bake", "Raspberry", "Fall", "Birthday", "Hazelnut", "Party" ], "title": "Coffee, Hazelnut and Raspberry Torte", "url": "http://www.epicurious.com/recipes/food/views/coffee-hazelnut-and-raspberry-torte-1066" }
json
<filename>Galaga/FlyBoss.java import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) public class FlyBoss extends Actor { public int movemult = 1; public void act() { if(this.isAtEdge()){ movemult*=-1; move(); }else{ move(); int rand = Greenfoot.getRandomNumber(50); if (isTouching(Ship.class)){ getWorld().addObject(new GameOver(),300,400); removeTouching(Ship.class); } else if(rand == 20){ getWorld().addObject(new Spittle(),getX(),getY()+100); } } } public void move(){ setLocation(getX()+(22*movemult), getY()+1); } }
java