text stringlengths 1 1.04M | language stringclasses 25 values |
|---|---|
package com.jfinalshop.controller.shop.member;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import net.hasor.core.Inject;
import com.jfinal.aop.Before;
import com.jfinal.ext.route.ControllerBind;
import com.jfinalshop.Pageable;
import com.jfinalshop.controller.shop.BaseController;
import com.jfinalshop.interceptor.MemberInterceptor;
import com.jfinalshop.model.Member;
import com.jfinalshop.plugin.PaymentPlugin;
import com.jfinalshop.service.DepositLogService;
import com.jfinalshop.service.MemberService;
import com.jfinalshop.service.PluginService;
/**
* Controller - 会员中心 - 预存款
*
*
*/
@ControllerBind(controllerKey = "/member/deposit")
@Before(MemberInterceptor.class)
public class DepositController extends BaseController {
/** 每页记录数 */
private static final int PAGE_SIZE = 10;
@Inject
private MemberService memberService;
@Inject
private DepositLogService depositLogService;
@Inject
private PluginService pluginService;
/**
* 计算支付手续费
*/
public void calculateFee() {
String paymentPluginId = getPara("paymentPluginId");
BigDecimal amount = new BigDecimal(getPara("amount"));
Map<String, Object> data = new HashMap<String, Object>();
PaymentPlugin paymentPlugin = pluginService.getPaymentPlugin(paymentPluginId);
if (paymentPlugin == null || !paymentPlugin.getIsEnabled() || amount == null || amount.compareTo(BigDecimal.ZERO) < 0) {
data.put("message", ERROR_MESSAGE);
renderJson(data);
return;
}
data.put("message", SUCCESS_MESSAGE);
data.put("fee", paymentPlugin.calculateFee(amount));
renderJson(data);
}
/**
* 检查余额
*/
public void checkBalance() {
Map<String, Object> data = new HashMap<String, Object>();
Member member = memberService.getCurrent();
data.put("balance", member.getBalance());
renderJson(data);
}
/**
* 充值
*/
public void recharge() {
List<PaymentPlugin> paymentPlugins = pluginService.getPaymentPlugins(true);
if (!paymentPlugins.isEmpty()) {
setAttr("defaultPaymentPlugin", paymentPlugins.get(0));
setAttr("paymentPlugins", paymentPlugins);
}
render("/shop/${theme}/member/deposit/recharge.ftl");
}
/**
* 记录
*/
public void log() {
Integer pageNumber = getParaToInt("pageNumber");
Member member = memberService.getCurrent();
Pageable pageable = new Pageable(pageNumber, PAGE_SIZE);
setAttr("page", depositLogService.findPage(member, pageable));
setAttr("member", member);
render("/shop/${theme}/member/deposit/log.ftl");
}
} | java |
<gh_stars>0
const service = (paymentData) => {
return new Promise ((resolve, reject) => {
resolve({
Payment: {
ReturnMessage: "foo",
ReturnCode: "00",
Status: "test",
PaymentId: "000",
AuthorizationCode: "foobar",
CreditCard: {
CardNumber: "111111",
Holder: "fooBar"
}
}
})
});
}
export default service | javascript |
{"id": "QmdoxHUaJRw6oCb8eC88rf1jGMxJpwzWNzbggKTCqfh3h5", "title": "[GEC #104 ] Oct 26 vs Oct 27 BTC closing price comparison", "body": "You\u2019re comparing between the closing BTC price of today (**Oct 26, 2021**) and tomorrow (**Oct 27, 2021**) based on the [CoinMarketCap](https://coinmarketcap.com/currencies/bitcoin/historical-data/) data.\n\n\n---\n\n[GEC #101 Result]\n* [Oct 23 vs Oct 24 BTC closing price comparison](https://snapshot.org/#/gec.eth/proposal/Qmf2tuyiAzmse9gtotW3E8uKi42J3NH6v6noVsskobC4Gk)\n* Closing price of Oct 23 : $61393.62\n* Closing price of Oct 24 : $60930.84\n* Community consensus: Price Up\n* Actual result: Price Down\n* **Community prediction: Failure**\n* [Check the reward records here](https://docs.google.com/spreadsheets/d/1_3DOYOWNntQAiGh2TUDG4iTwqJWRgiHbYRGpURhRKtA/edit?usp=sharing)", "choices": ["Price Up", "Price Down"], "start": 1635202800, "end": 1635289200, "snapshot": "12129092", "state": "closed", "author": "0xF6B0<PASSWORD>7E1EEe17EdC0c<PASSWORD>9e5<PASSWORD>", "space": {"id": "gec.eth", "name": "Guess Earn Club"}, "votes": 17, "votes_data": [{"id": "0x0d7140f664789b17fc5541ac14bb3dfc87332f6bdd3b9ab3d21c1ff2dfee7af2", "voter": "0xd8f6cDA9bA3A1eEE96d259c76D4bBed0FFA168E7", "created": 1635287776, "choice": 1, "space": {"id": "gec.eth"}}, {"id": "<KEY>", "voter": "<KEY>", "created": 1635277104, "choice": 1, "space": {"id": "gec.eth"}}, {"id": "0x7669f775093f496cc5384ee65840f95104c609144b4e732709f7df2248b589a0", "voter": "<KEY>", "created": 1635273286, "choice": 1, "space": {"id": "gec.eth"}}, {"id": "0xe8e1cee403b7ab7f6bfe27145c60ffae855e9c4728abbfa6246565c722366ded", "voter": "0x9c9673856312eDb4fe6862F495610bA4B5124AcD", "created": 1635268747, "choice": 2, "space": {"id": "gec.eth"}}, {"id": "QmfVawcLw8nisscb6CmAV<KEY>", "voter": "0x0AA3A8A2fAD93142B5a5C0A872B92b131De49f39", "created": 1635265601, "choice": 2, "space": {"id": "gec.eth"}}, {"id": "<KEY>", "voter": "0x8AC3122936f021a62AD9Da4D209acf3989f7Fe60", "created": 1635247447, "choice": 1, "space": {"id": "gec.eth"}}, {"id": "<KEY>", "voter": "0x7048Ba1E16f8e09beac71403016d69386dE5E2c7", "created": 1635246750, "choice": 2, "space": {"id": "gec.eth"}}, {"id": "<KEY>", "voter": "<KEY>", "created": 1635245757, "choice": 1, "space": {"id": "gec.eth"}}, {"id": "<KEY>", "voter": "<KEY>", "created": 1635242571, "choice": 2, "space": {"id": "gec.eth"}}, {"id": "<KEY>", "voter": "<KEY>", "created": 1635240052, "choice": 1, "space": {"id": "gec.eth"}}, {"id": "QmdUesyngXDP3WVXvtEn3kvhyqJDovqmjFyMitNfbTx2eA", "voter": "<KEY>", "created": 1635236966, "choice": 1, "space": {"id": "gec.eth"}}, {"id": "<KEY>", "voter": "<KEY>", "created": 1635236151, "choice": 1, "space": {"id": "gec.eth"}}, {"id": "<KEY>", "voter": "0x0c9703f9472c397E54A9F4FC87be47dd332Db327", "created": 1635228533, "choice": 1, "space": {"id": "gec.eth"}}, {"id": "QmTBrBx4rCpPSxiCzdhYn5xGvG7nXY1HYwm1ZSTV93AhsM", "voter": "<KEY>", "created": 1635228259, "choice": 1, "space": {"id": "gec.eth"}}, {"id": "<KEY>", "voter": "<KEY>", "created": 1635227921, "choice": 1, "space": {"id": "gec.eth"}}, {"id": "<KEY>", "voter": "<KEY>", "created": 1635219741, "choice": 1, "space": {"id": "gec.eth"}}, {"id": "<KEY>", "voter": "0x32a6E6dCEd49527366937e62Fc84d7f0285bB5b8", "created": 1635212745, "choice": 2, "space": {"id": "gec.eth"}}]} | json |
<filename>force-app/main/warm-up/lwc/helloWorld/helloWorld.js
import {LightningElement} from 'lwc';
export default class HelloWorld extends LightningElement {}
| javascript |
/**
* Module dependencies.
*/
// come with NodeJS
const path = require('path');
const fs = require('fs');
// installed
const express = require('express');
const multer = require('multer');
const bodyParser = require('body-parser');
const upload = multer({ dest: 'public/media/' });
const errorHandler = require('errorhandler');
/**
* Controllers (route handlers).
*/
const controller = require(path.join(__dirname, 'controllers/index'));
const databaseController = require(path.join(__dirname, 'controllers/api/games-master-controller'));
/**
* Create Express server.
*/
const app = express();
app.use(bodyParser.json());
/**
* Express configuration.
*/
app.set('port', process.env.PORT || 3000);
// set views (html)
app.set('views', [
path.join(__dirname, '/views')
]);
app.set('view engine', 'pug');
// set routing
app.enable('strict routing');
const router = express.Router({
caseSensitive : app.get('case sensitive routing'),
strict : app.get('strict routing')
});
app.use(router);
// static files (i.e. styles, scripts, etc.)
app.use('/', express.static(path.join(__dirname, 'public'), { maxAge: 31557600000 }));
app.use('/', express.static(path.join(__dirname, 'uploads'), { maxAge: 31557600000 }));
/**
* App routes.
*/
router.get('/', controller.index);
router.get('', function(req, res) { res.redirect('/') });
router.get('/auth', controller.index);
router.get('/api', databaseController.query);
router.post('/uploadFile', upload.single('inputFile') , databaseController.uploadFile);
/**
* 500 Error Handler.
*/
app.use(errorHandler());
/**
* Start Express server.
*/
app.listen(app.get('port'), () => {
console.log('Express server listening on port %d in %s mode', app.get('port'), app.get('env'));
});
module.exports = app;
| javascript |
E-waste recycling firm Attero is planning to invest Rs 300 crore in a bid to increase its existing lithium-ion battery recycling capacity by 11 times to 11,000 tons by the end of 2022, a top company official said.
According to the market estimates, India generates more than 50,000 tons of lithium-ion battery waste every year and it is growing in the range of 40-80 per cent depending on different models used for computing electric vehicle growth in India, Attero Recycling CEO and co-founder Nitin Gupta told PTI.
"By the end of 2022, we will be around 22 per cent of the current market size. In terms of tons, it will be 11,000 tons. We are making fresh investments and will soon have a significant amount of investment to build up this capacity. . . We are planning to invest close to around Rs 300 crore," he said.
In addition to lithium-ion recycling capacity, the company has earlier announced to ramp up its entire electronic waste recycling capacity by more than double to 3 lakh metric tons by the end of 2022, from 1. 44 lakh metric tons.
Gupta said that by transitioning to electric vehicles, India will save forex spent on petrol import from the Middle East along with expenditure on importing lithium-ion batteries from China which is a bigger concern.
"In our opinion, by ensuring that the recycling infrastructure in the country can grow and meet India's current local demand and make India self-sufficient in battery materials is what we are working towards.
Explainer: How will solid-state batteries make electric vehicles better?
"In that perspective, we are increasing our recycling capacity for lithium-ion batteries by 11 times by putting up an additional 10,000 tons per annum capacity from the current capacity of 1,000 tonnes per annum and will continue to grow this capacity," Gupta said.
Lithium-ion batteries turn hazardous when they come towards the end of life and need to be treated in an environmentally friendly manner. Almost 30 per cent of the value of a lithium-ion battery cell is the value of metals which make it up, which include cobalt, lithium, nickel, and graphite.
"Almost 70 per cent of the world's cobalt today is mined in the DR Congo region, which is known for child labour, terrorists regimes etc. At the current consumption rate, the world will run out of cobalt by 2030.
"Therefore, recycling lithium-ion batteries, and extracting cobalt and reusing cobalt in battery manufacturing is not only a good thing to do from an environmental perspective, but also supply security issues," he said.
Gupta said that almost 60 per cent of the world's lithium is mined in the Bolivia Argentina triangle, which is also considered the world's driest region and the traditional lithium mining is a water guzzling process.
"To extract one ton of lithium using a traditional lithium mining process requires more than 500,000 gallons of water, which creates a whole amount of ecological issues and social issues around the region as well," he said.
The company is looking at becoming a big player in not only recycling lithium-ion batteries but also becoming a significant player in the supply chain of critical materials, which include cobalt, Lithium, Graphite, and Nickel.
"We have a commercial plant running for the last two years, where we are recycling all kinds of lithium-ion batteries ranging from a cell phone all the way to an electric bus with weights ranging from 30 grams to 780 kilogram. We're extracting pure battery grade cobalt and pure pharmaceutical grade lithium carbonate which is used as a depressant in drugs," Gupta said.
(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 |
Pakistan reported the highest number of COVID-19 deaths in the last 20 days as eight people died in a single day, according to National Institute of Health, Islamabad (NIH) data.
Pakistan reported the highest number of COVID-19 deaths in the last 20 days as eight people died in a single day, according to National Institute of Health, Islamabad (NIH) data.
Earlier, on July 7, the country reported a total of nine deaths, Geo News reported.
As many as, 761 cases have been reported in the past 24 hours, pushing the total coronavirus case count to 1,552,632.
As many as 20,843 Covid tests were conducted across the country in the past 24 hours. The positivity rate has touched 3. 65 per cent.
Meanwhile, 170 people suffering from the virus are being treated in critical care units.
It is pertinent to mention here that World Health Organization (WHO) chief Tedros Adhanom Ghebreyesus said he was worried that coronavirus case numbers were shooting up, putting more strain on health systems and workers.
The number of Covid cases reported to the WHO increased 30 per cent in the past two weeks, driven by sub-variants of the Omicron strain and the lifting of control measures, according to ARY News.
Experts said that the two sub-variants of the Omicron variant, namely BA. 4 and BA. 5, are responsible for the spread of COVID-19. They said that these variants have escape mutations that are giving them an edge. According to the World Health Organization's most recent report, it was behind 52 per cent of cases sequenced in late June, up from 37 per cent in one week. In the United States, it is estimated to be causing around 65 per cent of infections.
Experts also said that the sub-variants have also been infecting people who are already vaccinated or have already been infected with COVD-19, but no evidence is available to show if they are causing any severe disease among the vaccinated people, Geo News reported.
According to the website, BA. 5, which is an omicron variant, is particularly good at evading the immune protection afforded either by vaccination or prior infection.
For this reason, "BA5 has a growth advantage over the other sublineages of Omicron that are circulating," Maria Van Kerkhove, the WHO's technical lead on COVID-19, said as quoted by Geo News.
For many people, this means that they are getting re-infected, often even a short time after having COVID-19. Van Kerkhove said the WHO is assessing reports of re-infections.
"We have ample evidence that people who've been infected with Omicron are getting infected with BA5. No question about it," said Gregory Poland, a virologist and vaccine researcher with the Mayo Clinic in Rochester, Minnesota.
Amid fears of a new wave of coronavirus, experts advocated mask-wearing indoors in cities reporting cases that constitute over 5 per cent positivity.
They also stressed vigilant watch through good surveillance and testing, vaccination with emphasis on boosters and communication about rising risk, especially in urban settings.
( With inputs from ANI ) | english |
<filename>scipy-2012/videos/julia-a-fast-dynamic-language-for-technical-comp.json
{
"alias": "video/1204/julia-a-fast-dynamic-language-for-technical-comp",
"category": "SciPy 2012",
"copyright_text": "CC BY-SA",
"description": "Julia is a dynamic language designed for technical applications and high\nperformance. Its design is based on a sophisticated but unobtrusive type\nsystem, type inference, multiple dispatch instead of class-based OO, and\na code generator based on LLVM. These features work together to run\nhigh-level code efficiently even without type declarations. At the same\ntime, the type system provides useful expressiveness for designing\nlibraries, enables forms of metaprogramming not traditionally found in\ndynamic languages, and creates the possibility of statically compiling\nwhole programs and libraries. This combination of high performance and\nexpressiveness makes it possible for most of Julia's standard library to\nbe written in Julia itself, with an interface to call existing C and\nFortran libraries.\n\nWe will discuss some ways that Python and Julia can interoperate, and\ncompare Julia's current capabilities to Python and NumPy.\n",
"duration": null,
"id": 1204,
"language": "eng",
"quality_notes": "",
"recorded": "2012-07-18",
"slug": "julia-a-fast-dynamic-language-for-technical-comp",
"speakers": [
"<NAME>"
],
"summary": "",
"tags": [
"General"
],
"thumbnail_url": "http://i3.ytimg.com/vi/VCp1jUgVRgE/hqdefault.jpg",
"title": "Julia: A Fast Dynamic Language for Technical Computing",
"videos": [
{
"length": null,
"type": "mp4",
"url": "http://s3.us.archive.org/nextdayvideo/enthought/scipy_2012/Julia_A_Fast_Dynamic_Language_for_Technical_Computing.mp4?Signature=otqxhrYPHzksIHD27rcge7iww4c%3D&Expires=1346381386&AWSAccessKeyId=<KEY>"
},
{
"length": 0,
"type": "youtube",
"url": "http://youtube.com/watch?v=VCp1jUgVRgE"
}
]
}
| json |
use i_shape::{ ShapeType, IShape };
use i_bound::IBound;
use i_vicinity::IVicinity;
use mat::Mat3x1;
use bound::AxisAlignedBBox;
#[derive(Debug, Clone)]
pub struct Sphere {
pub _ori: Mat3x1< f64 >,
pub _radius: f64,
pub _bound: AxisAlignedBBox,
pub _vicinity: f64,
}
impl Sphere {
pub fn init( origin: &[f64], r: f64 ) -> Sphere {
assert!( origin.len() == 3 );
Sphere {
_ori: Mat3x1 { _val: [ origin[0], origin[1], origin[2] ] },
_radius: r,
_bound: AxisAlignedBBox::init( ShapeType::SPHERE, &[ &origin[0..3], &[ r ] ].concat() ),
_vicinity: 0.000001f64,
}
}
}
impl IShape for Sphere {
fn get_shape_data( & self ) -> Vec< f64 > {
vec![ self._ori[0], self._ori[1], self._ori[2], self._radius ]
}
fn get_type( & self ) -> ShapeType {
ShapeType::SPHERE
}
fn get_bound( & self ) -> &IBound {
&self._bound
}
// this shall test for intersection of bounding shapes first before procedding to test intersection using algorithms of higher complexity
fn get_intersect( & self, other: & IShape ) -> ( bool, Option< Mat3x1< f64 > > ){
if !self.get_bound().intersect( other.get_bound() ){
return ( false, None )
}else{
match other.get_type() {
ShapeType::SPHERE => {
let other_shape_data = other.get_shape_data();
let b_off = Mat3x1 { _val: [ other_shape_data[0], other_shape_data[1], other_shape_data[2] ] };
let a_r = self._radius;
let b_r = other_shape_data[3];
let a_off = self._ori;
let c = b_off.minus( &a_off ).unwrap();
let d = c.magnitude().unwrap();
if d > b_r + a_r {
return ( false, None )
} else {
//calculate a mid point average
let f = a_r / ( a_r + b_r );
let g = c.scale( f ).unwrap();
return ( true, Some( a_off.plus( &g ).unwrap() ) )
}
},
ShapeType::RAY => {
//see Ray3 for ray sphere intersection
return other.get_intersect( self )
},
ShapeType::POINT => {
let other_shape_data = other.get_shape_data();
let b_off = Mat3x1 { _val: [ other_shape_data[0], other_shape_data[1], other_shape_data[2] ] };
let d = b_off.minus( &self._ori ).unwrap();
for i in 0..3 {
if d[i] > self._radius {
return ( false, None )
}
}
return ( true, Some( b_off ) )
},
ShapeType::PLANE => {
let other_shape_data = other.get_shape_data();
let b_off = Mat3x1 { _val: [ other_shape_data[0], other_shape_data[1], other_shape_data[2] ] };
let b_nor = Mat3x1 { _val: [ other_shape_data[3], other_shape_data[4], other_shape_data[5] ] };
//x = -plane_normal * t + sphere_center
//dot( plane_normal, x ) = dot( plane_normal, plane_offset ) = k
//substitution:
//dot( plane_normal, -plane_normal * t + sphere_center ) = k
//-t + dot( plane_normal, sphere_center ) = k
//t = dot( plane_normal, sphere_center ) - k
let k = b_nor.dot( &b_off ).unwrap();
let t = b_nor.dot( &self._ori ).unwrap() - k;
if t > self._radius {
return ( false, None )
} else {
return ( true, Some( b_nor.scale( -t ).unwrap().plus( &self._ori ).unwrap() ) )
}
},
_ => { unimplemented!(); },
}
}
}
fn get_support( & self, v: & Mat3x1< f64 > ) -> Option< Mat3x1< f64 > > {
if v.magnitude() != Some( 0f64 ) {
let v_adjusted = v.normalize().expect( "normalization unsuccessful" ).scale( self._radius ).expect("scale unsuccessful");
let o = self._ori.plus( &v_adjusted ).expect( "support operation unsuccessful.");
Some( o )
} else {
None
}
}
}
impl IVicinity< f64 > for Sphere {
fn set_vicinity( & mut self, epsilon: f64 ) {
self._vicinity = epsilon.abs();
}
fn within_vicinity( & self, a: f64, b: f64 ) -> bool {
if a + self._vicinity >= b &&
a - self._vicinity <= b {
true
} else {
false
}
}
}
| rust |
/**
* @file Definition of class to visualize force-simulation network diagram.
*/
import { select } from 'd3-selection'
import { json } from 'd3-fetch'
import { interval } from 'd3-timer'
import grpcClient from '../../grpc-client'
import BaseContainer from '../../../server/graph/common/base'
import { splitAlertHost } from '../../../server/api/common/alert-util'
import PositionCache from './position-cache'
import ForceSimulationDiagramOperator from './operator'
/**
* Force-simulation network diagram visualizer.
* @extends {BaseContainer}
*/
class ForceSimulationDiagramVisualizer extends BaseContainer {
/**
* @param {VisualizerAPIParam} apiParam
*/
constructor(apiParam) {
super()
/** @type {PositionCache} */
this.positionCache = new PositionCache()
/** @type {Array<ForceSimulationDiagramOperator>} */
this.diagramOperators = []
/** @const {VisualizerAPIParam} */
this.apiParam = apiParam
}
/**
* @param {ForceSimulationDiagramVisualizer-drawHookCallback} callback - Callback
* used in frontend to get information about topology data,
* (see: components/VisualizeDiagramForceSimulation.vue)
* @public
*/
setUISideDrawRfcTopologyHook(callback) {
/**
* Hook before draw force-simulation diagram.
* @callback ForceSimulationDiagramVisualizer-drawHookCallback
* @param {ForceSimulationTopologyData} topologyData - Topology data.
*/
this.uiSideDrawRfcTopologyCallback = callback
}
/**
* Draw topology data as diagram.
* @param {ForceSimulationTopologyData} topologyData - Topology data.
* @param {TopologyDiagramParam} params
* @private
*/
_drawRfcTopologyData(topologyData, params) {
/**
* Topology data to draw converted from topology json
* @type {ForceSimulationTopologyData}
*/
this.topologyData = topologyData
/**
* set auto save fixed node position function
* @type {string}
*/
this.storageKey = `netoviz-${params.modelFile}`
interval(() => {
this.positionCache.saveTopology(this.storageKey, this.topologyData)
}, 5000)
this.uiSideDrawRfcTopologyCallback(this.topologyData)
// draw
this._drawNetworkDiagrams()
this.highlightByAlert(params.alertHost)
}
/**
* Get topology data using gRPC API and draw its diagram.
* @param {TopologyDiagramParam} params
* @private
*/
_getGraphDataViaGRPC(params) {
grpcClient(this.apiParam.grpcURIBase)
.getGraphData(`FORCE_SIMULATION`, params)
.then(
response => {
const topologyData = JSON.parse(response.getJson())
this._drawRfcTopologyData(topologyData, params)
},
error => {
throw error
}
)
}
/**
* Get topology data using REST API and draw its diagram.
* @param {TopologyDiagramParam} params
* @private
*/
_getGraphDataViaREST(params) {
const restURI = '/api/graph/forceSimulation/'
json([this.apiParam.restURIBase, restURI, params.modelFile].join(''), {
mode: 'cors'
}).then(
topologyData => {
this._drawRfcTopologyData(topologyData, params)
},
error => {
throw error
}
)
}
/**
* Draw network diagram with topology-data.
* @param {TopologyDiagramParam} params
* @public
*/
drawRfcTopologyData(params) {
if (this.apiParam.use === 'grpc') {
this._getGraphDataViaGRPC(params)
} else {
this._getGraphDataViaREST(params)
}
}
/**
* Find node (from whole networks) by path. (for callback for each network)
* @param {string} path - Path of node.
* @returns {ForceSimulationNodeData} Found node.
* @private
*/
_findNodeDataByPath(path) {
const nodes = this.flatten(this.topologyData.map(network => network.nodes))
return nodes.find(d => d.path === path)
}
/**
* Clear (remove) all diagrams.
* @private
*/
_clearAllDiagrams() {
select('div#visualizer').selectAll('div.network-layer').remove()
}
/**
* Draw diagrams of each network.
* @private
*/
_drawNetworkDiagrams() {
this._clearAllDiagrams()
// hand-over the operation through all layers
// NOTICE: BIND `this`
const callback = path => this._findNodeDataByPath(path)
// entry-point: draw each layer
for (const networkData of this.topologyData) {
/** @type {ForceSimulationDiagramOperator} */
const networkDiagram = new ForceSimulationDiagramOperator(
networkData,
callback
)
this.positionCache.loadToTopologyData(
this.storageKey,
networkData,
networkDiagram
)
networkDiagram.restartSimulation()
this.diagramOperators.push(networkDiagram)
}
}
/**
* Exec callback for each diagram operator. (correspond with each network in topology)
* @param {ForceSimulationDiagramVisualizer-forEachDiagramCallback} callback - Callback.
* @private
*/
_forEachDiagramOperator(callback) {
/**
* @callback ForceSimulationDiagramVisualizer-forEachDiagramCallback
* @param {ForceSimulationDiagramOperator} diagramOperator - Diagram operator of each network.
*/
this.diagramOperators.forEach(d => callback(d))
}
/**
* Alias (need to call from UI)
* @public
*/
clearAllHighlight() {
this._clearAllDiagramsHighlight()
}
/**
* Clear all highlight.
* @private
*/
_clearAllDiagramsHighlight() {
// clear all highlight
this._forEachDiagramOperator(operator => operator.clearHighlight())
}
/**
* Clear all warning messages.
* @private
*/
_clearAllDiagramsWarningMessage() {
this._forEachDiagramOperator(operator => operator.clearWarningMessage())
}
/**
* Find a visualizer by its name.
* @param {string} name - Name of visualizer (network name).
* @returns {ForceSimulationDiagramOperator} Found visualizer.
* @private
*/
_findDiagramOperatorByName(name) {
return this.diagramOperators.find(d => d.networkData.name === name)
}
/**
* @override
*/
highlightByAlert(alertHost) {
if (!alertHost || !this.topologyData) {
return
}
const alert = splitAlertHost(alertHost)
this._clearAllDiagramsHighlight()
// find and select (highlight) a node
// network(layer) order is assumed as high -> low
// search the node to highlight from low layer
let targetNode = null
// use spread copy to avoid destructive reverse.
for (const networkData of [...this.topologyData].reverse()) {
const visualizer = this._findDiagramOperatorByName(networkData.name)
targetNode = visualizer.nodeTypeNodes().find(d => d.name === alert.host)
if (targetNode) {
visualizer.highlightNode(targetNode)
break
}
}
this._clearAllDiagramsWarningMessage()
if (!targetNode) {
this._forEachDiagramOperator(operator => {
const message = `Alerted host: [${alert.host}] is not found.`
operator.makeWarningMessage(message)
})
}
}
}
export default ForceSimulationDiagramVisualizer
| javascript |
It took until a little after 7pm for some sun to shine on the canary yellow shirts of Australia's cricketers as they familiarised themselves with a grey English summer against Leicestershire. By then Michael Clarke's tourists had the match in their keeping against modest opposition, and more importantly had taken the chance to spread the day's workload widely among an XI with limited experience of winning in England.
Taken in isolation, few of the visitors produced compelling performances. David Warner caught the eye with a percussive 74, and Clint McKay's combination of wholehearted seam-up and the odd perplexing slower ball reaped four wickets, but the rest offered cameos that provided the on-field equivalent of a brief net. A day of 70 overs' cricket was a productive result given the overhead conditions for most of the match, and better than they may get in Belfast against Ireland, where heavy rain is predicted.
Of the batsmen only Shane Watson and Steve Smith failed to see out 20 balls, while all the chosen bowlers put in fair shifts. James Pattinson's first spell on English soil was a decidedly slippery burst of two overs with the new ball that accounted for Leicestershire's acting captain Joshua Cobb and beat the bat half a dozen times, and Watson warmed into his work so effectively that he was taken off after nipping out two home batsmen in his third over.
Mitchell Johnson's return to the Australian XI for the first time since last November's tour of South Africa was less wayward than some of his unhappier English spells have been, but he was the only specialist bowler not to take a wicket once called on, and could not complete the day without hearing a reprise of the heckling he received during the 2010-11 Ashes in Australia. The spinners Xavier Doherty (five overs for 28, one wicket) and Steve Smith were not particularly successful either, and will sympathise with West Indies' Sunil Narine.
Leicestershire's target was first revised to 256 off 41 overs, then became 239 off 36 after the day's third rain interruption. They never threatened, as McKay, Pattinson, and Watson went about their work, held up only briefly by Greg Smith and Matthew Boyce.
Low cloud and misty rain had delayed the toss until midday. Clarke chose to bat, the pitch tinged green but firm enough to reward assertive batsmen, particularly as Leicester's attack was modest. Peter Forrest, Brett Lee, Pat Cummins and Ben Hilfenhaus sat out for the visitors.
Warner opened with Matthew Wade ahead of Watson at No. 3, a shift back to the ODI batting order that had been favoured in Australia. Watson had opened on slower West Indian pitches, the better to capitalise on his muscular hitting while the ball was still new, but he seems more likely to come in at first wicket down as a minor concession to his likely bowling demands on this tour.
Nadeem Malik's opening spell was tidy, leaving Wade and Warner to gain more change from the slippery but less accurate Nathan Buck - an England Lions representative. Wade was the more careful of the two batsmen, playing his first significant innings in England, but both he and Warner split the field often enough in an opening stand of 69 that warded off any perceived threat from the new ball.
It was Abdul Razzaq, the former Pakistan allrounder, who found a way past Wade, straightening one enough to win an lbw verdict as Australia's wicketkeeper failed to get forward. Warner took a liking to the modest left-arm spin of James Sykes, hoisting him for a trio of sixes. They were broken up by the dismissal of Watson, however, who tried to pull a short ball in the same direction but did not clear deep midwicket.
Rain arrived shortly after Clarke had reached the wicket, and the further delay cut the innings by another six overs. Though Warner retired on resumption, his innings left a stronger impression than several that were to follow. Clarke clipped his way to 29 then was bowled slogging at Cobb the ball after lofting him for six, David Hussey played busily but shelled Nadeem into the deep, and George Bailey's 21 was brisk but ended when he failed to cover a Razzaq delivery that snapped back to splay the stumps.
Smith's return to the Australian side after a summer with New South Wales was also underwhelming, tallying only 11 before he too failed to clear the boundary, and McKay could last only one ball against Razzaq. However Johnson and Pattinson hit out well at the end, looking a pair of twins in their upright and powerful left-handed stances.
| english |
package com.microservices.gamification.client;
import com.microservices.gamification.client.dto.MultiplicationResultAttempt;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate;
/**
* @className: MultiplicationResultAttemptClientImpl
* @description: TODO 类描述
* @author: GuyCui
* @date: 2021/12/26
**/
@Component
public class MultiplicationResultAttemptClientImpl implements MultiplicationResultAttemptClient {
private final RestTemplate restTemplate;
private final String multiplicationHost;
@Autowired
public MultiplicationResultAttemptClientImpl(final RestTemplate restTemplate, @Value("${multiplicationHost}") final String multiplicationHost) {
this.multiplicationHost = multiplicationHost;
this.restTemplate = restTemplate;
}
/**
* 检索效果倍增尝试通过id
*
* @param multiplicationId 乘法id
*
* @return {@code MultiplicationResultAttempt}
*/
@Override
public MultiplicationResultAttempt retrieveMultiplicationResultAttemptById(Long multiplicationId) {
return restTemplate.getForObject(multiplicationHost + "/results" + multiplicationId, MultiplicationResultAttempt.class);
}
}
| java |
[{"namaKab":"<NAME>","originalFilename":"ABDUL RAJAB KARAENG RAPANNA.jpg","namaPartai":"Partai Golongan Karya","id":87650,"noUrut":1,"nama":"<NAME>","stringJenisKelamin":"Laki-Laki"},{"namaKab":"<NAME>","originalFilename":"FOTO.jpg","namaPartai":"Partai Golong<NAME>","id":127808,"noUrut":2,"nama":"<NAME>","stringJenisKelamin":"Laki-Laki"},{"namaKab":"<NAME>","originalFilename":"HJ. SITTI SAENAB.JPG","namaPartai":"Partai Gol<NAME>a","id":100459,"noUrut":3,"nama":"<NAME>","stringJenisKelamin":"Perempuan"},{"namaKab":"<NAME>","originalFilename":"FOTO.jpg","namaPartai":"Partai Gol<NAME>","id":111925,"noUrut":4,"nama":"<NAME>.","stringJenisKelamin":"Laki-Laki"},{"namaKab":"<NAME>","originalFilename":"MARYANI ALI.jpg","namaPartai":"Partai Golongan Karya","id":150848,"noUrut":5,"nama":"<NAME>.","stringJenisKelamin":"Perempuan"}] | json |
<filename>src/server/state.ts
import express from "express";
import {AppState} from "../common/store";
import initialState from "../common/store/initial-state";
import {Global, ListStyle, Theme} from "../common/store/global/types";
import {activeUserMaker} from "../common/store/helper";
import defaults from "../common/constants/defaults.json";
import {getSearchIndexCount} from "./helper";
import {getOperatingSystem} from "../common/util/platform";
export const makePreloadedState = async (req: express.Request): Promise<AppState> => {
const _c = (k: string): any => req.cookies[k];
const activeUser = _c("active_user") || null;
const theme = _c("theme") && Object.values(Theme).includes(_c("theme")) ? _c("theme") : defaults.theme;
const listStyle = _c("list-style") && Object.values(ListStyle).includes(_c("list-style")) ? _c("list-style") : defaults.listStyle;
const intro = !_c("hide-intro");
const globalState: Global = {
...initialState.global,
theme: Theme[theme],
listStyle: ListStyle[listStyle],
intro,
searchIndexCount: await getSearchIndexCount(),
canUseWebp: req.headers.accept !== undefined && req.headers.accept.indexOf("image/webp") !== -1,
isMobile: !!(req.headers["user-agent"] && ["iOS", "AndroidOS"].includes(getOperatingSystem(req.headers["user-agent"])))
};
return {
...initialState,
global: globalState,
activeUser: activeUser ? activeUserMaker(activeUser) : initialState.activeUser,
}
}
| typescript |
<reponame>wildpeaks/package-electron-test-utils
{
"name": "@wildpeaks/electron-test-utils",
"version": "1.0.1",
"description": "Electron Test Utilities",
"main": "src/utils.js",
"files": [
"src/utils.js",
"test/getBounds.tests.js",
"test/hasFocus.tests.js",
"test/screenshot.tests.js",
"test/simulateClick.tests.js",
"test/simulateKey.tests.js"
],
"eslintConfig": {
"extends": "@wildpeaks/commonjs"
},
"scripts": {
"test:eslint": "eslint src",
"test:mocha": "electron-mocha --renderer test/*.js",
"test": "npm run test:eslint && npm run test:mocha"
},
"repository": "https://github.com/wildpeaks/package-electron-test-utils",
"keywords": [
"wildpeaks",
"electron",
"test"
],
"author": "<NAME>",
"license": "MIT",
"bugs": {
"url": "https://github.com/wildpeaks/package-electron-test-utils/issues"
},
"homepage": "https://github.com/wildpeaks/package-electron-test-utils#readme",
"peerDependencies": {
"electron": ">=1.4.12"
},
"devDependencies": {
"electron": "1.4.12",
"electron-mocha": "3.3.0",
"eslint": "3.14.1",
"sinon": "1.17.7",
"@wildpeaks/eslint-config-commonjs": "1.1.0"
}
}
| json |
<filename>models/evaluater.py
import chainer
from chainer import functions, reporter
import cupy as cp
class FrameworEvaluater(chainer.Chain):
'''
evaluator for each separate part
'''
def __init__(self, g_stop, g_atom, g_pair, g_action):
self.g_stop = g_stop
self.g_atom = g_atom
self.g_pair = g_pair
self.g_action = g_action
super(FrameworEvaluater, self).__init__()
def __call__(self, f_atoms, f_bonds, super_node_x,
atom_label, mask_reagents, mask_reactants_reagents, pair_label, mask_pair_select,
action, step_num,
stop_idx,
sample_index):
atom_label -= 1
mask_reagents -= 2
mask_reactants_reagents -= 2
action -= 1
batch_size = action.shape[0]
# atom
loss_atom, acc_atom, atoms_selected = self.g_atom(f_atoms, cp.copy(f_bonds), super_node_x, atom_label, mask_reagents, mask_reactants_reagents, batch_size)
# pair
loss_pair = self.g_pair(f_atoms, cp.copy(f_bonds), super_node_x, action, pair_label, mask_pair_select, batch_size, atoms_selected)
# action
loss_action, acc_action = self.g_action(f_atoms, cp.copy(f_bonds), super_node_x, action, batch_size)
# stop
loss_stop, acc_stop = self.g_stop(f_atoms, cp.copy(f_bonds), super_node_x, stop_idx, action, batch_size)
reporter.report({
'loss_stop': loss_stop,
'loss_atom': loss_atom,
'loss_pair': loss_pair,
'loss_action': loss_action,
'acc_stop': acc_stop,
'acc_atom': acc_atom,
# 'acc_pair': acc_pair, # acc_pair need to be further extended
'acc_action': acc_action,
}, self)
| python |
Protective children's shorts - what are they for?
So, your child has chosen an extreme sport. Protective children's shorts will become an indispensable attribute in his outfit. What is their design?
Protective children's shorts are first and foremost distinguished by their foundation. It consists of an elastic nylon mesh. Protective elements can be soft, perforated, made of polyethylene foam of varying density and thickness. Also, it can be molded plastic 3D overlays designed to be applied to hips and coccyx. By the way, they also have a perforation for ventilation. Plastic tabs are equipped only with shorts of large sizes.
In a word, there are a lot of advantages in this category of sports equipment. Protective children's shorts are designed in such a way that, with a sudden drop, the energy of impact is evenly distributed and absorbed. Accordingly, the probability of possible serious damage is significantly reduced. By the way, these shorts, while protecting the child from traumas of the tailbone and thighs, allow you to sit still comfortably, and also do not restrain movement at all.
What about the cost of this accessory? Shorts protective ("napopniki") children's for figure skating, cycling, skeybordinga, etc. differ rather low price. It depends on the company, size and composition. For example, small models without plastic overlays will cost you about 1300 rubles. Shorts with plastic on the tailbone - at 1,700 rubles. Large models with overlays and on the hips are 2000 rubles. However, you can order shorts also with a special thickness of protection. Such models are estimated at approximately 2500 rubles.
Most importantly, do not forget that before you buy protective children's shorts, you must necessarily measure the circumference of your baby's hips, and without outerwear. The size is selected depending on the measurements taken. Accordingly, the price range also changes.
Thus, protective shorts for rollers (children's), or for other sports are simply necessary for children who prefer active rest. They will allow them to protect and coccyx, and thighs, and buttocks.
In the production of these models, special inserts of foam are used, not only softening impacts, but also performing the function of insulation of moisture and heat. Be sure that these shorts are very convenient to use, since they are equipped with a "breathable" mesh and perforations on all the inserts.
And it's not just this element. Only high-quality materials are used in the manufacture of this accessory. That is, the aforementioned elastic mesh is made only of one hundred percent polyester. It is designed specifically for sportswear. The mesh differs in a high degree of vapor permeability (due to the special fiber weaving) and excellent abrasion resistance (due to polyester).
As for protective foam, they are made of foamed polyethylene with a thickness of about 10 millimeters. This material is absolutely safe and has a lot of advantages. First, when deformed, it immediately restores its shape, secondly, it keeps heat, and third, it does not absorb moisture. Foam items are placed, as a rule, in those places that are most often subjected to shocks.
In short, these shorts are intended for children involved in active sports. They perfectly protect them from possible injuries, that's why they are an obligatory attribute of young skiers, roller skaters, hockey players, snowboarders and other small extreme lovers. | english |
Bigg Boss 14: Aly Goni was apparently let down by the makers just to add an element of excitement at the Grand Finale. This is what happened as per The Real Khabri.
The Grand Finale of Bigg Boss 14 was a predictable affair. Rubina Dilaik who has been a part of the industry for 16 long years walked home with the Bigg Boss trophy. Everyone expected the finale to be a face-off between Rubina Dilaik and Rahul Vaidya. But the shock was the elimination of Aly Goni. Everyone expected him to be in the top three. Fans of the show inside and outside of social media were surprised that how Aly Goni got ousted before Nikki Tamboli. The young model did play a good game, but Aly Goni had made a bigger impression than her in a very short time.
Now, The Real Khabri has revealed that Aly Goni got twice the number of votes than Nikki Tamboli but the makers eliminated him. He is saying that the makers made him a scapegoat such to add an element of excitement on the grand finale.
Aly Goni told reporters after the finale that he did not have any expectations. His journey on the show had been like a roller coaster ride. He came in for Jasmin Bhasin and left to save her. Later, he made an entry once again on the show. One of the moments of Bigg Boss 14 was his breaking down when he saw Jasmin Bhasin being eliminated. He said, "I am a very emotional guy. I have no inhibitions in showing my emotions to the world. I am happy in the manner in which I have played." Aly Goni was the highest-paid contestant with Rs 16 lakh per week.
Stay tuned to BollywoodLife for the latest scoops and updates from Bollywood, Hollywood, South, TV and Web-Series.
Click to join us on Facebook, Twitter, Youtube and Instagram.
Also follow us on Facebook Messenger for latest updates.
| english |
/**
* gs-results
*
* This Web Component renders a list of gs-result.
*/
export class Results extends HTMLElement {
constructor() {
super();
this._items = [];
this.render();
}
/**
* Update the items prop and render
*/
set items(items = []) {
this._items = items;
this.render();
}
/**
* Render the component HTML
*/
render() {
if (!this._items.length) {
this.innerHTML = "";
return;
}
const html_list = this._items
.map(
({
name,
url,
description,
user,
stars,
language,
updated,
license,
}) => `
<li>
<gs-result
name="${name}"
url="${url}"
description="${description}"
user="${user}"
stars="${stars}"
language="${language}"
updated="${updated}"
license="${license}"
></gs-result>
</li>
`
)
.join("");
this.innerHTML = `
<ol class="list">
${html_list}
</ol>
`;
}
}
| javascript |
Raj Thackeray Reacts Sharply On BJP's Karnataka Loss, Says 'This Is Defeat Of. . . '
BJP Karnataka Election defeat: Raj Thackeray said, "I had said that the Opposition party never wins, but the ruling party loses. This is the defeat of arrogance. This is the defeat of those who thought that no one can defeat them. "
Mumbai: Maharashtra Navnirman Sena ( MNS ) chief Raj Thackeray has reacted sharply to the defeat BJP in the Karnataka Assembly elections whose results were declared on Saturday. Referring to BJP, Raj Thackeray said "This is the defeat of arrogance and Rahul Gandhi 's ' Bharat Jodo Yatra '.
He said the public should never be taken for granted.
"In my earlier speech, I had said that the Opposition party never wins, but the ruling party loses. This is the defeat of arrogance. This is the defeat of those who thought that no one can defeat them. Everyone should take lessons from this defeat," said Raj Thackeray.
When asked whether there will be a Karnataka like change in Maharashtra, Raj said he is not a soothsayer who can foretold the future. Congress on Saturday got a massive mandate by winning 136 seats and reducing BJP to just 66 seats. | english |
<gh_stars>0
"""
Given two strings representing sentences, return the words that are not common to both strings
(i.e. the words that only appear in one of the sentences). You may assume that each sentence is
a sequence of words (without punctuation) correctly separated using space characters.
"""
from typing import List
class UncommonWordsFromTwoSentences:
def uncommonFromSentences(self, A: str, B: str) -> List[str]:
AB = (A + " " + B).split()
unique = {}
for i in range(len(AB)):
if AB[i] in unique:
unique[AB[i]] = unique[AB[i]] + 1
else:
unique[AB[i]] = 1
return [word for word in unique if unique[word] == 1]
if __name__ == "__main__":
u = UncommonWordsFromTwoSentences()
print(u.uncommonFromSentences("this apple is sweet", "this apple is sour"))
print(u.uncommonFromSentences("apple apple", "banana"))
| python |
<filename>cmd/rundeck/cmds/delete_job.go
package cmds
import (
"github.com/lusis/go-rundeck/pkg/cli"
"github.com/spf13/cobra"
)
func deleteJobFunc(cmd *cobra.Command, args []string) error {
id := args[0]
return cli.Client.DeleteJob(id)
}
func deleteJobCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "delete job-id",
Short: "deletes a job on the rundeck server",
Args: cobra.MinimumNArgs(1),
RunE: deleteJobFunc,
}
rootCmd := cli.New(cmd)
rootCmd.ResetFlags()
return rootCmd
}
| go |
<reponame>Phalufa/coupowns<gh_stars>0
package com.miko.couponsystemfullstack.controllers;
import com.miko.couponsystemfullstack.services.ClientService;
import com.miko.couponsystemfullstack.services.login.LoginManager;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.security.auth.login.LoginException;
import java.util.Base64;
import java.util.Map;
import java.util.UUID;
import static com.miko.couponsystemfullstack.services.login.LoginManager.*;
@RestController
public class LoginController {
private final LoginManager loginManager;
private final Map<String, Session> sessionsMap;
public LoginController(LoginManager loginManager, Map<String, Session> sessionsMap) {
this.loginManager = loginManager;
this.sessionsMap = sessionsMap;
}
/**
*
* @return a string that contains token and basic encoded role
*/
@PostMapping("/login/{email}/{password}/{clientType}")
public String login(@PathVariable String email,
@PathVariable String password,
@PathVariable ClientType clientType) throws LoginException {
ClientService clientService = loginManager.login(email, password, clientType);
if (clientService != null) {
String token = UUID.randomUUID().toString();
String role = Base64.getEncoder().encodeToString(clientType.name().getBytes());
String time = System.currentTimeMillis() + "";
sessionsMap.put(token, new Session(clientService, System.currentTimeMillis()));
return "\"{" + token + "role:" + role + "time:" + time + "}\"";
}
throw new LoginException();
}
@PostMapping("/logout/{token}")
public void logout(@PathVariable String token) {
sessionsMap.remove(token);
}
}
| java |
As reported by UGC, the capital also has seven of the country's 23 fake universities.
By India Today Web Desk: In a bid to save students from taking admission in fake universities and colleges of India, the University Grants Commission (UGC) has released a list of 23 fake universities on its website.
In the fake university list, Delhi tops with 66 colleges running offering engineering and other technical courses without proper accreditation.
23 fake universities, UGC report says:
"There are 279 such technical institutes in the country. "
"The Capital also has seven of the country's 23 fake universities," UGC reported.
(Read: Out of 8 lakh graduate engineers, 60 per cent remain jobless in India)
As reported in HT, in an annual review, the UGC and All India Council for Technical Education (AICTE) last month put out a list of such fake institutes on their websites, warning students ahead of the new academic session that kicks in next month.
Further, a senior official said, "We send the list of unapproved and unregulated technical institutions to concerned state authorities for taking appropriate action against such institutions. "
Fake universities in other states:
Telangana, Uttar Pradesh, West Bengal, Maharasthra also have considerable number of fake technical institutes.
Measures taken by AICTE:
Note: Also, the list of fake universities and fake technical institutes are available on the UGC website www. ugc. ac. in and AICTE website www. aicte-india. org.
Last year on July 1, the UGC listed 22 fake universities on its website. | english |
{
"title": "Venetian Landscape",
"creation_date": "1954",
"creation_date_earliest": "1954-01-01",
"creation_date_latest": "1954-01-01",
"medium": "oil on canvas",
"accession_number": "55.28",
"id": "cmoa:things/eb4cc21f-aa77-45b0-88ad-84fe634d2afd",
"credit_line": "Patrons Art Fund",
"date_acquired": "1955-10-12",
"department": "Contemporary Art",
"physical_location": "Not on View",
"item_width": 80.375,
"item_height": 63.188,
"item_depth": 1.625,
"item_diameter": 0.0,
"web_url": "http://collection.cmoa.org/CollectionDetail.aspx?item=1009429",
"provenance_text": "<NAME> [1913-2007], Copenhagen, Denmark, until October 1955 [1]; acquired by Department of Fine Arts, Carnegie Institute, Pittsburgh, PA, October 1955 [2].\n\nNotes:\n[1]. The painting was no. 230 (illustrated, plate 83) in \"The 1955 Pittsburgh International Exhibition of Contemporary Painting\" held at Carnegie Institute, October-December 1955. \n[2]. The painting was purchased from the International with a partial contribution from an anonymous donor.",
"classification": "paintings",
"images": [
{
"image_url": "http://collection.cmoa.org/CollectionImage.aspx?irn=119132&size=Medium"
},
{
"image_url": "http://collection.cmoa.org/CollectionImage.aspx?irn=37611&size=Medium"
}
],
"creator": [
{
"artist_id": "cmoa:parties/0a8048d6-95de-44b8-a9bf-9489086ead0e",
"party_type": "Person",
"full_name": "<NAME>",
"cited_name": "<NAME>",
"role": null,
"nationality": "Danish",
"birth_date": "1913-01-01",
"death_date": "2007-01-01",
"birth_place": "Copenhagen (Hovedstaden, Denmark)",
"death_place": "Copenhagen (Hovedstaden, Denmark)"
}
]
}
| json |
Around three hundred students of Guru Nanak Dev University who recently graduated from the university had got job offers from various reputed multinational companies with hefty packages . These students are now facing a peculiar situation viz a viz the job offers on account of non-availability of Detailed Marks Cards of their intermediate semesters, as they were promoted last year on the basis of the cumulative average of their grades of previous semesters as per the directions of the government in wake of the pandemic. Some of the companies offering jobs are finding it difficult to evolve a criteria to hire prospective employees in absence of concrete and comprehensive evidence of their academic performance in form of detailed marks cards of all the semesters. Reservations are also expressed on the system of conduct of non- proctored e mail based examinations of the exit class students .The system of conducting non proctored email based examinations by sending question papers and then receiving answer sheets of students through email has not been taken very kindly by students and their hirers. This system of e mail based conduct of examinations has also created upheaval, as it has been observed that there is a noticeable discrepancy between the performance of the students in comparison to their past record of previous semesters regarding secured marks. In many instances, it has resulted in good students securing less marks.
Guru Nanak Dev university is in contact with all these companies on daily basis and trying hard to sort out these issues so that the students having placements in various companies do not face any problem in joining their jobs. .
However, as second wave was in it peak there was uncertainty about the current covid -19 situation, the university had conducted students’ survey by creating a dedicated page to take feedback from students, as to their choice method of examination and also the fallacies in the last years examination system.
Corona casts a shadow on placement of students of Guru Nanak Dev University. Keeping in view the health of the students in focus the university did not want to impose the procedure without taking into consideration the students view point. The Overwhelming majority of the students have given their choice for offline examinations.
In the light of this The university has conveyed to Government of Punjab the desire of overwhelming majority of students and has sought directions in this matter. The Guru Nanak Dev university will conduct examinations as per guidelines and directions from Government of Punjab as and when received by it.
| english |
#include "base_state.hpp"
#include "game.hpp"
#include "networking_system.hpp"
#include "game_client.hpp"
#include <iostream>
#include <thread>
#include <chrono>
#include <vector>
using namespace std::literals;
int main(int argc, char* argv[]) {
// initialize game state
game g_state;
// initialize game server
networking_system n_system(std::atoi(argv[1]));
// set game state pointer prop on game server obj
n_system.set_game_state_ptr(&g_state);
// set game server pointer prop on game state obj
g_state.set_networking_system_ptr(&n_system);
// vector of all possible states (just game state for now)
std::vector<base_state*> states_vec;
// push game state obj on top of states vec
states_vec.push_back(&g_state);
std::cout << "Listening for connections on port " << n_system.get_port() << std::endl;
try {
// url of lobby server
std::string uri = "ws://localhost:8080";
// initialize game client
game_client g_client(uri, &n_system);
// start polling both client and server
while (true) {
n_system.poll();
g_client.poll();
// call update on most recently added state
if (!states_vec.empty()) {
states_vec.back()->update();
}
std::this_thread::sleep_for(20ms);
}
}
catch (websocketpp::exception const & e) {
std::cout << e.what() << std::endl;
}
} | cpp |
Minecraft comes with a lot of features. Even veteran Minecraft players get to learn something new every now and then. With so many features, there's always room to improve something.
Mojang listens to the community a lot and works on the game based on the feedback. Fans requested the cave changes for a long time, and Mojang ended up working on new cave biomes. They will be released in the upcoming 1.18 update later this year.
A handful of animals in the game can be tamed by the players by feeding them their preferred item. Sadly, there's not much to do once the animals have been tamed. Players can feed them, and the animal may or may not follow them. Taming features need to be updated, and Mojang could also add more pet features.
Minecraft is so much in need of new furniture that players have been using armor stands to furnish their houses. It looks fine, but it's not a proper piece of furniture. The only proper furniture that the game has right now is the beds. New furniture like chairs, tables, and even more bed variations would look great in the game.
The fletching table is a block that players can craft using two flints and four planks of any type. The only use it currently has is that it can convert unemployed villagers into fletchers. Like crafting tables and smithing tables, the fletching table needs to be updated so that players can use it for something.
Minecraft's graphics and textures have been updated very slightly over the past few years. A lot of players are already using shaders to improve the game's graphic quality. Ray tracing was introduced to the game, but it is only available on Bedrock Edition.
The amount of resources ray tracing consumes and how much it affects performance is not something everyone finds worthy. Without replacing the current textures, Mojang can add improved graphics settings as an option.
Every player needs to travel to The End Dimension to finish Minecraft. Sadly, the End is a dull dimension and lacks variations since there are no unique biomes. New biomes and features would make the End a lot more fun.
This article solely reflects the opinions of the writer.
| english |
<gh_stars>10-100
//==============================================================================
// Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI
// Copyright 2012 - 2014 MetaScale SAS
//
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//==============================================================================
#ifndef BOOST_SIMD_ARITHMETIC_FUNCTIONS_GENERIC_REMQUO_HPP_INCLUDED
#define BOOST_SIMD_ARITHMETIC_FUNCTIONS_GENERIC_REMQUO_HPP_INCLUDED
#include <boost/simd/arithmetic/functions/remquo.hpp>
#include <boost/simd/include/functions/simd/round2even.hpp>
#include <boost/simd/include/functions/simd/toint.hpp>
#include <boost/simd/include/functions/simd/minus.hpp>
#include <boost/simd/include/functions/simd/is_eqz.hpp>
#include <boost/simd/include/functions/simd/divides.hpp>
#include <boost/simd/include/functions/simd/is_invalid.hpp>
#include <boost/simd/include/functions/simd/logical_or.hpp>
#include <boost/simd/include/functions/simd/multiplies.hpp>
#include <boost/simd/include/functions/simd/if_allbits_else.hpp>
#include <boost/simd/sdk/config.hpp>
#include <boost/dispatch/meta/as_integer.hpp>
#include <boost/fusion/include/std_pair.hpp>
#include <boost/type_traits/is_same.hpp>
#include <boost/dispatch/attributes.hpp>
namespace boost { namespace simd { namespace ext
{
BOOST_DISPATCH_IMPLEMENT_IF ( remquo_
, tag::cpu_
, (A0)(A1)
, ( boost::is_same
< typename dispatch::meta::
as_integer<A0,signed>::type
, A1
>
)
, (generic_< floating_<A0> >)
(generic_< floating_<A0> >)
(generic_< integer_<A1> > )
)
{
typedef A0 result_type;
BOOST_FORCEINLINE
result_type operator()(A0 const& a0,A0 const& a1,A1& a3) const
{
result_type a2;
boost::simd::remquo(a0, a1, a2, a3);
return a2;
}
};
BOOST_DISPATCH_IMPLEMENT ( remquo_, tag::cpu_
, (A0)
, (generic_< floating_<A0> >)
(generic_< floating_<A0> >)
)
{
typedef typename dispatch::meta::as_integer<A0, signed>::type quo_t;
typedef std::pair<A0,quo_t> result_type;
BOOST_FORCEINLINE result_type operator()(A0 const& a0,A0 const& a1) const
{
A0 first;
quo_t second;
boost::simd::remquo( a0, a1, first, second );
return result_type(first, second);
}
};
BOOST_DISPATCH_IMPLEMENT_IF ( remquo_, tag::cpu_
, (A0)(A1)
, ( boost::is_same
< typename dispatch::meta::
as_integer<A0,signed>::type
, A1
>
)
, (generic_<floating_<A0> >)
(generic_<floating_<A0> >)
(generic_<floating_<A0> >)
(generic_<integer_ <A1> >)
)
{
typedef void result_type;
BOOST_FORCEINLINE
result_type operator()(A0 const& a0, A0 const& a1,A0& a2, A1& a3) const
{
A0 const d = round2even(a0/a1);
#if defined(BOOST_SIMD_NO_INVALIDS)
a2 = if_allbits_else(is_eqz(a1), a0-d*a1);
#else
a2 = if_allbits_else(l_or(is_invalid(a0), is_eqz(a1)), a0-d*a1);
#endif
a3 = toint(d);
}
};
} } }
#endif
| cpp |
<filename>bower.json<gh_stars>1-10
{
"name": "watch.js",
"main": "watch.min.js",
"version": "0.1.0",
"homepage": "https://github.com/oliver-moran/watch.js",
"authors": [
"<NAME> <<EMAIL>>"
],
"description": "Extends the JavaScript Object prototype to observe when an object is changed.",
"keywords": [
"javascript",
"object",
"observe",
"observer",
"watch",
"watcher",
"change",
"onchange"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
]
}
| json |
<reponame>mayurhole/optaplanner
/*
* Copyright 2019 Red Hat, Inc. and/or its affiliates.
*
* 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 org.optaplanner.core.impl.testdata.domain.score.lavish;
import java.math.BigDecimal;
import java.math.BigInteger;
import org.optaplanner.core.impl.testdata.domain.TestdataObject;
public class TestdataLavishExtra extends TestdataObject {
private String stringProperty = "";
private Integer integerProperty = 1;
private Long longProperty = 1L;
private BigInteger bigIntegerProperty = BigInteger.ONE;
private BigDecimal bigDecimalProperty = BigDecimal.ONE;
public TestdataLavishExtra() {
}
public TestdataLavishExtra(String code) {
super(code);
}
public String getStringProperty() {
return stringProperty;
}
public void setStringProperty(String stringProperty) {
this.stringProperty = stringProperty;
}
public Integer getIntegerProperty() {
return integerProperty;
}
public void setIntegerProperty(Integer integerProperty) {
this.integerProperty = integerProperty;
}
public Long getLongProperty() {
return longProperty;
}
public void setLongProperty(Long longProperty) {
this.longProperty = longProperty;
}
public BigInteger getBigIntegerProperty() {
return bigIntegerProperty;
}
public void setBigIntegerProperty(BigInteger bigIntegerProperty) {
this.bigIntegerProperty = bigIntegerProperty;
}
public BigDecimal getBigDecimalProperty() {
return bigDecimalProperty;
}
public void setBigDecimalProperty(BigDecimal bigDecimalProperty) {
this.bigDecimalProperty = bigDecimalProperty;
}
}
| java |
<reponame>mostaphaRoudsari/RadianceMailingList
{"body": "Hi Olga,\n\n\nNo one mentioned the simplest solution, which I suppose is obvious, of \nchanging your PATH environment variable in your shell so that the \nRadiance bin directory (/usr/local/bin by default) preceeds the \ndirectory containing vim (/usr/bin usually). This will fix the problem \nwithout having to rename or reinstall anything. Renaming Radiance's \n\"rview\" to \"rvu\" will break the concurrent release of \"rad,\" which \nstill calls \"rview\" to start an interactive rendering.\n\n\n-Greg\n___\n<sup>Automatically generated content from [radiance mailing-list](https://radiance-online.org/pipermail/radiance-general/2004-May/001716.html).</sup>", "attachments": [], "created_by_name": "<NAME>", "created_at": "May 19, 2004 at 04:59PM", "created_by": "Greg_Ward", "parent_id": "radiance-general_001710", "id": "radiance-general_001716"} | json |
If your business is like most, it probably has a complicated long-term relationship with customer data. You’ve likely been generating data of some kind since the earliest days of your first-generation website and customer relationship management (CRM) implementation. But during these early days, organizing and harmonizing data about how people engage with your business likely took a back seat to the practical realities of driving early adoption and building initial sales momentum.
But every successful company reaches a point when it is necessary to drive growth in more systematic and predictable ways. Startups need to put new venture capital investments to work creating a scalable growth engine. Mature businesses face constant pressure to innovate, so they can attract new customers and keep the ones they have engaged.
This usually ends up being harder than it should be. The technologies, best practices, and regulatory landscape are constantly evolving. And often, the baggage of the past can prevent you from taking your business where it needs to go.
Very few businesses use customer data perfectly. But the most successful ones understand that data maturity is a Journey. Like any journey, it can be tempting to look for shortcuts. But the only way to navigate to your desired destination is by:
Through our work guiding businesses on these journeys, we’ve identified four distinct waypoints on the journey to data maturity.
Arriving at an honest assessment of where your Organization is on its journey to data maturity will help you identify ways to unlock near-term value and move towards more strategic applications of customer data over time.
One common misstep that many organizations take with customer data is focusing too much on visualization before they have a firm footing in clean and well-structured source data. Even organizations with data engineers on staff often struggle with the fact that the quality of insights is often determined by the configuration and utilization of the underlying source technology. For example, focusing data engineers and analysts on creating a sophisticated data warehouse and business intelligence (BI) implementation without clean data flowing from foundational CRM and marketing automation systems will bring confusion and finger-pointing instead of insights.
Instead, start by assessing what you already have in place and making some initial optimizations to generate clean, actionable data. This may include:
- Making the necessary changes to your Google Analytics and Google Tag Manager configurations to eliminate issues like double-counting and adding tags to support future business needs.
- Revisiting your CRM data model to ensure that it aligns with your demand waterfall stages.
But your time at Basecamp doesn’t need to be solely focused on cleanup. You can tap into the benefits of clean and well-structured data by initially focusing on less process-intensive tools like Google Analytics.
Desired Outcomes:
- You’re capturing all necessary events from your web infrastructure.
- You’ve assessed your data and infrastructure and created a roadmap to generate clean, well-structured data.
- You have created business workflow diagrams for all use cases notating people/process through the qualification funnel.
Advanced basecamp is where your efforts at Basecamp really start to pay off. Once you have clean foundational data flowing, you can build a more sophisticated demand waterfall. This includes creating an end-to-end event flow across your web infrastructure, CRM, and marketing automation infrastructure, including any necessary data synchronization and scoring models.
These additional steps build on your work at basecamp to make it much more efficient to create accurate reports that you can use to drive decisions. You will also see a complete picture of customer engagement that extends from page visits to closed CRM opportunities.
Another essential step to take at Advanced Basecamp is to put the necessary systems in place to ensure that data remains clean over time. A big part of this is putting playbooks in place to ensure that new campaigns added in the future conform to the correct naming convention and have consistent tagging approaches in place.
In addition to taking a step further on your journey to data maturity, you will see immediate benefits in the sophistication of your reporting. This includes a greater ability to measure the performance of paid media investments in a consolidated manner.
Desired Outcomes:
- You have end-to-end visibility from page view to closed opportunity.
- You have well-organized campaign definitions and naming conventions.
- You have best practice playbooks in place for launching new campaigns.
- You have more sophisticated native reporting in your tools.
Once you have confidence in the current – and future – cleanliness and organization of your foundational data, you’re ready to proceed to high camp. High Camp is where you take a significant step forward by implementing a first-party data strategy.
Your first step at high camp will be to implement a centralized data warehouse that your team has complete control over. Snowflake or Amazon Redshift are two common technology platforms that many organizations use for this purpose.
Once you’ve implemented your platform of choice, you can implement the necessary data ingestion and transformation techniques to bring source data in from your CRM and marketing automation tools. Clean data in a flexible and scalable data warehouse opens up many more opportunities to use customer data in strategic ways.
For example, you can enrich your data to include demographic information and intent signals. It’s also possible to implement more powerful visualizations and reporting using a dedicated BI tool once you have clean, enriched data that is centrally accessible.
Desired Outcomes:
- You’ve implemented a modern data infrastructure including cloud data warehouse that is pulling source data from your CRM and marketing automation tools.
- You’ve introduced your first data enrichments.
- You’ve created best-practice visualizations and dashboards with your BI tool of choice.
Organizations that approach the journey to data maturity systematically will eventually reach the summit. The summit is a closed-loop customer data approach that can Support Machine Learning and more advanced customer engagement approaches.
Once customer data is enriched, it is often helpful to feed it back into the systems that your teams use to manage your business. In its most basic form, this may include sending more granular user data, such as trial or logged in data, back into your CRM.
But clean, first-party data also opens the door to more strategic use of customer data. Examples include more precise targeting of customers with relevant messaging and advertising and dynamically personalizing web application experiences to increase engagement.
Customers at the summit can also take their first steps into machine learning models and predictive analytics to unlock even more business value from their customer data.
Desired Outcomes:
- You’ve added more sophisticated customer data enrichment capabilities.
- Your customer data has the necessary cleanliness and organization to support machine learning and predictive analytics.
- You have a closed-loop system that feeds valuable data and insights back into source tools like your CRM.
- You have the necessary confidence in your data to employ advanced ad targeting, audience management, and personalization techniques.
Using customer data to its full potential is a continuous work-in-progress for most organizations. It can be daunting, especially when past decisions during your company’s early or high-growth stages now feel constraining. But many organizations fight through to harness customer data in innovative ways.
It starts with three things:
- Gain consensus and identify an executive sponsor.
- Assess (and accept) your current location.
- Formulate an achievable roadmap.
- Secure investment and commitment from stakeholders.
- Assemble internal (and external) team.
| english |
New FBI docs released today show that the Bureau confirmed that Steele’s reporting on Michael Cohen going to Prague was Russian disinformation.
This is based on talking with multiple people in different lines of work. Schindler introduced sources to McClatchy that were bunk and the paper ran the stories.
Paul Wood was also pushing this story hard behind the scenes. I believe Schindler and Wood were both key to the false reporting.
Steele whiffed on Prague and Rosneft. 2 of the most explosive reports in his dossier. Note: this was raw intelligence not meant for public consumption.
Russian disinformation is POWERFUL. Steele, a seasoned intel official, fell for some of it. It works.
| english |
<gh_stars>1-10
---
title: Search API
layout: default
---
Our search API is at [https://openaddressesuk.org/addresses.json](https://openaddressesuk.org/addresses.json)
Simply specify the street, town and postcode arguments on the querystring.
* [https://openaddressesuk.org/addresses.json?street=camberwell](https://openaddressesuk.org/addresses.json?street=camberwell)
* [https://openaddressesuk.org/addresses.json?town=cheltenham](https://openaddressesuk.org/addresses.json?town=cheltenham)
* [https://openaddressesuk.org/addresses.json?postcode=se58qz](https://openaddressesuk.org/addresses.json?postcode=se58qz)
Partial search strings and multiple arguments are supported.
The response will provide you with all of the data matching your search terms including a persistent URL for each address, the addresses themselves in a format similar to the [British Standards Institute BS7666 standard](http://www.bsigroup.co.uk/en-GB/about-bsi/media-centre/press-releases/2006/7/Standardize-the-referencing-and-addressing-of-geographical-objects/#.VOxowLDkfp4), and the geographic centre of each address's postcode in latitude and longitude.
If you don’t fancy playing around with JSON but want to see how this API works then simply visit our [search page](https://openaddressesuk.org/addresses). Our website is built on our APIs. | markdown |
As per Sandiaga Salahuddin Uno, the Minister of Tourism and Creative Economy, Indian tourists are one of the top 5 foreign tourists visiting Indonesia.
IndiGo, India's largest airline, both in terms of domestic and international air traffic, has announced Indonesia as its 28th international destination, effective August 7, 2023. IndiGo will be the first airline to directly connect Mumbai with Jakarta. The exclusive daily flights between Jakarta-Mumbai are now open for booking. As per the airline, these flights will reduce the travel time to Jakarta significantly and have been introduced keeping in mind the rising demand for travel to Indonesia. As per Sandiaga Salahuddin Uno, the Minister of Tourism and Creative Economy, Indian tourists are one of the top 5 foreign tourists visiting Indonesia.
Jakarta, the capital city of Indonesia, is one of the most populous cities in the world, and offers a blend of rich history, diverse culture, and vibrant urban life. The city is also well known for its employment and business prospects, and has a big finance and banking sector. More than that, Bali is known as one of the most preferred destinations for Indians and can be visited using layover flight from Jakarta.
Vinay Malhotra, Head of Global Sales at IndiGo, said, "We are excited to unveil Jakarta amongst our newest destinations within our expanding international network. As India and Indonesia look at strengthening bilateral ties and increasing direct connectivity, the opening of this new route will enable easy access and promotion of trade and tourism across the two nations.
Jakarta is the capital and the largest city in southeast Asia, while Indonesia remains one of the favorite leisure destinations for Indian tourists for its pristine beaches and a galore of culture and tradition. Introducing new flights connecting people and their aspirations, IndiGo will continue to deliver on its promise of affordable, on-time, courteous, and hassle-free travel experience across an unparalleled network."
IndiGo, recently announced Nairobi, the capital of Kenya, as the 27th international and 105th overall destination in the 6E network. The airline opened bookings for daily non-stop flights between Mumbai, India's financial capital, and Nairobi, Kenya's largest city starting August 5, 2023. This new route marks IndiGo's entry into the African subcontinent and brings numerous benefits to both business and leisure travellers.
| english |
{
"Comment": "A state machine for processing feedbacks",
"StartAt": "SentimentAnalysisState",
"States": {
"SentimentAnalysisState": {
"Type": "Task",
"Resource": "${SentimentAnalysisServiceFunctionArn}",
"Next": "SumbitFeedbackState"
},
"SumbitFeedbackState": {
"Type": "Task",
"Resource": "${SubmitFeedbackServiceFunctionArn}",
"InputPath": "$.body",
"Next": "SendWebhookNotification"
},
"SendWebhookNotification": {
"Type": "Task",
"Resource": "${WebHookNotificationServiceFunctionArn}",
"InputPath": "$.body",
"End": true
}
}
} | json |
What next for Rajini?
What next? This is a question that Tamil cinema is forever asking Rajinikanth.
As you all know, Rajini is now fully immersed in Shivaji.
This Shankar-directed, AVM-produced movie is progressing at a very fast clip.
But what after Shivaji?
Rajinikanth as ever is very taciturn. He doesnÂt spell out his stand.
But already there are many in the industry that is ready with a story and script for the superstar.
One among them is Murugadoss. The diminutive director, who caught us our attention with Ramana and Ghajini, says he is ready with a story for Rajinikanth.
Murugadoss has just come out of a blockbuster in Telugu for Chiranjeevi. His Stalin for Chiranjeevi has been a hit, and his treatment of the script to suit the image of Telugu superstar has won him much plaudits.
Murugadoss looks someone who can make stories for Rajinikanth.
He says he has got that written. ÂWe have finished Stalin ahead of schedule. I am planning to direct a movie in HindiÂ.
After that, with Rajini also through Sivaji, it maybe Murugadoss turn.
Stay tuned for more.
Follow us on Google News and stay updated with the latest! | english |
<filename>Skins/40F.Skin.Demo.Style-Helper/Css/Black.css<gh_stars>0
#Body{background:#222;}
header.main{background:rgba(0,0,0,0.2);}
.content-main, .content-main *{color:#fff;} | css |
<filename>gateway-spi/src/main/java/org/apache/knox/gateway/dispatch/ConfigurableDispatch.java
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.knox.gateway.dispatch;
import org.apache.knox.gateway.config.Configure;
import org.apache.knox.gateway.config.Default;
import javax.servlet.http.HttpServletRequest;
import java.io.UnsupportedEncodingException;
import java.net.URI;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.Optional;
import java.util.Set;
import java.util.stream.Collectors;
/**
* Extends DefaultDispatch to:
* make request/response exclude headers configurable
* make url encoding configurable
*/
public class ConfigurableDispatch extends DefaultDispatch {
private Set<String> requestExcludeHeaders = super.getOutboundRequestExcludeHeaders();
private Set<String> responseExcludeHeaders = super.getOutboundResponseExcludeHeaders();
private Set<String> responseExcludeSetCookieHeaderDirectives = super.getOutboundResponseExcludedSetCookieHeaderDirectives();
private Boolean removeUrlEncoding = false;
private Set<String> convertCommaDelimitedHeadersToSet(String headers) {
return headers == null ? Collections.emptySet(): new HashSet<>(Arrays.asList(headers.split(",")));
}
@Configure
protected void setRequestExcludeHeaders(@Default(" ") String headers) {
if(!" ".equals(headers)) {
this.requestExcludeHeaders = convertCommaDelimitedHeadersToSet(headers);
}
}
@Configure
protected void setResponseExcludeHeaders(@Default(" ") String headers) {
if (!" ".equals(headers)) {
final Set<String> headerSet = convertCommaDelimitedHeadersToSet(headers);
populateSetCookieHeaderDirectiveExlusions(headerSet);
populateHttpHeaderExlusionsOtherThanSetCookie(headerSet);
}
}
private void populateSetCookieHeaderDirectiveExlusions(final Set<String> headerSet) {
final Optional<String> setCookieHeader = headerSet.stream().filter(s -> s.startsWith(SET_COOKIE)).findFirst();
if (setCookieHeader.isPresent()) {
final String[] setCookieHeaderParts = setCookieHeader.get().split(":");
responseExcludeSetCookieHeaderDirectives = setCookieHeaderParts.length > 1
? new HashSet<>(Arrays.asList(setCookieHeaderParts[1].split(";"))).stream().map(e -> e.trim()).collect(Collectors.toSet())
: Collections.emptySet();
} else {
responseExcludeSetCookieHeaderDirectives = Collections.emptySet();
}
}
private void populateHttpHeaderExlusionsOtherThanSetCookie(final Set<String> headerSet) {
final Set<String> excludedHeadersOthenThanSetCookie = headerSet.stream().filter(s -> !s.startsWith(SET_COOKIE)).collect(Collectors.toSet());
if (!excludedHeadersOthenThanSetCookie.isEmpty()) {
this.responseExcludeHeaders = excludedHeadersOthenThanSetCookie;
}
}
@Configure
protected void setRemoveUrlEncoding(@Default("false") String removeUrlEncoding) {
this.removeUrlEncoding = Boolean.parseBoolean(removeUrlEncoding);
}
@Override
public Set<String> getOutboundResponseExcludeHeaders() {
return responseExcludeHeaders == null ? Collections.emptySet() : responseExcludeHeaders;
}
@Override
public Set<String> getOutboundResponseExcludedSetCookieHeaderDirectives() {
return responseExcludeSetCookieHeaderDirectives == null ? Collections.emptySet() : responseExcludeSetCookieHeaderDirectives;
}
@Override
public Set<String> getOutboundRequestExcludeHeaders() {
return requestExcludeHeaders == null ? Collections.emptySet() : requestExcludeHeaders;
}
public boolean getRemoveUrlEncoding() {
return removeUrlEncoding;
}
@Override
public URI getDispatchUrl(HttpServletRequest request) {
if (getRemoveUrlEncoding()) {
String base = request.getRequestURI();
StringBuffer str = new StringBuffer();
str.append(base);
String query = request.getQueryString();
if (query != null) {
try {
query = URLDecoder.decode(query, StandardCharsets.UTF_8.name());
} catch (UnsupportedEncodingException e) {
// log
}
str.append('?');
str.append(query);
}
encodeUnwiseCharacters(str);
return URI.create(str.toString());
}
return super.getDispatchUrl(request);
}
}
| java |
<reponame>thisismattmiller/hathi-pd-2022
[{"title": "Orientaci\u00f3n de la clase media por <NAME>\u00fcffelmann. Traducci\u00f3n del alem\u00e1n por <NAME>\u00e1<NAME> ", "author": "M\u00fc<NAME>, 1881-", "id": "007515371"}, {"title": "La Re\u0301volution nationale Georges Valois ", "author": "<NAME>, 1878-1945.", "id": "006920148"}] | json |
<reponame>Zyxel-1/js-cardio-async
{"title":"Async/Await lesson","description":"How to write asynchronous JavaScript","date":"July 15, 2019"} | json |
SEARCHED FOR:
We have won the battles but not the war. That’s how heritage lovers sum up ten years of Mumbai’s efforts at protecting its rich past.
Between January 1 and now, the Nifty, the flagship index of the NSE, has moved up 8%. On the other hand, the Nifty Midcap 50 has fallen 10% and the Nifty Smallcap 50 has declined 21%.
There are a lot of similarities between Brazil and Mumbai.
| english |
Dilip Kumar birth anniversary: Did you know Saira Banu fell in love with iconic actor at 12?
As we celebrate the birth anniversary of veteran actor Dilip Kumar, we take a look at his beautiful love story with Saira Banu. She also revealed how she spends her time after his demise.
Dilip Kumar was one of the greatest actors in the Hindi film industry. Often regarded as the pioneer of method acting, he ruled the Indian cinema, decades ago. As we celebrate the late icon's birth anniversary today, we take a look at the wonderful moments he shared with his wife, actress Saira Banu.
Saira Banu was in conversation with a leading daily wherein she shared nuances of her first meeting with her husband, veteran actor Dilip Kumar. She shared that when she saw him in person for the first time, she instantly fell in love with him. Surprisingly, she was just 12 years old.
“I saw him for the first time in person at Mumbai's Mehboob Studios. He was wearing a plain white shirt, white trousers, and white chappals. And my God! He had such lovely free-flowing hair, just in sync with his song Ude Zulfen Jab Jab Teri from Naya Daur,” she exclaimed.
People used to tell tales of Saira Banu and Dilip Kumar’s love story. Hence, when the actor left us for his heavenly abode, back in July 2021, it left a void in the life of his wife. In an earlier exclusive interview with Pinkvilla, the Hera Pheri star revealed she never left his side during his last days.
Even though it’s been nearly two years since he passed away, Banu can’t get out of the habit. Since she would keep a close watch on Kumar, day and night, she got into the habit of staying awake till late. “It became a habit with me over the years. Now I can’t disconnect all of a sudden, in fact, I am still usually up till three or four in the morning,” she shared adding that she spends a lot of time meditating.
| english |
What’s the Difference Between a Psychopath and a Sociopath? And How Do Both Differ from Narcissists?
Why Does the New Year Start on January 1?
Courtesy of the Victoria and Albert Museum, London;photograph, A.C. Cooper Ltd.
English slipware dish, “The Pelican in Her Piety,” by Thomas Toft,
in these related Britannica articles:
| english |
{
"schema_version": "1.2.0",
"id": "GHSA-89wq-qcf5-vx73",
"modified": "2022-05-01T18:40:16Z",
"published": "2022-05-01T18:40:16Z",
"aliases": [
"CVE-2007-6169"
],
"details": "SQL injection vulnerability in admin/index2.asp in GOUAE DWD Realty allows remote attackers to execute arbitrary SQL commands via the uname parameter, a different vector than CVE-2007-6163. NOTE: the provenance of this information is unknown; the details are obtained solely from third party information.",
"severity": [
],
"affected": [
],
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2007-6169"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/38651"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/27822"
}
],
"database_specific": {
"cwe_ids": [
"CWE-89"
],
"severity": "HIGH",
"github_reviewed": false
}
} | json |
// cron.go
package main
import (
"log"
"github.com/robfig/cron"
)
func main() {
cron := cron.New()
cron.AddFunc("*/1 * * * * *", func() { log.Println("log message") })
//cron.Start()
cron.Run()
defer cron.Stop()
//select {}
}
| go |
{"m_ExpandedPrefabGameObjectFileIDs":[8454029282983618659],"m_ExpandedSceneGameObjectInstanceIDs":[],"m_ScrollY":0.0,"m_LastClickedFileID":3840223557594375133,"m_LastClickedInstanceID":0} | json |
@import 'vendor/raleway_regular/stylesheet.css';
@import 'vendor/nexabold/stylesheet.css';
@import 'vendor/nexalight/stylesheet.css';
@import 'vendor/philosopher/stylesheet.css';
@import 'vendor/seravek/style.css';
@import 'vendor/bootstrap/dist/bootstrap.css';
*,body{
margin: 0px;
}
.page-header{
position: absolute;
width: 100%;
z-index: 18;
}
.nexa{
font-family: "Nexa";
}
.home-banner{
height: 100vh;
width: 100%
}
.home-banner{
position: relative;
background: url("../images/banner/home.png") no-repeat center;
background-size: cover;
}
.home-header{
position: absolute;
width: 100%;
}
.logoname{
font-size: 18px;
font-family: "Philosopher";
position: absolute;
top:30px
}
.logoname-color{
font-size: 18px;
font-family: "Philosopher";
position: relative;
top:10px;
color:#0a023a;
left: 5px;
}
#navbarSupportedContent{
font-family: 'Seravek Light';
}
.menutitle{
position: relative;
font-size: 18px;
top: 13px;
padding-left: 66px;
padding-right: 66px;
border-radius: 50px;
padding: .5rem 1rem;
display: block;
color: white;
}
.menutitle:hover{
text-decoration: none;
color: #261d84;
}
.menutitle1{
position: relative;
font-size: 18px;
top:13px;
padding-left: 33px;
padding-right: 33px;
border-radius: 50px;
color: #261d84;
font-weight: bold;
}
.bannermoon{
position: absolute;
top: 100px;
width: 100%;
z-index: 15;
padding-left: 55%;
}
.moon-img{
width: 5%;
}
.wave1{
width: 100%;
position: absolute;
bottom: 0px;
}
.wave2{
width: 100%;
position: absolute;
bottom: -2px;
z-index: 16;
}
.wave2 img{
width: inherit;
height: 270px;
}
.wave1 img{
width: inherit;
height: 400px;
}
.form-home{
position: absolute;
width: 100%;
z-index: 17;
top:550px
}
.home-form-btn{
margin-top: 32px;
background-color: #ffb600;
border-top-right-radius: 8px;
border-bottom-right-radius: 8px;
height: 38px;
width: 100px;
border: 1px;
color: white;
}
.banner-text{
position: absolute;
color: white;
top: 0px;
padding-left: 48px;
z-index: 16;
background-color: #00000059;
width: 100%;
height: 100%;
}
.banner-text-child{
position: relative;
top: 250px;
font-family: "Nexa";
}
.moonshadow{
position: absolute;
z-index: 14;
top: 112px;
width: 81%;
transform-origin: 0px 0px;
transform: skewX(25.5deg) translateX(-177px);
}
label{
font-family: "Raleway";
}
.moonshadow img{
width: inherit;
margin-left: 87px;
height: 260px;
}
.other-section {
position: relative;
/* height: 100vh; */
background-color: #f2f2f2;
}
.other-section2{
position: relative;
background-color: #f2f2f2;
}
.other-section3 {
background-color: #f2f2f2;
}
.doublewave {
position: relative;
background: url(../images/items/doublewave.png) no-repeat center;
background-size: cover;
top: -16px;
background-size: 100% 100%;
background-color: #f2f2f2;
}
.wavedown {
position: relative;
background: url(../images/items/wavedown.png) no-repeat center;
background-size: cover;
top: -16px;
background-size: 100% 100%;
background-color: #f2f2f2;
}
.project-color{
color:#0a023a;
font-family: "Nexa";
font-weight: bold;
}
.project-text{
font-family: "Raleway";
}
.wavedown-img, .doublewave-img, .halfwave-img{
width: 100%;
}
.wavedown-img, .doublewave-img{
height: 50vh;
}
.halfwave{
position: absolute;
top: 770px;
}
.trusted {
position: relative;
top: 0px;
text-align: center;
width: 100%;
font-size: 25px;
font-family: "Raleway";
font-weight: bold;
}
.goldlibrary, .bronzelibrary, .silverlibrary {
position: relative;
width: 100%;
}
.bronzelibrary, .silverlibrary {
position: absolute;
width: 100%;
}
.goldlibrary {
top: -40px;
z-index: 16;
}
.bronzelibrary, .silverlibrary {
top: 0px;
}
.start-journey{
background-color: #0a0337;
border: 0px;
border-radius: 22px 22px;
}
.start-journey-login{
background-color: #0a0337;
border: 0px;
border-radius: 22px 22px;
font-size: 18px;
}
.start-journey-setpassword{
background-color: #0a0337;
border: 0px;
border-radius: 10px 10px;
font-size: 18px;
}
.logbanner{
background: url("../images/banner/logbanner.png") no-repeat center;
background-size: cover;
background-size: 100% 100%;
}
.loginsection{
height: 100vh;
}
.goldjourney {
position: relative;
z-index: 16;
top: -30px;
width: 100%;
}
.bronzejourney{
position: relative;
z-index: 16;
top:-120px;
width:100%
}
.silverjourney{
position: relative;
z-index: 16;
top:-120px;
width:100%
}
.bronzejourney-btn{
margin-left: 16%;
}
.goldjourney-btn{
font-size: 20px;
}
.silverjourney-btn,.bronzejourney-btn, .goldjourney-btn{
font-family: "Raleway";
font-weight: bold;
border-radius: 20px;
font-weight: 900;
color: #0a023a;
}
.bronzejourney-btn{
margin-left: 2%;
}
.silverjourney-btn{
margin-left: 85%;
}
.qoutetext {
position: relative;
top: -220px;
padding-left: 20%;
padding-right: 20%;
font-size: .9em;
font-family: "Raleway";
}
.qoutetext-mobile {
position: relative;
top: -160px;
padding-left: 20%;
padding-right: 20%;
font-size: .8em;
font-family: "Raleway";
}
.commenter {
position: relative;
top: -150px;
padding-left: 26%;
}
.goldsubscription, .bronzesubscription, .silversubscription{
position: absolute;
z-index: 16;
width: 100%;
font-weight: 900;
color: #0a023a;
}
.goldsubscription-mobile, .bronzesubscription-mobile, .silversubscription-mobile{
position: absolute;
z-index: 16;
width: 100%;
font-weight: 900;
color: #0a023a;
top: 65px;
}
.goldsubscription{
top: 100px;
}
.bronzesubscription{
top: 100px;
padding-left: 71%;
}
.silversubscription{
top: 100px;
padding-left: 15%;
}
.commenter-info{
padding-left: 80px;
font-family: "Raleway";
}
.footerlogoname{
padding-left: 80px;
font-family: "Philosopher";
font-size: 30px;
}
footer{
position: relative;
background-color: #f2f2f2;
}
.footer-text{
width: 100%;
margin-top: 230px;
color:white;
font-family: "Raleway";
}
.footerlogo{
padding-top: 35px;
}
.logform{
margin-top: 40%;
}
.goldlibrary-mobile {
top: 0px;
z-index: 16;
}
.goldlibrary-mobile, .bronzelibrary-mobile, .silverlibrary-mobile {
position: relative;
width: 100%;
}
.goldjourney-mobile {
position: relative;
z-index: 16;
top: -15px;
width: 100%;
}
.bronzelibrary-mobile, .silverlibrary-mobile{
top: 0px;
overflow-x: hidden;
}
.bronzejourney-mobile {
position: relative;
z-index: 16;
top: -15px;
width: 100%;
}
.bronzejourney-btn-mobile, .silverjourney-btn-mobile {
border-radius: 20px;
font-size: 20px;
color: #0a023a;
font-weight: 900;
}
.silverjourney-mobile {
position: relative;
z-index: 16;
top: -15px;
width: 100%;
}
.setpasswordform {
margin-top: 20%;
}
@media screen and (min-width: 320px) and (max-width: 767px) {
.project-color {
text-align: center;
}
h3 {
font-size: 1.55rem;
}
label strong{
color:white
}
.list-menu {
border: 1px solid black;
background: white;
}
.bluemeaning{
word-spacing: 1px;
letter-spacing: 2px;
}
.menutitle {
top: 0px;
font-weight: bold;
padding: .5rem 1rem;
display: block;
color: #261d84;
}
.menutitle1 {
top: 0px;
}
.bannermoon{
top: 150px;
padding-left: 70%;
}
.moon-img{
width: 25%;
}
}
@media only screen and (min-device-width: 480px) and (max-device-width: 731px) and (orientation: landscape) {
.banner-text-child {
top: 150px;
}
.form-home {
top: 300px;
}
.qoutetext-mobile {
top: -240px;
font-size: 1em;
}
}
@media only screen and (min-device-width: 480px) and (max-device-width: 823px) and (orientation: landscape) {
.banner-text-child {
top: 150px;
}
.form-home {
top: 300px;
}
.qoutetext-mobile {
top: -240px;
font-size: 1em;
}
} | css |
Foursquare and Gnip on Thursday together announced a partnership that will see the former’s check-in data distributed to the latter’s clients. Foursquare is giving Gnip a real-time feed of the places where its users are checking in, which will naturally be anonymized for privacy purposes.
Details of the financial arrangement were not disclosed. That being said, we do know Gnip will charge its customers for access to data from Foursquare, which in turn will get a percentage of the sales.
So what information exactly will Foursquare let Gnip sell? Three separate pieces of data:
- Each check-in’s location (for instance, Stop & Shop).
- The time and date of the check-in (April 30, 2013 at 11:03pm GMT) .
- The gender of the person checking in (male).
Again, the check-ins are not tied to individual users. The technical-looking output looks like this:
The Gnip partnership goes further, however, than just research purposes. For those who don’t know, Gnip is an aggregation company that provides data from dozens of social media websites via one API.
Foursquare will be joining Gnip’s growing list of premium publishers, including Twitter, Tumblr, WordPress, Disqus, IntenseDebate, StockTwits, and Estimize. Gnip says it is offering both the full firehose and filtered access of Foursquare’s data.
Foursquare envisions market research firms using it to get a real-time pulse on holiday shopping trends, and social media marketing agencies tracking the impact of a national chain’s Super Bowl campaign. Gnip says retailers will be able to study the results of local advertising campaigns, financial analysts will have another valuable data point to forecast seasonal sales, and real estate development groups will be able to better understand where they should develop new locations.
Researchers will also be able to use it for various purposes, including, according to Foursquare, “better understanding a neighborhood’s evolution as the types and popularity of local businesses change.” That’s the type of findings we’d love to hear more about.
Get the most important tech news in your inbox each week.
| english |
import { SportsTypeEnum } from "../../../entity/NewsSports";
import BaseReq from "../BaseReq";
export default class SportsNewListReq extends BaseReq{
/**
* SportsTypeEnum
*
* @type {string}
* @memberof SportsNewListReq
*/
type:SportsTypeEnum
} | typescript |
There is no other way to begin this without stating the obvious which is not so obvious.
You are allowed to take the day off and do absolutely nothing.
You are allowed to be unproductive.
You are allowed to sit on your couch all day long, watching television, eating a hearty meal and sleeping early.
Image credit: Pexels.
Take for example that you have been working on a project or a specific deadline. You are working nights, mornings and weekends to make it happen. Once the work is done and you have managed to push through, instead of jumping onto the next big thing, you need to take the day off.
That's because over time we run down on our emotional resources. Every so often, whenever you get the chance, taking the day off and doing absolutely nothing will make us more creative, sharper at problem-solving and better at coming up with more unique ideas, a perspective presented in a reported published in National Institute for the Clinical Application of Behavioural Medicine.
Image credit: Pexels.
And, an afternoon spent doing absolutely nothing is a great productivity tool because if your energy is totally diminished, productivity won't be very good. Chris Bailey, a productivity expert and author of the blog 'A Life of Productivity' wrote in his essay.
Lastly, an idle day can do wonders for your mental health. Whether you are coping with a mental health problem or not, making some time even if it's just an afternoon, to not check your phone, read a book or even talk to friends can help replenish you.
Now that we have convinced you to take the day off, most people wouldn't know what to do. It's not surprising considering studies show that people send 40% fewer emails on their day off in comparison to a regular day at work. And thanks to smartphones and tablets, it becomes nearly impossible to get your brain some much-desired beauty rest. So what should you do?
Image credit: Pexels.
Be unapologetically lazy. Switch off your phone and don't make any plans with any friends or family. Get into your most comfy clothes and pick one corner of the house where you can spend hours without moving. We recommend a couch and a television. Bring out whatever snacks make you happy and keep them near. Watch and eat endlessly.
We aren't recommending anything else because almost any other activity like cooking will require stress over ingredients, a date will cause all sorts of anxiety about the right clothes and how to be charming for three hours or more and even meeting family can be stressful for some. So do absolutely nothing and just be lazy. Trust us, it's important for all of us. | english |
The billionaire former Amazon CEO did it -- he's now an astronaut. You can rewatch the livestream here.
Editor's note: Jeff Bezos has made it to the edge of space and back. You can read all about it here or rewatch the livestream below.
It's almost a week since Virgin Galactic founder Richard Branson earned his astronaut wings and another extremely wealthy human being is gearing up to do the same. On July 20, former Amazon CEO Jeff Bezos will strap himself into a rocket built by his spaceflight company, Blue Origin, and blast off to space. Alongside him will be his brother Mark and -- should the flight be successful -- the oldest astronaut ever, aeronautics pioneer Wally Funk, and the youngest astronaut ever, 18-year-old Oliver Daeman.
The mission is the culmination of almost two decades of rocket science. Blue Origin officially emerged in 2015 after over a decade of silence, revealing its reusable rocket, New Shepard, to the world. Fifteen test flights later, New Shepard is ready to carry humans to the cosmic shoreline, have them stare into infinity and bring them safely back to Earth. And Bezos is first in line to test the experience.
On July 12, the company cleared one of its last hurdles, receiving the official blessing of the US Federal Aviation Administration to carry passengers to space. So this is happening -- and you can follow along.
Here's when and how you can watch the historic first crewed Blue Origin launch.
The flight is scheduled for Tuesday, July 20, and Blue Origin's coverage will begin at 4:30 a.m. PT (7:30 a.m. ET). For those who need a little extra sleep in on the US West Coast, liftoff is targeted for 6 a.m. PT (9 a.m. ET).
You can watch live at BlueOrigin.com, but we'll have it right here for you, too. CNET Highlights, on YouTube, is carrying a livestream from West Texas, where the launch will occur -- it's just below.
What about other time zones across the globe? Here's when you can catch liftoff:
And CNET's main YouTube channel will have live commentary of Tuesday's launch with Eric Mack, Claire Reilly and Stephen Beacham.
Named for the first American astronaut to head into space, Alan Shepard, Blue Origin's New Shepard rocket has completed 15 flights to date. This, the 16th mission, is known as NS16.
The rocket has seen two major iterations since it first flew on April 29, 2015, but it will be New Shepard 4 that flies Bezos to the edge of infinity.
Bezos and crewmates, including Funk, who went through astronaut testing in the early 1960s, will be lying inside a crew capsule, shaped like a gumdrop, for their ascent to space. The pressurized crew capsule boasts the "largest windows in space," according to Blue Origin, and has space enough for six astronauts. It does not require any pilots -- all of the flying work is done by onboard computers.
In the event of an emergency, the crew capsule can separate at anytime from the booster rocket, deploy parachutes and glide safely back to Earth. Here's hoping such a separation isn't required.
Richard Branson, the 70-year-old billionaire founder of Virgin Galactic, launched beyond the stratosphere inside VSS Unity, Galactic's space plane on July 11. The headlines said it all: "Branson Beats Jeff Bezos to space," read one in The New York Times.
Both Branson and Bezos are selling the dream of spaceflight to private citizens, attempting to open up a space tourism sector that will see "everyone" able to take short suborbital trips. However, the trips aren't cheap. Tickets on Virgin Galactic's space plane cost $250,000 before sales were suspended after a crash in 2014. According to The New York Times, when sales reopen, they could be more expensive. It's not clear how much a ticket aboard Blue Origin's rocket will cost at this point, but one seat sold for $28 million at auction.
The tagline for many space tourism missions seems to be about opening space access to everybody, but the six- and seven-figure ticket prices aren't exactly in the realm of your everyday space fan. It remains to be seen how these prices will fluctuate.
While a petty battle and space tourism are front and center in the coverage of the Branson and Bezos flights, there are opportunities for science, too. Both companies will offer scientists the opportunity to have payloads taken on flights, with Blue Origin noting astronauts on board can tend to experiments in microgravity in real time. New experiment techniques could be developed in suborbital space before being sent to the International Space Station for longer-duration tests.
But perhaps before we even get there, we need to answer a more pressing question. It's one that Virgin Galactic and Blue Origin have had to wrestle with this week: Where does space start?
There's been a bit of billionaire bickering over where, exactly, space begins. That's why you've likely heard Branson's flight described as reaching "space" or the "edge of space" almost interchangeably -- where Earth's atmosphere "ends" and space begins is not perfectly defined.
The US Federal Aviation Administration gives astronaut wings to anyone who flies above 50 miles (around 80 kilometers). Some scientists have argued this is fairly reasonable based on the distance at which satellites are able to orbit the Earth, and NASA uses a similar number when defining where space begins for crewed missions. Branson's Virgin Galactic flight saw him reach an altitude of around 53 miles, so he gets his wings.
But that isn't necessarily where "space" begins, according to the Fédération Aéronautique Internationale. The FAI's Astronautic Records Commission, which "appraises and administers manned spaceflight record activities," uses something known as the Kármán line to define where space starts.
That "line" sits at around 62 miles (100 kilometers) up. But the FAI's descriptor isn't a legally binding one, and there have been claims space should start even further out -- at 1.5 million kilometers! With the FAA and NASA saying one thing and the FAI saying another... it all gets a little messy.
The discrepancy means Branson's flight to space is seen by some as requiring an asterisk. Blue Origin took a thinly veiled swipe at the Galactic flight on Twitter. "New Shepard was designed to fly above the Kármán line so none of our astronauts have an asterisk next to their name," the company tweeted.
What does all this mean? Well, Bezos and his crew are definitely going to "space," as defined by crossing the Kármán line -- and Blue Origin is keen to make a big fuss about that. Does it really matter? No. Is it an extremely spicy and pointless discussion for the purposes of space tourism? Probably.
As far as Blue Origin or Virgin Galactic might go with space tourism, another company has even more ambitious plans for 2021: Elon Musk's SpaceX.
That's right, there's another insanely rich man who also has space in his sights. The SpaceX head honcho with plans to establish a colony on Mars? Yes, SpaceX does have plans to take private citizens into the cosmos, too -- and much farther than Branson or Bezos will be able to achieve with their spacecraft. A moon mission, scheduled for 2023, will take eight people "further than any human has ever gone" from the Earth, making a short loop around our natural satellite before returning.
Another mission, with a much closer departure date, will take four private citizens around the Earth in a Crew Dragon spacecraft. There are plans for it to launch before the end of 2021 on a multiday journey along a custom flight path.
| english |
<reponame>isle-project/isle-editor
{
"and": "and",
"choose": "Choose",
"conditional-probabilities": "What about the conditional probabilities?",
"conditional-probability-undefined": "The conditional probability is undefined when",
"consider-events": "Consider events",
"events-independent": "The events are independent because",
"events-not-independent": "The events are <1>not</1> independent because",
"inner-cells-equal": "What are the inner cells equal to? If the events are random, we have ",
"let": "Let",
"must-have-nonzero-probability": "When <1 />, we must have <3 /> in case B has non-zero probability.",
"not": "not",
"then-we-have": "Then we have",
"these-form-marginals": "These form the marginals in the following probability table"
}
| json |
1 Kay manga karomonan nami, yaning syosolat ko kamayo yang pagindo bain sang makagagaom na tingug na makaatag nang kinaboi na way kataposan. Anay da nang wa pa yang kariko nang inimo dadaan iyan da yaan. Yaan yang pyagalaong nami kamayo na kikita nami na pyaninggan nami. Yabay kami magsait kanaan, pyopoti nami yaan. 2 Yaan yang pyagponowan nang kinaboi na way kataposan, anay da inagad yaan nang Ama ta na Dios. Pyapakatigam yaan nang Dios kanami pagdatung naan ani kanami wakaw kami yang yikita kanaan. 3 Wakaw byabatok nami kamayo yang kikita nami aw yang dyudungug nami kay antak kita magsipakaambit sang panalangin nang Dios aw yang Anak naan na si Jesu Kristo. 4 Wakaw syosolat ko yani kamayo antak kita managsipaguma laban.
5 Pagalaong ko kamayo yang pagindo kanami ni Jesu Kristo na yang Dios yang gyugual nang allag, way kangitngit agkanaan, maski tatagbi. 6 Aw maglaong kita na yang Dios yang gabuut kanatu, kayan aw dili kita mangagad kanaan, manga magaro kita. Yakagaon kita nang otaw na dili magagi disang kapawaan kay wa mangagad sang matungtung na pagindo. 7 Toyo aw abay kita magi disang kapawaan, magaimo kita sang madyaw nang Dios kay yang Dios gyugual nang allag. Kayan aw maynaan yang imo ta, managidarag kita, kayan yang dogo ni Jesu Kristo na Anak nang Dios yang magaogas sang kariko nang kanatu sara.
8 Aw aon digkanatu magalaong surud nang kanaan ginawa, “Ako yang way sara,” yamasayup yang dumdum naan kay wa pa yaan akatigam sang matungtung na pagindo na sikun sang Dios. 9 Awgaid aw paglaong natu sang Dios yang kariko nang manga imo ta na maat, apasayloon kita naan sang kariko nang maat, aw ogasi kita naan pinaagi sang pagkamang naan sang kariko nang kanatu sara. Makasarig kita na yaan yang imoon nang Dios kay matinomanun yaan, podo matarong yang kanaan imo. 10 Aw aon digkanatu magalaong, “Wa ak magaimo sang maat nang Dios,” maynang yagalaong yaan na yang Dios magaro kay wa yaan otoo sang pyagalaong nang Dios na kariko nang otaw yakaimo nang maat.
| english |
from ..Base.Identification import Identification as BaseId
class Identification(BaseId):
'''
Simple object to hold identification information for NISAR SLC products.
'''
def __init__(self, *args, **kw):
'''
Identify given object as relevant NISAR product.
'''
self.trackNumber = None
self.frameNumber = None
super().__init__(*args, **kw)
def unpack(self, h5grp):
'''
Populate self with hdf5 group.
'''
from nisar.h5 import extractScalar, bytestring
BaseId.unpack(self, h5grp)
self.trackNumber = extractScalar(h5grp, 'trackNumber',
int, self.context['info'],
'Track number could not be identified')
self.frameNumber = extractScalar(h5grp, 'frameNumber',
int, self.context['info'],
'Frame number could not be identified')
| python |
<reponame>migerh/jscc-website<gh_stars>0
{
"name": "<NAME>",
"when": {
"friday": true,
"saturday": true
},
"tags": ["JavaScript", "jskatas.org", "sustainability"],
"vegan": true,
"vegetarian": false,
"what_is_my_connection_to_javascript": "I care to share and love to learn, these two days have always been energizing, I want the next kick!",
"what_can_i_contribute": "I will definitely talk about TDD and offer a session about JavaScript the Language (as our monthly meetup) but in person",
"tshirt": "M-XL",
"twitter": "wolframkriesing"
}
| json |
[{"liveId":"5c4016340cf261d802c75ed9","title":"叶苗苗的直播间","subTitle":"晚上好~","picPath":"/mediasource/live/1540816193829Zj0D33vZAw.png","startTime":1547703860541,"memberId":407124,"liveType":1,"picLoopTime":0,"lrcPath":"/mediasource/live/lrc/5c4016340cf261d802c75ed9.lrc","streamPath":"http://liveplaylk.lvb.eastmoney.com/live/2519_3694552.flv","screenMode":0,"roomId":"4313273","bwqaVersion":0},{"liveId":"5c400af50cf283717aba4700","title":"冯思佳的直播间","subTitle":"。","picPath":"/mediasource/live/15476240352635h8tRw1XId.jpg","startTime":1547700981556,"memberId":327587,"liveType":1,"picLoopTime":0,"lrcPath":"/mediasource/live/lrc/5c400af50cf283717aba4700.lrc","streamPath":"http://liveplaylk.lvb.eastmoney.com/live/2519_3694529.flv","screenMode":0,"roomId":"3871130","bwqaVersion":0}]
| json |
<gh_stars>1-10
/* eslint-disable */
// WARNING: DO NOT EDIT. This file is automatically generated by AWS Amplify. It will be overwritten.
const awsmobile = {
"aws_project_region": "us-west-2",
"aws_cognito_identity_pool_id": "us-west-2:blah-blah-blah",
"aws_cognito_region": "us-west-2",
"aws_user_pools_id": "us-west-2_asfdsdfdf",
"aws_user_pools_web_client_id": "asdfasdfsdfsd",
"oauth": {},
"aws_appsync_graphqlEndpoint": "https://asdfsdfsdfds/graphql",
"aws_appsync_region": "us-west-2",
"aws_appsync_authenticationType": "AMAZON_COGNITO_USER_POOLS"
};
export default awsmobile;
| typescript |
Here is the top trending news from the world of technology. News that every tech enthusiast should keep a tab on.
Social audio app Clubhouse is making a comeback with a new feature called ‘Chats.’ Chats allow Clubhouse users to send and receive voice messages. Apart from this, sender and recipient can listen to the voice message any time even if they are offline and they can also create group chat where 8 people can participate. Clubhouse’s new chat feature clearly indicates that it is moving away from its original focus on live audio rooms. However, it has categorically mentioned that live audio rooms will continue to be central part of the app. It will be interesting to see whether new Chats feature will help in reviving Clubhouse’s popularity.
Mozilla, best known for its open-source Firefox web browser, has published a report that focuses on data privacy practices of top auto brands. This report is based on a survey that found that all 25 car brands that were reviewed failed to meet Mozilla’s minimum privacy standards. The report claims that car companies collected a wide range of personal data from drivers without their proper consent, including their location data, driving habits, financial information, social media data and even biometric data. It further claimed that these car companies were sharing these data with third party companies. Some of the car brands that were researched for this report included Ford, Toyota, Volkswagen, BMW and Tesla.
Google has announced that it will require political advertisers to “prominently disclose” whenever their advertisement contains any AI generated content. This policy will go into effect in November 2023, exactly one year before the 2024 presidential election. Google’s policy is a welcome step in the ongoing fight against misinformation and fake news in political advertising. It is increasingly feared that for defeating their opponents’ political parties across the world could use AI-generated content during election times for fake news articles, doctored videos, and other forms of misinformation. By this disclosure, Google is making its easier for voters to identify and fact-check AI generated content.
YouTube is all set to remove some ad controls for its creators. As per the new rule, creators will no longer enjoy the privilege to choose which ads will run on their videos. Instead, YouTube will automatically select ads that it thinks is relevant for videos created by its creators. The company claims that its algorithm is far better in selecting relevant ads than human creators. It further claimed that this change is necessary to improve the overall experience of its viewers. However, some creators have expressed concern that this new rule may impact their revenue. This new change will apply to creators who have over 10,000 subscribers.
OpenAI will host its first ever developer conference on November 6, 2023 in San Francisco. The event will be called OpenAI DevDay. It will be a one-day event that will bring together hundreds of developers from around the world. Apart from a keynote address by OpenAI CEO Sam Altman, the event will include discussion on wide range of topics including latest advances in artificial intelligence, how to use OpenAI’s tools and APIs, building applications with artificial intelligence and ethical implications of AI. The event is seen as OpenAI’s effort to build relationship with developers.
| english |
Bigg Boss 16 host Salman Khan has returned to the show after recovering from dengue. Filmmaker Karan Johar stepped into Salman's shoes for a few days. Since his return, the actor has been reviewing the performance of each and every contestant. He is particularly not happy with Sumbul Touqeer's ineptitude to amp up her game in the house. In a promo video shared by Colors TV for the Shukravaar Ka Vaar episode, Salman is seen scolding Sumbul for appearing weak and not giving her best in the house. He reminds Sumbul that she called herself “strong” while entering the house but she has not been able to prove it on the show. Salman also refers to the time when Sumbul's father had asked her to play the game safely and wisely on the show.
“Simbul, iss ghar me aapne kya kiya? Yaha se badi badi baatein kar ke gayi ‘mai badi strong hun. ' Aap iss ghar ke andar dikh nahi rahi ho (What exactly have you done in this house? You had claimed here on stage that you were strong. You are not visible in this house),” Salman Khan is seen saying in the video.
The actor continues, “Maa baap ki toh baatein sunti nahi ho tum. Dikhau main aapko ki ghar ke andar aap kaise nazar aa rahi ho (You don't listen to your parents. Should I show you how you look inside the Bigg Boss house)? ” He then asks Sumbul Touqeer to move back and lead her to the gate far away from the screen. “Vaise hi… utni door dikhai deti ho (Just like that, you look insignificant in the house),” says Salman Khan.
Bigg Boss 16 airs on Colors TV from Monday to Friday at 10 PM. The weekend episodes start at 9. 30 PM. The reality TV show also streams on Voot Select. Stay tuned for more updates on Bigg Boss 16. | english |
---
title: A telepítés és a kiépítés után ellenőrizze a sikerességet és a hibakeresést
description: fájlbefoglalás
services: iot-edge
author: kgremban
ms.service: iot-edge
ms.topic: include
ms.date: 10/06/2020
ms.author: kgremban
ms.custom: include file
ms.openlocfilehash: 295769e5d4924e529b296dbb0b9d405ee197c1db
ms.sourcegitcommit: d103a93e7ef2dde1298f04e307920378a87e982a
ms.translationtype: MT
ms.contentlocale: hu-HU
ms.lasthandoff: 10/13/2020
ms.locfileid: "91979540"
---
## <a name="verify-successful-setup"></a>A sikeres telepítés ellenőrzése
Ellenőrizze az IoT Edge-szolgáltatás állapotát. A lista futtatásaként kell szerepelnie.
# <a name="linux"></a>[Linux](#tab/linux)
```bash
systemctl status iotedge
```
# <a name="windows"></a>[Windows](#tab/windows)
```powershell
Get-Service iotedge
```
---
A szolgáltatási naplók vizsgálata.
# <a name="linux"></a>[Linux](#tab/linux)
```bash
journalctl -u iotedge --no-pager --no-full
```
# <a name="windows"></a>[Windows](#tab/windows)
Ha befejezte a IoT Edge futtatókörnyezet telepítését, akkor előfordulhat, hogy az **üzembe helyezés-IoTEdge** és az **inicializálás-IoTEdge**futtatása között elérkezett hibák listája látható. A rendszer ezeket a hibákat várta, mivel a szolgáltatás a konfigurálás előtt megpróbálja elindítani a szolgáltatást.
```powershell
. {Invoke-WebRequest -useb https://aka.ms/iotedge-win} | Invoke-Expression; Get-IoTEdgeLog
```
---
A [hibaelhárítási eszköz](../articles/iot-edge/troubleshoot.md#run-the-check-command) futtatásával keresse meg a leggyakoribb konfigurációs és hálózati hibákat.
```powershell
iotedge check
```
Amíg nem telepíti az első modult az eszközön való IoT Edgere, a rendszer nem telepíti a **$edgeHub** rendszermodult az eszközre. Ennek eredményeképpen az automatikus ellenőrzés hibaüzenetet ad vissza a `Edge Hub can bind to ports on host` kapcsolat ellenőrzésekor. Ez a hiba figyelmen kívül hagyható, kivéve, ha egy modulnak az eszközre történő telepítése után következik be.
Végül a futó modulok listázása:
```powershell
iotedge list
```
Új telepítés után az egyetlen modulnak kell megjelennie a **edgeAgent**.
## <a name="tips-and-troubleshooting"></a>Tippek és hibaelhárítás
Az erőforrás által korlátozott eszközök esetében erősen ajánlott a *OptimizeForPerformance* környezeti változót *hamis* értékre állítani a [hibaelhárítási útmutató](../articles/iot-edge/troubleshoot.md)utasításai szerint.
Ha az eszköz nem tud csatlakozni a IoT Hubhoz, és a hálózat proxykiszolgálót tartalmaz, kövesse az [IoT Edge eszköz konfigurálása a proxykiszolgálón keresztül történő kommunikációhoz](../articles/iot-edge/how-to-configure-proxy-support.md)című szakasz lépéseit.
# <a name="linux"></a>[Linux](#tab/linux)
Linux-eszközökön emelt szintű jogosultságok szükségesek a parancsok futtatásához `iotedge` . A futtatókörnyezet telepítése után jelentkezzen ki a gépről, és jelentkezzen be ismét az engedélyek automatikus frissítéséhez. Addig a paranccsal `sudo` futtathat parancsokat emelt szintű jogosultságokkal.
# <a name="windows"></a>[Windows](#tab/windows)
Windows-tárolókat futtató Windows-eszközökön a Moby Container Engine IoT Edge részeként települt. A Moby Engine a Docker Desktoptal párhuzamosan fut. A parancsokat akkor használhatja, `docker` Ha az eszközön lévő tárolókkal közvetlenül szeretne kommunikálni. Azonban kifejezetten meg kell céloznia a Moby Engine-t abban az esetben, ha a Docker Desktop is telepítve van az eszközön.
Ha például az összes Docker-lemezképet szeretné listázni, használja a következő parancsot:
```powershell
docker images
```
Az összes Moby-lemezkép listázásához módosítsa ugyanazt a parancsot, és mutasson rá a Moby Engine-re:
```powershell
docker -H npipe:////./pipe/iotedge_moby_engine images
```
A motor URI-ja megjelenik a telepítési parancsfájl kimenetében, vagy megkeresheti a config. YAML fájl Container Runtime Settings szakaszában.

---
| markdown |
const fs = require('fs');
const packageJSON = require('../package.json')
const intersperse = require('intersperse');
const { get, includes } = require('lodash');
const React = require('react');
const ReactDOMServer = require('react-dom/server');
const marked = require('marked');
function Markdown(props: { inline?: boolean, children: string }) {
const firstLineWithContent = props.children && props.children
.split(/\n/)
.find(line => line.replace(/\s/, '').length > 0);
if (!firstLineWithContent) {
return null;
}
const firstIndentationMatches = firstLineWithContent.match(/^\s+/);
const firstIndentation = firstIndentationMatches && firstIndentationMatches[0];
const indentation = new RegExp(`^${firstIndentation}`);
const lines = firstIndentation ? props.children && props.children
.split(/\n/)
.map(line => line.replace(indentation, ''))
.join('\n') : props.children;
const html = props.inline ? marked.inlineLexer(lines, [], {}) : marked(lines);
return <span dangerouslySetInnerHTML={{ __html: html }} />;
}
function Header(props: any) {
return <header style={{ marginBottom: '1rem' }}>{props.children}</header>
}
const json = JSON.parse(fs.readFileSync('./dist/typedoc-output.json').toString())
const interfaces = json.children.filter((c: any) => {
return c.kindString === 'Interface';
})
.filter((t: any) =>
!includes([
'AccessibilitySchemaExtension',
'EvaluatedAccessibilitySchemaExtension',
], t.name)
);
const typeAliases = json.children.filter((c: any) => {
return c.kindString === 'Type alias';
})
.filter((t: any) =>
!includes([
'AccessibilitySchemaExtension',
'ForEachKeyInSchemasCallbackFunction',
'QuestionFunction',
'QuestionValue',
], t.name)
);
function ArrayLikeType(props: { type: any, name: string, typeArguments: any[] }) {
const type = props.typeArguments[0];
if (!type) {
return null;
}
return <>
{<Type object={type} />}[]
</>;
}
function ArrayType(props: { type: any, name: string, elementType: any }) {
const type = props.elementType;
if (!type) {
return null;
}
return <>
{<Type object={type} />}[]
</>;
}
function ReferenceType(props: { type: any, name: string, typeArguments: any[], elementType: any }) {
if (props.name === 'ArrayLike' || props.name === 'Array') {
return <ArrayLikeType {...props} />;
}
if (props.type === 'array') {
return <ArrayType {...props} />;
}
return <a href={`#${props.name}`}>{props.name}</a>
}
function IntrinsicType(props: { type: any, name: string }) {
return <code>{props.name}</code>
}
function ReflectionType(props: { type: any, declaration: string }) {
return <pre>{JSON.stringify(props.declaration, null, 2)}</pre>;
}
function StringLiteralType(props: { type: any, value: string }) {
return <code>"{props.value}"</code>
}
function UnionType(props: { type: any, name: string, types: any[] }) {
const types = props.types
.filter(t => t.name !== 'undefined')
.map((t, i) => <Type key={i} object={t} />);
return <>
{intersperse(types, <code> | </code>)}
</>;
}
function TupleType(props: { type: any, name: string, elements: any[] }) {
const elements = props.elements
.map((t, i) => <Type key={i} object={t} />);
return <>
[{intersperse(elements, <code>, </code>)}]
</>;
}
function Type(props: { object: any }) {
return {
reference: <ReferenceType {...props.object} />,
union: <UnionType {...props.object} />,
intrinsic: <IntrinsicType {...props.object} />,
stringLiteral: <StringLiteralType {...props.object} />,
array: <ArrayType {...props.object} />,
tuple: <TupleType {...props.object} />,
reflection: <ReflectionType {...props.object} />,
}[props.object.type] || <span>{JSON.stringify(props.object)}</span>;
}
function Interfaces() {
return interfaces
.map((i: any) => {
return <section>
<h3><a id={i.name}>{i.name}</a></h3>
<Header><Markdown inline>{get(i, 'comment.shortText')}</Markdown></Header>
<table>
{i.children
.filter((property: any) => get(property, 'comment.shortText') !== 'TODO')
.map((property: any) => <tr key={property.name}>
<td style={{ width: '15rem', maxWidth: '15rem', wordBreak: 'break-word' }}><code>{property.name}</code></td>
<td style={{ width: '15rem', maxWidth: '15rem', wordBreak: 'break-word' }}><code><Type object={property.type} /></code></td>
<td><Markdown inline>{get(property, 'comment.shortText')}</Markdown></td>
</tr>)}
</table>
</section>;
});
}
function TypeAliases() {
return typeAliases.map((alias: any) => {
return <section>
<h3><a id={alias.name}>{alias.name}</a></h3>
<Header><Markdown inline>{get(alias, 'comment.shortText')}</Markdown></Header>
<section style={{ wordBreak: 'break-word' }}>
Definition: <Type object={alias.type} />
</section>
</section>;
});
}
function HtmlRoot() {
return <html lang="en">
<head>
<meta charSet="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta httpEquiv="X-UA-Compatible" content="ie=edge" />
<title>A11yJSON attribute documentation</title>
<style dangerouslySetInnerHTML={{ __html: `
code {
font-size: 15px;
}
`}}></style>
</head>
<body style={{
fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif",
lineHeight: 1.25,
margin: '3rem',
}}>
<code>Version {packageJSON.version}</code>
<Markdown>{fs.readFileSync('./README.md').toString()}</Markdown>
<h2>Interfaces</h2>
<p>
You can use the following interfaces in your own structured data formats to simplify sharing accessibility data with others.
</p>
<Interfaces />
<h2>Type Aliases</h2>
<TypeAliases />
</body>
</html>;
}
console.log(ReactDOMServer.renderToString(<HtmlRoot />)); | typescript |
Digital transformation is today considered as a comprehensive, end-to-end process that requires organisations to embrace the human factor as a critical component of their digital transformation journey.
China’s position of being an undisputed manufacturing destination is on the wane. Experts say it is now increasingly clear which sectors India should focus on to capitalise on the significant opportunity.
The policy is not intended for e-commerce, direct selling, multi-level marketing or street vendors and the government intends to provide a national common framework for development of retail sector across the country through it.
While U.S. crude stocks fell last week, gasoline and distillate inventories surged, adding to concerns about easing demand. Gasoline stocks grew by 5.3 million barrels in the week to 219.1 million barrels, and distillate stockpiles, including diesel and heating oil, swelled by 6.2 million barrels, the EIA said.
China-plus-one has created a growth window for the Indian textiles segment, and the PLI Scheme can give the sector a boost. There might not be a more opportune time for the industry to seize an opportunity to grow quickly and counter rising competition from Vietnam and Bangladesh.
"Reaching $100 billion in five years will be a very steep goal. Hence, India could emulate the best-in-class exports growth seen over the past 10 years (9-10% by Vietnam in 2011-2015) and target a realistic goal of $65 billion in five years," the report said, adding that India will be able to expand its share of global exports to 6.6% from 4.5%.
Around 23% of the students accepted offers in sales and marketing, rolled out by the most prestigious firms across the country. 25% of the students were recruited for e-Commerce/IT/Operations by firms such as Adobe, Amazon, Atlassian, Flipkart, Google, Info Edge, Microsoft, Media.net, and Udaan, according to the institute. The median stipend has also increased by 18% to Rs. 2.6 lakh for two months from last year. The highest stipend of Rs 5 lakhs was offered in the BFSI sector.
India mostly missed the benefits of corporations shifting manufacturing units out of China in 2018-2019. However, India now has a unique window of opportunity to capitalise on the ongoing shift and become a global manufacturing hub, says Kearney’s Rajendran.
Currently estimated at USD 4 billion, the value e-commerce market -- is expected to see rapid growth and reach USD 20 billion by 2026, and USD 40 billion by 2030, a report by Kearney said. Meanwhile, the value lifestyle retail market is expected to grow from USD 90 billion in 2019, to USD 156 billion by 2026, and touch USD 215 billion by 2030.
Kearney's 2021 FDI Confidence Index reveals high level of risk aversion. It is an annual survey of global business executives that ranks the markets likely to attract the most investment in the next three years.
The tax department has brought some of the top consultancies including McKinsey, Boston Consulting Group (BCG), Kearney and Blackstone Consulting under scrutiny along with some of the nation’s top law firms.
In October to December 2020 period, PCB&W and FMCG & Healthcare (F&H) categories' volumes grew by 95 per cent and 46 per cent year-on-year (YOY) respectively, said the Q4- 2020 -E-commerce Trends Report', released by Unicommerce and Kearney.
The report said the focus on premiumisation across consumer goods has resulted in consumers switching to high-end products, and that the pursuit of cost reduction has been a key attribute followed by companies. Given the price-sensitivity of Indian consumers and heavy competition, a tight control on costs helped leaders preserve margins and reinvest in growth, the report said.
The report said the concessionaires and contractors need to explore strategic partnerships, identify the right markers for decision-making, and ensure the quality and timeline of project delivery with the growing infrastructure investments and greater participation from the private sector.
An Indian Institute of Ahmedabad alumni, Kaushika, has almost two decades of consulting and industry experience working with leading Indian and global clients across industries, with a focus on consumer products, retail, pharmaceuticals and healthcare.
| english |
TDP Government approved Kapu Reservation demand after dilly dallying it for over three years. After clearance from Cabinet & Assembly, The Bill recommending BC-F status for Kapus was forwarded to Centre for approval.
Union Home Ministry sought the feedback of various departments on the Kapu Reservation Bill. If the buzz is to be believed, The crucial Employment Department sent a note rejecting the Bill on grounds that AP Government failed to mention appropriate reasons for recommending reservations. For reservations to exceed 50 percent, There should be some strong reasons but State Government had failed to do so.
Mudragada Padmanabham set March 31st as the deadline for implementing Kapu Reservations. He threatened to launch another movement if TDP Government cheats Kapus once again. Will Mudragada prepone his movement now?
What about Pawan Kalyan who keeps saying TDP have the responsibility to implement the poll promises? Is he ready to fight for the welfare of his community? Let's see. . . ! | english |
<filename>classifier/templates/classifier/predict_result.html
{% extends "classifier/base.html" %}
{% block content %}
<h1>Text Classification</h1>
{% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}
{% for key, value in data.items %}
<label name="{{ key }}">{{ key }}: {{ value }}</label><br />
{% endfor %}
{% endblock %} | html |
# ConveTec
Conveniently Connecting People
| markdown |
Do you have groups of contacts whom you keep sending emails and meeting requests? And do you re-type each mail address every time you wish to do so? Now, if you’re using MS Outlook as your email client and still doing the same thing, you are missing something really cool.
Outlook allows you to create Distribution Lists which are nothing but subsets of your contacts or customized groups as you may call. So, next time you have a group of people to send frequent mails to, create a distribution list like one explained below.
Before you begin I recommend (and assume) that you have most contacts already added in your Contacts list. That just makes things easier for you.
Step 1: Click on the Contacts tab on the bottom of the left pane. Now, hit the Actions tab on the ribbon and follow to New Distribution List. Keyboard lovers may find Ctrl+Shift+L as a better option.
Step 2: A new window comes up with Distribution List tab on highlight. Give a name to your group and add members to it from Select Members under the Members section.
Step 3: Double click on names you wish to add or select them and click on the Members button.
You may also use the Add New icon to add members that are not in your contacts list. Update and Remove contacts are complementary options.
Step 4: Once you have added members you will be brought back to the window on Step 2. Click on Save & Close to start using your first distribution list.
Have a look at the image above. I have created my list for few Guiding Tech members and this is the name I use to group mail all.
Note: You may always edit the list by navigation to Contacts > Select group and following steps 2 through 4 or as you may find suitable.
How to Use a Distribution List?
Start with a new email. Create your message and in the To Field enter the name you gave to your group. In my case it is Guiding-Tech. One the name is typed you will see that it becomes bold and underlined indicating that Outlook has recognized the address. If it doesn’t, try doing a Ctrl+K. If it still doesn’t, you have screwed up the process and might have to go back to Step 1.
Clicking on the + sign will split the list name to individual mail addresses (useful if you want to remove exceptions at times).
Things cannot get simpler that this if you need to send out group mails every now and then. You can create as many lists as you want and use them to your flexibility. One list can be taken as a superset or subset of another. Lots more to understand and you will, once you start exploring the feature.
The above article may contain affiliate links which help support Guiding Tech. However, it does not affect our editorial integrity. The content remains unbiased and authentic.
| english |
Moscow, Policenama Online – Five people have been killed in a fire that broke out in a hospital in Russia’s St. Petersburg city, an emergency services source said on Tuesday. ”Five patients put on artificial ventilation machines (in the St. George Hospital) were killed in the fire,” the source told the TASS News Agency. The fire has been contained. | english |
package me.egg82.echo.storage.models;
import io.ebean.annotation.NotNull;
import javax.persistence.Entity;
import javax.persistence.Table;
@Entity
@Table(name = "echo_show")
public class ShowModel extends BaseModel {
@NotNull
private long tvdb;
@NotNull
private int season;
@NotNull
private int episode;
public ShowModel() {
super();
this.tvdb = -1L;
this.season = -1;
this.episode = -1;
}
public ShowModel(@org.jetbrains.annotations.NotNull String dbName) {
super(dbName);
this.tvdb = -1L;
this.season = -1;
this.episode = -1;
}
public long getTvdb() { return tvdb; }
public void setTvdb(long tvdb) { this.tvdb = tvdb; }
public int getSeason() { return season; }
public void setSeason(int season) { this.season = season; }
public int getEpisode() { return episode; }
public void setEpisode(int episode) { this.episode = episode; }
@Override
public String toString() {
return "ShowModel{" +
"id=" + id +
", version=" + version +
", created=" + created +
", modified=" + modified +
", tvdb=" + tvdb +
", season=" + season +
", episode=" + episode +
'}';
}
}
| java |
<reponame>cblanquera/geoph<filename>geojson/barangay/ph.western-visayas-region-vi.iloilo.san-joaquin.cumarascas.geo.json
{"type":"Feature","properties":{"type":"barangay","level":"4","label":"Cumarascas, San Joaquin, Iloilo, Western Visayas (Region VI), PH","locale":"ph.western-visayas-region-vi.iloilo.san-joaquin.cumarascas","country_id":177,"country_reference":177,"country_name":"Philippines","region_id":"16","region_reference":"6","region_name":"Western Visayas (Region VI)","province_id":"36","province_reference":"36","province_name":"Iloilo","city_id":"1137","city_reference":"683","city_name":"San Joaquin","barangay_id":"32874","barangay_reference":"16989","barangay_name":"Cumarascas"},"geometry":{"type":"MultiPolygon","coordinates":[[[[122.087967,10.60401],[122.08934,10.59686],[122.085609,10.58993],[122.069839,10.59615],[122.07579,10.60349],[122.087967,10.60401]]]]}} | json |
<filename>src/main/java/de/selbi/spotify/playback/data/visual/artwork/util/ComparablePlaybackItem.java
package de.selbi.spotify.playback.data.visual.artwork.util;
import javax.annotation.Nonnull;
import se.michaelthelin.spotify.model_objects.IPlaylistItem;
import se.michaelthelin.spotify.model_objects.specification.Episode;
import se.michaelthelin.spotify.model_objects.specification.Track;
public class ComparablePlaybackItem implements Comparable<IPlaylistItem> {
private final IPlaylistItem item;
public ComparablePlaybackItem(@Nonnull IPlaylistItem item) {
this.item = item;
}
@Override
public int compareTo(IPlaylistItem o) {
return getItem().getId().compareTo(o.getId());
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + item.getUri().hashCode();
return result;
}
@Override
public boolean equals(Object obj) {
String id = null;
if (obj instanceof Track) {
id = ((Track) obj).getUri();
} else if (obj instanceof Episode) {
id = ((Episode) obj).getUri();
} else if (obj instanceof ComparablePlaybackItem) {
id = ((ComparablePlaybackItem) obj).getItem().getUri();
}
return this.getItem().getUri().equals(id);
}
@Nonnull
public IPlaylistItem getItem() {
return item;
}
}
| java |
You can manage your notification subscription by clicking on the icon.
To Start receiving timely alerts please follow the below steps:
Click on the Menu icon of the browser, it opens up a list of options.
Click on the “Options ”, it opens up the settings page,
Here click on the “Privacy & Security” options listed on the left hand side of the page.
Scroll down the page to the “Permission” section .
Here click on the “Settings” tab of the Notification option.
A pop up will open with all listed sites, select the option “ALLOW“, for the respective site under the status head to allow the notification.
Once the changes is done, click on the “Save Changes” option to save the changes.
Middle-aged smokers with high cholesterol, BP 'cut life short by 10yrs'
Manmohan Singh terms Tharoor's Twitter comments as 'just a joke'
India needs to liberalise, change policies to attract more FDI: Nazareth (Corrected)
Tight security at Vaishno Devi shrine ahead of "Navratri"
US Ambassador meets Prime Minister Manmohan Singh Update- US Ambassador)
Radio Mirchi celebrates Dasara with 'Bombe Habba'
The sinister truth behind China's border incursion misadventure(Article)
Australian Fritzl's victim 'took out restraining order against him in 2007'
'Berlusconi will have to resign if immunity law overturned'
Footballer fined $150 for sex with parking meter!
Leggings that zap cellulite!
Will Sarabjeet be spared the gallows under Pak Govt. 's plans to commute death sentences?
Thief arrested while sleeping in the car he was about to steal!
Secret admirer sends 10,000 roses to women's dormitory in China!
Britons spend 1 month of their lives looking for TV remote!
Planck spacecraft obtains first peek of big bang's 'afterglow'
Do you want to clear all the notifications from your inbox? | english |
The development of mobile payment platforms, increasing options for providing debt, and cheaper and better off-grid solar power systems are presenting countries around the world with a chance to leapfrog the archaic electricity infrastructure that defined the twentieth century.
Looking to take advantage of these powerful emerging trends, d.light, a startup founded by two Stanford Business School alums, has raised $22 million in its latest round of financing.
The company was launched at the height of the first push by young entrepreneurs into renewables in the 2006-2007 timeframe.
For d.light, inspiration for its initial product came from an accident that d.light’s co-founder Sam Goldman witnessed during his time working with the Peace Corps in Benin.
Goldman witnessed an accident involving a neighbor’s child who accidentally knocked over a kerosene lamp, spilling the fuel on himself and suffering third degree burns across his body.
Goldman had seen similar lamps all his life while moving from country to country as a child. When he returned to the states for business school, the idea of creating a low-cost, solar-powered replacement for the lamp became his focus.
Business school was where he met Ned Tozun, who had similar dreams of changing the energy and power mix in emerging markets.
From that first solar-powered lamp, d.light has expanded its product suite to include everything from a solar powered energy kit for an entire home and... soon... low-powered televisions.
The evolution of the company’s business has come with an explosion of interest in off-grid power for emerging markets.
Indeed, d.light’s success mirrors that of its one-time business partner, M-KOPA Solar in Africa. Both companies depend on the development of mobile money payment systems in Africa and both have used debt to bring their products to market.
According to Tozun, d.light is able to sell their products more cheaply and in more markets, because their systems aren’t tied to a single telecom carrier the way that M-KOPA’s solar arrays are linked to Safaricom in Kenya.
For d.light that was by design so the company could sell its array in several markets.
At their core, both systems operate in the same way. M-KOPA and d.light both provide solar panels, converters, lights, cell phone chargers (and eventually other low-power appliances) through an installment payment plan that can be financed through direct loans from the company or through micro-financing from local lenders.
By not using a single sim card interface, Tozun said that the company could expand to parts of Asia and Africa that are not as consolidated as markets in Kenya and Nigeria.
Through its partnership with M-KOPA, Tozun said d.light has installed roughly 120,000 of its systems before M-KOPA cut its ties with the company and began manufacturing its own equipment.
“One of the things that the business model provides that M-KOPA doesn’t is that it’s a fundamentally lower cost structure,” said Tozun. “We’re in the same places as M-KOPA we’re 20% cheaper,” he said.
And while M-KOPA has been able to consolidate a position in Kenya with its home kits, Tozun argues that d.light has fostered more brand awareness and loyalty in other markets through the sale of its $5 basic solar-powered light (Goldman’s kerosene lamp replacement).
Even the basic market for replacing kerosene lamps is huge. Roughly 2 billion people burn kerosene in lamps for light. At $5 per lamp, that’s big money for any vendor.
The issue, said Tozun, is the flood of cheap products that have soured consumers on solar goods. Without quality controls, countries with large solar manufacturing capacity and lax product safety laws have flooded Africa with low cost, low quality products.
Upselling quickly follows. “We’ve sold 2 million units into Kenya of the off-grid lights,” Tozun said. And that’s led to success with its power systems.
The new $22 million in funding will help d.light build out a sales network for its “totally proprietary” technology platform, Tozun said.
Led by KawiSafi Ventures and Energy Access Ventures, along with follow-on investments from NewQuest Capital Partners (which picked up DFJ Asia’s stake in d.light), and some impact investors, the new round will also help finance the commercial rollout of the company’s new low-power television sets.
Big government money is pouring in from the West. For instance, there’s Power Africa, which was set up by the U.S. Agency for International Development. It’s a $43 billion public and private U.S. initiative to develop renewable power in sub-Saharan Africa.
An entire solar power array, costs $25 down and 40 cents a day for a year. After that, the system belongs to its owners. Then, d.light tries to upsell the consumer with a second system or one of its new white good products (a TV to start, but soon, a fan or a fridge).
According to him, the next target for the company are the billion people who have “unreliable” connections to the grid. “That’s the next market,” Tozun said.
| english |
<gh_stars>0
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.river.test.spec.renewalservice;
import java.util.logging.Level;
// net.jini
import net.jini.core.event.EventRegistration;
import net.jini.core.event.RemoteEvent;
import net.jini.lease.LeaseRenewalManager;
import net.jini.lease.LeaseRenewalService;
import net.jini.lease.LeaseRenewalSet;
import net.jini.lease.ExpirationWarningEvent;
//
import org.apache.river.qa.harness.TestException;
// org.apache.river.qa
import org.apache.river.qa.harness.Test;
import org.apache.river.test.share.RememberingRemoteListener;
/**
* Assert that because a given set will only have one expiration
* warning event registration at a given time all expiration warning
* events will have the same event ID.
*
*/
public class EventIDWarnTest extends AbstractLeaseRenewalServiceTest {
/**
* The renewal set duration time
*/
long renewSetDur = 0;
/**
* Requested lease duration for the renewal set
*/
private final long RENEWAL_SET_LEASE_DURATION = 40 * 1000; // 40 seconds
/**
* Listeners of the RenewalFailureEvents
*/
private RememberingRemoteListener rrl = null;
/**
* The LeaseRenewalManager used for LRS impls that grant only short leases
*/
private LeaseRenewalManager lrm = null;
/**
* Sets up the testing environment.
*/
public Test construct(org.apache.river.qa.harness.QAConfig sysConfig) throws Exception {
// mandatory call to parent
super.construct(sysConfig);
// Announce where we are in the test
logger.log(Level.FINE, "EventIDWarnTest: In setup() method.");
// capture grant time for the renewal set
String prop = "org.apache.river.test.spec.renewalservice." +
"renewal_set_lease_duration";
renewSetDur = getConfig().getLongConfigVal(prop, RENEWAL_SET_LEASE_DURATION);
// logs events as they arrive
rrl = new RememberingRemoteListener(getExporter());
// create lease renewal manager for wider use across implementations
lrm = new LeaseRenewalManager(sysConfig.getConfiguration());
return this;
}
/**
* Assert that because a given set will only have one expiration
* warning event registration at a given time all expiration warning
* events will have the same event ID.
*/
public void run() throws Exception {
// Announce where we are in the test
logger.log(Level.FINE, "EventIDWarnTest: In run() method.");
// Create three renewal sets with a lease of 40000 milliseconds
LeaseRenewalService lrs = getLRS();
logger.log(Level.FINE, "Creating the lease renewal set with duration" +
" of " + renewSetDur + " milliseconds");
LeaseRenewalSet set01 = lrs.createLeaseRenewalSet(renewSetDur);
set01 = prepareSet(set01);
lrm.renewFor(prepareLease(set01.getRenewalSetLease()), renewSetDur, null);
logger.log(Level.FINE, "Creating the lease renewal set with duration" +
" of " + renewSetDur + " milliseconds");
LeaseRenewalSet set02 = lrs.createLeaseRenewalSet(renewSetDur);
set02 = prepareSet(set02);
lrm.renewFor(prepareLease(set02.getRenewalSetLease()), renewSetDur, null);
logger.log(Level.FINE, "Creating the lease renewal set with duration" +
" of " + renewSetDur + " milliseconds");
LeaseRenewalSet set03 = lrs.createLeaseRenewalSet(renewSetDur);
set03 = prepareSet(set03);
lrm.renewFor(prepareLease(set03.getRenewalSetLease()), renewSetDur, null);
// register the listener to receive expiration events
logger.log(Level.FINE, "Registering listener to receive " +
"ExpirationWarngingEvents for set #1.");
long minWarning = renewSetDur / 3;
logger.log(Level.FINE, "minWarning = " + minWarning + " milliseconds");
EventRegistration reg01 =
set01.setExpirationWarningListener(rrl, minWarning, null);
reg01 = prepareRegistration(reg01);
// validate the registration (just for grins)
if (rstUtil.isValidExpWarnEventReg(reg01, set01) == false) {
String message = "Registration #1 is invalid because:\n" +
rstUtil.getFailureReason();
throw new TestException(message);
}
logger.log(Level.FINE, "Registering listener to receive " +
"ExpirationWarngingEvents for set #2.");
logger.log(Level.FINE, "minWarning = " + minWarning + " milliseconds");
EventRegistration reg02 =
set02.setExpirationWarningListener(rrl, minWarning, null);
reg02 = prepareRegistration(reg02);
// validate the registration (just for grins)
if (rstUtil.isValidExpWarnEventReg(reg02, set02) == false) {
String message = "Registration #2 is invalid because:\n" +
rstUtil.getFailureReason();
throw new TestException(message);
}
logger.log(Level.FINE, "Registering listener to receive " +
"ExpirationWarngingEvents for set #3.");
logger.log(Level.FINE, "minWarning = " + minWarning + " milliseconds");
EventRegistration reg03 =
set03.setExpirationWarningListener(rrl, minWarning, null);
reg03 = prepareRegistration(reg03);
// validate the registration (just for grins)
if (rstUtil.isValidExpWarnEventReg(reg03, set03) == false) {
String message = "Registration #3 is invalid because:\n" +
rstUtil.getFailureReason();
throw new TestException(message);
}
// wait for the events to roll in ...
rstUtil.waitForRemoteEvents(rrl, 3, renewSetDur);
// ensure that we have exactly 3 events
RemoteEvent[] events = rrl.getEvents();
if (events.length != 3) {
String message = "Listener received " + events.length +
" events but is required to receive exactly 3.";
throw new TestException(message);
}
// assert that each event holds the expected ID value
for (int i = 0; i < events.length; ++i) {
ExpirationWarningEvent ewe =
(ExpirationWarningEvent) events[i];
if (ewe.getID() !=
LeaseRenewalSet.EXPIRATION_WARNING_EVENT_ID) {
String message = "Event #" + i + " has the wrong event ID.\n" +
"ID = " + ewe.getID() + " but it should be " +
LeaseRenewalSet.EXPIRATION_WARNING_EVENT_ID;
throw new TestException(message);
}
}
}
} // EventIDWarnTest
| java |
<reponame>hillst/FastqIndex
#!/usr/bin/env python
import sys
import os
from optparse import OptionParser
import fastq_index
__updated__ = "2015-6-17"
__author__ = "<NAME>"
"""
The purpose of this program is to build a fast lookup for fastq file. Every 128 bytes represents one read with the following format:
read_id,position[PADDING]\n
"""
def main():
program_name = os.path.basename(sys.argv[0])
program_version = "v0.1"
program_build_date = "%s" % __updated__
program_version_string = '%%prog %s (%s)' % (program_version, program_build_date)
program_license = "Copyright 2015 <NAME> Lab Oregon State University \
Licensed under the Apache License 2.0\nhttp://www.apache.org/licenses/LICENSE-2.0"
program_longdesc = "The purpose of this program is to build a fast lookup for fastq file. Every 128 bytes represents\
one read with the following format:\n read_id,position[PADDING]\\n"
argv = sys.argv[1:]
# setup option parser
parser = OptionParser(version=program_version_string, epilog=program_longdesc, description=program_license)
parser.add_option("-f", "--fastq", dest="fastq", help="Fastq file to index", metavar="FILE")
parser.add_option("-c", "--index-name", dest="index_name", help="Name of the resulting index", metavar="STRING")
parser.add_option("-b", "--block-size", dest="block_size", help="Block size for each index entry\t[OPTIONAL]", metavar="INT")
parser.add_option("-s", "--skip-sorting", \
action="store_false", dest="sort_data", default=True,
help="Skip the sorting of the fastq read ids. Only use this if the fastq is already sorted.\t[OPTIONAL]", metavar="BOOL")
# process options
(opts, args) = parser.parse_args(argv)
fastq, index_name = opts.fastq, opts.index_name
if fastq is None or index_name is None:
parser.print_help()
sys.exit(-1)
if not opts.block_size is None:
fastq_index.build_index(fastq, index_name, int(opts.block_size), sort_data=opts.sort_data)
else:
fastq_index.build_index(fastq, index_name, sort_data=opts.sort_data)
if __name__ == "__main__":
main() | python |
<reponame>cheshyre/advent-of-code
import os
import cube
cur_dir = os.path.dirname(os.path.abspath(__file__))
z = 0
active_dict = {}
with open(f"{cur_dir}/input") as f:
for y, line in enumerate(f):
for x, char in enumerate(line.strip()):
if char == "#":
active_dict[(x, y, z)] = cube.Cube(x, y, z)
active_dict = cube.determine_next_active_dict(active_dict)
active_dict = cube.determine_next_active_dict(active_dict)
active_dict = cube.determine_next_active_dict(active_dict)
active_dict = cube.determine_next_active_dict(active_dict)
active_dict = cube.determine_next_active_dict(active_dict)
active_dict = cube.determine_next_active_dict(active_dict)
cube.draw_state(active_dict)
print(f"There are {len(active_dict)} active cubes after the six-cycle boot.")
| python |
This was a beautifully told tale of the impact and trauma of growing up with alcoholic and mentally ill parents and how one can stop the cycle of intergenerational trauma thru personal healing, forgiveness and love. Meg's investigative reporting background made her a perfect candidate to research her family history and getting buy-in from all her siblings was so gracious: "No Kissingers were harmed in the making of this book!" By sharing our stories, we give others permission to share theirs. Couldn't put it down and sobbed at the end and felt my own personal healing.
No comments have been added yet.
| english |
import React, { useState } from 'react';
import { Link } from 'react-router-dom';
import { useSelector, useDispatch } from 'react-redux';
import { getProv } from '../../actions/Providers/providersActions';
import ProviderContainer from "../Provider-container/Provider-container";
import './Search.css';
const axios = require('axios');
const $ = require('jquery');
require('dotenv').config();
const Search = () => {
console.log('aaaaaaaaaaaaaaaaaaaaa', process.env)
const userInStore = useSelector((state: any) => state.user);
const dispatch = useDispatch();
const [category, setCategory] = useState("");
const [city, setCity] = useState("");
// const [results, setResults] = useState([
// {
// name: "Nablus",
// serviceProviders: [{
// name: "adam",
// phone: "1254782",
// picture: "https://api.fixawy.net/storage/images/categories/cat_1.svg",
// catname: "Electrician"
// }]
// }]);
const handleClick = async () => {
// console.log('aaaaaaaaaaaaaaaaaaaaa',city)
await axios.post(`http://localhost:8000/location/loc/`, //url for sending the request ?
{
name: city,
// category: category
})
.then((result: any) => {
console.log("axios", result.data)
// dispatch(getProv(result.data[0].name, result.data[0].serviceProviders))
// setResults(result.data)
// redirect to the provider page path= '/provider'
})
.catch((err: any) => {
console.error("err===== =>", err);
})
// }
// console.log("========", result)
// const handleChange = () => {
}
console.log(category)
return (
<section className="search-sec">
<div className="container">
<input type="text" placeholder="search.." className="search-input"></input>
<div className="cat dropdown">
{/* <button className="dropbtn" onClick={()=>{setCat(!cat)}}>Category</button> */}
<select className="dropdown-cat" onChange={(e) => { setCategory(e.target.value) }}>
<option>Electrician</option>
<option>Plumber</option>
<option>Carpenter</option>
</select>
</div>
<div className="city dropdown">
{/* <button className="dropbtn" onClick={()=>{setCity(!city)}}>City</button> */}
<select className="dropdown-city" onChange={(e) => { setCity(e.target.value) }}>
<option>Ramallah</option>
<option>Nablus</option>
<option>Hebron</option>
<option>Jenin</option>
<option>Tulkarem</option>
<option>Jericho</option>
</select>
</div>
<button className="btn-search" onClick={handleClick}>Search</button>
{/* <ProviderContainer results={results} city={city} category={category} /> */}
</div>
</section>
)
}
export default Search;
| typescript |
Positive effect of education imparted by Hindu Janjagruti Samiti !
Mumbai : Hindu Janajagruti Samiti had imparted education to the major manufacturers of cashew modaks on desecration of Shri Ganesh caused on using His photograph on the wrappers, 2 moths back. At that time the owners of the concerned establishment had promised to change the photograph of Shri Ganesh appearing on the wrappers of their products. Accordingly, Mr. Manohar Ukamani, the owner of Megha Foods from Thane, has handed over revised design of the wrapper to Mr. Satish Kocharekar of HJS. Mr. Ukamani has also assured Mr. Kocharekar that similar changes will also be made by other manufacturers in design of their wrappers.
During public Ganeshotsav period, cashew modak are available in market for sale in large quantity. The photograph of Shri Ganesh is printed on the wrappers of these products. These wrappers are afterwards found in dustbins, and on roads causing desecration of Shri Ganesh. In this regard, a meeting between Hindu Janjagruti Samiti and major manufacturers cashew modaks from Mumbai and Thane was held on 6th June 2012. In this meeting, an appeal to make changes in the wrappers was made to all the manufacturers. The Samiti is receiving positive response to its appeal. In this background, Mr. Manohar Ukamani, the owner of Megha Foods from Thane, has handed over revised design of the wrapper to Mr. Satish Kocharekar of HJS. | english |
<reponame>spara/examples
// Copyright 2016-2019, Pulumi Corporation. All rights reserved.
import * as gcp from "@pulumi/gcp";
import { asset } from "@pulumi/pulumi";
const bucket = new gcp.storage.Bucket("bucket");
// Google Cloud Function in Python
const bucketObjectPython = new gcp.storage.BucketObject("python-zip", {
bucket: bucket.name,
source: new asset.AssetArchive({
".": new asset.FileArchive("./pythonfunc"),
}),
});
const functionPython = new gcp.cloudfunctions.Function("python-func", {
sourceArchiveBucket: bucket.name,
runtime: "python37",
sourceArchiveObject: bucketObjectPython.name,
entryPoint: "handler",
triggerHttp: true,
availableMemoryMb: 128,
});
const pyInvoker = new gcp.cloudfunctions.FunctionIamMember("py-invoker", {
project: functionPython.project,
region: functionPython.region,
cloudFunction: functionPython.name,
role: "roles/cloudfunctions.invoker",
member: "allUsers",
});
export const pythonEndpoint = functionPython.httpsTriggerUrl;
// Google Cloud Function in Go
const bucketObjectGo = new gcp.storage.BucketObject("go-zip", {
bucket: bucket.name,
source: new asset.AssetArchive({
".": new asset.FileArchive("./gofunc"),
}),
});
const functionGo = new gcp.cloudfunctions.Function("go-func", {
sourceArchiveBucket: bucket.name,
runtime: "go111",
sourceArchiveObject: bucketObjectGo.name,
entryPoint: "Handler",
triggerHttp: true,
availableMemoryMb: 128,
});
const goInvoker = new gcp.cloudfunctions.FunctionIamMember("go-invoker", {
project: functionGo.project,
region: functionGo.region,
cloudFunction: functionGo.name,
role: "roles/cloudfunctions.invoker",
member: "allUsers",
});
export const goEndpoint = functionGo.httpsTriggerUrl;
| typescript |
We not only will try our greatest to supply outstanding services to every shopper, but also are ready to receive any suggestion offered by our buyers for men tracksuit jacket joggers, Women Yoga Pants , Custom Promotional Cotton T- Shirt , Running 4 Way Stretch Yoga Shorts ,Custom Logo Hoodie . With a wide range, top quality, reasonable rates and stylish designs, our products are extensively used with this industries and other industries. The product will supply to all over the world, such as Europe, America, Australia,Jakarta , Brunei ,Egypt , Azerbaijan .We've got constructed strong and long co-operation relationship with an enormous quantity of companies within this business overseas. Immediate and specialist after-sale service supplied by our consultant group has happy our buyers. In depth Info and parameters from the merchandise will probably be sent to you for any thorough acknowledge. Free samples may be delivered and company check out to our corporation. n Portugal for negotiation is constantly welcome. Hope to get inquiries type you and construct a long-term co-operation partnership.
| english |
People are getting used to movies like KGF, Akhanda and RRR. All of them have heavy music and violence. That is the reason people like Aamir Khan are worried about the coming movies. Aamir is getting ready to release Laal Singh Chaddha.
Laal Singh Chaddha is a comedy-drama, which doesn’t have any commercial or heroic elements. Aamir is worried if he will get the proper response from the public.
The masses of this generation are expecting larger-than-life films in theatres. They are not showing interest in going to the theatres to watch dramas and comedies.
So, it will be a tricky situation for Aamir to pull the crowd to the theatres. We have to see how far can he succeed in bringing the masses to the theatres.
If he fails to beat KGF 2’s opening day record, then it will be a huge setback for his stardom. He has been craving a hit for a long time.
Now he is facing the rumours of his third marriage with the Dangal girl who was his daughter portion in the movie.
He has already given the divorce to his second wife. | english |
When Virat Kohli made his international debut, he was chubby boy, who liked to live on his own terms. The current India skipper was not concerned about his fitness and was not serious about his place in the national team. However, 10 years down the line, Virat has become a role model for millions of youngsters. The right-handed batsman has redefined the rule of batting and is breaking records for fun.
Virat Kohli was recently named in the top 5 cricketers of the decade.
“His genius has been to rise, time and again, to the challenge. Between the end of the England tour in 2014 and the second Test against Bangladesh at Kolkata in November, Kohli averaged 63, with 21 hundreds and 13 fifties,” said Wisden about Kohli.
“In many ways, there isn’t. Since the retirement of Sachin Tendulkar and the gradual waning of MS Dhoni, no cricketer in the world has operated under such daily pressure as Kohli,” it further added.
| 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.
*/
package harry.model.sut;
import java.util.Random;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.TimeUnit;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeName;
import harry.core.Run;
import harry.ddl.SchemaSpec;
import harry.operations.CompiledStatement;
import harry.visitors.GeneratingVisitor;
import harry.visitors.LoggingVisitor;
import harry.visitors.OperationExecutor;
import harry.visitors.Visitor;
public class InJVMTokenAwareVisitExecutor extends LoggingVisitor.LoggingVisitorExecutor
{
public static void init()
{
harry.core.Configuration.registerSubtypes(Configuration.class);
}
private final InJvmSut sut;
private final SystemUnderTest.ConsistencyLevel cl;
private final SchemaSpec schema;
private final int maxRetries = 10;
public InJVMTokenAwareVisitExecutor(Run run,
OperationExecutor.RowVisitorFactory rowVisitorFactory,
SystemUnderTest.ConsistencyLevel cl)
{
super(run, rowVisitorFactory.make(run));
this.sut = (InJvmSut) run.sut;
this.schema = run.schemaSpec;
this.cl = cl;
}
@Override
protected void executeAsyncWithRetries(long lts, long pd, CompletableFuture<Object[][]> future, CompiledStatement statement)
{
executeAsyncWithRetries(lts, pd, future, statement, 0);
}
private void executeAsyncWithRetries(long lts, long pd, CompletableFuture<Object[][]> future, CompiledStatement statement, int retries)
{
if (sut.isShutdown())
throw new IllegalStateException("System under test is shut down");
if (retries > this.maxRetries)
throw new IllegalStateException(String.format("Can not execute statement %s after %d retries", statement, retries));
Object[] partitionKey = schema.inflatePartitionKey(pd);
int[] replicas = sut.getReplicasFor(partitionKey, schema.keyspace, schema.table);
// TODO: find a better source of entropy
int replica = replicas[new Random(lts).nextInt(replicas.length)];
if (cl == SystemUnderTest.ConsistencyLevel.NODE_LOCAL)
{
future.complete(sut.cluster.get(replica).executeInternal(statement.cql(), statement.bindings()));
}
else
{
CompletableFuture.supplyAsync(() -> sut.cluster.coordinator(replica).execute(statement.cql(), InJvmSut.toApiCl(cl), statement.bindings()), executor)
.whenComplete((res, t) ->
{
if (t != null)
executor.schedule(() -> executeAsyncWithRetries(lts, pd, future, statement, retries + 1), 1, TimeUnit.SECONDS);
else
future.complete(res);
});
}
}
@JsonTypeName("in_jvm_token_aware")
public static class Configuration implements harry.core.Configuration.VisitorConfiguration
{
public final harry.core.Configuration.RowVisitorConfiguration row_visitor;
public final SystemUnderTest.ConsistencyLevel consistency_level;
@JsonCreator
public Configuration(@JsonProperty("row_visitor") harry.core.Configuration.RowVisitorConfiguration rowVisitor,
@JsonProperty("consistency_level") SystemUnderTest.ConsistencyLevel consistencyLevel)
{
this.row_visitor = rowVisitor;
this.consistency_level = consistencyLevel;
}
@Override
public Visitor make(Run run)
{
return new GeneratingVisitor(run, new InJVMTokenAwareVisitExecutor(run, row_visitor, consistency_level));
}
}
} | java |
Well, big changes on the horizon for Pinterest!
, a company offering technology to help advertisers reach a business audience, has raised $10 million in a Series B round of funding.
Have you ever wanted to take a picture of a purse and figure out where to buy it instantly? Probably not, but now you can.
| english |
Virgin Media has Sky clear in its targets as it rolls out its new Christmas advert to promote its “Stop The Broadband Con” campaign.
The campaign is aimed at changing how UK internet service providers (ISP’s) are advertising their Broadband speeds and services – a topic of much debate as customers are finding they are experiencing significantly lower speeds than the providers are advertising in the media.
Virgin Media believes customers should get what they pay for and are therefore urging the Advertising Standards Authority to help stop misleading broadband advertising, asking those interested to sign a petition lending support to the campaign. The petition has nearly 10,000 signatures at the time of writing.
The advert, whilst low budget, plays on the idiosyncrasies of British culture; offering two lamps, one with a genie, the other Frank Lampard, and references to the classic British pantomime.
It’s the “you may have seen something about having three wishes in some poxy advert or something” that will convince you of Virgin’s not-so-subtle jab at its competitor:
What do you think? Clever or cheap shot? Let us know in the comments.
Get the most important tech news in your inbox each week.
| english |
---
name: unterminated conditional - at ?
description: missing colon and true, false consquents in condition
---
{
"message": "Unexpected end of input"
}
| json |
{
"tagline": "Map your workloads & entities",
"repository": "https://github.com/newrelic/nr1-workload-geoops.git",
"details": "Describe, consume, and manage Workloads and Entities in a geographic model that supports location-specific KPI's, custom metadata, drill-down navigation into Entities and Workloads, real-time configuration, and configuration via automation using the newrelic-cli.",
"support": {
"issues": {
"url": "https://github.com/newrelic/nr1-workload-geoops/issues"
},
"email": {
"address": "<EMAIL>"
},
"community": {
"url": "https://discuss.newrelic.com/t/workload-geoops-nerdpack/99478"
}
},
"whatsNew": "\n-Fix: Maps now function with workloads that contain > 25 entities\n-Fix: Multiple usability issues have been addressed for multi-account environments\n-Feat: Published guide to automating configuration using the newrelic-cli"
} | json |
{
"authors": [],
"doi": "",
"publication_date": "",
"id": "EU101384",
"url": "",
"source": "Wikipedia",
"source_url": "https://eu.wikipedia.org/",
"licence": "CC-BY",
"language": "eu",
"type": "other",
"description": "Annual conferences",
"text": "Anemia ferropeniko.\n| Gaixotasun infotaula.\nizena = Anemia ferropenikoa.\nirudia = Iron deficiency anemia.jpg.\noina = Anemia ferropenikoa duen gaixo baten odol-frotisa: eritrozitoak ohi baino txikiagoak dira eta ez-ohiko morfologia dute.\nDiseasesDB = 6947.\nGNS10 =.\nGNS10|D|50||d|50.\nGNS9 =.\nGNS9|280.\nGNSO =.\nOMIM =.\nMedlinePlus = 000584.\neMedicineSubj = med.\neMedicineTopic = 1188.\nMeshID = D018798.\nAnemia ferropenikoa anemia mota bat da, burdinaren gabeziaren ondorioz sortzen dena.\nJakina denez, hemoglobina -era berean- eritrozitoen molekula nagusia da, globulu gorrien pisu lehorraren %90a hemoglobinari baitagokio.\nBurdinaren ezean, hemoglobina eta eritrozitoen ekoizpena ezin da zuzen osatu.\nGlobulu gorriak hiltzen direnean barruko hemoglobina askatzen da, eta ehunetan dauden makrofagoek hemoglobina hori hartzen dute, bilirrubinan eraldatuz.\nBilirrubina hori behazunarekin batera kanporatzen da, eta hemoglobinaren burdina berriz erabiltzen da hezur-muinean hemoglobina berria ekoiztu ahal izateko <ref>.\nerreferentzia|abizena= Ganong |izena= W.F.\n|izenburua= Manual de Fisiologia Médica |argitaletxea= El manual Moderno |orrialdea= 458.\n</ref>.\nOdol-analisi batean asaldura hau erraz detektatzen da: odolean burdin eta ferritina gutxi dago, globulu gorriak ohi baino txikiagoak dira eta hematokritoa ere ez-ohikoa izaten da.\nBurdinaren gabeziaren atzean hainbat alderdi edo faktore egon daitezke: *burdinarik gabeko dieta desegokia *odola eta burdinaren ez-ohiko galera (odoljarioak, menstruazio gaiztoak...) *arazoak burdinaren xurgatze-prozesuan (heste meharrean) *haurdunaldia (egoera honek burdinaren aparteko sarrera exijitzen baitu) <ref>.\nerreferentzia|url= https://www.nlm.nih.gov/medlineplus/spanish/ency/article/000584.htm |egilea= MedLine Plus |izenburua= Anemia ferropénica|hizkuntza=es.\n</ref> Asaldura honen sintoma nagusiak nekea, buruko mina, zorabioak, zurbiltasuna eta disnea dira.\nTratamendua burdinaren administrazioan datza, aho-bidetik (kasu gehienetan) edo zain-barneko bidetik.\n== Erreferentziak ==.\nerreferentzia_zerrenda.\nKategoria:Anemiak."
} | json |
LALITPUR: President Bidya Devi Bhandari visited Patan-based Krishna Mandir, the temple of Lord Krishna, and performed puja for 10 minutes.
President Bhandari visited the temple as per the tradition of temple visit by the Head of the State on the occasion of Krishna Janmasthami every year.
The main priest at the temple, Pratapdhar Sharma, offered tika and prasad to President Bhandari. A team of people’s representatives including Mayor of Lalitpur Metropolitan City, Chiribabu Maharjan, and Deputy-Mayor Gita Satyalhad welcomed President Bhandari at the temple.
On the occasion, the President observed the monuments at the Patan Durbar Square and enquired about reconstruction. A large number of people have thronged the temple to worship Shree Krishna from 1:00 am. Devotees from Kathmandu Valley as well as neighboring districts visit the temple.
Superintendent of Police at the Metropolitan Police Range, Lalitpur, Durga Singh, said that robust security was maintained at Patan Durbar Square in view of a large number of devotees visiting the religious shrine. | english |
Surjeet Lodhi from Madhya Pradesh was conferred with the Diana Award for his courageous fight against eradicating alcoholism and child labour in his village.
Surjeet Lodhi was barely 13 when he started his fight against alcoholism and child labour in Madhya Pradesh’s Vidisha district. His stellar efforts to shut down five alcohol shops and enrol more than a hundred children in school were recently recognised at a global forum.
On 1 July, he was conferred with the Diana Award 2020 through a virtual ceremony. Established in 1999, the award honours those who have demonstrated exemplary humanitarian work for advancing the UN Sustainable Development Goals. Lodhi was one of the many young Indians who received it this year.
“I see the award as a responsibility to do better. I am very happy with the recognition and I aim to scale up my endeavour by helping more destitute children who are forced into child labour,” Lodhi, now 17, tells The Better India.
He joined the Bal Mitra Gram (BMG) Programme started by the Kailash Satyarthi Children’s Foundation (KSCF) in the 1960s across India to end child labour. The programme spreads awareness about child labour and helps parents register their kids in schools.
And all his efforts stem from a deeper understanding of living with abuse.
“We are proud of Surjeet who has taken such a strong step against domestic violence that was once perpetrated on his mother by his father under the influence of alcohol. He has taken up great initiatives such as promoting education among former child labourers. He is a role model for many children in our BMGs where each child is a strong leader and is empowered to assert their rights and fight for their village development alongside adults,” says P Nagasayee Malathy, Executive Director (Programmes), BMG.
It is not uncommon for men to physically torture their family members, including their wife and kids, under alcohol in India. Lodhi too was a victim of domestic abuse.
He grew up in a joint family of 10 members, including his grandparents, uncles, cousins, parents and siblings. The elders were engaged in farming and wage labour. With so many mouths to feed, the family struggled financially. To make matters worse, Lodhi’s father started drinking when the former was a toddler.
When he heard about the Satyarthi foundation in 2016, he decided to put an end to his ordeals.
“It was like placing a soft cushion on a hard floor. I finally had someone who I could speak to about my problems without being told how ‘normal’ domestic abuse is. I saw an opportunity for myself and the village. We have several thekas (liquor shops) in our village where you can easily get cheap hazardous alcohol. It was time for them to leave,” says Lodhi.
The young boy’s father could barely work due to his inebriated state, forcing Lodhi to drop out of school and earn money. But he is grateful to his grandfather who ensured Lodhi was educated and took the responsibility of bringing in money.
Members of the BGM were asked to identify local issues and develop strategies to tackle them. Drawing inspiration from his personal life, Lodhi came up with ideas for rallies, complaints and awareness campaigns. However, he soon realised they needed something big to make an on-ground impact. So, he decided to shut down shops but there was one problem.
“Initially, no one took us seriously. As a 14-year-old it was hard to reason with adults who refuse to see you as equals. So, I did the next best thing which was to convince children and get them on my side. I reached out to around 90 children and educated them about the effects of alcohol on health, family and overall lifestyle. Most of them could relate to my plight as they had seen something similar in their houses.
One of the members of BMG also refused to eat till her father gave up drinking. She fought with her parents till he gave in. Using that as an example, Lodhi asked the young members to deal with the parents emotionally.
Meanwhile, he approached the gram panchayat to conduct raids in the shops selling liquor illegally. This move invited threats from the owners but Lodhi didn’t give up. In turn, he informed the police that the owners were trying to harm him.
“After years of continuous follow-up, two owners shut shop on their own, the other three were forced to shut as they didn’t have proper licences. But I knew, shutting the shops also meant stealing their livelihoods. With the help of government officials, we help them get employment as daily wage workers. The village communities now keep an eye on the male community members’ alcohol consumption and the domestic violence complaints,” he says.
But his work was not over just yet.
Lodhi and his team also made sure children of alcoholic parents were enrolled in schools.
“Getting off addiction is a long process, and often the user can gets frustrated or annoyed. We didn’t want the fathers to release their anger on kids. We conducted several awareness campaigns and through the gram panchayats help we arranged financial assistance for children’s education and household needs,” adds Lodhi.
Undertaking such serious issues is not an easy task given that Lodhi has to juggle it with his studies. He is presently in Class 11 and hopes to pursue a degree in MBBS or agriculture.
“My ultimate aim is to scale up my initiatives at the national level and help every child who wants to study”, he concludes.
We bring stories straight from the heart of India, to inspire millions and create a wave of impact. Our positive movement is growing bigger everyday, and we would love for you to join it.
Please contribute whatever you can, every little penny helps our team in bringing you more stories that support dreams and spread hope.
| english |
import os
from argparse import ArgumentParser
from pathlib import Path
from general_utils import split_hparams_string, split_int_set_str
# from tacotron.app.eval_checkpoints import eval_checkpoints
from tacotron.app import (DEFAULT_MAX_DECODER_STEPS, continue_train, infer,
plot_embeddings, train, validate)
from tacotron.app.defaults import (DEFAULT_MCD_NO_OF_COEFFS_PER_FRAME,
DEFAULT_REPETITIONS,
DEFAULT_SAVE_MEL_INFO_COPY_PATH,
DEFAULT_SEED)
BASE_DIR_VAR = "base_dir"
def init_plot_emb_parser(parser) -> None:
parser.add_argument('--train_name', type=str, required=True)
parser.add_argument('--custom_checkpoint', type=int)
return plot_embeddings
# def init_eval_checkpoints_parser(parser):
# parser.add_argument('--train_name', type=str, required=True)
# parser.add_argument('--custom_hparams', type=str)
# parser.add_argument('--select', type=int)
# parser.add_argument('--min_it', type=int)
# parser.add_argument('--max_it', type=int)
# return eval_checkpoints_main_cli
# def evaeckpoints_main_cli(**args):
# argsl_ch["custom_hparams"] = split_hparams_string(args["custom_hparams"])
# eval_checkpoints(**args)
# def init_restore_parser(parser: ArgumentParser) -> None:
# parser.add_argument('--train_name', type=str, required=True)
# parser.add_argument('--checkpoint_dir', type=Path, required=True)
# return restore_model
def init_train_parser(parser: ArgumentParser) -> None:
parser.add_argument('--ttsp_dir', type=Path, required=True)
parser.add_argument('--train_name', type=str, required=True)
parser.add_argument('--merge_name', type=str, required=True)
parser.add_argument('--prep_name', type=str, required=True)
parser.add_argument('--warm_start_train_name', type=str)
parser.add_argument('--warm_start_checkpoint', type=int)
parser.add_argument('--custom_hparams', type=str)
parser.add_argument('--weights_train_name', type=str)
parser.add_argument('--weights_checkpoint', type=int)
parser.add_argument('--map_from_speaker', type=str)
parser.add_argument('--map_symbol_weights', action='store_true')
parser.add_argument('--use_weights_map', action='store_true')
return train_cli
def train_cli(**args) -> None:
args["custom_hparams"] = split_hparams_string(args["custom_hparams"])
train(**args)
def init_continue_train_parser(parser: ArgumentParser) -> None:
parser.add_argument('--train_name', type=str, required=True)
parser.add_argument('--custom_hparams', type=str)
return continue_train_cli
def continue_train_cli(**args) -> None:
args["custom_hparams"] = split_hparams_string(args["custom_hparams"])
continue_train(**args)
def init_validate_parser(parser: ArgumentParser) -> None:
parser.add_argument('--train_name', type=str, required=True)
parser.add_argument('--entry_ids', type=str, help="Utterance ids or nothing if random")
parser.add_argument('--speaker', type=str, help="ds_name,speaker_name")
parser.add_argument('--ds', type=str, help="Choose if validation- or testset should be taken.",
choices=["val", "test"], default="val")
parser.add_argument('--custom_checkpoints', type=str)
parser.add_argument('--full_run', action='store_true')
parser.add_argument('--max_decoder_steps', type=int, default=DEFAULT_MAX_DECODER_STEPS)
parser.add_argument('--copy_mel_info_to', type=str, default=DEFAULT_SAVE_MEL_INFO_COPY_PATH)
parser.add_argument('--custom_hparams', type=str)
parser.add_argument('--select_best_from', type=str)
parser.add_argument('--mcd_no_of_coeffs_per_frame', type=int,
default=DEFAULT_MCD_NO_OF_COEFFS_PER_FRAME)
parser.add_argument('--fast', action='store_true')
parser.add_argument('--repetitions', type=int, default=DEFAULT_REPETITIONS)
parser.add_argument('--seed', type=int, default=DEFAULT_SEED)
return validate_cli
def validate_cli(**args) -> None:
args["custom_hparams"] = split_hparams_string(args["custom_hparams"])
args["entry_ids"] = split_int_set_str(args["entry_ids"])
args["custom_checkpoints"] = split_int_set_str(args["custom_checkpoints"])
validate(**args)
def init_inference_parser(parser: ArgumentParser) -> None:
parser.add_argument('--train_name', type=str, required=True)
parser.add_argument('--text_name', type=str, required=True)
parser.add_argument('--speaker', type=str, required=True, help="ds_name,speaker_name")
parser.add_argument('--utterance_ids', type=str)
parser.add_argument('--custom_checkpoint', type=int)
parser.add_argument('--custom_hparams', type=str)
parser.add_argument('--full_run', action='store_true')
parser.add_argument('--max_decoder_steps', type=int, default=DEFAULT_MAX_DECODER_STEPS)
parser.add_argument('--seed', type=int, default=DEFAULT_SEED)
parser.add_argument('--copy_mel_info_to', type=str, default=DEFAULT_SAVE_MEL_INFO_COPY_PATH)
return infer_cli
def infer_cli(**args) -> None:
args["custom_hparams"] = split_hparams_string(args["custom_hparams"])
args["utterance_ids"] = split_int_set_str(args["utterance_ids"])
infer(**args)
def add_base_dir(parser: ArgumentParser) -> None:
assert BASE_DIR_VAR in os.environ.keys()
base_dir = Path(os.environ[BASE_DIR_VAR])
parser.set_defaults(base_dir=base_dir)
def _add_parser_to(subparsers, name: str, init_method) -> None:
parser = subparsers.add_parser(name, help=f"{name} help")
invoke_method = init_method(parser)
parser.set_defaults(invoke_handler=invoke_method)
add_base_dir(parser)
return parser
def _init_parser():
result = ArgumentParser()
subparsers = result.add_subparsers(help='sub-command help')
_add_parser_to(subparsers, "train", init_train_parser)
_add_parser_to(subparsers, "continue-train", init_continue_train_parser)
_add_parser_to(subparsers, "validate", init_validate_parser)
_add_parser_to(subparsers, "infer", init_inference_parser)
# _add_parser_to(subparsers, "eval-checkpoints", init_taco_eval_checkpoints_parser)
_add_parser_to(subparsers, "plot-embeddings", init_plot_emb_parser)
#_add_parser_to(subparsers, "restore", init_restore_parser)
return result
def _process_args(args) -> None:
params = vars(args)
invoke_handler = params.pop("invoke_handler")
invoke_handler(**params)
if __name__ == "__main__":
main_parser = _init_parser()
received_args = main_parser.parse_args()
_process_args(received_args)
| python |
<filename>src/Modules/Search/Epics/getLogsEpic.js
import { of } from 'rxjs';
import { filter, switchMap, mergeMap, catchError, tap } from 'rxjs/operators';
import { ofType } from 'redux-observable';
import { anyCredentials } from 'Modules/Account/Epics/accountUtils';
import { emptyAction } from 'Modules/Shared/Actions';
import { accountActionTypes } from 'Modules/Account/Actions';
import {
setLogsAction,
searchActionTypes,
loadingAction,
AUTOREFRESH_GET_LOGS_SOURCE
} from 'Modules/Search/Actions';
import { AuthenticationType } from 'Modules/Account/Models';
import { setApiKeyCredentialsAction } from 'Modules/Account/Actions/ApiKey';
import { handleError } from 'Modules/Shared/Epics/handleError';
export const getLogsEpic = (action$, state$, { inject }) => {
const applicationInsightsClient = inject('ApplicationInsightsClient');
const domUtils = inject('DomUtils');
return action$
.pipe(
ofType(searchActionTypes.GET_LOGS, accountActionTypes.PROFILE_LOADED),
filter(action => getLogsFilter(state$)),
switchMap(action => {
// force scroll search is done by user or it is already at the end of scroll
const forceScrollEnd = hasToScroll(action, domUtils);
const state = state$.value;
return applicationInsightsClient.getLogs(state.account, state.search.query, state.search.searchPeriod)
.pipe(
mergeMap(logs => of(
setLogsAction(logs),
setCredentialsAction(state, logs.appName))
),
catchError(err => {
let reason = (typeof (err) === 'string' ? err : err.message) || 'Error when getting logs';
return handleError(err, action, reason, state);
}),
tap(() => {
if (forceScrollEnd) {
domUtils.scrollBottom('.ail-body');
}
})
);
})
)
;
}
export const loadingEpic = (action$, state$) => {
return action$
.pipe(
ofType(searchActionTypes.GET_LOGS, accountActionTypes.PROFILE_LOADED),
filter(action => getLogsFilter(state$)),
switchMap(action => {
return of(loadingAction(true, action.payload.source));
})
)
;
}
function getLogsFilter(state$) {
const state = state$.value;
return anyCredentials(state.account);
}
function hasToScroll(action, domUtils) {
return action.payload.source !== AUTOREFRESH_GET_LOGS_SOURCE ||
domUtils.isScrollEnd('.ail-body');
}
function setCredentialsAction(state, appName) {
return state.account.authenticationType === AuthenticationType.apiKey ?
setApiKeyCredentialsAction(state.account.apiKey.appId, state.account.apiKey.apiKey, appName) :
emptyAction()
} | javascript |
Finland is known to be the happiest country in the world. And rightly so! With a wonderful destination like Rovaniemi – popularly known for its Santa Village, this beautiful town is a must-visit if you are traveling to the country.
With my mom being a Christian, we used to celebrate Christmas and I can tell you that I was the most excited among my siblings to decorate our Christmas tree and wait for my gift from Santa Claus. Thus, visiting Rovaniemi proved to be worth of all my childhood dreams!
I not only got to meet Santa Claus, but played in snow, got a driving license to ride a reindeer and snowmobiled among snow-forests! It was literally like a magical experience out of a story-book! Topping the charts of the dreamiest vacations of all, I totally vouch for travelers to experience Finland during winters.
Keep Exploring :)
| english |
116/7 (17. 0 ov)
119/4 (16. 1 ov)
172/7 (20. 0 ov)
157 (20. 0 ov)
Ajinkya Rahane has been in excellent form with the bat of late.
Rajeev Shukla feels Ravi Shastri's approach and strategy is praiseworthy.
The date for the hearing at the apex court is yet to be decided.
Afridi doesn't see a reason for Pakistan to push for a series with India when the latter is reluctant.
The BCCI President was taken to the BM Birla Heart Research Institute for coronary angiography.
BCCI President was admitted after experiencing chest pain for over six hours. He has a medical history of acute coronary syndrome.
Dalmiya was immedialtely rushed to a hospital in Kolkata, where he underwent a heart surgey.
The 75-year-old has been admitted to the city's BM Birla Hospital.
Jagmohan Dalmiya was rushed to the BM Birla heart Research Institute by the family members. | english |
A Delhi court Tuesday took cognisance of the offence of sedition against 18 persons, arrested under the stringent anti-terror law Unlawful Activities (Prevention) Act in a north east Delhi riots case, after the requisite sanctions were filed by the concerned authorities.
Additional Sessions Judge Amitabh Rawat took cognisance of the offences under sections 124 A (sedition), 153-A (promoting enmity on the grounds of religion, language, caste etc), 109 (abetment) and 120-B (criminal conspiracy) of the IPC after the requisite sanction was filed in a second supplementary charge sheet against all the accused.
The court had earlier deferred the issue of taking cognisance for the offences against Pinjra Tod members and JNU students Devangana Kalita and Natasha Narwal, Jamia Millia Islamia students Asif Iqbal Tanha, Gulfisha Khatoon, former Congress Councillor Ishrat Jahan, Jamia Coordination Committee members Safoora Zargar and Meeran Haider.
Shafa-Ur-Rehman, suspended AAP Councillor Tahir Hussain, activist Khalid Saifi, Shadab Ahmed, Tasleem Ahmed, Salim Malik, Mohd Salim Khan, Athar Khan, JNU student Sharjeel Imam, former JNU student leader Umar Khalid and Faizan have also been charge sheeted in the case.
The court had earlier taken cognisance of the offences under sections 13 (unlawful activities), 16 (terrorist act), 17 (raising funds for terrorist act), 18 (conspiracy) of the UAPA and various sections of the IPC including, 147 and 148 (rioting), 149 (unlawful assembly), 186 (instructing public servant), 201 (disappearance of evidence).
The accused have been charge sheeted for allegedly being part of a premeditated conspiracy in the riots.
The maximum punishment for the offence of sedition is life sentence.
The court said the supplementary charge sheet should be supplied to all the accused persons in pendrive and put up the matter for further hearing on March 12.
Communal violence had broken out in northeast Delhi on February 24 after clashes between citizenship law supporters and protesters spiralled out of control leaving at least 53 people dead and around 200 injured. | english |
1 Pailet eri ale Sises oh wokih. 2 Sounpei ko eri pidahda mware elen tek oh kidahng pohn kadokenmai, oh kapwatahkihda likou pohntahnmwel. 3 Re ahpw keiong mpe oh ndinda, “Ihong! Nanmwarkien mehn Suhs akan!” Re ahpw kin pohr.
Ahpw Sises sohte ketin sapeng.
11 Sises ahpw ketin sapeng, mahsanih, “Sohte mwahn omwi manaman pohi, ma e sohte mweiong komwi sang powe. Ihme kahrehda dipen ih me pangiedohng komwi me laudsang dipomwi.” Kupw. 6.3.
13 Ni Pailet eh rongada lokaia pwukat, e ahpw kapedoi Sises sang nan tehnpese, oh ketidi pohn mwoalen kadeik ni wasa me adaneki “Tat Takai.” (A ni mahsen en Ipru, “Kappada.”)
16 Pailet eri pangala Sises rehrail, pwe re en kalohpwuwehla.
23 Ni sounpei ko ar kalohpwuwelahr Sises, re ahpw ale sapwellime likou ko oh wiahkihda pwais pahieu, ehuehu pwais ong emenemen sounpei ko. Re pil ale sapwellime likou reirei me sohte deideipene. 24 Irail eri ndapene nanpwungarail, “Kitail dehr tehrpeseng likou wet, a kitail usuhski ihs me pahn ahneki.” Met wiawiher pwe mahsen en Pwuhk Sarawi en pweida:
“Irail nehkpeseng ei likou ko nanpwungarail,
re pil usuhski ei likou puhp.” Mel. 22.18.
oh sounpei ko me wiahda met.
27 Oh e pil mahsanihong tohnpadahko, “Kilang inomwen!” Eri, sang ni ahnsowohte kohla tohnpadahko ahpw kahrelahng liho ni imwe pwe en kousoan reh.
28 Mwurin mepwukat, Sises lao mwahngiher me mehkan koaros pweidahr, e ahpw mahsanih, “I men nimpildahr!” Pwe mahsen en Pwuhk Sarawi en pweida. Mel. 69.21; 22.15.
Ih eri kamwatawihedi kadokenmai oh ketin kadarala ngene.
31 Eri, rahno Nialem ehu; ihme kahrehda kaunen mehn Suhs ko peki rehn Pailet pwe nehn me kahlopwuwalahro ko en katipwitimwpeseng oh re en wisiksang nin lohpwu ko, pwe kahleparail en dehr langalang ni rahnen Sapad, pwe rahnen Sapado, iei rahn sarawi lapalap ehu. 32 Sounpei ko eri kohla oh katimpeseng nehn emen mahs, oh mwuhr pil nehn emen me iang lohpwuwalahr. 33 Ni ar keiong mpen Sises, oh kilangada me e pwoulahr, re ahpw sohte katimpeseng aluweluwe kan. 34 Sounpei men ahpw doakoahki ketieu pwoat pengepenge; eri, nta oh pihl ahpw mwadangete kusieisang. 35 (Ohlo me kilangehr mepwukat, e ahpw kadehdedahr, oh eh kadehde me mehlel; e ese me eh koasoi me mehlel, pwe kumwail en pil pwoson.) 36 Eri, met wiawiher pwe mahsen en Pwuhk Sarawi en pweida: “Sohte tih pwoat reh pahn katipwitimwpeseng.” Eks. 12.46; Nempe 9.12; Mel. 34.20. 37 Oh pil ehu ire tikitik en Pwuhk Sarawi me mahsanih, “Irail pahn kangkakil me re doakoadiero.” Sek. 12.10; Kaud. 1.7.
38 Sosep, mehn Arimadea, iei ih pil tohnpadahk en Sises men, ahpw ni rir, pwehki eh masak kaunen mehn Suhs ko. Eri, mwurin met, e pekihda rehn Pailet pwe en wahlahsang kahlepen Sises. Ni Pailet eh mweidohngehr, e ahpw kohla wahsang kahlepeo. 39 Nikodihmus, ohl me kohla rehn Sises ehu pwohngo, e pil iang Sosep kohla, e wa leh pwohmwahu me doalkipene mir oh alos, me ele paun epwiki. Sohn 3.1-2. 40 Ira eri ale kahlepen Sises oh kidimkipene likou linen kei, iangahki leh pwohmwahu ko, duwen tiahk en mehn Suhs ako, ni arail kin sarepedi me melahr akan. 41 Mwetuwel ehu mie wasao me irail kalohpwuwehla ie Sises, oh sousou kapw ehu mie nan mwetuwelo, me saikinte emen seridi ie. 42 Iei wasao me re nekidedi ie Sises, pwehki eh keren, oh pwehki rahno, iei rahn mwohn en mehn Suhs ako arail rahnen Sapad.
| english |
<filename>dataset/camera_specs/2013_camera_specs/buy.net/6032.json
{
"<page title>": "Samsung WB2200F Black Digital Camera (16.4 MP, 60x Opt, SDHC/SDXC Card Slot) Price Comparison at Buy.net",
"camera type": "Point & Shoot Digital Camera",
"depth": "4.1 in",
"digital zoom": "2 X",
"effective megapixels": "16400000 pixels",
"flash": "Built-in Flash|Accessory Shoe",
"focal length": "3.58 mm to 214.8 mm",
"focal length 35mm equivalent": "20 mm to 1200 mm",
"height": "4.8 in",
"image sensor": "CMOS",
"image stabilization": "Optical",
"installed memory": "17 MB",
"interface connection": "USB|Video - Out (Unspecified)|HDMI|Audio - Line Out (1/8\" Mini)",
"lcd screen size": "3 in",
"max aperture": "2.8 1/f",
"maximum video capture resolution": "1920 x 1080",
"memory card support": "Secure Digital High Capacity (SDHC) Card|Secure Digital Extended Capacity (SDXC)",
"optical zoom": "60 X",
"url": "http://www.samsung.com/us/photography/digital-cameras/EC-WB2200BPBUS",
"warranty information": "1 year(s)",
"weight": "1.4 lbs",
"width": "4.7 in",
"wifi": "Yes"
} | json |
Here is a good news for all the fans of television couple Ridheema Tiwari and Jaskaran Singh Gandhi as the couple ties the knot yesterda at a suburban hotel in Mumbai.
The pre-wedding functions had kicked off with the mehndi ceremony on Wednesday.
In the pic, Ridheema looks gorgeous in a sea pink and blue lehenga. While, Jaskaran looked handsome in off-white sherwani with pink turban.
The duo have been dating for the last two years and they confirmed their relationship on social media in feburary this year.
The couple first met on the sets of Life OK’s Do Dil Ek Jaan where Ridheema played Rasika while Jaskaran was seen as Machmach.
Our heartiest congratulations to the couple!
| english |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.