text stringlengths 1 1.04M | language stringclasses 25 values |
|---|---|
We are soldiers of King Jesus,
Clad in armor bright;
And we follow where He leads us,
Fighting for the right.
Marching, marching ever onward,
’Neath His banner so bright,
We are soldiers of King Jesus,
Fighting for the right.
We are soldiers of King Jesus,
He’s our Captain true,
And whatever He shall bid us,
We will gladly do.
We are soldiers of King Jesus,
We’re a loyal band;
We are bold, and brave, and fearless,
True to His command.
We are soldiers of King Jesus;
Tho’ the fight be long,
We shall share the victor’s triumph,
Sing the victor’s song.
Terima kasih untuk bantuannya. Link sudah kami terima. Kami akan memprosesnya terlebih dahulu.
| english |
package com.qtimes.pavilion.delegate;
/**
* 统一管理Delegate
* Created by liutao on 2017/1/14.
*/
public class BaseDelegateManager implements BaseDelegate {
private BaseDelegate delegates[];
private boolean isRegister;
public BaseDelegateManager(BaseDelegate... delegates) {
this.delegates = delegates;
}
@Override
public void register() {
if (isRegister) {
return;
}
if (delegates != null && delegates.length > 0) {
for (BaseDelegate delegate : delegates) {
if (delegate != null) {
delegate.register();
}
}
}
isRegister = true;
}
@Override
public void unRegister() {
if (delegates != null && delegates.length > 0) {
for (BaseDelegate delegate : delegates) {
if (delegate != null) {
delegate.unRegister();
}
}
}
}
}
| java |
Forest fires have been increasing across the globe and over 2. 56 lakh hectare land in India has been affected by it in 2019 as reported by states, the environment ministry informed Lok Sabha on Wednesday. In a written response to a query, Minister of State for Environment Babul Supriyo said most of the fires in the country are ground fires in which vegetation gets burnt and an amount of Rs 47 crore has been released to states under the Forest Fires Prevention and Management Scheme for 2019-20.
“As regards India, an area of 2,56,710 ha has been affected by fire in 2019 as reported by the States. Most forest fires in the country are ground fires in which ground vegetation, etc. get burnt. The number of incidents of forest fire in the country varies from year to year depending on various natural and anthropogenic reasons," he said. In the last three years, a total of Rs 142 crore have been released to states on account of fire prevention, out of which Rs 45. 25 crore were released in 2017-18, Rs 50 crore in 2018-19 and Rs 47 crore in 2019-20, the minister said, adding that the numbers of fire alerts sent by the Forest Survey of India to various states and union territories were 29,547 during 2018-19 and 22,447 during 2019-20.
The minister, while responding to another question on the special arrangements formulated under the Forest Fire Prevention and Management Scheme, said that the responsibility of forest fire prevention and management lies primarily with respective state governments. “As forests are managed by State Forest Departments, the responsibility of forest fire prevention and management lies primarily with the respective State Governments. The Ministry supports the efforts of State Governments/Union Territory Administrations in prevention and control of forest fire by providing financial assistance for various forest fire prevention and management measures, the minister said.
The measures include creation and maintenance of fire lines in forest areas, engagement of fire watchers, creation of water storage structures in forest areas, strengthening of forest infrastructure, procurement of firefighting equipment, soil and moisture conservation works in high risk areas, awareness creation, incentivizing villages/communities for protection against forest fire etc. under the Centrally Sponsored Forest Fire Prevention and Management Scheme. State Governments prepare Annual Plan of Operation for prevention and management of forest fire under this centrally sponsored scheme and funds are released as per the Central Sponsored Scheme Guidelines, the minister said.
He said that the scheme provides for preparation of fire danger rating system and forest fire forecasting system. The States/UTs are provided satellite based forest fire alerts on a near real time basis. In addition members of Joint Forest Management Committee, Eco-Development Committees, NGOs, volunteers, etc also get forest fire alerts in their registered mobile numbers. Till date around 1, 01, 550 users have been registered to receive fire alerts from the Forest Survey of India, he said.
The minister also told the House that as reported in Forest Fire Management: Global Best Practices, a compendium prepared by the National Disaster Management Authority, forest fires across the globe are increasing. Large areas of forest fires have been reported in many countries including in Australia, Brazil, California and Canada. In 2018, fires burned through 1. 8 million acres in California, USA. The Amazon saw more than 80,000 forest fires in 2019, an increase of 75 per cent from 2018," the minister said.
“The Australian State of Forest Report 2018 mentions that annual area of fire in Australia’s forests in the period 2011-12 to 2015-16 varied from a high value 27. 4 million hectare in 2012-13 to a low value of 14. 9 million hectare in 2015-16. Cumulative area affected by fire in the period is 106 million hectare. In 2018, there were more than 7,000 forest fires in Canada, burning almost 2. 3 million hectare of forest, the minister added. (This story has not been edited by News18 staff and is published from a syndicated news agency feed - PTI) | english |
Top medical schools are cutting out cadavers from their curriculums, dismaying traditionalists who insist every future doctor needs to poke around a dead person before touching a live one.
But administrators say their students are just too overloaded to take on the tedious chore of dissecting a human body.
"Digging through fat, getting around bone, getting under skin -- these days that's considered too much work," said Robert Trelease, director of integrative anatomy at the University of California at Los Angeles.
This fall, first-year medical students at UCLA will spend about 40 percent less time cutting open bodies in gross anatomy classes. Just up the coast, dissection has been eliminated entirely since 2001 for first-year students at the University of California at San Francisco. Instead, students examine pre-dissected bodies and body parts without picking through skin, fat and connective tissue.
"It's a better way to teach anatomy, something that's more efficient and more effective," said Hugh "Pat" Patterson, adjunct professor of anatomy at UCSF. "Do I want to take a student who's going into ear, nose and throat and have them dissect the foot? Is that something that's really useful for that student? They'll know the foot better, but I doubt that someone going into (ear, nose and throat) is going to use that information."
But a pre-dissected body is nothing more than a "museum specimen," said Mark Whitehead, head of the division of anatomy at the University of California at San Diego.
"They keep them in storage and preserve them and then trot them out and allow the students to see the structures that were previously dissected," Whitehead said.
When medical students dissect bodies themselves, they "actually see the structure and how things are put together," said Richard Drake, director of the gross anatomy course at the University of Cincinnati.
And while UCSF's Patterson considers the "fumbling around" in dissection to be a waste of time, others say the classes allow students to learn on their own, a rare opportunity in the top-to-bottom world of medical school.
"It's sort of like if you were training someone to be an auto mechanic," UCLA's Trelease said. "What would be a good training, having them read a manual and watch a videotape or spend their time taking apart an engine and putting it back together?"
Cost is also an issue. Even though people donate their bodies to medical schools for free, administrators must find the money to embalm and store the corpses. Patterson estimates that the UCSF medical school spends about $1,700 on each one. (The campus still uses fresh cadavers for research and training for surgeons.)
Time constraints also are fueling the decline of dissection. "The curriculum in many medical schools has become crowded, and older courses have been cut back to make room for molecular biology and genetics. The easiest to cut back are those with a lot of lab time, and gross anatomy is a prime candidate," said N. Barry Berg, coordinator for gross anatomy at State University of New York's Upstate Medical University in Syracuse.
In fact, the anatomy classes at his campus were cut by 40 percent recently, Berg said.
To make matters more complicated, many anatomy teachers are retiring, and future professors are losing interest in the field, Berg said.
As the number of teachers begins to dwindle, medical schools are turning to technology to help students learn about anatomy. Some professors dream of a day when future doctors will be able to dissect bodies with the assistance of virtual reality. Scientists in Colorado already have digitized the bodies of a dead man and woman as part of the Visible Human Project.
But for now, "there is no computerized cadaver," Whitehead said. And computers can't replace the feeling of touching -- or coping with -- a body that was once alive.
As part of a trend toward encouraging sensitivity, several medical schools hold memorial services for the cadavers they use. Family members often attend.
Medical schools also use cadavers to teach more than anatomy.
"We have a lecture on death and dying that we give before students meet the cadaver, recognizing that some may not have encountered death in their young lives up to that point," said William Swartz, director of gross anatomy at Louisiana State University's Health Sciences Center in New Orleans.
Then the future doctors move on to the anatomy lab where the dead bodies await. "We introduce them," Swartz said, "as their first patient."
Dr. Aibo, You're Wanted in O.R.
| english |
<gh_stars>10-100
import React from 'react';
import Dashboard from './Dashboard';
import { render } from '../../test';
it('renders without crashing', () => {
render(<Dashboard />);
});
| javascript |
Two decades into the 21st Century, it seems nearly impossible to imagine that Microsoft was once the undisputed champion of the World Wide Web. The journey from absolute dominance to also-ran has been a slow and steady succession of missteps, complicated by aggressive antitrust regulators on two continents and relentless competition.
This week, Microsoft unveiled the public beta of its latest browser reboot, a new version of Microsoft Edge based on the open-source Chromium codebase. If history is any guide, the odds of its success are low.
Consider this timeline:
That's the third reboot for Microsoft's web platform in less than a decade. Normally, that's a sign of an organization that's flailing rather than one that's confidently moving forward. But maybe this time's different.
For starters, this is the first cross-platform release of a Microsoft browser in nearly two decades. The new Edge is available not just on Windows 10 but on older versions of Windows, on the Mac, and on Android and iOS, (Microsoft declined to comment on its plans for a Linux version but wouldn't rule out the possibility.)
That has the potential to solve Microsoft's biggest problem, which is that users running something other than Windows 10 don't currently have the option to run a modern browser from Microsoft. That includes the extremely influential web developer community, which generally prefers Macs, as well as corporations that continue to run on Windows 7.
The results in terms of browser usage are dire. According to the most recent stats from the U.S. Government's Digital Analytics Program, less than 16% of traffic from Windows 10 PCs comes through Microsoft Edge, and even Internet Explorer has a higher share of usage. That's down significantly from the 20% share Edge had on Windows 10 PCs in 2017. Meanwhile, Chrome's usage share on Windows 10 is above 60%.
Still, making it possible for desktop computer users to switch browsers and giving them a reason to do so are two different things. And the barriers to adoption are significant.
By keeping the Microsoft Edge brand instead of changing the name of the browser, Microsoft might be shooting itself in the foot. Counting on busy IT pros and web developers to understand the difference between the old Edge and the new is a big ask, especially when the alternative is easy: Just install Chrome.
Likewise, developers have every right to be skeptical that this time things will be different. Older devs who remember the pain of coding for compatibility with Internet Explorer probably want to wash their hands of the whole mess, and those who enthusiastically embraced either of the prior two reboots are no doubt giving some serious side-eye to Redmond.
The biggest change in the landscape, and one that might benefit Microsoft going forward, is the increasing attention that Google is getting for its privacy practices and policies. In theory, Microsoft could offer the best of both worlds, with a browser that is a near-perfect clone of Chrome without the privacy baggage.
But crafting that message and then delivering it successfully are two completely different challenges. Microsoft tried this once before, with the disastrous "Don't get Scroogled" ad campaign, which applied the mudslinging techniques of American political campaigns to Microsoft's core competitive relationship with Google.
Maybe this time is different. Maybe Google is ready to be knocked off its perch and maybe an eager world is ready once again to embrace a Microsoft browser on the desktop.
But don't hold your breath.
| english |
extern crate proc_macro;
extern crate syn;
#[macro_use]
extern crate quote;
use proc_macro::TokenStream;
use syn::*;
mod enum_data;
mod variant_data;
mod generics;
/// Generates the `PrefixOpt` impl.
#[proc_macro_derive(PrefixOpt, attributes(prefixopt))]
pub fn prefixopt(input: TokenStream) -> TokenStream {
let s = input.to_string();
let ast = syn::parse_derive_input(&s).unwrap();
let gen = impl_prefixopt(ast);
gen.parse().unwrap()
}
fn impl_prefixopt(ast: DeriveInput) -> quote::Tokens {
let ref ident = ast.ident;
let generics = generics::with_prefixopt_constraints(ast.generics);
let tokens = match ast.body {
syn::Body::Struct(_struct) => variant_data::derive(&generics, ident, &_struct),
syn::Body::Enum(_enum) => {
let generics = generics::with_default_constraints(generics);
enum_data::derive(&generics, ident, &_enum)
},
};
tokens
}
| rust |
export enum HeroType {
Mining,
Offerwall,
ReferralEntry,
}
| typescript |
{
"name": "plusastab",
"title": "PlusAsTab",
"description": "A jQuery plugin to use the numpad plus key (configurable) as a tab key equivalent.",
"keywords": [
"tab",
"tabbing",
"usability",
"focus",
"keyboard",
"shortcuts",
"tabbable",
"form",
"forms",
"input",
"tabindex",
"numpad",
"tenkey"
],
"version": "0.2.2",
"author": {
"name": "The Swedish Post and Telecom Authority (PTS)",
"url": "https://pts.se/"
},
"maintainers": [{
"name": "<NAME>",
"email": "<EMAIL>",
"url": "https://joelpurra.com/"
}],
"licenses": [{
"type": "BSD-3-Clause",
"url": "https://github.com/joelpurra/plusastab/blob/master/LICENSE"
}],
"homepage": "https://joelpurra.com/projects/plusastab/",
"docs": "https://joelpurra.com/projects/plusastab/",
"bugs": "https://github.com/joelpurra/plusastab/issues",
"demo": "https://joelpurra.com/projects/plusastab/docs/example/enter-as-tab.html",
"dependencies": {
"jquery": "^2.0.0",
"emulatetab": "^0.2.9"
}
}
| json |
/**
* Unit Tests for TicTacToeBoard
**/
#include <gtest/gtest.h>
#include "TicTacToeBoard.h"
class TicTacToeBoardTest : public ::testing::Test
{
protected:
TicTacToeBoardTest(){} //constructor runs before each test
virtual ~TicTacToeBoardTest(){} //destructor cleans up after tests
virtual void SetUp(){} //sets up before each test (after constructor)
virtual void TearDown(){} //clean up after each test, (before destructor)
};
TEST(TicTacToeBoardTest, sanityCheck)
{
ASSERT_TRUE(true);
}
TEST(TicTacToeBoardTest, outofbounds)
{
TicTacToeBoard x;
int result = x.placePiece(5,5);
ASSERT_EQ(result, Invalid);
}
TEST(TicTacToeBoardTest, place)
{
TicTacToeBoard x;
int result = x.placePiece(1,1);
ASSERT_EQ(result, X);
}
TEST(TicTacToeBoardTest, invalid)
{
TicTacToeBoard x;
int result = x.getPiece(2,2);
ASSERT_EQ(result, Blank);
}
TEST(TicTacToeBoardTest, notover)
{
TicTacToeBoard x;
int result = x.getWinner();
ASSERT_EQ(result, Invalid);
}
| cpp |
#!/usr/bin/env python3
# std
from pathlib import Path
import unittest
# 3rd
import numpy as np
# ours
from clusterking.util.testing import MyTestCase
from clusterking.data.dwe import DataWithErrors
class TestDataWithErrors(MyTestCase):
def setUp(self):
dpath = Path(__file__).parent / "data" / "test.sql"
self.data = [[100.0, 200.0], [400.0, 500.0]]
self.dwe = DataWithErrors(dpath)
def ndwe(self):
return self.dwe.copy(deep=True)
def test_empty(self):
dwe = self.ndwe()
self.assertEqual(dwe.abs_cov.shape, (2, 2))
self.assertAllClose(dwe.rel_cov, np.zeros((2, 2)))
self.assertFalse(dwe.poisson_errors)
def test_data_no_errors(self):
dwe = self.ndwe()
self.assertAllClose(dwe.data(), self.data)
self.assertAllClose(
dwe.data(normalize=True), [[1 / 3, 2 / 3], [4 / 9, 5 / 9]]
)
all_zero = np.zeros((2, 2))
unit = np.eye(2)
self.assertAllClose(dwe.rel_cov, all_zero)
self.assertAllClose(dwe.abs_cov, all_zero)
self.assertAllClose(dwe.cov(), all_zero)
self.assertAllClose(dwe.corr(), unit)
# -------------------------------------------------------------------------
def test_reset_errors(self):
dwe = self.ndwe()
cov = [[4.0, 4.0], [4.0, 16.0]]
dwe.add_err_cov(cov)
dwe.add_err_corr(1, np.identity(2))
dwe.add_err_uncorr(0.3)
dwe.add_err_poisson(normalization_scale=25)
dwe.reset_errors()
self.assertEqual(np.count_nonzero(dwe.cov()), 0)
self.assertEqual(np.count_nonzero(dwe.abs_cov), 0)
self.assertEqual(np.count_nonzero(dwe.rel_cov), 0)
self.assertFalse(dwe.poisson_errors)
self.assertEqual(dwe.poisson_errors_scale, 1.0)
self.assertAllClose(
dwe.corr(), np.tile(np.eye(dwe.nbins), (dwe.n, 1, 1))
)
def test_add_err_cov(self):
dwe = self.ndwe()
# Equal for all data points
cov = [[4.0, 4.0], [4.0, 16.0]]
dwe.add_err_cov(cov)
self.assertAllClose(dwe.cov(), cov)
self.assertAllClose(dwe.corr(), [[1.0, 1 / 2], [1 / 2, 1.0]])
self.assertAllClose(dwe.err(), [2.0, 4.0])
def test_add_err_corr(self):
dwe = self.ndwe()
dwe.add_err_corr(1, np.identity(2))
self.assertAllClose(dwe.corr(), np.identity(2))
corr = [[1.0, 0.32], [0.4, 1.0]]
dwe = self.ndwe()
dwe.add_err_corr(1.0, corr)
self.assertAllClose(dwe.corr(), corr)
self.assertAllClose(dwe.err(), 1)
dwe = self.ndwe()
err = [1.52, 2.34]
dwe.add_err_corr(err, corr)
self.assertAllClose(dwe.err(), err)
self.assertAllClose(dwe.corr(), corr)
dwe.add_err_corr(err, corr)
self.assertAllClose(dwe.corr(), corr)
def test_add_err_uncorr(self):
dwe = self.ndwe()
dwe.add_err_uncorr(0.3)
self.assertAllClose(dwe.corr(), np.identity(2))
self.assertAllClose(dwe.err(), 0.3)
dwe = self.ndwe()
err = [0.3, 1.5]
dwe.add_err_uncorr(err)
self.assertAllClose(dwe.corr(), np.identity(2))
self.assertAllClose(dwe.err(), err)
def test_add_err_maxcorr(self):
dwe = self.ndwe()
dwe.add_err_maxcorr(0.3)
self.assertAllClose(dwe.corr(), np.ones((2, 2, 2)))
self.assertAllClose(dwe.err(), 0.3)
dwe = self.ndwe()
err = [0.3, 1.5]
dwe.add_err_maxcorr(err)
self.assertAllClose(dwe.corr(), np.ones((2, 2, 2)))
self.assertAllClose(dwe.err(), err)
# todo: test rel_err
# --------------------------------------------------------------------------
def test_add_err_poisson(self):
dwe = self.ndwe()
dwe.add_err_poisson()
self.assertAllClose(dwe.err(), np.sqrt(self.data))
self.assertAllClose(dwe.err(relative=True), 1 / np.sqrt(self.data))
self.assertAllClose(dwe.corr(), np.eye(len(self.data)))
def test_add_err_poisson_scaled_relative(self):
# Now we increase the statistics by a factor of 4 and expect that the
# Normed errors are reduced by a factor of 2.
dwe1 = self.ndwe()
dwe1.add_err_poisson()
rel_err1 = dwe1.err(relative=True)
dwe2 = self.ndwe()
dwe2.add_err_poisson(normalization_scale=4)
rel_err2 = dwe2.err(relative=True)
self.assertAllClose(rel_err1, rel_err2 * 2)
# --------------------------------------------------------------------------
def test_plot_dist_err(self):
self.dwe.plot_dist_err()
if __name__ == "__main__":
unittest.main()
| python |
Actress and reality star NeNe Leakes clapped back at talk show host Andy Cohen after he mentioned that she wore the same dress twice during an episode of "Watch What Happens Live with Andy Cohen. "
During a chat with singer Ashanti and frequent guest on Leakes' show "The Real Housewives of Atlanta," Cohen, 51, pointed out that Leakes, also 51, wore the same red dress on two separate occasions.
"One of NeNe's confessional looks this year is the same dress she wore to our big doorbell show in LA where the strap broke," said Cohen. "So I guess she fixed her strap, which we love. "
Cohen and his guests laughed as he said: "We just love our eagle-eyed researchers here. Was that shady? "
According to Leakes, the answer to that question is "yes. "
The "Glee" alum shared the clip on Instagram, adding a lengthy caption to express her irritation.
"Can somebody please tell me what was the point of this? Like I don’t get it," said Leakes in the caption. "That was 2 years ago I wore this dress ONCE, so I can’t sit in a confessional with it on @bravoandy How many times have you recycled your suits and ties? "
"Why you care? " she continued. "It’s enough that we #RHOA ladies come for each other and now we have to worry about executives coming for us! No, I mean coming for me! It’s not cool. Wasn't you interviewing those girls? What you mad about? Y’all stay coming for me but soon as I say something or do something I’m wrong. "
She capped off her thoughts with, "I DONT APPRECIATE THIS AT ALL. "
Leakes then shared a second post, showcasing celebrities like Michelle Obama, Kate Middleton and Kim Kardashian wearing repeat outfits.
"Not sure why women who are public figures can't repeat an outfit but these ladies did it fabulously and I will continue to do so whenever I feel like," said Leakes in her caption. "I love my clothes. "
Reps for "Watch What Happens Live" did not immediately respond to Fox News' request for comment. | english |
<reponame>easyandroid-cc/EasyRecyclerView
package cc.easyandroid.easyrecyclerview.core;
import android.view.View;
/**
* Created by cgp
*/
public interface IEasyAdapter extends IEmptyAdapter {
void addFooterViewToLast(View lastFooterView);
void addHeaderViewToFirst(View firstHeaderView);
}
| java |
Restarting work: Arjun, John join the bandwagon!
For nearly five months now, Bollywood – like the rest of the country – hasn’t been at work. But now, slowly, things seem to be moving ahead, with several top names getting back in front of the camera for various professional commitments. While Akshay Kumar has already started shooting for Bell Bottom in the UK, Ayushmann Khurrana has shot for three ad films in Chandigarh. The actor will start shooting for his next film, with filmmaker Abhishek Kapoor, from October onwards.
In the latest instance, Arjun Kapoor and John Abraham (in a cameo) – along with Rakul Preet Singh – are all set to start shooting next week at Filmcity for Nikkhil Advani’s yet-untitled film. Makers had initially planned to wrap up the shoot in March-April itself but the lockdown played spoilsport. “The entire team including Arjun, John and Rakul are excited about restarting work after over four months, knowing fully well that everyone has to restart their lives at some point or the other. They have really missed being on sets for so long,” says an insider from the film production unit.
According to Advani, the “entire team including all the actors is looking forward” to being on the sets. “All the main cast members will be shooting for about 8-10 days. We are going to follow all the safety protocols very strictly. The entire cast-and-crew has already been briefed about it in detail. We all have to think of ways to restart our lives. I am happy that we are going back on the sets,” he says.
Among other biggies who have gotten back to work is Salman Khan, who has shot a few promos for a reality TV series that he hosts. Also, Aamir Khan is shooting for his next, Laal Singh Chaddha in Turkey. Besides, Amitabh Bachchan is apparently readying to start work on the next season of his game show. In October, filmmaker Aanand L Rai also restarts work on his next, Atrangi Re starring Akshay Kumar, Sara Ali Khan and Dhanush. | english |
import pytest
import os
@pytest.fixture
def voila_notebook(notebook_directory):
return os.path.join(notebook_directory, 'sleep.ipynb')
@pytest.fixture
def voila_args_extra():
return ['--VoilaExecutePreprocessor.timeout=1', '--KernelManager.shutdown_wait_time=0.1']
@pytest.mark.gen_test
def test_timeout(http_client, base_url):
response = yield http_client.fetch(base_url)
html_text = response.body.decode('utf-8')
assert 'Cell execution timed out' in html_text
| python |
{"title": "Now where was I?: physiologically-triggered bookmarking.", "fields": ["orienting response", "user control", "bookmarking", "active listening", "skin conductance"], "abstract": "This work explores a novel interaction paradigm driven by implicit, low-attention user control, accomplished by monitoring a user's physiological state. We have designed and prototyped this interaction for a first use case of bookmarking an audio stream, to holistically explore the implicit interaction concept. Here, a user's galvanic skin conductance (GSR) is monitored for orienting responses (ORs) to external interruptions; our prototype automatically bookmarks the media such that the user can attend to the interruption, then resume listening from the point he/she is interrupted. To test this approach's viability, we addressed questions such as: does GSR exhibit a detectable response to interruptions, and how should the interaction utilize this information? In evaluating this system in a controlled environment, we found an OR detection accuracy of 84%; users provided subjective feedback on its accuracy and utility.", "citation": "Citations (5)", "year": "2011", "departments": ["University of British Columbia", "University of British Columbia", "University of British Columbia", "University of British Columbia", "University of British Columbia"], "conf": "chi", "authors": ["<NAME>.....http://dblp.org/pers/hd/p/Pan:Matthew_K=_X=_J=", "<NAME>-<NAME>.....http://dblp.org/pers/hd/c/Chang:Gordon_Jih=Shiang", "<NAME>immetoglu.....http://dblp.org/pers/hd/h/Himmetoglu:Gokhan_H=", "AJung Moon.....http://dblp.org/pers/hd/m/Moon:AJung", "<NAME>.....http://dblp.org/pers/hd/h/Hazelton:Thomas_W=", "<NAME>.....http://dblp.org/pers/hd/m/MacLean:Karon_E=", "<NAME>.....http://dblp.org/pers/hd/c/Croft:Elizabeth_A="], "pages": 10} | json |
package codes.recursive.repository;
import codes.recursive.domain.Reading;
import io.micronaut.data.annotation.Repository;
import io.micronaut.data.repository.PageableRepository;
import io.reactivex.annotations.NonNull;
import java.util.concurrent.CompletableFuture;
@Repository
public interface ReadingRepository extends PageableRepository<Reading, Long> {
CompletableFuture<Reading> saveAsync(@NonNull Reading reading);
}
| java |
<gh_stars>0
{
"profiles": {
"CorsacHats": {
"commandName": "Executable",
"executablePath": "$(AmongUs)\\Among Us.exe"
}
}
} | json |
The participants of the telephone conversation:
Woodward: Hello, Rosell , ol’ chap!
Rosell : Hello, Mr. Ed.
Moyes: HullorRosell !
Rosell : What, Mr. Moyes?
Moyes: I said, HullorRosell !
Rosell : What?
Woodward: You must pardon our new manager’s Scottish accent. He only greets you.
Wenger: Good evening everybody.
Everybody: Good evening, Arsene.
Everybody: Hello, Cesc.
Cesc: Hola, everybody!
Woodward: Good, now that everyone has greeted everyone else, we shall quickly move on to business. Rosell , we need Cesc.
Wenger: Rosell , we need Cesc.
Rosell : Rosell , we need Cesc.
Woodward and Wenger: What?
Rosell : That is how ridiculous it sounds.
Woodward: Enough of these childish games. Rosell , we need Cesc.
Wenger: Rosell , we need Cesc.
Rosell : Rosell , we need Cesc.
Woodward and Wenger: What? Again?
Rosell : I could go on all day, you know. This is fun.
Woodward: Enough of this. How much is it going to cost us, Rosell ?
Rosell : More than you are willing to pay, Woodward.
Woodward: And what are we willing to pay, Rosell ?
Rosell : You tell me, Woodward.
Woodward: 25 million.
Rosell : Ha!
Woodward: 30 million.
Rosell : Tsk tsk.
Wenger: 20 million.
Rosell : Eh?
Wenger: Come on, man! We are Arsenal.
Rosell : You have my sympathies, Arsene. But not my player. Ha ha ha!
Wenger: The joke is on you, Rosell . We have first option on Cesc, remember?
Rosell : Yes. You have first option if Barcelona want to sell Cesc. Now, however, Barcelona does not want to sell. Manchester United wants to buy. There is a difference.
Woodward: 30 million 500 thousand.
Rosell : Yawn!
Woodward: 31 million.
Rosell : Yawn again.
Moyes: Lettimgo Ed.
Woodward: Not after coming this far, David.
Moyes: Cesc der yer wanttar play for Manchester Yonited?
Cesc: Eh? I cannot understand you, Mr. Moyes.
Moyes: Yer cannat understand me, ye?
Cesc: I cannot, Sir.
Moyes: ’twill be perfect then. We will get along jerst fine.
Woodward: Cesc, United is a great club. We have a brilliant tradition. Any player would love to play for United. You should too.
Cesc: Well, I don’t know. You know that I have a history with Arsenal.
Woodward: Have no worries about that, Cesc. We have a history of former Arsenal captains coming to our club and winning titles.
Wenger: Give us Robin van Persie and we will give you Cesc.
Woodward: Cesc is not yours to give, Arsene.
Wenger: But we have first option on him.
Woodward: Rosell , would you please indulge Mr. Wenger?
Moyes: Cesc, I will let yer play anywherr yer want. Even as the goalkeeper.
Moyes: And I will give yer any jersey number yer want. Even mine.
Woodward: There you go, Rosell . Personal terms have been agreed. 31 million then. It is done.
Rosell : No.
Woodward: Oh come on now, man! Be a sport!
Rosell : How about a player of yours?
Woodward: Who do you have in mind?
Rosell : Rooney.
Moyes: Wayne Rooney is er Manchester Yenited player and will remain so.
Woodward: Shut up, David. This is not a press conference.
Moyes: Yerright. Sell the bloody bugger!
Woodward: So if it is Rooney, then you owe us Cesc and 2 million. Deal?
Rosell : Well, I don’t know. 2 million is a lot of money, you know.
Woodward: So apart from the money, the deal is on, then?
Rosell : Well, 2 million is a lot of money, you know.
Woodward: Alright then, tell you what; since you’re my good friend, I will sweeten the deal for you.
Rosell : I’m all ears.
Rosell : I believe gentlemen, that we have a deal.
Woodward: Good thing that this was a telephone conversation.
Rosell : Why do you say that?
Woodward: Well, you haven’t seen the star.
Rosell : What star?
Woodward: The asterisk that generally means ‘conditions apply’.
Rosell : What conditions?
Woodward: Remember the two million that we gave you? Well, it does not come free.
Rosell : What does it come with then?
Woodward: Bebe. Goobye, Rosell .
The transfer ends. Manchester United ends up with Cesc Fabregas, Barcelona with Wayne Rooney, two million and Bebe. Sandro Rosell ends up ashen-faced and Arsene Wenger with a ringing in his ear. | english |
<gh_stars>1-10
package ai.cellbots.robotlib;
import org.jboss.netty.buffer.ChannelBuffer;
import nav_msgs.MapMetaData;
import std_msgs.Header;
/**
* Interface to generate an {@link nav_msgs.OccupancyGrid} to be published by
* {@link ROSNode}.
*/
public interface OccupancyGridGenerator {
void fillHeader(Header header);
void fillInformation(MapMetaData information);
ChannelBuffer generateChannelBufferData();
}
| java |
# SwiftUIKit, a package with the missing SwiftUI components
It's a work in progress package that I plan to use in my own SwiftUI applications.
The aim is to provide any component that is not buit in SwiftUI or that you find yourself customizing again and again in your application.
For now it provides only two new buttons style.
There is a library application, you can open the project in `SwiftUIKitSampleApp/`and build & run it.
## Buttons
* BorderedRoundedButton
* PlainRoundedButton
### Usage
```Swift
Button(action: { }) {
Text("Plain")
}.buttonStyle(PlainRoundedButton())
Button(action: { }) {
Text("Bordered")
}.buttonStyle(BorderedRoundedButton())
```
## Text
Coming soon
| markdown |
Visakhapatnam: Terming the death of 10 soldiers in an avalanche on the Siachen glacier "painful", Defence Minister Manohar Parrikar today said the decision to deploy troops in the world's highest battlefield was based on security needs, despite the hostile conditions there.
Ten army personnel, including an officer, were buried on Wednesday after they were hit by an avalanche at a high- altitude post on the glacier in Jammu and Kashmir.
"Decision about (deployment of troops in) Siachen is based on the security of the nation. If somebody wants to go there and they have to understand its importance, why we are maintaining it (security presence) in spite of hostile conditions. I think you will understand if you go to that place," he told reporters on the sidelines of an international maritime conference here.
"I am disturbed with any loss, particularly of soldiers, who do it for the nation. Now this particular incident (death of 10 soldiers) is absolutely painful to me personally," he said.
"You can yourself understand that the terrain is such that we lost thousands of soldiers to retain control over it though the loss of human lives on Siachen had come down in recent years due to improved facilities," the defence minister said.
The glaciated area presents temperatures ranging from a minimum of minus 42 degrees Celsius in the night to maximum of minus 25 degrees Celsius during the day. | english |
From: Scott Scheferman (scheferman@gmail.com)
Subject: Pentagon: Back Off, Flyboy!
This idea is absurd right out of the box ("Pentagon: Back Off, Flyboy!," April 11, 2005). Now all a terrorist needs to do is rig a "red-red-green" laser and take it to a non-restricted zone and flash pilots who will then be faced with a confusing situation in which the outcome may yield significant disruption. Better yet, get a high-powered red-red-green laser and fry their eyes while you're at it. We're supposed to know our enemies ... not mimic them!
From: johnpaul (johnpaul@phillyshreds.com)
I was playing with the Google satellite images and saw the baseball game in Philadelphia you mentioned ("Surprises Lurk in Satellite Snaps," April 13, 2005). It is interesting because Veteran's stadium has since been imploded. The images also show the initial construction of the new football and baseball stadiums that are now both in use. If you wander back up to Center City and to the Schuylkill River you can see that there is a major regatta going on too. It's a big regatta because you can see a ton of cars parked along Kelly Drive and a few boats racing down river. That would imply the shots were taken around May. These images must be a few years old because of the stadiums, and there is a skyscraper that has since been built (well, it's 99 percent done) next to 30th Street Station that shows up as a parking lot.
From: Real (Reality@spymac.com>)
One week it is safe, the next it is doomed, then it is saved by a robot, then the next week it is going to be doomed by a rocket ("Griffin: Shuttle Can Fix Hubble," April 12, 2005). For crying out loud, now it is going to be saved by the shuttle after its death has been saved?
Wasn't Bush the guy who wanted the Hubble to be crashed in the first place? I think he is using NASA to play political hopscotch. Who is the flip-flopper now?
From: C.D. Marler (CDM-SHREK@HOUSTON.RR.COM)
What are the RIAA and the Motion Picture folks going to do if we get organized and stop buying their products for a month ("Music Biz Sues High-Speed Traders," April 12, 2005)? They're greedy, plain and simple.... Kinda like Microsoft.
Have a Rant or Rave for Wired News? Send it.
Note: If you do not want to see your message published in Rants & Raves, please let us know in your letter.
| english |
{
"name": "revoke-object-url",
"version": "1.0.2",
"description": "Normalize URL.revokeObjectURL, webkitURL.revokeObjectURL and don't crash older browsers",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Prinzhorn/revoke-object-url.git"
},
"keywords": [
"createObjectURL",
"revokeObjectURL"
],
"author": "<NAME>",
"license": "MIT",
"bugs": {
"url": "https://github.com/Prinzhorn/revoke-object-url/issues"
},
"homepage": "https://github.com/Prinzhorn/revoke-object-url#readme"
}
| json |
Prashar lake lies 49 km north of Mandi, Himachal Pradesh, India, with a three-storied pagoda-like temple dedicated to the sage Prashar.
Why Prashar?
1.The lake is located at a height of 2730 m above sea level.
2.Although lake freezes completely during winters ,it gives an breathtaking view.
3.Prashar Rishi temple is right on the bank of lake. Temple resembles Hadimba Temple in Manali.
4.You get to walk over frozen snow inside Prashar Rishi temple .
Take evening HRTC AC Volvo from Kashmere gate at 6:30 PM. Reach Mandi next morning 7 AM.
From Mandi, either take taxi till Baggi . It will cost approx 800-1000 rs.
Another option is the local bus. The first bus leaves from Mandi at 6 am. I got the next bus at 7:45 AM, it took 1.5 hr for baggi. Costs 56 Rs for Male and 42 Rs for Females.
Entire route has some of the most amazing views with clouds covering the entire valley.
How much time it takes to reach camp?
EThe entire journey will take approx 4 hours depending on your fitness level. During winters it takes more time since some places snow is a bit slippery and you have to walk with the utmost care. At some points, the climb is steep also, moreover, snow makes it harder to walk upon. Fresh snow is soft but old frozen snow is too slippery.
How is trail from Camp to Parashar Lake?
We woke up by 6 am in the morning and had a beautiful site right outside our campsite covered with snow. After having a heavy breakfast it was now time to leave for Parashar lake. From the campsite to lake its 2 km distance.
The entire trail is through the snow, as deep as 3 ft. Starting part of the trek is easier as you leave the campsite. However, as you keep moving further, the snow keeps on increasing and there is hardly any pathway. It's not possible to walk and cross, the only easiest way to pass through is to slide.
You will love this part of the trek. I mention it again don't forget to wear gumboots.
How much time it takes to reach the lake?
It took us 2 hours to reach the lake.
What makes lake so special?
1. Lake is famous for the Parashar rishi temple situated right at the bank of the lake. You can read more about the history of this temple but for your curiosity let me tell you it was built during Pandavas time. Since then it is standing tall but yes it's been renovated a few times.
2. Completely frozen during winters.
3. What is more breathtaking is entire temple surrounded with ice not just outside but even inside. We walked barefoot over ice to go inside the temple. Met pandit and spent some quiet time there talking to the Pandit Ji. We stayed at the lake for around 1 hour which included clicking some of the amazing pictures of my life and having some food..
How was the descend?
It was now time to start descending ,we had to catch 6:30 bus from Mandi.
We reached Baggi, the base village by 4 PM. Although it was a bit late, we had evening snacks, changed clothes, and returned our rented gumboots and stick. From Baggi we left at 4:45 by cab since the only bus of Mandi to Baggi wasn't operational that day due to some issue.
Camp owner Krishna dropped us in his taxi and charged 1100 bucks. It took us one hour to reach Mandi. Despite the bus delay of 1 hour, we reached Delhi next day 7 AM.
Follow me on youtube ,facebook ,instagram . Visit my blog for more interesting stories !!!!
| english |
A consortium led by KKR & Co. offered to buy Ramsay Health Care for A$20. 1 billion ($15 billion), chasing a network of private hospitals across Australia and Europe treating millions of patients a year. Investors led by the US private equity firm bid A$88 for each Ramsay share, the Sydney-based company said on Wednesday. That’s about a 37 per cent premium to Ramsay shares’s closing price of A$64. 39 Tuesday.
Ramsay is letting the group carry out non-exclusive due diligence. Ramsay surged 25 per cent to A$16. 32 at 12:08 pm in Sydney.
TO READ THE FULL STORY, SUBSCRIBE NOW NOW AT JUST RS 249 A MONTH.
What you get on Business Standard Premium?
- Unlock 30+ premium stories daily hand-picked by our editors, across devices on browser and app.
- Pick your 5 favourite companies, get a daily email with all news updates on them.
- Full access to our intuitive epaper - clip, save, share articles from any device; newspaper archives from 2006.
- Preferential invites to Business Standard events.
- Curated newsletters on markets, personal finance, policy & politics, start-ups, technology, and more. | english |
#include<bits/stdc++.h>
using namespace std;
void bfs(int source,vector <int> adj[],bool visited[],int parent[]){
//Initializing a queue and pushing the source into it and marking visited for source as true
queue<int> q;
q.push(source);
visited[source] = true;
while(!q.empty()){
int curr = q.front();
q.pop();
//Traversing all the adjacents of the node
for(auto s: adj[curr]){
//Checking if this adjacent is visited or not
if(!visited[s]){
//Pushing into the queue
q.push(s);
//Marking visited as true
visited[s] = true;
//If not visited, this parent is the one closet to the source, i.e from 0->curr->s is the shortest path till s
parent[s] = curr;
}
}
}
}
int main(){
int n,m; cin>>n>>m;
vector <int> adj[n];
int a,b;
for(int i=0;i<m;i++){
cin>>a>>b;
adj[a].push_back(b);
adj[b].push_back(a);
}
bool visited[n];
memset(visited,false,sizeof(visited));
//Parents array for storing the parent a nodes parent closest to the source
int parent[n];
//Considering 0 as the source
parent[0] = -1;
bfs(0,adj,visited,parent);
//Printing shortest paths for each node from node 0
for(int i=1;i<n;i++){
int curr = i;
vector<int> ans;
while(curr!=-1){
ans.push_back(curr);
curr = parent[curr];
}
reverse(ans.begin(),ans.end());
for(auto s: ans){
cout<<s<<" ";
}cout<<endl;
}
return 0;
}
/*
Input:
6 7
0 1
1 2
2 0
0 3
3 4
4 5
1 5
Output:
0 1
0 2
0 3
0 3 4
0 1 5
Time complexity : O(n+m)
Space complexity : O(n)
*/
| cpp |
Twitter pulled a Twitter today and went down, as you well know, and thus took the blogging world crashing along with it. It is no small secret that in regards to online content dissemination (which is not a dirty word, I promise), Twitter is quickly becoming the de facto solution.
Not that RSS, Facebook, and the like do not share some part in any publication’s overall strategy for the promotion of recent posts, but the most pugnaciously powerful percolator is quickly becoming Twitter, most especially in the technology world. If you already knew this, you are probably in the writing game.
There is an interesting distinction, however, that needs to be drawn between websites that are largely of the blog format, and those that are largely not. Of course, there is an enormous gray area, the HuffingtonPost for example living in it, but the dichotomy is accurate enough here for our larger point. If your publication covers a specific niche, and quickly follows a breaking new cycle, Twitter is the only tool to quickly amass readers to a story that has literally just been born. That and the carrier pigeon, if you must.
The difference, returning to our largely non-blog publication, is that their audience is slightly less episodic, and in terms of the news cycle, constantly behind in the editorial aspect of their work. The websites of newspapers, and to a higher degree their print publications, fit this mold well. Their audience is loyal to a specific brand of news (the WSJ, the NYTimes, and so forth), and do not mind even a 12 hour lag from occurrence to story for their reading. This sort of publication has a stock audience that will read a certain number of articles a week regardless of their content. They are not looking to read something specific; they want to read the ‘news,’ and thus have but a small drive to go and find it themselves.
And so for the publications that are more blog-esque (this is most of the websites you read, I assume), traffic is episodic and occurrence based, and therefore lean heavily on an announcement medium that is single-action oriented, and contains the ability to expand via sharing (the vulgar ‘viral’ expansion), and reach a large enough group of people to make the time gain (between the fast story happening now, and the slower story the next day from the non-blog) to the reader worth the extra effort of going out and reading the story now, as opposed to having it spoon fed to them the next day by the USA Today, or what have you.
And when Twitter goes down the whole equation breaks in two. Blogs and the genre of publication that requires audience now for stories that are happening now and thus are somewhat lost at sea. Don’t believe me? Take a look at this:
Content that was published at an off peak moment did not hit its stride, and MG was not content with the traffic levels that it had attracted via other channels, so he tweeted it again. Put more simply, late nights when the US is asleep are terrible times for tweeting tech tidbits, almost equivalent to Twitter being down, and given that RSS and Facebook (plus the long tail, etc), did not bring enough people into the story’s room to pass muster; Twitter was required.
Tech blogging, and blogging in the larger scheme have become joined at the hip with Twitter to make their style of journalism functional. And thus when Twitter goes down, the whole edifice of blogging takes it on the chin.
The good news is that Twitter is growing like weed on steroids strapped to a rocket ship (pick your analogy), thus growing the best tool that blogging has. And of course, if it was not inferred, Twitter is the launch point for content, not always its end point. Tweets with links get read and posted to Facebook all day long, but in the blogging world that all starts with Twitter these days.
As I think back to blogging before Twitter, I remember not feeling like anything was lacking, except for the traffic numbers I was looking for. Now, provided that Twitter is up, I have nothing to complain about. Call it symbiotic or parasitic, but Twitter and blogging are stuck together, and that is not going to change any time soon.
Get the most important tech news in your inbox each week.
| english |
Debate over when the Federal Reserve could trim its bond purchases monopolized market talk this year, but as a new Fed chief takes charge, more participants believe the key theme to emphasize for 2014 is low rates for longer.
For the bond market, which suffered a number of doomsday predictions for 2013 that never materialized, that means yields could also remain low. Even if they do rise, it might not be by much, since benchmark 10-year yields have already had a 100-plus basis point increase from lows hit in May.
"The Fed under (Fed Chair nominee) Janet Yellen will be committed to a very low federal funds rate for several more years," said Jake Lowery, Treasury trader and portfolio manager for global interest rates at ING U. S. Investment Management.
"That commitment to low rates is much more important than the precise timing of tapering," Lowery said, referring to potential reductions in the Fed's large-scale purchases of U. S. Treasuries and mortgage-backed securities.
Fed Chair nominee Janet Yellen, testifying before the Senate Banking Committee this month, strongly defended the Fed's bold steps to spur economic growth, calling efforts to boost hiring an imperative. Outgoing Chairman Ben Bernanke also argued that case last week, saying the way to normalized policy in the future was through heavy stimulus now.
"The FOMC, and especially a Yellen-led FOMC, will put a lot of weight on the employment side of its mandate and it's going to take a long time to get unemployment down to where the Fed wants it to be," said Goldman Sachs chief economist Jan Hatzius in a recent webcast. Hatzius said he expects the Fed to cut its threshold for unemployment to 6 per cent from 6. 5 per cent. The U. S. unemployment rate currently stands at 7. 3 per cent.
That means 2014 could be another good year for riskier assets, and a bumpier one for safer fixed income investments.
"Returns of seven or eight percent on a fixed-income portfolio when the Fed pursues a zero percent interest-rate policy are just not possible," said Eric Stein, co-director of the global income group at Eaton Vance Investment Managers.
In 2013, only junk bonds produced good returns. Investment grade corporates lost money as have most classes of Treasuries.
The increased conviction that interest rates will remain lower for longer means investors will favor yield without duration. It also means bad economic news is good for stocks as it implies a longer period of Fed accommodation.
"The economy is too weak for the Fed to consider a pullback in quantitative easing, let alone an abandonment of zero percent interest rates," said Jeffrey Rosenberg, BlackRock chief investment strategist for fixed income.
Two misperceptions have kept some investment managers and traders from recognizing that rates will remain lower for longer than they think, said Robert Tipp, chief investment strategist at Prudential Fixed Income in Newark, New Jersey, with $400 billion in fixed-income assets under management.
"First, investors underestimate the need for accommodation in the global monetary system," he said.
The euro zone recovery is slow, driving a similar low-rates-for-longer policy at the European Central Bank, he said.
Bank of Japan Governor Haruhiko Kuroda said on Monday the bank would further expand stimulus if growth was not strong enough to boost inflation to 2 per cent.
"Second, the U. S. economy also remains slack," Tipp said.
After enduring a selloff mid-year when the Fed intimated a small pullback in stimulus was on the way, bond rates dropped when the Fed decided to carry on purchasing bonds at its current rate. Yields since then have risen. The 10-year note now yields 2. 75 per cent.
Higher long-term rates can potentially choke off a recovery, a hint of which can already be seen in the housing sector where sales of existing homes fell last month.
"The Fed probably is not in love with this steep of a yield curve because of the impact on mortgage rates," said Jeffrey Kronthal, co-founder of KLS Diversified Asset Management LP.
Top Fed economists have also suggested the Fed might rely more on giving forward guidance on the path of interest rates by, for instance, adjusting its thresholds on inflation and unemployment to signal rates will stay low even as the recovery picks up. That guidance could compensate for some reduction in the Fed purchase program known as quantitative easing.
This would give the Fed "a way of committing to keep interest rates lower for longer than would otherwise be the case under conventional policy, and thereby improve economic outcomes," Fed economists William English, J. David Lopez-Salido, and Robert Tetlow said in a paper presented earlier this month at a research conference hosted by the International Monetary Fund in Washington D. C.
Some policymakers and strategists worry monetary stimulus is already fueling inflated asset prices and higher leverage that could hurt the economy when reversed.
The Bundesbank recently warned that the euro zone's record low interest rates posed risks to the financial sector if they remained in place for a long time.
Some strategists think improved sentiment in purchasing managers surveys foreshadows recovery in the United States and elsewhere and that rates will rise in 2014.
But even if they did, the risk of another 100-basis-point rise in 10-year yields is lower since those yields have already risen more than a percentage point from their 2013 low, said Zach Pandl, strategist at Boston-based Columbia Management, with $345 billion in assets under management.
"We've already had a large valuation correction," he said.
Overall, said Payden & Rygel economist Jeffrey Cleveland, "there's a non-trivial chance of 2014 being just like 2013 which is 2 per cent-type economic growth. That means short-term interest rates will remain low for longer. " | english |
June 23, 2015: The GRP team together with the CSE’s Media Resource Centre organized a two day media briefing workshop on June 17-18, 2015 at Vijayawada, Andhra Pradesh. The workshop brought together more than 35 journalists from four states - Andhra Pradesh, Telangana, Karnataka and Tamil Nadu.
We were standing at the edge of what looked like a swamp—grass and pools and streams. On one side was heavily barricaded land with high walls, barbed wires and armed security. A board read: East Coast Energy, Kakarapalli. This was where a bloody battle had taken place a few months ago. People protesting the takeover of their wetland were shot at and three lost their lives. Now the site of the 2,640 MW thermal power plant is under siege—locked and in court.
The agriculture department is finally taking note of the non pesticide management technique of farming. The Andhra Pradesh government issued an order on May 16 that the rural development and the agriculture department would work together to reduce the cost of cultivation and move towards a pesticide free cultivation across the state.
Its been a week since the Supreme Court issued the order for the interim ban on endosulfan. There is no official confirmation on the joint committee yet, when they have to present the interim report within 8 weeks, from May 13, to the Supreme Court. It is after the interim report is submitted will the apex court take a final call on whether the pesticide should be allowed or banned.
By: Richard Mahapatra, Kumar Sambhav Shrivastava, Sumana Narayanan, Aparna Pallavi Two tribal villages in Gadchiroli district of Maharashtra—Mendha Lekha and Marda— savoured victory when they won community rights over their forest resources in August last year. The rights conferred under the Forest Rights Act of 2006 include the right to collect and sell minor forest produce (MFP). These include tendu leaves used in beedis, and bamboo that have high commercial value and were under the forest department’s control. Winning the right to manage these resources meant economic liberation to the two villages.
| english |
Didn’t you notice it, Brick? Didn’t you notice a powerful and obnoxious odor of mendacity in this room?
While it was my understanding that Steve Jobs owns a number of nickel mines and brings up tons of ore himself to stay in shape, pounding each core into a delicately wrought battery and then selling the produce of his labor as Apple’s rechargeable battery offering, it seems that Apple is actually using Sanyo Eneloop batteries, wrapping them in their own packaging, and selling them as their own. At least that’s what some Czech dudes think.
While Odin says we will suffer for our indiscretions before arriving in Valhalla, something like this cannot go unpunished here on Earth. See, after intense digging the Czechs discovered that the batteries were little more than Sanyo Eneloop HR-3UTGs. The worst thing? The Apple charger and four batteries costs $29 while the Eneloops cost $29 for eight batteries and a charger.
Heads will roll, people. Heads will roll. This level of perfidy is indicative of a deeper nest of vipers at the company. Or maybe Apple can slap their name on stuff and sell it at a premium. Who knows?
| english |
<filename>Data Structures and Coding Algorithm/07. Heap/min_cost_to_join_ropes.cpp
/* Minimum Cost for Joining Ropes */
/*
Given a rope that has been broken into N parts,
The task is to join the rope into 1 rope back.
Given condition
Cost of joining two part = sum of length of both parts
Requirement:
Minimum Cost to join the ropes
Examples:
pieces = [2,3,1,4,5]
answer =
Explanation
take parts 1 & 2 join it as length 3
cost = 3
now new parts = [3,3,4,5]
take part 3 & 3 and join it as length 6
cost = 3 + 6 = 9
now new parts = [6,4,5]
now take parts 4 & 5, join it as length 9
cost = 9 + 9 = 18
new parts = [6,9]
taking last two parts 6 & 9,
finally joining this into 1 rope
cost = 18 + 6 + 9 = 33
Answer = 33
Greedy Approach:
Always take out the two smallest portion,
Brute Force : Keep on sorting and element and take out first two elements
Efficient Approach: Use minimum Heap
push all elements in heap and keep on taking out 2 elements and push back its sum
until size of heap becomes unity.
Main the cost
*/
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n = 5; // size of array
int pieces[n] = {1, 2, 3, 4, 5};
int minCost = 0;
// min Heap
priority_queue<int,vector<int>,greater<int>>pq;
for(int i=0;i<n;i++)
pq.push(pieces[i]);
while(pq.size() != 1)
{
// taking out 2 elements - smallest pieces
int p1 = pq.top();
pq.pop();
int p2 = pq.top();
pq.pop();
// adding their lenght to the cost
minCost += p1 + p2;
// pushing back the added length to the heap
pq.push(p1 + p2);
}
// final answer
cout<<minCost;
return 0;
}
| cpp |
<filename>scripts/download_lookml.py
import os
import re
from base64 import b64decode
from pathlib import Path
import requests
username = os.environ["GITHUB_USERNAME"]
password = os.environ["GITHUB_PERSONAL_ACCESS_TOKEN"]
auth = requests.auth.HTTPBasicAuth(username, password)
directory = Path(__file__).resolve().parent.parent / "github"
directory.mkdir(exist_ok=True)
start_url = "https://api.github.com/search/code?q=view+language:lookml"
next_url = None
page = 1
with requests.Session() as session:
session.auth = auth
while True:
response = session.get(next_url or start_url)
response.raise_for_status()
links = response.headers["Link"]
finds = re.findall(
r"<(https://api.github.com/search/code\?"
r'q=view\+language%3Alookml&page=\d+)>; rel="next"',
links,
)
if finds:
next_url = finds[0]
else:
next_url = None
print(next_url)
urls = [item["url"] for item in response.json()["items"]]
print(f"Downloading all content from page {page}")
for url in urls:
response = session.get(url)
response.raise_for_status()
response_json = response.json()
name = response_json["name"]
encoded = response_json["content"]
content = b64decode(encoded).decode("utf-8")
if (
name.endswith(".lookml")
or content.startswith("-")
or "- view" in content
):
continue
file_path = directory / name
with file_path.open("w+") as file:
file.write(content)
if next_url is None:
break
else:
page += 1
| python |
import { Generator } from './generator';
///////////////////////////////////////////////////////////////////////////////
//
// MapGenerator
//
///////////////////////////////////////////////////////////////////////////////
export type SequenceTransformer<T> = (instances: T[]) => T[];
export class MapGenerator<T> implements Generator<T> {
private readonly generator: Generator<T>;
private readonly transformers: Array<SequenceTransformer<T>>;
constructor(generator: Generator<T>, transformers: Array<SequenceTransformer<T>>) {
this.generator = generator;
this.transformers = transformers;
}
count(): number {
return this.generator.count();
}
version(id: number): T[] {
let instances = this.generator.version(id);
for (const transformer of this.transformers) {
instances = transformer(instances);
}
return instances;
}
}
| typescript |
One fine day, we are going to witness 'The Cerebral Assassin' take full control of WWE and, that day could be just around the horizon. Vince McMahon's involvement with the XFL has given Triple H more creative freedom to make decisions within the company. Analyzing that, had Vince announced his commitment to the XFL and handed the torch to 'The Game', we could have been seeing a different card of WrestleMania on the table.
#14 Pete Dunne Vs Johnny Gargano for the U.K. and Cruiserweight Championship (Winner takes all)
'The Game' has a visionary mind towards building new talent to carry and represent the company in the future. Booking Pete Dunne Vs Johnny Gargano for the U.K. and Cruiserweight Championships, could be a huge step in the right direction in order to build two young main event performers.
Concentrating on the wrestling aspect of the card, this match definitely deserves to open the show and extract the attention they deserve. This match wouldn't be a surprise considering how physically gifted these two are and, the inclusion of two prestigious championships would elevate the stakes of this match.
This match definitely stands a real chance to steal the show as Triple H has elevated the Women's division in NXT to such an extent that it has gravitated attention towards women's wrestling.
'The Game' is continuing to push the boundaries and is giving them a huge platform to showcase their abilities for the biggest prize on the red brand would be monumental.
A Women's Ladder match at WrestleMania could be spellbinding, to say the least, and could produce exhilarating moments that would be remembered for years to come. These female superstars have the capability of raising the bar and produce what is expected of them at 'The Grandest Stage of Them All'.
The fans have been utterly disappointed with Bray Wyatt's character. He has been involved in mindless feuds and has never started a fight that he could win which has made the fans care less about him. The only way for the WWE Universe to get invested in Bray Wyatt again could be if he gets into a blockbuster feud with Braun Strowman.
This is the portion where history comes into play and elevating both the superstars to the top of the mountain would be the way to go. Improvisation in storytelling is necessary to build the tension around these two monsters and, an intervention from Sister Abigail at WrestleMania 34 could get the whole world talking. The match will be physical but could end in a dramatic way by hypnotizing Braun to submit his soul to the 'Eater of Worlds' in order to tease the fans for what's next.
As I said, the whole idea of WrestleMania would be to build the future and give fans some unforgettable moments. This match would be pure wrestling with a fine blend of magical storytelling and could perhaps get the crowd on their feet. Both the teams have made a name for themselves in NXT and catapulting them to such a bigger platform would be monumental in their careers.
Expect the Revival Vs Authors of Pain to destroy each other to claim their moment at 'The Grandest Stage of Them All'. The in-ring quality of the match would be terrific and, might elevate the tag-team division to the next level.
WWE has done a poor job in elevating the Andre the Giant Memorial Battle Royal and it genuinely seems like a time filler. There's no denying that battle royals are entertaining but superstars must fight for a purpose and, under Triple H's umbrella, that purpose must be the United States Championship.
The Battle Royal will not only provide fine entertainment to the fans but would also bestow prestige to the United States Championship. Twenty men fighting for a prize and as far as booking is concerned, it would be an ideal opportunity for someone fresh from NXT to come out and shock the world.
SmackDown's tag team division needs a marquee match on the card for WrestleMania 34 and clashing these two marquee teams against each other would be the way to go. Two of the most successful tag teams in history tearing each other apart to reign supreme at the Super Dome.
The 'Woken' gimmick must be utilized efficiently and, pulling the trigger with Matt and Jeff could be sensational, to say the least. SmackDown Live could give them the opportunity to be a main event stable that could go on to compete for World Championships. Triple H drafting the popular team to SmackDown and putting them against a completely different team would be best for business.
These two superstars have traveled the world wrestling each other and in the process, have made a name for themselves. Their rivalry definitely deserves a colossal platform like WrestleMania and there's no denying that 'The Game' will book this feud. From a creative standpoint, this bout could be the most fulfilling feuds of the year and would really elevate Zayn as the next big thing.
The WWE has not done much with Sami but Triple H's inclusion in this feud could make this a money match that would be remembered for generations to come. The match would be physical and pretty intense culminating with a vicious Helluva kick by Sami Zayn to the Prizefighter. The crowd will be invested in this blockbuster feud and might get the loudest ovation of the night.
It's a shame that Cesaro has never received the push he deserves and before it all fades out into the dark, Hunter's involvement could save his career from drowning. A guy, like Triple H, understands the extraordinary potential the Swiss possesses and, would use it to the maximum by a gradual push to the top of the food chain.
The most significant way to do it is to put him in a match against 'the Franchise Player' who has won the Intercontinental Championship after defeating 'the A-Lister' and put him on the shelf. A match with 'The Swiss Cyborg' at the Super Dome could be his career-best match at WrestleMania and since the whole event would be a fine blend of wrestling integrated with moments, it would be reasonable for Cesaro to get the better off John and claim his moment.
WWE has done a poor job in booking Finn Balor as a main event performer and there have been backstage reports where Triple H has been furious regarding Balor's downfall. 'The Game' believes in the former NXT Champion and would be willing to endorse his talent at 'The Show of Shows'. Finn Balor Vs Triple H has all the feelings of a marquee main event match and, considering that the former might not get a title match this year, he could still drop a bombshell by defeating him clean.
This match will be fantastic and could really catapult Balor as the Guy on Monday Night Raw. If the match is provided with correct booking, this could literally blow the roof off the place and would really get the fans invested in Balor as a performer.
Well, this dream match could really bring much credibility and mainstream attention to the Women's division considering how much potential this match has. The fans have really yearned to see this match and, it seems likely that under Triple H's supervision, this match has all the possibilities to close the show.
The match has a lot of in-ring potentials and could be the greatest match under the chronology of Women's wrestling. The fans want to see this happen and while the company teased it during the Mae Young Classic, booking it at 'The Grandest Stage Of Them All' would be perfect for business. Expect this match to come down to Ronda Rousey Vs Charlotte Flair with Rousey getting the win, setting up a blockbuster clash between the two for Summer Slam.
These two superstars are hell-bent on causing mayhem wherever they go and booking them together in a war at WrestleMania 34 will be the most satisfying decisions of Triple H. A feud with Brock Lesnar for the Universal Championship for Joe was gold but, did not get much credit after and, considering that Brock might retire this year, giving that rub to someone like Samoa Joe could make him an untouchable heel.
'The Game' understands the limitations, of Brock Lesnar Vs Roman Reigns and would be more interested in watching Joe and Lesnar tear each other apart in a war. The match would most likely cause destruction around the sets and since Joe would be hell-bent on producing results, this match will most probably end with Lesnar fading to the Coquina Clutch.
This is the only match on the whole card that should not be replaced and has all the ingredients to produce a 5-star classic. Two superstars fighting to claim the most coveted prize in sports entertainment and, with Triple H taking this feud under personal supervision, this match could definitely cross the blockbuster match of Undertaker Vs Shawn Michaels at WrestleMania 25.
Shinsuke Nakamura's offensive striking abilities could be on full display here and since Triple H would want these two to produce a supremely technical wrestling match, these two superstars will have the creative freedom to give WWE fans a match of a lifetime.
The Shield counterparts share an amazing rivalry and this is what will excite the fans about this match. There's a creative way of booking a feud and, this could top them all by being one of the most intense rivalries in history. These three superstars are the future of this business and booking them against each other could solidify their position in history.
The company must book Dean Ambrose as a heel Universal Champion which could not only gravitate much attention to the match but, would also reinvent Ambrose as a main event performer. This match could change the whole landscape of WWE and would definitely end up with the 'Big Dog' claiming his yard and, defeating his brothers in a show-stopper.
#1 The Undertaker Vs Daniel Bryan (Career Vs Career)
While there may be a lot of fans who would want to see Undertaker square off against John Cena and it certainly would be a marquee main event but, bringing back Daniel Bryan against The Undertaker would invoke a lot of curiosity among the fans. Nobody would be able to guess who might hang his boots in the main event and that is what clever marketing could do.
The match could be solid with Bryan reluctant to retire 'The Phenom' but also wanting to save his career. The intensity of the matches and the emotions that it could bring to the audience would be monumental. Imagine a situation where Bryan wants to be cleared to wrestle full-time and follow his passion but, at the same time has to go through 'The Phenom' to realize his dream. This could be the only feud where fans would legitimately accept someone like Daniel ending Undertaker's career. Expect a Shawn Michaels Vs Ric Flair kind of moment.
| english |
#!/usr/bin/env python
# ----------------------------------------------------------------------------
# "THE BEER-WARE LICENSE" (Revision 42):
# <NAME> wrote this file. As long as you retain
# this notice you can do whatever you want with this stuff. If we meet some day,
# and you think this stuff is worth it, you can buy me a beer in return.
# ----------------------------------------------------------------------------
import sys
import re
import requests
import platform # For getting the operating system name
import subprocess # For executing a shell command
import os
import time
ip_regex = "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$"
def main(argv):
print("--- flash2560 - Created by <NAME> ---")
hostname = "192.168.4.1"
input_file = "none"
# Handle the command line arguments
for index, arg in enumerate(argv):
if arg == "-h" or arg == "--help":
print_help()
sys.exit(0)
elif arg == "-H" or arg == "--hostname":
if index + 1 < len(argv) and re.search(ip_regex, argv[index + 1]):
hostname = argv[index + 1]
if not ping(hostname):
print("IP is not reachable:")
sys.exit(2)
else:
print("IP address is not right")
print_help()
sys.exit(1)
elif arg == "-f" or arg == "--file":
if index + 1 < len(argv) and os.path.isfile(argv[index + 1]):
input_file = argv[index + 1]
else:
print("Can't open file")
print_help()
sys.exit(3)
if input_file == "none":
print("No input file")
print_help()
sys.exit(4)
response = requests.post('http://' + hostname + '/pgmmega/sync')
# ------------ GET AVR in SYNC ----------------------------------------
if response.status_code != 204:
print("Failed to reset the AVR (HTML ERROR: " + response.status_code + ")")
sys.exit(5)
while True:
response = requests.get('http://' + hostname + '/pgmmega/sync')
if "SYNC" in response.content.decode('ASCII'):
print(response.content)
break
elif "NOT READY" not in response.content.decode('ASCII'):
print("Could not get in Sync with AVR")
sys.exit(7)
time.sleep(0.1)
# -------------- Upload HEX file -----------------------------------------
hex_file = open(input_file).read()
response = requests.post('http://' + hostname + '/pgmmega/upload', data=hex_file, timeout=20.0)
if "Success" in response.content.decode('ASCII'):
print("+++++ Success :) ++++++")
else:
print("Failed :(")
sys.exit(8)
# Reset the avr to solve a bug in the bootloader that the program dows not start immediately
time.sleep(0.1)
requests.post('http://' + hostname + '/console/reset')
sys.exit(0)
def print_help():
print('\n')
print("Usage: ")
print("flash2560.py -H <hostname> -f <hex_file>")
print("\nExample:")
print("flash2560.py -H 192.168.4.1 -f Sketch.hex")
def ping(host):
param = '-n' if platform.system().lower() == 'windows' else '-c'
command = ['ping', param, '1', host]
output = open(os.devnull, 'w')
return subprocess.call(command, stdout=output) == 0
if __name__ == "__main__":
main(sys.argv[1:])
| python |
<gh_stars>0
import pickle
import numpy as np
import csv
infile=open('./labels.dat','rb')
labels=pickle.load(infile)
labels = labels.tolist()
infile = open('../Trapnell_TCC.dat', 'rb')
load = pickle.load(infile)
print('converting to list')
df = load.toarray()
f = open('./TCC.txt', 'w')
writer = csv.writer(f)
for row in df:
print(row)
writer.writerow(row)
| python |
<filename>server/src/main/resources/eclairjs/sql/types/FloatType.js
/*
* Copyright 2015 IBM Corp.
*
* 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.
*/
(function () {
var NumericType = require(EclairJS_Globals.NAMESPACE + '/sql/types/NumericType');
/**
* @constructor
* @extends module:eclairjs/sql/types.NumericType
* @classdesc The data type representing Float values. Please use the singleton DataTypes.FloatType.
* @memberof module:eclairjs/sql/types
*/
function FloatType(jvmObj) {
NumericType.call(this, jvmObj);
};
FloatType.prototype = Object.create(NumericType.prototype);
FloatType.prototype.constructor = FloatType;
/**
* The default size of a value of the FloatType is 4 bytes.
* @returns {integer}
*/
FloatType.prototype.defaultSize = function () {
return this.getJavaObject().defaultSize();
};
FloatType.prototype.classTag = function () {
throw "not implemented by ElairJS";
//return this.getJavaObject().classTag();
};
FloatType.prototype.numeric = function () {
throw "not implemented by ElairJS";
//return this.getJavaObject().numeric();
};
FloatType.prototype.fractional = function () {
throw "not implemented by ElairJS";
//return this.getJavaObject().fractional();
};
FloatType.prototype.ordering = function () {
throw "not implemented by ElairJS";
//return this.getJavaObject().ordering();
};
FloatType.prototype.asIntegral = function () {
throw "not implemented by ElairJS";
//return this.getJavaObject().asIntegral();
};
FloatType.prototype.tag = function () {
throw "not implemented by ElairJS";
//return this.getJavaObject().tag();
};
FloatType.prototype.unapply = function () {
throw "not implemented by ElairJS";
//return this.getJavaObject().unapply();
};
module.exports = FloatType;
})();
| javascript |
<reponame>dophist/pinyin-data
# -*- coding: utf-8 -*-
"""补充 8105 中汉字的拼音数据"""
from collections import namedtuple
import re
import sys
from pyquery import PyQuery
import requests
re_pinyin = re.compile(r'拼音:(?P<pinyin>\S+) ')
re_code = re.compile(r'统一码\w?:(?P<code>\S+) ')
re_alternate = re.compile(r'异体字:\s+?(?P<alternate>\S+)')
HanziInfo = namedtuple('HanziInfo', 'pinyin code alternate')
def fetch_html(url, params):
response = requests.get(url, params=params)
return response.content
def fetch_info(hanzi):
url = 'http://www.guoxuedashi.com/zidian/so.php'
params = {
'sokeyzi': hanzi,
'kz': 1,
'submit': '',
}
html = fetch_html(url, params)
pq = PyQuery(html)
pq = PyQuery(pq('table.zui td')[1])
text = pq('tr').text()
text_alternate = pq(html)('.info_txt2')('em').text()
pinyin = ''
pinyin_match = re_pinyin.search(text)
if pinyin_match is not None:
pinyin = pinyin_match.group('pinyin')
code = re_code.search(text).group('code')
alternate = ''
alternate_match = re_alternate.search(text_alternate)
if alternate_match is not None:
alternate = alternate_match.group('alternate')
return HanziInfo(pinyin, code, alternate)
def parse_hanzi(hanzi):
info = fetch_info(hanzi)
if (not info.pinyin) and info.alternate:
alternate = fetch_info(info.alternate)
else:
alternate = ''
return HanziInfo(info.pinyin, info.code, alternate)
def main(lines):
for line in lines:
if line.startswith('# U+') and '<-' in line:
# # U+xxx ... -> U+xxx
code = line.split(':')[0].strip('# ')
# U+xxx -> xxx
code = code[2:]
info = parse_hanzi(code)
pinyin = info.pinyin
extra = ''
if (not pinyin) and info.alternate:
alternate = info.alternate
pinyin = alternate.pinyin
extra = ' => U+{0}'.format(alternate.code)
if ',' in pinyin:
first_pinyin, extra_pinyin = pinyin.split(',', 1)
pinyin = first_pinyin
extra += ' ?-> ' + extra_pinyin
if pinyin:
line = line.strip()
# # U+xxx -> U+xxx
line = line[2:]
line = line.replace('<-', pinyin)
if extra:
line += extra
yield line.strip()
if __name__ == '__main__':
args = sys.argv[1:]
input_file = args[0]
with open(input_file) as fp:
for line in main(fp):
print(line)
| python |
Supercar loved it a lot, Stylish, good look much storage good features less cost comfortable and safety. Good company best engine ever saw. Good pick up Sting and powerfull. This is the best of my whole life I ever saw, till now no other companies like Bentley, Lamborghini, Ferrari, are like this.
- എല്ലാം (33)
- Mileage (1)
- Performance (2)
- Looks (3)
- Comfort (5)
- Engine (1)
- Power (1)
- Price (2)
Tesla's Cybertrack Welcome To India.
It's Too Cool To Have Tesla Company Vehicle.
Tesla is the Best car u can get at the price. Best tyre, best control systems.
| english |
Press freedom is vital for a vibrant democracy!
By logging in or continuing, you accept Change.org’s Terms of Service and Privacy Policy.
Press freedom is vital for a vibrant democracy!
| english |
Remember when the global economic crisis was supposed to drive legions of desperate, unemployed computer programmers into cybercrime? It turns out the real threat comes from unemployed advertising agents.
Scammers posing as the well-known ad agency Spark-SMG tricked Gawker Media into running a fake Suzuki ad last week that served malicious code, according to a report in Silicon Alley Insider. A similar scam hit the New York Times in September. Unlike the newspaper, Gawker has released the e-mails it exchanged with the scammers, and the messages show just how confidently the perps navigated the ad-buy process.
"We are only interested in standard IAB banner sizes right now as that's what we have sign off for," wrote fake person George Delarosa, at one point in the negotiations. "Please whip up a proposal and let's try and get a rush on getting something going as we are in need of some major imps by the end of the month as we are under-delivering on our monthly impression levels for September."
I'd rather voluntarily install the malware then read that paragraph again. But it does show that the scamsters – who are probably behind the Times attack as well – know exactly what they're doing. In addition to the authentic prose, the crooks backed their play with a working phone number in a Chicago area code, where the real Spark is based, and a copycat domain name.
"Whoever it is definitely worked in online ad sales at some point ," an anonymous Gawker salesperson wrote the Insider.
With legitimate ad sales in a slump industrywide, malware-laced banners and, more commonly, just plain deceptive ads are enjoying way too much access to legitimate outlets these days, sometimes delivered through third-party ad networks, and sometimes through direct sales like in the Gawker and Times attacks.
The problem has grown so large that New York ad company Epic Advertising has hired a former FBI cybercrime agent to head a division that scrutinizes potential advertisers. The company is hoping to distinguish itself in the market with a commitment not to run malware, dubious testimonials and ads linking to fake news articles.
"All ads are previewed in advance with the sales team, then they have to go through Compliance to make sure they don't say anything funky," says Epic's E.J. Hilbert, who worked against Eastern European cybercrooks while in the Bureau. "We are the watchdogs and the hound dogs. I think like a bad guy. I think like a guy who's going to manipulate these situations, and help to devise a way to make sure that we don't fall for it."
For those without G-men on staff, a few minutes of sleuthing might prevent gaffes like Gawker's. While Gawker's salesperson says the company did all it could to scrutinize the fake Suzuki ad, a quick phone call to a known and trusted number for the real Spark would likely have put the kibosh on the attack before it began.
The ad ran for "less than 5 days last week," said Gawker's James Del, in an e-mail to Threat Level. "This was a very malicious piece of code that seemingly took advantage of unpatched Adobe software, though we don't have details on how exactly that worked. It was not a 'trick' ad, wherein users were prompted to install something ... It simply strong armed it's way through a vulnerability and infected the computer.
"This isn't a worm that goes unnoticed,' Del added. "It would have crippled the user's computer in a few moments, based on the reports we received. There would have been pop ups, freezing, and multiple file downloads taking place."
Updated 16:35 with Gawker's response.
See Also:
| english |
<filename>STEER/STEER/AliSymBDMatrix.cxx
/*********************************************************************************/
/* Symmetric Band Diagonal matrix with half band width W (+1 for diagonal) */
/* Only lower triangle is stored in the "profile" format */
/* */
/* */
/* Author: <EMAIL> */
/* */
/*********************************************************************************/
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <float.h>
//
#include "TClass.h"
#include "TMath.h"
#include "AliSymBDMatrix.h"
//
ClassImp(AliSymBDMatrix)
//___________________________________________________________
AliSymBDMatrix::AliSymBDMatrix()
: fElems(0)
{
// def. c-tor
fSymmetric = kTRUE;
}
//___________________________________________________________
AliSymBDMatrix::AliSymBDMatrix(Int_t size, Int_t w)
: AliMatrixSq(),fElems(0)
{
// c-tor for given size
//
fNcols = size; // number of rows
if (w<0) w = 0;
if (w>=size) w = size-1;
fNrows = w;
fRowLwb = w+1;
fSymmetric = kTRUE;
//
// total number of stored elements
fNelems = size*(w+1) - w*(w+1)/2;
//
fElems = new Double_t[fNcols*fRowLwb];
memset(fElems,0,fNcols*fRowLwb*sizeof(Double_t));
//
}
//___________________________________________________________
AliSymBDMatrix::AliSymBDMatrix(const AliSymBDMatrix &src)
: AliMatrixSq(src),fElems(0)
{
// copy c-tor
if (src.GetSize()<1) return;
fNcols = src.GetSize();
fNrows = src.GetBandHWidth();
fRowLwb = fNrows+1;
fNelems = src.GetNElemsStored();
fElems = new Double_t[fNcols*fRowLwb];
memcpy(fElems,src.fElems,fNcols*fRowLwb*sizeof(Double_t));
//
}
//___________________________________________________________
AliSymBDMatrix::~AliSymBDMatrix()
{
// d-tor
Clear();
}
//___________________________________________________________
AliSymBDMatrix& AliSymBDMatrix::operator=(const AliSymBDMatrix& src)
{
// assignment
//
if (this != &src) {
TObject::operator=(src);
if (fNcols!=src.fNcols) {
// recreate the matrix
if (fElems) delete[] fElems;
fNcols = src.GetSize();
fNrows = src.GetBandHWidth();
fNelems = src.GetNElemsStored();
fRowLwb = src.fRowLwb;
fElems = new Double_t[fNcols*fRowLwb];
}
memcpy(fElems,src.fElems,fNcols*fRowLwb*sizeof(Double_t));
fSymmetric = kTRUE;
}
//
return *this;
//
}
//___________________________________________________________
void AliSymBDMatrix::Clear(Option_t*)
{
// clear dynamic part
if (fElems) {delete[] fElems; fElems = 0;}
//
fNelems = fNcols = fNrows = fRowLwb = 0;
//
}
//___________________________________________________________
Float_t AliSymBDMatrix::GetDensity() const
{
// get fraction of non-zero elements
if (!fNelems) return 0;
Int_t nel = 0;
for (int i=fNelems;i--;) if (!IsZero(fElems[i])) nel++;
return nel/fNelems;
}
//___________________________________________________________
void AliSymBDMatrix::Print(Option_t* option) const
{
// print data
printf("Symmetric Band-Diagonal Matrix : Size = %d, half bandwidth = %d\n",
GetSize(),GetBandHWidth());
TString opt = option; opt.ToLower();
if (opt.IsNull()) return;
opt = "%"; opt += 1+int(TMath::Log10(double(GetSize()))); opt+="d|";
for (Int_t i=0;i<GetSize();i++) {
printf(opt,i);
for (Int_t j=TMath::Max(0,i-GetBandHWidth());j<=i;j++) printf("%+.3e|",GetEl(i,j));
printf("\n");
}
}
//___________________________________________________________
void AliSymBDMatrix::MultiplyByVec(const Double_t *vecIn,Double_t *vecOut) const
{
// fill vecOut by matrix*vecIn
// vector should be of the same size as the matrix
if (IsDecomposed()) {
for (int i=0;i<GetSize();i++) {
double sm = 0;
int jmax = TMath::Min(GetSize(),i+fRowLwb);
for (int j=i+1;j<jmax;j++) sm += vecIn[j]*Query(j,i);
vecOut[i] = QueryDiag(i)*(vecIn[i]+sm);
}
for (int i=GetSize();i--;) {
double sm = 0;
int jmin = TMath::Max(0,i - GetBandHWidth());
int jmax = i-1;
for (int j=jmin;j<jmax;j++) sm += vecOut[j]*Query(i,j);
vecOut[i] += sm;
}
}
else { // not decomposed
for (int i=GetSize();i--;) {
vecOut[i] = 0.0;
int jmin = TMath::Max(0,i - GetBandHWidth());
int jmax = TMath::Min(GetSize(),i + fRowLwb);
for (int j=jmin;j<jmax;j++) vecOut[i] += vecIn[j]*Query(i,j);
}
}
//
}
//___________________________________________________________
void AliSymBDMatrix::Reset()
{
// set all elems to 0
if (fElems) memset(fElems,0,fNcols*fRowLwb*sizeof(Double_t));
SetDecomposed(kFALSE);
//
}
//___________________________________________________________
void AliSymBDMatrix::AddToRow(Int_t r, Double_t *valc,Int_t *indc,Int_t n)
{
// add list of elements to row r
for (int i=0;i<n;i++) (*this)(r,indc[i]) = valc[i];
}
//___________________________________________________________
void AliSymBDMatrix::DecomposeLDLT()
{
// decomposition to L Diag L^T
if (IsDecomposed()) return;
//
Double_t eps = std::numeric_limits<double>::epsilon()*std::numeric_limits<double>::epsilon();
//
Double_t dtmp,gamma=0.0,xi=0.0;
int iDiag;
//
// find max diag and number of non-0 diag.elements
for (dtmp=0.0,iDiag=0;iDiag<GetSize();iDiag++) {
if ( (dtmp=QueryDiag(iDiag)) <=0.0) break;
if (gamma < dtmp) gamma = dtmp;
}
//
// find max. off-diag element
for (int ir=1;ir<iDiag;ir++) {
for (int ic=ir-GetBandHWidth();ic<ir;ic++) {
if (ic<0) continue;
dtmp = TMath::Abs(Query(ir,ic));
if (xi<dtmp) xi = dtmp;
}
}
double delta = eps*TMath::Max(1.0,xi+gamma);
//
double sn = GetSize()>1 ? 1.0/TMath::Sqrt( GetSize()*GetSize() - 1.0) : 1.0;
double beta = TMath::Sqrt(TMath::Max(eps,TMath::Max(gamma,xi*sn)));
//
for (int kr=1;kr<GetSize();kr++) {
int colKmin = TMath::Max(0,kr - GetBandHWidth());
double theta = 0.0;
//
for (int jr=colKmin;jr<=kr;jr++) {
int colJmin = TMath::Max(0,jr - GetBandHWidth());
//
dtmp = 0.0;
for (int i=TMath::Max(colKmin,colJmin);i<jr;i++)
dtmp += Query(kr,i)*QueryDiag(i)*Query(jr,i);
dtmp = (*this)(kr,jr) -= dtmp;
//
theta = TMath::Max(theta, TMath::Abs(dtmp));
//
if (jr!=kr) {
if (!IsZero(QueryDiag(jr))) (*this)(kr,jr) /= QueryDiag(jr);
else (*this)(kr,jr) = 0.0;
}
else if (kr<iDiag) {
dtmp = theta/beta;
dtmp *= dtmp;
dtmp = TMath::Max(dtmp, delta);
(*this)(kr,jr) = TMath::Max( TMath::Abs(Query(kr,jr)), dtmp);
}
} // jr
} // kr
//
for (int i=0;i<GetSize();i++) {
dtmp = QueryDiag(i);
if (!IsZero(dtmp)) DiagElem(i) = 1./dtmp;
}
//
SetDecomposed();
}
//___________________________________________________________
void AliSymBDMatrix::Solve(Double_t *rhs)
{
// solve matrix equation
//
if (!IsDecomposed()) DecomposeLDLT();
//
for (int kr=0;kr<GetSize();kr++)
for (int jr=TMath::Max(0,kr-GetBandHWidth());jr<kr;jr++) rhs[kr] -= Query(kr,jr)*rhs[jr];
//
for (int kr=GetSize();kr--;) rhs[kr] *= QueryDiag(kr);
//
for (int kr=GetSize();kr--;)
for (int jr=TMath::Max(0,kr - GetBandHWidth());jr<kr;jr++) rhs[jr] -= Query(kr,jr)*rhs[kr];
//
}
//___________________________________________________________
void AliSymBDMatrix::Solve(const Double_t *rhs,Double_t *sol)
{
// solve matrix equation
memcpy(sol,rhs,GetSize()*sizeof(Double_t));
Solve(sol);
//
}
| cpp |
These are the best shows on Paramount Plus UK – including everything from action to comedy.
Finding the best Paramount Plus UK shows is a task that gets more difficult with each passing week. The name Paramount is synonymous with some of the biggest movie franchises in Hollywood history from The Godfather to Mission: Impossible and Scream, but the studio, via its CBS and Showtime imprints, has been making quality television for a long time now.
Most, though not all, of it can be found on Paramount Plus, the new-ish streaming service that aims to bring all the studio’s array of shows and movies together in a single offering.
Now, Paramount Plus is live in the UK and available to access on desktop browser, mobiles, TVs and via the Paramount Plus app. As well as this, the streaming service will also be available on Sky platforms in the UK, Ireland, Italy, Germany and Austria in 2022. Sky Cinema subscribers will get Paramount Plus included at no extra cost.
As for prices, you'll be able to purchase the service will cost £6.99 per month or £69.90 for the year, with a free seven-day trial available.
With the service now live in the UK, we've brought together all Paramount Plus' best shows. It's a list we'll keep updated to include all the latest releases, so you can continue to check back and be introduced to new shows as Paramount adds them.
Paramount's lavish new drama has had a mixed reception, but if you're hooked by the story, i.e How The Godfather got from book to big screen and the many pitfalls along the way, then you'll have a lot to enjoy.
Michael Tolkin’s 10-episode show re-tells the making of Francis Ford Coppola's legendary gangster movie from the perspective of its ambitious producer, Albert S. Ruddy.
Miles Teller stars as Ruddy with Ted Lasso's Juno Temple, Matthew Goode, Giovanni Ribisi and Dan Fogler among the supporting cast.
After more than a decade in development as a feature film, with directors like Peter Jackson and Neill Blomkamp attached at various points and a script by Alex Garland, Halo, the world-conquering video game franchise, has finally found its way onto our screens with a nine-episode first season.
The series is set in the year 2552, and follows John-117/Master Chief, a towering genetically-engineered supersoldier who leads humanity’s fight against an alien threat known as The Covenant.
A pricey endeavor for Paramount with a budget of over $90 million for the series, the show is certainly impressive in scale, and boasts a cast that includes Pablo Schreiber, Shabana Azmi, Bokeem Woodbine and Natascha McElhone.
A second season is already confirmed, with Paramount betting big on Halo to become a flagship show for its streaming service.
One of the best new shows around with a flawless rating on Rotten Tomatoes and now heading for a second season, it's gruesome drama Yellowjackets.
The story alternates between 1996 and 2021. In 1996 a team of New Jersey high school soccer players is traveling to Seattle for a national tournament when their plane crashes deep in the Canadian wilderness. The surviving team members have to fend for themselves for 19 months, during which time the group splits into rival clans and descends into savagery, going full Lord of the Flies in the process. In the present day, the survivors have made new lives for themselves, but the ordeal they endured as teenagers is about to come back to haunt them.
Sharp, witty, and with a killer soundtrack, Yellowjackets is great TV, but a word of warning: the critics, desensitized bunch that they are, adored the show, but it’s gruesome stuff, and not for the faint-hearted.
2022 is a year where the story of tech giants and their controversial founders is in vogue on TV, with Hulu's The Dropout and Apple's WeCrashed both released to much fanfare earlier in the year. And this show is in the same pocket.
Super Pumped, or, to give it its full title, Super Pumped: The Battle For Uber, charts the rise of the ride-hailing app and the fall of its CEO, Travis Kalanick.
Joseph Gordon-Levitt plays Kalanick, with Friday Night Lights' Kyle Chandler as his mentor, Bill Gurley, and Uma Thurman on board as Arianna Huffington.
The show documents Kalanick's relentless drive to succeed, a drive which saw him alienate many of those who supported him and compromise everything to get what he wanted.
Super Pumped is already on for a second run, with Mark Zuckerberg and Facebook as the new focus.
A true TV behemoth, Yellowstone is one of the biggest shows in the world right now, but hasn't had much of a chance to build up a following in the UK, something Paramount will be hoping changes with the launch of its own streaming service.
Created and overseen by Taylor Sheridan, the man behind Sicario and Wind River, and led Kevin Costner, the show is a modern-day Western.
Costner plays John Dutton, owner of the controls the largest ranch in the United States. His property, vast as it is, is in constant conflict with those it borders -- an expanding town, an Indian reservation, and America's first national park, all of which play out amid corruption and bloody dealings.
There are four seasons on here and the show's power is obvious from the opening seconds.
1883 is a prequel to Yellowstone, which is so successful, it keeps spawning spin-offs.
Whereas Yellowstone follows the Dutton family in modern times, this show follows the story of how the Duttons came to own the land that would become the Yellowstone Ranch. Set, as you might imagine, in 1883, we follow the Duttons as they leave Tennessee, journey to Fort Worth, Texas, and join a European immigrant wagon train heading towards their eventual home.
Sam Elliott leads the way here, with LaMonica Garrett and country music royalty Tim McGraw and Faith Hill among the supporting players.
Marvel Cinematic Universe regular Jeremy Renner commands this drama, which has already been renewed for a second season.
The show follows the McLusky family, power brokers in the fictional town of Kingstown, Michigan.
Kingstown is in the punishment business: it has seven prisons within a 10-mile radius, some for men and some for women.
Renner plays Mike, a one-time felon, who now works with his brother, Kyle Chandler’s Mitch, whose nickname is the titular Mayor of Kingstown. The pair are fixers, working between police officers, prison guards, local crime syndicates and the inmates.
As with all of Sheridan’s work, it’s rough and very tough, but the runtime fizzes by all the same.
Paramount Plus is the home of all 11 seasons (that’s 264 episodes) of Frasier, with a revival also coming down the track.
The show follows Kelsey Grammar’s psychiatrist Frasier Crane, who leaves Boston and the gang at Cheers, and returns to his hometown of Seattle, to begin a new chapter as a radio show host.
Once there, he reconnects with his father and younger brother and sets out to build a new life.
Still as witty and sparkling as the day it first aired in 1993, if you’re in the market for a new sitcom, get stuck in, there’s a lot to enjoy.
David Lynch’s genre-defying, reality-bending and hugely influential detective drama is still an absolute must-watch.
On the face of it, Twin Peaks is a simple whodunnit. Kyle MacLachlan’s FBI Special Agent Dale Cooper is called in to assist local Sheriff Harry S. Truman as he investigates the murder of homecoming queen Laura Palmer in the fictional town of Twin Peaks.
However, within the first few minutes of the show’s feature-length first episode, you’ll quickly realize this is a detective drama like nothing else.
Trippy, esoteric, mind-bending and impossible to take your eyes off, Twin Peaks is well worth an investment, a good 30 years after its first broadcast.
A UK exclusive for Paramount, this is both a TV spin-off and a sequel to the iconic 1976 movie, which starred David Bowie.
Chiwetel Ejiofor as an alien, simply known as Faraday, who arrives on Planet Earth at a turning point in human evolution and is introduced to Thomas Newton, the role played by Bowie and now played by Bill Nighy. Naomie Harris, Annelle Olaleye, Clarke Peters and Rob Delaney also star.
An absolute must-see with an all-star cast and a devoted fanbase, who will tell anybody who will listen that this is the finest show of the last 20 years.
Deadwood chronicles life in the South Dakota town of Deadwood in the 1870s, exploring its transition from lawless camp to town and showcasing how civilisation can be built from chaos.
Led by Ian McShane and Timothy Olyphant, the show was canceled prematurely after only three seasons, but was later wrapped up in a one-off movie event which provided the series with a satisfying end. Both of which are on Paramount Plus.
Get the hottest deals available in your inbox plus news, reviews, opinion, analysis, deals and more from the TechRadar team.
| english |
/*
* Copyright 2017 Information and Computational Sciences,
* The James Hutton Institute.
*
* 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 jhi.germinate.shared.enums;
/**
* This {@link Enum} represents the available types of map formats. {@link #getFileType()} can be used to get the associated {@link FileType}.
*
* @author <NAME>
*/
public enum MapFormat
{
flapjack(FileType.map),
mapchart(FileType.mct),
strudel(FileType.strudel);
private FileType fileType;
MapFormat(FileType fileType)
{
this.fileType = fileType;
}
public FileType getFileType()
{
return fileType;
}
}
| java |
<reponame>cs-namrata-mathur/solution-pack-mitre-attack
{
"@context": "\/api\/3\/contexts\/WorkflowCollection",
"@type": "WorkflowCollection",
"name": "13 - MITRE ATT&CK\u2122 - Defense Evasion",
"description": "Playbooks designed to hunt Defense Evasion Techniques identified in the MITRE ATT&CK Framework",
"visible": true,
"image": null,
"uuid": "d53a0724-ef01-4a8b-b488-4fd588a54160",
"id": 96,
"createUser": "\/api\/3\/people\/3451141c-bac6-<PASSWORD>-<PASSWORD>-8<PASSWORD>",
"createDate": 1633085064,
"modifyUser": "\/api\/3\/people\/3451141c-bac6-467c-8d72-85e0fab569ce",
"modifyDate": 1633085064,
"recordTags": []
} | json |
Seoul (Korea) – Samsung engineers managed to squeeze a fully functional CMOS module providing 8 megapixels of image resolution or cellphone cameras in an area measuring just 28 x 15.3 x 8.5mm. Samsung said cellphones using this chip may surface by the end of the year, but we are not holding our breath, especially not for U.S. availability.
CMOS modules for cellphones have not been able to match the image quality that is delivered by much larger CMOS versions or CCDs in digital cameras. The simple fact that this chip can output more pixels does not really change the circumstance that sensors on the chip are exposed to significantly less light. So don’t expect much more than snapshot capability from such a chip, even with that monster resolution.
However, aside from that, there are some interesting features included in this chip – such as a sensitivity of ISO 1600 and a focal length of F2.6 to make the device more usable in low light conditions.
Samsung Korea said it will use the sensor in its own phones by the end of the year and, as always, the company is always interested in licensing its technology to other parties. Cellphones are typically designed in an 18-month design/development cycle, so there is a good chance that we will see 8 megapixel phones in 2009, if the technology is adopted. As a side note, this 8 megapixel capability would perfectly fit to Nvidia's upcoming System-on-Chip (APX2500) and STMicro’s SoC that is based on ATI technology.
We have some doubts that we will actually see 8 megapixel phones here in the U.S. this year, as mainstream and even higher-end phones in this country seem stuck at the 1.3, 2 or 3.2 megapixel point (yes, we know, there are exceptions such as the outrageously expensive Nokia N95). 5-megapixel CMOS sensors have been available for several years and they still have trouble making their way to the consumer. Once Blackberrys and the iPhone have a 5 megapixel camera, we will be more optimistic that 8 megapixel cellphones are actually on their way.
| english |
<reponame>Sage-ERP-X3/aws-swf
/**
* This simple worker example will respond to any incoming task
* on the 'my-workflow-tasklist, by setting the input parameters as the results of the task
*/
var swf = require('../index');
var activityPoller = new swf.ActivityPoller({
domain: 'test-domain',
taskList: { name: 'my-workflow-tasklist' },
identity: 'simple poller ' + process.pid
});
activityPoller.on('activityTask', function(task) {
console.log("Received new activity task !");
var output = task.config.input;
task.respondCompleted(output, function (err) {
if(err) {
console.log(err);
return;
}
console.log("responded with some data !");
});
});
activityPoller.on('poll', function(d) {
console.log("polling for activity tasks...", d);
});
// Start polling
activityPoller.start();
/**
* It is not recommanded to stop the poller in the middle of a long-polling request,
* because SWF might schedule an ActivityTask to this poller anyway, which will obviously timeout.
*
* The .stopHandler() method will wait for the end of the current polling request,
* eventually wait for a last activity execution, then stop properly :
*/
process.on('SIGINT', activityPoller.stopHandler);
process.on('SIGTERM', activityPoller.stopHandler);
| javascript |
{
"address": "1RedkCkVaXuVXrqCMpoXQS29bwaqsuFdL",
"cert_auth_type": "web",
"cert_sign": "<KEY>
"cert_user_id": "<EMAIL>",
"files": {
"data.json": {
"sha512": "9da514072f175cbb4ddee3475f901399d7152cc8c6cc6f36f6d7ce6e58480a7a",
"size": 247
}
},
"inner_path": "data/users/14NydP2LLY59TBYtWn61qJPuR7w7HizwjG/content.json",
"modified": 1479460166.106164,
"signs": {
"14NydP2LLY59TBYtWn61qJPuR7w7HizwjG": "<KEY>
}
} | json |
Actor-turned-travel vlogger Shenaz Treasury shared on her Instagram Stories on Tuesday, that she has been diagnosed with prosopagnosia. Shenaz is known for playing the role of Alisha in Shahid Kapoor-Amrita Rao starrer Ishq Vishk.
In another story, she wrote, “Signs and symptoms of face blindness or prosopagnosia. 1. You have failed to recognise a close friend or family member, especially when you weren’t expecting to see them. Yes, that is me. Takes me a minute to register who the person is. Sometimes even a close friend I haven’t seen in a while. "
Shenaz is currently working as a travel blogger. She has also appeared in films such as Umar, Aagey Se Right, Radio, Luv Ka The End, and Delhi Belly.
Read all the Latest News , Breaking News , watch Top Videos and Live TV here. | english |
<reponame>jb-oliveira/springboot-graphql
package com.jbosco.graphqldemo.model;
import lombok.Data;
@Data
public class StockDetails {
private String ticker;
private String stockValue;
private String volume;
private String avarageVolume;
private String PE_Ratio;
private String EPS;
private String dividend;
private String marcketCap;
private String previousOpen;
private String previousClose;
}
| java |
{"citations": [{"Paper_link": "http://pubs.acs.org/doi/abs/10.1021/ja809156t", "Title": "Insights into the kinetics of semiconductor nanocrystal nucleation and growth", "authors": ["<NAME>", "<NAME> "], "Citations_Link": "https://scholar.google.com/scholar?cites=4916993804708622332&as_sdt=400005&sciodt=0,14&hl=en&num=20"}, {"Paper_link": "http://pubs.rsc.org/en/content/articlehtml/2012/dt/c2dt12266a", "Title": "Recent progress in the synthesis of inorganic nanoparticles", "authors": ["<NAME>", "<NAME>", "<NAME>", "<NAME> "], "Citations_Link": "https://scholar.google.com/scholar?cites=3173605814939259003&as_sdt=400005&sciodt=0,14&hl=en&num=20"}, {"Paper_link": "http://www.annualreviews.org/doi/abs/10.1146/annurev-anchem-060908-155236", "Title": "Characterization of nanomaterials by physical methods", "authors": ["<NAME>", "<NAME> "], "Citations_Link": "https://scholar.google.com/scholar?cites=5593890923116301445&as_sdt=400005&sciodt=0,14&hl=en&num=20"}, {"Paper_link": "http://hrcak.srce.hr/file/114166", "Title": "Synthesis, structural and optical properties of PVP encapsulated CdS nanoparticles", "authors": ["<NAME>", "<NAME>", "<NAME> "], "Citations_Link": "https://scholar.google.com/scholar?cites=65533703594175246&as_sdt=400005&sciodt=0,14&hl=en&num=20"}, {"Paper_link": "http://www.sciencedirect.com/science/article/pii/S0927024810004800", "Title": "Poly (3-hexylthiophene): Functionalized single-walled carbon nanotubes:(6, 6)-phenyl-C 61-butyric acid methyl ester composites for photovoltaic cell at ambient \u2026", "authors": ["<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME> "], "Citations_Link": "https://scholar.google.com/scholar?cites=14623164366753578331&as_sdt=400005&sciodt=0,14&hl=en&num=20"}, {"Paper_link": "http://www.sciencedirect.com/science/article/pii/S0021979711011180", "Title": "Growth kinetics of platinum nanocrystals prepared by two different methods: Role of the surface", "authors": ["<NAME>", "<NAME> "], "Citations_Link": "https://scholar.google.com/scholar?cites=13992702717444253194&as_sdt=400005&sciodt=0,14&hl=en&num=20"}, {"Paper_link": "http://dl.acm.org/citation.cfm?id=1928959", "Title": "Simple synthesis and luminescence characteristics of PVP-capped GeO 2 nanoparticles", "authors": ["<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME> "], "Citations_Link": "https://scholar.google.com/scholar?cites=9229602818772778586&as_sdt=400005&sciodt=0,14&hl=en&num=20"}, {"Paper_link": "http://onlinelibrary.wiley.com/doi/10.1002/asia.201301692/full", "Title": "The Application of CdSe Quantum Dots with Multicolor Emission as Fluorescent Probes for Cell Labeling", "authors": ["<NAME>", "<NAME>", "<NAME> "], "Citations_Link": "https://scholar.google.com/scholar?cites=4189767930255304336&as_sdt=400005&sciodt=0,14&hl=en&num=20"}, {"Paper_link": "http://www.sciencedirect.com/science/article/pii/S0254058414000042", "Title": "Real time X-ray scattering study of the formation of ZnS nanoparticles using synchrotron radiation", "authors": ["<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME> "], "Citations_Link": "https://scholar.google.com/scholar?cites=1577944922627353373&as_sdt=400005&sciodt=0,14&hl=en&num=20"}, {"Paper_link": "http://pubs.rsc.org/en/content/articlehtml/2016/re/c6re00073h", "Title": "Kinetics of nanocrystal synthesis in a microfluidic reactor: theory and experiment", "authors": ["<NAME>", "<NAME> "], "Citations_Link": "https://scholar.google.com/scholar?q=related:XJPEJRUwPFcJ:scholar.google.com/&hl=en&num=20&as_sdt=0,14&sciodt=0,14"}, {"Paper_link": "http://link.springer.com/article/10.1007/s11051-014-2264-y", "Title": "Growth laws for surfactant-coated nanocrystals: Ostwald ripening and size focusing", "authors": ["<NAME> "], "Citations_Link": "https://scholar.google.com/scholar?q=related:5-8r_T6F_pYJ:scholar.google.com/&hl=en&num=20&as_sdt=0,14&sciodt=0,14"}], "paper_link": "https://scholar.google.com/citations?view_op=view_citation&hl=en&user=Zs9227oAAAAJ&cstart=1159&pagesize=100&citation_for_view=Zs9227oAAAAJ:onKP9CxGSkIC", "authors": ["<NAME>", "<NAME>", "<NAME>"], "title": "Investigations of the Growth Kinetics of Capped CdSe and CdS Nanocrystals by a Combined Use of Small Angle X\u2010ray Scattering and Other Techniques", "publication": "Chemistry\u2013An Asian Journal 3 (8\u20109), 1435-1442, 2008"} | json |
<gh_stars>1-10
[{"namaKab":"<NAME>","originalFilename":"foto mison.jpg","namaPartai":"Partai Bulan Bintang","id":278707,"noUrut":1,"nama":"<NAME>, SE","stringJenisKelamin":"Laki-Laki"},{"originalFilename":"foto mainder.jpg","namaPartai":"Partai Bulan Bintang","id":275865,"noUrut":2,"nama":"<NAME>, SE","stringJenisKelamin":"Laki-Laki"},{"originalFilename":"foto mira enumbi.jpg","namaPartai":"Partai Bulan Bintang","id":276357,"noUrut":3,"nama":"<NAME>","stringJenisKelamin":"Perempuan"},{"namaKab":"<NAME>","originalFilename":"foto yendiwanimbo.jpg","namaPartai":"Partai Bulan Bintang","id":278226,"noUrut":4,"nama":"<NAME>","stringJenisKelamin":"Laki-Laki"},{"namaKab":"<NAME>","originalFilename":"foto teliben.jpg","namaPartai":"Partai Bulan Bintang","id":280886,"noUrut":5,"nama":"<NAME>","stringJenisKelamin":"Perempuan"}] | json |
import { renderHook, act } from "@testing-library/react-hooks";
import useDarkMode from "hooks/useDarkMode";
import { DarkModeContextProvider } from "context/DarkModeContext";
import { ReactNode } from "react";
describe("useDarkMode", () => {
it("throws error if called outside of NotificationsProvider", () => {
expect.hasAssertions();
const { result } = renderHook(() => useDarkMode());
expect(result.error).toStrictEqual(
Error("useDarkMode must be used within a DarkModeProvider")
);
});
it("toggleDarkMode function", () => {
expect.hasAssertions();
const wrapper = ({ children }: { children: ReactNode }) => (
<DarkModeContextProvider>{children}</DarkModeContextProvider>
);
const { result } = renderHook(() => useDarkMode(), { wrapper });
act(() => {
result.current.toggleDarkMode();
});
expect(result.current.darkMode).toBe(false);
act(() => {
result.current.toggleDarkMode();
});
expect(result.current.darkMode).toBe(true);
});
});
| typescript |
<filename>store/assets/js/store.js<gh_stars>0
function handleBackplate(event){
//Character Backplate
var data = $(this).attr("data");
if(data != null){
$("." + data).css("visibility", "visible");
console.log($(this).attr("data"));
} else {
console.log("NO DATA");
}
};
$(".char-avatar").on("click", handleBackplate);
| javascript |
module.exports = {
extends: 'stylelint-config-standard',
overrides: [
{ files: ['**/*.vue'], customSyntax: 'postcss-html' },
{ files: ['**/*.scss'], customSyntax: 'postcss-scss' },
],
rules: {
'no-eol-whitespace': null, // disabled to prevent bad formatting inside style attributes in .vue files
'rule-empty-line-before': null, // let it be up to the developer
'selector-list-comma-newline-after': null, // let it be up to the developer
'declaration-colon-newline-after': null, // let it be up to the developer
'value-list-comma-newline-after': null, // let it be up to the developer
'declaration-empty-line-before': null, // let it be up to the developer
'at-rule-empty-line-before': null, // let it be up to the developer
'comment-empty-line-before': null, // let it be up to the developer
'comment-whitespace-inside': null, // let it be up to the developer
'selector-class-pattern': null, // let it be up to the developer
'keyframes-name-pattern': null, // let it be up to the developer
'alpha-value-notation': null, // let it be up to the developer
'max-line-length': null, // let it be up to the developer
'function-url-quotes': null, // let it be up to the developer
'font-family-name-quotes': null, // let it be up to the developer
'declaration-block-trailing-semicolon': null, // disabled to prevent conflicts with prettier
'string-quotes': 'single', // changed to prevent conflicts with prettier
'at-rule-no-unknown': [
true,
{
ignoreAtRules: [
'tailwind',
'apply',
'layer',
'screen',
],
},
], // updated to work fine with tailwind directives
'function-no-unknown': [
true,
{
ignoreFunctions: [
'theme', // tailwindcss
'l', // postcss-color-function
'a', // postcss-color-function
'hue', // postcss-color-function
'transparentize', // sass
],
},
], // updated to work fine with tailwind directives
'no-descending-specificity': null, // disabled (but should probably be enabled)
'number-max-precision': null, // disabled (but should probably be enabled)
'property-no-vendor-prefix': null, // disabled (but should probably be enabled)
'at-rule-no-vendor-prefix': null, // disabled (but should probably be enabled)
'value-no-vendor-prefix': null, // disabled (but should probably be enabled)
},
};
| javascript |
Sita Devi, 55, from Barmer is getting ready to go to the residential Barefoot College in the small village of Tilonia in Ajmer district of Rajasthan. She is one of the 17 women from far-flung villages in the State that the college is hosting to train in solar home-lighting system fabrication, assembling of solar panels and trouble shooting.
The college was started by the visionary social worker Bunker Roy 43 years ago. It is now home to women solar engineers, popularly called solar mamas. The students stay in the college for six months, attending classes from 9 a. m. to 5 p. m. Many of them have never stepped out of their homes, and when they come out of college, there is nothing stopping them.
The 2,200 unlettered women who have been trained so far are proficient in designing, installing and maintaining solar energy systems that light up their villages and supply power for various equipment. After completing the course, the solar mamas take care of the systems of nearly 50 homes around their village, earning around ₹6,700 each.
Sunshine State: Indira Devi, right, from Paldi in Rajasthan and Maya Devi from Kakalwada in the State are solar cooker engineers at Barefoot College of Tilonia in Ajmer. They are part of a band of 2,200 ‘solar mamas’ churned out by the college in the past 43 years.
Emissaries of the sun: Phoolwanti Devi, a solar mama, teaches foreigners at Barefoot College.
Mother board: Sita Devi from Barmer teaches solar home lighting system fabrication, assembling and trouble shooting.
Harnessing the sun: Kanta Devi, right, and Bhagvati Devi from Harmara village are experts in solar water heater mechanism at the college.
Widening reach: Sangeetha Kanwar carrying a solar panel for installation at Gagardoo village.
A way with tools: Suraj Kanwar after repairing a solar panel at a house at Kachnariya village.
All agleam: Children studying under a solar lamp in a house at Solawata. | english |
#!/usr/bin/env python2
# Copyright 2013-present Barefoot Networks, Inc.
# SPDX-FileCopyrightText: 2018-present Open Networking Foundation
#
# SPDX-License-Identifier: Apache-2.0
import Queue
import argparse
import json
import logging
import os
import re
import subprocess
import sys
import threading
import time
from collections import OrderedDict
import google.protobuf.text_format
import grpc
from p4.v1 import p4runtime_pb2, p4runtime_pb2_grpc
PTF_ROOT = os.path.dirname(os.path.realpath(__file__))
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger("PTF runner")
def error(msg, *args, **kwargs):
logger.error(msg, *args, **kwargs)
def warn(msg, *args, **kwargs):
logger.warn(msg, *args, **kwargs)
def info(msg, *args, **kwargs):
logger.info(msg, *args, **kwargs)
def debug(msg, *args, **kwargs):
logger.debug(msg, *args, **kwargs)
def check_ifaces(ifaces):
"""
Checks that required interfaces exist.
"""
ifconfig_out = subprocess.check_output(['ifconfig'])
iface_list = re.findall(r'^([a-zA-Z0-9]+)', ifconfig_out, re.S | re.M)
present_ifaces = set(iface_list)
ifaces = set(ifaces)
return ifaces <= present_ifaces
def build_bmv2_config(bmv2_json_path):
"""
Builds the device config for BMv2
"""
with open(bmv2_json_path) as f:
return f.read()
def update_config(p4info_path, bmv2_json_path, grpc_addr, device_id):
"""
Performs a SetForwardingPipelineConfig on the device
"""
channel = grpc.insecure_channel(grpc_addr)
stub = p4runtime_pb2_grpc.P4RuntimeStub(channel)
debug("Sending P4 config")
# Send master arbitration via stream channel
# This should go in library, to be re-used also by base_test.py.
stream_out_q = Queue.Queue()
stream_in_q = Queue.Queue()
def stream_req_iterator():
while True:
p = stream_out_q.get()
if p is None:
break
yield p
def stream_recv(stream):
for p in stream:
stream_in_q.put(p)
def get_stream_packet(type_, timeout=1):
start = time.time()
try:
while True:
remaining = timeout - (time.time() - start)
if remaining < 0:
break
msg = stream_in_q.get(timeout=remaining)
if not msg.HasField(type_):
continue
return msg
except: # timeout expired
pass
return None
stream = stub.StreamChannel(stream_req_iterator())
stream_recv_thread = threading.Thread(target=stream_recv, args=(stream,))
stream_recv_thread.start()
req = p4runtime_pb2.StreamMessageRequest()
arbitration = req.arbitration
arbitration.device_id = device_id
election_id = arbitration.election_id
election_id.high = 0
election_id.low = 1
stream_out_q.put(req)
rep = get_stream_packet("arbitration", timeout=5)
if rep is None:
error("Failed to establish handshake")
return False
try:
# Set pipeline config.
request = p4runtime_pb2.SetForwardingPipelineConfigRequest()
request.device_id = device_id
election_id = request.election_id
election_id.high = 0
election_id.low = 1
config = request.config
with open(p4info_path, 'r') as p4info_f:
config.p4info.ParseFromString(p4info_f.read())
config.p4_device_config = build_bmv2_config(bmv2_json_path)
request.action = p4runtime_pb2.SetForwardingPipelineConfigRequest.VERIFY_AND_COMMIT
try:
stub.SetForwardingPipelineConfig(request)
except Exception as e:
error("Error during SetForwardingPipelineConfig")
error(str(e))
return False
return True
finally:
stream_out_q.put(None)
stream_recv_thread.join()
def run_test(p4info_path, grpc_addr, device_id, cpu_port, ptfdir, port_map_path,
extra_args=()):
"""
Runs PTF tests included in provided directory.
Device must be running and configfured with appropriate P4 program.
"""
# TODO: check schema?
# "ptf_port" is ignored for now, we assume that ports are provided by
# increasing values of ptf_port, in the range [0, NUM_IFACES[.
port_map = OrderedDict()
with open(port_map_path, 'r') as port_map_f:
port_list = json.load(port_map_f)
for entry in port_list:
p4_port = entry["p4_port"]
iface_name = entry["iface_name"]
port_map[p4_port] = iface_name
if not check_ifaces(port_map.values()):
error("Some interfaces are missing")
return False
ifaces = []
# FIXME
# find base_test.py
pypath = os.path.dirname(os.path.abspath(__file__))
if 'PYTHONPATH' in os.environ:
os.environ['PYTHONPATH'] += ":" + pypath
else:
os.environ['PYTHONPATH'] = pypath
for iface_idx, iface_name in port_map.items():
ifaces.extend(['-i', '{}@{}'.format(iface_idx, iface_name)])
cmd = ['ptf']
cmd.extend(['--test-dir', ptfdir])
cmd.extend(ifaces)
test_params = 'p4info=\'{}\''.format(p4info_path)
test_params += ';grpcaddr=\'{}\''.format(grpc_addr)
test_params += ';device_id=\'{}\''.format(device_id)
test_params += ';cpu_port=\'{}\''.format(cpu_port)
cmd.append('--test-params={}'.format(test_params))
cmd.extend(extra_args)
debug("Executing PTF command: {}".format(' '.join(cmd)))
try:
# we want the ptf output to be sent to stdout
p = subprocess.Popen(cmd)
p.wait()
except:
error("Error when running PTF tests")
return False
return p.returncode == 0
def check_ptf():
try:
with open(os.devnull, 'w') as devnull:
subprocess.check_call(['ptf', '--version'],
stdout=devnull, stderr=devnull)
return True
except subprocess.CalledProcessError:
return True
except OSError: # PTF not found
return False
# noinspection PyTypeChecker
def main():
parser = argparse.ArgumentParser(
description="Compile the provided P4 program and run PTF tests on it")
parser.add_argument('--p4info',
help='Location of p4info proto in binary format',
type=str, action="store", required=True)
parser.add_argument('--bmv2-json',
help='Location BMv2 JSON output from p4c (if target is bmv2)',
type=str, action="store", required=False)
parser.add_argument('--grpc-addr',
help='Address to use to connect to P4 Runtime server',
type=str, default='localhost:50051')
parser.add_argument('--device-id',
help='Device id for device under test',
type=int, default=1)
parser.add_argument('--cpu-port',
help='CPU port ID of device under test',
type=int, required=True)
parser.add_argument('--ptf-dir',
help='Directory containing PTF tests',
type=str, required=True)
parser.add_argument('--port-map',
help='Path to JSON port mapping',
type=str, required=True)
args, unknown_args = parser.parse_known_args()
if not check_ptf():
error("Cannot find PTF executable")
sys.exit(1)
if not os.path.exists(args.p4info):
error("P4Info file {} not found".format(args.p4info))
sys.exit(1)
if not os.path.exists(args.bmv2_json):
error("BMv2 json file {} not found".format(args.bmv2_json))
sys.exit(1)
if not os.path.exists(args.port_map):
print "Port map path '{}' does not exist".format(args.port_map)
sys.exit(1)
try:
success = update_config(p4info_path=args.p4info,
bmv2_json_path=args.bmv2_json,
grpc_addr=args.grpc_addr,
device_id=args.device_id)
if not success:
sys.exit(2)
success = run_test(p4info_path=args.p4info,
device_id=args.device_id,
grpc_addr=args.grpc_addr,
cpu_port=args.cpu_port,
ptfdir=args.ptf_dir,
port_map_path=args.port_map,
extra_args=unknown_args)
if not success:
sys.exit(3)
except Exception:
raise
if __name__ == '__main__':
main()
| python |
<reponame>matteoferla/Name-synomyms-to-Uniprot
{"Alpha-ketoglutarate-dependent dioxygenase": "J3BZS6", "KDO5": "J3BZS6", "L-lysine hydroxylase": "J3BZS6", "J3BZS6": "J3BZS6", "LYS4O_FLASC": "J3BZS6", "L-lysine 4-hydroxylase": "J3BZS6"} | json |
<gh_stars>0
net.sf.jasperreports.chartthemes.simple.BlockFrameWrapper
| rust |
Pandian is wielding megaphone for this Tamil comedy.
This incident took place when the unit were shooting some pivotal scenes at an outdoor location in Trichy. The unbearable hot Summer is said to have taken a toll of her health. Sources say, Aishwarya will join the shoot as soon as she gets back to normalcy. Get well soon Aish!
Aishwarya will be seen as a school-going girl, a role any other star kid wouldn't agree to do in her first movie, in 'Pattathu Yaanai'. She is receiving a lot of accolades for her beauty and acting prowess even before the release of her debut flick.
'Pattathu Yaanai' will hit the screens in the second half of 2013. No doubt, Industry and the film buffs will eagerly wait to know what she is upto once the film reaches theatres. Wish Aish reduces the shortage of A-list actresses down South to some extent! | english |
{
"id": 25565,
"title": [
"[Underground Temple, Sunken Tomb]"
],
"description": [
"Though several lit torches light the way close to the ruin walls of the corridor, the center of the wide passage remains shrouded in murk and littered with small dirt piles. A small swarm of bats flit past, the raspy sound of their membranous wings echoing as they go. In several locations, wood beams have been hammered together to create a brace where the walls have weakened."
],
"paths": [
"Obvious exits: east"
],
"location": "Duskruin Arena",
"wayto": {
"25564": "east"
},
"timeto": {
"25564": 0.2
},
"check_location": true
} | json |
import formatDate from "helpers/formatDate";
import joinClasses from "helpers/joinClasses";
export default function InvitationsList({ list = [] }) {
return (
<div>
<h4 className="text-md font-medium mt-5 mb-2 dark:text-white">
Invitations en attente
</h4>
<ul className="w-full">
{list.length ? (
list.map((invitation, index) => (
<li
key={invitation.id}
className={joinClasses(
"flex gap-10 px-5 py-3 dark:text-white",
index % 2
? "bg-white dark:bg-slate-600"
: "bg-gray-100 dark:bg-slate-700"
)}
>
<p className="font-medium">{formatDate(invitation.created_at)}</p>
<div>
<p className="font-medium">{invitation.name}</p>
<p className="text-sm">{invitation.email}</p>
</div>
</li>
))
) : (
<p className="text-center text-sm font-medium py-5 dark:text-white">
Aucune invitation
</p>
)}
</ul>
</div>
);
}
| javascript |
GM started previewing its new "dual mode" hybrid technology to the press today. If the fuel consumption and cost premium estimates are true the vehicles could be a good investment.
GM was quoted by theSacramento Bee as saying that the 2008 Chevy Tahoe will get 25 percent better fuel economy than the current model. By my quick calculations, if gas stays at $3 a gallon and the Tahoe is driven 12,000 miles per year, that's $400 a year in savings, so even without considering the federal tax credit it would only take five years to get back the estimated $2000 premium.
GM is co-developing the technology with DaimlerChrysler and BMW, and is adding the ability to selectively turn off cylinders when they are not needed.
Regardless of your opinion of SUVs, it's better to have models that are more efficient on the road than the current versions with MPG ratings that are too young to vote. Hopefully we'll quickly see a rollout of many hybrid trucks and SUVs.
| english |
All breads, pastas, waffles, bagels, cereals are made from white sticky flour, which is really harmful for our digestive system.
Keeping teens and pre-teens off white powders is getting tougher by the minute. We are welcoming more and more international food chains who only use processed flours, refined sugars and junk. Food served or made today is far from what we would like to give our kids, which is nutrient-dense food to keep their immunity high. Feeding kids white flour or maida, white sugar, salty snacks, breads, bagels and other junk foods leads to mood swings, attitude problems and weird behaviour.
Most macronutrients used in cooking or in restaurants, even when food is ordered in, is loaded only with plain processed flour and refined sugars in the name of bread. All breads, pastas, waffles, bagels, cereals are made from white sticky flour, which is really harmful for our digestive system and the Enteric Nervous System. These grains lack fibre and micronutrients as they are way too polished in the factories, making them non-beneficial for consumption. Teenagers are in a rapid phase of physical and neurological development that requires us to pay attention to how food is doing them more harm than good. Simple changes and being able to read through ingredient labels well is a great way to avoid these gut and brain damaging foods.
Don’t get fooled by an image of a field of corn and the lovely colours and try to look beyond the cover of the product you purchase. Marketing gimmicks have a huge role to play, which is why we reach out to the so-called healthy boxes. Make sure the first 3-4 ingredients are complex and fibre rich.
If you are a pasta lover, it’s alright to indulge in it once or twice a week making sure the pasta is made from fibre rich grains like quinoa, wholewheat, buckwheat or even red bean pasta. Cook your pasta with different vegetable sauces, herbs and delicious fresh cheese.
Cooking at home can be therapeutic as well as easy on the pocket. Cook more often with your teenagers; encourage them to feel, smell and taste different vegetables, fruits, nuts, seeds and cheese. Use different grains to cook and different oils to get all the good essential fats required for that body to develop into a strong and healthy one. Good fats are good for the brains to develop well too.
If gluten is removed from wheat, it will be replaced by an artificial chemical that gives the same sticky texture to the food like gluten does. If it’s sugar-free, then artificial sugar will be added to make the product sweet. And last but not the least, if fat is removed, then lard would be added to make it taste, look and feel better. So, go in for the real sugar and fat once in a while to steer clear from these harmful chemicals.
Fix a grocery shopping day along with your teens, making sure they read labels well and pick a rainbow of fruits and vegetables. Encourage them to pick natural, plant-based foods rather than packaged foods.
Breads are a great source of energy, but the right kind of bread is equally important. Plain white bread can raise blood sugar levels and increase fat around the hips, thighs and belly. Encourage more fibre rich grain breads like amaranth, jowar and quinoa breads. Baking breads at home can be a great option for cooking on Family Days.
Pick whole fruits, root vegetables, rich grains, unprocessed flours and lots of fresh water to drink throughout the day.
Quick meals, instant packets, snacks etc. are high in sodium, sugar and preservatives. These lead to various simple and chronic illnesses. Make sure you and your child are getting natural foods in more rather than processed. Hormonal changes, mood swings and PCOS are one of the major problems teenagers especially face, thanks to ignorance, lack of time to cook and ordering in way more than should be allowed. Guidelines need to be laid down by the adults of the family to avoid obesity and various other problems.
(The writer is an integrative and functional nutritionist. ) | english |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
'use strict';
import * as assert from 'assert';
import scorer = require('vs/base/common/scorer');
suite('Scorer', () => {
test("score", function() {
const target = 'HelLo-World';
const scores = [];
scores.push(scorer.score(target, 'HelLo-World')); // direct case match
scores.push(scorer.score(target, 'hello-world')); // direct mix-case match
scores.push(scorer.score(target, 'HW')); // direct case prefix (multiple)
scores.push(scorer.score(target, 'H')); // direct case prefix
scores.push(scorer.score(target, 'hw')); // direct mix-case prefix (multiple)
scores.push(scorer.score(target, 'h')); // direct mix-case prefix
scores.push(scorer.score(target, 'W')); // direct case word prefix
scores.push(scorer.score(target, 'w')); // direct mix-case word prefix
scores.push(scorer.score(target, 'Ld')); // in-string case match (multiple)
scores.push(scorer.score(target, 'L')); // in-string case match
scores.push(scorer.score(target, 'ld')); // in-string mix-case match
scores.push(scorer.score(target, 'l')); // in-string mix-case match
scores.push(scorer.score(target, '4')); // no match
// Assert scoring order
let sortedScores = scores.sort((a, b) => b - a);
assert.deepEqual(scores, sortedScores);
});
test("cache", function() {
const cache = Object.create(null);
scorer.score('target', 'query', cache);
scorer.score('target', 't', cache);
assert.equal(Object.getOwnPropertyNames(cache).length, 2);
});
test("matches", function() {
assert.ok(scorer.matches('hello world', 'h'));
assert.ok(!scorer.matches('hello world', 'q'));
assert.ok(scorer.matches('hello world', 'hw'));
assert.ok(scorer.matches('hello world', 'horl'));
assert.ok(scorer.matches('hello world', 'd'));
assert.ok(!scorer.matches('hello world', 'wh'));
assert.ok(!scorer.matches('d', 'dd'));
});
}); | typescript |
<gh_stars>1-10
package cuckoo
import (
"fmt"
"net/http"
)
// ErrNotAuthorized is returned when cuckoo replies with HTTP 401
var ErrNotAuthorized = fmt.Errorf("not authorized")
// MakeRequest performs the provided request adding in the appropriate auth header
//
// It will return ErrNotAuthorized if the auth fails
func (c *Client) MakeRequest(req *http.Request) (*http.Response, error) {
req.Header.Add("Authorization", fmt.Sprintf("Bearer %s", c.APIKey))
resp, err := c.Client.Do(req)
if err != nil {
return nil, err
}
// TODO: Check if this status code is accurate
if resp.StatusCode == 401 {
return resp, ErrNotAuthorized
}
return resp, err
}
| go |
<reponame>bentonporter/jersey-hmac-auth
package com.bazaarvoice.auth.hmac.common;
import com.google.common.io.BaseEncoding;
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
import java.io.UnsupportedEncodingException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
public class Signer {
private static final String HMAC_SHA256 = "HmacSHA256";
private static final String UTF_8 = "UTF-8";
private final String secretKey;
public Signer(String secretKey) {
this.secretKey = secretKey;
}
public String createSignature(byte[] message) {
byte[] digest = calculateDigest(message);
return BaseEncoding.base64Url().encode(digest);
}
private byte[] calculateDigest(byte[] message) {
try {
byte[] secretKeyBytes = secretKey.getBytes(UTF_8);
SecretKeySpec secretKeySpec = new SecretKeySpec(secretKeyBytes, HMAC_SHA256);
Mac mac = Mac.getInstance(HMAC_SHA256);
mac.init(secretKeySpec);
mac.update(message);
return mac.doFinal();
} catch (UnsupportedEncodingException e) {
throw new IllegalStateException("Invalid character encoding: " + UTF_8, e);
} catch (NoSuchAlgorithmException e) {
throw new IllegalStateException("Invalid MAC algorithm: " + HMAC_SHA256, e);
} catch (InvalidKeyException e) {
throw new IllegalStateException("Invalid MAC secret key", e);
}
}
}
| java |
{
"npm": "eleventy-plugin-purgecss",
"author": "proog",
"description": "will remove unused CSS using PurgeCSS."
}
| json |
On Cell Guru this week, we review the world's first squeezable phone - the U11 from HTC. Find out if HTC is back on the map with its flagship smartphone, and if should you buy it. Micromax returns with Yu Yureka Black 2017 edition - we find out if the company has done enough to take on the highly competitive market of smartphones under Rs. 10,000. Also on the show, is an epic shootout between three of the biggest flagship smartphones - the LG G6 vs Samsung Galaxy S8 vs HTC U11.
| english |
New Delhi, April 13 : To enhance user experience when searching for fashion content, Google on Thursday introduced a new feature called "style ideas" in Image Search on mobile web and in Google app for Android.
"Style ideas" throws up high-quality images that show how someone will look while wearing or carrying the item you searched for.
"As an added bonus, users will also see an expanded carousel for 'similar items' while searching for apparel products," the company said in a statement.
With "style ideas", you can see real-life options, it added. | english |
import React from 'react';
import styled from '@emotion/native';
import { Variants } from '../../themes';
import { rippleConfig } from '../../constants';
import ButtonIcon from '../Icon';
import View from '../View';
import {
Text,
TextProps,
Pressable as Base,
PressableProps as BaseProps,
ActivityIndicator,
} from 'react-native';
import {
compose,
color,
ColorProps,
space,
SpaceProps,
border,
BorderProps,
typography,
TypographyProps,
variant as systemVariant,
} from 'styled-system';
const { ButtonVariants, ButtonSizes } = Variants;
export type ButtonProps = {
variant:
| 'primary'
| 'blue'
| 'success'
| 'danger'
| 'outline'
| 'outline-blue'
| 'link'
| 'outline-disabled'
| 'disabled'
| 'link-disabled';
size: 'sm' | 'md' | 'lg' | 'xl';
title: string;
disabled?: boolean;
icon?: string;
iconPosition?: 'left' | 'right';
/** Default will follows button's fontSize but also dynamically applicable */
iconSize?: number;
isLoading?: boolean;
} & BaseProps &
SpaceProps &
BorderProps &
TypographyProps;
const BaseButton = styled(Base)<Omit<ButtonProps, 'title'>>`
${compose(
space,
border,
typography,
systemVariant(ButtonVariants),
systemVariant(ButtonSizes)
)}
`;
export type ButtonTextProps = TextProps &
TypographyProps &
ColorProps &
SpaceProps;
const ButtonText = styled(Text)<ButtonTextProps>`
${compose(typography, color, space)}
`;
const Button = ({
variant,
size,
title,
disabled,
icon,
iconPosition,
iconSize,
isLoading,
...props
}: ButtonProps) => {
const currentVariant = (() => {
if (disabled) {
switch (variant) {
case 'outline':
case 'outline-blue':
return 'outline-disabled';
case 'link':
return 'link-disabled';
default:
return 'disabled';
}
}
return variant;
})();
const usedProps = {
variant: currentVariant,
size,
android_ripple: rippleConfig[currentVariant],
android_disableSound: disabled,
disabled,
isLoading,
...props,
};
/* NOTE: Works on on_device mode, doesn't work on storybook web view */
if (isLoading) {
const activitySize = (() => {
switch (size) {
case 'lg':
case 'xl':
return 'large';
case 'sm':
case 'md':
return 'small';
default:
return 'small';
}
})();
/* Override to disabled props so it don't trigger actions */
usedProps.disabled = true;
usedProps.android_disableSound = true;
return (
<BaseButton {...usedProps}>
<View flexDirection="row" alignItems="center">
<ActivityIndicator
size={activitySize}
color={ButtonVariants.variants[currentVariant].color}
accessibilityHint="loading"
/>
</View>
</BaseButton>
);
}
return (
<BaseButton {...usedProps}>
<View flexDirection="row" alignItems="center">
{icon && iconPosition === 'left' && (
<ButtonIcon
name={icon}
size={iconSize ?? ButtonSizes.variants[size].fontSize}
color={ButtonVariants.variants[currentVariant].color}
testID="btnIconLeft"
/>
)}
<ButtonText
color={ButtonVariants.variants[currentVariant].color}
fontSize={ButtonSizes.variants[size].fontSize}
fontWeight={props?.fontWeight ?? '600'}
ml={icon && iconPosition === 'left' ? 2 : 0}
mr={icon && iconPosition === 'right' ? 2 : 0}
>
{title}
</ButtonText>
{icon && iconPosition === 'right' && (
<ButtonIcon
name={icon}
size={iconSize ?? ButtonSizes.variants[size].fontSize}
color={ButtonVariants.variants[currentVariant].color}
testID="btnIconRight"
/>
)}
</View>
</BaseButton>
);
};
Button.defaultProps = {
variant: 'primary',
size: 'md',
title: 'Button',
disabled: false,
iconPosition: 'left',
isLoading: false,
};
export default Button;
| typescript |
<filename>jit_testing.md
# JIT performance tests.
We should do some benchmarking of the JIT before launching PHP with it...
## Notes
[JITs are un-ergonomic](https://abe-winter.github.io/2020/03/28/jitu-brutus.html)
## Projects to test
### GSON serializer
From [/r/php](https://en.reddit.com/r/PHP/comments/fozbw2/im_already_loving_php_8/fljf60p/) and user [prgmctan](https://en.reddit.com/user/prgmctan).
Repo for serializer: https://github.com/tebru/gson-php
Related to projects:
https://github.com/php-serializers/ivory-serializer-benchmark
https://github.com/tsantos84/serializer-benchmark | markdown |
{"questions": [{"player_1": {"name": "<NAME>", "player_stat": 1.0}, "player_2": {"name": "<NAME>", "player_stat": 0.0}, "stat": "hundreds", "skill": "BAT", "question_text": "Who has scored more hundreds?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 45.3}, "player_2": {"name": "<NAME>", "player_stat": 37.07}, "stat": "average", "skill": "BAT", "question_text": "Who has the better batting average?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 313.0}, "player_2": {"name": "<NAME>", "player_stat": 1294.0}, "stat": "runs_given", "skill": "BOWL", "question_text": "Who has given away less runs?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 76.0}, "player_2": {"name": "<NAME>", "player_stat": 91.0}, "stat": "highest", "skill": "BAT", "question_text": "Who has the greater highest score?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 8.0}, "player_2": {"name": "<NAME>", "player_stat": 3.0}, "stat": "maidens", "skill": "BOWL", "question_text": "Who has bowled more maidens?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 22.1}, "player_2": {"name": "<NAME>", "player_stat": 23.4}, "stat": "strike_rate", "skill": "BOWL", "question_text": "Who has the better bowling strike rate?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 8.44}, "player_2": {"name": "<NAME>", "player_stat": 6.57}, "stat": "economy", "skill": "BOWL", "question_text": "Who has the better economy rate?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 23.26}, "player_2": {"name": "<NAME>", "player_stat": 25.71}, "stat": "average", "skill": "BOWL", "question_text": "Who has the better bowling average?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 28.0}, "player_2": {"name": "<NAME>", "player_stat": 108.0}, "stat": "wickets", "skill": "BOWL", "question_text": "Who has taken more wickets?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 396.0}, "player_2": {"name": "<NAME>", "player_stat": 1415.0}, "stat": "runs_given", "skill": "BOWL", "question_text": "Who has given away less runs?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 1.0}, "player_2": {"name": "<NAME>", "player_stat": 1.0}, "stat": "zeroes", "skill": "BAT", "question_text": "Who has more ducks?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 0.0}, "player_2": {"name": "<NAME>", "player_stat": 16.0}, "stat": "fifties", "skill": "BAT", "question_text": "Who has scored more fifties?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 3.0}, "player_2": {"name": "<NAME>", "player_stat": 2.0}, "stat": "maidens", "skill": "BOWL", "question_text": "Who has bowled more maidens?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 39.0}, "player_2": {"name": "<NAME>", "player_stat": 85.0}, "stat": "highest", "skill": "BAT", "question_text": "Who has the greater highest score?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 44.72}, "player_2": {"name": "<NAME>", "player_stat": 27.72}, "stat": "average", "skill": "BOWL", "question_text": "Who has the better bowling average?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 6.0}, "player_2": {"name": "<NAME>", "player_stat": 8.0}, "stat": "sixes", "skill": "BAT", "question_text": "Who has hit more sixes?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 358.0}, "player_2": {"name": "<NAME>", "player_stat": 523.0}, "stat": "runs_given", "skill": "BOWL", "question_text": "Who has given away less runs?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 22.0}, "player_2": {"name": "<NAME>", "player_stat": 18.72}, "stat": "average", "skill": "BOWL", "question_text": "Who has the better bowling average?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 26.96}, "player_2": {"name": "<NAME>", "player_stat": 25.39}, "stat": "average", "skill": "BOWL", "question_text": "Who has the better bowling average?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 37.5}, "player_2": {"name": "<NAME>", "player_stat": 24.61}, "stat": "average", "skill": "BOWL", "question_text": "Who has the better bowling average?", "greater": false}]} | json |
<reponame>g0v/amis-moedict
{"t":"sapisafacidol","h":[{"d":[{"f":"種麵包樹使用的器具。","e":["`Sa~`pisafacidol~ `a~ `sapal~.麵包樹的種苗。"]}]}],"stem":"facidol"} | json |
/********************************************************************
created: 2013/11/21
filename: Delegate.cc
author: Crazii
purpose:
*********************************************************************/
#include <BladePCH.h>
#include <utility/Delegate.h>
namespace Blade
{
//////////////////////////////////////////////////////////////////////////
const char Delegate::ZERO[Delegate::MAX_SIZE] = {0};
//////////////////////////////////////////////////////////////////////////
namespace Impl
{
class DelegateListImpl : public List<Delegate>, public Allocatable {};
}//namespace Impl
using namespace Impl;
//////////////////////////////////////////////////////////////////////////
DelegateList::DelegateList()
{
}
//////////////////////////////////////////////////////////////////////////
DelegateList::~DelegateList()
{
}
//////////////////////////////////////////////////////////////////////////
DelegateList::DelegateList(const DelegateList& src)
{
if(src.mList != NULL)
*mList = *src.mList;
}
//////////////////////////////////////////////////////////////////////////
DelegateList& DelegateList::operator=(const DelegateList& rhs)
{
if (rhs.mList != NULL)
*mList = *rhs.mList;
else
mList.destruct();
return *this;
}
//////////////////////////////////////////////////////////////////////////
void DelegateList::push_back(const Delegate& _delegate)
{
mList->push_back(_delegate);
}
//////////////////////////////////////////////////////////////////////////
bool DelegateList::erase(index_t index)
{
if(mList != NULL && index < mList->size() )
{
DelegateListImpl::iterator i = mList->begin();
while( index-- > 0)
++i;
mList->erase(i);
return true;
}
else
{
assert(false);
return false;
}
}
//////////////////////////////////////////////////////////////////////////
const Delegate& DelegateList::at(index_t index) const
{
if(mList != NULL && index < mList->size() )
{
DelegateListImpl::const_iterator i = mList->begin();
while( index-- > 0)
++i;
return *i;
}
else
BLADE_EXCEPT(EXC_OUT_OF_RANGE, BTString("index out of range"));
}
//////////////////////////////////////////////////////////////////////////
size_t DelegateList::size() const
{
return mList != NULL ? mList->size() : 0;
}
//////////////////////////////////////////////////////////////////////////
void DelegateList::call(void* data) const
{
if (mList == NULL)
return;
for (DelegateListImpl::const_iterator i = mList->begin(); i != mList->end(); ++i)
{
const Delegate& d = (*i);
if (d.hasParameter())
d.call(data);
else
d.call();
}
}
//////////////////////////////////////////////////////////////////////////
void DelegateList::call() const
{
if (mList == NULL)
return;
for (DelegateListImpl::const_iterator i = mList->begin(); i != mList->end(); ++i)
{
const Delegate& d = (*i);
if (!d.hasParameter())
d.call();
}
}
}//namespace Blade | cpp |
{
"original": "Information document for export of non-hazardous waste or imports of non-hazardous waste from EU. See Article 18 and Annex VII of Regulation (EC) No 1013/2006 as retained in UK law ",
"overlay": {
"en": "You need an information document for export of non-hazardous waste or imports of non-hazardous waste from EU. See Article 18 and Annex VII of Regulation (EC) No 1013/2006 as retained in UK law",
"cy": "TBC"
},
"subtext": {
"en": "",
"cy": ""
}
}
| json |
import { FunctionComponent } from 'react'
import Joi from 'joi'
import { Bar, BarSvgProps } from '@nivo/bar'
import { OmitStrict } from '../types'
import { custom, axes } from './common'
import { dimensions } from './commons/dimensions'
import { inheritedColor, ordinalColors } from './commons/colors'
// filter out all dynamic properties
export type BarApiProps = OmitStrict<
BarSvgProps<any>,
| 'isInteractive'
| 'animate'
| 'motionConfig'
| 'onClick'
| 'onMouseEnter'
| 'onMouseLeave'
| 'tooltip'
| 'tooltipLabel'
| 'layers'
| 'role'
| 'ariaLabel'
| 'ariaLabelledBy'
| 'ariaDescribedBy'
| 'isFocusable'
| 'barAriaLabel'
| 'barAriaLabelledBy'
| 'barAriaDescribedBy'
| 'renderWrapper'
| 'initialHiddenIds'
>
export const barMapping = {
component: Bar as FunctionComponent<BarApiProps>,
schema: Joi.object<BarApiProps>().keys({
width: dimensions.width,
height: dimensions.height,
margin: dimensions.margin,
data: custom.array().min(1).required(),
indexBy: Joi.string().required(),
keys: Joi.array().sparse(false).min(1).unique().required(),
indexScale: Joi.object()
.keys({
type: Joi.any().valid('band'),
round: Joi.boolean(),
})
.allow(null),
valueScale: Joi.object()
.keys({
type: Joi.any().valid('linear'),
})
.allow(null),
groupMode: Joi.any().valid('grouped', 'stacked'),
layout: Joi.any().valid('horizontal', 'vertical'),
reverse: Joi.boolean(),
minValue: Joi.alternatives().try(Joi.any().valid('auto'), Joi.number()).required(),
maxValue: Joi.alternatives().try(Joi.any().valid('auto'), Joi.number()).required(),
padding: Joi.number(),
innerPadding: Joi.number(),
borderRadius: Joi.number().min(0),
borderWidth: Joi.number().min(0),
borderColor: inheritedColor,
enableGridX: Joi.boolean(),
enableGridY: Joi.boolean(),
axisTop: axes.axisTop,
axisRight: axes.axisRight,
axisBottom: axes.axisBottom,
axisLeft: axes.axisLeft,
enableLabel: Joi.boolean(),
label: Joi.string(),
labelSkipWidth: Joi.number(),
labelSkipHeight: Joi.number(),
labelTextColor: inheritedColor,
colors: ordinalColors,
colorBy: Joi.string(),
}),
runtimeProps: ['width', 'height', 'colors', 'groupMode'],
defaults: {
margin: { top: 40, right: 50, bottom: 40, left: 50 },
},
}
| typescript |
<reponame>GabrielInTheWorld/reactive-websocket
{
"name": "reactive-websocket",
"version": "1.0.3",
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"prepublishOnly": "npm run build",
"test": "jest",
"build": "tsc"
},
"repository": {
"type": "git",
"url": "git+https://github.com/GabrielInTheWorld/reactive-websocket.git"
},
"author": "<NAME>",
"license": "MIT",
"bugs": {
"url": "https://github.com/GabrielInTheWorld/reactive-websocket/issues"
},
"homepage": "https://github.com/GabrielInTheWorld/reactive-websocket#readme",
"dependencies": {
"reflect-metadata": "^0.1.13",
"rxjs": "^6.6.3",
"tslib": "^2.1.0",
"typescript": "^4.1.3",
"websocket": "^1.0.33"
},
"devDependencies": {
"@types/jest": "^26.0.20",
"@types/websocket": "^1.0.1",
"jest": "^26.6.3",
"prettier": "^2.2.1",
"ts-jest": "^26.4.4"
}
}
| json |
<filename>internal/expression/eval.go<gh_stars>10-100
// Copyright 2021 E99p1ant. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package expression
import (
"github.com/google/cel-go/cel"
"github.com/google/cel-go/checker/decls"
)
func NewEnv() (*cel.Env, error) {
return cel.NewEnv(
cel.Declarations(
// Request
decls.NewVar("method", decls.String),
decls.NewVar("url", decls.String),
// Response
decls.NewVar("status_code", decls.Int),
decls.NewVar("headers", decls.Dyn),
decls.NewVar("body", decls.String),
),
)
}
| go |
<filename>data/way/124449351/details.json<gh_stars>10-100
{"type":"Feature","id":"way/124449351","properties":{"building":"yes","name":"<NAME>","shop":"farm","website":"http://hofladen-brunner.de","id":"way/124449351"},"geometry":{"type":"Point","coordinates":[9.1531845,49.9598319]}} | json |
Bigg Boss Telugu (season 6): Here are the nominations for elimination!
Bigg Boss Telugu (season 6) has been aired to a massive response on Star Maa. In all, 21 members are taking part in the reality show's latest season.
Of them, 8 inmates are in for nomination for elimination. They are: Aadi Reddy, Abhinaya Sri, Geetu, Revanth, Faima, Raj Shekar, Rohith and Marina. Of these, Raj Shekar, Rohith and Marina are in the least danger zone.
It is believed that Geetu is not in favour of the viewers. Going by the adverse social media response to her presence in the house, they are miffed with her antics. Host Akkineni Nagarjuna, on his part, has already issued a word of caution against Geetu's behaviour. This should have been a writing on the wall.
This season, like before, is going to be as controversial as it can get.
Meanwhile, Nagarjuna awaits the theatrical release of 'The Ghost' on October 5. Directed by Praveen Sattaru, it has Sonal Chauhan as the heroine.
Follow us on Google News and stay updated with the latest! | english |
{
"id": "d1020-118",
"text": "<NAME> -2- Oct. 14, 1954\nSpecifically answrlng your question about East Lansing\nor Ann Arbor. If NAEB is to movem then I think one of these\nmight be better than many others. Between the two, if the\nprice of Independence of NAEB Is not involved, I‘d be inclined\nto favor East Lansing. If it should bring more involvements\ninstead of fewer, then I'd be opposed to East Lansing.\nOn Ann Arbor, the thing in favor of that site would b© the\nproximity to the Center. This assumes the Center is to stay\nin Ann Arbor. I'm not so sure that is going to happen. But\nif it does, then nearness of the two to each other is good.\nPersonally, I don't like Ann Arbor for geographical\nlocation. Too darned difficult to get to and from, especially\nthe airport. Also, I thought Center made a mistake In not\npicking Champaign-Urbana, or Chicago, but I'm not upset about\nit. If the Center wishes to be in AA, or some other spot,\nit's o.k. by me. It's interesting to note that the Center\nends up by using Uof I for distribution. Logic seems to be\nwith me, anyhow.\nOne other thing, God willing I'll have all the treasurer's\nreports ready, audited, reported, duplicated for convention\ntime. Don't want you to worry about that.\nAlways good to see you, and especially have you in our\nhome. The family always enjoys your presence.\nSincerely,\n<NAME>"
} | json |
<gh_stars>100-1000
package io.odpf.firehose.sink.bigquery.proto;
import com.google.protobuf.Descriptors;
import io.odpf.firehose.sink.bigquery.exception.ProtoNotFoundException;
import io.odpf.firehose.sink.bigquery.models.ProtoField;
import java.util.Map;
public class ProtoFieldParser {
/**
* Bigquery supports a maximum of 15 level nested structures.
* Thus for nested data type of more than 15 level or for recursive data type,
* we limit the fields to only contain schema upto 15 levels deep
*/
private static final int MAX_BIGQUERY_NESTED_SCHEMA_LEVEL = 15;
private final DescriptorCache descriptorCache = new DescriptorCache();
public ProtoField parseFields(ProtoField protoField, String protoSchema, Map<String, Descriptors.Descriptor> allDescriptors,
Map<String, String> typeNameToPackageNameMap) {
return parseFields(protoField, protoSchema, allDescriptors, typeNameToPackageNameMap, 1);
}
private ProtoField parseFields(ProtoField protoField, String protoSchema, Map<String, Descriptors.Descriptor> allDescriptors,
Map<String, String> typeNameToPackageNameMap, int level) {
Descriptors.Descriptor currentProto = descriptorCache.fetch(allDescriptors, typeNameToPackageNameMap, protoSchema);
if (currentProto == null) {
throw new ProtoNotFoundException("No Proto found for class " + protoSchema);
}
for (Descriptors.FieldDescriptor field : currentProto.getFields()) {
ProtoField fieldModel = new ProtoField(field.toProto());
if (fieldModel.isNested()) {
if (protoSchema.substring(1).equals(currentProto.getFullName())) {
if (level >= MAX_BIGQUERY_NESTED_SCHEMA_LEVEL) {
continue;
}
}
fieldModel = parseFields(fieldModel, field.toProto().getTypeName(), allDescriptors, typeNameToPackageNameMap, level + 1);
}
protoField.addField(fieldModel);
}
return protoField;
}
}
| java |
<filename>day5.py<gh_stars>0
import sys
import copy
def main():
in_file = open(sys.argv[1], 'r')
jumps = []
for line in in_file.readlines():
jumps.append(int(line.strip()))
#print(compute_exit(jumps))
print(compute_exit2(jumps))
def compute_exit(jump_list):
current_ind = 0
step_num = 0
while True:
if current_ind < 0 or current_ind >= len(jump_list):
return step_num
step = jump_list[current_ind]
jump_list[current_ind] += 1
current_ind += step
step_num += 1
def compute_exit2(jump_list):
current_ind = 0
step_num = 0
while True:
if current_ind < 0 or current_ind >= len(jump_list):
return step_num
step = jump_list[current_ind]
if step >= 3:
jump_list[current_ind] -= 1
elif step <= -3:
jump_list[current_ind] += 1
else:
jump_list[current_ind] += 1
current_ind += step
step_num += 1
if __name__ == "__main__":
main()
| python |
Sources claim all work done so far is "unusable"
Revealed at E3 2015 the Final Fantasy VII Remake wowed audiences with its slick trailers. It had us cautiously optimistic of what to expect from Square Enix. Reason being, it had yet to deliver on Final Fantasy XV, a game that was announced in 2006 and finally released in 2016 — after spending almost a decade in development hell and it showed with the game receiving consistent updates and upgrades to flesh out a story that many deemed as incomplete. It now appears that the Final Fantasy VII Remake may suffer from a similar fate. The game was earlier in development at CyberConnect2 — a Japanese studio responsible for a handful of titles based on the Naruto anime series. It was moved back to Square Enix as an internal project in 2017. The reason for this it seems, is that CyberConnect2’s work was allegedly “unusable”.
According to Dan Tsukasa, a game developer and 3D artist working in Japan, don’t expect Final Fantasy VII Remake anytime soon.
“They [CyberConnect2] don't have four years of work, they have two. The announcement that Square was taking the game away from CyberConnect2, they didn't take it away and continue it, they started it again because CyberConnect2's work was just so useless and not far enough along, but still far enough along that remaking it was faster than refactoring it... (it wasn't in a good state at all),” he said in a post on a Reddit thread discussing Final Fantasy VII’s art direction.
“I’ll explain it this way. When has a company taking work away from another company ever been a positive sign of things? I know CyberConnect2's work was unusable, I've worked with them before, I know their level. And i know they outsourced to hell and back in order to get things to the point we saw them publicly, and it still wasn't enough to save them,” he continued in another post.
When pressed for his sources and if he knew anyone working on Final Fantasy VII Remake, he had this to say:
“Yup, its the game industry in Tokyo, squares so large its rare to meet someone who doesn't know anyone there.
I'm unsure how to prove it though, I can't get into any issues by saying what I've heard, or whats common knowledge in the industry here (the common knowledge being that the project was taken from CC2 because it was so behind schedule), but if I were to name anyone working there, they'd get into trouble for sharing information, the same way I'd get into trouble if I shared information about where I work.
Tsukasa has deleted his Reddit and Twitter accounts since these posts. However they have been archived on popular gaming forum ResetEra including those that suggest that Final Fantasy VII Remake’s Director, Tetsuya Nomura isn’t even working on the game, focussing solely on Kingdom Hearts 3. It was announced five years ago by Square Enix and is slated for a 2018 release.
As per Tsukasa, Nomura "is barely ever there, he's director largely in name alone. He spends the vast majority if his time in Osaka on Kingdom Hearts 3, as that's where he lives, during the week at least."
All of this points to a game that’s quite possibly in development hell. Tragic considering that for many, the original Final Fantasy VII was the first role-playing game for many. Perhaps Square Enix would shed more light on this at E3 2018? Till then, we’d temper expectations of what to expect from the company.
If you're a fan of video games, check out Transition, Gadgets 360's gaming podcast. You can listen to it via Apple Podcasts or RSS, or just listen to this week's episode by hitting the play button below.
Catch the latest from the Consumer Electronics Show on Gadgets 360, at our CES 2024 hub.
| english |
{{also|Oder|Óder|öder}}
==Estonian==
===Etymology===
From {{inh|et|fiu-fin-pro|*ocra}}. Related to {{cog|izh|odra}}.
===Noun===
{{et-noun|odra|otra}}
# [[barley]]
====Declension====
{{et-decl-oder|odr|otr}}
[[Category:et:Grains]]
----
==German==
===Etymology===
From {{etyl|goh|de}} {{m|goh|odar}}. Related to [[Old English]] {{m|ang|oþþe}}.
===Pronunciation===
* {{IPA|de|/ˈʔoːdɐ/}}
* {{audio|de|De-oder.ogg|audio}}
===Conjunction===
{{head|de|conjunction}}
# [[or]]
#: {{ux|de|Danach alles gestr. '''oder''' noch 1–2 Wörter?|t=Is everything after that crossed out '''or''' are there one or two more words?}}
===Particle===
{{head|de|particle}}
# {{lb|de|[[tag question]]}} [[right]]?; is it?; is it not?
#: {{uxi|de|Es ist kalt heute, '''oder'''?|It’s cold today, '''isn’t it'''?}}
#: {{uxi|de|Das war keine so gute Idee, '''oder'''?|That wasn’t such a good idea, '''was it'''?}}
#: {{uxi|de|Du kommst aus Deutschland, '''oder'''?|You come from Germany, '''don’t you'''?}}
====Synonyms====
* {{sense|tag question}} {{l|de|gell}}, {{l|de|ne}}, {{l|de|nicht}}, {{l|de|nicht wahr}}, {{l|de|wa}}
===See also===
* [[alles oder nichts]]
===Further reading===
* {{R:Duden}}
===Anagrams===
* {{l|de|rode}}
----
==Luxembourgish==
===Etymology===
From {{etyl|goh|lb}} {{m|goh|odar}}
===Pronunciation===
* {{IPA|lb|/ˈoːdɐ/}}
===Conjunction===
{{head|lb|conjunction}}
# [[or]]
----
==Slovene==
===Pronunciation===
* {{sl-IPA|ọ́dər}}
===Noun===
{{sl-noun|ọ́dər|m-in}}
# [[stage]] (theatre)
====Inflection====
{{sl-decl-noun-m|ódr}} | html |
Abhinav Shukla, Eijaz Khan, Jasmin Bhasin and Rubina Dilaik have literally one missing from the Bigg Boss house! No, they have not been evicted from the ongoing season 14 of the show, but they surely have been overshadowed by contestants of the previous years who have entered the house as challengers.
The week started with the entry of mastermind Vikas Gupta, and he immediately got down to manipulating the game his way. Throughout the week, he was seen nudging Abhinav and Rubina to get into a fight in front of all, trying to finish off a week’s ration in three days and waking up housemates late at night — all to complete challenges to win Joker cards.
Although the housemates have their doubts and are wary of his skills, they are seen agreeing to him, and doing things his way.
Lately, Vikas has been the target of Arshi Khan, who is already grabbing eyeballs with her antics to stay in the limelight.
The moment she entered the house, Arshi began flirting with actress Rubina Dilaik’s husband Abhinav Shukla and cooing seductively in his ears. Arshi has also been seen running after Rahul Mahajan, who was clearly uncomfortable. She has also been misbehaving and yelling at Vikar frequently.
Rahul Mahajan adds the fun element, and is often seen making people laugh, but Manu Punjabi has already started manipulating the game in order to put himself in a position of advantage.
The point is, these challengers have wholly robbed the limelight. Good or bad, these antics have helped the challengers outshine the previous housemates, who have been reduced to mere spectators in the house.
Earlier, Abhinav was seen in the kitchen or in the garden area. But, even such scenes don’t make the cut in an average over-60 minute episode.
His wife Rubina, who was often seen roaring while fighting with Kavita Kaushik and Rahul Vaidya, is also not doing much these to appear exciting either.
When it comes to Jasmin Bhasin, she was visible because of her fights with Rubina and Eijaz, but that seems to have fizzled out.
Eijaz seems to be the only one among the current season’s housemates who is trying to stay afloat with the changing tides. But since he has made a group with the new housemates, he is only seen with them and never alone. His game seems to be dependent on them rather than his own plans.
Earlier in the season, season 13 winner Sidharth Shukla, who was in the house in the initial weeks as a senior, was seen outshining the housemates with scheming deals.
Sidharth along with Gauahar Khan and Hina Khan had entered the house as “Toofani Seniors”, and created quite a stir.
Sidharth influenced everyone and was guiding the show towards specific directions, to keep the masala quotient intact. Soon, Gauahar and Hina got into the groove and fluttered many wings with their decisions, opinions and game play. In the initial weeks, the seniors were in the news much more than the contestants.
With Rakhi Sawant coming in and with Aly Goni and Nikki Tamboli on their way back, it will be interesting to see how the original housemates of season 14 survive. (Agency) | english |
<reponame>LIUJUN-liujun/possumwood<filename>src/plugins/opencv/sequence.cpp
#include "sequence.h"
#include "tools.h"
namespace possumwood {
namespace opencv {
Sequence::Sequence(std::size_t size) : m_sequence(size) {
}
Sequence Sequence::clone() const {
Sequence result;
for(auto& f : m_sequence)
result.add(f->clone());
return result;
}
Sequence::Item& Sequence::add(const cv::Mat& frame, const Item::Meta& meta) {
// check for consistency
if(!m_sequence.empty())
if(frame.rows != m_sequence.front()->rows || frame.cols != m_sequence.front()->cols ||
frame.type() != m_sequence.front()->type())
throw std::runtime_error("Adding an inconsistent frame to a sequence!"); // TODO: more details
m_sequence.push_back(Item(frame, meta));
return m_sequence.back();
}
bool Sequence::isValid() const {
for(auto& f : m_sequence)
if(f->rows != m_sequence.front()->rows || f->cols != m_sequence.front()->cols ||
f->type() != m_sequence.front()->type())
return false;
return true;
}
bool Sequence::empty() const {
return m_sequence.empty();
}
std::size_t Sequence::size() const {
return m_sequence.size();
}
int Sequence::type() const {
if(m_sequence.empty())
return 0;
return m_sequence.front()->type();
}
int Sequence::depth() const {
if(m_sequence.empty())
return 0;
return m_sequence.front()->depth();
}
int Sequence::channels() const {
if(m_sequence.empty())
return 0;
return m_sequence.front()->channels();
}
int Sequence::rows() const {
if(m_sequence.empty())
return 0;
return m_sequence.front()->rows;
}
int Sequence::cols() const {
if(m_sequence.empty())
return 0;
return m_sequence.front()->cols;
}
Sequence::iterator Sequence::begin() {
return m_sequence.begin();
}
Sequence::iterator Sequence::end() {
return m_sequence.end();
}
Sequence::const_iterator Sequence::begin() const {
return m_sequence.begin();
}
Sequence::const_iterator Sequence::end() const {
return m_sequence.end();
}
const Sequence::Item& Sequence::front() const {
return m_sequence.front();
}
const Sequence::Item& Sequence::back() const {
return m_sequence.back();
}
Sequence::Item& Sequence::operator[](std::size_t index) {
assert(index < m_sequence.size());
return m_sequence[index];
}
const Sequence::Item& Sequence::operator[](std::size_t index) const {
assert(index < m_sequence.size());
return m_sequence[index];
}
bool Sequence::operator==(const Sequence& f) const {
return m_sequence == f.m_sequence;
}
bool Sequence::operator!=(const Sequence& f) const {
return m_sequence != f.m_sequence;
}
///////////////
Sequence::Item::Item() {
}
Sequence::Item::Item(const cv::Mat& m, const Meta& meta) : m_mat(m), m_meta(meta) {
}
Sequence::Item::Meta& Sequence::Item::meta() {
return m_meta;
}
const Sequence::Item::Meta& Sequence::Item::meta() const {
return m_meta;
}
bool Sequence::Item::operator==(const Item& i) const {
return m_mat.ptr() == i->ptr();
}
bool Sequence::Item::operator!=(const Item& i) const {
return m_mat.ptr() != i->ptr();
}
/////////////
bool Sequence::Item::Meta::empty() const {
return m_meta.empty();
}
float Sequence::Item::Meta::operator[](const std::string& key) const {
auto it = m_meta.find(key);
if(it != m_meta.end())
return it->second;
return 0.0f;
}
float& Sequence::Item::Meta::operator[](const std::string& key) {
return m_meta[key];
}
Sequence::Item::Meta::const_iterator Sequence::Item::Meta::begin() const {
return m_meta.begin();
}
Sequence::Item::Meta::const_iterator Sequence::Item::Meta::end() const {
return m_meta.end();
}
Sequence::Item::Meta Sequence::Item::Meta::merge(const Meta& m1, const Meta& m2) {
Sequence::Item::Meta result = m2;
for(auto& m : m1)
result[m.first] = m.second;
return result;
}
/////////////
std::ostream& operator<<(std::ostream& out, const Sequence& seq) {
if(seq.empty())
out << "Empty sequence" << std::endl;
else if(seq.size() == 1)
out << "A sequence with 1 frame, " << opencv::type2str((*seq[0]).type()) << ", " << (*seq[0]).cols << "x"
<< (*seq[0]).rows << std::endl;
else
out << "A sequence of " << seq.size() << " frames, " << opencv::type2str((*seq[0]).type()) << ", "
<< (*seq[0]).cols << "x" << (*seq[0]).rows << std::endl;
unsigned ctr = 0;
for(auto& f : seq) {
out << " [" << ctr << "] ->";
if(f.meta().empty())
out << " no metadata" << std::endl;
else {
for(auto& m : f.meta())
out << " " << m.first << "=" << m.second;
out << std::endl;
}
++ctr;
}
return out;
}
} // namespace opencv
} // namespace possumwood
| cpp |
{"URL": "https://www.wired.com/1999/09/screams-of-delight-at-visio", "heading": "screams of delight at visio", "subheading": "the technical drawing software company joins the redmond empire in a us$1.3 billion stock deal.", "author": "reuters", "category": "business", "type": "article", "timestamp": "09.15.1999 08:30 AM", "text": "microsoft said on wednesday that it planned to buy visio corp., a maker of technical drawing software, for us$1.3 billion in stock, with each visio share to be exchanged for 0.45 shares of microsoft. seattle-based visio will become the visio division operating within microsoft's business productivity group led by microsoft's senior vice president bob muglia. visio will continue to operate with no immediate changes.<NAME>, visio's president and chief executive, will lead the visio division as a microsoft vice president, reporting to muglia.visio co-founder ted johnson, currently visio's chief technology officer, also will become a microsoft vice president, directing future product development for the visio division.no target date was provided for completion of the deal, which remains subject to regulatory approval.\"visio has been a pioneer in delivering unique diagramming solutions to business and enterprise customers and represents a strong addition to the microsoft family of business products,\" microsoft's muglia said in a release.microsoft shares closed tuesday at 95-1/16.copyright"} | json |
<filename>ui/src/components/Footer/Footer.css
/*
* Copyright 2018 - 2021 Swiss Federal Institute of Technology Lausanne (EPFL)
*
* 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.
*
* This open source software code was developed in part or in whole in the
* Human Brain Project, funded from the European Union's Horizon 2020
* Framework Programme for Research and Innovation under
* Specific Grant Agreements No. 720270, No. 785907, and No. 945539
* (Human Brain Project SGA1, SGA2 and SGA3).
*
*/
.site-footer {
border-top: 1px solid var(--border-color);
margin-left: auto;
margin-right: auto;
padding: 40px var(--site-margin) 0;
display: grid;
grid-template-columns: 1fr min(1400px,100%) 1fr;
font-size: 14px;
font-size: var(--font-size-small);
color: var(--light-text);
}
.site-footer .footer__header {
margin-bottom: auto;
}
.site-footer .footer__header .footer__primary {
margin-right: auto;
}
.site-footer .footer__header .footer__primary img{
min-width: 220px;
height: 100%;
}
.site-footer .footer__header .footer__secondary {
display: flex;
padding-bottom: 10px;
}
.site-footer .footer__header .footer__secondary .powered-by {
margin-right: auto;
}
.site-footer .footer__content {
position: relative;
display: grid;
grid-gap: 10px;
gap: 10px;
grid-template-columns: 46% 1fr 1fr 1fr;
margin-top: 20px;
margin-bottom: 32px;
}
.site-footer>* {
grid-column: 2;
}
.site-footer .footer__content .footer__menu {
flex-basis: 33%;
}
.site-footer .footer__content ul {
list-style: none;
padding-left: 0;
}
.site-footer .footer__content + .footer__content ul {
padding-left: 40px;
}
.site-footer .footer__content ul .title {
padding-bottom: 10px;
text-transform: uppercase;
}
.site-footer .footer__content .logo {
color: var(--color-1);
}
.site-footer .footer__end {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
min-height: 65px;
}
.site-footer .footer__end .footer__social {
display: flex;
list-style: none;
padding: 0;
}
.site-footer .footer__end .footer__social li {
margin: 0 8px;
}
.site-footer .footer__end .footer__social li a:hover {
color: var(--color-10);
}
.eu-logo{
display:inline-block;
height: 60px;
margin-top: 5px;
}
.eu-logo img{
height: 100%;
}
.powered-by {
display:inline-block;
font-size: 0.4em;
font-weight: bold;
margin-right: 1.5em;
word-wrap: none;
}
.powered-by img{
height: 35px;
width: auto;
}
.powered-by a, .powered-by a:hover{
margin-right: 60px;
color: var(--color-1);
text-decoration: none;
}
.sprite-icons {
width: 40px;
height: 40px;
}
@media (max-width: 670px) {
.site-footer {
width: 100%;
max-width: 670px;
margin-left: 0;
}
.site-footer .footer__content {
margin-bottom: 50px;
max-width: 670px;
}
}
@media (max-width: 768px) {
.site-footer {
height: auto;
}
.site-footer .footer__content {
grid-template-columns: 1fr;
grid-template-areas:
"menu2"
"menu3"
"menu1"
"hbpEu";
}
.site-footer .footer__header .footer__secondary {
grid-area: hbpEu;
}
.site-footer .footer__content .footer__menu-1 {
grid-area: menu1;
}
.site-footer .footer__content .footer__menu-2 {
grid-area: menu2;
}
.site-footer .footer__content .footer__menu-3 {
grid-area: menu3;
}
.site-footer .footer__end {
flex-wrap: wrap;
justify-content: center;
flex-flow: column-reverse;
line-height: 50px;
}
}
@media (max-width: 768px) {
.commit {
display: none;
}
}
@media (min-width: 768px) {
.kgs-navbar {
height: 100px;
}
.navbar-right {
margin-top: 25px;
margin-bottom: -15px;
}
.container-fluid>.navbar-collapse {
margin-right: -15px;
margin-left: -15px;
}
.site-footer .footer__header {
display: flex;
}
.site-footer .footer__header .footer__secondary {
display: inline-block;
padding-bottom: 0;
}
.site-footer .footer__header .footer__secondary .powered-by {
margin-right: 0;
}
.site-footer .footer__content .footer__menu {
flex-basis: 20%;
}
.navbar-header .logo {
margin: -15px auto 0 0;
}
#rootFooter {
position: relative;
margin-top: 0;
margin-bottom: 15px;
}
}
.logo {
display: inline-block;
margin: -25px auto 0 0;
color: var(--color-1);
min-width: 200px;
}
.logo img {
display: inline-block;
}
.logo svg {
height: 100%;
min-width: 160px;
}
body[theme="dark"] .logo:after {
content: "EBRAINS";
display: inline-block;
position: absolute;
font-size: 33px;
font-weight: 600;
padding-right: 10px;
transform: translate(-140px, 39px);
background: var(--background-color-2);
color: var(--color-10);
-webkit-font-smoothing: auto;
}
.eu-logo {
position: relative;
}
.hbp-logo {
position: relative;
display: inline-block;
}
body[theme="dark"] .eu-logo:after {
content: "Co-funded by\A the European Union";
display: inline-block;
font-size: 9px;
background: var(--background-color-2);
color: var(--color-10);
-webkit-font-smoothing: auto;
white-space: pre;
position: absolute;
top: 11px;
left: 2px;
line-height: 1.4em;
letter-spacing: 0.04em;
text-align: right;
}
body[theme="dark"] .hbp-logo:after {
content: "Human Brain Project";
display: inline-block;
font-size: 14px;
background: var(--background-color-2);
color: var(--color-10);
-webkit-font-smoothing: auto;
white-space: pre;
position: absolute;
top: 10px;
left: 37px;
line-height: 1.4em;
letter-spacing: 0.04em;
text-align: right;
font: initial;
} | css |
Australia coach Andrew McDonald has dismissed concerns over the team’s failure to win Test matches from dominant positions after Pat Cummins’ side were frustrated by Pakistan in the Karachi draw.
Australia fell three wickets short of victory and a 1-0 series lead in the second Test despite setting a 506-run chase and bowling more than 171 overs.
They have now tallied five such failures to bowl out teams on day five for victory in their last 19 Tests.
Interim head coach McDonald said Australia had failed to take their chances in Karachi but had at least managed to create them.
“We’ve had good confirmation that the style of cricket we want to play is going to hold up," he told reporters.
“But if you put yourself in those (winning) situations continually, we’ll find a way through them. There were missed opportunities on that final day but we gave ourselves a real good look at it, and that’s what I’m really proud of. "
McDonald said morale was high in the Australian camp as the deadlocked series heads to the final match in Lahore, which hosts its first Test since 2009.
Paceman Mitchell Starc’s reverse swing helped set up Australia’s ultimately fruitless push for victory, and McDonald said the left-armer would be given another crack if fit for the decider.
“Reverse swing is pivotal in terms of opening that game up for us," he said.
McDonald praised Mitchell Swepson’s debut in Karachi but said selectors would look at the Lahore surface before deciding whether the legspinner would get another chance to bowl with regular spinner Nathan Lyon.
Swepson took two wickets in the first innings but finished with unflattering match figures of 2/188 after several chances went begging off his bowling in the second innings.
Get the latest Cricket News, Schedule and Cricket Live Scores here(This story has not been edited by News18 staff and is published from a syndicated news agency feed - Reuters) | english |
Amid massive controversy over Laal Singh Chaddha, actor Aamir Khan has joined the 'Har Ghar Tiranga' campaign in what seems to be a proof of his recent statement.
Ahead of Independence Day 2022, Aamir Khan displayed the national flag at his Mumbai home on Friday to join the mass campaign launched by the Prime Minister Narendra Modi-led government.
The campaign under the aegis of Azadi Ka Amrit Mahotsav encourages netizens to bring the tricolour home and hoist it to mark India's 75th Independence Day.
Aamir Khan's latest film has courted backlash for several reasons. One of the reasons being his 2015 statement wherein he had mentioned that his ex-wife Kiran Rao had suggested moving out of India due to intolerance.
Fans took to react to the flag hosited at Aamir Khan's Mumbai home. While some judged the quality of the flag, few supported Aamir Khan for his patriotic act.
"Just look at the QUALITY OF the Flag hoisted by Aamir Khan. He has not even bought from Khadi Bhandar . . its done for PR even then he could not resist the Jihadi inside him," wrote a user on Twitter.
Another said, "Mentality. . . . Really? Do you know Aamir Khan refused to release Dangal in Pakistan only because they said to remove Indian flag scenes in the movie. . . . "
With Laal Singh Chaddha, Aamir Khan marks his return to the big screens after a four-year hiatus. The official Hindi remake of Hollywood's Oscar-winning film Forrest Gump starring Tom Hanks has been creating a huge buzz.
People have called for boycott of the film, including cricketer Monty Panesar, who tweeted that Aamir Khan's Laal Singh Chaddha is "total disgrace to India Armed Forces Indian Army and Sikhs. "
Forrest Gump was a moron too ! !
Moreover, a complaint has been filed against Aamir Khan, Paramount Pictures and several others for allegedly "disrespecting the Indian Army and hurting Hindu sentiments " in 'Laal Singh Chaddha', as per latest reports.
On Friday, Delhi-based lawyer Vineet Jindal submitted a complaint to Delhi Police mentioning that there was objectionable content in the film.
(For more news and updates from the world of celebrities from Bollywood and Hollywood, keep reading Indiatimes Entertainment, and let us know your thoughts on this story in the comments below. ) | english |
import streamlit as st
import matplotlib.pyplot as plt
import json
import os # +Deployment
import inspect # +Deployment
@st.cache
def load_image(cdir, link):
return plt.imread(os.path.join(cdir, link))
def chunks(lst, n):
for i in range(0, len(lst), n):
yield lst[i:i + n]
def app():
currentdir = os.path.dirname(os.path.abspath(
inspect.getfile(inspect.currentframe())))
st.subheader("Conclusion")
st.write("This project has been the opportunity to apply many Data Science techniques & methodologies that we learnt during the training. We had to address typical data scientist challenges like hyper parameter tuning, data cleaning, app deployment...")
st.write("This use case enables us to learn new tools (Geographic Information System like QGIS) and data types (Raster and Shapefile). The objective of the business case has been achieved with good performance metrics and calculation time.")
st.subheader("Limitations and future developments")
st.write("To improve the performance of the model, the training data could be enriched to include other types of lands and vegetations. Eventhough, the model has been trained on California and Portugal database, there could be a bias of these biomes. Moreover, some techniques to improve the quality of the input images could be implemented (better identification of the containment date used to request Google Earth Engine, computer vision methods to manage the presence of snow and fire plumes...)")
st.write(
"The model architecture could also be adapted to include attention mecanism.")
st.write("Finally, the images from other satellites could be used. The active sensors (radar) have the ability to gather land information even when the weather is cloudy or contaminated with fire plumes. The geostationay satellite could add interesting data by staying above a target while Sentinel 2 satellites have a small temporal resolution (few days between 2 flyovers above the same spot).")
| python |
{
"action": {
"misuse": {
"variety": [
"Privilege abuse"
],
"vector": [
"LAN access"
]
}
},
"actor": {
"internal": {
"motive": [
"Unknown"
],
"variety": [
"Unknown"
]
}
},
"asset": {
"assets": [
{
"variety": "U - Laptop"
}
]
},
"attribute": {
"confidentiality": {
"data": [
{
"variety": "Unknown"
}
],
"data_disclosure": "Potentially",
"data_total": 76
}
},
"discovery_method": "Unknown",
"incident_id": "7F8BE436-CFCA-4523-9C4D-A7BAC741D1D1",
"plus": {
"analysis_status": "First pass",
"analyst": "swidup",
"created": "2014-02-21T04:07:15Z",
"master_id": "7F8BE436-CFCA-4523-9C4D-A7BAC741D1D1",
"modified": "2014-07-30T19:07:18Z"
},
"reference": "http://vcdb.org/pdf/va-security.pdf",
"schema_version": "1.3.0",
"security_incident": "Confirmed",
"source_id": "vcdb",
"summary": "A VA Clinic medical laptop was left unsecured in a room with public access. The laptop had no VA image, no VA security, and no VA account authentication. The\nlaptop used a generic non-password protected account. The hard drive was unencrypted. The laptop contained 86 patients' records including their first and last\nname, date of birth, admission date, and last four digits of the social security number. This was reported by VA staff. 04/03/12:\nThe laptop was in a common room for several months. When the laptop was turned on, the clinical application which held the data opened automatically. All 86\npatients will be sent letters offering credit protection services.\n04/17/12:\nThe final count of patients' information stored on the laptop after removing duplicates is 76. Therefore the 76 patients will receive a letter offering credit protection\nservices.",
"timeline": {
"incident": {
"day": 2,
"month": 4,
"year": 2012
}
},
"victim": {
"country": [
"US"
],
"employee_count": "Over 100000",
"industry": "923140",
"region": [
"019021"
],
"state": "IA",
"victim_id": "United States Department of Veterans Affairs"
}
} | json |
So much to say about Shah Rukh Khan and his spectacular comeback but why do words never fit in to describe the magic he creates on and off screen? We’ll never know! However, the way fans have welcomed him in theatres speaks a lot about his impact on them. From catching him for the first day’s first show to turning cinema halls into dancing hubs, ‘Pathaan’ had it all! As if this wasn’t enough, Pathaan’s craze brought fans from Bangladesh to India to catch SRK’s sight on the big screen.
While SRKians are thronging theatres worldwide to watch ‘Pathaan’, the film didn’t release in Bangladesh due to some legal issues. Anonno Mamun, a Bangladeshi film director, was quoted saying to the Dhaka Tribune, “Due to the complexity of laws, the movie will not be released any time soon. Apparently, there are two rules applied in case of importation of foreign films; one, no film from the sub-continent is allowed to be imported, and two, foreign films can only be imported if films from both sides are traded. "
One of the family members replied to the tweet and said, “Hi Satadeep, thanks for sharing our post to everyone. I am from india and staying in Bangladesh with my family and working here. When BD government refused to release Pathaan in Bangladesh then we plan to travel nearest indian city to shower our love to SRK. Next Jaawan”.
Meanwhile, Shah Rukh Khan’s blockbuster spy thriller has entered its second week at the box office and the Siddharth Anand movie is showing no signs to slow down. The actioner earned Rs. 22 crores on day seven of its release and it even became the fastest Hindi-language movie to cross the Rs. 300 crore mark domestically. Reportedly, the Bollywood movie collected Rs. 634 crores gross worldwide in the first week of its release. | english |
# Copyright 2017 <NAME>. and
# Cable Television Laboratories, Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import logging
import os
import sys
from snaps_openstack.provision.openstack.plugin.kolla_impl import kolla_utils
logger = logging.getLogger('deploy_infra')
def deploy_infra(conf, flag):
if __load(conf, flag):
logger.info('Openstack operation is unsuccessful')
else:
logger.info('Openstack operation is successful')
def __load(data, operation):
dir_path = os.path.dirname(os.path.realpath(__file__))
plugin_path = dir_path + "/plugin/"
logger.info(plugin_path)
sys.path.append(plugin_path)
if operation is "clean" or operation is "cleanregistry":
ret = kolla_utils.clean_up(data, operation)
elif operation is "upgrade" or operation is "downgrade":
ret = kolla_utils.upgrade_downgrade_cluster(data, operation)
else:
ret = kolla_utils.main(data, operation)
return ret
| python |
<reponame>ZhouYixun/sonic-agent
package org.cloud.sonic.agent.automation;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import org.cloud.sonic.agent.bridge.ios.TIDeviceTool;
import org.cloud.sonic.agent.cv.AKAZEFinder;
import org.cloud.sonic.agent.cv.SIFTFinder;
import org.cloud.sonic.agent.cv.SimilarityChecker;
import org.cloud.sonic.agent.cv.TemMatcher;
import org.cloud.sonic.agent.interfaces.ErrorType;
import org.cloud.sonic.agent.interfaces.ResultDetailStatus;
import org.cloud.sonic.agent.interfaces.StepType;
import org.cloud.sonic.agent.maps.IOSProcessMap;
import org.cloud.sonic.agent.maps.IOSSizeMap;
import org.cloud.sonic.agent.tools.DownImageTool;
import org.cloud.sonic.agent.tools.LogTool;
import org.cloud.sonic.agent.tools.SpringTool;
import org.cloud.sonic.agent.tools.UploadTools;
import io.appium.java_client.MultiTouchAction;
import io.appium.java_client.Setting;
import io.appium.java_client.TouchAction;
import io.appium.java_client.android.appmanagement.AndroidTerminateApplicationOptions;
import io.appium.java_client.appmanagement.BaseInstallApplicationOptions;
import io.appium.java_client.appmanagement.BaseTerminateApplicationOptions;
import io.appium.java_client.ios.IOSDriver;
import io.appium.java_client.ios.IOSStartScreenRecordingOptions;
import io.appium.java_client.remote.AutomationName;
import io.appium.java_client.remote.IOSMobileCapabilityType;
import io.appium.java_client.remote.MobileCapabilityType;
import io.appium.java_client.touch.WaitOptions;
import io.appium.java_client.touch.offset.PointOption;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Attribute;
import org.jsoup.nodes.Document;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.Platform;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.springframework.core.env.Environment;
import org.springframework.core.io.FileSystemResource;
import org.springframework.http.ResponseEntity;
import org.springframework.util.Base64Utils;
import org.springframework.util.FileCopyUtils;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.web.client.RestTemplate;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.time.Duration;
import java.util.Calendar;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import static org.testng.Assert.*;
/**
* @author ZhouYiXun
* @des iOS自动化处理类
* @date 2021/8/16 20:10
*/
public class IOSStepHandler {
public LogTool log = new LogTool();
private IOSDriver iosDriver;
private JSONObject globalParams = new JSONObject();
private String testPackage = "";
private String udId = "";
//测试状态
private int status = 1;
public void setTestMode(int caseId, int resultId, String udId, String type, String sessionId) {
log.caseId = caseId;
log.resultId = resultId;
log.udId = udId;
log.type = type;
log.sessionId = sessionId;
}
public void setGlobalParams(JSONObject jsonObject) {
globalParams = jsonObject;
}
public void startIOSDriver(String udId, int wdaPort) throws InterruptedException, IOException {
this.udId = udId;
DesiredCapabilities desiredCapabilities = new DesiredCapabilities();
desiredCapabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, Platform.IOS);
desiredCapabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, AutomationName.IOS_XCUI_TEST);
desiredCapabilities.setCapability(MobileCapabilityType.NEW_COMMAND_TIMEOUT, 3600);
desiredCapabilities.setCapability(MobileCapabilityType.NO_RESET, true);
desiredCapabilities.setCapability(MobileCapabilityType.DEVICE_NAME, TIDeviceTool.getName(udId));
desiredCapabilities.setCapability(MobileCapabilityType.UDID, udId);
desiredCapabilities.setCapability("wdaConnectionTimeout", 60000);
desiredCapabilities.setCapability(IOSMobileCapabilityType.WEB_DRIVER_AGENT_URL, "http://127.0.0.1:" + wdaPort);
desiredCapabilities.setCapability("useXctestrunFile", false);
desiredCapabilities.setCapability(IOSMobileCapabilityType.SHOW_IOS_LOG, false);
desiredCapabilities.setCapability(IOSMobileCapabilityType.SHOW_XCODE_LOG, false);
desiredCapabilities.setCapability("skipLogCapture", true);
desiredCapabilities.setCapability(IOSMobileCapabilityType.USE_PREBUILT_WDA, false);
try {
iosDriver = new IOSDriver(AppiumServer.service.getUrl(), desiredCapabilities);
iosDriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
iosDriver.setSetting(Setting.MJPEG_SERVER_FRAMERATE, 50);
iosDriver.setSetting(Setting.MJPEG_SCALING_FACTOR, 50);
iosDriver.setSetting(Setting.MJPEG_SERVER_SCREENSHOT_QUALITY, 10);
iosDriver.setSetting("snapshotMaxDepth",30);
log.sendStepLog(StepType.PASS, "连接设备驱动成功", "");
} catch (Exception e) {
log.sendStepLog(StepType.ERROR, "连接设备驱动失败!", "");
//测试标记为失败
setResultDetailStatus(ResultDetailStatus.FAIL);
throw e;
}
int width = iosDriver.manage().window().getSize().width;
int height = iosDriver.manage().window().getSize().height;
IOSSizeMap.getMap().put(udId, width + "x" + height);
}
public void closeIOSDriver() {
try {
if (iosDriver != null) {
//终止测试包
if (!testPackage.equals("")) {
try {
iosDriver.terminateApp(testPackage, new AndroidTerminateApplicationOptions().withTimeout(Duration.ofMillis(1000)));
} catch (Exception e) {
e.printStackTrace();
}
}
iosDriver.quit();
log.sendStepLog(StepType.PASS, "退出连接设备", "");
if (IOSProcessMap.getMap().get(udId) != null) {
List<Process> processList = IOSProcessMap.getMap().get(udId);
for (Process p : processList) {
if (p != null) {
p.children().forEach(ProcessHandle::destroy);
p.destroy();
}
}
IOSProcessMap.getMap().remove(udId);
}
}
} catch (Exception e) {
log.sendStepLog(StepType.WARN, "测试终止异常!请检查设备连接状态", "");
//测试异常
setResultDetailStatus(ResultDetailStatus.WARN);
e.printStackTrace();
}
}
public void waitDevice(int waitCount) {
log.sendStepLog(StepType.INFO, "设备非空闲状态!第" + waitCount + "次等待连接...", "");
}
public void waitDeviceTimeOut() {
log.sendStepLog(StepType.ERROR, "等待设备超时!测试跳过!", "");
//测试标记为异常
setResultDetailStatus(ResultDetailStatus.WARN);
}
public IOSDriver getDriver() {
return iosDriver;
}
public void setResultDetailStatus(int status) {
if (status > this.status) {
this.status = status;
}
}
public void sendStatus() {
log.sendStatusLog(status);
}
//判断有无出错
public int getStatus() {
return status;
}
//调试每次重设状态
public void resetResultDetailStatus() {
status = 1;
}
public boolean getBattery() {
double battery = iosDriver.getBatteryInfo().getLevel();
if (battery <= 0.1) {
log.sendStepLog(StepType.ERROR, "设备电量过低!", "跳过本次测试...");
return true;
} else {
return false;
}
}
private int xpathId = 1;
public JSONArray getResource() {
JSONArray elementList = new JSONArray();
Document doc = Jsoup.parse(iosDriver.getPageSource());
String xpath = "";
elementList.addAll(getChild(doc.body().children().get(0).children(), xpath));
xpathId = 1;
return elementList;
}
public JSONArray getChild(org.jsoup.select.Elements elements, String xpath) {
JSONArray elementList = new JSONArray();
for (int i = 0; i < elements.size(); i++) {
JSONObject ele = new JSONObject();
int tagCount = 0;
int siblingIndex = 0;
String indexXpath;
for (int j = 0; j < elements.size(); j++) {
if (elements.get(j).attr("type").equals(elements.get(i).attr("type"))) {
tagCount++;
}
if (i == j) {
siblingIndex = tagCount;
}
}
if (tagCount == 1) {
indexXpath = xpath + "/" + elements.get(i).attr("type");
} else {
indexXpath = xpath + "/" + elements.get(i).attr("type") + "[" + siblingIndex + "]";
}
ele.put("id", xpathId);
xpathId++;
ele.put("label", "<" + elements.get(i).attr("type") + ">");
JSONObject detail = new JSONObject();
detail.put("xpath", indexXpath);
for (Attribute attr : elements.get(i).attributes()) {
detail.put(attr.getKey(), attr.getValue());
}
ele.put("detail", detail);
if (elements.get(i).children().size() > 0) {
ele.put("children", getChild(elements.get(i).children(), indexXpath));
}
elementList.add(ele);
}
return elementList;
}
public void startRecord() {
try {
IOSStartScreenRecordingOptions recordOption = new IOSStartScreenRecordingOptions();
recordOption.withTimeLimit(Duration.ofMinutes(30));
recordOption.withVideoQuality(IOSStartScreenRecordingOptions.VideoQuality.LOW);
recordOption.enableForcedRestart();
recordOption.withFps(20);
recordOption.withVideoType("h264");
iosDriver.startRecordingScreen(recordOption);
} catch (Exception e) {
log.sendRecordLog(false, "", "");
}
}
public void stopRecord() {
File recordDir = new File("./test-output/record");
if (!recordDir.exists()) {//判断文件目录是否存在
recordDir.mkdirs();
}
long timeMillis = Calendar.getInstance().getTimeInMillis();
String fileName = timeMillis + "_" + udId.substring(0, 4) + ".mp4";
File uploadFile = new File(recordDir + File.separator + fileName);
try {
synchronized (IOSStepHandler.class) {
FileOutputStream fileOutputStream = new FileOutputStream(uploadFile);
byte[] bytes = Base64Utils.decodeFromString((iosDriver.stopRecordingScreen()));
fileOutputStream.write(bytes);
fileOutputStream.close();
}
log.sendRecordLog(true, fileName, UploadTools.uploadPatchRecord(uploadFile));
} catch (Exception e) {
log.sendRecordLog(false, fileName, "");
}
}
public void install(HandleDes handleDes, String path) {
handleDes.setStepDes("安装应用");
handleDes.setDetail("App安装路径: " + path);
try {
iosDriver.installApp(path, new BaseInstallApplicationOptions() {
@Override
public Map<String, Object> build() {
Map<String, Object> map = new HashMap<>();
map.put("timeout", 180000);
return map;
}
});
} catch (Exception e) {
handleDes.setE(e);
}
}
public void uninstall(HandleDes handleDes, String appPackage) {
handleDes.setStepDes("卸载应用");
handleDes.setDetail("App包名: " + appPackage);
try {
iosDriver.removeApp(appPackage);
} catch (Exception e) {
handleDes.setE(e);
}
}
public void terminate(HandleDes handleDes, String packageName) {
handleDes.setStepDes("终止应用");
handleDes.setDetail("应用包名: " + packageName);
try {
iosDriver.terminateApp(packageName, new BaseTerminateApplicationOptions() {
@Override
public Map<String, Object> build() {
Map<String, Object> map = new HashMap<>();
map.put("timeout", 2000);
return map;
}
});
} catch (Exception e) {
handleDes.setE(e);
}
}
public void runBackground(HandleDes handleDes, long time) {
handleDes.setStepDes("后台运行应用");
handleDes.setDetail("后台运行App " + time + " ms");
try {
iosDriver.runAppInBackground(Duration.ofMillis(time));
} catch (Exception e) {
handleDes.setE(e);
}
}
public void openApp(HandleDes handleDes, String appPackage) {
handleDes.setStepDes("打开应用");
handleDes.setDetail("App包名: " + appPackage);
try {
testPackage = appPackage;
iosDriver.activateApp(appPackage);
} catch (Exception e) {
handleDes.setE(e);
}
}
public void lock(HandleDes handleDes) {
handleDes.setStepDes("锁定屏幕");
try {
iosDriver.lockDevice();
} catch (Exception e) {
handleDes.setE(e);
}
}
public void unLock(HandleDes handleDes) {
handleDes.setStepDes("解锁屏幕");
try {
iosDriver.unlockDevice();
} catch (Exception e) {
handleDes.setE(e);
}
}
public void asserts(HandleDes handleDes, String actual, String expect, String type) {
handleDes.setDetail("真实值: " + actual + " 期望值: " + expect);
try {
switch (type) {
case "assertEquals":
handleDes.setStepDes("断言验证(相等)");
assertEquals(actual, expect);
break;
case "assertTrue":
handleDes.setStepDes("断言验证(包含)");
assertTrue(actual.contains(expect));
break;
case "assertNotTrue":
handleDes.setStepDes("断言验证(不包含)");
assertFalse(actual.contains(expect));
break;
}
} catch (AssertionError e) {
handleDes.setE(e);
}
}
public String getText(HandleDes handleDes, String des, String selector, String pathValue) {
String s = "";
handleDes.setStepDes("获取" + des + "文本");
handleDes.setDetail("获取" + selector + ":" + pathValue + "文本");
try {
s = findEle(selector, pathValue).getText();
log.sendStepLog(StepType.INFO, "", "文本获取结果: " + s);
} catch (Exception e) {
handleDes.setE(e);
}
return s;
}
public void hideKey(HandleDes handleDes) {
handleDes.setStepDes("隐藏键盘");
handleDes.setDetail("隐藏弹出键盘");
try {
iosDriver.hideKeyboard();
} catch (Exception e) {
handleDes.setE(e);
}
}
public void click(HandleDes handleDes, String des, String selector, String pathValue) {
handleDes.setStepDes("点击" + des);
handleDes.setDetail("点击" + selector + ": " + pathValue);
try {
findEle(selector, pathValue).click();
} catch (Exception e) {
handleDes.setE(e);
}
}
public void sendKeys(HandleDes handleDes, String des, String selector, String pathValue, String keys) {
if (keys.contains("{{random}}")) {
String random = (int) (Math.random() * 10 + Math.random() * 10 * 2) + 5 + "";
keys = keys.replace("{{random}}", random);
}
if (keys.contains("{{timestamp}}")) {
String timeMillis = Calendar.getInstance().getTimeInMillis() + "";
keys = keys.replace("{{timestamp}}", timeMillis);
}
keys = replaceTrans(keys);
handleDes.setStepDes("对" + des + "输入内容");
handleDes.setDetail("对" + selector + ": " + pathValue + " 输入: " + keys);
try {
findEle(selector, pathValue).sendKeys(keys);
} catch (Exception e) {
handleDes.setE(e);
}
}
public void getTextAndAssert(HandleDes handleDes, String des, String selector, String pathValue, String expect) {
handleDes.setStepDes("获取" + des + "文本");
handleDes.setDetail("获取" + selector + ":" + pathValue + "文本");
try {
String s = findEle(selector, pathValue).getText();
log.sendStepLog(StepType.INFO, "", "文本获取结果: " + s);
try {
expect = replaceTrans(expect);
assertEquals(s, expect);
log.sendStepLog(StepType.INFO, "验证文本", "真实值: " + s + " 期望值: " + expect);
} catch (AssertionError e) {
log.sendStepLog(StepType.ERROR, "验证" + des + "文本失败!", "");
handleDes.setE(e);
}
} catch (Exception e) {
handleDes.setE(e);
}
}
public void longPressPoint(HandleDes handleDes, String des, String xy, int time) {
int x = Integer.parseInt(xy.substring(0, xy.indexOf(",")));
int y = Integer.parseInt(xy.substring(xy.indexOf(",") + 1));
handleDes.setStepDes("长按" + des);
handleDes.setDetail("长按坐标" + time + "毫秒 (" + x + "," + y + ")");
try {
TouchAction ta = new TouchAction(iosDriver);
ta.longPress(PointOption.point(x, y)).waitAction(WaitOptions.waitOptions(Duration.ofMillis(time))).release().perform();
} catch (Exception e) {
handleDes.setE(e);
}
}
public void keyCode(HandleDes handleDes, String key) {
handleDes.setStepDes("按系统按键" + key + "键");
try {
iosDriver.executeScript("mobile:pressButton", JSON.parse("{name: \"" + key + "\"}"));
} catch (Exception e) {
handleDes.setE(e);
}
}
public void multiAction(HandleDes handleDes, String des1, String xy1, String des2, String xy2, String des3, String xy3, String des4, String xy4) {
int x1 = Integer.parseInt(xy1.substring(0, xy1.indexOf(",")));
int y1 = Integer.parseInt(xy1.substring(xy1.indexOf(",") + 1));
int x2 = Integer.parseInt(xy2.substring(0, xy2.indexOf(",")));
int y2 = Integer.parseInt(xy2.substring(xy2.indexOf(",") + 1));
int x3 = Integer.parseInt(xy3.substring(0, xy3.indexOf(",")));
int y3 = Integer.parseInt(xy3.substring(xy3.indexOf(",") + 1));
int x4 = Integer.parseInt(xy4.substring(0, xy4.indexOf(",")));
int y4 = Integer.parseInt(xy4.substring(xy4.indexOf(",") + 1));
String detail = "坐标" + des1 + "( " + x1 + ", " + y1 + " )移动到坐标" + des2 + "( " + x2 + ", " + y2 + " ),同时坐标" + des3 + "( " + x3 + ", " + y3 + " )移动到坐标" + des4 + "( " + x4 + ", " + y4 + " )";
handleDes.setStepDes("双指操作");
handleDes.setDetail(detail);
try {
TouchAction hand1 = new TouchAction(iosDriver);
TouchAction hand2 = new TouchAction(iosDriver);
MultiTouchAction multiTouchAction = new MultiTouchAction(iosDriver);
hand1.press(PointOption.point(x1, y1)).moveTo(PointOption.point(x2, y2)).release();
hand2.press(PointOption.point(x3, y3)).moveTo(PointOption.point(x4, y4)).release();
multiTouchAction.add(hand1);
multiTouchAction.add(hand2);
multiTouchAction.perform();
} catch (Exception e) {
handleDes.setE(e);
}
}
public void tap(HandleDes handleDes, String des, String xy) {
int x = Integer.parseInt(xy.substring(0, xy.indexOf(",")));
int y = Integer.parseInt(xy.substring(xy.indexOf(",") + 1));
handleDes.setStepDes("点击" + des);
handleDes.setDetail("点击坐标(" + x + "," + y + ")");
try {
TouchAction ta = new TouchAction(iosDriver);
ta.tap(PointOption.point(x, y)).perform();
} catch (Exception e) {
handleDes.setE(e);
}
}
public void swipe(HandleDes handleDes, String des1, String xy1, String des2, String xy2) {
int x1 = Integer.parseInt(xy1.substring(0, xy1.indexOf(",")));
int y1 = Integer.parseInt(xy1.substring(xy1.indexOf(",") + 1));
int x2 = Integer.parseInt(xy2.substring(0, xy2.indexOf(",")));
int y2 = Integer.parseInt(xy2.substring(xy2.indexOf(",") + 1));
handleDes.setStepDes("滑动拖拽" + des1 + "到" + des2);
handleDes.setDetail("拖动坐标(" + x1 + "," + y1 + ")到(" + x2 + "," + y2 + ")");
try {
TouchAction ta = new TouchAction(iosDriver);
ta.press(PointOption.point(x1, y1)).waitAction(WaitOptions.waitOptions(Duration.ofMillis(300))).moveTo(PointOption.point(x2, y2)).release().perform();
} catch (Exception e) {
handleDes.setE(e);
}
}
public void longPress(HandleDes handleDes, String des, String selector, String pathValue, int time) {
handleDes.setStepDes("长按" + des);
handleDes.setDetail("长按控件元素" + time + "毫秒 ");
try {
TouchAction ta = new TouchAction(iosDriver);
WebElement webElement = findEle(selector, pathValue);
int x = webElement.getLocation().getX();
int y = webElement.getLocation().getY();
Duration duration = Duration.ofMillis(time);
ta.longPress(PointOption.point(x, y)).waitAction(WaitOptions.waitOptions(duration)).release().perform();
} catch (Exception e) {
handleDes.setE(e);
}
}
public void clear(HandleDes handleDes, String des, String selector, String pathValue) {
handleDes.setStepDes("清空" + des);
handleDes.setDetail("清空" + selector + ": " + pathValue);
try {
findEle(selector, pathValue).clear();
} catch (Exception e) {
handleDes.setE(e);
}
}
public void getTitle(HandleDes handleDes, String expect) {
String title = iosDriver.getTitle();
handleDes.setStepDes("验证网页标题");
handleDes.setDetail("标题:" + title + ",期望值:" + expect);
try {
assertEquals(title, expect);
} catch (AssertionError e) {
handleDes.setE(e);
}
}
public void clickByImg(HandleDes handleDes, String des, String pathValue) throws Exception {
handleDes.setStepDes("点击图片" + des);
handleDes.setDetail(pathValue);
File file = null;
if (pathValue.startsWith("http")) {
try {
file = DownImageTool.download(pathValue);
} catch (Exception e) {
handleDes.setE(e);
return;
}
}
FindResult findResult = null;
try {
SIFTFinder siftFinder = new SIFTFinder();
findResult = siftFinder.getSIFTFindResult(file, getScreenToLocal());
} catch (Exception e) {
log.sendStepLog(StepType.WARN, "SIFT图像算法出错,切换算法中...",
"");
}
if (findResult != null) {
log.sendStepLog(StepType.INFO, "图片定位到坐标:(" + findResult.getX() + "," + findResult.getY() + ") 耗时:" + findResult.getTime() + " ms",
findResult.getUrl());
} else {
log.sendStepLog(StepType.INFO, "SIFT算法无法定位图片,切换AKAZE算法中...",
"");
try {
AKAZEFinder akazeFinder = new AKAZEFinder();
findResult = akazeFinder.getAKAZEFindResult(file, getScreenToLocal());
} catch (Exception e) {
log.sendStepLog(StepType.WARN, "AKAZE图像算法出错,切换模版匹配算法中...",
"");
}
if (findResult != null) {
log.sendStepLog(StepType.INFO, "图片定位到坐标:(" + findResult.getX() + "," + findResult.getY() + ") 耗时:" + findResult.getTime() + " ms",
findResult.getUrl());
} else {
log.sendStepLog(StepType.INFO, "AKAZE算法无法定位图片,切换模版匹配算法中...",
"");
try {
TemMatcher temMatcher = new TemMatcher();
findResult = temMatcher.getTemMatchResult(file, getScreenToLocal());
} catch (Exception e) {
log.sendStepLog(StepType.WARN, "模版匹配算法出错",
"");
}
if (findResult != null) {
log.sendStepLog(StepType.INFO, "图片定位到坐标:(" + findResult.getX() + "," + findResult.getY() + ") 耗时:" + findResult.getTime() + " ms",
findResult.getUrl());
} else {
handleDes.setE(new Exception("图片定位失败!"));
}
}
}
if (findResult != null) {
try {
TouchAction ta = new TouchAction(iosDriver);
ta.tap(PointOption.point(findResult.getX(), findResult.getY())).perform();
} catch (Exception e) {
log.sendStepLog(StepType.ERROR, "点击" + des + "失败!", "");
handleDes.setE(e);
}
}
}
public void readText(HandleDes handleDes, String language, String text) throws Exception {
// TextReader textReader = new TextReader();
// String result = textReader.getTessResult(getScreenToLocal(), language);
// log.sendStepLog(StepType.INFO, "",
// "图像文字识别结果:<br>" + result);
// String filter = result.replaceAll(" ", "");
handleDes.setStepDes("图像文字识别");
handleDes.setDetail("(该功能暂时关闭)期望包含文本:" + text);
// if (!filter.contains(text)) {
// handleDes.setE(new Exception("图像文字识别不通过!"));
// }
}
public File getScreenToLocal() {
File file = ((TakesScreenshot) iosDriver).getScreenshotAs(OutputType.FILE);
File resultFile = new File("test-output/" + log.udId + Calendar.getInstance().getTimeInMillis() + ".jpg");
try {
FileCopyUtils.copy(file, resultFile);
} catch (IOException e) {
e.printStackTrace();
}
return resultFile;
}
public String replaceTrans(String text) {
if (text.contains("{{") && text.contains("}}")) {
String tail = text.substring(text.indexOf("{{") + 2);
if (tail.contains("}}")) {
String child = tail.substring(tail.indexOf("}}") + 2);
String middle = tail.substring(0, tail.indexOf("}}"));
text = text.substring(0, text.indexOf("}}") + 2);
if (globalParams.getString(middle) != null) {
text = text.replace("{{" + middle + "}}", globalParams.getString(middle));
}
text = text + replaceTrans(child);
}
}
return text;
}
public void checkImage(HandleDes handleDes, String des, String pathValue, double matchThreshold) throws Exception {
log.sendStepLog(StepType.INFO, "开始检测" + des + "兼容", "检测与当前设备截图相似度,期望相似度为" + matchThreshold + "%");
File file = null;
if (pathValue.startsWith("http")) {
file = DownImageTool.download(pathValue);
}
double score = SimilarityChecker.getSimilarMSSIMScore(file, getScreenToLocal(), true);
handleDes.setStepDes("检测" + des + "图片相似度");
handleDes.setDetail("相似度为" + score * 100 + "%");
if (score == 0) {
handleDes.setE(new Exception("图片相似度检测不通过!比对图片分辨率不一致!"));
} else if (score < (matchThreshold / 100)) {
handleDes.setE(new Exception("图片相似度检测不通过!expect " + matchThreshold + " but " + score * 100));
}
}
public void siriCommand(HandleDes handleDes, String command) {
handleDes.setStepDes("siri指令");
handleDes.setDetail("对siri发送指令: " + command);
try {
iosDriver.executeScript("mobile:siriCommand", JSON.parse("{text: \"" + command + "\"}"));
} catch (Exception e) {
handleDes.setE(e);
}
}
public void exceptionLog(Throwable e) {
log.sendStepLog(StepType.WARN, "", "异常信息: " + e.fillInStackTrace().toString());
}
public void errorScreen() {
try {
iosDriver.context("NATIVE_APP");//先切换回app
log.sendStepLog(StepType.WARN, "获取异常截图", UploadTools
.upload(((TakesScreenshot) iosDriver).getScreenshotAs(OutputType.FILE), "imageFiles"));
} catch (Exception e) {
log.sendStepLog(StepType.ERROR, "捕获截图失败", "");
}
}
public String stepScreen(HandleDes handleDes) {
handleDes.setStepDes("获取截图");
String url = "";
try {
url = UploadTools.upload(((TakesScreenshot) iosDriver)
.getScreenshotAs(OutputType.FILE), "imageFiles");
handleDes.setDetail(url);
} catch (Exception e) {
handleDes.setE(e);
}
return url;
}
public void pause(HandleDes handleDes, int time) {
handleDes.setStepDes("强制等待");
handleDes.setDetail("等待" + time + " ms");
try {
Thread.sleep(time);
} catch (InterruptedException e) {
handleDes.setE(e);
}
}
public void publicStep(HandleDes handleDes, String name, JSONArray stepArray) {
handleDes.setStepDes("执行公共步骤 " + name);
log.sendStepLog(StepType.WARN, "公共步骤 " + name + " 开始执行", "");
for (Object publicStep : stepArray) {
JSONObject stepDetail = (JSONObject) publicStep;
try {
runStep(stepDetail);
} catch (Throwable e) {
handleDes.setE(e);
break;
}
}
}
public WebElement findEle(String selector, String pathValue) {
WebElement we = null;
switch (selector) {
case "id":
we = iosDriver.findElementById(pathValue);
break;
case "accessibilityId":
we = iosDriver.findElementByAccessibilityId(pathValue);
break;
case "nsPredicate":
we = iosDriver.findElementByIosNsPredicate(pathValue);
break;
case "name":
we = iosDriver.findElementByName(pathValue);
break;
case "xpath":
we = iosDriver.findElementByXPath(pathValue);
break;
case "cssSelector":
we = iosDriver.findElementByCssSelector(pathValue);
break;
case "className":
we = iosDriver.findElementByClassName(pathValue);
break;
case "tagName":
we = iosDriver.findElementByTagName(pathValue);
break;
case "linkText":
we = iosDriver.findElementByLinkText(pathValue);
break;
case "partialLinkText":
we = iosDriver.findElementByPartialLinkText(pathValue);
break;
default:
log.sendStepLog(StepType.ERROR, "查找控件元素失败", "这个控件元素类型: " + selector + " 不存在!!!");
break;
}
return we;
}
public void runStep(JSONObject stepJSON) throws Throwable {
JSONObject step = stepJSON.getJSONObject("step");
JSONArray eleList = step.getJSONArray("elements");
HandleDes handleDes = new HandleDes();
switch (step.getString("stepType")) {
case "siriCommand":
siriCommand(handleDes, step.getString("content"));
break;
case "readText":
readText(handleDes, step.getString("content"), step.getString("text"));
break;
case "clickByImg":
clickByImg(handleDes, eleList.getJSONObject(0).getString("eleName")
, eleList.getJSONObject(0).getString("eleValue"));
break;
case "click":
click(handleDes, eleList.getJSONObject(0).getString("eleName"), eleList.getJSONObject(0).getString("eleType")
, eleList.getJSONObject(0).getString("eleValue"));
break;
case "getTitle":
getTitle(handleDes, step.getString("content"));
break;
case "sendKeys":
sendKeys(handleDes, eleList.getJSONObject(0).getString("eleName"), eleList.getJSONObject(0).getString("eleType")
, eleList.getJSONObject(0).getString("eleValue"), step.getString("content"));
break;
case "getText":
getTextAndAssert(handleDes, eleList.getJSONObject(0).getString("eleName"), eleList.getJSONObject(0).getString("eleType")
, eleList.getJSONObject(0).getString("eleValue"), step.getString("content"));
break;
case "clear":
clear(handleDes, eleList.getJSONObject(0).getString("eleName"), eleList.getJSONObject(0).getString("eleType")
, eleList.getJSONObject(0).getString("eleValue"));
break;
case "longPress":
longPress(handleDes, eleList.getJSONObject(0).getString("eleName"), eleList.getJSONObject(0).getString("eleType")
, eleList.getJSONObject(0).getString("eleValue"), Integer.parseInt(step.getString("content")));
break;
case "swipe":
swipe(handleDes, eleList.getJSONObject(0).getString("eleName"), eleList.getJSONObject(0).getString("eleValue")
, eleList.getJSONObject(1).getString("eleName"), eleList.getJSONObject(1).getString("eleValue"));
break;
case "tap":
tap(handleDes, eleList.getJSONObject(0).getString("eleName"), eleList.getJSONObject(0).getString("eleValue"));
break;
case "longPressPoint":
longPressPoint(handleDes, eleList.getJSONObject(0).getString("eleName"), eleList.getJSONObject(0).getString("eleValue")
, Integer.parseInt(step.getString("content")));
break;
case "pause":
pause(handleDes, Integer.parseInt(step.getString("content")));
break;
case "checkImage":
checkImage(handleDes, eleList.getJSONObject(0).getString("eleName"), eleList.getJSONObject(0).getString("eleValue")
, step.getDouble("content"));
break;
case "stepScreen":
stepScreen(handleDes);
break;
case "openApp":
openApp(handleDes, step.getString("text"));
break;
case "terminate":
terminate(handleDes, step.getString("text"));
break;
case "install":
install(handleDes, step.getString("text"));
break;
case "uninstall":
uninstall(handleDes, step.getString("text"));
break;
case "runBack":
runBackground(handleDes, Long.parseLong(step.getString("content")));
break;
case "lock":
lock(handleDes);
break;
case "unLock":
unLock(handleDes);
break;
case "zoom":
multiAction(handleDes, eleList.getJSONObject(0).getString("eleName"), eleList.getJSONObject(0).getString("eleValue")
, eleList.getJSONObject(1).getString("eleName"), eleList.getJSONObject(1).getString("eleValue")
, eleList.getJSONObject(2).getString("eleName"), eleList.getJSONObject(2).getString("eleValue")
, eleList.getJSONObject(3).getString("eleName"), eleList.getJSONObject(3).getString("eleValue"));
break;
case "keyCode":
keyCode(handleDes, step.getString("content"));
break;
case "assertEquals":
case "assertTrue":
case "assertNotTrue":
String actual = replaceTrans(step.getString("text"));
String expect = replaceTrans(step.getString("content"));
asserts(handleDes, actual, expect, step.getString("stepType"));
break;
case "getTextValue":
globalParams.put(step.getString("content"), getText(handleDes, eleList.getJSONObject(0).getString("eleName")
, eleList.getJSONObject(0).getString("eleType"), eleList.getJSONObject(0).getString("eleValue")));
break;
case "hideKey":
hideKey(handleDes);
break;
// case "monkey":
// runMonkey(handleDes, step.getJSONObject("content"), step.getJSONArray("text").toJavaList(JSONObject.class));
// break;
case "publicStep":
publicStep(handleDes, step.getString("content"), stepJSON.getJSONArray("pubSteps"));
}
switchType(step.getInteger("error"), handleDes.getStepDes(), handleDes.getDetail(), handleDes.getE());
}
public void switchType(int error, String step, String detail, Throwable e) throws Throwable {
if (e != null) {
switch (error) {
case ErrorType.IGNORE:
log.sendStepLog(StepType.PASS, step + "异常!已忽略...", detail);
break;
case ErrorType.WARNING:
log.sendStepLog(StepType.WARN, step + "异常!", detail);
setResultDetailStatus(ResultDetailStatus.WARN);
errorScreen();
exceptionLog(e);
break;
case ErrorType.SHUTDOWN:
log.sendStepLog(StepType.ERROR, step + "异常!", detail);
setResultDetailStatus(ResultDetailStatus.FAIL);
errorScreen();
exceptionLog(e);
throw e;
}
} else {
log.sendStepLog(StepType.PASS, step, detail);
}
}
}
| java |
Israel seems to have been the country with the single biggest foreign contingent at TC50 with no less than 6 7 of the 50 companies presenting on stage. Some more Israeli startups could be found in the demo pit, the exhibition space and just walking around the venue floor shopping for investors, customers and partners.
Here is a round-up of the 6 Israeli companies that presented on stage:
Registered Investment Advisors (RIA’s) typically provide advice to individuals with assets of $500K and above on average. The alternative to individuals with less assets are mutual funds which lack in transparencies (what your money is invested in) and individual attention (you get to talk to customer service reps, not the fund manager). Personalria wants to change all this by bringing the same high-end advice and investment transparency “rich folks” get to “ordinary folks” with much fewer assets to invest, say $10K.
The Personalria platform requires buy-in from both users and RIA’s. Users are required to open a brokerage trading account at Ameritrade or eTrade, for example, in order to use the Personalria service. RIA’s will need to create profiles describing their education, experience, etc.
The big question is whether the company can pull off the chicken-and-the-egg challenge, meaning, getting a critical mass of users and RIA’s that make it worthwhile for each group to join. The judges on the panel also noted the challenges the company will face in customer acquisition and the density of competition, both offline and online such as Cake Financial (a company that launched at last year’s TC40).
AlfaBetic has developed a propriety language translation engine based on statistical machine translation and human QA to translate English to Spanish, French, German and Portuguese.
The service is initially being targeted at bloggers which can provide AlfaBetic an RSS feed that will then be translated and consequently monetized globally. Their engine will do most of the work, but human intervention is used to edit and proof every piece of content. The engine employs domain language templates such as technology, sports and finance. These are improved over time through machine learning and as a result of the human QA.
The company’s planned business model requires it to provide the translated content to portals and then the selling of ads against it. This will be “non-intelligent” targeting, i.e. basic demographics, sponsorship, etc.
Panel judges Om Malik & Tim O’Riley were asked whether they would use the service and indicated they would not use a translation model. Instead they would opt for a full-blown localized operation such as fr.beta.techcrunch.com.
The story of Tweegee begins in Israel where the company is active as Tipo.co.il, a kids community site with 800K monthly uniques (out of a total population of 1.2M kids aged 8-14).
TechCrunch50 marks the company’s launch of its American play—Tweegee.com—a social network aimed at being MySpace for kids aged 8-14. Positioned as a destination site, TweeGee is intended to offer tweens a safe environment to express themselves and interact with others in their age group.
The site offers email with a feature called WordUp, a patent pending application which works in a very similar manner to T9, but attuned to the 8-14 age group with relevant blacklisted words and such. Kids can also use a calendar app, build avatars, play multiplayer games and create their Zones which are websites built on Flash and HTML.
One of the big challenges the company will face is an issue panel judge Ron Conway raised and that is how to get gain a share of the time kids are already spending online in places such as ClubPenguin. Curiously, the company is adamant about not widgetizing its offering.
Next week the company will launch a Russian version called Tvidi.ru , the result of a partnership with Russian Media company RBC which paid $6M for 50% of the license. A Turkish version is in the works.
MytTopia wants to reduce the headaches and costs associated with developing games for mobile phones by allowing developers to write code once and have it immediately ported to all available smartphones and mobile operating systems.
The company’s solution—similar to that of Mo’Minis—is a Rich Content Authoring Environment called RUGS which utilizes a customized Eclipse-based IDE. Developers can use this environment to develop any number of mobile game applications without any platform-specific knowledge such as Symbian, PlamOS, or iPhone SDK. The application designer works independently of the programmer to design the app skin & layout—the code remains the same.
MyTopia claims that a single cross-platform game developed on RUGS required one developer four weeks at a cost of $50K, while it would cost $1M using current development methods.
MyTopia is also running a game destination site called MyTopia Online which was considered a distraction by the panel of judges.
Think of devunity’s collaborative coding platform as Google Docs for code. The key pain point it is trying to solve is providing developers the ability to interact with fellow developers in real time, thereby creating a “healthier” development process which would theoretically reduce dev costs.
devunity’s fully functioning code editor currently supports Python, PHP, ASP, Javascripts, CSS, and HTML. It also sports built-in integrated APIs such as BOSS, Google Apps Engine, Digg, Flickr, Facebook, etc. The code is completely exportable, meaning, devunity does not lock you in to having them host the app.
There’s also no need to worry about versioning issues such as waiting for other developers to check-in code—devunity does all of this in real time. It also allows the developers to create discussions right on top of the code and gain additional visibility by way of a mini feed which is automatically created for each project.
The company is aiming for a two pronged business model approach. The first is a service play where developers would pay for usage based on a subscription model. The second is a white label approach where companies can form their own devunity environment. An interesting example for the latter would be to allow an outside development firm to use devunity in order to work and interact along side an in-house dev team.
plaYce believes there’s a gap between high-end and casual games, where the former is expensive and might not give you the bang for your buck you expect, and the latter being free but flat in game graphic quality.
plaYce is attempting to bridge this gap through a propriety graphics rendering technology that requires no-download yet still delivers high graphics quality and fast frame rate, right within the browser. While still restricted to IE—it requires a DirectX plugin—the company claims the technology will be applicable on other browsers and is optimized for low-end computers. It is also able to recreate dense scenarios streamed over slow web connections.
The company has no intent to develop the games itself, rather it sees itself as both platform and publisher. It intends to lure independent game developers by offering them what it calls “Game Infrastructure as a Service” which would include everything from the game infrastructure to user acquisition.
The major challenge for plaYce will be to find 2-3 killer games that will bring the critical mass of users necessary to attract game developers to the platform.
For more information on plaYce, see John Biggs’ post, here.
DemoPit Companies:
Founded by Nir Ofir, a co-founder at BlogTV, iamnews is taking a crowed-sourced approach to the newsroom. Once news tasks are created, reporters from around can contribute into them. This can include pure textual content, photos and videos. The platform handles the entire process, from task creation to management of the contributions. With the newspaper business continuing to struggle, a solution such as iamnews can help them deliver quicker news more cheaply. (Iamnews was voted the best DemoPit company, and became the last TC50 finalist to present onstage).
ConTrust provides a real-time UGC moderation platform able to identify content threats including profanity, pornography, racism and brand abuse. It is then able to block these threats according to a set of pre-defined customized levels. The company also claims their platform protects against traditional security threats such as spam, phishing, and malware.
Joongel considers itself a platform for the creation of web-based toolbars. These are toolbar “strips” in the header area of a web page that require neither download nor installation. Site publishers can use Joongel to offer a search engine aggregator or a vertical search engine for travel, video, cooking, etc. The motivation for publishers is mainly through monetization via affiliation and ad rev-share.
Update: A prominent angel investor walking the TC50 DemoPit has expressed interest in investing in the company.
Exhibitor Companies:
2Pad is a web service that integrates with your email service—currently limited to Windows Live, AOL, Gmail, MobileME and IMAP service providers—in order to mine it for pictures and videos. 2Pad then automatically tags them with the email’s subject, sender, recipient—all of which are then available as filters. The service is very similar to xoopit with the major difference being that 2Pad does not require an installation.
Delver has developed a search engine designed to uncover knowledge and information that exists in users’ social graphs. Delver is packaging themselves as both a destination site and a white label solution for intra social network search.
Payoneer provides a payment solution for web-business that utilizes MasterCard debit cards to facilitate the actual payment at the end point. While similar in concept to PayPal, Payoneer sees itself more of a complement than competition in the sense that it can bring its expertise in international payments into the PayPal ecosystem—an area PayPal is generally considered as lacking.
The company recently closed an $8M Series B round from Greylock and Carmel Ventures.
Wix offers a webtop publishing platform for the creation of Flash-based websites, social network profiles, comments and more. (Disclosure: I advised the company in the past).
| english |
{"vjs-video.js":"<KEY>,"vjs-video.min.js":"<KEY>} | json |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.