text stringlengths 1 1.04M | language stringclasses 25 values |
|---|---|
---
layout: default
---
<!-- <style>
*{
border: 1px black solid
}
</style> -->
<section class="page-section home-container my-0 py-0 px-0">
<div class="container-fluid my-0 mx-0 px-0">
<!-- background: rgb(83, 72, 167); -->
<div class="pt-4 pb-3 mx-5 mt-5" style="background: rgb(83, 72, 167);border-radius: 30px;">
<div class="row mx-1 px-0">
<div class="col-6 mx-0 px-0 ">
<h1 class="mb-3 mx-3 text-left" style="color: white;font-weight: normal;">
Gym is
</h1>
<h2 class="mb-3 mx-0 text-left pl-2" style="color: white;font-weight: normal;">
<ul style="list-style-type:none;">
<li class="mb-4">A standard API for reinforcement learning</li>
<li class="mb-4">A communication protocol between policies and environments</li>
<li class="mb-3">A diverse set of reference environments</li>
</ul>
</h2>
</div>
<div class="col-6 d-flex">
<!-- <span>sfff</span> -->
<img class="img-fluid my-auto" style="border-radius: 2%;border: 2px white solid;" src="{{site.data.general.header.gif}}"></img>
</div>
</div>
</div>
</div>
</section>
<section class="page-section home-container mb-0 pt-0 pb-0 mt-4" style="background:white;">
<div class="container-fluid mx-2 px-5" >
<div class="row">
<div class="col-6 offset-3">
<h3>The Gym interface is both robust and easy for beginners to understand</h3>
<div class="mt-0 mb-0 pl-4 mt-4" style="background-color: #f6f8fa;">
{% highlight python %}
{{site.data.general.header.code}}
{% endhighlight %}
</div>
</div>
</div>
</div>
</section>
<section class="page-section home-container my-0 py-0 mb-3 px-0">
<div class="container-fluid my-0 mx-0 px-0">
<!-- background: rgb(83, 72, 167); -->
<div class="pt-4 pb-3" style="background: white">
<div class="row">
<div class="col-7 offset-5">
<h1 style="color: white;">100+ things supported</h1>
</div>
</div>
</div>
</div>
</section> | html |
Former Brooklyn Nets general manager Billy King went all in in 2013 when he acquired Paul Pierce and Kevin Garnett from the Boston Celtics. However, King also sent three first-round picks and a pick swap to Boston.
Speaking to Jeff Skversky on Sportskeeda's exclusive podcast, "Inside The Huddle," King discussed what it was like being an NBA general manager. He was the Philadelphia 76ers' GM from 1998 to 2007. He was then hired by the Nets in 2010 before getting re-assigned in 2016.
Skversky also asked King what his best and worst trades were as an executive. The 56-year-old Duke product revealed that acquiring Eric Snow and Dikembe Mutombo were his best decisions. Snow arrived in 1998, while Mutombo was added at the 2001 trade deadline.
"Two of the best was probably getting Mutombo, obviously, because I think that was piece that we needed at the time, and Eric Snow," King said. "We traded a future second round pick to get Eric Snow. He was the fourth point guard on Seattle, wasn't playing."
Snow and Mutombo were integral parts of the 2001 Sixers team that made it to the NBA Finals led by Allen Iverson.
Meanwhile, Billy King was very honest that the worst trade of his career was the Nets deal that nabbed two future Hall of Famers. Some critics have called the deal the worst trade in NBA history due to the number of picks involved and the failure of Brooklyn to win a championship.
But despite the criticism, King defended the trade because they went all in and tried to contend for the next two seasons. The only thing he regrets is putting on the pick swap for the 2017 NBA draft. The swapped pick turned into Jayson Tatum, who is the Celtics' current franchise player.
Around the 19-min mark, Billy King discusses the trade that went wrong for so many reasons:
"The worst one was probably the Brooklyn trade with Boston," King said. "If I had to go back around, I would have taken the swaps out. I think we had the swap rights in the odd year and they got a pick.
"The three firsts, I was okay with. It was the swap rights. I think if I could have taken that out, it would have gave the team a little more protection there on those off years."
During the 2013 offseason, former Brooklyn Nets general manager Billy King made the worst trade of his career. King sent Kris Humphries, Gerald Wallace, MarShon Brooks, Kris Joseph, and Keith Bogans to the Celtics.
In return, the Nets acquired Kevin Garnett, Paul Pierce and Jason Terry. They won their first playoff series together, but that was the height of their success. Pierce left after one season, with Garnett getting traded to the Minnesota Timberwolves in 2015.
Meanwhile, the Celtics used the 2016 first-round pick on Jaylen Brown and the 2017 pick swap to draft Jayson Tatum. Brown and Tatum led Boston to an NBA Finals berth last season.
The Nets might have recovered in the past few seasons by adding Kevin Durant and Kyrie Irving. However, they are in limbo once again after Durant requested a trade before the start of free agency.
Check out all NBA Trade Deadline 2024 deals here as big moves are made!
| english |
<reponame>edwinyosorahardjo/bible<gh_stars>1-10
["Sebermula, maka pada masa Semuel sudah tua diangkatnya kedua anaknya laki-laki akan hakim atas orang Israel.","Adapun nama anak sulungnya itu Yoel dan nama anak bungsunya itu Abia, keduanya itu menjadi hakim di Birsyeba.","Tetapi anaknya itu tiada berjalan pada kesan kaki bapanya, melainkan cenderunglah ia kepada kekikiran, dimakannya suap dan diubahkannya hukum.","Sebab itu berhimpunlah segala tua-tua orang Israel, lalu sekaliannya pergi mendapatkan Semuel, yang di Rama,","sambil katanya kepadanya: Bahwa engkau sudah tua, maka anakmu itu tiada berjalan pada kesan kakimu, sebab itu hendaklah engkau mengangkat seorang raja atas kami, supaya diperintahkannya kami seperti adat segala bangsa yang lain.","Maka perkataan ini jahatlah kepada pemandangan Semuel, yaitu sebab kata mereka itu: Berikanlah kiranya kami seorang raja, yang memerintahkan kami. Lalu Semuelpun meminta doa kepada Tuhan.","Maka <NAME> kepada Semuel: Dengarlah juga olehmu akan kata bangsa ini dalam segala sesuatu yang dipintanya kepadamu, karena bukannya engkau yang dicelakan olehnya, melainkan dicelakannya Aku, supaya jangan lagi Aku jadi Rajanya.","Seperti segala perbuatan mereka itu dari pada hari Aku menghantar akan mereka itu keluar dari Mesir datang kepada hari ini, yaitu ditinggalkannya akan Daku dan diturutnya akan berhala, demikianpun perbuatan mereka itu akan dikau.","Maka sekarangpun dengarlah olehmu akan katanya, tetapi nasihatkanlah mereka itu baik-baik dan berilah tahu kepadanya peri kelakuan raja, yang akan memerintahkan mereka itu kelak.","Maka disampaikan Semuel segala firman Tuhan itu kepada orang banyak, yang sudah meminta seorang raja kepadanya,","katanya: Bahwa demikianlah akan peri kelakuan raja, yang akan memerintahkan kamu kelak: Bahwa ia akan mengambil anak-anakmu laki-laki hendak dijadikannya baginya akan pengiring ratanya dan akan orang yang mengendarai kuda, dan akan orang yang berjalan di hadapan ratanya,","dan hendak dijadikannya mereka itu kepala atas orang seribu dan kepala atas orang lima puluh, dan akan penenggala bendangnya dan akan orang penuai perhumaannya dan akan pandai yang memperbuatkan senjata perangnya dan lagi segala perkakas ratanya.","Maka anak-anakmu perempuan diambilnya kelak, dijadikannya tukang rempah-rempah dan juru masak dan tukang roti.","Dan segala bendangmu dan segala kebun anggurmu dan segala kebun pokok zaitmu yang terbaik itu akan diambilnya kelak, diberikannya kepada hamba-hambanya.","Dan dari pada segala hasil tanahmu dan buah-buah pokokmu akan diambilnya dalam sepuluh asa, diberikannya kelak kepada segala pegawainya dan kepada hamba-hambanya.","Tambahan pula hamba-hambamu dan orang mudamu yang terbaik itu dan keledaimupun akan diambilnya hendak digunakannya kepada pekerjaannya.","Dan dari pada segala binatangmu akan diambilnya dalam sepuluh asa dan kamu sekalianpun akan menjadi hambanya.","Bahwasanya pada hari itu juga kamu akan berseru-seru dari sebab rajamu, yang telah kamu pilih itu, tetapi tiada juga Tuhan hendak mendengar akan kamu pada hari itu.","Maka seganlah orang banyak itu mendengar akan kata Semuel, melainkan katanya: Kendati; biarlah juga atas kami seorang raja.","Dan biar kamipun seperti segala bangsa lain, diperintahkan oleh raja kami, biar ia berjalan pada hulu kami dan melakukan segala perang kami.","Setelah sudah didengar Semuel akan kata orang banyak itu, maka disampaikannyalah kepada Tuhan.","Lalu firman Tuhan kepada Semuel: Dengarlah juga olehmu akan katanya, dan lantikkanlah bagi mereka itu seorang raja. Kemudian kata Semuel kepada segala orang Israel: Pulanglah kamu, masing-masing ke negerinya sendiri."] | json |
Turkey will lock horns with Cyprus in the 15th match of the ICC Men's T20 World Cup Qualifier A at the Tikkurila Cricket Ground in Vantaa on Saturday, July 16.
Turkey have lost both of their first two matches and are currently placed at the bottom of the Group 2 points table.
Cyprus, on the other hand, have won one out of their two matches and are third in the Group 2 points table. They beat Romania by 20 runs in their last match.
The pitch at the Tikkurila Cricket Ground has been in favor of the bowlers in the last couple of matches. The batters have struggled a great deal to play big shots on this track.
Batting first should be the preferred option, with the average first innings score at the venue being 119 runs.
Romeo Nath: Nath hasn't performed as per expectations in this ongoing season, scoring only 23 runs at a strike rate of 50. He will be looking forward to coming back stronger in this upcoming match.
Sadun Mahamalage: Sadun is someone who can do well with both the bat and ball in this upcoming match. He has scored 28 runs at a strike rate of 121+ and also picked up a wicket in two matches.
Gokhan Alta: Alta has been in decent touch with both the bat and ball this season. He has scored 17 runs and also picked up two wickets at an economy rate of 5.28 in two innings.
Shoaib Ahmad: Ahmad is currently the leading run-scorer for Cyprus so far this season with 55 runs. He has also picked up two wickets in two matches.
Gurpratap Singh: Singh can provide you with some valuable points with both the bat and ball in this upcoming fixture. In two matches, he has scored 24 runs at a strike rate of 96 and picked up three wickets as well.
Tejwinder Singh: Singh has scored 20 runs at an unbelievable strike rate of 285+ and also picked up three wickets in two matches. He can also score some crucial quick-fire runs for his team on Saturday.
Ali Turkmen: Turkmen is currently the joint highest wicket-taker for his side in this ongoing season. He has picked up two wickets at an economy rate of 5.14 and also scored 18 runs in his two outings.
Fantasy Suggestion #2: Romeo Nath, Scott Austin, Sadun Mahamalage, Gokhan Alta, Ishak Elec, Gurpratap Singh, Shoaib Ahmad, Akila De Silva, Tejwinder Singh, Mecit Ozturk, Ali Turkmen.
Captain: Sadun Mahamalage Vice-captain: Gurpratap Singh.
| english |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="resources/images/favicon.ico">
<title>Roadmap | apiman API Management</title>
<link href="resources/bootstrap-3.3.0/css/bootstrap.min.css" rel="stylesheet">
<link href="resources/patternfly-1.0.5/css/patternfly.min.css" rel="stylesheet">
<link href="http://static.jboss.org/css/rhbar.css" media="screen" rel="stylesheet">
<link href="resources/css/apiman-web.css?v=1.3.1.Final" rel="stylesheet">
<link href="resources/css/apiman-web.responsive.css?v=1.3.1.Final" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<script src="resources/jquery-1.11.1/js/jquery.min.js"></script>
<script src="resources/bootstrap-3.3.0/js/bootstrap.min.js"></script>
<script>
$(document).ready(function() {
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-56678850-1', 'auto');
ga('send', 'pageview');
});
</script>
<script id="adobe_dtm" src="//www.redhat.com/dtm.js" type="text/javascript"></script>
</head>
<body class="roadmap">
<div id="rhbar">
<a class="jbdevlogo" href="http://www.jboss.org/projects/about" rel="nofollow" target="_blank"></a>
<a class="rhlogo" href="http://www.redhat.com/" rel="nofollow" target="_blank"></a>
</div>
<nav id="top-nav" class="navbar navbar-inverse" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">apiman</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<li class="top-menu-item menu-item"><a href="index.html">Overview</a></li>
<li class="top-menu-item menu-item"><a href="download.html">Download</a></li>
<li class="top-menu-item menu-item active"><a href="roadmap.html">Roadmap</a></li>
<li class="top-menu-item menu-item"><a href="/blog">Blog</a></li>
<li class="top-menu-item menu-item dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" rel="nofollow" target="_blank">Get Involved<b class="caret"></b></a>
<ul class="dropdown-menu">
<li class="menu-item">
<a href="https://github.com/apiman/apiman/issues" rel="nofollow" target="_blank">Report a Bug</a>
</li>
<li class="menu-item">
<a href="https://twitter.com/apiman_io" rel="nofollow" target="_blank">Twitter Feed</a>
</li>
<li class="divider"></li>
<li class="menu-item">
<a href="contributors.html">Contributors List</a>
</li>
</ul>
</li>
<li class="top-menu-item menu-item dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" rel="nofollow" target="_blank">Docs & Guides<b class="caret"></b></a>
<ul class="dropdown-menu">
<li class="menu-item">
<a href="tutorials.html">Tutorials & Walkthroughs</a>
</li>
<li class="menu-item">
<a href="crash-course.html">Crash Course!</a>
</li>
<li class="divider"></li>
<li class="menu-item">
<a href="https://apiman.gitbooks.io/apiman-installation-guide/">Installation Guide</a>
</li>
<li class="menu-item">
<a href="https://apiman.gitbooks.io/apiman-user-guide/">User Guide</a>
</li>
<li class="menu-item">
<a href="developer-guide.html">Developer Guide</a>
</li>
<li class="menu-item">
<a href="https://apiman.gitbooks.io/apiman-production-guide/">Production Guide</a>
</li>
<li class="divider"></li>
<li class="menu-item">
<a href="api-manager-restdocs.html">API Manager REST Endpoints</a>
</li>
</ul>
</li>
<li class="top-menu-item menu-item dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-fw fa-angle-double-down"></i><span>Latest</span></a>
<ul class="dropdown-menu">
<li class="menu-item disabled">
<a href="/latest">Latest Version</a>
</li>
<li class="menu-item">
<a href="../1.1.x/roadmap.html">Version 1.1.x</a>
</li>
</ul>
</li>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
<div class="container" id="roadmap">
<div id="content" class="row tbd">
<div class="col-lg-12" style="margin-bottom: 35px">
<h1 class="section-header">Roadmap</h1>
<div class="alert alert-info" style="margin-top: 10px; background-color: #fdf2e5; border-width: 1px; line-height: 24px">
<span class="fa fa-fw fa-info-circle" style="color: #eb7720; font-size: 18px; line-height: 24px"></span>
Expect continued roadmap updates!
</div>
<p>
Here you will find a very high level roadmap for the apiman project. The details are
subject to change, but this page can provide a basic sense of the project's priorities
and version numbers. Additional information can typically be found in
<a href="https://github.com/apiman/apiman/issues" rel="nofollow" target="_blank">JIRA</a>.
</p>
<p>
Typically there will be multiple iterative released within a major+minor version, with
the features planned for it being released within the scope of micro versions. In
other words, the work planned for version 1.2 will be released as a series of micro
releases such as 1.2.1, 1.2.2, 1.2.3, etc...
</p>
</div>
<div class="col-lg-12 released">
<!-- Version 1.0 -->
<h2><a class="" data-toggle="collapse" href="#features1_0" aria-expanded="false" >1.0 (Minimal But Functional)</a></h2>
<div id="features1_0" class="collapse">
<div class="col-lg-9">
<ul class="release">
<div class="headers">
<span class="header">Feature</span>
<span class="header pull-right">Released In</span>
</div>
<li>
<span>API Manager</span>
<ul>
<li><span class="completed">REST API to manage Organizations, Services, Plans, Applications</span> <span class="in-version">1.0.0.Beta1</span></li>
<li><span class="completed">Organization membership with roles</span> <span class="in-version">1.0.0.Beta1</span></li>
<li><span class="completed">User Interface with Dashboard, Provider interface, Consumer interface</span> <span class="in-version">1.0.0.Beta1</span></li>
<li>Import services from WADL, Artificer, Swagger, etc...</li>
<li><span class="completed">Auditing of all entity (e.g. Org, Service, App) changes</span> <span class="in-version">1.0.0.Beta1</span></li>
<li><span class="completed">Gateway management (support multiple gateways)</span> <span class="in-version">1.0.1.Final</span></li>
<li><span class="completed">Retire a Service/Unregister an App</span> <span class="in-version">1.0.1.Final</span></li>
<li><span class="completed">Lock Plans before they can be used</span> <span class="in-version">1.0.1.Final</span></li>
</ul>
</li>
<li>
<span>API Gateway</span>
<ul>
<li><span class="completed">Embeddable policy engine with async API</span> <span class="in-version">1.0.0.Beta1</span></li>
<li><span class="completed">Standard WAR implementation</span> <span class="in-version">1.0.0.Beta1</span></li>
<li><span class="completed">Support for HTTP based services</span> <span class="in-version">1.0.0.Beta1</span></li>
<li><span class="completed">Asynchronous components available to policies: HttpClient</span> <span class="in-version">1.0.0.Beta1</span></li>
<li><span class="completed">Policy application to Request, Response, and data (body) streams</span> <span class="in-version">1.0.0.Beta1</span></li>
</ul>
</li>
<li>
<span>Policies</span>
<ul>
<li><span class="completed">BASIC Authentication</span> <span class="in-version">1.0.0.Beta1</span></li>
<li><span class="completed">Rate Limiting</span> <span class="in-version">1.0.0.Beta1</span></li>
<li><span class="completed">IP Filtering</span> <span class="in-version">1.0.0.Beta1</span></li>
<li><span class="completed">Ignored Resources</span> <span class="in-version">1.0.1.Final</span></li>
<li><span class="completed">CORS</span> <span class="in-version">1.0.3.Final</span></li>
</ul>
</li>
<li>
<span>Fabric8 Integration</span>
<ul>
<li><span class="completed">Integration with the fabric8 gateway (policy engine)</span> <span class="in-version">1.0.1.Final</span></li>
</ul>
</li>
<li><span class="completed">WildFly 8 runtime support</span> <span class="in-version">1.0.0.Beta1</span></li>
<li><span class="completed">Clone a version (App, Service, Plan)</span> <span class="in-version">1.0.1.Final</span></li>
<li><span class="completed">Support "public" services (can be invoked without a Contract)</span> <span class="in-version">1.0.1.Final</span></li>
<li><span class="completed">Plugin framework - contribute policies</span> <span class="in-version">1.0.3.Final</span></li>
<li><span class="completed">Plugin framework - contribute policy configuration forms based on <a href="http://json-schema.org/" rel="nofollow" target="_blank">JSON Schema</a></span> <span class="in-version">1.0.3.Final</span></li>
</ul>
</div>
<div class="col-lg-3 relnotes">
<!-- Version 1.0 -->
<h2>1.0 Release Notes</h2>
<div class="release-notes">
<div><a href="https://issues.jboss.org/secure/ReleaseNote.jspa?projectId=12314121&version=12325096" rel="nofollow" target="_blank">1.0.0.Beta1</a> <span class="label-small">(2014 Nov 21)</span></div>
<div><a href="https://issues.jboss.org/secure/ReleaseNote.jspa?projectId=12314121&version=12326282" rel="nofollow" target="_blank">1.0.0.Final</a> <span class="label-small">(2014 Dec 18)</span></div>
<div><a href="https://issues.jboss.org/secure/ReleaseNote.jspa?projectId=12314121&version=12326467" rel="nofollow" target="_blank">1.0.1.Final</a> <span class="label-small">(2015 Jan 06)</span></div>
<div><a href="https://issues.jboss.org/secure/ReleaseNote.jspa?projectId=12314121&version=12326491" rel="nofollow" target="_blank">1.0.2.Final</a> <span class="label-small">(2015 Jan 29)</span></div>
<div><a href="https://issues.jboss.org/secure/ReleaseNote.jspa?projectId=12314121&version=12326633" rel="nofollow" target="_blank">1.0.3.Final</a> <span class="label-small">(2015 Feb 17)</span></div>
</div>
</div>
</div>
</div>
<div class="col-lg-12 released">
<!-- Version 1.1 -->
<h2 class=""><a class="" data-toggle="collapse" href="#features1_1" aria-expanded="false" >1.1 (Core Functionality)</a></h2>
<div id="features1_1" class="collapse">
<div class="col-lg-9">
<ul class="release">
<div class="headers">
<span class="header">Feature</span>
<span class="header pull-right">Released In</span>
</div>
<li>
<span>Policies</span>
<ul>
<li><span class="completed">OAuth2</span> <span class="in-version">1.1.0.Final</span></li>
<li><span class="completed">HTTP Security Headers (HSTS, CSP, X-Frame-Options, etc)</span> <span class="in-version">1.1.0.Final</span></li>
<li><span class="completed">Simple Header Manipulation (add, remove, pattern-match, etc)</span> <span class="in-version">1.1.0.Final</span></li>
<li><span class="completed">Authorization (Role/Group based access control)</span> <span class="in-version">1.1.2.Final</span></li>
<li><span class="completed">Enhanced BASIC and OAuth2 authorization support</span> <span class="in-version">1.1.2.Final</span></li>
<li><span class="completed">OAuth2 Kerberos token delegation</span> <span class="in-version">1.1.3.Final</span></li>
<li><span class="completed">URL Rewriting</span> <span class="in-version">1.1.6.Final</span></li>
<li><span class="completed">Caching</span> <span class="in-version">1.1.6.Final</span></li>
<li><span class="completed">JSONP</span> <span class="in-version">1.1.1.Final</span></li>
<li><span class="completed">JSON/XML Transformation (convert between those formats, in and out)</span> <span class="in-version">1.1.4.Final</span></li>
<li><span class="completed">Quotas (# requests)</span> <span class="in-version">1.1.6.Final</span></li>
<li><span class="completed">Quotas (# bytes)</span> <span class="in-version">1.1.6.Final</span></li>
</ul>
</li>
<li>
<span>API Gateway</span>
<ul>
<li><span class="completed">Shared State async component</span> <span class="in-version">1.1.0.Final</span></li>
<li><span class="completed">Mutual authentication between gateway and back-end services (i.e. certificate-based two-way SSL/TLS)</span><span class="in-version">1.1.3.Final</span></li>
<li><span class="completed">BASIC authentication over SSL between gateway and back-end services</span><span class="in-version">1.1.3.Final</span></li>
<li><span class="completed">Custom/Plugin implementations of core Gateway components</span><span class="in-version">1.1.5.Final</span></li>
<li><span class="completed">Vert.x 3 based implementation</span> <span class="in-version"><i>Tech Preview in</i> 1.1.6.Final</span></li>
</ul>
</li>
<li>
<span>API Manager</span>
<ul>
<li><span class="completed">New "About apiman" page</span> <span class="in-version">1.1.2.Final</span></li>
<li><span class="completed">Integration with Swagger</span> <span class="in-version">1.1.3.Final</span></li>
<li><span class="completed">Custom/Plugin implementations of core Manager components</span><span class="in-version">1.1.5.Final</span></li>
</ul>
</li>
<li>
<span>Fabric8 Integration</span>
<ul>
<li><span class="completed">Convert the UI to an angularjs/hawtio plugin</span> <span class="in-version">1.1.0.Final</span></li>
<li><span class="completed">Create an elasticsearch API Manager backend</span> <span class="in-version">1.1.0.Final</span></li>
<li><span class="completed">Create elasticsearch implementations of the API Gateway components</span> <span class="in-version">1.1.0.Final</span></li>
</ul>
</li>
<li><span class="completed">Service Metrics - collect in API Gateway and report in API Manager</span> <span class="in-version">1.1.4.Final</span></li>
<li><span class="completed">Unit testing framework for plugin Policies</span> <span class="in-version">1.1.3.Final</span></li>
<li><span class="completed">Re-usable/extensible micro-services for the API Manager and API Gateway</span> <span class="in-version">1.1.5.Final</span></li>
<li><span class="completed">EAP 6.4 runtime support</span> <span class="in-version">1.1.6.Final</span></li>
<li><span class="completed">Application Metrics - collect in API Gateway and report in API Manager</span> <span class="in-version">1.1.6.Final</span></li>
</ul>
</div>
<div class="col-lg-3 relnotes">
<h2>1.1 Release Notes</h2>
<div class="release-notes">
<div><a href="https://issues.jboss.org/secure/ReleaseNote.jspa?projectId=12314121&version=12326497" rel="nofollow" target="_blank">1.1.0.Final</a> <span class="label-small">(2015 April 11)</span></div>
<div><a href="https://issues.jboss.org/secure/ReleaseNote.jspa?projectId=12314121&version=12326950" rel="nofollow" target="_blank">1.1.1.Final</a> <span class="label-small">(2015 April 22)</span></div>
<div><a href="https://issues.jboss.org/secure/ReleaseNote.jspa?projectId=12314121&version=12327059" rel="nofollow" target="_blank">1.1.2.Final</a> <span class="label-small">(2015 May 7)</span></div>
<div><a href="https://issues.jboss.org/secure/ReleaseNote.jspa?projectId=12314121&version=12327298" rel="nofollow" target="_blank">1.1.3.Final</a> <span class="label-small">(2015 June 2)</span></div>
<div><a href="https://issues.jboss.org/secure/ReleaseNote.jspa?projectId=12314121&version=12327477" rel="nofollow" target="_blank">1.1.4.Final</a> <span class="label-small">(2015 July 6)</span></div>
<div><a href="https://issues.jboss.org/secure/ReleaseNote.jspa?projectId=12314121&version=12327612" rel="nofollow" target="_blank">1.1.5.Final</a> <span class="label-small">(2015 July 22)</span></div>
<div><a href="https://issues.jboss.org/secure/ReleaseNote.jspa?projectId=12314121&version=12327699" rel="nofollow" target="_blank">1.1.6.Final</a> <span class="label-small">(2015 Aug 14)</span></div>
<div><a href="https://issues.jboss.org/secure/ReleaseNote.jspa?projectId=12314121&version=12327805" rel="nofollow" target="_blank">1.1.7.Final</a> <span class="label-small">(2015 Aug 21)</span></div>
<div><a href="http://red.ht/1igFSrj" rel="nofollow" target="_blank">1.1.8.Final</a> <span class="label-small">(2015 Sep 10)</span></div>
<div><a href="http://red.ht/1MJbBsx" rel="nofollow" target="_blank">1.1.9.Final</a> <span class="label-small">(2015 Oct 23)</span></div>
</div>
</div>
</div>
</div>
<div class="col-lg-12">
<!-- Version 1.2 -->
<h2 class=""><a class="" data-toggle="collapse" href="#features1_2" aria-expanded="true" >1.2 (Plugins, Import/Export, Notifications & Events)</a></h2>
<div id="features1_2" class="collapse">
<div class="col-lg-9">
<!-- Version 1.2 -->
<ul class="release">
<div class="headers">
<span class="header">Feature</span>
<span class="header pull-right">Released In</span>
</div>
<li>
<span>API Manager</span>
<ul>
<li><span class="completed">Support for deleting stuff (Orgs, Plans, APIs, Client Apps)</span> <span class="in-version">1.2.4.Final</span></li>
</ul>
</li>
<li>
<span>Policies & Components</span>
<ul>
<li><span class="completed">LDAP Client async component</span> <span class="in-version">1.2.0.Final</span></li>
<li><span class="completed">JDBC Client async component</span> <span class="in-version">1.2.0.Final</span></li>
<li><span class="completed">Circuit Breaker Policy</span> <span class="in-version">1.2.4.Final</span></li>
<li><span class="completed">Request payload inspection (enables better SOAP support)</span> <span class="in-version">1.2.6.Final</span></li>
</ul>
</li>
<li>
<span>Plugins</span>
<ul>
<li><span class="completed">Plugin registry with easy-to-use UI</span> <span class="in-version">1.2.0.Final</span></li>
<li><span class="completed">Better support for loading/unloading plugins</span> <span class="in-version">1.2.0.Final</span></li>
<li><span class="completed">Better support for upgrading existing plugins</span> <span class="in-version">1.2.0.Final</span></li>
<li>Contribute policy configuration forms using custom HTML/javascript</li>
</ul>
</li>
<li>
<span>Billing</span>
<ul>
<li>Produce metrics for billing - store in pluggable billing storage</li>
<li>API to access billing information</li>
<li>Ability to export raw billing data</li>
</ul>
</li>
<li>
<span>Import/Export</span>
<p style="color: #999">
Note: this functionality should support 1) migrating data between environments 2) upgrading apiman to a new version 3) switching between apiman configurations (e.g. going from an RDBMS to Elastic storage).
</p>
<ul>
<li><span class="completed">Export all data from apiman</span> <span class="in-version">1.2.0.Final</span></li>
<li><span class="completed">Import previously exported apiman data</span> <span class="in-version">1.2.0.Final</span></li>
<li><span class="completed">Data Migration from previous versions of apiman</span> <span class="in-version">1.2.3.Final</span></li>
<li>Transformation tools for exported apiman data</li>
<li><span class="completed">Import APIs from an API Catalog</span> <span class="in-version">1.2.0.Final</span></li>
<li>Import APIs from a WADL URL</li>
<li>Import APIs from a Swagger URL</li>
</ul>
</li>
<li>
<span>Customization Points</span>
<ul>
<li><span class="completed">API Key Generation</span> <span class="in-version">1.2.0.Final</span></li>
<li><span class="completed">Data Encryption (when encrypting configuration data for storage)</span> <span class="in-version">1.2.0.Final</span></li>
<li><span class="completed">Policy Failure/Error Response Formatting</span> <span class="in-version">1.2.0.Final</span></li>
</ul>
</li>
</ul>
</div>
<div class="col-lg-3 relnotes">
<h2>1.2 Release Notes</h2>
<div class="release-notes">
<div><a href="http://red.ht/1OK3LG7">1.2.0.Final</a> <span class="label-small">(2016 January 11)</span></div>
<div><a href="http://red.ht/1OC1Tf7">1.2.1.Final</a> <span class="label-small">(2016 January 22)</span></div>
<div><a href="http://red.ht/1QGBN8F">1.2.2.Final</a> <span class="label-small">(2016 February 29)</span></div>
<div><a href="http://red.ht/21HvJDe">1.2.3.Final</a> <span class="label-small">(2016 March 23)</span></div>
<div><a href="http://red.ht/23NVU1k">1.2.4.Final</a> <span class="label-small">(2016 April 22)</span></div>
<div><a href="http://red.ht/1SrSgD1">1.2.5.Final</a> <span class="label-small">(2016 April 26)</span></div>
<div><a href="http://red.ht/1Ro8mby">1.2.6.Final</a> <span class="label-small">(2016 May 24)</span></div>
<div><a href="http://red.ht/28WGa3V">1.2.7.Final</a> <span class="label-small">(2016 June 22)</span></div>
<div><a href="http://red.ht/2dp4uML">1.2.8.Final</a> <span class="label-small">(2016 September 27)</span></div>
<div><a href="http://red.ht/2iW301B">1.2.9.Final</a> <span class="label-small">(2017 January 6)</span></div>
</div>
</div>
</div>
</div>
<div class="col-lg-12">
<!-- Version 1.3 -->
<h2 class=""><a class="" data-toggle="collapse" href="#features1_3" aria-expanded="true" >1.3 (Integration)</a></h2>
<div id="features1_3" class="collapse in">
<div class="col-lg-9">
<!-- Version 1.3 -->
<ul class="release">
<!-- <li>
<span>API Manager</span>
<ul>
<li>Additional documentation support - WSDL, RAML, etc</li>
<li>API testing tools</li>
<li>Watch a API for changes</li>
<li>Watch an Organization for new APIs</li>
<li>Comments/Forum for APIs</li>
<li>API ratings</li>
<li>Policy overhead ratings (measure of how impactful of performance a particular Policy will be)</li>
<li>Joint API ownership (joint ownership by multiple Organizations)</li>
</ul>
</li> -->
<li>
<span>Policy Eventing</span>
<ul>
<li>Pluggable event firing component in Gateway</li>
<li>Ability to fire events from policies</li>
<li>Rate limiting events</li>
<li>Support internal and custom/external event listeners</li>
</ul>
</li>
<!-- <li>
<span>Notifications/Tasks</span>
<ul>
<li>Per-user Task+Notification Inbox UI</li>
<li>Add "Request Membership" functionality for organizations</li>
<li>Full API to access tasks and notifications</li>
</ul>
</li> -->
<li>
<span>API Gateway</span>
<ul>
<li>JMS Support</li>
<li class="completed">
Headless Registry (loads gateway config from JSON) <a href="https://apiman.gitbooks.io/apiman-installation-guide/content/installation-guide/vertx/download.html#_headless_elasticsearch" target="_blank">(Docs)</a>
<span class="in-version">1.3.0.Final</span>
</li>
<li class="completed">
Production-grade Vert.x Gateway Distro <a href="https://apiman.gitbooks.io/apiman-installation-guide/content/installation-guide/vertx/download.html" target="_blank">(Docs)</a>
<span class="in-version">1.3.0.Final</span>
</li>
<li class="completed">
3scale Immutable Registry (loads gateway config from 3scale backend with apiman policy overlay) <a href="https://apiman.gitbooks.io/apiman-installation-guide/installation-guide/vertx/download.html#_3scale_immutable" target="_blank">(Docs)</a>
<span class="in-version">1.3.1.Final</span>
</li>
<li>
3scale Mutable Registry (loads gateway config from 3scale backend with apiman policy overlay)
</li>
</ul>
</li>
<li>
<span>Policies & Components</span>
<ul>
<li>
<span class="completed">3scale Plugin (3scale auth, reporting, etc)</span>
<span class="in-version">1.3.1.Final</span>
<ul>
<li class="completed">
3scale API Key auth
<span class="in-version">1.3.1.Final</span>
</li>
<li class="completed">
3scale App Key & App Key auth
<span class="in-version">1.3.1.Final</span>
</li>
<li>
3scale OAuth
</li>
<li class="completed">
3scale standard rate limiting
<span class="in-version">1.3.1.Final</span>
</li>
<li class="completed">
3scale batched hybrid rate limiting
<span class="in-version">1.3.1.Final</span>
</li>
<li class="completed">
3scale metrics & reporting
<span class="in-version">1.3.1.Final</span>
</li>
</ul>
</li>
</ul>
</li>
<li>
<span>Automation & Productivity</span>
</li>
<ul>
<li>
CLI tool for headless and 3scale registries. Generate config rather than hand-crafting.
</li>
</ul>
</ul>
</div>
</div>
</div>
</div>
<footer role="contentinfo">
<div id="inner-footer" class="clearfix row">
<div id="widget-footer" class="clearfix">
<hr>
<div class="widget col-sm-6 col-md-6 widget_text">
<div class="textwidget">
<p>
Copyright © 2017 Red Hat, Inc. All rights reserved.<br>
apiman code is open source and released under <a href="http://www.apache.org/licenses/LICENSE-2.0.html" rel="nofollow" target="_blank">Apache License, v2.0</a>.<br>
<a href="disclosure.html">Open Source Disclosure</a>
</p>
</div>
</div>
<div class="widget col-sm-6 col-md-6 widget_text" style="text-align: right">
<a href="http://www.redhat.com" rel="nofollow" target="_blank"><img src="http://static.jboss.org/theme/images/common/redhat_logo.png" alt="Red Hat"></a>
</div>
</div>
<nav class="clearfix"></nav>
</div>
</footer>
</div>
</div>
<!-- Adobe Analytics -->
<script type="text/javascript">
if (("undefined" !== typeof _satellite) && ("function" === typeof _satellite.pageBottom)) {
_satellite.pageBottom();
}
</script>
</body>
</html>
| html |
<reponame>verrazzano/verrazzano
// Copyright (c) 2020, 2021, Oracle and/or its affiliates.
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
package controllers
import (
"strings"
"github.com/verrazzano/verrazzano/application-operator/constants"
)
// ConvertAPIVersionToGroupAndVersion splits APIVersion into API and version parts.
// An APIVersion takes the form api/version (e.g. networking.k8s.io/v1)
// If the input does not contain a / the group is defaulted to the empty string.
// apiVersion - The combined api and version to split
func ConvertAPIVersionToGroupAndVersion(apiVersion string) (string, string) {
parts := strings.SplitN(apiVersion, "/", 2)
if len(parts) < 2 {
// Use empty group for core types.
return "", parts[0]
}
return parts[0], parts[1]
}
// IsWorkloadMarkedForUpgrade checks to see if a workload needs to be upgraded to the latest
// Verrazzano version. Verrazzano defines some resources which are used by applications and when Verrazzano is upgraded,
// a user can mark an application to indicate that it should use the latest resources defined by Verrazzano.
// A response of 'true' indicates that reconcile should use the latest resources defined by Verrazzano and a response
// of 'false' indicates that the application should continue to use the current values.
func IsWorkloadMarkedForUpgrade(annotations map[string]string, previousUpgrade string) bool {
return annotations[constants.AnnotationUpgradeVersion] != previousUpgrade
}
| go |
Malmo are set to play Chelsea at the Eleda Stadion on Tuesday in the group stage of the UEFA Champions League.
Malmo come into this game on the back of a 3-2 win over Sirius in the Allsvenskan. A penalty from Norwegian forward Jo Inge Berget and a second-half brace from Croatian attacker Antonio Colak secured the win for Jon Dahl Tomasson's Malmo.
Young Swedish midfielder Nahom Girmai Netabay and attacker Edi Sylisufaj scored the consolation goals for Sirius.
Chelsea, on the other hand, beat Newcastle United 3-0 in the English Premier League. A second-half brace from right-back Reece James and a penalty from midfielder Jorginho sealed the deal for Thomas Tuchel's Chelsea.
The two clubs last faced each other a few days ago in the UEFA Champions League.
Chelsea beat Malmo 4-0, courtesy of goals from Danish centre-back Andreas Christensen and German attacker Kai Havertz and a brace from Italy international Jorginho.
Malmo manager Jon Dahl Tomasson will be unable to call upon the services of former PSV Eindhoven and Sunderland forward Ola Toivonen, former Ipswich Town left-back Jonas Knudsen and midfielder Patriot Sejdiu. There are doubts over the availability of right-back Felix Beijmo.
Meanwhile, Chelsea manager Thomas Tuchel will be missing a few players. Star striker Romelu Lukaku, German forward Timo Werner and Croatian midfielder Mateo Kovacic are all out. There are doubts over the availability of American winger Christian Pulisic and midfielder Mason Mount.
Malmo are bottom of their UEFA Champions League group, and have lost all three games so far. Not much is expected from the Swedish side, but they are more than capable of causing problems to their opposition.
Chelsea, on the other hand, will be jubilant after a good performance against Newcastle United. Tuchel's men won the Champions League last season, and are currently second in their group.
Chelsea will be the favourites to win.
Poll : Will Chelsea keep a clean sheet against Malmo in Matchday 4 of the UEFA Champions League? | english |
Long-term structural problems surrounding Germany's workforce and infrastructure also remain unresolved. The International Monetary Fund predicts Germany will be the only G7 economy that shrank in 2023 and at 0.9%, growth is expected to remain well below the average of 1.4% for advanced economies in 2024.
G7 foreign ministers said in a statement after the launch of Pyongyang's most powerful ballistic missile that "North Korea's repeated reckless actions must be met with a swift, united and robust international response, particularly by the United Nations Security Council".
The G7 leaders have decided to introduce import restrictions on non-industrial diamonds, mined, processed, or produced in Russia, from January 1, 2024, followed by further phased restrictions on the import of Russian diamonds processed in third countries from March 1, 2024.
Officials said that there will be no double checks on India’s export of cut and polished diamonds as the country uses diamonds coming via Antwerp and other geographies, and not directly from Russia. G-7 will ban all imports of rough diamonds directly from Russia from January 1.
The Central Board of Indirect Taxes and Customs (CBIC) is initiating the formation of a panel to address the concerns raised by the gems and jewellery industry related to customs clearances. The industry has highlighted issues such as the lack of valuers, challenges with the hand-carriage of gems and jewellery, and concerns about the Remission of Duties or Taxes on Export Products (RoDTEP) scheme.
"We had engaged with the G7 to discuss such sanctions and their implementation. We have reservations on the timelines announced for the implementation of restrictions. Recognizing the diversity of our industry, we believe there should be more flexibility in these timelines,"said Vipul Shah, chairman of Gem & Jewellery Export Promotion Council on Thursday.
On the oil side, western nations have admitted that the impact of their $60 price cap on Russian crude oil has waned one year in, and the countries have been looking at ways to strengthen implementation. The EU's latest proposed package of sanctions on Russia includes some measures to capture details on "ancillary costs" and slow the sale of old western ships to Russia's so-called "shadow fleet".
Japanese Prime Minister Fumio Kishida "will host the G7 TV summit. In the meeting, in addition to the G7 leaders, Ukraine's President Zelensky will join the first part," government spokesman Hirokazu Matsuno told reporters.
In response to recent developments, a top government official has revealed that India's External Affairs Ministry will make the decision on whether to permit the entry of three vessels—Kazan, Ligovsky Prospect, and NS Century.
Iran on Thursday rejected a G7 statement which called on Tehran to stop supporting Hamas militants and taking actions that "destabilise" the Middle East. The G7 also called on Iran to "refrain from providing support for Hamas and taking further actions that destabilise the Middle East, including support for Lebanese Hezbollah and other non-state actors."
Gaza City, the Hamas militant group's main stronghold in the territory, is encircled by Israeli forces. The military said troops have advanced to the heart of the densely-populated city while Hamas says its fighters have inflicted heavy losses.
G7 foreign ministers said they support "humanitarian pauses and corridors" in the Israel-Hamas conflict but stopped short of calling for an immediate ceasefire. Following discussions in Japan, they said the need for urgent action to address the worsening humanitarian situation in Gaza and endorsed initiatives for delivering essential aid, facilitating civilian movement, and securing the release of hostages.
As US Secretary of State Antony Blinken and his G7 counterparts began two days of talks in Japan, Blinken said it was critically important for the group to show unity as it has over Russia's war in Ukraine and other major issues and prevent existing differences on Gaza from deepening.
Like Russia, for many in the business, the trade of conflict stones by definition bankrolls terror groups and non-state actors while the Russia-Ukraine conflict is a war between two nations. The tussle brewing for the past one year is now coming to a head.
AI has taken the centre-stage of the global tech ecosystem and shaped recent geopolitical diplomacy, surpassing the efforts around wider cyberspace issues. India holds the leadership of the 29-member Global Partnership on Artificial Intelligence (GPAI), which will host the annual summit next month in New Delhi. GPAI and India could be suitably pitched to take the global deliberations on responsible AI forward as nations absorb this week's White House executive order.
The G-7 trade ministers are working to widen the network with developing nations with the aim to ensure resilient supply chain for essential and key items such as semiconductors, critical minerals and batteries.
Worries are growing among developed nations about maintaining a stable supply of computer chips as well as essential minerals, like lithium, which are critical these days amid the demand for electric vehicles and other green energy.
In the Group of Seven (G7) trade ministers' meeting, Commerce and Industry Minister Piyush Goyal urged the participating countries to collaborate on a regulatory framework to ease the movement of supply chains and facilitate cross-border trade.
The Commerce and Industry Minister Piyush Goyal is set to participate in the G7 trade ministers' meeting in Osaka on October 28-29. The meeting's agenda includes discussions on supply chain resilience, trade sustainability, investment, and the upcoming World Trade Organization (WTO) ministerial conference. During this event, the minister will also engage in bilateral discussions with G7 nations, invitee countries, and international organizations such as the WTO.
The US is collaborating with other G7 nations to counter China's Belt and Road Initiative, according to President Joe Biden. This collaboration includes the development of infrastructure projects, such as a railway connecting Saudi Arabia to Europe. Biden stated that the Belt and Road Initiative has led to debt and difficulties for many nations involved. The US is working with G7 partners to provide alternative infrastructure solutions.
The communication is a breakthrough for domestic diamantaires as G7's sanctions on Russian stones have been a setback for the nearly 1.5 million-strong Surat diamond industry, which is also struggling with demand and global economic slowdowns.
| english |
Looks like playing pranks on the sets is kind of a relaxation strategy adopted by the 'oh so overworked actors'. This time it was actor Manav Gohil who decided to pull a fast one on the entire unit of his Star One show, Betiyaan Apni Yaa... Paraaya Dhan.
Manav Gohil, the new entrant in the show decided explains, "As the shoot was on, I had to take the director under confidence. First I said that I wanted to go back home for some silly reason. When that did not work, I managed to rope in a few of my-costars and put up a false fight between us".
"Then I asked the executive producer to gather everyone, as I had to make a serious announcement" chuckled Manav. When every one was together, Manav announced that it was a mere prank played by him. Everyone had a hearty laugh and the production team was relieved.
"I usually do so whenever the shoot gets boring", adds Manav who is playing a negative character on the show. Well, carry on Manav. Till no one is actually hurt, everything is fine.
Li'l Champs to go at it again!
| english |
<gh_stars>1-10
/* Fonts */
$sans-primary: 'Source Sans Pro', sans-serif;
$sans-secondary: 'Fjalla One', sans-serif;
$serif-primary: 'Source Serif Pro', serif;
$cursive: 'Norican', cursive;
/* Shades */
$main-black: #181a1e;
$main-white: #ededed;
$main-gray: #4a4a4a;
$main-gray-light: #a9a9a9;
/* Social Colors */
$facebook-blue: #4267b2;
$instagram-grey: #231F20;
$yelp-red: #D32323;
/* Theme Colors */
$cta: google-color(amber, a400);
$cta-lighter: google-color(amber, a700);
$cta-darker: google-color(amber, 700);
$cta-alt: red;
/* Alt Colors */
/* Dimensions */
$atSmallest: 320px;
$atSmall: 576px;
$atMedium: 768px;
$atLarge: 992px;
$atLargest: 1200px;
/* Padding, Margin defaults */
$pad: 15px;
$pad-sm: 30px;
$pad-md: 60px;
$pad-lg: 90px;
$pad-xl: 120px;
/* Setup Baseline.css elements */
$base-font-size: 1rem;
$base-font-family: $sans-primary;
$base-font-weight: 400;
$base-font-height: 1.7;
$base-font-color: $main-gray;
$base-bg-color: white;
$base-transition: all .3s ease-out; | css |
#include <bits/stdc++.h>
using namespace std;
const int SIZE = 10010;
long long k, a[SIZE], n, taken;
string line;
int main(){
while(scanf("%lld\n", &k) != EOF){
getline(cin, line);
istringstream s(line);
n = 0;
while( s >> taken ) a[n++] = taken;
for(int it = 1; it < n; it++)
a[it] += a[it - 1] * k;
printf("q(x):");
for(int it = 0; it + 1 < n; it++)
printf(" %lld", a[it]);
putchar('\n');
printf("r = %lld\n\n", a[n - 1]);
}
return(0);
}
| cpp |
The Cauvery Delta Farmers’ Welfare Association has appealed to the State government to shift the site for the proposed sand quarry at Oruvandhur.
But as the site that has been chosen for the quarry is close to the entry point of the North Bank canal, it might impede the flow of water for both crops and drinking water purposes.
Though officials explain that the flow of water would not be affected by the setting up of the quarry , farmers, “out of their experience”, contend that the current proposal would prove detrimental to the people.
They said that more than 24,000 acres of land in Thottiyam and Musiri taluks is being irrigated by this North Bank canal.
If the quarry is to be set up as proposed, it would ruin agriculture by preventing the flow from fountains, they contended. When the sand is removed at Oruvandhur Vadugapatty, the water will go back to Cauvery and thus the lands in the region would not get sufficient water for irrigation.
“Thousands of acres of cash crops like banana and betel vines, which require considerable water, would be left high and dry without water,” they lamented.
They pointed out that unrest prevailed in the Kattuputhur-Thottiyam areas when the State government tried to set up a sand quarry at Oruvandhur where there is an infiltration well for the Erumaipatty Combined Drinking Water Scheme.
Hence, the farmers have announced that they would stage a demonstration in front of the Taluk Office, Thottiyam, on Friday (February 8). | english |
<reponame>Coquinho/dali-adaptor
/*
* Copyright (c) 2017 Samsung Electronics Co., Ltd.
*
* 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.
*
*/
// CLASS HEADER
#include <dali/internal/system/common/performance-server.h>
// EXTERNAL INCLUDES
#include <dali/integration-api/platform-abstraction.h>
// INTERNAL INCLUDES
#include <dali/internal/system/common/environment-options.h>
#include <dali/internal/system/common/time-service.h>
namespace Dali
{
namespace Internal
{
namespace Adaptor
{
namespace
{
const unsigned int NANOSECONDS_PER_MICROSECOND = 1000u;
const float MICROSECONDS_TO_SECOND = 1e-6;
} // unnamed namespace
PerformanceServer::PerformanceServer( AdaptorInternalServices& adaptorServices,
const EnvironmentOptions& environmentOptions)
: mEnvironmentOptions( environmentOptions ),
mKernelTrace( adaptorServices.GetKernelTraceInterface() ),
mSystemTrace( adaptorServices.GetSystemTraceInterface() ),
mLogMutex(),
#if defined(NETWORK_LOGGING_ENABLED)
mNetworkServer( adaptorServices, environmentOptions ),
mNetworkControlEnabled( mEnvironmentOptions.GetNetworkControlMode()),
#endif
mStatContextManager( *this ),
mStatisticsLogBitmask( 0 ),
mPerformanceOutputBitmask( 0 ),
mLoggingEnabled( false ),
mLogFunctionInstalled( false )
{
SetLogging( mEnvironmentOptions.GetPerformanceStatsLoggingOptions(),
mEnvironmentOptions.GetPerformanceTimeStampOutput(),
mEnvironmentOptions.GetPerformanceStatsLoggingFrequency());
#if defined(NETWORK_LOGGING_ENABLED)
if( mNetworkControlEnabled )
{
mLoggingEnabled = true;
mNetworkServer.Start();
}
#endif
}
PerformanceServer::~PerformanceServer()
{
#if defined(NETWORK_LOGGING_ENABLED)
if( mNetworkControlEnabled )
{
mNetworkServer.Stop();
}
#endif
if( mLogFunctionInstalled )
{
mEnvironmentOptions.UnInstallLogFunction();
}
}
void PerformanceServer::SetLogging( unsigned int statisticsLogOptions,
unsigned int timeStampOutput,
unsigned int logFrequency )
{
mStatisticsLogBitmask = statisticsLogOptions;
mPerformanceOutputBitmask = timeStampOutput;
mStatContextManager.SetLoggingLevel( mStatisticsLogBitmask, logFrequency);
if( ( mStatisticsLogBitmask == 0) && ( mPerformanceOutputBitmask == 0 ))
{
mLoggingEnabled = false;
}
else
{
mLoggingEnabled = true;
}
}
void PerformanceServer::SetLoggingFrequency( unsigned int logFrequency, ContextId contextId )
{
mStatContextManager.SetLoggingFrequency( logFrequency, contextId );
}
void PerformanceServer::EnableLogging( bool enable, ContextId contextId )
{
mStatContextManager.EnableLogging( enable, contextId );
}
PerformanceInterface::ContextId PerformanceServer::AddContext( const char* name )
{
// for adding custom contexts
return mStatContextManager.AddContext( name, PerformanceMarker::CUSTOM_EVENTS );
}
void PerformanceServer::RemoveContext( ContextId contextId )
{
mStatContextManager.RemoveContext( contextId );
}
void PerformanceServer::AddMarker( MarkerType markerType, ContextId contextId )
{
// called only for custom markers
if( !mLoggingEnabled )
{
return;
}
// Get the time stamp
uint64_t timeStamp = 0;
TimeService::GetNanoseconds( timeStamp );
timeStamp /= NANOSECONDS_PER_MICROSECOND; // Convert to microseconds
// Create a marker
PerformanceMarker marker( markerType, FrameTimeStamp( 0, timeStamp ) );
// get the marker description for this context, e.g SIZE_NEGOTIATION_START
const char* const description = mStatContextManager.GetMarkerDescription( markerType, contextId );
// log it
LogMarker( marker, description );
// Add custom marker to statistics context manager
mStatContextManager.AddCustomMarker( marker, contextId );
}
void PerformanceServer::AddMarker( MarkerType markerType )
{
// called only for internal markers
if( !mLoggingEnabled )
{
return;
}
if( markerType == VSYNC )
{
// make sure log function is installed, note this will be called only from v-sync thread
// if the v-sync thread has already installed one, it won't make any difference.
if( ! mLogFunctionInstalled )
{
mEnvironmentOptions.InstallLogFunction();
mLogFunctionInstalled = true;
}
}
// Get the time
uint64_t timeStamp = 0;
TimeService::GetNanoseconds( timeStamp );
timeStamp /= NANOSECONDS_PER_MICROSECOND; // Convert to microseconds
// Create a marker
PerformanceMarker marker( markerType, FrameTimeStamp( 0, timeStamp ) );
// log it
LogMarker(marker, marker.GetName() );
// Add internal marker to statistics context manager
mStatContextManager.AddInternalMarker( marker );
}
void PerformanceServer::LogContextStatistics( const char* const text )
{
Integration::Log::LogMessage( Dali::Integration::Log::DebugInfo, text );
}
void PerformanceServer::LogMarker( const PerformanceMarker& marker, const char* const description )
{
#if defined(NETWORK_LOGGING_ENABLED)
// log to the network ( this is thread safe )
if( mNetworkControlEnabled )
{
mNetworkServer.TransmitMarker( marker, description );
}
#endif
// log to kernel trace
if( mPerformanceOutputBitmask & OUTPUT_KERNEL_TRACE )
{
// Kernel tracing implementation may not be thread safe
Mutex::ScopedLock lock( mLogMutex );
// description will be something like UPDATE_START or UPDATE_END
mKernelTrace.Trace( marker, description );
}
// log to system trace
if( mPerformanceOutputBitmask & OUTPUT_SYSTEM_TRACE )
{
// System tracing implementation may not be thread safe
Mutex::ScopedLock lock( mLogMutex );
mSystemTrace.Trace( marker, description );
}
// log to Dali log ( this is thread safe )
if ( mPerformanceOutputBitmask & OUTPUT_DALI_LOG )
{
Integration::Log::LogMessage( Dali::Integration::Log::DebugInfo,
"%.6f (seconds), %s\n",
float( marker.GetTimeStamp().microseconds ) * MICROSECONDS_TO_SECOND,
description );
}
}
} // namespace Internal
} // namespace Adaptor
} // namespace Dali
| cpp |
<filename>ch4/ex12/index/55.json
{"month": "1", "num": 55, "link": "", "year": "2006", "news": "", "safe_title": "Useless", "transcript": "[[Different mathematic equations, all with heart on left side, and all equal question mark. Equations are as follows:\nSquare root of heart equals question mark\nCosinus of heart equals question mark\nDerivative of heart with respect to x equals question mark\nIdentity matrix of heart equals question mark\nFourier transform of heart equals question mark]]\nMy normal approach is useless here\n{{alt text: Even the identity matrix doesn't work normally}}", "alt": "Even the identity matrix doesn't work normally", "img": "https://imgs.xkcd.com/comics/useless.jpg", "title": "Useless", "day": "27"} | json |
{"configuration":["USE_COMPOUND_FILE","CODEC","MAX_TOKEN_LENGTH","CHECK_PENDING_FLUSH_UPDATE","NO_CFS_RATIO"],"regionsToPerf":{"00000000-0000-0000-0000-000000000000":34279946449}} | json |
<gh_stars>0
import {
AttributeModelMixin_defaultValue,
AttributeModelMixin_description,
AttributeModelMixin_variableName,
} from '../attribute_model/mixins';
import { AttributeModel } from '../AttributeModel';
import {
AttributeModelOption_default,
AttributeModelOption_desc,
AttributeModelOption_required,
AttributeModelOption_variableName,
} from '../attribute_model/option_member_types';
import { AttributeParserEventEmitter } from '../EventEmitter';
import { Parser } from '../Parser';
import { ATTRIBUTE_PARSER_EVENT } from '../../events';
import { validateArgumentRequired } from '../../validators';
export type StringArgumentModelOptions = AttributeModelOption_default &
AttributeModelOption_desc &
AttributeModelOption_required &
AttributeModelOption_variableName;
const PARSER_EVENTS = new AttributeParserEventEmitter<StringArgumentModel>();
PARSER_EVENTS.on(ATTRIBUTE_PARSER_EVENT.INITIALIZE, (event) => {
event.parser.context[event.model.key] = event.model.defaultValue;
}).on(ATTRIBUTE_PARSER_EVENT.VALIDATE, (event) => {
if (event.model.options.required) {
validateArgumentRequired(event.parser, event.model);
}
});
export class StringArgumentModel extends AttributeModelMixin_defaultValue(
AttributeModelMixin_description(AttributeModelMixin_variableName(AttributeModel))
) {
classEvents: AttributeParserEventEmitter<StringArgumentModel> = PARSER_EVENTS;
events = new AttributeParserEventEmitter();
constructor(key: string, public options: StringArgumentModelOptions) {
super(key);
}
extractArgumentAndStore(parser: Parser): number {
parser.context[this.key] = parser.cursor.at(0) as string;
return 1;
}
parsedValueIsMissing(parser: Parser): boolean {
return parser.context[this.key] === undefined;
}
// eslint-disable-next-line @typescript-eslint/no-empty-function,@typescript-eslint/no-unused-vars
preinitialize(parser: Parser): void {}
}
| typescript |
<filename>public/api/albums/Archives--2008--2008-05-24-IML-10-Vendor-Area.json
{"date":"2008 05 24","href":"Archives/2008/2008%2005%2024%20IML%2010%20Vendor%20Area","external":false,"name":"IML 10 Vendor Area ","stub":"Archives--2008--2008-05-24-IML-10-Vendor-Area","images":["thumbnails/IMG_1898.jpg","thumbnails/IMG_1902.jpg","thumbnails/IMG_1905.jpg","thumbnails/IMG_1906.jpg","thumbnails/IMG_1910.jpg","thumbnails/IMG_1912.jpg","thumbnails/IMG_1913.jpg","thumbnails/IMG_1914.jpg","thumbnails/IMG_1916.jpg","thumbnails/IMG_1917.jpg","thumbnails/IMG_1918.jpg","thumbnails/IMG_1919.jpg","thumbnails/IMG_1920.jpg","thumbnails/IMG_1921.jpg","thumbnails/IMG_1924.jpg","thumbnails/IMG_1926.jpg","thumbnails/IMG_1927.jpg","thumbnails/IMG_1928.jpg","thumbnails/IMG_1929.jpg","thumbnails/IMG_1930.jpg","thumbnails/IMG_1932.jpg","thumbnails/IMG_1933.jpg","thumbnails/IMG_1934.jpg","thumbnails/IMG_1943.jpg","thumbnails/IMG_1947.jpg","thumbnails/IMG_1948.jpg","thumbnails/IMG_1950.jpg","thumbnails/IMG_1954.jpg","thumbnails/IMG_1955.jpg","thumbnails/IMG_1956.jpg","thumbnails/IMG_1957.jpg","thumbnails/IMG_1961.jpg","thumbnails/IMG_1964.jpg","thumbnails/IMG_2084.jpg","thumbnails/IMG_2085.jpg","thumbnails/IMG_2086.jpg","thumbnails/IMG_2087.jpg","thumbnails/IMG_2088.jpg","thumbnails/IMG_2090.jpg","thumbnails/IMG_2091.jpg","thumbnails/IMG_2093.jpg","thumbnails/IMG_2095.jpg","thumbnails/IMG_2099.jpg","thumbnails/IMG_2100.jpg","thumbnails/IMG_2101.jpg","thumbnails/IMG_2102.jpg","thumbnails/IMG_2103.jpg","thumbnails/IMG_2105.jpg","thumbnails/IMG_2108.jpg","thumbnails/IMG_2110.jpg","thumbnails/IMG_2111.jpg","thumbnails/IMG_2114.jpg","thumbnails/IMG_2117.jpg","thumbnails/IMG_2118.jpg","thumbnails/IMG_2121.jpg","thumbnails/IMG_2122.jpg","thumbnails/IMG_2124.jpg","thumbnails/IMG_2126.jpg","thumbnails/IMG_2128.jpg","thumbnails/IMG_2129.jpg","thumbnails/IMG_2131.jpg","thumbnails/IMG_2132.jpg","thumbnails/IMG_2133.jpg","thumbnails/IMG_2134.jpg","thumbnails/IMG_2136.jpg","thumbnails/IMG_2137.jpg","thumbnails/IMG_2138.jpg","thumbnails/IMG_2140.jpg","thumbnails/IMG_2142.jpg","thumbnails/IMG_2144.jpg","thumbnails/IMG_2145.jpg","thumbnails/IMG_2146.jpg","thumbnails/IMG_2147.jpg","thumbnails/IMG_2149.jpg","thumbnails/IMG_2150.jpg","thumbnails/IMG_2151.jpg","thumbnails/IMG_2153.jpg","thumbnails/IMG_2155.jpg","thumbnails/IMG_2156.jpg","thumbnails/IMG_2158.jpg","thumbnails/IMG_2159.jpg","thumbnails/IMG_2160.jpg","thumbnails/IMG_2161.jpg","thumbnails/IMG_2162.jpg","thumbnails/IMG_2163.jpg","thumbnails/IMG_2164.jpg","thumbnails/IMG_2165.jpg","thumbnails/IMG_2167.jpg","thumbnails/IMG_2169.jpg","thumbnails/IMG_2173.jpg"]} | json |
<filename>_posts/2015-08-21-Jovani-Evening-Dress-90745-Long-Sleeves-SweepBrush-Train-MermaidTrumpet.md
---
layout: post
date: 2015-08-21
title: "Jovani Evening Dress 90745 Long Sleeves Sweep/Brush Train Mermaid/Trumpet"
category: Jovani
tags: [Jovani ,Jovani,Mermaid/Trumpet,V-neck,Sweep/Brush Train,Long Sleeves]
---
### Jovani Evening Dress 90745
Just **$477.98**
### Long Sleeves Sweep/Brush Train Mermaid/Trumpet
<table><tr><td>BRANDS</td><td>Jovani</td></tr><tr><td>Silhouette</td><td>Mermaid/Trumpet</td></tr><tr><td>Neckline</td><td>V-neck</td></tr><tr><td>Hemline/Train</td><td>Sweep/Brush Train</td></tr><tr><td>Sleeve</td><td>Long Sleeves</td></tr></table>
<a href="https://www.readybrides.com/en/jovani-/39999-jovani-jovani-evening-dress-90745.html"><img src="//img.readybrides.com/86580/jovani-jovani-evening-dress-90745.jpg" alt="Jovani Jovani Evening Dress 90745" style="width:100%;" /></a>
<!-- break --><a href="https://www.readybrides.com/en/jovani-/39999-jovani-jovani-evening-dress-90745.html"><img src="//img.readybrides.com/86581/jovani-jovani-evening-dress-90745.jpg" alt="Jovani Jovani Evening Dress 90745" style="width:100%;" /></a>
<a href="https://www.readybrides.com/en/jovani-/39999-jovani-jovani-evening-dress-90745.html"><img src="//img.readybrides.com/86579/jovani-jovani-evening-dress-90745.jpg" alt="Jovani Jovani Evening Dress 90745" style="width:100%;" /></a>
Buy it: [https://www.readybrides.com/en/jovani-/39999-jovani-jovani-evening-dress-90745.html](https://www.readybrides.com/en/jovani-/39999-jovani-jovani-evening-dress-90745.html)
| markdown |
<gh_stars>1-10
{"ast":null,"code":"import _ from'lodash';import{NavigationActions,StackActions}from'react-navigation';import*as ActionConst from\"./ActionConst\";import{getActiveState,popPrevious}from\"./State\";export default function createReducer(){return function(state,action){var navigationStore=require(\"./navigationStore\").default;var type=action.type,routeName=action.routeName;if(type===ActionConst.POP_TO){var nextScene='';var newState=state;var currentState=state;while(newState&&nextScene!==routeName){newState=navigationStore.getStateForAction(StackActions.pop(),currentState);if(newState){nextScene=getActiveState(newState).routeName;if(nextScene!==routeName&&_.isEqual(currentState,newState)){console.warn(\"popTo called with an unknown routeName: \"+routeName+\", current scene: \"+nextScene);break;}if(nextScene!==routeName){currentState=newState;}}}return nextScene===routeName?newState:state;}if(type===ActionConst.REPLACE){var _newState=navigationStore.getStateForAction(NavigationActions.navigate({routeName:routeName,params:action.params}),state);var res=popPrevious(_newState,routeName);return res;}return navigationStore.getStateForAction(action,state)||state;};}","map":{"version":3,"sources":["/home/thecoder/Documentos/UVG/Ecofiltro/waterProject/node_modules/react-native-router-flux/src/Reducer.js"],"names":["_","NavigationActions","StackActions","ActionConst","getActiveState","popPrevious","createReducer","state","action","navigationStore","require","default","type","routeName","POP_TO","nextScene","newState","currentState","getStateForAction","pop","isEqual","console","warn","REPLACE","navigate","params","res"],"mappings":"AAAA,MAAOA,CAAAA,CAAP,KAAc,QAAd,CACA,OAASC,iBAAT,CAA4BC,YAA5B,KAAgD,kBAAhD,CACA,MAAO,GAAKC,CAAAA,WAAZ,qBACA,OAASC,cAAT,CAAyBC,WAAzB,eAEA,cAAe,SAASC,CAAAA,aAAT,EAAyB,CACtC,MAAO,UAACC,KAAD,CAAQC,MAAR,CAAmB,CACxB,GAAMC,CAAAA,eAAe,CAAGC,OAAO,qBAAP,CAA6BC,OAArD,CADwB,GAEhBC,CAAAA,IAFgB,CAEIJ,MAFJ,CAEhBI,IAFgB,CAEVC,SAFU,CAEIL,MAFJ,CAEVK,SAFU,CAGxB,GAAID,IAAI,GAAKT,WAAW,CAACW,MAAzB,CAAiC,CAC/B,GAAIC,CAAAA,SAAS,CAAG,EAAhB,CACA,GAAIC,CAAAA,QAAQ,CAAGT,KAAf,CACA,GAAIU,CAAAA,YAAY,CAAGV,KAAnB,CACA,MAAOS,QAAQ,EAAID,SAAS,GAAKF,SAAjC,CAA4C,CAC1CG,QAAQ,CAAGP,eAAe,CAACS,iBAAhB,CAAkChB,YAAY,CAACiB,GAAb,EAAlC,CAAsDF,YAAtD,CAAX,CACA,GAAID,QAAJ,CAAc,CACZD,SAAS,CAAGX,cAAc,CAACY,QAAD,CAAd,CAAyBH,SAArC,CACA,GAAIE,SAAS,GAAKF,SAAd,EAA2Bb,CAAC,CAACoB,OAAF,CAAUH,YAAV,CAAwBD,QAAxB,CAA/B,CAAkE,CAChEK,OAAO,CAACC,IAAR,4CAAwDT,SAAxD,qBAAqFE,SAArF,EACA,MACD,CACD,GAAIA,SAAS,GAAKF,SAAlB,CAA6B,CAC3BI,YAAY,CAAGD,QAAf,CACD,CACF,CACF,CACD,MAAOD,CAAAA,SAAS,GAAKF,SAAd,CAA0BG,QAA1B,CAAqCT,KAA5C,CACD,CACD,GAAIK,IAAI,GAAKT,WAAW,CAACoB,OAAzB,CAAkC,CAChC,GAAMP,CAAAA,SAAQ,CAAGP,eAAe,CAACS,iBAAhB,CACfjB,iBAAiB,CAACuB,QAAlB,CAA2B,CACzBX,SAAS,CAATA,SADyB,CAEzBY,MAAM,CAAEjB,MAAM,CAACiB,MAFU,CAA3B,CADe,CAKflB,KALe,CAAjB,CAOA,GAAMmB,CAAAA,GAAG,CAAGrB,WAAW,CAACW,SAAD,CAAWH,SAAX,CAAvB,CACA,MAAOa,CAAAA,GAAP,CACD,CACD,MAAOjB,CAAAA,eAAe,CAACS,iBAAhB,CAAkCV,MAAlC,CAA0CD,KAA1C,GAAoDA,KAA3D,CACD,CAlCD,CAmCD","sourcesContent":["import _ from 'lodash';\nimport { NavigationActions, StackActions } from 'react-navigation';\nimport * as ActionConst from './ActionConst';\nimport { getActiveState, popPrevious } from './State';\n\nexport default function createReducer() {\n return (state, action) => {\n const navigationStore = require('./navigationStore').default;\n const { type, routeName } = action;\n if (type === ActionConst.POP_TO) {\n let nextScene = '';\n let newState = state;\n let currentState = state;\n while (newState && nextScene !== routeName) {\n newState = navigationStore.getStateForAction(StackActions.pop(), currentState);\n if (newState) {\n nextScene = getActiveState(newState).routeName;\n if (nextScene !== routeName && _.isEqual(currentState, newState)) {\n console.warn(`popTo called with an unknown routeName: ${routeName}, current scene: ${nextScene}`);\n break;\n }\n if (nextScene !== routeName) {\n currentState = newState;\n }\n }\n }\n return nextScene === routeName ? newState : state;\n }\n if (type === ActionConst.REPLACE) {\n const newState = navigationStore.getStateForAction(\n NavigationActions.navigate({\n routeName,\n params: action.params,\n }),\n state,\n );\n const res = popPrevious(newState, routeName);\n return res;\n }\n return navigationStore.getStateForAction(action, state) || state;\n };\n}\n"]},"metadata":{},"sourceType":"module"} | json |
<reponame>KTichmann/new-site<filename>README.md
# New Site
| markdown |
Hoping to qualify for next month’s chess World Cup by virtue of his high world ranking, Grandmaster Vidit Gujrathi withdrew from the AICF online selection tournament for the World Cup on Monday.
The pullout of Vidit and fellow Grandmaster Abhimanyu Puranik reduced the field to 17 players. The winner of the event will grab India’s lone qualifying spot for the World Cup, scheduled from July 10 to August 6, at Sochi (Russia).
“Given my rating, I should make the list of those directly seeded for the World Cup,” said Vidit when contacted on Monday.
“I have been playing the World Cup for the past three editions. After qualifying from the Asian championship, I have made it twice in succession on my rating. So I have reasons to be confident of making it one more time,” said a confident Vidit.
Vidit is ranked 23rd in the world, behind compatriots Anand (16th) and P. Harikrishna (21st).
The list of 206 World Cup participants will be finalised in the first week of June. The top-50 players will join 78 first-round winners in the knockout tournament.
With the withdrawal of two players, the round-robin tournament will now see 17 rounds, with one player getting a bye in each round. On the opening day, there will be three rounds, followed by four rounds each on the next two days. The last two days will see three rounds each.
| english |
<reponame>NakedFerret/NakedFerret.github.io
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title><NAME></title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- syntax highlighting CSS -->
<link rel="stylesheet" href="/css/syntax.css">
<script src="http://localhost:35729/livereload.js"></script>
<!-- Custom CSS -->
<link rel="stylesheet" href="/css/main.css">
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-55624711-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<div class="site">
<div class="header">
<a class=" extra " href="/"> home </a>
<a class="extra current" href="/blog/"> blog </a>
<a class=" extra " href="/portfolio/"> portfolio </a>
<div class="logo-container">
<img src="/img/logo.png"/>
</div>
</div>
<div id="post-list">
<ul class="posts">
<li><span>08 Oct 2014</span> »
<a href="/blog/33/">Updating a forked Git repo</a>
<p> <p>A while ago, I forked the ActiveAndroid repository to add some of my own changes to the ORM framework. Today I wanted to use the library again, use the new changes that the original maintainer has implemented, and also use my own changes. It turned out to be easier than I thought, despite there being <em>112 commits</em> between the original repo and my forked version. Here's what I did</p>
</p>
</li>
<li><span>06 Oct 2014</span> »
<a href="/blog/32/">ADB access to remote server from local usb</a>
<p> <p>I have a VPS server where I'm compiling CyanogenMod and some android kernels. To compile CyanogenMod we need to pull some vendor specific "prebuilts" i.e. binaries. Connecting the server to the device connected to my laptop is actually quite trivial.</p>
</p>
</li>
<li><span>30 Mar 2014</span> »
<a href="/blog/31/">Bug Progress: Day 2</a>
<p> <p>Here's a small overview of my progress in fixing <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=924609">bug #924609</a>.</p>
</p>
</li>
<li><span>27 Mar 2014</span> »
<a href="/blog/30/">Building the Emulator</a>
<p> <p>In this post I will talk about my experience with building the Firefox OS emulator. It's a simple process but the documentation is spread out over a couple of pages in the MDN.</p>
</p>
</li>
<li><span>11 Mar 2014</span> »
<a href="/blog/28/">Simple Notes: Edit Notes</a>
<p> <p>In this post, I walk through the implementation of the Edit Note screen pictured below</p>
</p>
</li>
<li><span>10 Mar 2014</span> »
<a href="/blog/27/">Simple Notes: Hidden Notes Fix</a>
<p> <p>In this post, I will polish up the application and address one of its shortcomings: hidden list items. I did not test the list functionality fully when developing the application. This is what caused the bug to slip under the radar.</p>
</p>
</li>
<li><span>07 Mar 2014</span> »
<a href="/blog/26/">Bug Progress: Day 1</a>
<p> <p>I have volunteered to help fix a <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=924609">bug</a> in Firefox OS. The bug is pretty small. It can be summed up as follows. When you attach a video to the SMS application, it shows a generic icon. Ideally it should show a thumbnail preview. In this post, I will explain my understanding of how the Gaia video application generates a thumbnail from a video.</p>
</p>
</li>
<li><span>06 Mar 2014</span> »
<a href="/blog/25/">Simple Notes: Date</a>
<p> <p>This is the final day in which I worked on the Simple Notes application. I implemented a due date for each note.</p>
</p>
</li>
<li><span>05 Mar 2014</span> »
<a href="/blog/24/">Simple Notes: Deleting</a>
<p> <p>The next functionality I decided to implement was the ability to delete multiple notes at once. I originally planned to implement this functionality along with the index section, but there were a lot of little details that I overlooked during the planning phase that set me back.</p>
</p>
</li>
<li><span>04 Mar 2014</span> »
<a href="/blog/23/">Simple Notes: Index</a>
<p> <p>In this post, I will outline the modifications I did to the Simple Notes app in order to create the index screen.</p>
</p>
</li>
<li><span>03 Mar 2014</span> »
<a href="/blog/22/">Simple Notes: New Note</a>
<p> <p>Over the next couple of days I will be creating an application that will store notes for the user. I will not spend more than 4 days working on it, so my top priority will be basic functionality and polish/features will follow afterward.</p>
</p>
</li>
<li><span>28 Feb 2014</span> »
<a href="/blog/21/">Building Gaia</a>
<p> <p>In this thread I will cover my experience building the Gaia interface from the source code. I followed the <a href="https://developer.mozilla.org/en-US/Firefox_OS/Hacking_Firefox_OS/Quickstart_guide_to_Gaia_development">Quickstart Guide</a> at MDN.</p>
</p>
</li>
<li><span>27 Feb 2014</span> »
<a href="/blog/20/">IndexedDB Caveat</a>
<p> <p>This post will explain a caveat of the IndexedDB API that I have encountered and my work around. </p>
</p>
</li>
<li><span>26 Feb 2014</span> »
<a href="/blog/19/">WebAPI: IndexedDB Part3</a>
<p> <p>In this post we will wrap up <a href="https://developer.mozilla.org/en-US/docs/IndexedDB">IndexedDB</a> by exploring cursors and indexes. Make sure you read <a href="/blog/17/">part 1</a> and <a href="/blog/18/">part 2</a>.</p>
</p>
</li>
<li><span>25 Feb 2014</span> »
<a href="/blog/18/">WebAPI: IndexedDB Part2</a>
<p> <p>In this post, we will cover how to add, get, update, and delete records from <a href="https://developer.mozilla.org/en-US/docs/IndexedDB">IndexedDB</a>.</p>
</p>
</li>
<li><span>24 Feb 2014</span> »
<a href="/blog/17/">WebAPI: IndexedDB Part1</a>
<p> <p>In this post, I will introduce <a href="https://developer.mozilla.org/en-US/docs/IndexedDB">IndexedDB</a>. As the name suggests, it is a lightweight database. It's not a relational database however, it's a key-value database. It maps keys to javascript objects (or primitives). The API is a little more difficult to grasp than the other APIs offered by Firefox OS so this post is broken up into two parts. The first part will talk about how to create the structure of the database, and how to open and close the database.</p>
</p>
</li>
<li><span>21 Feb 2014</span> »
<a href="/blog/16/">WebAPI: Device Storage</a>
<p> <p>This post will give a short demonstration of the <a href="https://developer.mozilla.org/en-US/docs/WebAPI/Device_Storage">Device Storage API</a>.</p>
</p>
</li>
<li><span>20 Feb 2014</span> »
<a href="/blog/15/">Submitting a Firefox OS bug</a>
<p> <p>This post documents my experience submitting a bug report to the Firefox OS project. The bug resides <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=975241">here</a>. Hopefully it's not a duplicate (I searched for a while), and hopefully it will benefit the project in the long run.</p>
</p>
</li>
<li><span>19 Feb 2014</span> »
<a href="/blog/14/">BuildingBlocks: Status</a>
<p> <p>The Contacts part of the API Showcase application does not show a lot of information to the user. All the information is displayed in the console. A good way to remedy is to use the <a href="http://buildingfirefoxos.com/building-blocks/status.html">Status</a> building block.</p>
</p>
</li>
<li><span>18 Feb 2014</span> »
<a href="/blog/13/">BuildingBlocks: Confirm</a>
<p> <p>This post will show one way to implement the <a href="http://buildingfirefoxos.com/building-blocks/confirm.html">Confirm</a> dialog from the building blocks. We will ask the user confirmation when deleting all contacts. We will be using the <a href="http://buildingfirefoxos.com/transitions/prompts.html">Transitions</a> to show and hide the dialog.</p>
</p>
</li>
<li><span>17 Feb 2014</span> »
<a href="/blog/12/">WebAPI: Contact Continued</a>
<p> <p><a href="/blog/11/">Last post</a> we explored the Contact API, but ran into permissions problems. This post, we'll show the fix and show the last part of the contacts API. <a href="/demos/10/">Try the (working) demo</a> and check out the <a href="https://github.com/NakedFerret/NakedFerret.github.io/tree/master/demos/10">source code</a>.</p>
</p>
</li>
<li><span>14 Feb 2014</span> »
<a href="/blog/11/">WebAPI: Contact</a>
<p> <p>In this post we will be exploring the <a href="https://developer.mozilla.org/en-US/docs/WebAPI/Contacts">Contact API</a>. </p>
</p>
</li>
<li><span>13 Feb 2014</span> »
<a href="/blog/11/">WebAPI: WebActivities</a>
<p> <p>In this post, we will take a quick look at the <a href="https://developer.mozilla.org/en-US/docs/WebAPI/Web_Activities">WebActivity API</a>. WebActivities are basically parts of apps that register with the system. When a user wants to perform a certain action that many apps can accomplish (like share, choose an image, take a photo, etc), the system will present the user with all the registered applications that can accomplish that action.</p>
</p>
</li>
<li><span>12 Feb 2014</span> »
<a href="/blog/10/">BuildingBlocks: Transitions</a>
<p> <p>On the <a href="/blog/9/">previous post</a>, we finished implementing a drawer but we didn't have true navigation functionality. The drawer simply changed the button that the user was able to click. In this post, we will use <a href="http://buildingfirefoxos.com/transitions/in-app-navigation.html">Transitions</a>.</p>
</p>
</li>
<li><span>11 Feb 2014</span> »
<a href="/blog/9/">BuildingBlocks: Drawer</a>
<p> <p>Building on our <a href="/blog/8/">previous work</a>, we're going to separate the notification demos, from the alarm demos using the <a href="http://buildingfirefoxos.com/building-blocks/drawer.html">Drawer</a>. Download BuildingBlocks <a href="https://github.com/buildingfirefoxos/Building-Blocks/archive/gh-pages.zip">here</a>.</p>
</p>
</li>
<li><span>10 Feb 2014</span> »
<a href="/blog/8/">BuildingBlocks: Buttons</a>
<p> <p>Before we keep exploring WebAPI, we can take a moment to build a UI foundation our API Showcase app. I <a href="/blog/2/">previously mentioned</a> Gaia Building Blocks. It's a mini GUI framework for Firefox OS. So far, the application only showcases 2 APIs: Notification and Alarm. Let's examine the <a href="http://buildingfirefoxos.com/building-blocks/buttons.html">Button</a> building block</p>
</p>
</li>
<li><span>07 Feb 2014</span> »
<a href="/blog/7/">WebApi: Alarm</a>
<p> <p>This post will cover the <a href="https://developer.mozilla.org/en-US/docs/WebAPI/Alarm">Alarm API</a>. Instead of creating a brand new application, we will modifying the <code>API Showcase</code> app. As always, I would encourage you to <a href="/demos/05/">try the demo</a>.</p>
</p>
</li>
<li><span>06 Feb 2014</span> »
<a href="/blog/6/">WebApi: Notification</a>
<p> <p>This article will show how to use the <a href="https://developer.mozilla.org/en-US/docs/WebAPI/Using_Web_Notifications">Notification API</a>. We will be building the app <code>API Showcase</code> through the rest of these series to quickly test each new API. <a href="/demos/04/">Try the demo of version one</a></p>
</p>
</li>
<li><span>05 Feb 2014</span> »
<a href="/blog/5/">WebAPI: BatteryManager</a>
<p> <p>In this post were going to explore the (small) <a href="https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager">BatteryManager API</a>.</p>
</p>
</li>
<li><span>04 Feb 2014</span> »
<a href="/blog/4/">Simple Clock: Images</a>
<p> <p>In this post, we modify the previous app to create an analog clock using images. <a href="/demos/03/">Try the Demo</a></p>
</p>
</li>
<li><span>02 Feb 2014</span> »
<a href="/blog/3/">Simple Clock: Text</a>
<p> <p>In this post, we create a simple clock app.</p>
</p>
</li>
<li><span>31 Jan 2014</span> »
<a href="/blog/2/">A Quick Intro to Firefox OS for Devs</a>
<p> <p>This post will give an overview of Firefox OS. The audience are developers of mobile applications.</p>
</p>
</li>
<li><span>30 Jan 2014</span> »
<a href="/blog/1/">Hello, World: Firefox OS Style</a>
<p> <p>This is the first entry to the blog series dedicated to developing mobile applications for <a href="http://www.mozilla.org/en-US/firefox/os/">Firefox OS</a>.</p>
</p>
</li>
</ul>
</div>
<div class="footer">
<div class="contact">
<p>
<NAME><br />
Android Engineer<br />
</p>
</div>
<div class="contact">
<p>
<a href="https://github.com/NakedFerret">github.com/NakedFerret</a><br />
</p>
</div>
</div>
</div>
</body>
</html> | html |
<filename>Leecode for JAVA/src/rotate/Solution.java
package rotate;
import java.util.Arrays;
/*
* title:旋转图像
* tiem:1ms - 77.72%
* AC
*
*/
public class Solution {
public void diagonal(int[][] matrix) {
int len = matrix.length;
for (int i = 0; i < len; i++) {
for (int j = i + 1; j < len; j++) {
int temp = matrix[i][j];
matrix[i][j] = matrix[j][i];
matrix[j][i] = temp;
}
}
}
public void horizontal(int[][] matrix) {
int len = matrix.length;
for (int i = 0; i < len; i++) {
for (int j = 0; j < len / 2; j++) {
int temp = matrix[i][j];
matrix[i][j] = matrix[i][len - j - 1];
matrix[i][len - j - 1] = temp;
}
}
}
public void rotate(int[][] matrix) {
if (matrix == null)
return;
this.diagonal(matrix);
this.horizontal(matrix);
}
public static void main(String[] args) {
int test_in[][] = { { 1, 2, 3 }, { 4, 5, 6 }, { 7, 8, 9 } };
for (int temp[] : test_in) {
System.out.println(Arrays.toString(temp));
}
System.out.println();
Solution test = new Solution();
test.rotate(test_in);
for (int temp[] : test_in) {
System.out.println(Arrays.toString(temp));
}
}
}
| java |
{% extends "layout.html" %}
{% block body %}
<h1>Deployments</h1>
<table class=tablelist>
<tr>
<th>Application</th>
<th>Status</th>
<th>Date</th>
<th>Number of VMs</th>
</tr>
{% for d in deps %}
<tr>
<td>{{ d.name }}</td>
<td>{{ d.status }}</td>
<td>{{ d.datetime }}</td>
<td>{{ d.modules |count}}</td>
<td align='center'>
<a href={{ url_for('deployment_show', dep_id=d.id)}}><img src="/static/info-icon.png" alt="View" height=42 width=42/></a>
<a href={{ url_for('deployment_delete', dep_id=d.id)}}><img src="/static/remove-icon.png" alt="View" height=42 width=42/></a>
</td>
</tr>
{% endfor %}
</table>
{% endblock %}
| html |
<gh_stars>10-100
#ifndef BABA_IS_AGENT_TRAINING_DATA_HPP
#define BABA_IS_AGENT_TRAINING_DATA_HPP
#include <BabaIsAgent/Network/Network.hpp>
#include <baba-is-auto/baba-is-auto.hpp>
#include <string>
#include <vector>
namespace BabaIsAgent::Train
{
struct TrainingData final
{
Network::Tensor state;
Network::Tensor pi;
};
class TrainingSet final
{
public:
TrainingSet(int width, int height);
void Add(TrainingData data);
void SetResult(baba_is_auto::PlayState result);
int GetResult() const;
void Save(const std::string& filename) const;
private:
int width_, height_;
int result_{ 0 };
std::vector<TrainingData> data_;
};
} // namespace BabaIsAgent::Train
#endif // BABA_IS_AGENT_TRAINING_DATA_HPP
| cpp |
{"id": "POL361H1F20199", "code": "POL361H1F", "name": "Global Political Economy I: History and Theory", "description": "The course introduces the contemporary history of world economic order and the ideas underpinning that order. It also provides an orientation to the field of study devoted to understanding and explaining underlying political dynamics.", "division": "Faculty of Arts and Science", "department": "Political Science", "prerequisites": "1.0 POL credit; ECO100Y1/(ECO101H1, ECO102H1)/ECO105Y1", "exclusions": "POL370H1/POL370Y1/POLC69H3", "level": 300, "campus": "UTSG", "term": "2019 Fall", "breadths": [3], "meeting_sections": [{"code": "L0101", "instructors": ["<NAME>"], "times": [{"day": "WEDNESDAY", "start": 36000, "end": 43200, "duration": 7200, "location": "LM 161"}], "size": 70, "enrolment": 0}]} | json |
<reponame>threadmeup/docker-workshop
setInterval(function(){
console.log( new Date );
}, 500 )
| javascript |
package com.apkspectrum.data.apkinfo;
public class UsesFeatureInfo
{
public String name = null; //"string"
public Boolean required = null;
public Integer glEsVersion = null;
public String getReport()
{
StringBuilder report = new StringBuilder();
report.append("uses feature : ");
if(name != null) report.append(name);
if(glEsVersion != null) {
if(name != null) report.append(", ");
report.append("glEsVersion=0x" + Integer.toHexString(glEsVersion));
}
if(required != null) report.append(", required=" + required);
report.append("\n");
return report.toString();
}
}
| java |
<reponame>usegalaxy-no/usegalaxy<gh_stars>1-10
#!/usr/bin/python
# -*- coding:utf-8 -*-
# Copyright (C) 2020 Inspur Inc. All Rights Reserved.
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
DOCUMENTATION = '''
---
module: edit_log_setting
version_added: "0.1.0"
author:
- WangBaoshan (@ISIB-group)
short_description: Set bmc system and audit log setting.
description:
- Set bmc system and audit log setting on Inspur server.
options:
status:
description:
- System Log Status.
choices: ['enable', 'disable']
type: str
type:
description:
- System log type.
choices: ['local', 'remote', 'both']
type: str
file_size:
description:
- File Size(3-65535bytes), set when type is local(default 30000).
type: int
audit_status:
description:
- Audit Log Status.
choices: ['enable', 'disable']
type: str
audit_type:
description:
- Audit log type.
choices: ['local', 'remote', 'both']
type: str
rotate_count:
description:
- Rotate Count, set when type is local, 0-delete old files(default), 1-bak old files.
choices: [0, 1]
type: int
server_addr:
description:
- Server Address, set when type is remote.
type: str
server_port:
description:
- Server Port(0-65535), set when type is remote.
type: int
protocol_type:
description:
- Protocol Type, set when type is remote.
choices: ['UDP', 'TCP']
type: str
extends_documentation_fragment:
- inspur.sm.ism
'''
EXAMPLES = '''
- name: Edit log setting test
hosts: ism
connection: local
gather_facts: no
vars:
ism:
host: "{{ ansible_ssh_host }}"
username: "{{ username }}"
password: "{{ password }}"
tasks:
- name: "Edit bmc system log setting"
inspur.sm.edit_log_setting:
status: "enable"
type: "both"
provider: "{{ ism }}"
- name: "Edit bmc audit log setting"
inspur.sm.edit_log_setting:
audit_status: "enable"
audit_type: "remote"
server_addr: "172.16.17.32"
server_port: "514"
provider: "{{ ism }}"
'''
RETURN = '''
message:
description: Messages returned after module execution.
returned: always
type: str
state:
description: Status after module execution.
returned: always
type: str
changed:
description: Check to see if a change was made on the device.
returned: always
type: bool
'''
from ansible.module_utils.basic import AnsibleModule
from ansible_collections.inspur.sm.plugins.module_utils.ism import (ism_argument_spec, get_connection)
class LogSetting(object):
def __init__(self, argument_spec):
self.spec = argument_spec
self.module = None
self.init_module()
self.results = dict()
def init_module(self):
"""Init module object"""
self.module = AnsibleModule(
argument_spec=self.spec, supports_check_mode=False)
def run_command(self):
self.module.params['subcommand'] = 'setbmclogsettings'
self.results = get_connection(self.module)
if self.results['State'] == 'Success':
self.results['changed'] = True
def show_result(self):
"""Show result"""
self.module.exit_json(**self.results)
def work(self):
"""Worker"""
self.run_command()
self.show_result()
def main():
argument_spec = dict(
status=dict(type='str', required=False, choices=['enable', 'disable']),
type=dict(type='str', required=False, choices=['local', 'remote', 'both']),
file_size=dict(type='int', required=False),
audit_status=dict(type='str', required=False, choices=['enable', 'disable']),
audit_type=dict(type='str', required=False, choices=['local', 'remote', 'both']),
rotate_count=dict(type='int', required=False, choices=[0, 1]),
server_addr=dict(type='str', required=False),
server_port=dict(type='int', required=False),
protocol_type=dict(type='str', required=False, choices=['UDP', 'TCP']),
)
argument_spec.update(ism_argument_spec)
log_obj = LogSetting(argument_spec)
log_obj.work()
if __name__ == '__main__':
main()
| python |
<gh_stars>1-10
{
"name": "Dot Browser Dev Tools",
"version": "1.0.0",
"description": "Custom Chromium Dev Tools theme",
"devtools_page": "devtools.html",
"homepage_url": "https://github.com/dot-browser/dev-tools-theme",
"manifest_version": 2,
"icons": {
"16": "shared/app-icons/icon-16dp.png",
"48": "shared/app-icons/icon-48dp.png",
"128": "shared/app-icons/icon-128dp.png"
},
"background": { "scripts": ["hot-reload.js"] }
}
| json |
<gh_stars>1-10
const EventEmitter = require('events');
const GuildMusicManager = require('./GuildMusicManager.js');
const SoundCloud = require('soundcloud-scraper');
const { joinVoiceChannel,
entersState,
VoiceConnectionStatus } = require('@discordjs/voice');
class ClientMusicManager extends EventEmitter {
constructor(client, options = {}) {
if (!client) throw new Error('MISSING_CLIENT');
super();
this.client = client;
this._data = new Map();
this._soundcloudClient = new SoundCloud.Client();
this.defaultMaxQueueSize = options.defaultMaxQueueSize ?? 99;
this.enableQueue = options.enableQueue ?? true;
this.enableAutoplay = options.disableAutoplay ?? true
this.enableInlineVolume = options.enableInlineVolume ?? false;
this.disableWarning = options.disableWarning ?? false;
this.enableService = options.enableService ?? {
rawFile: true,
youtube: true,
soundcloud: true
}
}
has(id) {
return this._data.has(id);
}
get(id) {
if (this._data.has(id)) return this._data.get(id);
return undefined;
}
get connections() {
return new Map(this._data);
}
join({ channel, setMute, setDeaf, maxQueueSize }) {
if (!channel.isVoice()) throw new Error('INVALID_CHANNEL_TYPE');
if (!channel.joinable) throw new Error('MISSING_PERMISSIONS');
const connection = joinVoiceChannel({
channelId: channel.id,
guildId: channel.guild.id,
adapterCreator: channel.guild.voiceAdapterCreator,
selfDeaf: setDeaf,
selfMute: setMute
});
this._data.set(channel.guild.id, new GuildMusicManager({
client: this.client,
manager: this,
channel: channel,
maxQueueSize: maxQueueSize ?? this.maxQueueSize
}));
this.emit('join', channel.guild);
// 讓 connection 綁定 player
const dj = this._data.get(channel.guild.id);
connection.subscribe(dj.player);
connection.on(VoiceConnectionStatus.Disconnected, async (oldState, newState) => {
// 如果
try {
// 在一秒內重新連線的話,表示是從一語音頻道移動至另一個,便不做事
await Promise.race([
entersState(connection, VoiceConnectionStatus.Signalling, 1e3),
entersState(connection, VoiceConnectionStatus.Connecting, 1e3)
]);
dj.channel = dj.voiceState.channel;
dj.channelId = dj.channel.id;
} catch (e) {
this._data.delete(channel.guild.id);
connection.destroy();
this.emit('leave', channel.guild.id);
}
});
return new Promise(resolve => resolve(dj));
}
leave(id) {
this._data.get(id).leave();
}
}
module.exports = ClientMusicManager;
| javascript |
Arsenal fans online were unimpressed by the performances of Rob Holding, Cedric Soares and Eddie Nketiah following their 1-0 defeat to Nottingham Forest in the FA Cup. The defeat meant the Gunners had been eliminated in the third round of the competition.
Mikel Arteta named a slightly rotated starting XI to take on Nottingham Forest. The former Manchester City assistant manager played the likes of Cedric Soares, Rob Holding, Nuno Tavares, Charlie Patino and Eddie Nketiah.
However, there were also a few first-team regulars including Bukayo Saka, Martin Odegaard and Ben White. But the fringe players failed to make an impression as the Gunners fell to a 1-0 defeat.
Lewis Grabban netted an 83rd minute winner to send Nottingham Forest into the fourth round of the FA Cup.
A portion of Gunners supporters took to Twitter following a disappointing display by the likes of Rob Holding, Eddie Nketiah and Cedric Soares. Many suggested that the trio were not fit to wear the shirt.
Here are some of the best tweets:
It is worth noting that this is the second time in recent years that Arsenal have been eliminated by Nottingham Forest in the third round of the FA Cup. The Gunners suffered a 4-2 defeat against the same opponent during the 2017-18 season.
Mikel Arteta's side will now need to shift their focus away from the FA Cup to the Carabao Cup.
Arsenal are scheduled to take on Liverpool in a two-legged semi-final. The first leg will take place at Anfield on the 13th of January and the second leg on the 20th at the Emirates.
Arsenal have had the more success in the FA Cup than any other team across all tiers of English football. The Gunners have won the competition a record 14 times and last lifted the cup back in 2020. It happened to be the first trophy the club won under the leadership of Mikel Arteta.
The north London side defeated Chelsea 2-1 in the final thanks to a brace by club captain Pierre-Emerick Aubameyang.
A few months later Arsenal went on to win the Community Shield, beating Liverpool in a penalty shootout.
However, the club have not seen any success since their Community Shield triumph. The Gunners are without European football this season for the first time in 25 years.
As things stand, Mikel Arteta's side are currently fourth in the Premier League standings, having amassed 35 points from 20 matches. Arsenal could lose fourth spot if they lose to Tottenham Hotspur in the north London derby on 16 January. | english |
The Apostle Peter, probably with the help of Silas, composed the letter of 1 Peter around A.D. 60. The letter was sent to Jewish and Gentile Christians living in the region we would know as modern-day Turkey. The Christian population grew quickly after the ascension of Christ and became an annoyance to Rome’s emperor, Nero. Peter learned of the suffering Paul faced, as well as the persecution that the Church was experiencing. 1 Peter is a letter of encouragement to the people to continue to grow in their faith and knowledge of God’s word.
John Owen, an English theologian, compared the process of sanctification to a growing tree. He said, “The growth of trees and plants takes place so slowly that it is not easily seen. Daily we notice little change. But, in the course of time, we see that a great change has taken place. So it is with grace. Sanctification is a progressive, lifelong work. It is an amazing work of God's grace, and it is a work to be prayed for.” Peter wrote his letter to encourage the early believers to continue to allow their lives to be sanctified by Christ and, therefore, choose the road of blessing.
Our earthly lives are a journey, and God’s guidance system enables us to avoid many detours along the way. We remain on the best road home when we allow God’s word to be our guidance system through the Holy Spirit.
The Book of Colossians: Is Jesus Enough?
| english |
{"name":"<NAME> - Primarstufe -","id":"NRW-109356","address":"Marktstr. 25, 47229 Duisburg","school_type":"Grundschule","fax":"02065 469392","phone":"02065 41396","website":"","email":" <EMAIL> ","state":"NRW","programs":{"programs":[]},"full_time_school":false,"lon":6.710808,"lat":51.388239}
| json |
New Delhi: India’s Apurvi Chandela shattered the world record on her way to the women’s 10m air rifle gold with an incredible sequence of scores that never dropped below 10 in the ongoing ISSF World Cup here Saturday.
Producing her finest performance, the 26-year-old Chandela shot 252. 9 to win the top prize on the opening day of the competitions, at the Dr Karni Singh Shooting Range.
China’s Ruozhu Zhao bagged silver with 251. 8 while another Chinese, Hong Xu (230. 4), finished the tournament’s first final with a bronze. Zhao held the previous world record with 252. 4, which she shot at the World Cup in Changwon, Korea last April.
Such was Chandela’s dominance in the eight-woman final that she finished the event a staggering 1. 1 points ahead of the silver medallist. Chandela, who had secured a Tokyo Olympic quota in the last World Championships, was fourth in the qualifications with 629. 3.
The other two Indians in the fray – Anjum Moudgil and Elavenil Valarivan – finished 12th (628) and 30th (625. 3) respectively in the qualifications.
The final witnessed an astonishing display of shooting with Chandela, placed at the bottom to start with and watched by her mother Bindu, leapfrogged the rest of the field to emerge triumphant.
In her own words, the loud cheers from behind helped, as she rallied to grab the second place with a 10. 6 in the 11th shot. The exceptional series of scores continued unabated as she maintained her second position, a 10. 8 propping her up at that stage of the final.
The top two Chinese meanwhile interchanged positions even as Chandela shot her way to the top of the pecking order and consolidated her position with a monstrous 10. 8 in the 18th shot.
Not one to give up, Xu produced a 10. 9 to reduce the gap to 0. 1 point. An unbelievable series of 10. 6 10. 8 10. 6 and another 10. 8 ensured the fierce Indian competitor from Jaipur was way ahead of the pack with a difference of 0. 8 points. The 24th and final shot was a 10. 5 from Chandela, same as Zhao, but the gap by then had only widened. Chandela had started with a 10. 1 and she repeated the score only once over the next 23 shots.
“It’s been a bit tough but I have been practising and not giving up. There is a lot more to work on. A lot of important competitions ahead, so will look forward to bettering the performance,” Chandela said.
This is Chandela’s third individual medal at a World Cup. She won bronze in the Changwon World Cup in 2015 before winning silver at the ISSF World Cup Finals in the same year.
However, Mehuli Ghosh from West Bengal, who is not part of the Indian team and was shooting in the MQS (Minimum Qualification Scores) category, shot 631, which is the highest by an Indian in the event. | english |
The position of Muntha is very favorable to Vincent Kompany. Just let go and enjoy the happiness that comes Vincent Kompany's way. At last Vincent Kompany can relax and enjoy the success and the results of the hard work Vincent Kompany had been doing for a long time. This period will also bring Vincent Kompany in the midst of famous people. Gain from foreign lands will build Vincent Kompany's status. Gains from superiors and higher authorities are also indicated. Vincent Kompany will get happiness from the life partner and children. There will be religious ceremony at home and name, fame and luck due to that.
The trend for Vincent Kompany in this period is one of a tremendous creative and intellectual energy. Vincent Kompany will feel very romantic and will take Vincent Kompany's work as an art and reach out for new ideas. Contacts and communication will bring more opportunities and this adds to the great potential for expansion. Actions of courage and Vincent Kompany's sheer genius will bring Vincent Kompany money and spirituality in equal measure. Harmony in family life is assured. Minor health ailments could be there. Construction of house or purchase of vehicle is on the card. A very rewarding period for Vincent Kompany.
Vincent Kompany will be enthusiastic towards life. Vincent Kompany'll be courageous and have a violent temper. There will be lack of mental control and loos of discremination. Vincent Kompany's popularity with public will decrease and there can be trouble due to disputes. This period is unfavorable for love and romance. Children and life partner may suffer from ill health. In case of benefic aspects, this period may result in child birth and gain from higher authorities.
Vincent Kompany will not be able to grab the chances coming Vincent Kompany's way though Vincent Kompany will have a lot of opportunities but all in ruin. Vincent Kompany may face problems related to Vincent Kompany's health or Vincent Kompany's parents so get good care of them as well as Vincent Kompany'ss. Long distance travel is on Vincent Kompany's cards but would not be very beneficial and should be avoided. This is a period of mixed results for Vincent Kompany. There can be dispute with the public and Vincent Kompany's colleagues. Vincent Kompany will be prone to diseases like cold and fever. There will be mental worry without any visible causes.
Vincent Kompany should learn to relax to avoid unnecessary mental stress when things seem to be stagnating at the professional front. Resist the urge to change jobs on an impulse driven by feelings of disappointment or frustration. This is also a period which can create troubles or messy situations due to carelessness or negligence creating worries and unnecessary troubles. Health requires immediate attention as injuries and accidents and on the card. There will be disturbance in the family life and also Vincent Kompany should be careful of the sex diseases.
There will be good chances of entering into profitable deals. If Vincent Kompany have applied for loans, then Vincent Kompany might get finances. Minor health ailment could also be possible. Vincent Kompany will be able to balance professional and domestic commitments intelligently and give Vincent Kompany's best to both these vital aspects of life. Vincent Kompany's cherished desires will be fulfilled with difficulty but will ultimately bring Vincent Kompany prosperity fame and good income or profits. Vincent Kompany will emerge as winner in competition and successful in interviews.
Vincent Kompany are learning new ways of maintaining harmony in Vincent Kompany's individuality at work and around friends and family. Vincent Kompany will reap great rewards as Vincent Kompany learn to expand Vincent Kompany's communication skills and be true to Vincent Kompany's inner self and Vincent Kompany's own personal needs. Changes Vincent Kompany experience in Vincent Kompany's life will be deeply felt and lasting. People that Vincent Kompany thought overlooked Vincent Kompany's good efforts will be Vincent Kompany's greatest and most supportive allies. An auspicious ceremony in the family is likely to take place. This period will also bring prosperity, happiness and success to Vincent Kompany's children.
Some restlessness is likely, mainly because of a deep feeling of wanderlust. Vincent Kompany don't like to get backed into a corner, so this can cause some strain. The period will begin with a phase of volatility and pressure in career. New project and risks should be avoided. Vincent Kompany need to curb new investments and commitment. There are chances of gain but swings in work environment which will not be entirely comfortable. This period is not good as far as worldly comforts are concerned, religious and spiritual deeds can get Vincent Kompany out of troubles. Vincent Kompany may face sorrow through Vincent Kompany's relatives. Sudden accidents and losses are also possible.
Vincent Kompany may suffer due to health complications. Vincent Kompany will find it difficult to retain money as Vincent Kompany will have tendency towards spending on luxuries and pleasures. This is not a good period for indulging in rash speculative activities. Silly quarrels, misunderstanding and arguments can affect family's peace and serenity. People jealous of Vincent Kompany can cause problems, thus may get un-based accusations and create unhappiness in the family beware of them. Vincent Kompany may have trouble from opposite gender so Vincent Kompany need to be careful of them.
This is not a very successful period for Vincent Kompany. Vincent Kompany may get indulge in unnecessary expenses but Vincent Kompany need to put a hold on it. All kinds of speculations must be avoided. Vincent Kompany will have to slog as the work burden will be too much. Don't try to take risks in business matters as period is not very harmonious to Vincent Kompany. Vincent Kompany's enemies will try to tarnish Vincent Kompany's image. Family atmosphere may not be harmonious. Vincent Kompany's enemies will try to tarnish Vincent Kompany's image. Vincent Kompany's health may become a cause of anxiety. Vincent Kompany may be inclined towards mantra and spiritual practice.
| english |
<filename>contract_api/handlers/service_handlers.py<gh_stars>0
import json
from contract_api.config import NETWORKS, NETWORK_ID, SLACK_HOOK
from common.repository import Repository
from common.utils import Utils, generate_lambda_response
from contract_api.registry import Registry
from common.utils import handle_exception_with_slack_notification
from common.logger import get_logger
from aws_xray_sdk.core import patch_all
patch_all()
db = Repository(net_id=NETWORK_ID, NETWORKS=NETWORKS)
obj_util = Utils()
logger = get_logger(__name__)
@handle_exception_with_slack_notification(logger=logger, NETWORK_ID=NETWORK_ID, SLACK_HOOK=SLACK_HOOK)
def get_service_get(event, context):
obj_reg = Registry(obj_repo=db)
payload_dict = event.get('queryStringParameters')
response_data = obj_reg.get_filter_attribute(
attribute=payload_dict["attribute"])
return generate_lambda_response(
200, {"status": "success", "data": response_data}, cors_enabled=True)
@handle_exception_with_slack_notification(logger=logger, NETWORK_ID=NETWORK_ID, SLACK_HOOK=SLACK_HOOK)
def get_service_post(event, context):
obj_reg = Registry(obj_repo=db)
payload_dict = json.loads(event['body'])
response_data = obj_reg.get_all_srvcs(qry_param=payload_dict)
return generate_lambda_response(
200, {"status": "success", "data": response_data}, cors_enabled=True)
@handle_exception_with_slack_notification(logger=logger, NETWORK_ID=NETWORK_ID, SLACK_HOOK=SLACK_HOOK)
def get_service_for_given_org(event, context):
obj_reg = Registry(obj_repo=db)
org_id = event['pathParameters']['orgId']
service_id = event['pathParameters']['serviceId']
response_data = obj_reg.get_service_data_by_org_id_and_service_id(
org_id=org_id, service_id=service_id)
return generate_lambda_response(
200, {"status": "success", "data": response_data}, cors_enabled=True)
@handle_exception_with_slack_notification(logger=logger, NETWORK_ID=NETWORK_ID, SLACK_HOOK=SLACK_HOOK)
def get_group_for_service(event, context):
obj_reg = Registry(obj_repo=db)
org_id = event['pathParameters']['orgId']
service_id = event['pathParameters']['serviceId']
response_data = obj_reg.get_group_info(
org_id=org_id, service_id=service_id)
return generate_lambda_response(
200, {"status": "success", "data": response_data}, cors_enabled=True)
@handle_exception_with_slack_notification(logger=logger, NETWORK_ID=NETWORK_ID, SLACK_HOOK=SLACK_HOOK)
def post_rating_for_given_service(event, context):
obj_reg = Registry(obj_repo=db)
org_id = event['pathParameters']['orgId']
service_id = event['pathParameters']['serviceId']
response_data = obj_reg.update_service_rating(org_id=org_id, service_id=service_id)
return generate_lambda_response(
200, {"status": "success", "data": response_data}, cors_enabled=True)
| python |
<filename>projects/storefrontapp-e2e-cypress/cypress/helpers/accessibility/tabbing-order/my-account/my-coupons.ts
import {
claimCoupon,
CouponWithOpenCatalog,
} from '../../../coupons/my-coupons';
import { verifyTabbingOrder } from '../../tabbing-order';
import { TabElement } from '../../tabbing-order.model';
const containerSelector = 'cx-my-coupons';
export function checkoutMyCouponsTabbingOrder(config: TabElement[]) {
cy.visit('/my-account/coupons');
claimCoupon(CouponWithOpenCatalog);
verifyTabbingOrder(containerSelector, config);
}
| typescript |
<gh_stars>100-1000
# pylint: disable=unused-wildcard-import, wildcard-import
#
# This file is part of FaceDancer.
#
import asyncio
from typing import Iterable
from . import default_main
from ..future import *
from ..classes.hid.usage import *
from ..classes.hid.descriptor import *
from ..classes.hid.keyboard import *
# Specifies how many simultaneously keys we want to support.
KEY_ROLLOVER = 8
@use_inner_classes_automatically
class USBKeyboardDevice(USBDevice):
""" Simple USB keyboard device. """
name : str = "USB keyboard device"
product_string : str = "Non-suspicious Keyboard"
class KeyboardConfiguration(USBConfiguration):
""" Primary USB configuration: act as a keyboard. """
class KeyboardInterface(USBInterface):
""" Core HID interface for our keyboard. """
name : str = "USB keyboard interface"
class_number : int = 3
class KeyEventEndpoint(USBEndpoint):
number : int = 3
direction : USBDirection = USBDirection.IN
transfer_type : USBTransferType = USBTransferType.INTERRUPT
interval : int = 10
#
# Raw descriptors -- TODO: build these from their component parts.
#
class USBClassDescriptor(USBClassDescriptor):
number : int = USBDescriptorTypeNumber.HID
raw : bytes = b'\x09\x21\x10\x01\x00\x01\x22\x2b\x00'
class ReportDescriptor(HIDReportDescriptor):
fields : tuple = (
# Identify ourselves as a keyboard.
USAGE_PAGE (HIDUsagePage.GENERIC_DESKTOP),
USAGE (HIDGenericDesktopUsage.KEYBOARD),
COLLECTION (HIDCollection.APPLICATION),
USAGE_PAGE (HIDUsagePage.KEYBOARD),
# Modifier keys.
# These span the full range of modifier key codes (left control to right meta),
# and each has two possible values (0 = unpressed, 1 = pressed).
USAGE_MINIMUM (KeyboardKeys.LEFTCTRL),
USAGE_MAXIMUM (KeyboardKeys.RIGHTMETA),
LOGICAL_MINIMUM (0),
LOGICAL_MAXIMUM (1),
REPORT_SIZE (1),
REPORT_COUNT (KeyboardKeys.RIGHTMETA - KeyboardKeys.LEFTCTRL + 1),
INPUT (variable=True),
# One byte of constant zero-padding.
# This is required for compliance; and Windows will ignore this report
# if the zero byte isn't present.
REPORT_SIZE (8),
REPORT_COUNT (1),
INPUT (constant=True),
# Capture our actual, pressed keyboard keys.
# Support a standard, 101-key keyboard; which has
# keycodes from 0 (NONE) to 101 (COMPOSE).
#
# We provide the capability to press up to eight keys
# simultaneously. Setting the REPORT_COUNT effectively
# sets the key rollover; so 8 reports means we can have
# up to eight keys pressed at once.
USAGE_MINIMUM (KeyboardKeys.NONE),
USAGE_MAXIMUM (KeyboardKeys.COMPOSE),
LOGICAL_MINIMUM (KeyboardKeys.NONE),
LOGICAL_MAXIMUM (KeyboardKeys.COMPOSE),
REPORT_SIZE (8),
REPORT_COUNT (KEY_ROLLOVER),
INPUT (),
# End the report.
END_COLLECTION (),
)
@class_request_handler(number=USBStandardRequests.GET_INTERFACE)
@to_this_interface
def handle_get_interface_request(self, request):
# Silently stall GET_INTERFACE class requests.
request.stall()
def __post_init__(self):
super().__post_init__()
# Keep track of any pressed keys, and any pressed modifiers.
self.active_keys = set()
self.modifiers = 0
def _generate_hid_report(self) -> bytes:
""" Generates a single HID report for the given keyboard state. """
# If we have active keypresses, compose a set of scancodes from them.
scancodes = \
list(self.active_keys)[:KEY_ROLLOVER] + \
[0] * (KEY_ROLLOVER - len(self.active_keys))
return bytes([self.modifiers, 0, *scancodes])
def handle_data_requested(self, endpoint: USBEndpoint):
""" Provide data once per host request. """
report = self._generate_hid_report()
endpoint.send(report)
#
# User-facing API.
#
def key_down(self, code: KeyboardKeys):
""" Marks a given key as pressed; should be a scancode from KeyboardKeys. """
self.active_keys.add(code)
def key_up(self, code: KeyboardKeys):
""" Marks a given key as released; should be a scancode from KeyboardKeys. """
self.active_keys.remove(code)
def modifier_down(self, code: KeyboardModifiers):
""" Marks a given modifier as pressed; should be a flag from KeyboardModifiers. """
if code is not None:
self.modifiers |= code
def modifier_up(self, code: KeyboardModifiers):
""" Marks a given modifier as released; should be a flag from KeyboardModifiers. """
if code is not None:
self.modifiers &= ~code
async def type_scancode(self, code: KeyboardKeys, duration: float = 0.1, modifiers: KeyboardModifiers = None):
""" Presses, and then releases, a single key.
Parameters:
code -- The keyboard key to be pressed's scancode.
duration -- How long the given key should be pressed, in seconds.
modifiers -- Any modifier keys that should be held while typing.
"""
self.modifier_down(modifiers)
self.key_down(code)
await asyncio.sleep(duration)
self.key_up(code)
self.modifier_up(modifiers)
async def type_scancodes(self, *codes: Iterable[KeyboardKeys], duration: float = 0.1):
""" Presses, and then releases, a collection of keys, in order.
Parameters:
*code -- The keyboard keys to be pressed's scancodes.
duration -- How long each key should be pressed, in seconds.
"""
for code in codes:
await self.type_scancode(code, duration=duration)
async def type_letter(self, letter: str, duration: float = 0.1, modifiers: KeyboardModifiers = None):
""" Attempts to type a single letter, based on its ASCII string representation.
Parameters:
letter -- A single-character string literal, to be typed.
duration -- How long each key should be pressed, in seconds.
modifiers -- Any modifier keys that should be held while typing.
"""
shift, code = KeyboardKeys.get_scancode_for_ascii(letter)
modifiers = shift if modifiers is None else modifiers | shift
await self.type_scancode(code, modifiers=modifiers, duration=duration)
async def type_letters(self, *letters: Iterable[str], duration:float = 0.1):
""" Attempts to type a string of letters, based on ASCII string representations.
Parameters:
*letters -- A collection of single-character string literal, to be typed in order.
duration -- How long each key should be pressed, in seconds.
"""
for letter in letters:
await self.type_letter(letter, duration=duration)
async def type_string(self, to_type: str, *, duration:float = 0.1, modifiers: KeyboardModifiers = None):
""" Attempts to type a python string into the remote host.
Parameters:
letter -- A collection of single-character string literal, to be typed in order.
duration -- How long each key should be pressed, in seconds.
modifiers -- Any modifier keys that should be held while typing.
"""
self.modifier_down(modifiers)
for letter in to_type:
await self.type_letter(letter, duration=duration)
self.modifier_up(modifiers)
def all_keys_up(self, *, include_modifiers: bool = True):
""" Releases all keys currently pressed.
Parameters:
include_modifiers -- If set to false, modifiers will be left at their current states.
"""
self.active_keys.clear()
if include_modifiers:
self.all_modifiers_up()
def all_modifiers_up(self):
""" Releases all modifiers currently held. """
self.modifiers = 0
if __name__ == "__main__":
default_main(USBKeyboardDevice)
| python |
Topics Covered: Major crops cropping patterns in various parts of the country, different types of irrigation and irrigation systems storage, transport and marketing of agricultural produce and issues and related constraints; e-technology in the aid of farmers.
Why are the framers protesting and how the government should deal with protesting farmers?
Farmer protests against the three new agriculture-related laws have gathered momentum.
The controversy pertains to:
- Essential Commodities (Amendment) Bill 2020.
What’s the issue?
A set of three laws passed in September aims to deregulate India’s enormous agriculture sector.
- The government says these laws will “liberate” farmers from the tyranny of middlemen.
- But many farmers fear that they stand to lose more than they could gain from the new regulations and that the main beneficiaries will be agricultural corporations with gargantuan financial firepower.
So what do India’s new farm laws do?
- They make it easier for farmers to bypass government-regulated markets (known locally as mandis) and sell produce directly to private buyers.
- They can now enter into contracts with private companies, a practice known in India as contract farming, and sell across state borders.
- The new regulations also allow traders to stockpile food. This is a shift away from prohibitions against hoarding, which could make it easier for traders to take advantage of rising prices, such as during a pandemic. Such practices were criminal offences under the old rules.
Concerns of farmers:
More than 86 percent of India’s cultivated farmland is controlled by smallholder farmers who own less than two hectares (five acres) of land each.
- The new rules remove many of their safeguards. Small farmers fear that they just do not have enough bargaining power to get the kinds of prices they need for a decent standard of living when they negotiate to sell their produce to larger companies.
- The new laws also do not make written contracts mandatory. So in the case of any violation of their terms, it can be very hard for a farmer to prove that he or she has been aggrieved, giving them little recourse.
- The new rules do not guarantee any minimum price for any product, and farmers worry that the existing MSP will be abolished at some point.
How the government should deal with protesting farmers?
There is a gross communication failure on the part of the central government to explain to farmers what these laws are, and how they are intended to benefit them.
- The apprehension about MSP and procurement going away comes from Acts being linked to some previous policy documents like the Shanta Kumar Committee report and the CACP reports suggesting reduced procurement and an end to open-ended procurement from states like Punjab to cut down costs of FCI.
- It is feared that FCI itself may start procuring directly from the new trade area to cut down buying costs like market fees and arhtiya commission.
- It is more about the changes in the “social contract” between the state’s farmers and the Union government that is the root cause of this apprehension.
The government should address these concerns first.
Prelims Link:
- What are APMCs? How they are regulated?
- Overview of Model Contract farming act.
- The price range fluctuation allowed in the Essential Commodities (Amendment) Bill, 2020.
- Stock limit regulation under the Essential Commodities (Amendment) Bill, 2020 will not be applicable for?
- Other key Provisions of the bills.
Mains Link:
Do you think the reforms proposed for agricultural sector under the realm of Aatmanirbhar Bharat Abhiyaan ensure better price realization for farmers? Elucidate.
Sources: Indian Express.
| english |
<reponame>BlenderAddonsArchive/material-combiner-addon
import os
import sys
from subprocess import call
import bpy
from .. import globs
class InstallPIL(bpy.types.Operator):
bl_idname = 'smc.get_pillow'
bl_label = 'Install PIL'
bl_description = 'Click to install Pillow. This could take a while and might require you to start Blender as admin'
def execute(self, context):
python_executable = bpy.app.binary_path_python if bpy.app.version < (3, 0, 0) else sys.executable
try:
import pip
try:
from PIL import Image, ImageChops
except ImportError:
call([python_executable, '-m', 'pip', 'install', 'Pillow', '--user', '--upgrade'], shell=True)
except ImportError:
call([python_executable, os.path.join(os.path.dirname(os.path.abspath(__file__)), 'get_pip.py'),
'--user'], shell=True)
call([python_executable, '-m', 'pip', 'install', 'Pillow', '--user', '--upgrade'], shell=True)
globs.smc_pi = True
self.report({'INFO'}, 'Installation complete')
return {'FINISHED'}
| python |
//! slothjs - a naïve, primitive, savage Javascript interpreter library.
//!
//! ## Usage and main data types
//! slothjs does not contains a lexical Javascript parser: an AST tree must be supplied in
//! [ESTree-compatible format](https://github.com/estree/estree/blob/master/es5.md). For example:
//! ```
//! use slothjs::*;
//!
//! // Javascript: "2 + 2"
//! let source = r#"{
//! "type": "Program",
//! "body": [
//! {
//! "type": "ExpressionStatement",
//! "expression": {
//! "type": "BinaryExpression",
//! "operator": "+",
//! "left": { "type": "Literal", "value": 2 },
//! "right": { "type": "Literal", "value": 2 }
//! }
//! }
//! ]
//! }"#;
//! let estree: JSON = serde_json::from_str(source).expect("JSON error");
//! ```
//!
//! Access to ESTree nodes is provided by implementing the [`SourceNode`] trait;
//! a reference implementation is provided for `slothjs::JSON` (an alias for `serde_json::Value`):
//! ```
//! # use slothjs::*;
//! # let source = r#"
//! # { "type": "Program", "body": [
//! # { "type": "ExpressionStatement", "expression": {
//! # "type": "BinaryExpression", "operator": "+",
//! # "left": { "type": "Literal", "value": 2 },
//! # "right": { "type": "Literal", "value": 2 } } } ] }
//! # "#;
//! # let estree: JSON = serde_json::from_str(source).expect("JSON error");
//! let program = Program::parse_from(&estree).expect("ESTree error");
//! ```
//!
//! To run a [`Program`], create a [`Heap`] (it's roughly a vector of
//! [`JSObject`]s with its indexes encapsulated in [`JSRef`]s) and interpret
//! the `program` on this `heap`:
//! ```
//! # use slothjs::*;
//! # let source = r#"
//! # { "type": "Program", "body": [
//! # { "type": "ExpressionStatement", "expression": {
//! # "type": "BinaryExpression", "operator": "+",
//! # "left": { "type": "Literal", "value": 2 },
//! # "right": { "type": "Literal", "value": 2 } } } ] }
//! # "#;
//! # let estree: JSON = serde_json::from_str(source).expect("JSON error");
//! # let program = Program::parse_from(&estree).expect("ESTree error");
//! // builtin objects like Object, String, etc, are initialized here:
//! let mut heap = Heap::new();
//!
//! let result: Interpreted = match program.interpret(&mut heap) {
//! Ok(result) => result,
//! Err(exc) => {
//! eprintln!("Exception: {:?}", exc);
//! return;
//! }
//! };
//! ```
//!
//! A value of type [`Interpreted`] is usually a wrapper for a [`JSValue`],
//! although it might represent an object member that does not exist yet (which evaluates to
//! `JSValue::Undefined` when reading):
//! ```
//! # use slothjs::*;
//! # use slothjs::interpret::Interpretable;
//! # let source = r#"
//! # { "type": "Program", "body": [
//! # { "type": "ExpressionStatement", "expression": {
//! # "type": "BinaryExpression", "operator": "+",
//! # "left": { "type": "Literal", "value": 2 },
//! # "right": { "type": "Literal", "value": 2 } } } ] }
//! # "#;
//! # let estree: JSON = serde_json::from_str(source).expect("JSON error");
//! # let program = Program::parse_from(&estree).expect("ESTree error");
//! # let mut heap = Heap::new();
//! # let result = program.interpret(&mut heap).expect("interpret()");
//! let value = result.to_value(&heap).expect("JSValue");
//! assert_eq!(value, JSValue::Number(4.0));
//!
//! let output = value.to_string(&mut heap).unwrap();
//! println!("Evaluation result: {}", &output);
//!
//! ```
//!
//! ## More about objects
//!
//! [`JSObject`] contains:
//! - a [`JSRef`] to its prototype object
//! - optionally an [`object::ObjectValue`] encapsulatng a primitive value,
//! or a [`function::VMCall`]/[`function::Closure`], or an optimized object storage
//! (e.g. [`object::JSArray`])
//! - a hashmap from `String` keys to [`object::Property`]
//!
//! Each [`object::Property`] consists of:
//! - [`object::Access`] that determines if property is enumerable, writable, configurable;
//! - [`object::Content`] that encapsulates a way to get and/or set a [`JSValue`].
//!
//!
//! ## Functions and closures
//!
//! An example of calling a Javascript closure from Rust using [`Heap::execute`]:
//!
//! ```
//! use slothjs::*;
//!
//! // function zoom(size) { return 1.1 * size; }
//! let estree: JSON = serde_json::from_str(r#"{
//! "type": "Program",
//! "body": [{
//! "type": "FunctionDeclaration",
//! "id": { "type": "Identifier", "name": "zoom" },
//! "params": [{"type": "Identifier", "name": "size"}],
//! "body": {
//! "type": "BlockStatement",
//! "body": [{
//! "type": "ReturnStatement",
//! "argument": {
//! "type": "BinaryExpression",
//! "operator": "*",
//! "left": { "type": "Literal", "value": 1.1 },
//! "right": { "type": "Identifier", "name": "size" }
//! }
//! }]
//! }
//! }]
//! }"#).expect("JSON");
//! let zoom_decl = Program::parse_from(&estree).expect("ESTree");
//!
//! let mut heap = Heap::new();
//!
//! // Create a function object for `zoom`:
//! zoom_decl.interpret(&mut heap).unwrap();
//!
//! // Get a reference to the `zoom` function object:
//! let zoomref: JSRef = heap
//! .lookup_path(&["zoom"]) // or `&["global", "zoom"]` for `global.zoom`
//! .expect("zoom function") // : Interpreted
//! .to_ref(&heap).expect("reference");
//!
//! // Finally, call `zoom(10)`:
//! let result: Interpreted = heap.execute(zoomref, function::CallContext{
//! this_ref: Heap::GLOBAL,
//! method_name: String::from("zoom"), // TODO: get zoom.name
//! arguments: vec![Interpreted::from(10.0)],
//! loc: None,
//! }).expect("call result");
//!
//! let result: JSValue = result.to_value(&heap).unwrap();
//! assert_eq!(result, JSValue::Number(11.0));
//! ```
//!
//! ## What it can do?
//! See [src/test.rs](../src/slothjs/test.rs.html), all uncommented tests in there should work.
//!
//! ## What is not done yet?
//! - garbage collection;
//! - any kind of meaningful performance optimization;
pub mod ast;
mod builtin;
pub mod error;
pub mod function;
pub mod heap;
pub mod interpret;
pub mod object;
mod parse;
pub mod source;
#[cfg(test)]
#[rustfmt::skip]
mod test;
pub use ast::Program;
pub use error::Exception;
pub use function::CallContext;
pub use heap::{
Heap,
JSRef,
};
pub use interpret::Interpretable;
pub use object::{
Interpreted,
JSObject,
JSValue,
JSON,
};
pub use parse::{
HeapNode,
SourceNode,
};
| rust |
<reponame>ErnieAllen/dispatch-management
{
"_args": [
[
{
"raw": "dispatch-management@^0.1.0",
"scope": null,
"escapedName": "dispatch-management",
"name": "dispatch-management",
"rawSpec": "^0.1.0",
"spec": ">=0.1.0 <0.2.0",
"type": "range"
},
"/home/eallen/workspace/qpid-dispatch/console/stand-alone"
],
[
{
"raw": "dispatch-management@^0.1.0",
"scope": null,
"escapedName": "dispatch-management",
"name": "dispatch-management",
"rawSpec": "^0.1.0",
"spec": ">=0.1.0 <0.2.0",
"type": "range"
},
"/home/eallen/workspace/qpid-dispatch/console/stand-alone"
]
],
"_from": "dispatch-management@^0.1.0",
"_id": "dispatch-management@0.1.13",
"_inCache": true,
"_location": "/dispatch-management",
"_nodeVersion": "6.12.0",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/dispatch-management-0.1.13.tgz_1512741345665_0.6826986344531178"
},
"_npmUser": {
"name": "ernest.allen",
"email": "<EMAIL>"
},
"_npmVersion": "3.10.10",
"_phantomChildren": {},
"_requested": {
"raw": "dispatch-management@^0.1.0",
"scope": null,
"escapedName": "dispatch-management",
"name": "dispatch-management",
"rawSpec": "^0.1.0",
"spec": ">=0.1.0 <0.2.0",
"type": "range"
},
"_requiredBy": [
"/"
],
"_resolved": "https://registry.npmjs.org/dispatch-management/-/dispatch-management-0.1.13.tgz",
"_shasum": "5afdcf490ade01a988134d521042e3367a1084e9",
"_shrinkwrap": null,
"_spec": "dispatch-management@^0.1.0",
"_where": "/home/eallen/workspace/qpid-dispatch/console/stand-alone",
"author": {
"name": "RedHat"
},
"bugs": {
"url": "https://github.com/ErnieAllen/dispatch-management/issues"
},
"dependencies": {
"d3-queue": "^3.0.7"
},
"description": "wrapper for rhea to manage a dispatch router",
"devDependencies": {
"browserify": "",
"uglify-js": ""
},
"directories": {},
"dist": {
"shasum": "5afdcf490ade01a988134d521042e3367a1084e9",
"tarball": "https://registry.npmjs.org/dispatch-management/-/dispatch-management-0.1.13.tgz"
},
"gitHead": "d12653ca14f0191e90c9724102902e45b3095cac",
"homepage": "http://github.com/ErnieAllen/dispatch-management",
"keywords": [
"rhea",
"dispatch",
"management"
],
"license": "Apache-2.0",
"main": "management.js",
"maintainers": [
{
"name": "ernest.allen",
"email": "<EMAIL>"
}
],
"name": "dispatch-management",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/ErnieAllen/dispatch-management.git"
},
"scripts": {
"browserify": "browserify -r .:dispatch-management -o dist/dispatch-management.js",
"uglify": "uglifyjs --source-map --output dist/dispatch-management.min.js dist/dispatch-management.js"
},
"version": "0.1.23"
}
| json |
India did a great job in putting together the recommendations of everyone and giving everyone the chance to collaborate and share their suggestions, Prince of Saudi Arabia Fahad Bin Mansour Bin Nasser Bin Abdulaziz Al-Saud said at the G20-StartUp20 Engagement Group meeting in Goa on Sunday.
He said that it is high time we need to have awareness about startups, and entrepreneurs' contribution to the economy and the support that they need.
"Our presence today is to learn from the best practices of other nations. We believe that the Indians did a great job in putting together the recommendations and giving everyone the chance to collaborate and share their suggestions and recommendations," Mr Al Saud told ANI.
"We have had a fruitful and smooth discussion that led us to where we are today," he added.
Responding to a question on how is the ecosystem back in Saudi Arabia, the Saudi Arabian Prince said that there is a lot to be said about that. "There is a lot to be said but if would like to focus on remaining things. . . today, whenever you need support an ecosystem it has to be done from all sides. The Government side, the public sector, the private sector as well as the society. So you need to have a lot of awareness about the startups, and entrepreneurs' contribution to the economy and the support they need," he said.
"I think that if all the parts are aware, and they are putting in the efforts, this would lead to great results and that's what happened in Saudi," he told ANI.
On the first day of the summit on June 3, over 250 national and international delegates attended Startup20 Goa Sankalpana and around 40 startups from throughout the country displayed their unique products. The Startup20 Engagement Group of the G20 kicked off its third meeting, the Goa Sankalpana, with an atmosphere of unwavering energy and determination today in Goa.
The day began with the much anticipated Policy Communique, which was followed by a series of riveting seminars and presentations that drove the discourse on startup innovation and collaboration, an official statement said.
(Except for the headline, this story has not been edited by NDTV staff and is published from a syndicated feed. ) | english |
<reponame>gmit-amp-res/amp
package ie.gmit.bio.kmer.metrics;
import java.util.Comparator;
import ie.gmit.bio.kmer.*;
public class OutOfPlaceMetric implements KmerMetrics{
private static final long serialVersionUID = 777L;
private int top = 0;
public OutOfPlaceMetric(int top) {
super();
this.top = top;
}
@Override
public double getDistance(long[] seeds, KmerHashMap query, KmerHashMap subject) {
double distance = 0;
//Get the top n query k-mers in descending order
KmerFrequency[] qf = query.getSortedKmerFrequencies(top);
KmerFrequency[] sf = subject.getSortedKmerFrequencies(top);
for (int rank = 0; rank < qf.length; rank++) { //Iterate over them
distance += getKmerIndex(seeds, qf[rank].key(), sf) - rank;
}
//NB: scale the distance in proportion to the size of the subject db
return (distance / Double.valueOf(subject.size()));
}
private int getKmerIndex(long[] seeds, long query, KmerFrequency[] kmers) {
for (int rank = 0; rank < kmers.length; rank++) {
for (long seed : seeds) {
long q = query & seed;
long s = kmers[rank].key() & seed;
if (s == q) return rank;
}
}
return kmers.length + 1;
}
@Override
public Comparator<ClassifierResult> getResultComparator() {
return (n, m) -> Double.compare(Math.abs(n.metric()), Math.abs(m.metric()));
}
} | java |
The Amazing Spider-Man reboot is back with a second issue, and things are starting to get tense. Written by Zeb Wells, the art is provided by John Romita Jr. , who is one of Spider-Man's most iconic artists. The reboot here is done in part to celebrate Spider-Man's 60th anniversary.
The Amazing Spider-Man #2 picks up as Norman Osborn enlists Peter Parker for a baby sitting job. On the other hand, we have Tombstone prepping up for a gang war. While the issue can feel a bit light on the story, it gets quite tense in the end.
The Amazing Spider-Man #2 does run into a bit of a problem. There isn't much going on in the plot over here. After a story heavy first issue, the plot here felt a bit of a step back. By the time it actually started to get interesting, the comic was at its end. That was a bit of a disappointment.
There is also the setup of Mary Jane here that is not touched upon at all. So those expecting to see that plot line being carried forward, will be a bit disappoined.
Hopefully, the upcoming issues do so, because that's a very interesting plot thread, considering just how big a part his relationship with MJ is to the overall story.
The Amazing Spider-Man #2 does focus a lot on Tombstone though. Even more so than Spider-Man himself. He has quite the scene with his daughter at the beginning where he talks about how he doesn't want her to be involved in the fight, because the only way he knows how to solve things, is in an ugly way.
That one scene really spoke a lot about him, and seeing him in a more grounded way definitely helped his character development. The skirmish he has with Spider-Man at the end was quite entertaining as well, and he genuinely came off as quite threatening.
Norman Osborn makes an appearance here too, although details about his role in the story is still unknown. He talks about wanting to help Peter, but its manifestation is yet to be seen.
Peter's story on the other hand, like previously mentioned, doesn't really move ahead that much. However, by the end, he is captured by Tombstone, and it's certainly going to create for an interesting next issue of The Amazing Spider-Man.
The art by John Romita Jr. continues to impress, as the artist illustrates Spider-Man perfectly. The colours here are a bit muted, and it feels perfect for the story.
The Amazing Spider-Man #2 provides for a thin story, but creates some tense scenes. While there are plot threads that are left open, it makes up for it in the tense third act. | english |
/*
*
* Copyright (c) 2020 Project CHIP Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <cassert>
#include <cinttypes>
#include "pw_sys_io/sys_io.h"
#include <platform/FileHandle.h>
#include <platform/mbed_retarget.h>
using namespace mbed;
static FileHandle * console_in;
static FileHandle * console_out;
extern "C" void pw_sys_io_Init()
{
console_in = mbed_file_handle(STDIN_FILENO);
console_out = mbed_file_handle(STDOUT_FILENO);
}
namespace pw::sys_io {
Status ReadByte(std::byte * dest)
{
if (!dest)
{
return Status::InvalidArgument();
}
char c;
auto ret = console_in->read(&c, 1);
*dest = static_cast<std::byte>(c);
return ret != 1 ? Status::FailedPrecondition() : OkStatus();
}
Status WriteByte(std::byte b)
{
auto ret = console_out->write(reinterpret_cast<const char *>(&b), 1);
return ret != 1 ? Status::FailedPrecondition() : OkStatus();
}
// Writes a string using pw::sys_io, and add newline characters at the end.
StatusWithSize WriteLine(const std::string_view & s)
{
size_t chars_written = 0;
StatusWithSize result = WriteBytes(std::as_bytes(std::span(s)));
if (!result.ok())
{
return result;
}
chars_written += result.size();
// Write trailing newline.
result = WriteBytes(std::as_bytes(std::span("\r\n", 2)));
chars_written += result.size();
return StatusWithSize(result.status(), chars_written);
}
} // namespace pw::sys_io
| cpp |
<reponame>pizaranha/brnd
# brnd
An awesome boiler plate for your brandings assets
| markdown |
<gh_stars>1-10
{
"name": "@walrus/root",
"private": true,
"repository": "<EMAIL>:walrusjs/release.git",
"author": "wangxingkang <<EMAIL>>",
"license": "MIT",
"scripts": {
"commit": "commit",
"build": "lerna run build --stream",
"release": "node ./packages/cli/lib/index.js"
},
"devDependencies": {
"@walrus/cli-utils": "2.0.5",
"@walrus/commit": "1.2.2",
"@walrus/script-run": "1.2.1",
"lerna": "4.0.0",
"rimraf": "3.0.2",
"typescript": "4.5.4"
},
"workspaces": [
"packages/*"
]
}
| json |
Wednesday November 10, 2021,
Two-wheeler rental platform for electric vehicles (EVs)on Wednesday said it acquired Kustard Technologies — a UI/UX design studio and app development company — for $2 million.
According to a press statement, Kustard Technologies' acquisition will help eBikeGo build fleet management systems to aid in remote diagnostics of EVs to achieve preventative maintenance such as monitoring vehicle health, motor, battery, controller, etc.
Kustard Technologies has shown continuous growth throughout the three years after its inception, the statement noted.
Besides the acquisition, eBikeGo has also expanded its team by onboarding 20 skilled developers from the EV tech industry to contribute to the product, design, innovation, and UI and UX.
With the help of the newly acquired Kustard Technologies team, eBikeGo is working towards developing an IoT system, which will strengthen EBG Matics mobility devices, resulting in smarter and efficient fleets.
Speaking on the acquisition, Irfan Khan, Founder and CEO, eBikeGo, said,
According to Irfan, every year, around 25 million petrol two-wheelers are sold in India with EVs accounting for just 0.6 percent of the overall sales.
“One of the major reasons for this is that most electric two-wheeler vehicles today are not connected to IoT (Internet of Things), making the user devoid of a complete, dependable digital experience. eBikeGo's vision with this purchase is to transform electric vehicles into smart connected vehicles,” he said.
Launched in 2017, eBikeGo is present in seven Indian cities. It aims to bring on the road a fleet of 200,000 bikes in about 100 cities across India.
According to Javed Khatri, Founder and CEO, Kustard Technologies, the startup's merger with eBikeGo allows it to create a wide-scale impact, especially to help fight climate change.
| english |
<!DOCTYPE html>
<html>
<head>
<title>Direct Manipulation Animation – FÄMÉ – The Virtual Brain of Sir Edward Baird</title>
<meta charset="utf-8" />
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0'>
<meta name="description" content="Research by <NAME> & <NAME> 2006
" />
<meta property="og:description" content="Research by <NAME> & <NAME> 2006
" />
<meta name="author" content="FÄMÉ" />
<meta property="og:title" content="Direct Manipulation Animation" />
<meta property="twitter:title" content="Direct Manipulation Animation" />
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="/style.css" />
<link rel="alternate" type="application/rss+xml" title="FÄMÉ - The Virtual Brain of Sir Edward Baird" href="/feed.xml" />
<!-- Created with Jekyll Now - http://github.com/barryclark/jekyll-now -->
</head>
<body>
<div class="wrapper-masthead">
<div class="container">
<header class="masthead clearfix">
<a href="/" class="site-avatar"><img src="https://raw.githubusercontent.com/barryclark/jekyll-now/master/images/jekyll-logo.png" /></a>
<div class="site-info">
<h1 class="site-name"><a href="/">FÄMÉ</a></h1>
<p class="site-description">The Virtual Brain of Sir Edward Baird</p>
</div>
<nav>
<a href="/">Blog</a>
<a href="/about">About</a>
</nav>
</header>
</div>
</div>
<div id="main" role="main" class="container">
<article class="post">
<h1>Direct Manipulation Animation</h1>
<div class="entry">
<h2><a href="http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.91.6228&rep=rep1&type=pdf">Research by <NAME> & <NAME> 2006</a></h2>
<p>Issue: When forming mental models of systems, how do you support learner's understandings of structure, purpose and functional relations among system entities. </p>
<p>Can a specialized version of animation provide a superior pathway to knowledge acquistion?</p>
<h3>Purpose of Research</h3>
<p>Examine presentation formats -- narrative, image/visual, and animation to discover differences in learning systems.</p>
<h3>Secondary Goal</h3>
<p>Show that text, visuals, and animation in a cohesive setup ultimately promotes superior learning.</p>
<h3>Leads</h3>
<ul>
<li>Visuals aid printed word learning (Larkin & Simon, 1987; Mayer & Gallini, 1990; Tversky, 1995).</li>
<li>Complex interactivity and content can overburden learner's cognitive resources (Sweller et al., 1996).</li>
<li>Revisit and review the 3 pathways of learning and discussion on haptic learning consequences (above Fig. 1).</li>
</ul>
<h3>Key Term</h3>
<p>Direct-manipulation animation (DMA) allows direct interaction (e.g., sliders and buttons), which contrains viewing direction, content pacing, and system parameter relationships (Chan & Black, 2006). DMA in this study specifically pertains to the haptic learning pathway (see lead 3). </p>
<h3>Method</h3>
<p>Middle school students learning Newtonian mechanics (energy conversion and law of conversion of energy) in three conditions. Learners were given a pretest, retention test (written summary and diagram), "what-if" test (thought experiment: explain and predict), near-transfer task (apply learning to problem-solving tasks), and a far-transfer task (apply learning in novel situation).</p>
<h3>Conditions</h3>
<ul>
<li>Text based format (narrative).</li>
<li>Text and visual format.</li>
<li>Text and animation (DMA).</li>
</ul>
<p>The format of the learning significantly predicted performance. Format had an above medium <a href="http://www.uccs.edu/lbecker/effect-size.html">effect size</a> of .68. So DMA provided the best learning situation.</p>
<h3>As content became more complex, DMA improved performance in learner comphrension, what-if reasoning, problem-solving, and tranfser problems (Chan & Black, 2006).</h3>
<p>Again, DMA fosters concurrent sensorimotor feedback while investigating causal interactions and functional relations in the system of interest.</p>
<p>Ultimately, understanding functional relationships (parameter changes interacting with other parameters) is of prime importance when building effective mental models. The DMA condition, involving learning haptically, gave learners an advantage to reasoning and perfroming.</p>
</div>
<div class="date">
Written on January 18, 2016
</div>
</article>
</div>
<div class="wrapper-footer">
<div class="container">
<footer class="footer">
<a href="mailto:<EMAIL>"><i class="svg-icon email"></i></a>
<a href="https://www.twitter.com/VarjacTheobroma" target="_blank"><i class="svg-icon twitter"></i></a>
</footer>
</div>
</div>
</body>
</html>
| html |
The capital expenditure under Brihanmumbai Municipal Corporation is expected to reach Rs 20858. 87 crore in 2022-23.
Mumbai: The Brihanmumbai Municipal Corporation (BMC) presented its annual budget for the fiscal year 2023-24 on Saturday. For the first time in history, the civic body's budget estimate crossed Rs 50000 crores. The budget presented by Municipal Commissioner Iqbal Singh Chandal announced bigger allocations to key infra projects in the city, along with focusing on environment, health, sustainability and transparency.
The expenditure on capital projects which was Rs 12535. 47 crore in 2021-22 is now expected to reach Rs 20858. 87 crore in 2022-23.
Here are some major infrastructure projects in the city that received allocations in the BMC's budget for 2023-24.
The budget allocated Rs 3545 crores for the ambitious Coastal Road project in Mumbai, the 29. 2-kilometre-long road, that would run along the city's western coast connecting Marine Lines in the south to Kandivali in the north.
The budget documents state that the work of package I, II and IV of Coastal Road Project (South) is in progress and to date, 69 percent of the work has been completed.
Girgaon Chowpaty to Priyadarshini Park is completed by December 2022, the document states.
The budget also announced Modern Traffic Management systems for traffic control and safety in the Coastal Road Project. This system will include CCTV, Video management system, an Emergency communication system and an Instant communication system with Police and Fire Brigade etc. The Coastal Road can be monitored 24 X 7 through the said Traffic Control System.
The civic body further said they are determined to complete the project work in the financial year 2023-24. A total Budget Provision of Rs 2650 crore was proposed in 2022-23 and Rs 3545 crore in the Budget Estimate of 2023-24.
The budget allocated Rs 1,060 crore for the Goregaon-Mulund Link Road project, which is one of the most precious fourth major link connecting eastern and western suburbs. The GMLR project is being implemented in four phases.
Around 70 percent of the phase 1 and 65 percent of the Phase 2 has been completed.
A total budget provision of Rs 442 crore is proposed in 2022-23 and Rs 1060 crore in Budget Estimate 2023-24.
The GMLR ensures seamless connectivity from Western Express Highway at Goregaon in the Western suburb to Eastern Express Highway at Mulund in the Eastern suburb.
The budget allocated an additional Rs 22 crore to the construction of a 45 metre-wide elevated road from the link road to Dahisar (w) in BMC Limits to Mira Bhayander (W) in MBMC limits. The total estimated cost of the project is Rs 2000 crores.
The budget proposed to develop some of the prominent roads in the city. They are Lady Laxmibai Jagmohan Marg’ BG Kher Marg, Narayan Dabholkar Marg in City, Bhaskar Bhopi Road, Link Road in Western Suburb, MN Road, DP Road No. 9, BR Road and NB Patil Marg in Eastern Suburbs.
The BMC has allocated a token provision of Rs 200 crore for constructing footpath facilities for all major roads of more than 9 meter width and wherever a footpath is found to be absent or not in good shape. New CC footpaths with smooth walking quality and international surface designs will be constructed in fast-track mode.
Under the jurisdiction of the BMC, the work of demolition and re-construction of 14 bridges, major structural repairs of 9 bridges and minor repairs of 16 bridges is in progress. The major works include 1) the Demolition and reconstruction of the Railway Bridge (ROB) in Tilak Bridge in Dadar, 2) the Demolition and reconstruction of Over Bridge on Reay, and 3 ) the demolition and reconstruction of Byculla (East) Bridge.
A budget provision of RS 2100 crore is proposed in the Budget Estimate 2023-24. | english |
{"geometry": {"type": "Point", "coordinates": [-72.72, 41.61]}, "type": "Feature", "id": "06023", "properties": {"other_cities": "", "city": "East Berlin", "state": "CT", "county": "Hartford County"}} | json |
<filename>src/main/java/com/notably/model/suggestion/SuggestionItem.java
package com.notably.model.suggestion;
import java.util.Optional;
/**
* Represents the instance of the suggested item.
*/
public interface SuggestionItem {
/**
* Gets the property value of the SuggestionItem based on the key.
*
* @param key The key to a key-value mapping.
* @return The value of the mapping.
*/
Optional<String> getProperty(String key);
/**
* Executes the action taken after the suggestion item is chosen.
* The action will be different depending on the type of SuggestionGenerator.
*
* @return The action taken after the suggestion item is chosen.
*/
Runnable getAction();
}
| java |
<reponame>twerkmeister/table-segmenter
import argparse
from typing import Text
import os
import table_segmenter.model
import table_segmenter.io
import table_segmenter.preprocessing
import table_segmenter.metrics
import tensorflow
from tensorflow import keras
def load_data_for_training(data_path: Text):
"""Convenience method."""
image_names, images = table_segmenter.io.load_images(data_path)
targets = table_segmenter.io.load_targets(data_path, image_names)
original_image_shapes = [image.shape for image in images]
x = table_segmenter.preprocessing.preprocess_images(images)
x_augmented, augmented_targets = \
table_segmenter.preprocessing.augment_multi(x, targets, original_image_shapes)
y = table_segmenter.preprocessing.preprocess_targets(augmented_targets)
return x_augmented, y
def train(train_data_path: Text, val_data_path: Text, experiment_dir: Text):
tensorflow.compat.v1.disable_eager_execution()
# tensorflow.config.run_functions_eagerly(True)
os.makedirs(experiment_dir, exist_ok=True)
tensorboard_callback = keras.callbacks.TensorBoard(log_dir=experiment_dir)
early_stopping_callback = keras.callbacks.EarlyStopping("val_loss", patience=7,
verbose=1,
restore_best_weights=True)
print("Loading training data")
x_train, y_train = load_data_for_training(train_data_path)
print("Loading validation data")
x_val, y_val = load_data_for_training(val_data_path)
model = table_segmenter.model.build()
model.compile(loss=table_segmenter.metrics.combined_loss,
optimizer='adam',
# run_eagerly=True,
metrics=[table_segmenter.metrics.regression_mean_absolute_error,
table_segmenter.metrics.decision_accuracy,
table_segmenter.metrics.regression_mean_error,
table_segmenter.metrics.regression_error_stddev])
model.fit(x_train,
y_train,
validation_data=(x_val, y_val),
epochs=80,
batch_size=16,
verbose=True,
callbacks=[tensorboard_callback, early_stopping_callback])
model.save(experiment_dir)
# MAE evaluation
score = model.evaluate(x_val,
y_val,
batch_size=16,
verbose=True)
print("nTest MAE: %.1f%%" % (score[1]))
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='train the table segmenter.')
parser.add_argument("train_data_path",
help='Path to the training data folder.')
parser.add_argument("val_data_path",
help='Path to the validation data folder.')
parser.add_argument("experiment_folder",
help='Path to the output folder for the model and logs.')
args = parser.parse_args()
train(args.train_data_path, args.val_data_path, args.experiment_folder)
| python |
<reponame>monarc-project/monarc-objects
{"code": "1", "description": "", "label": "No screen locker/locking functionality is active", "mode": 0, "status": 1, "uuid": "69fbfdd6-4591-11e9-9173-0800277f0571"} | json |
<filename>question3_part2.py
def isgreaterthan20(number1,number2):
print(number1)
print(number2)
num=20
num1=10
isgreaterthan20(num,num1) | python |
{
"time_fct_id": 48,
"time_fct": "time_61345",
"affiliate_fct_id": 877,
"affiliate_fct": "Hessische Landesbibliothek Fulda (Fulda)",
"affiliate_fct_occurrence": 142,
"affiliates": [
{
"affiliate_fct_id": 877,
"affiliate_fct": "Hessische Landesbibliothek Fulda (Fulda)",
"affiliate_fct_occurrence": 142
}
]
} | json |
The minister came up with the information at a views exchange meeting with reporters on market monitoring at the ministry’s office.
He also warned that stern actions would be taken if anyone tries to destabilise market and take advantage of this situation and create artificial crisis.
“There’s enough rice reserve. So there’s no need for personal reserve for two or three months,” he said.
Government will not sit idle if businessmen or millers try to destabilise market. There is not only enough food reserve but also letter has been sent to millers as government will distribute them rice for open market sale (OMS).
At present, the government has reserve of 17.39 lakh metric tonnes of food grains which was 15.44 lakh metric tonnes last year, he added.
The minister said that real businessmen and millers should serve people.
He said the government will strengthen monitoring.
“There are 25 monitoring teams and the number will be increased if required. There are also monitoring cells of Commerce Ministry and Prime Minister,” he said.
When asked whether there will be any message to stop sale of excessive foods, he said. “Letters are being sent to home and commerce ministries, traders and FBCCI today,” he said.
“Exemplary punishment will be given if any unscrupulous businessman,” the minister said.
| english |
See [RuneScape:Crowdsourcing](https://oldschool.runescape.wiki/w/RuneScape:Crowdsourcing) on the OSRS Wiki for more details. | markdown |
{"0":"# calib_detected","1":"calib_psfCandidate","2":"calib_psfUsed","3":"calib_psfReserved","4":"flags_negative","5":"deblend_deblendedAsPsf","6":"deblend_tooManyPeaks","7":"deblend_parentTooBig","8":"deblend_masked","9":"deblend_skipped","10":"deblend_rampedTemplate","11":"deblend_patchedTemplate","12":"deblend_hasStrayFlux","13":"base_GaussianCentroid_flag","14":"base_GaussianCentroid_flag_noPeak","15":"base_GaussianCentroid_flag_resetToPeak","16":"base_NaiveCentroid_flag","17":"base_NaiveCentroid_flag_noCounts","18":"base_NaiveCentroid_flag_edge","19":"base_NaiveCentroid_flag_resetToPeak","20":"base_SdssCentroid_flag","21":"base_SdssCentroid_flag_edge","22":"base_SdssCentroid_flag_noSecondDerivative","23":"base_SdssCentroid_flag_almostNoSecondDerivative","24":"base_SdssCentroid_flag_notAtMaximum","25":"base_SdssCentroid_flag_resetToPeak","26":"base_SdssShape_flag","27":"base_SdssShape_flag_unweightedBad","28":"base_SdssShape_flag_unweighted","29":"base_SdssShape_flag_shift","30":"base_SdssShape_flag_maxIter","31":"base_SdssShape_flag_psf","32":"ext_shapeHSM_HsmPsfMoments_flag","33":"ext_shapeHSM_HsmPsfMoments_flag_no_pixels","34":"ext_shapeHSM_HsmPsfMoments_flag_not_contained","35":"ext_shapeHSM_HsmPsfMoments_flag_galsim","36":"ext_shapeHSM_HsmShapeRegauss_flag","37":"ext_shapeHSM_HsmShapeRegauss_flag_no_pixels","38":"ext_shapeHSM_HsmShapeRegauss_flag_not_contained","39":"ext_shapeHSM_HsmShapeRegauss_flag_parent_source","40":"ext_shapeHSM_HsmShapeRegauss_flag_galsim","41":"ext_shapeHSM_HsmSourceMoments_flag","42":"ext_shapeHSM_HsmSourceMoments_flag_no_pixels","43":"ext_shapeHSM_HsmSourceMoments_flag_not_contained","44":"ext_shapeHSM_HsmSourceMoments_flag_galsim","45":"base_CircularApertureFlux_3_0_flag","46":"base_CircularApertureFlux_3_0_flag_apertureTruncated","47":"base_CircularApertureFlux_3_0_flag_sincCoeffsTruncated","48":"base_CircularApertureFlux_4_5_flag","49":"base_CircularApertureFlux_4_5_flag_apertureTruncated","50":"base_CircularApertureFlux_4_5_flag_sincCoeffsTruncated","51":"base_CircularApertureFlux_6_0_flag","52":"base_CircularApertureFlux_6_0_flag_apertureTruncated","53":"base_CircularApertureFlux_6_0_flag_sincCoeffsTruncated","54":"base_CircularApertureFlux_9_0_flag","55":"base_CircularApertureFlux_9_0_flag_apertureTruncated","56":"base_CircularApertureFlux_9_0_flag_sincCoeffsTruncated","57":"base_CircularApertureFlux_12_0_flag","58":"base_CircularApertureFlux_12_0_flag_apertureTruncated","59":"base_CircularApertureFlux_17_0_flag","60":"base_CircularApertureFlux_17_0_flag_apertureTruncated","61":"base_CircularApertureFlux_25_0_flag","62":"base_CircularApertureFlux_25_0_flag_apertureTruncated","63":"base_CircularApertureFlux_35_0_flag","64":"base_CircularApertureFlux_35_0_flag_apertureTruncated","65":"base_CircularApertureFlux_50_0_flag","66":"base_CircularApertureFlux_50_0_flag_apertureTruncated","67":"base_CircularApertureFlux_70_0_flag","68":"base_CircularApertureFlux_70_0_flag_apertureTruncated","69":"base_GaussianFlux_flag","70":"base_PixelFlags_flag","71":"base_PixelFlags_flag_offimage","72":"base_PixelFlags_flag_edge","73":"base_PixelFlags_flag_interpolated","74":"base_PixelFlags_flag_saturated","75":"base_PixelFlags_flag_cr","76":"base_PixelFlags_flag_bad","77":"base_PixelFlags_flag_suspect","78":"base_PixelFlags_flag_interpolatedCenter","79":"base_PixelFlags_flag_saturatedCenter","80":"base_PixelFlags_flag_crCenter","81":"base_PixelFlags_flag_suspectCenter","82":"base_PsfFlux_flag","83":"base_PsfFlux_flag_noGoodPixels","84":"base_PsfFlux_flag_edge","85":"base_Variance_flag","86":"base_Variance_flag_emptyFootprint","87":"base_PsfFlux_flag_apCorr","88":"base_GaussianFlux_flag_apCorr","89":"base_ClassificationExtendedness_flag"} | json |
O praise ye Name of Jehovah,
Proclaim ye His glory abroad;
To stand in the house of our God.
O praise ye the Lord for His goodness;
’Tis pleasant His praises to sing;
His people, His chosen and precious,
Your praises with gratitude bring.
I know that the Lord is almighty,
Supreme in dominion is He,
In Heaven and in earth and the sea.
His hand guides the clouds in their courses,
The lightning flames forth at His will,
His sovereign designs to fulfill.
Great wonders and signs He displayed;
He smote all the first-born of Egypt,
Till Pharaoh made haste and obeyed.
Were smitten by God’s mighty hand;
Their riches He gave to His people,
And made them inherit the land.
Thy Name shall abide, O Jehovah,
Through all generations renowned;
The Lord is the Judge of His people,
His mercies forever abound.
Can speak not, nor hearken, nor see;
Like them shall their makers be helpless,
Unblest shall their worshippers be.
Ye people who worship Jehovah,
His praises with gladness proclaim;
His servants, and all ye that fear Him,
Sing praise to His glorious Name.
O Church of our God, sing His praises,
For with you and in you He dwells;
O sing hallelujahs before Him,
Whose glory all praises excels.
Terima kasih untuk bantuannya. Link sudah kami terima. Kami akan memprosesnya terlebih dahulu.
| english |
<filename>jsp/src/Servlets/SvtRegistro.java<gh_stars>1-10
package Servlets;
import Logica.*;
import Persistencia.ConexionDB;
import Persistencia.PersonaDao;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
/**
* Created by LEIDY on 17/10/2015.
*/
@WebServlet("/SvtRegistro")
public class SvtRegistro extends HttpServlet {
/**
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
String nombre=request.getParameter("nombres").toUpperCase();
int documento=Integer.parseInt(request.getParameter("documento"));
String clave=request.getParameter("contrasenia");
String clave2=request.getParameter("contrasenia2");
String tipoUsuario = request.getParameter("inlineRadioOptions");
ConexionDB conexionDB = new ConexionDB("root","");
PersonaDao personaDao = new PersonaDao();
Persona persona = new Persona(documento,nombre, TipoDocumento.Cedula, personaDao.conversionUsuario(tipoUsuario),
clave,rol.Usuario, EstadoPersona.ACTIVO);
Persona aux = personaDao.consultarPersona(documento); //primero busca si la persona no esta para agregarla
RequestDispatcher dispatcher = null;
if(aux == null){
if(clave.equals(clave2)){
persona.setTipoUsuario(TipoUsuario.NoAfiliado);
boolean agregar = personaDao.crearPersona(persona);
if(agregar){
request.setAttribute("persona", persona); //mandando el parametro para que sea accedido
request.setAttribute("personaCreada", "Usuario creado satisfactoriamente");
dispatcher = request.getRequestDispatcher("ReservarCabaniaUsuario.jsp");
dispatcher.forward(request, response);
}else{
request.setAttribute("personaCreada", "No se pudo completar la solicitud");
dispatcher = request.getRequestDispatcher("registrarse.jsp");
dispatcher.forward(request, response);
}
}
else {
request.setAttribute("personaCreada", "No se pudo completar la solicitud");
dispatcher = request.getRequestDispatcher("registrarse.jsp");
dispatcher.forward(request, response);
}
}
else{
if(aux.getContrasenia() == null && clave.equals(clave2)){
boolean actualizar = personaDao.actualizarPersona(aux.getCedula(),clave);
if(actualizar){
request.setAttribute("personaCreada", "Usuario creado satisfactoriamente");
request.setAttribute("persona", persona); //mandando el parametro para que sea accedido
if(aux.getRol().toString().equalsIgnoreCase("Administrador")||
aux.getRol().toString().equalsIgnoreCase("Funcionario")){
dispatcher = request.getRequestDispatcher("CrearCabania.jsp");
dispatcher.forward(request, response);
}
else{
dispatcher = request.getRequestDispatcher("ReservarCabaniaUsuario.jsp");
dispatcher.forward(request, response);
}
}
else{
request.setAttribute("personaCreada", "No se pudo completar la solicitud");
dispatcher = request.getRequestDispatcher("registrarse.jsp");
dispatcher.forward(request, response);
}
}
else{
if(aux.getContrasenia() != null &&
aux.getContrasenia().equals(clave)){
request.setAttribute("personaCreada", "Usuario creado satisfactoriamente");
request.setAttribute("persona", persona); //mandando el parametro para que sea accedido
dispatcher = request.getRequestDispatcher("ReservarCabaniaUsuario.jsp");
dispatcher.forward(request, response);
}
else{
dispatcher = request.getRequestDispatcher("index.jsp");
dispatcher.forward(request, response);
}
}
}
}
} | java |
<filename>web/src/app/modules/shared/components/presentation/iframe/iframe.component.ts
import { Component, Input, OnChanges, SimpleChanges } from '@angular/core';
import { IFrameView, View } from 'src/app/modules/shared/models/content';
@Component({
selector: 'app-iframe',
templateUrl: './iframe.component.html',
styleUrls: ['./iframe.component.scss'],
})
export class IFrameComponent implements OnChanges {
private v: IFrameView;
@Input() set view(v: View) {
this.v = v as IFrameView;
}
get view() {
return this.v;
}
url: string;
title: string;
constructor() {}
ngOnChanges(changes: SimpleChanges): void {
if (changes.view.currentValue) {
const view = changes.view.currentValue as IFrameView;
this.url = view.config.url;
this.title = view.config.title;
}
}
}
| typescript |
Congress MP and former Union minister P Chidambaram on Saturday reacted sharply on a billionaire philanthropist George Soros's comment in which he said the turmoil at Adani may open the door to a democratic revival in the country.
In another tweet, the Congress leader wrote," Ignore George Soros and listen to Nouriel Roubini. Roubini warned that India is "increasingly driven by large private conglomerates that can potentially hamper competition and kill new entrants" “Liberalisation was to usher in an open, competitive economy. The Modi government's policies have created oligopolies."
George Soros believes the turmoil at Gautam Adani's business empire may weaken Prime Minister Narendra Modi's hold on the government - a statement which was strongly countered by BJP as an attack on Indian democracy.
Adani group has been under severe pressure since the US short-seller Hindenburg Research on January 24, accused it of accounting fraud and stock manipulation, allegations that the conglomerate has denied as "malicious", "baseless" and a "calculated attack on India".
While listed companies of the group lost over USD 125 billion in market value in three weeks, opposition parties inside and outside Parliament attacked the BJP government for the meteoric rise of the ports-to-energy conglomerate. Stocks of most group firms have risen in the last couple of days.
Soros, in a speech at the Munich Security Conference on Thursday, said Modi would "have to answer questions" from foreign investors and Parliament on allegations the Adani group is facing.
Milestone Alert! Livemint tops charts as the fastest growing news website in the world 🌏 Click here to know more.
Unlock a world of Benefits! From insightful newsletters to real-time stock tracking, breaking news and a personalized newsfeed – it's all here, just a click away! Login Now!
| english |
<reponame>cli99/tvm<gh_stars>0
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/*!
* \file src/tir/ir/function.cc
* \brief The function data structure.
*/
#include <tvm/runtime/registry.h>
#include <tvm/tir/function.h>
#include <tvm/tir/op.h>
namespace tvm {
namespace tir {
// Get the function type of a PrimFunc
PrimFunc::PrimFunc(Array<tir::Var> params, Stmt body, Type ret_type,
Map<tir::Var, Buffer> buffer_map, DictAttrs attrs, Span span) {
// Assume void-return type for now
// TODO(tvm-team) consider type deduction from body.
if (!ret_type.defined()) {
ret_type = VoidType();
}
auto n = make_object<PrimFuncNode>();
n->params = std::move(params);
n->body = std::move(body);
n->ret_type = std::move(ret_type);
n->buffer_map = std::move(buffer_map);
n->attrs = std::move(attrs);
n->checked_type_ = n->func_type_annotation();
n->span = std::move(span);
data_ = std::move(n);
}
FuncType PrimFuncNode::func_type_annotation() const {
Array<Type> param_types;
for (auto param : this->params) {
param_types.push_back(GetType(param));
}
return FuncType(param_types, ret_type, {}, {});
}
TVM_REGISTER_NODE_TYPE(PrimFuncNode);
class TensorIntrinManager {
public:
Map<String, tir::TensorIntrin> reg;
static TensorIntrinManager* Global() {
static TensorIntrinManager* inst = new TensorIntrinManager();
return inst;
}
};
TensorIntrin::TensorIntrin(PrimFunc desc, PrimFunc impl) {
// Check the number of func var is equal
CHECK_EQ(desc->params.size(), impl->params.size())
<< "ValueError: The number of parameters of the description and the implementation of the "
"tensor intrinsic doesn't match.";
for (size_t i = 0; i < desc->params.size(); i++) {
CHECK(desc->params[i]->dtype.is_handle()) << "ValueError: Parameters of the description of the "
"tensor intrinsic should be handle only.";
CHECK(impl->params[i]->dtype.is_handle()) << "ValueError: Parameters of the implementation of "
"the tensor intrinsic should be handle only.";
}
ICHECK_EQ(desc->buffer_map.size(), impl->buffer_map.size());
ObjectPtr<TensorIntrinNode> n = make_object<TensorIntrinNode>();
n->desc = std::move(desc);
n->impl = std::move(impl);
data_ = std::move(n);
}
void TensorIntrin::Register(String name, TensorIntrin intrin) {
TensorIntrinManager* manager = TensorIntrinManager::Global();
CHECK_EQ(manager->reg.count(name), 0)
<< "ValueError: TensorIntrin '" << name << "' has already been registered";
manager->reg.Set(name, intrin);
}
TensorIntrin TensorIntrin::Get(String name) {
const TensorIntrinManager* manager = TensorIntrinManager::Global();
auto it = manager->reg.find(name);
CHECK(it != manager->reg.end()) << "ValueError: TensorIntrin '" << name << "' is not registered";
return manager->reg.at(name);
}
TVM_REGISTER_NODE_TYPE(TensorIntrinNode);
TVM_STATIC_IR_FUNCTOR(ReprPrinter, vtable)
.set_dispatch<PrimFuncNode>([](const ObjectRef& ref, ReprPrinter* p) {
// TODO(tvm-team) redirect to Text printer once we have a good text format.
auto* node = static_cast<const PrimFuncNode*>(ref.get());
p->stream << "PrimFunc(" << node->params << ") ";
if (node->attrs.defined()) {
p->stream << "attrs=" << node->attrs;
}
p->stream << " {\n";
p->indent += 2;
p->Print(node->body);
p->indent -= 2;
p->stream << "}\n";
});
TVM_REGISTER_GLOBAL("tir.PrimFunc")
.set_body_typed([](Array<tir::Var> params, Stmt body, Type ret_type,
Map<tir::Var, Buffer> buffer_map, DictAttrs attrs, Span span) {
return PrimFunc(params, body, ret_type, buffer_map, attrs, span);
});
TVM_REGISTER_GLOBAL("tir.TensorIntrin")
.set_body_typed([](PrimFunc desc_func, PrimFunc intrin_func) {
return TensorIntrin(desc_func, intrin_func);
});
TVM_REGISTER_GLOBAL("tir.TensorIntrinRegister").set_body_typed(TensorIntrin::Register);
TVM_REGISTER_GLOBAL("tir.TensorIntrinGet").set_body_typed(TensorIntrin::Get);
} // namespace tir
} // namespace tvm
| cpp |
<gh_stars>0
---
title: "产品动态"
date: 2020-02-28T10:08:56+09:00
collapsible: false
product:
- time: 2021-07-02 17:50:47
title: 消息中心全新改版
content: 新版消息中心支持用户自定义配置消息接收类型,可屏蔽不重要的消息通知。此外本次消息中心交互全面优化,提供更优体验。
url: /services/notification-center/manual/notify
tags:
- 新功能
- 体验优化
zone: 北京三区
- time: 2021-04-25 17:50:47
title: 消息中心新增webhook的消息通知方式
content: webhook是个开源的通知方式,用户可通过webhook自由选择的与第三方设计平台比如“钉钉”做消息对接,满足不同用户的通知方式。
url: /services/notification-center/manual/receiver
tags:
- 新功能
- 体验优化
zone: 北京三区
- time: 2020-08-15 17:50:47
title: 支持消息中心
content: 消息中心可以为用户提供系统消息的接收和管理,使用户可以及时快捷的接收消息,从而避免信息遗漏造成不必要的损失。
url: /services/notification-center/intro/introduction
tags:
- 新功能
- 体验优化
zone: 北京三区
---
<!-- 设置上述参数可生成产品动态页 -->
| markdown |
White nationalists and counter demonstrators have held rallies in two different Tennessee towns with one person being arrested.
The rallies were held in Shelbyville and Murfreesboro on Saturday and police arrested one “White Lives Matter” protester who was taking part in the demonstration.
In Shelbville, there were some 200 white supremacists but with nearly twice as many counter protesters countering them.
The white nationalists were carrying a Confederate flag and chanting for closed borders and deportations, while counter protesters played Martin Luther King Jr. 's "I Have a Dream. "
Counter protesters, at one point, shouted "Black Lives Matter" with white nationalists chanting "blood and soil. "
In Murfreesboro, around 600 people, with only about 30 white nationalists, rallied Church Street, one of the city's busiest corridors.
The counter protesters chanted "refugees are welcome here" and "this is what democracy looks like. "
In a speech to a group of white nationalists, the League of the South president Michael Hill said, "You're responsible for more damage in the past century than anybody else. "
"We are here to stake a claim to that which belongs to us," he said. "We will not give up until we won this fight. "
Meanwhile, Sen. Lamar Alexander, (R-Tenn. ), tweeted a statement, saying, "The views of the white nationalists, Nazis, white supremacists and the Klan are wrong, they are un-American, they are not welcome, and we need to be loud and clear about that. "
Police, in both cities, amanged to keep off the groups and that no injuries or damage were reported.
Attendees were required to pass through a checkpoint where they were searched. They were also pinned behind metal barricades.
In August, thousands of white supremacists, KKK members and neo-Nazis descended on Charlottesville for a “Unite the Right” rally.
The rally turned violent when a car plowed through a group of demonstrators, killing one counter-protester and injuring 19 others.
President Donald Trump first blamed the violence "on many sides", but after pressure against him piled up, he later declared that “racism is evil,” singling out white supremacists, neo-Nazis and Ku Klux Klan for the violent rally.
However, a day later he again returned to his highly criticized initial response. His remarks raised questions about his own personal views of racial tensions in the US, provoking bitter criticism from members of his own party. | english |
<reponame>Epiconcept-Paris/whiteboard
const fs = require('fs')
const model = require('./model')
exports.createWks = function(name,login,psw,url) {
return new Promise((resolve1,reject1) => {
return new Promise((resolve,reject)=>{
let path = '../data/fod/workspaces/' + name
console.log(path)
if (!fs.exists(path)){
fs.mkdir(path ,(err) => {
if (err) throw err;
console.log('The folder workspace has been saved!');
resolve(path)
})
}else{
console.log('file already exist')
}
}).then((path) => {
oDatasources = [{
'login':login
,'psw':psw
,'url':url
}]
jsonDatasource = JSON.stringify(oDatasources)
fs.writeFile(path + '/datasources.json', jsonDatasource, (err) => {
if (err) throw err;
console.log('The dataset.json has been saved!');
resolve1(path)
})
fs.mkdir(path +'/dataset', function(err){
if (err) console.log(err)
})
})
.catch((err)=>{
if(err) throw err
})
})
.catch((err)=>{
if(err) throw err
})
}
| javascript |
<filename>deployments/rsk/.migrations.json
{
"/BlinDEX/deploy/1_1_deploy_time_lock.ts": 1641131217,
"/BlinDEX/deploy/1_2_deploy_bdx_shares.ts": 1641131394,
"/BlinDEX/deploy/1_3_mint_bdx.ts": 1641131455,
"/BlinDEX/deploy/2_1_bd_pool_library.ts": 1641131491,
"/BlinDEX/deploy/2_2_euro_usd_stablecoins.ts": 1641133042,
"/BlinDEX/deploy/3_deploy_uniswap_helpers.ts": 1641133846,
"/BlinDEX/deploy/4_deploy_liquidity_pools.ts": 1641135093,
"/BlinDEX/deploy/5_1_deploy_vesting.ts": 1641135210,
"/BlinDEX/deploy/5_2_staking_rewards_distribution.ts": 1641135540,
"/BlinDEX/deploy/6_deploy_euro_usd_staking_rewards.ts": 1641137359,
"/BlinDEX/deploy/7_deploy_price_feeds.ts": 1641138877,
"/BlinDEX/deploy/8_deploy_updaterRSK.ts": 1641138962,
"/BlinDEX/deploy/9_add_bdus_xusd_pool.ts": 1644942655,
"/BlinDEX/deploy/10_1_gold_gbp_stablecoins.ts": 1650279727,
"/BlinDEX/deploy/10_2_deploy_gold_gbp_liquidity_pools.ts": 1650280170,
"/BlinDEX/deploy/10_3_deploy_gold_gbp_staking_rewards.ts": 1650280955,
"/BlinDEX/deploy/10_4_deploy_gold_gbp_price_feeds.ts": 1650282622,
"/BlinDEX/deploy/11_add_bdus_doc_pool.ts": 1652019391
} | json |
import time
from raspi_io import TVService
import raspi_io.utility as utility
if __name__ == "__main__":
tv = TVService(utility.scan_server()[0])
# Get status
print(tv.get_status())
# Get preferred mode
print(tv.get_preferred_mode())
# Get support modes
for group in (TVService.DMT, TVService.CEA):
for mode in tv.get_modes(group):
print(mode)
# Set explicit mode, 1440x90
tv.set_explicit(TVService.DMT, 47)
# Wait monitor respond
time.sleep(3)
# Set preferred mode
tv.set_preferred()
| python |
ATK Mohun Bagan coach Antonio Habas leaves nothing to chance. Every pass his team plays, every move a player makes and every position a defender takes on the football field is planned and rehearsed a number of times on the training pitch.
His players know exactly what they have to do during a game and often perform the task with impeccable efficiency. Yet not all about ATK Mohun Bagan is like clockwork. Habas, for all his methods, relies on a bit of magic to complete his jigsaw. This X-factor comes from their main man up front – Roy Krishna.
The Fijian transforms ATK Mohun Bagan from being a dull and boring side that not many would want to watch to a team everyone simply expects to win.
Krishna is lethal in front of goal. It’s not just the goal tallies across his career that would tell you that, but also his ability to spark into life in a flash in games where he has largely not been effective.
He is not a ninety-minute player, he deals in moments of quality that no one on the pitch at the time seems capable of producing. To add to that, he delivers the goods with great consistency.
In his career that has spanned over fourteen years, he almost averages a goal every two games.
Having come into the Indian Super League on the back of scoring 19 goals in 27 A-League matches, he has more than lived up to his reputation.
Since his arrival in India, no other player has a better goals-per-game ratio than Krishna.
If you consider the entire history of ISL, only FC Goa’s Ferran Corominas, who is the league’s all-time leading goalscorer, has a higher goals-per-game ratio than the Fijian.
Krishna is not someone who needs too many invitations to score and some of his goals this season have been a lesson in finishing. His movement and composure in the box is a joy to watch.
Only Mumbai City’s Adam Le Fondre has a better goal conversion rate than the Fijian this season among players who have played more than ten games.
What makes him an even more important asset for the Mariners is the percentage of their goals in which Krishna is involved in. The Fijian has scored 50% of the team’s total goals this season and has had a direct hand in 18 out of the 28 goals ATK Mohun Bagan have scored.
No other player in the ISL has been so valuable to their respective teams than what Krishna is for the Mariners.
The above numbers show just how phenomenal Krishna has been for the Mariners. To put it into more perspective, the Fijian has almost been as valuable to ATK Mohun Bagan as Adam le Fondre and Bartholomew Ogbeche combined have been for Mumbai City FC.
If Krishna’s goals were to be removed, the Mariners would have finished ten points lower and would have failed to make the semi-finals. His goals are as precious as gold for Antonio Habas’ side who have only lost three times across two seasons when Krishna has been on the scoresheet.
While critics may point at the lack of other goalscorers in the Mariners’ camp for Krishna’s contribution to appear higher, but he is the league’s top scorer and not just his team’s. But being top of the scoring charts while playing in a team that isn’t the most creative and has the lowest goal tally among the top four semi-finalists adds even more credit to his feat.
ATK Mohun Bagan’s attacking numbers may not tell the whole story this season, but Krishna has more to him than just his goalscoring skills.
Over the two seasons, it’s quite apparent that he makes those playing around him much better.
Last season David Williams, who almost played as a second striker with Krishna, had impressive returns. He scored seven goals and provided five assists as ATK won the ISL title.
This year, Habas has preferred Manvir Singh as Krishna’s strike partner and the Indian forward has produced his best-ever numbers in the ISL. In his first three seasons, Manvit had scored three goals and had a solitary assist to his name. However, this season alone the former FC Goa striker has scored five times and provided three assists.
“The likes of (Roy) Krishna, and (David) Williams, they are not only good players but good people,” ATK Mohun Bagan’s attacking midfielder Marcelinho told ISL media.
“On the field, everything’s too easy with them. They know where I’m running. When you have players like that playing with you, your job becomes easier,” he added.
This season Williams has been a peripheral figure in the team with Krishna very much taking the centre stage and he has led the Mariners frontline brilliantly.
Going into the semi-finals, no other player would be as important for their team’s hopes than Krishna would be for ATK Mohun Bagan. With goals likely to be at a premium in the tie against an in-form NorthEast United, the onus will be on Krishna to make the difference for his team again.
“I think that Roy is the same important player as last season. In the first few matches, he could not perform his best as he was without competitive football for six months. Now for me, he is the best player in the league,” said Habas.
His coach has set the standards for him with his words, and now it’s upto Krishna to live up to it. It’s unlikely to be something that will make him lose his sleep. After all, he’s the one-man show leading a well-oiled team. | english |
<reponame>ppgeneve/designPattern
package com.rxhui.designpattern.iterator;
/**
* @author ppgeneve
* @Description:
* @Date 2018/6/19 08:45
*/
interface Iterator<Item> {
Item next();
boolean hasNext();
}
class ConcreteIterator<Item> implements Iterator {
private Item[] items;
private int position = 0;
public ConcreteIterator(Item[] items) {
this.items = items;
}
@Override
public boolean hasNext() {
return position < items.length;
}
@Override
public Object next() {
return items[position++];
}
}
interface Aggregate {
Iterator createIterator();
}
class ConcreteAggregate implements Aggregate{
private Integer[] items;
public ConcreteAggregate() {
items = new Integer[10];
for (int i = 0; i < items.length; i ++) {
items[i] = i;
}
}
@Override
public Iterator createIterator() {
return new ConcreteIterator<Integer>(items);
}
}
public class IteratorExample {
public static void main(String[] args) {
Aggregate aggregate = new ConcreteAggregate();
Iterator<Integer> iterator = aggregate.createIterator();
while (iterator.hasNext()) {
System.out.println(iterator.next());
}
}
}
| java |
“This isn’t a feminist issue, stay in your lane!” – Everyone supporting the government’s position on JNU.
February 2016 has presented us with a tirade of contrasting opinions flying Left & Right. What constitutes nationalism? Is sloganeering against the nation-state to be tolerated? How many opposing opinions must one voice before being labelled an ‘anti-national terror sympathiser’? Are voices of dissent, by default, disrespectful of Army sacrifices?
The polarisation of political opinion over the JNU row has thrown up some extreme and absurd premises. Some of the logically fallacious arguments have ultimately led to the muddling up of a serious discussion.
One argument that stands out among the list of star-performers is that of silencing the opposition. Female professors within JNU as well as feminist voices of support from outside are being met with this unenlightened suggestion, “Shut up and focus on women’s rights“. It is almost as if logic and collective common-sense have been crucified, along with the students.
Jawaharlal Nehru University has been a bastion of Liberal-Leftist thinking since its inception. In adherence to its democratic principles, it has given space to opinions contrary to its own. A right-wing student body such as the ABVP – that draws its inspiration from the RSS – also finds a space on the JNU campus. The institution has a long history of producing luminaries in all levels of the public sphere – from governance to research and academia, from activism to social development. It is this rich legacy of plurality and a commitment to social justice that defines JNU culture.
Naturally, debates on prevailing social structures and systems of oppression hold a prominent place on campus. In this environment, class struggles, Dalit oppression, patriarchal structures, Adivasi rights, gender and sexual politics are routinely discussed and debated. Those 1020 acres of intellectual environment are a world within itself – teeming with academic opinion and student idealism.
Can feminism, then, be truly divorced from the ongoing movement at JNU?
Keep in mind that some of the leading faces of the struggle are women who identify as feminists. Shehla Rashid Shora, Nivedita Menon, Ayesha Kidwai and Kavita Krishnan are some of the prominent names that have become synonymous with the movement. Off-campus, the protests are joined by thousands of women against state repression. Online, a number of feminist blogs and websites have expressed solidarity with JNU.
All of this should be unsurprising to an observer who recognises the underlying intersectionality across social struggles of gender, class, caste, race and religion. In principle, JNU has fostered a feminist consciousness that has routinely criticised the patriarchal underpinnings of society. And when an overbearing State tries to subvert such an institution by outlawing dissent and seizing space, it is bound to face severe backlash.
This deliberate categorization of issues by people (often, privileged groups) into ‘relevant’ and ‘irrelevant’ is a disingenuous method to silence the opposition. “Do not concern yourself with this issue, you have nothing to do with it,” is reserved exclusively for those who don’t suit a particular dispensation. If feminists had, for example, supported the government’s actions in JNU – their opinion would be used to bolster the anti-JNU argument.
JNU signifies the coming together of peoples’ aspirations; those that do not find a voice in our nation’s routine affairs. The united voice of feminists has, therefore, been strongly in favour of JNU protestors – for the university signifies feminist debate and discussion in an increasingly misogynistic environment.
No amount of silencing will be able to divide the various voices that have come together and found a common ground in this movement. It is about time that people stopped trying to silence us.
| english |
The Samsung Galaxy A34 5G and Galaxy A54 5G will go on sale in India starting March 28 on Flipkart and Samsung e-Store, apart from major retail outlets. Notably, the brand launched the latest A-series smartphones globally on March 15 and then in India the next day. The new Galaxy A-series devices are the first to feature IP57 protection in this segment. Both Galaxy A34 and A54 also come with support for 5G networks. Here’s all you need to know about their pricing, availability, launch offers, and benefits.
Samsung is now hosting a Live Commerce event for the customers of the Galaxy A34 and Galaxy A54 on Samsung.com. Those buying these smartphones during the event will be eligible for a complimentary travel adapter of Rs 1,299. This offer is over and above the existing offers on the latest Galaxy A-series smartphones.
With these handsets, users can also purchase the Galaxy Buds Live worth Rs 5,999 for just Rs 999. Buyers can also avail of EMI financing across Samsung.com, Samsung exclusive and partner stores, and other online platforms.
The Samsung Galaxy A54 and Galaxy A34 will be up for purchase starting at noon on March 23. The above offers will be available to all buyers, regardless of which device they pick, till midnight on March 24, 2023.
The Samsung Galaxy A54 and Galaxy A34 feature a 6.6-inch and 6.4-inch sAMOLED screen, respectively, with a Full HD+ resolution and 120Hz refresh rate. The latter is powered by a MediaTek Dimensity 1080 chipset, whereas the former has got Exynos 1380 chipset built on the 5nm process at its core.
Coming to the optics, the latest Galaxy A-series smartphones are both equipped with a triple rear camera setup. The Galaxy A54 5G flaunts a primary 50MP sensor with OIS, a 12MP ultra-wide-angle sensor, and a 5MP macro sensor. It has a 32MP selfie camera under a punch-hole cutout.
On the other hand, the Samsung Galaxy A34 features a 48MP primary sensor with OIS. An 8MP ultra-wide-angle lens and a 5MP macro sensor accompany the sensor. The dewdrop notch on the front houses the 13MP selfie camera.
Both smartphones are powered by a 5,000mAh battery. They also come with support for 25W fast charging. Both smartphones run on OneUI 5.1 based on Android 13 out of the box.
What do you think about Galaxy A34 5G and A54 5G? Are you picking one of these? Let us know in the comment box below.
| english |
The controversy over appointment of Gopal Subramanium as judge of the Supreme Court took a new turn on Tuesday with the Chief Justice of India R. M. Lodha making it clear that segregation of his name was done “unilaterally” by the executive which he said was “not proper”.
“The first thing I had taken objection to was the segregation of Gopal Subramanium’s file unilaterally by the executive. It is not proper,” he said at a function here breaking his silence on the controversy that struck the new government within a month of its coming to power.
Justice Lodha asserted that independence of judiciary was of utmost importance to him and told the lawyers at the function that “don’t get the impression that independence of judiciary was compromised”.
“I promise 1. 2 billion people of India that independence of judiciary will not be compromised,” he said adding “I will be the first person to leave this chair if judiciary’s independence is compromised“.
He was speaking at a function to bid farewell to Justice B. S. Chauhan who demitted office today on attaining the age of superannuation.
Justice Lodha also expressed his disappointment over Subramanium going public with his grievances when he was abroad.
“I came back on June 28 and had a meeting with Subramanium asking him to reconsider (his decision to withdraw consent for being appointed as judge). He replied the next day with a six-line letter expressing his decision (withdrawal of his consent) that he cannot go back on it. Again after a few days when the Chief Justice talked to him once more, Subramanium reiterated his decision,” Justice Lodha said.
“On June 29 when he wrote a letter reiterating his position, I was left with no choice but to recall the proposal (recommending Subramanium’s name for appointment as judge),” the Chief Justice said.
Chief justice of Calcutta High Court Arun Mishra, Chief justice of Orissa High Court Adarsh Goel and eminent lawyer Rohinton Nariman were the other three names recommended by the collegium which the government accepted.
The three were later appointed as judges of the Supreme Court.
After Mr. Subramanium went public with his decision to withdraw consent, government made no public comments but Law Ministry sources had said the government had no doubts over his competence while there were issues of his “suitability” for the post. | english |
<filename>lib/Components/Toolbar/Desktop/toolbar.css
.root {
padding: 2rem;
border: 1px solid #c3c3c3;
border-radius: 1rem 0 0 1rem;
position: sticky;
top: 6rem;
} | css |
<reponame>JamesFrost/twitch-emoji<filename>dist/channels/fps_real.json<gh_stars>10-100
{"template":{"small":"https://static-cdn.jtvnw.net/emoticons/v1/{image_id}/1.0","medium":"https://static-cdn.jtvnw.net/emoticons/v1/{image_id}/2.0","large":"https://static-cdn.jtvnw.net/emoticons/v1/{image_id}/3.0"},"channels":{"fps_real":{"title":"FPS_ReaL","channel_id":81686688,"link":"http://twitch.tv/fps_real","desc":null,"plans":{"$4.99":"11847","$9.99":"49756","$24.99":"49757"},"id":"fps_real","first_seen":null,"badge":"https://static-cdn.jtvnw.net/badges/v1/7decbf2e-5d06-47f6-9c90-90c1ab13f09e/1","badge_starting":"https://static-cdn.jtvnw.net/badges/v1/7decbf2e-5d06-47f6-9c90-90c1ab13f09e/3","badge_3m":"https://static-cdn.jtvnw.net/badges/v1/1613d9c5-3d77-4455-8ec5-6fc604574983/3","badge_6m":"https://static-cdn.jtvnw.net/badges/v1/84d0391a-9499-4741-a67d-b4983e064653/3","badge_12m":"https://static-cdn.jtvnw.net/badges/v1/dbd966e7-50fe-4740-8a4c-3e5a207fd149/3","badge_24m":"https://static-cdn.jtvnw.net/badges/v1/8daf2622-a71b-4677-b60d-c30f77914541/3","badges":{"0":{"image_url_1x":"https://static-cdn.jtvnw.net/badges/v1/7decbf2e-5d06-47f6-9c90-90c1ab13f09e/1","image_url_2x":"https://static-cdn.jtvnw.net/badges/v1/7decbf2e-5d06-47f6-9c90-90c1ab13f09e/2","image_url_4x":"https://static-cdn.jtvnw.net/badges/v1/7decbf2e-5d06-47f6-9c90-90c1ab13f09e/3","description":"Subscriber","title":"Subscriber","click_action":"subscribe_to_channel","click_url":""},"3":{"image_url_1x":"https://static-cdn.jtvnw.net/badges/v1/1613d9c5-3d77-4455-8ec5-6fc604574983/1","image_url_2x":"https://static-cdn.jtvnw.net/badges/v1/1613d9c5-3d77-4455-8ec5-6fc604574983/2","image_url_4x":"https://static-cdn.jtvnw.net/badges/v1/1613d9c5-3d77-4455-8ec5-6fc604574983/3","description":"3-Month Subscriber","title":"3-Month Subscriber","click_action":"subscribe_to_channel","click_url":""},"6":{"image_url_1x":"https://static-cdn.jtvnw.net/badges/v1/84d0391a-9499-4741-a67d-b4983e064653/1","image_url_2x":"https://static-cdn.jtvnw.net/badges/v1/84d0391a-9499-4741-a67d-b4983e064653/2","image_url_4x":"https://static-cdn.jtvnw.net/badges/v1/84d0391a-9499-4741-a67d-b4983e064653/3","description":"6-Month Subscriber","title":"6-Month Subscriber","click_action":"subscribe_to_channel","click_url":""},"12":{"image_url_1x":"https://static-cdn.jtvnw.net/badges/v1/dbd966e7-50fe-4740-8a4c-3e5a207fd149/1","image_url_2x":"https://static-cdn.jtvnw.net/badges/v1/dbd966e7-50fe-4740-8a4c-3e5a207fd149/2","image_url_4x":"https://static-cdn.jtvnw.net/badges/v1/dbd966e7-50fe-4740-8a4c-3e5a207fd149/3","description":"1-Year Subscriber","title":"1-Year Subscriber","click_action":"subscribe_to_channel","click_url":""},"24":{"image_url_1x":"https://static-cdn.jtvnw.net/badges/v1/8daf2622-a71b-4677-b60d-c30f77914541/1","image_url_2x":"https://static-cdn.jtvnw.net/badges/v1/8daf2622-a71b-4677-b60d-c30f77914541/2","image_url_4x":"https://static-cdn.jtvnw.net/badges/v1/8daf2622-a71b-4677-b60d-c30f77914541/3","description":"2-Year Subscriber","title":"2-Year Subscriber","click_action":"subscribe_to_channel","click_url":""}},"bits_badges":null,"cheermote1":null,"cheermote100":null,"cheermote1000":null,"cheermote5000":null,"cheermote10000":null,"set":11847,"emotes":[{"code":"realkFeels","image_id":79062,"set":11847},{"code":"realkRage","image_id":78227,"set":11847},{"code":"realkLove","image_id":78236,"set":11847},{"code":"realkFp","image_id":78701,"set":11847},{"code":"realkHype","image_id":78727,"set":11847},{"code":"realkTen","image_id":81708,"set":11847}]}}}
| json |
Why you can trust TechRadar We spend hours testing every product or service we review, so you can be sure you’re buying the best. Find out more about how we test.
Despite the low price points, the entry level of the DSLR market is very important for building customer loyalty.
The new Canon EOS 1200D replaces the Canon 1100D and sits just below the ultra-small Canon 100D as the first camera in the line-up.
Rather than a major overhaul of its predecessor, the 1200D is more of a gentle upgrade, which in conjunction with the new app which is being launched for iOS and Android is designed to entice beginner users.
The app gives the user a walkthrough of the camera's key functions, as well as dishing out tips and advice on how to use it. There's also tutorials and inspirational challenges to get new users motivated with different ideas to try out.
Featuring an 18 million-pixel sensor, the camera has a Digic 4 image processor, which although not the most recent Canon imaging engine, has proven itself to be a decent performer in previous Canon models.
Aimed squarely at the entry-level user, it comes packed with several automatic modes, including Scene Recognition Auto and some Creative modes to give images a different look, something which may appeal to mobile phone and compact camera users.
On the back of the camera is a 460k dot resolution, three inch, screen, which is neither touch sensitive, articulating nor tilting. It is joined by an optical viewfinder which offers a 95% field of view.
Full HD video recording capability is included, which means that the whole Canon DSLR line-up now has the capacity to record high resolution movies. You can also take full manual control of video recording, which is nice to see an entry level model.
The 1200D goes up against the very successful Nikon D3XXX range, of which the Nikon D3300 is the latest model. Although both sit in the same position in each other's respective line-ups, the Canon, for now at least, is much cheaper.
Canon has given the 1200D an improved look and feel, bringing it more in line with something like the Canon 700D, which sits ahead of it in the line-up. The deep grip and textured coating give it a feel of quality, but also make it easy to hold, and even use one-handed if you feel so inclined.
As there is no touchscreen on the 1200D, unlike some of the other DSLRs in Canon's range, including the 100D and the 700D, every element of camera control is done via the physical buttons.
Despite it being an entry-level model, there are still a decent number of those buttons on the back of the camera, including dedicated buttons for white balance and sensitivity (ISO).
By pressing a button labelled as Q, you can quickly scroll to various settings displayed on the screen and change them using the scrolling dial. So, for instance, you can navigate to the metering setting, then scroll with the dial to change from general purpose to spot metering. It's quicker than diving into the main menu all the time, speeding up the general workflow of the camera.
To change the autofocus point – of which there are nine available – you need to press a dedicated button and using the four way navigational pad to move to the point you need. As there aren't dozens of points, this is a relatively quick process, but you can always focus and recompose if you are in a particular hurry.
Anyone who has ever used a Canon DSLR before will easily be at home here, while those who haven't shouldn't find it too difficult to pick up and get the most from it.
On top of the camera is a mode dial for quickly switching between the various exposure modes, including the several automatic and scene options which the camera offers.
Amy has been writing about cameras, photography and associated tech since 2009. Amy was once part of the photography testing team for Future Publishing working across TechRadar, Digital Camera, PhotoPlus, N Photo and Photography Week. For her photography, she has won awards and has been exhibited. She often partakes in unusual projects - including one intense year where she used a different camera every single day. Amy is currently the Features Editor at Amateur Photographer magazine, and in her increasingly little spare time works across a number of high-profile publications including Wired, Stuff, Digital Camera World, Expert Reviews, and just a little off-tangent, PetsRadar.
What is a hands on review?
Hands on reviews' are a journalist's first impressions of a piece of kit based on spending some time with it. It may be just a few moments, or a few hours. The important thing is we have been able to play with it ourselves and can give you some sense of what it's like to use, even if it's only an embryonic view. For more information, see TechRadar's Reviews Guarantee.
| english |
By Press Trust of India: From background characters to playing a corpse and even a ghost, Mukkabaaz"star Vineet Kumar says he has done all kind of roles in his career in the hope that these appearances will eventually translate into bigger parts.
It was a struggle for nearly two decades for the actor, who was first noticed with Anurag Kashyap's 2012 gangster drama Gangs of Wasseypur as Danish Khan and later got his due with the filmmaker's heartland boxing drama Mukkabaaz.
The actor said the blink-and-miss appearances never bothered him because the thought of not having work was more frightening.
"As an actor, if there's one thing that sends shivers down my spine, it's the absence of work. For a very long time, I didn't have any work. So I've done roles where I'm just standing in the background, in the hope that next time when I work with the same people, maybe I'll get a line, then a scene," Vineet told PTI in an interview.
The struggle to stay afloat in the city while chasing his acting dreams led Vineet to pick up everything that came his way.
"I've played a dead body in film and even a ghost on a TV show. I later identified myself by the kurta I was wearing in the scene. I had no money and you have to do what comes your way to survive in this city, to fulfill your larger dream. All these experiences, this journey helps you eventually as an actor. "
From playing a corpse to fighting zombies on Netflix’s horror series Betaal, life has come full circle for the talented artiste.
The show chronicles the story of officials who are hired to displace tribal villagers to make way for a new highway but unearth an old curse and an army of British soldier-zombies.
Vineet said he has a "lot of hunger" in him as an actor and finds himself constantly in search of roles which can take him on a journey he hasn't been on before.
"This gives me immense joy and it's now a part of my system. I don't say yes to a script quickly but if I do, I surrender completely. I never calculate how much hard work I have to put in.
"The key, for me, is to take up new work and not have even the reflection of your past performance in it. It's challenging but so much fun. In Betaal, you'll not see any resemblance to what I've done in the past. When you understand the nuances of your character, the rhythm, something fresh is born. "
Written and directed by Patrick Graham, who previously helmed the horror series Ghoul, Betaal is co-produced by Gaurav Verma, Shah Rukh Khan's Red Chillies Entertainment and Netflix. The show has Nikhil Mahajan as the co-director.
Betaal marks Viineet's second outing with Red Chillies and Netflix after Bard of Blood and said he was "blown away" when he read the script.
"I hadn't done anything in the horror space and had never worn uniform onscreen. The way the script was written, my character and his backstory was so interesting. His back story, which is dark and keeps haunting him, is very well flashed out and runs parallel to the current narrative.
"He faces a lot of internal battles along with the external and eventually faces his past, his demons. My directors helped me get exactly what they were looking for. It was such a fantastic experience," he added.
Ready to stream from May 24, Betaal will be the first series which Viineet has headlined and the actor said he's keenly awaiting the audience response.
"Every actor wants his work to reach a wider audience. A few years ago, no one had thought that an actor's work can travel to 190 countries, a lot more than a theatrical release. . . The fact that people of different cultures will watch something together is exciting. Betaal has a strong global appeal," he added. | english |
NAIROBI, Kenya, May 17 – IDEMIA Identity and Security France SAS, formerly known as OT Morpho, has formally filed a substantive Judicial Review motion at the High Court in Nairobi seeking to quash a recommendation by the National Assembly against the firm.
The filing of the motion earlier Friday follows the granting of leave to sue the National Assembly that was allowed by Justice John Mativo on Monday.
The Judicial Review application, the firm says, is based on the grounds that IDEMIA is a globally reputable firm that stands to suffer reputation and business loses arising from the National Assembly recommendations to the Directorate of Criminal Investigations (DCI) and the Office of the Director of Public Prosecutions (ODPP).
Late last month, the National Assembly recommended investigations against IDEMIA for allegedly flouting the Companies Act.
The recommendations, IDEMIA indicates, are against the Fair Administrative Act, as the supposed investigations and subsequent criminal prosecution by the DCI and ODPP are meant to justify a preconceived outcome – which unfair administrative action the Court must curtail.
Through lawyer Wilfred Lusi, IDEMIA acknowledges that it is the worldwide leader in police biometric systems as its biometric algorithms and solutions are used by more than 80 respected police forces around the world including the US’s Federal Bureau of Investigations(FBI), Interpol, Germany’s BKA, and numerous African countries such as Kenya, South Africa, Chad, Botswana or Ethiopia; and Governs its business, across the world including in Kenya, with the highest of standards of ethics and legal compliance.
IDEMIA in its court papers filed at the Nairobi’s Milimani Law Courts, says that the National Assembly recommendations were based on failure to register locally before doing business in Kenya, a requirement which was not a legal condition at the time it signed its contractual agreement with the IEBC in March 2017.
“The preceding notwithstanding, the Regulations operationalising the requirement for local registration by a foreign company was published by the Registrar of Companies on the 30th of June, 2017, under Legal Notice No 103 of 2017: whereas the subject contract between the IEBC and the ex-parte Applicant had been executed on the 31st of March, 2017: a whole three (3) months prior to the coming effect of this impugned law, and the 1st Respondent’s actions are a most unjust attempt at retrospective – indeed retrogressive – application of an undefined, vague and uncertain law and/or particulars of the law,” says the firm in papers filed in court.
The company has listed the National Assembly, the hon Speaker of the National Assembly and the clerk of the National Assembly as respondents.
The Director Public Prosecution, The Director, Criminal Investigations, IEBC is listed as interested parties.
The firm says it is not opposed to any investigations by any state agency or organ but says it contests unfair administrative action against it by the National Assembly without giving it fair hearing.
The company says it participated in an international open competitive tender and delivered on its mandate, and accuses National Assembly of engaging in political witch hunt.
The firm says while the National Assembly recommend investigations, it has on the other hand gone ahead and directed IEBC to recover the sum paid to it, which it claims shows that the house is working with a predetermined agenda.
The firm says it was never given prior and adequate notice of the nature of the allegations against it, failure to inform it for the reasons for the contemplated action, against it; and, was never given ample opportunity to defend itself or be heard on the allegations, obtain legal representation, review or appeal the decisions and or a formal communication of the decision to make such adverse recommendations against it thereof.
The firm, whose part of the money owed by IEBC is yet to be paid, asks the High Court to quash the decision by the National Assembly.
In its court papers, IDEMIA disclosed that it is a globally reputable company with more than 135 governmental customers (and growing) in civil identity solutions and currently serves clients in 180 countries. The firm further confirms that it is the global natural leader in the identity industry, combining the strongest customer references and project experience: with a global annual revenue of USD3 billion. | english |
<gh_stars>1-10
http://data.doremus.org/artist/c4e76db7-7794-3598-b44c-2e21783fe8ec
http://data.doremus.org/artist/cf9f3b7f-c754-3d28-9647-da1a6be91cca
http://data.doremus.org/artist/59331b3e-1782-31ce-aaa7-b45292de76fa
http://data.doremus.org/artist/e62170a4-4535-355b-8680-6f9c8aec280a
http://data.doremus.org/artist/bf81d93f-288f-3646-9b19-8d5aede66d17
http://data.doremus.org/artist/675e12eb-2388-3c49-8d25-a58d5e9c7ebd
http://data.doremus.org/artist/60b0fd45-145d-3689-9197-cab31fa3661f
http://data.doremus.org/artist/8011ff5e-16fc-3cde-a7a4-4ce71f846baf
http://data.doremus.org/artist/ac0c9808-7aff-35d7-9bcd-b503af4ea199
http://data.doremus.org/artist/141cacef-495f-3dc6-8aea-13d8103e99aa | json |
Low reproductive efficiency and inadequate health in cattle and buffaloes are one of the major problems in livestock production in India, resulting in poor economic returns to the livestock farmers. The deficiency and/or imbalance of micro and macronutrients is one of the important factors responsible for the low reproductive efficiency and health. As micronutrients are required in small quantities as compared to macronutrients, they can be supplemented more easily without affecting the existing feeding practices in the villages. The practice of mineral supplementation to animals is not regularly followed in most parts of India. Wherever it is practiced the mineral mixture is added to the compound feed without taking into account the mineral status of the area, leading to imbalances of minerals. Supplementation of area-specific minerals most deficient in that area or zone avoids antagonistic effects of excess levels of other minerals, thereby improving the bioavailability of micronutrients and could be a more practical and cost-effective approach. Technology Details:
A detailed study on the micronutrient status of soil, water, feed fodder and blood of dairy animals maintained mostly under stall feeding with seasonal grazing was carried out in ten agro-climatic zones of Karnataka in India by a team of scientists. The study on the mineral mapping of the state has revealed that the major deficiency is of calcium, phosphorus, copper, zinc and in some areas magnesium in the different zones surveyed. Based on this information area-specific mineral mixture comprising of the most deficient minerals with common salt as the base was prepared for different geographical areas of Karnataka. The technology was field-tested in adopted villages under Institute village linkage programme (IVLP). Area-specific mineral mixture was prepared and distributed to farmers having animals with reproductive problems like repeat breeding and anoestrus condition. The animals were supplemented with 40-50 g of mineral mixture per day mixed in either concentrate feed or homemade concentrate mixture (bran, oilseed cake, gram husk). Approximately 300 animals with reproductive problems were supplemented with area-specific mineral mixtures. Overall data revealed that in anoestrus category 70 percent of animals started cycling within 40 days of feeding the mineral mixture. Similarly, in post-partum anoestrus category, 80 percent of the animal stated cycling within 40 days of supplementation. Under repeat breeding category, 60% of animals conceived upon supplementation of the mineral mixture. Overall, 65% percent of the cattle having reproductive problem became pregnant within 70 days of the mineral mixture supplementation. All the animals supplemented showed improvement in general health and shine on the hair coat. The results clearly showed that if the mineral deficiency in dairy animals is ameliorated by supplementing mineral mixture formulated based on our research findings, majority of the reproductive problems in dairy animals can be corrected and the reproductive efficiency will be enhanced.
मवेशियों और भैंसों में कम प्रजनन क्षमता और अपर्याप्त स्वास्थ्य भारत में पशुधन उत्पादन में प्रमुख समस्याओं में से एक है, जिसके परिणामस्वरूप पशुधन किसानों को खराब आर्थिक लाभ मिलता है। सूक्ष्म और मैक्रोन्यूट्रिएंट्स की कमी और / या असंतुलन कम प्रजनन क्षमता और स्वास्थ्य के लिए जिम्मेदार महत्वपूर्ण कारकों में से एक है। मैक्रोन्यूट्रिएंट्स की तुलना में माइक्रोन्यूट्रिएंट्स कम मात्रा में आवश्यक होते हैं, उन्हें गांवों में मौजूदा खिला प्रथाओं को प्रभावित किए बिना अधिक आसानी से पूरक किया जा सकता है। भारत के अधिकांश हिस्सों में पशुओं के लिए खनिज पूरकता का पालन नियमित रूप से नहीं किया जाता है। जहां भी यह अभ्यास किया जाता है, खनिज मिश्रण को क्षेत्र की खनिज स्थिति को ध्यान में रखते हुए यौगिक फ़ीड में जोड़ा जाता है, जिससे खनिजों का असंतुलन होता है। उस क्षेत्र या क्षेत्र में क्षेत्र-विशेष खनिजों की अनुपूरक सबसे अधिक कमी अन्य खनिजों के अतिरिक्त स्तर के विरोधी प्रभावों से बचाती है, जिससे सूक्ष्म पोषक तत्वों की जैव उपलब्धता में सुधार होता है और यह अधिक व्यावहारिक और लागत प्रभावी दृष्टिकोण हो सकता है। प्रौद्योगिकी विवरण:
वैज्ञानिकों की एक टीम द्वारा भारत में कर्नाटक के दस कृषि-जलवायु क्षेत्रों में मौसमी चराई के साथ स्टाल खिला के तहत बनाए गए डेयरी पशुओं की मिट्टी, पानी, चारा चारा और रक्त की सूक्ष्म स्थिति पर एक विस्तृत अध्ययन किया गया। राज्य के खनिज मानचित्रण पर अध्ययन से पता चला है कि प्रमुख कमी कैल्शियम, फास्फोरस, तांबा, जस्ता की है और कुछ क्षेत्रों में मैग्नीशियम का सर्वेक्षण अलग-अलग क्षेत्रों में किया गया है। इस जानकारी के आधार पर क्षेत्र-विशिष्ट खनिज मिश्रण में आम नमक के साथ सबसे अधिक कमी वाले खनिज शामिल हैं क्योंकि आधार को कर्नाटक के विभिन्न भौगोलिक क्षेत्रों के लिए तैयार किया गया था। संस्थान गाँव लिंकेज कार्यक्रम (IVLP) के तहत गोद लिए गए गाँवों में इस तकनीक का क्षेत्र-परीक्षण किया गया। क्षेत्र-विशिष्ट खनिज मिश्रण तैयार करने और प्रजनन प्रजनन और एनोस्ट्रस स्थिति जैसी प्रजनन समस्याओं वाले किसानों को वितरित किया गया था। जानवरों को प्रति दिन 40-50 ग्राम खनिज मिश्रण के साथ पूरक आहार या घर पर केंद्रित मिश्रण (चोकर, तिलहन केक, चना भूसी) में मिलाया गया था। प्रजनन संबंधी समस्याओं वाले लगभग 300 जानवरों को क्षेत्र-विशिष्ट खनिज मिश्रण के साथ पूरक किया गया था। कुल मिलाकर डेटा से पता चला है कि एनोस्ट्रस श्रेणी में 70 प्रतिशत जानवरों ने खनिज मिश्रण खिलाने के 40 दिनों के भीतर साइकिल चलाना शुरू कर दिया। इसी तरह, पोस्ट-पार्टम एनोस्ट्रस श्रेणी में, पशु का 80 प्रतिशत अनुपूरण के 40 दिनों के भीतर साइकिल चलाने के लिए कहा जाता है। रिपीट ब्रीडिंग श्रेणी के तहत, 60% जानवरों ने खनिज मिश्रण के पूरक होने की कल्पना की। कुल मिलाकर, 65% प्रतिशत मवेशी प्रजनन समस्या वाले खनिज मिश्रण अनुपूरक के 70 दिनों के भीतर गर्भवती हो गए। पूरक सभी जानवरों ने सामान्य स्वास्थ्य में सुधार और बाल कोट पर चमक दिखाई। परिणामों ने स्पष्ट रूप से दिखाया कि यदि हमारे शोध निष्कर्षों के आधार पर तैयार किए गए खनिज मिश्रण के पूरक द्वारा डेयरी पशुओं में खनिज की कमी को पूरा किया जाता है, तो डेयरी पशुओं में अधिकांश प्रजनन समस्याओं को ठीक किया जा सकता है और प्रजनन क्षमता को बढ़ाया जाएगा।
| english |
package com.perye.dokit.controller;
import com.perye.dokit.aop.log.Log;
import com.perye.dokit.query.LogQueryCriteria;
import com.perye.dokit.service.LogService;
import com.perye.dokit.utils.SecurityUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.data.domain.Pageable;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
@RestController
@RequestMapping("/api/logs")
@Api(tags = "监控:日志管理")
public class LogController {
private final LogService logService;
public LogController(LogService logService) {
this.logService = logService;
}
@Log("导出数据")
@ApiOperation("导出数据")
@GetMapping(value = "/download")
@PreAuthorize("@dokit.check()")
public void download(HttpServletResponse response, LogQueryCriteria criteria) throws IOException {
if ("ERROR".equals(criteria.getLogType())) {
logService.downloadError(logService.queryAll(criteria), response);
} else {
logService.download(logService.queryAll(criteria), response);
}
}
@GetMapping
@ApiOperation("日志查询")
@PreAuthorize("@dokit.check()")
public ResponseEntity<Object> getLogs(LogQueryCriteria criteria, Pageable pageable){
criteria.setLogType("INFO");
return new ResponseEntity<>(logService.queryAll(criteria,pageable), HttpStatus.OK);
}
@GetMapping(value = "/user")
@ApiOperation("用户日志查询")
public ResponseEntity<Object> getUserLogs(LogQueryCriteria criteria, Pageable pageable){
criteria.setLogType("INFO");
criteria.setBlurry(SecurityUtils.getCurrentUsername());
return new ResponseEntity<>(logService.queryAllByUser(criteria,pageable), HttpStatus.OK);
}
@GetMapping(value = "/error")
@ApiOperation("错误日志查询")
@PreAuthorize("@dokit.check()")
public ResponseEntity<Object> getErrorLogs(LogQueryCriteria criteria, Pageable pageable){
criteria.setLogType("ERROR");
return new ResponseEntity<>(logService.queryAll(criteria,pageable), HttpStatus.OK);
}
@GetMapping(value = "/error/{id}")
@ApiOperation("日志异常详情查询")
@PreAuthorize("@dokit.check()")
public ResponseEntity<Object> getErrorLogs(@PathVariable Long id){
return new ResponseEntity<>(logService.findByErrDetail(id), HttpStatus.OK);
}
@DeleteMapping(value = "/del/error")
@Log("删除所有ERROR日志")
@ApiOperation("删除所有ERROR日志")
@PreAuthorize("@dokit.check()")
public ResponseEntity<Object> delAllByError(){
logService.delAllByError();
return new ResponseEntity<>(HttpStatus.OK);
}
@DeleteMapping(value = "/del/info")
@Log("删除所有INFO日志")
@ApiOperation("删除所有INFO日志")
@PreAuthorize("@dokit.check()")
public ResponseEntity<Object> delAllByInfo(){
logService.delAllByInfo();
return new ResponseEntity<>(HttpStatus.OK);
}
}
| java |
<filename>app/src/main/java/com/tam/advancedtwitter/fragments/HomeTimeLineFragment.java
package com.tam.advancedtwitter.fragments;
import android.os.Bundle;
import android.util.Log;
import android.widget.Toast;
import com.loopj.android.http.JsonHttpResponseHandler;
import com.tam.advancedtwitter.helpers.NetworkHelper;
import com.tam.advancedtwitter.models.Tweet;
import org.apache.http.Header;
import org.json.JSONArray;
import org.json.JSONObject;
public class HomeTimeLineFragment extends TweetsListFragment {
public static HomeTimeLineFragment newInstance(String screenName) {
HomeTimeLineFragment homeTimeLineFragment = new HomeTimeLineFragment();
Bundle bundle = new Bundle();
bundle.putString("screen_name", screenName);
homeTimeLineFragment.setArguments(bundle);
return homeTimeLineFragment;
}
@Override
public void getMoreData(long maxId, int totalItemsCount) {
try {
if (!NetworkHelper.isOnline()) {
Toast.makeText(getActivity(), "Cannot connect to Internet", Toast.LENGTH_SHORT).show();
return;
}
if (maxId == 0) {
tweetsAdapter.clear();
}
this.client.getHomeTimeline(maxId, new JsonHttpResponseHandler() {
@Override
public void onSuccess(int statusCode, Header[] headers, JSONArray response) {
Log.d(TAG, "onSuccess: " + response.toString());
newTweets = Tweet.fromJSONArray(response);
Log.d(TAG, "count list: " + String.valueOf(tweetArrayList.size()));
tweetsAdapter.addAll(newTweets);
swipeContainer.setRefreshing(false);
}
@Override
public void onFailure(int statusCode, Header[] headers, Throwable throwable, JSONObject errorResponse) {
Log.d(TAG, "onFailure: " + errorResponse.toString());
}
});
} catch (Exception ex) {
ex.printStackTrace();
}
}
// @Override
// public void onActivityResult(int requestCode, int resultCode, Intent data) {
// if (requestCode == CREATE_TWEET_CODE && resultCode == Activity.RESULT_OK) {
// User user = (User) Parcels.unwrap(data.getParcelableExtra("user"));
// String tweetContent = data.getStringExtra("tweetConent");
// final Tweet newTweet = new Tweet();
// newTweet.setUser(user);
// newTweet.setBody(tweetContent);
// postNewTweet(newTweet);
// }
// }
//
// @Override
// public void getDefaultTimeline() {
// this.maxId = 0;
// getMoreData(0, 25);
// }
//
// private void postNewTweet(final Tweet newTweet) {
// if (!NetworkHelper.isOnline()) {
// Toast.makeText(getActivity(), "Cannot connect to Internet", Toast.LENGTH_SHORT).show();
// return;
// }
// tweetArrayList.add(0, newTweet);
// tweetsAdapter.notifyItemInserted(0);
// rvTweets.smoothScrollToPosition(0);
// client.postNewTweet(newTweet.getBody(), new JsonHttpResponseHandler() {
// @Override
// public void onSuccess(int statusCode, Header[] headers, JSONObject response) {
// try {
// super.onSuccess(statusCode, headers, response);
// int previousTweetIndex = tweetArrayList.indexOf(newTweet);
// tweetArrayList.set(previousTweetIndex, Tweet.fromJson(response));
// tweetsAdapter.notifyItemChanged(previousTweetIndex);
// } catch (Exception ex) {
// ex.printStackTrace();
// }
// }
//
// @Override
// public void onFailure(int statusCode, Header[] headers, Throwable throwable, JSONObject errorResponse) {
// try {
// Log.d(TAG, "onFailure: " + errorResponse.toString());
// tweetArrayList.remove(0);
// tweetsAdapter.notifyItemRemoved(0);
// rvTweets.scrollToPosition(0);
// } catch (Exception ex) {
// ex.printStackTrace();
// }
// }
// });
// }
//
// @Override
// public void onActivityResult(int requestCode, int resultCode, Intent data) {
// if (requestCode == CREATE_TWEET_CODE && resultCode == Activity.RESULT_OK) {
// User user = (User) Parcels.unwrap(data.getParcelableExtra("user"));
// String tweetContent = data.getStringExtra("tweetConent");
// final Tweet newTweet = new Tweet();
// newTweet.setUser(user);
// newTweet.setBody(tweetContent);
// postNewTweet(newTweet);
// }
// }
}
| java |
package uk.gov.justice.hmpps.prison.executablespecification;
import io.cucumber.java.en.And;
import io.cucumber.java.en.Then;
import io.cucumber.java.en.When;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import uk.gov.justice.hmpps.prison.executablespecification.steps.BookingAppointmentSteps;
import java.time.LocalDate;
import java.time.LocalDateTime;
/**
* BDD step definitions for the Booking Appointments API endpoints:
* <ul>
* <li>/booking/{bookingId}/appointments</li>
* <li>/booking/{bookingId}/appointments/today</li>
* <li>/booking/{bookingId}/appointments/thisWeek</li>
* <li>/booking/{bookingId}/appointments/nextWeek</li>
* </ul>
*/
public class BookingAppointmentsStepDefinitions extends AbstractStepDefinitions {
@Autowired
private BookingAppointmentSteps bookingAppointments;
@When("^scheduled appointments are requested for an offender with booking id \"([^\"]*)\"$")
public void scheduledAppointmentsAreRequestedForAnOffenderWithBookingId(final String bookingId) throws Throwable {
bookingAppointments.getBookingAppointments(Long.valueOf(bookingId), null, null, null, null);
}
@Then("^response from booking appointments API is an empty list$")
public void responseIsAnEmptyList() throws Throwable {
bookingAppointments.verifyNoResourceRecordsReturned();
}
@Then("^resource not found response is received from booking appointments API$")
public void resourceNotFoundResponseIsReceivedFromBookingAppointmentsAPI() throws Throwable {
bookingAppointments.verifyResourceNotFound();
}
@Then("^\"([^\"]*)\" appointments are returned$")
public void appointmentsAreReturned(final String expectedCount) throws Throwable {
bookingAppointments.verifyResourceRecordsReturned(Long.valueOf(expectedCount));
}
@And("^booking id for all appointments is \"([^\"]*)\"$")
public void bookingIdForAllAppointmentsIs(final String expectedBookingId) throws Throwable {
bookingAppointments.verifyBookingId(Long.valueOf(expectedBookingId));
}
@And("^event class for all appointments is \"([^\"]*)\"$")
public void eventClassForAllAppointmentsIs(final String expectedEventClass) throws Throwable {
bookingAppointments.verifyEventClass(expectedEventClass);
}
@And("^event status for all appointments is \"([^\"]*)\"$")
public void eventStatusForAllAppointmentsIs(final String expectedEventStatus) throws Throwable {
bookingAppointments.verifyEventStatus(expectedEventStatus);
}
@And("^event type for all appointments is \"([^\"]*)\"$")
public void eventTypeForAllAppointmentsIs(final String expectedEventType) throws Throwable {
bookingAppointments.verifyEventType(expectedEventType);
}
@And("^event type description for all appointments is \"([^\"]*)\"$")
public void eventTypeDescriptionForAllAppointmentsIs(final String expectedEventTypeDescription) throws Throwable {
bookingAppointments.verifyEventTypeDescription(expectedEventTypeDescription);
}
@And("^event source for all appointments is \"([^\"]*)\"$")
public void eventSourceForAllAppointmentsIs(final String expectedEventSource) throws Throwable {
bookingAppointments.verifyEventSource(expectedEventSource);
}
@And("^event sub type for \"([^\"]*)\" returned appointment is \"([^\"]*)\"$")
public void eventSubTypeForReturnedAppointmentIs(final String ordinal, final String expectedEventSubType) throws Throwable {
bookingAppointments.verifyEventSubType(ord2idx(ordinal), expectedEventSubType);
}
@And("^event sub type description for \"([^\"]*)\" returned appointment is \"([^\"]*)\"$")
public void eventSubTypeDescriptionForReturnedAppointmentIs(final String ordinal, final String expectedEventSubTypeDescription) throws Throwable {
bookingAppointments.verifyEventSubTypeDescription(ord2idx(ordinal), expectedEventSubTypeDescription);
}
@And("^event date for \"([^\"]*)\" returned appointment is \"([^\"]*)\"$")
public void eventDateForReturnedAppointmentIs(final String ordinal, final String expectedEventDate) throws Throwable {
bookingAppointments.verifyEventDate(ord2idx(ordinal), expectedEventDate);
}
@And("^start time for \"([^\"]*)\" returned appointment is \"([^\"]*)\"$")
public void startTimeForReturnedAppointmentIs(final String ordinal, final String expectedStartTime) throws Throwable {
bookingAppointments.verifyStartTime(ord2idx(ordinal), expectedStartTime);
}
@And("^end time for \"([^\"]*)\" returned appointment is \"([^\"]*)\"$")
public void endTimeForReturnedAppointmentIs(final String ordinal, final String expectedEndTime) throws Throwable {
bookingAppointments.verifyEndTime(ord2idx(ordinal), expectedEndTime);
}
@And("^event location for \"([^\"]*)\" returned appointment is \"([^\"]*)\"$")
public void eventLocationForReturnedAppointmentIs(final String ordinal, final String expectedEventLocation) throws Throwable {
bookingAppointments.verifyEventLocation(ord2idx(ordinal), expectedEventLocation);
}
@And("^event source code for \"([^\"]*)\" returned appointment is \"([^\"]*)\"$")
public void eventSourceCodeForReturnedAppointmentIs(final String ordinal, final String expectedSourceCode) throws Throwable {
bookingAppointments.verifyEventSourceCode(ord2idx(ordinal), expectedSourceCode);
}
@And("^event source description for \"([^\"]*)\" returned appointment is \"([^\"]*)\"$")
public void eventSourceDescriptionForReturnedAppointmentIs(final String ordinal, final String expectedSourceDescription) throws Throwable {
bookingAppointments.verifyEventSourceDescription(ord2idx(ordinal), expectedSourceDescription);
}
@When("^scheduled appointments for current day are requested for an offender with booking id \"([^\"]*)\"$")
public void scheduledAppointmentsForCurrentDayAreRequestedForAnOffenderWithBookingId(final String bookingId) throws Throwable {
bookingAppointments.getBookingAppointmentsForCurrentDay(Long.valueOf(bookingId));
}
@When("^scheduled appointments for this week are requested for an offender with booking id \"([^\"]*)\"$")
public void scheduledAppointmentsForThisWeekAreRequestedForAnOffenderWithBookingId(final String bookingId) throws Throwable {
bookingAppointments.getBookingAppointmentsForThisWeek(Long.valueOf(bookingId));
}
@When("^scheduled appointments for next week are requested for an offender with booking id \"([^\"]*)\"$")
public void scheduledAppointmentsForNextWeekAreRequestedForAnOffenderWithBookingId(final String bookingId) throws Throwable {
bookingAppointments.getBookingAppointmentsForNextWeek(Long.valueOf(bookingId));
}
@When("^scheduled appointments from \"([^\"]*)\" are requested for an offender with booking id \"([^\"]*)\"$")
public void scheduledAppointmentsFromAreRequestedForAnOffenderWithBookingId(final String fromDate, final String bookingId) throws Throwable {
bookingAppointments.getBookingAppointments(Long.valueOf(bookingId), fromDate, null, null, null);
}
@When("^scheduled appointments to \"([^\"]*)\" are requested for an offender with booking id \"([^\"]*)\"$")
public void scheduledAppointmentsToAreRequestedForAnOffenderWithBookingId(final String toDate, final String bookingId) throws Throwable {
bookingAppointments.getBookingAppointments(Long.valueOf(bookingId), null, toDate, null, null);
}
@When("^scheduled appointments between \"([^\"]*)\" and \"([^\"]*)\" are requested for an offender with booking id \"([^\"]*)\"$")
public void scheduledAppointmentsBetweenAndAreRequestedForAnOffenderWithBookingId(final String fromDate, final String toDate, final String bookingId) throws Throwable {
bookingAppointments.getBookingAppointments(Long.valueOf(bookingId), fromDate, toDate, null, null);
}
@And("^\"([^\"]*)\" appointments in total are available$")
public void appointmentsInTotalAreAvailable(final String expectedTotal) throws Throwable {
bookingAppointments.verifyTotalResourceRecordsAvailable(Long.parseLong(expectedTotal));
}
@When("^scheduled appointments, sorted by \"([^\"]*)\" in \"([^\"]*)\" order, are requested for an offender with booking id \"([^\"]*)\"$")
public void scheduledAppointmentsSortedByInOrderAreRequestedForAnOffenderWithBookingId(final String sortFields, final String sortOrder, final String bookingId) throws Throwable {
bookingAppointments.getBookingAppointments(Long.valueOf(bookingId), null, null, sortFields, parseSortOrder(sortOrder));
}
@Then("^bad request response, with \"([^\"]*)\" message, is received from booking appointments API$")
public void badRequestResponseWithMessageIsReceivedFromBookingAppointmentsAPI(final String expectedUserMessage) throws Throwable {
bookingAppointments.verifyBadRequest(expectedUserMessage);
}
@When("^A medical appointment is created for an existing offender with booking id \"([^\"]*)\", tomorrow at \"([^\"]*)\", at location \"([^\"]*)\"")
public void appointmentIsCreated(final String bookingId, final String time, final String locationId) throws Throwable {
final var startDateTime = LocalDateTime.parse(LocalDate.now().plusDays(1).toString() + 'T' + time);
bookingAppointments.createAppointment(Long.valueOf(bookingId), "MEDE", startDateTime, Long.valueOf(locationId), "a comment");
}
@Then("^The appointment exists in the database$")
public void appointmentExists() throws Throwable {
bookingAppointments.verifyCreatedAppointment();
}
@When("^An appointment is created with an invalid comment$")
public void appointmentIsCreatedInThePast() throws Throwable {
bookingAppointments.createAppointment(-4L, "MEDE", LocalDateTime.now().plusDays(1), -29L, StringUtils.repeat("0123456789", 1000));
}
@When("^An appointment is created for an invalid type$")
public void appointmentIsCreatedInvalidType() throws Throwable {
bookingAppointments.createAppointment(-4L, "doesnotexist", LocalDateTime.now().plusDays(1), -29L, null);
}
@When("^An appointment is created for an invalid location$")
public void appointmentIsCreatedInvalidLocation() throws Throwable {
bookingAppointments.createAppointment(-4L, "MEDE", LocalDateTime.now().plusDays(1), -999L, null);
}
@When("^An appointment is created for an invalid booking id$")
public void appointmentIsCreatedInvalidBookingId() throws Throwable {
bookingAppointments.createAppointment(-999L, "MEDE", LocalDateTime.now().plusDays(1), -29L, null);
}
}
| java |
<gh_stars>100-1000
package com.example.demo.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import com.example.demo.entity.User;
public interface UserMapper {
//新增用户
@Insert("insert into user(name,age,password) value(#{name},#{age},#{password})")
@Options(useGeneratedKeys=true,keyColumn="id",keyProperty="id")
public void insert(User user);
//查找所有用户
@Select("select * from user")
public List<User> getAll();
//根据id查找用户
@Select("select * from user where id=#{id}")
public User getById(int id);
@Update("update user set name=#{name},age=#{age},password=#{password} where id=#{id}")
public boolean update(User user);
//根据id删除用户
@Delete("delete from user where id=#{id}")
public boolean deleteById(int id);
}
| java |
If you have been wondering about the link between vitamin D and type 2 diabetes, you may be onto something. People with prediabetes who take a vitamin D supplement may have a slightly lower risk of developing type 2 diabetes, according to new research.
A study published yesterday in the Annals of Internal Medicine have made these claims. Researchers, though, have cautioned people against vitamin D supplementation on their own i.e. you will still need to consult your doctor before taking supplements.
Scientists from Tufts University School of Medicine in Massachusetts conducted a meta-analysis and review of three separate clinical trials investigating the effects of vitamin D on the probability of developing type 2 diabetes.
Researchers sought out studies with adult participants who took 4,000 IU of vitamin D supplements and had a minimum three-year follow-up. In the end, there were 2,097 people who took the vitamin D supplements and 2,093 people who took the placebo.
On the days of the trials:
- About 22 percent (475 people) of the vitamin D group were newly diagnosed with diabetes.
- About 25%, or 524 people, in the placebo group were diagnosed with diabetes for the first time.
- With these numbers in hand, the researchers concluded that those who took vitamin D supplements had a 15% lower risk of developing type 2 diabetes.
More than ten million people around the world are in the pre-diabetes stage. Researchers say that vitamin D supplements could be an inexpensive way to delay the onset of type 2 diabetes in these individuals.
Check out these yoga poses to keep your diabetes in check.
However, the study authors pointed out that a 15% drop is less than what can be achieved with other ways of preventing type 2 diabetes:
- Extreme lifestyle changes can reduce risk by 58%, according to a reliable source.
- Metformin can cut risk by 31%, according to a credible source.
- Overall, people had no problems taking the vitamins and minerals.
There was no statistically significant difference in the incidence rates of adverse events like kidney stones or high calcium levels in the urine or blood between the groups.
According to the National Institutes of Health (N.I.H.), vitamin D is an essential nutrient. It:
Vitamin D requirements shift as people get older. Newborns and infants up to 12 months old need 400 IU daily. For those 71 and above, the daily recommended intake of the vitamin is 800 IU. For everyone else, 600 IU per day is suggested.
Vitamin D can only be found in a select few natural foods. Fish oils, mushrooms, beef liver, and eggs are all examples of them. Meanwhile, check out these top 5 health benefits of vitamin D.
| english |
<reponame>irocket/Netduino.Foundation<filename>docs/API/Sensors/IPressureSensor/index.md
---
layout: API
title: IPressureSensor
subtitle: Interface describing pressure (barometric) sensors
---
# Info
Minimum required definition for pressure sensors.
# API
## Events
#### `event SensorFloatEventHandler PressureChanged`
Raised when the pressure change crosses the specified `PressureChangeNotificationThreshold` value.
## Properties
#### `float Pressure { get; }`
Returns the last updated pressure value.
* **TODO** what is the default value type? millibars?
#### `float PressureChangeNotificationThreshold { get; set; }`
The minimum amount of pressure change needed to raise the `PressureChanged` event.
* **TODO** What is the default value type?
| markdown |
The long-anticipated Captain America: Civil War brings to a head a problem that has been brewing for years: whether superheroes should be directed by government organisations.
The latest instalment in the Marvel Cinematic Universe carries on from a disastrous battle in the fictional country of Sokovia in Avengers: Age of Ultron. In response to the enormous loss of life and property detailed over the previous Avengers movies, the United Nations demands the superheroes submit to registration and oversight by a UN committee.
The Avengers split into two duelling teams, led by the anti-authoritarian Captain America (Cap) and the pro-regulation Iron Man. A vast supporting cast brings in heroes from across the Marvel Cinematic Universe, and a political and personal crisis plays out in a series of knockout fight sequences.
Superhero movies – at their best – reflect the political anxieties of our time through a lurid mythology. This movie grapples with governmental control, overextended police powers and bloated bureaucracies that protect their members from any personal accountability when things go wrong.
The very premise of a superhero narrative, after all, is political. It relies on a recognition of the state’s insufficiency: if the authorities were doing their jobs, why would we need superheroes?
Captain America: Civil War doesn’t rely on super-villains to endanger humankind: the real enemies are power-hungry politicians, and the heroes themselves.
Heroes have always been part of our cultural imagination, adapting to fit contemporary ideologies. This is particularly true of the Captain America character, whose very name is politically loaded.
Cap’s anti-authoritarian streak has been stirring since Captain America: The First Avenger (2011). In The Avengers (2012), we saw the shady World Security Council authorise a nuclear attack on Manhattan.
In Captain America: The Winter Soldier (2014), Cap discovers that SHIELD, the organisation he works for, has been corrupted by Nazi splinter group HYDRA. The World Security Council is helpless to stop them. Cap’s distrust of oversight indicates that administrators are not objective. Nor are they incorrigible or accountable.
Both previous Captain America movies (and the comics they’re drawn from, published in 2006-7) have echoed the real-world War on Terror and the increased state powers assumed since the PATRIOT Act.
Cap has previously rejected increased surveillance; criminal profiling; data collection; and pre-emptive strikes. Most of all, he denounces using fear as a tool to control a society.
Captain America: Civil War is similarly coded with terror culture. Cap objects to declaring uncontrolled superheroes as criminals; to imprisonment without trial; the over-arming of soldiers and police; and inevitable subsequent deaths.
These are real anxieties of our terror age, articulated through superhero mythology.
The Civil War story is only the most recent example of Cap’s resistance of the state. He’s rebelled against political regimes in comics released during the Nixon, Reagan, and Bush Jr. administrations.
In these comics, corrupt politicians attempt to harness him as an agent, but Cap goes rogue, fighting for his own ideals. He rejects the assumption that the name “Captain America” is a conservative moniker, and uses his own cultural leverage to publicly criticise the state.
To dismiss superheroes in blockbusters as superficial ignores the fact that these movies can be meaningful, both personally and politically. Civil War manages to fit all this together. Despite being about a team divided, the movie unites its many ideas.
This article first appeared on The Conversation.
| english |
TEHRAN (Tasnim) – Iranian Foreign Minister Hossein Amirabdollahian renewed support for Syria’s stability, tranquility and territorial integrity ahead of a visit to the Arab country.
In a post on his X account on Wednesday, Amirabdollahian said he is going to visit Damascus in order to promote Iran’s policy of interaction with the neighboring region and speed up the implementation of agreements concluded by the Iranian and Syrian presidents.
“Iran stresses the necessity of establishing stability and calm and maintaining Syria’s sovereignty and territorial integrity,” he underlined.
The Iranian foreign minister noted that his talks with senior Syrian officials will revolve around the latest regional and international developments.
During Iranian President Ebrahim Raisi’s official visit to Damascus in May, Iran and Syria signed a comprehensive agreement on long-term and strategic cooperation.
In a meeting with his Iranian counterpart, Syrian President Bashar al-Assad had called on Tehran to assist Damascus in ensuring security and reconstructing the war-ravaged areas.
Assad also stated that the relations between Iran and Syria have remained stable even during tough circumstances and despite the “severe political and security storms” that have hit the Middle East.
| english |
#include <cstdio>
#include <cstdlib>
#include <ctime>
#define MAXT 20
#define MAXN 1000
int T;
void gen()
{
int L = rand() % (MAXN + 1);
int n = rand() % (MAXN + 1);
double fac = (rand() % 250 + 1) / 1000.0;
double C = fac/n;
double dL = L * (1.0 - (rand() % 10)/100.0);
double dn = n * (1.0 - (rand() % 10)/100.0);
printf("%.2lf %.2lf %.5lf\n", dL, dn, C);
--T;
}
int main()
{
srand(time(NULL));
T = MAXT;
printf("%d\n", T);
while (T) gen();
return 0;
}
| cpp |
<gh_stars>100-1000
{
"index_name": "jaredmorgs",
"start_urls": [
"https://jaredmorgs.gitbooks.io/pinball-arcade-for-android-new-ui-help-center/content/"
],
"stop_urls": [
"GLOSSARY",
"https://jaredmorgs.gitbooks.io/pinball-arcade-for-android-new-ui-help-center/content$"
],
"selectors": {
"lvl0": {
"selector": "//*[contains(@class, 'breadcrumb')]/li/a",
"type": "xpath"
},
"lvl1": {
"selector": "//*[contains(@class, 'breadcrumb')]/li[contains(@class, 'active')]",
"type": "xpath"
},
"lvl2": ".faq-page h1",
"lvl3": ".faq-page h2",
"lvl4": ".faq-page h3",
"lvl5": ".faq-page h4",
"text": ".faq-page p, .faq-page li"
},
"scrap_start_urls": false,
"min_indexed_level": 1,
"nb_hits": 119
} | json |
<filename>client/src/components/GoogleMap.js
import React, { useState, useRef, useCallback, useEffect } from 'react';
import { GoogleMap, Marker, InfoWindow } from '@react-google-maps/api';
import StoreIcon from '../images/finder-marker-store.svg';
import VetIcon from '../images/finder-marker-vet.svg';
// import { Link } from 'react-router-dom';
// import Loading from './Loading';
// import barIcon from '../assets/icons/beer.svg';
// import restaurantIcon from '../assets/icons/restaurant.svg';
// import storeIcon from '../assets/icons/store.svg';
// import markerIcon from '../assets/icons/pin.svg';
// import getCurrentLocationIcon from '../assets/icons/get-current-location.svg';
const containerStyle = {
width: '100%',
height: '350px',
marginTop: '1rem',
borderRadius: '30px',
};
const options = {
disableDefaultUI: true,
zoomControl: true,
};
const zoom = 11;
const latLngVan = { lat: 49.282729, lng: -123.120738 };
function Map(props) {
const { shops, isLoading } = props;
const [center, setCenter] = useState(latLngVan);
const [bounds, setBounds] = useState(null);
const [shopsOnMap, setShopsOnMap] = useState(shops);
const [selected, setSelected] = useState(null);
const [disabled, setDisabled] = useState(false);
const mapRef = useRef();
const handleLoad = useCallback((map) => (mapRef.current = map), []);
const handleBoundsChange = () => {
if (mapRef.current) setBounds(mapRef.current.getBounds());
};
const getCurrentLocation = () => {
setDisabled(true);
navigator.geolocation.getCurrentPosition(
(position) => {
setCenter({
lat: position.coords.latitude,
lng: position.coords.longitude,
});
setDisabled(false);
},
() => {
setCenter(latLngVan);
setDisabled(false);
console.log('failed to get current location');
},
{ timeout: 5000 }
);
};
useEffect(() => {
if (bounds) {
const newShopsOnMap = shops.filter((shop) =>
bounds.contains({
lat: shop.latitude,
lng: shop.longitude,
})
);
setShopsOnMap(newShopsOnMap);
}
}, [shops, bounds]);
// if (isLoading) return <Loading />;
return (
<>
<GoogleMap
mapContainerStyle={containerStyle}
center={center}
options={options}
zoom={zoom}
onLoad={handleLoad}
onBoundsChanged={handleBoundsChange}
>
{shopsOnMap.map((shop) => (
<Marker
key={shop.id}
icon={{
url: shop.is_vet === 1 ? VetIcon : StoreIcon,
scaledSize: new window.google.maps.Size(48, 48),
labelOrigin: new window.google.maps.Point(24, 16),
}}
position={{
lat: shop.latitude,
lng: shop.longitude,
}}
onClick={() => setSelected(shop)}
// icon={{
// url: markerIcon,
// scaledSize: new window.google.maps.Size(48, 48),
// labelOrigin: new window.google.maps.Point(24, 16),
// }}
key={shop.id}
/>
))}
{selected ? (
<InfoWindow
position={{
lat: selected.latitude,
lng: selected.longitude,
}}
onCloseClick={() => {
setSelected(null);
}}
>
<div className="info-window">
<h3 className="shop-name">{selected.name}</h3>
<h4 className="shop-address">{selected.address}</h4>
<h4 className="shop-phone">{selected.phone_number}</h4>
<h4 className="shop-hours">
Open: {selected.open} ~ {selected.close}
</h4>
</div>
</InfoWindow>
) : null}
</GoogleMap>
</>
);
}
export default React.memo(Map);
| javascript |
BBMP commissioner Siddaiah has set a deadline of one more month for his officials to track property tax defaulters across the city and recover dues of Rs 1,000 crore. "People have suppressed facts from the BBMP on the extent of their properties," he said.
Siddaiah told the BBMP council on Wednesday that there are 3.25 lakh tax defaulters in the city who owe the Palike more than Rs 786 crore. "If we levy 2 % penalty per month on each of them, we can mop up about Rs 1,000 crore," he said.
Citing the example of a tech park and a five-star hotel which are among the property tax defaulters, the commissioner said, "A five-star hotel in the central business district has undervalued the extent of its property and paid Rs 26 lakh as against the actual Rs 87 lakh. A tech park that houses more than 12,000 people has declared its total area as 11 lakh sq ft, whereas it's spread across 27 lakh sqft of area. We have given them 15 days to pay dues of Rs 60 crore. If they do not fall in line, we know what to do," he said.
Siddaiah also spoke about BBMP's delay in issuing khatas to thousands of property owners because of which many are not under the tax net. "In outer zones, most of the recently built group housing complexes haven't got khata and therefore pay no tax. We must look into this issue," he said.
"Ideally, after introducing the self-assessment scheme (SAS), we should have started rigorous verification of tax paid and the actual extent of properties. But that wasn't done. Now everyone in the BBMP, including its chief engineers, executive engineers and even the special commissioner, has been roped in to re-assess the property tax paid," he said.
| english |
//
// kern_policy.hpp
// Lilu
//
// Copyright © 2016-2017 vit9696. All rights reserved.
//
#ifndef kern_policy_hpp
#define kern_policy_hpp
#include <Headers/kern_config.hpp>
#include <sys/types.h>
#include <sys/proc.h>
#include <Library/security/mac_framework.h>
#include <Library/security/mac_policy.h>
#include <Headers/kern_util.hpp>
class Policy {
/**
* TrustedBSD Policy handle
*/
mac_policy_handle_t policyHandle {0};
/**
* TrustedBSD policy configuration
*/
mac_policy_conf policyConf;
public:
/**
* May be used at TrustedBSD policy initialisation
*
* @param conf policy configuration
*/
static void dummyPolicyInitBSD(mac_policy_conf *conf) {
DBGLOG("policy", "init bsd");
}
/**
* Compile-time policy constructor
*
* @param name policy name literal
* @param descr policy description literal
* @param ops policy functions
*/
constexpr Policy(const char *name, const char *descr, struct mac_policy_ops *ops) : policyConf{
.mpc_name = name,
.mpc_fullname = descr,
.mpc_labelnames = nullptr,
.mpc_labelname_count = 0,
.mpc_ops = ops,
// Our policies are loaded very early and are static. We cannot unload them.
.mpc_loadtime_flags = 0 /*MPC_LOADTIME_FLAG_UNLOADOK*/,
.mpc_field_off = nullptr,
.mpc_runtime_flags = 0
} { }
/**
* Registers TrustedBSD policy
*
* @return true on success
*/
EXPORT bool registerPolicy();
/**
* Unregisters TrustedBSD policy if allowed
*
* @return true on success
*/
EXPORT bool unregisterPolicy();
};
#endif /* kern_policy_hpp */
| cpp |
/*
* Copyright 2009-2011 Collaborative Research Centre SFB 632
*
* 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 annis.model;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.not;
import static org.hamcrest.Matchers.nullValue;
import static org.junit.Assert.assertThat;
import org.junit.Before;
import org.junit.Test;
public class TestAnnisNode {
// object under test
private AnnisNode node;
@Before
public void setup() {
node = new AnnisNode(0);
}
@Test
public void qNameFullyQualified() {
assertThat(AnnisNode.qName("namespace", "name"), is("namespace:name"));
}
@Test
public void qNameNoNamespace() {
assertThat(AnnisNode.qName(null, "name"), is("name"));
}
@Test
public void setSpannedText() {
// sanity check: values are null
assertThat(node.getSpannedText(), is(nullValue()));
// set span and text matching
String spannedText = "span";
node.setSpannedText(spannedText);
// test functionality of setter
assertThat(node.getSpannedText(), is(spannedText));
}
@Test
public void clearSpannedText() {
// set some values
node.setSpannedText("span");
// sanity check
assertThat(node.getSpannedText(), is(not(nullValue())));
// clear values
node.clearSpannedText();
// test for null values
assertThat(node.getSpannedText(), is(nullValue()));
}
@Test
public void setTokenIndexToken() {
AnnisNode node = new AnnisNode(1);
node.setTokenIndex(1L);
assertThat(node.isToken(), is(true));
}
@Test
public void setTokenIndexNull() {
AnnisNode node = new AnnisNode(1);
node.setTokenIndex(null);
assertThat(node.isToken(), is(false));
}
}
| java |
Update: Amazon France has confirmed to TechRadar that the image being circulated with the PS5 price and release date is a fake, and not from its website. "The screenshot showing a PS5 product page on amazon.fr with a price of 499€ and a release date on November 20 is a fake and is not coming from our website," an Amazon France spokesperson told us. So, that's that.
Like we said below: beware of bogus PS5 pricing stories. There's going to be a lot of them until Sony finally confirms what the price of the console is.
Original story: Another PS5 price has apparently been listed on Amazon, this time in France, and reports say that the base console was priced as €499.99 (about $562 / £447). It also lists the release date as November 20, which is a Friday.
We're not convinced there's anything in this, though.
Ben Geskin on Twitter shared a screengrab of the listing below. Note, though, that we haven't been able to verify this ourselves, and this same image appears to have been doing the rounds for at least several days.
- PS5 vs Xbox Series X: who'll win?
- When can you buy PS5?
So, is this the real deal? We wouldn't get too carried away just yet. Everyone sharing this image appears to be using the same single screengrab, with the same parts blurred out, so it's hard to find another source that corroborates the page looking exactly like this within the last week.
It's a little different to the last PS5 Amazon UK price snafu, for example, where someone actually managed to order from a dummy ASIN page and screengrab that process. Amazon UK later told IGN the listing was simply an "error".
The release date in this image is within the 'Holiday 2020' range set by Sony, but then any week ahead of Black Friday 2020 seems plausible, really. The PS4, for reference, launched on Friday November 15, 2013.
The price mentioned here for the base unit of the PS5, though, is roughly what we're expecting from the new console.
It's extremely unlikely Sony would let this information be widely disseminated ahead of an official announcement, when you consider that nothing about the PS5 itself leaked ahead of the recent reveal event. Pricing is a sensitive subject, with Microsoft and Sony no doubt carefully keeping an eye on each other to hit what they deem the right range for their player bases.
Our verdict? Wait for Sony's next announcement, and be wary of bogus PS5 pricing stories. In the meantime, we've reached out to Amazon France to confirm whether the listing was real.
Update: we originally mentioned a possible €399 price listing for the All-Digital PS5 in this story, but it sounds like this was just an estimate doing the rounds. We've updated this to remove mentions of it.
Get the hottest deals available in your inbox plus news, reviews, opinion, analysis, deals and more from the TechRadar team.
Samuel is a PR Manager at game developer Frontier. Formerly TechRadar's Senior Entertainment Editor, he's an expert in Marvel, Star Wars, Netflix shows and general streaming stuff. Before his stint at TechRadar, he spent six years at PC Gamer. Samuel is also the co-host of the popular Back Page podcast, in which he details the trials and tribulations of being a games magazine editor – and attempts to justify his impulsive eBay games buying binges.
| english |
package login;
import java.util.*;
import java.util.Arrays;
import java.util.logging.Level;
import java.util.logging.Logger;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import static javafx.geometry.HPos.RIGHT;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.HBox;
import javafx.scene.paint.Color;
import javafx.scene.text.Font;
import javafx.scene.text.FontWeight;
import javafx.scene.text.Text;
import javafx.stage.Stage;
public class GraphicsForScrabbleSolver extends Application {
@Override
public void start(Stage primaryStage) throws Exception {
primaryStage.setTitle("Scrabble Solver");
GridPane grid = new GridPane();
grid.setAlignment(Pos.CENTER);
grid.setHgap(10);
grid.setVgap(10);
grid.setPadding(new Insets(25, 25, 25, 25));
Text scenetitle = new Text("ScrabbleSolver");
scenetitle.setFont(Font.font("Lobster 1.4", FontWeight.NORMAL, 36));//Lobster 1.4 is preffered but you'll need to download it, otherwise, use Georgia
grid.add(scenetitle, 0, 0, 2, 1);
Text scenesubtitle = new Text("If you give me all the letters you have in Scrabble, I'll print out all the words you can make and how much they're worth.\n (Blank tiles not included)");
scenesubtitle.setFont(Font.font("Georgia", FontWeight.NORMAL, 16));
grid.add(scenesubtitle, 0, 0, 2, 6);
Label pw = new Label("Letters:");
grid.add(pw, 0, 5);
TextField pwBox = new TextField();
grid.add(pwBox, 1, 5);
Button btn = new Button("Give me words");
HBox hbBtn = new HBox(10);
hbBtn.setAlignment(Pos.BOTTOM_RIGHT);
hbBtn.getChildren().add(btn);
grid.add(hbBtn, 1, 6);
final Text actiontarget = new Text();
grid.add(actiontarget, 0, 7);
grid.setColumnSpan(actiontarget, 2);
grid.setHalignment(actiontarget, RIGHT);
actiontarget.setId("actiontarget");
btn.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent e) {
// new secondStage();
String usersString = pwBox.getText();
if(usersString.contains(" ")){
actiontarget.setFill(Color.CRIMSON);
actiontarget.setText("Do not include blank Scrabble tiles");
}
else if(usersString.contains("0")||usersString.contains("1")||usersString.contains("2")||usersString.contains("3")||usersString.contains("4")||usersString.contains("5")||usersString.contains("6")||usersString.contains("7")||usersString.contains("8")||usersString.contains("9")||usersString.contains("-")||usersString.contains("_")||usersString.contains("+")||usersString.contains("=")||usersString.contains("!")||usersString.contains("@")||usersString.contains("#")||usersString.contains("$")||usersString.contains("%")||usersString.contains("^")||usersString.contains("&")||usersString.contains("*")||usersString.contains(";")||usersString.contains(":")||usersString.contains("1")||usersString.contains("`")||usersString.contains("~")||usersString.contains("'")||usersString.contains("/")||usersString.contains("?")||usersString.contains(",")||usersString.contains("<")||usersString.contains(">")||usersString.contains(".")){
actiontarget.setFill(Color.CRIMSON);
actiontarget.setText("Do not include numbers or symbols");
}
else if(usersString.equals("")||usersString==null){
actiontarget.setFill(Color.CRIMSON);
actiontarget.setText("Enter of a string of your Scrabble tiles");
}
else{
actiontarget.setFill(Color.ROYALBLUE);
actiontarget.setText("Currently finding words");
try {
//secondStageMan(primaryStage,usersString);
secondStageWasntWorkingSoThisWillHaveToDo(primaryStage,usersString);
} catch (Exception ex) {
Logger.getLogger(GraphicsForScrabbleSolver.class.getName()).log(Level.SEVERE, null, ex);
}
}
}
});
Scene scene = new Scene(grid, 1000, 400);
primaryStage.setScene(scene);
primaryStage.show();
}
public void secondStageWasntWorkingSoThisWillHaveToDo(Stage stage2, String userString) throws Exception {
stage2.setTitle("Scrabble Solver");
GridPane grid2 = new GridPane();
grid2.setAlignment(Pos.CENTER);
grid2.setHgap(10);
grid2.setVgap(10);
grid2.setPadding(new Insets(25, 25, 25, 25));
//Word [] wordArray= PermsString.ValidWordOut(userString);
Text scenetitle = new Text("To find the words you can make with the tiles\n'"+userString.toUpperCase()+"'\nplease look at the Compiler's output.");
scenetitle.setFont(Font.font("Georgia", FontWeight.NORMAL, 24));
grid2.add(scenetitle, 0, 0, 1, 1);
Scene disScene = new Scene(grid2, 1000, 400);
Word [] challahYo= SolveScrabble.ryeBread(userString);
System.out.println("Words you can make with: "+userString.toUpperCase()+" in Scrabble:");
String [] stringArray= new String [challahYo.length];
for(int counterrr=0 ; counterrr<stringArray.length ; counterrr++){
if((challahYo[counterrr].getScore())>0){
stringArray[counterrr]=challahYo[counterrr].toString();
System.out.println(/*"stringArray["+counterrr+"] is: "+*/(stringArray[counterrr]));
}//end of if
}
Button btn = new Button("ScrabbleSolve Again");
HBox hbBtn = new HBox(10);
hbBtn.setAlignment(Pos.BOTTOM_RIGHT);
hbBtn.getChildren().add(btn);
grid2.add(hbBtn, 1, 6);
final Text actiontarget = new Text();
grid2.add(actiontarget, 0, 7);
grid2.setColumnSpan(actiontarget, 2);
grid2.setHalignment(actiontarget, RIGHT);
actiontarget.setId("actiontarget");
btn.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent e) {
try{start(stage2);
} catch (Exception ex) {
Logger.getLogger(GraphicsForScrabbleSolver.class.getName()).log(Level.SEVERE, null, ex);
}
}});
stage2.setScene(disScene);
stage2.show();
}//end of secondStageWasntWorkingSoThisWillHaveToDo
//SO the second stage isn't working, but I made this, which is!
public void secondStageMan(Stage secondStage, String userString) throws Exception {
secondStage.setTitle("Scrabble Solver");
GridPane grid2 = new GridPane();
grid2.setAlignment(Pos.CENTER);
grid2.setHgap(10);
grid2.setVgap(10);
grid2.setPadding(new Insets(25, 25, 25, 25));
//Word [] wordArray= PermsString.ValidWordOut(userString);
Text scenetitle = new Text("Here are the words you can make with the letters "+userString.toUpperCase()+":");
scenetitle.setFont(Font.font("Georgia", FontWeight.NORMAL, 24));
grid2.add(scenetitle, 0, 0, 1, 1);
Word [] challahYo= SolveScrabble.ryeBread(userString);
String [] stringArray= new String [challahYo.length];
for(int counterrr=0 ; counterrr<stringArray.length ; counterrr++){
if((challahYo[counterrr].getScore())>0){
stringArray[counterrr]=challahYo[counterrr].toString();
System.out.println("stringArray["+counterrr+"] is: "+(stringArray[counterrr]));
}//end of if
}
/*
ArrayList<String> arrayListOfWords = new ArrayList<>();
//ArrayList<String> arrayList= new ArrayList<>(Arrays.asList(stringArray));
for (String stringArray1 : stringArray) {
arrayListOfWords.add(stringArray1);
arrayListOfWords.remove("Word: ~\t\tScore: 0");
arrayListOfWords.remove(null);
}
for (int countar=0 ; countar<arrayListOfWords.size() ; countar++) {
stringArray[countar]=arrayListOfWords.get(countar);
System.out.println("stringArray["+countar+"] is: "+(stringArray[countar]));
}*/
Scene datScene = new Scene(grid2, 1000, 400);
Text scenesubtitle1;
if(stringArray.length==0){
scenesubtitle1 = new Text("There are no possible words with your letters, sorry!");
scenesubtitle1.setFont(Font.font("American TypeWriter", FontWeight.BOLD, 12));
grid2.add(scenesubtitle1, 0, 0, 2, 16);
}
else{
for(int countsaer=16;countsaer<(stringArray.length);countsaer++){
scenesubtitle1 = new Text(stringArray[countsaer]+"\n");
scenesubtitle1.setFont(Font.font("American TypeWriter", FontWeight.NORMAL, 16));
grid2.add(scenesubtitle1, 0, 0, 2, countsaer);
}
}//end of else
Button btn = new Button("ScrabbleSolve Again");
HBox hbBtn = new HBox(10);
hbBtn.setAlignment(Pos.BOTTOM_RIGHT);
hbBtn.getChildren().add(btn);
grid2.add(hbBtn, 1, 6);
final Text actiontarget = new Text();
grid2.add(actiontarget, 0, 7);
grid2.setColumnSpan(actiontarget, 2);
grid2.setHalignment(actiontarget, RIGHT);
actiontarget.setId("actiontarget");
btn.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent e) {
try{start(secondStage);
} catch (Exception ex) {
Logger.getLogger(GraphicsForScrabbleSolver.class.getName()).log(Level.SEVERE, null, ex);
}
}});
secondStage.setScene(datScene);
secondStage.show();
}
public static void main(String[] args) {
launch(args);
}
} | java |
{"id": 6448, "name": "Spadeful of coke", "qualified_name": "Spadeful of coke", "examine": "A spadeful of refined coal.", "members": true, "release_date": "2005-08-23", "quest": false, "weight": 1.814, "value": 3, "alchemy": {"high": 1, "low": 1}, "tradeable": false, "stackable": false, "noteable": false, "equipable": false, "tradeable_ge": false, "icon": "<KEY> "wiki_url": "https://oldschool.runescape.wiki/w/Spadeful_of_coke"} | json |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.