text
stringlengths
1
1.04M
language
stringclasses
25 values
RightNow has introduced a new SaaS licensing model for its cloud-based customer support services that is designed to be more flexible and easier to understand for customers, and has challenged other providers to take the same approach. The company unveiled a new customer Cloud Service Agreement (CSA) on Thursday. The agreement aims to avoid landing enterprise customers with unused 'shelfware' via usage provisions that allow them to change the number of users month by month and to ensure satisfaction by offering yearly contracts that allow them to terminate more easily. RightNow is a smaller player in cloud-based software services than its rivals, such as Salesforce.com and Oracle. Company chief executive officer Greg Gianforte said the CSA is a call to action to the entire industry, which he said have failed to deliver on the promise of the cloud they have been touting. "The promise of SaaS was that we could significantly lower the total cost of ownership, have faster deployments, rapid innovation, and reduce shelfware and long-term locking. The software industry has only delivered half of the problem — we solved the technical issues but we've [dragged] along some of the worst aspects of enterprise software delivery," he said. While Salesforce.com and Oracle CRM On Demand offer monthly pricing, customers usually pay annually in advance, and they may also pay extra if they use more storage than the licence fee covers. Although customers can increase the number of Salesforce seats licensed at any stage, they can only reduce the number of seats when the contact expires. One-year contracts are not unusual — SAP On-Demand contracts can be as short as three or six months — but prices aren't always fixed: the Salesforce.com contract states that fees may be increased with 30 days' notice. Under the new RightNow CSA, customers sign a one-year contract, but the price for the cloud-based CRM is fixed for three years, even if they reduce the number of seats they take. If the contract is renewed, they get a further three-year price cap, meaning the price could be fixed for as long as six years. In addition, the annual contract allows customers to change the number of licences they use from month to month by offering a pool of 'seat months' rather than having to buy enough seats to cover peak usage. Gianforte compared the flexible approach to the pool of minutes provided on a mobile phone plan. "They roll over month to month within a given year, so you can scale to deal with seasonality," he said. It also provides for free 90-day trial usage with unlimited capacity, which allows a business to test the services in full to see if they deliver what the service promises before committing to the purchase. Salesforce.com offers a 30-day trial, but only for its Professional Edition, not the Enterprise or Unlimited Edition services; Oracle's Beehive On Demand collaboration service has a 30-day free trial, but only for five seats. A CSA contract also includes a percentage refund if the service level agreement (SLA) is not met, to guarantee that providers that have locked their customers into long-term contracts will still perform, according to RightNow. "Vendors ought to put guarantees with their technology," said Gianforte. "So we will pay our customer. If we don't deliver, customers should expect to get a cheque from us." Ray Wong of analyst Altimeter, which published its own 'SaaS Bill of Rights', said that RightNow's new CSA is significant. "I think at first the software buyer is going to say 'don't I have that already?'— and they're going to go and look and realise that 'I don't have these clauses; I can't flex down when I need to, I'm stuck on an annual agreement.' You can buy month to month but you end up signing an annual contract." He believes the predictable costs are as important as the flexibility to many customers. "One of the biggest fears people have had is 'What happens if they jack up my rates?'" Wong also said that typically, the rates for many cloud services are not transparent. "People are getting 'nickel and dimed'... there are some unintended costs that show up on storage," he said. The changes aren't purely in the customer's interest. Wong believes there are advantages for SaaS vendors in more flexible contracts. "I think vendors who are progressive would want to sign up [to this challenge] because it takes away friction for the sales cycle and it engenders trust. If you want to change the dynamic, a vendor would take the challenge and come up with something more customer friendly." Based on the interest he has seen in his SaaS Bill of Rights, Wong also predicted that the terms RightNow is introducing could become common. "If this takes off, other vendors will have to play catch-up," he said.
english
<reponame>ngoctruong472k/vanminh_php<gh_stars>0 var baseurl = ''; function addCommas(e){e+="";x=e.split(".");x1=x[0];x2="";x2=x.length>1?"."+x[1]:"";var t=/(\d+)(\d{3})/;while(t.test(x1)){x1=x1.replace(t,"$1"+"."+"$2")}return x1+x2} $(document).ready(function(e) { // check hien gio post tin trong tin tuc $("input[name=active_future]").click(function(e) { var inputActive = $("input[name=active]"); var labelActive= $("label[for=active]"); if($(this).is(':checked')) { inputActive.attr('checked',false); inputActive.prepend('span').trigger('click'); inputActive.attr('disabled',true); labelActive.addClass('disabled'); $('#chose_date_time').fadeIn(300); } else{ inputActive.attr('checked',true); inputActive.prepend('span').trigger('click'); inputActive.attr('disabled',false); labelActive.removeClass('disabled'); $('#chose_date_time').fadeOut(300); } }); // check dung banner flash hay anh $('input[name=useflash]').click(function(){ if($(this).is(':checked')){ $('#upload_flash').show(400); $('#upload_banner').hide(400); } else{ $('#upload_banner').show(400); $('#upload_flash').hide(400); } }); // check chon kieu widget va hien thi khung nhap lieu cho phu hop $('select[name="comp"]').change(function(){ var vl = $(this).find('option:selected').val(); if(vl==7){ $('.html_content').show(); } else{ $('.html_content').hide(); } if(vl==1){ $('.cattype').show(); } else{ $('.cattype').hide(); } if(vl==2){ $('.producttype').show(); } else{ $('.producttype').hide(); } if(vl==3){ $('.articletype').show(); } else{ $('.articletype').hide(); } if(vl==4){ $('.facebook').show(); } else{ $('.facebook').hide(); } if(vl==9){ $('.searchtype').show(); } else{ $('.searchtype').hide(); } if(vl==2 || vl==3){ $('.numberQuery').show(); } else{ $('.numberQuery').hide(); } }) // tag tin tuc $('span#tag_on_article a').click(function(){ var parent_ =$(this).parent('span'); var uni_tag = LayMa(parent_.find('span').text()); var get_id = $('#id_this_articles').val(); jQuery.ajax({ type: 'POST', url: baseurl + '/ajax.php?do=articles&act=tags', data: { 'uni_tag':uni_tag, 'id':get_id }, success: function(data) { parent_.remove(); } }); return false; }) // tag san pham $('span#tag_on_products a').click(function(){ var parent_ =$(this).parent('span'); var uni_tag = LayMa(parent_.find('span').text()); var get_id = $('#id_this_product').val(); jQuery.ajax({ type: 'POST', url: baseurl + 'ajax.php?do=products&act=tags', data: { 'uni_tag':uni_tag, 'id':get_id }, success: function(data) { parent_.remove(); } }); return false; }) }); // cap nhat so thu tu trong template/admin/ file list.ctp function updateNumber(table, id) { var num = jQuery('#number'+id).val(); $('#ajaxloader'+id).css('display', 'block'); jQuery.ajax({ type: 'POST', url: baseurl + 'ajax.php?do=number&act=update', data: {'table':table, 'id':id, 'num':num}, success: function(data) { $('#ajaxloader'+id).css('display', 'none'); jQuery('#number'+id).val(num) } }); } $(document).ready(function(e) { // click de chuyen doi giua khung dang nhap va khung quen mat khau cua admin $(".forgot-pwd").click(function () { $("#loginForm").hide(); $("#forgotForm").show(); return false; }); $(".back-login").click(function () { $("#loginForm").show(); $("#forgotForm").hide(); return false; }); // kiem tra login bang ajax jQuery('.logMeIn').click(function() { var email = jQuery('#username').val(); var pass = jQuery('#pass').val(); if (email && pass) { $('.ajaxloader').css('display', 'block'); jQuery.ajax({ type: 'POST', url: baseurl + 'ajax.php?do=admin&act=login', data: {'pass':<PASSWORD>, 'email':email}, success: function(data) { var myObject = eval('(' + data + ')'); $('.ajaxloader').css('display', 'none'); if (myObject['page']) { window.location=myObject['page']; //location.reload(); } else if (myObject['mess']) { jQuery('#loginError').css('display', 'block'); jQuery('#loginError').html(myObject['mess']); } } }); } else { return true; } return false; }); // logout bang ajax jQuery('#userLogout').click(function() { jQuery.ajax({ type: 'POST', url: baseurl + '/ajax.php?do=admin&act=logout', success: function(data) { document.location = 'admin.php'; } }); return false; }); // goi email quen mat khau jQuery('.sendEmail').click(function() { var email = jQuery('#email').val(); if (email) { $('.ajaxloader').css('display', 'block'); jQuery.ajax({ type: 'POST', url: baseurl + '/ajax.php?do=admin&act=forgotpass', data: {'email':email}, success: function(data) { $('.ajaxloader').css('display', 'none'); var myObject = eval('(' + data + ')'); jQuery('#echoMessage').css('display', 'block'); jQuery('#echoMessage').html(myObject['mess']); } }); } else { return true; } return false; }); // them custom field trong san pham jQuery('#addField').click(function() { var name_vn = jQuery('#cname_vn').val(); var value_vn = jQuery('#cvalue_vn').val(); var name_en = jQuery('#cname_en').val(); var value_en = jQuery('#cvalue_en').val(); var alias = jQuery('#alias_custom').val(); if (name_vn && value_vn) { $('.ajaxloader').css('display', 'block'); jQuery.ajax({ type: 'POST', url: baseurl + '/ajax.php?do=customfield&act=add', data: {'name_vn':name_vn, 'value_vn':value_vn, 'name_en':name_en, 'value_en':value_en, 'alias':alias}, success: function(data) { $('.ajaxloader').css('display', 'none'); $('#nofield').css('display', 'none'); $('#tableField').append(data); jQuery('#cname_vn').val(''); jQuery('#cvalue_vn').val(''); jQuery('#cname_en').val(''); jQuery('#cvalue_en').val(''); } }); } return false; }); // them module keo tha trong salepage jQuery('#addModule').click(function() { var name = jQuery('#sname').val(); var cid = jQuery('#cid').val(); if (name) { jQuery.ajax({ type: 'POST', url: baseurl + '/ajax.php?do=salepage&act=add', data: {'name':name, 'cid':cid}, success: function(data) { $('#nomodule').css('display', 'none'); $('#sortable').append(data); jQuery('#sname').val(''); } }); } return false; }); }); // cap nhat thong tin custom field function updateField(id) { var name_vn = $('#name_vn' + id).val(); var value_vn = $('#value_vn' + id).val(); var name_en = $('#name_en' + id).val(); var value_en = $('#value_en' + id).val(); if (name_vn && value_vn) { $('#ajaxloader'+id).css('display', 'block'); jQuery.ajax({ type:'POST', url:baseurl + '/ajax.php?do=customfield&act=update', data: {'name_vn':name_vn, 'value_vn':value_vn, 'name_en':name_en, 'value_en':value_en, 'id':id}, success:function (data) { $('#ajaxloader'+id).css('display', 'none'); } }); } return false; } // xoa custom field function deleteField(id, proid) { $('#ajaxloader'+id).css('display', 'block'); jQuery.ajax({ type:'POST', url:baseurl + '/ajax.php?do=customfield&act=delete', data: {'id':id, 'proid':proid}, success:function (data) { $('#ajaxloader'+id).css('display', 'none'); $('#tableField #row'+id).html(''); } }); } // dien du lieu cua custom field co san vao trong khung nhap du lieu khi nguoi dung chon function fillValue(name) { $('.ajaxloader').css('display', 'block'); jQuery.ajax({ type:'POST', url:baseurl + '/ajax.php?do=customfield&act=fill', data: {'name':name}, success:function (data) { $('.ajaxloader').css('display', 'none'); var myObject = eval('(' + data + ')'); $('#cname_vn').val(myObject['name_vn']); $('#cvalue_vn').val(myObject['value_vn']); $('#cname_en').val(myObject['name_en']); $('#cvalue_en').val(myObject['value_en']); $('#alias_custom').val(myObject['alias']); } }); } // xoa module keo tha salepage function deleteModule(id) { jQuery.ajax({ type:'POST', url:baseurl + '/ajax.php?do=salepage&act=delete', data: {'id':id}, success:function (data) { $('#sortable #row'+id).html(''); } }); } function LayMa(tag){ var uni_tag = StripTag_ad(tag).toLowerCase(); return uni_tag; } function StripTag_ad(str) { str= str.toLowerCase(); str= str.replace(/à|á|ạ|ả|ã|â|ầ|ấ|ậ|ẩ|ẫ|ă|ằ|ắ|ặ|ẳ|ẵ/g,"a"); str= str.replace(/è|é|ẹ|ẻ|ẽ|ê|ề|ế|ệ|ể|ễ/g,"e"); str= str.replace(/ì|í|ị|ỉ|ĩ/g,"i"); str= str.replace(/ò|ó|ọ|ỏ|õ|ô|ồ|ố|ộ|ổ|ỗ|ơ|ờ|ớ|ợ|ở|ỡ/g,"o"); str= str.replace(/ù|ú|ụ|ủ|ũ|ư|ừ|ứ|ự|ử|ữ/g,"u"); str= str.replace(/ỳ|ý|ỵ|ỷ|ỹ/g,"y"); str= str.replace(/đ/g,"d"); str= str.replace(/!|@|%|\^|\*|\(|\)|\+|\=|\<|\>|\?|\/|\.|\:|\;|\'| |\"|\&|\#|\[|\]|~|$|_/g,"-"); /* tìm và thay thế các kí tự đặc biệt trong chuỗi sang kí tự - */ str= str.replace(/-+-/g,"-"); //thay thế 2- thành 1- str= str.replace(/-+,/g,","); str= str.replace(/,+-/g,","); str= str.replace(/^\-+|\-+$/g,""); //cắt bỏ ký tự - ở đầu và cuối chuỗi return str; }
javascript
import React from 'react'; import createSvg from '../utils/createSvg'; export default createSvg(<g><path fill-opacity=".3" d="M2 22h20V2z"/><path d="M17 7L2 22h15z"/></g>, 'SignalCellular3Bar');
javascript
import math import itertools class Vector: """ Generic vector operations. """ def _apply(self,op, other): pairwise = None if type(other) is Vector: pairwise = zip(self.vals, other.vals) else: pairwise = zip(self.vals, [other for _ in self.vals]) return Vector(*itertools.starmap(op, pairwise)) def __init__(self, *args): self.vals = args def __add__(self, other): return self._apply(lambda a, b: a + b, other) def __sub__(self, other): return self._apply(lambda a, b: a - b, other) def __mul__(self, other): return self._apply(lambda a, b: a*b, other) def __div__(self, other): return self._apply(lambda a, b: a / b, other) def length(self): total = sum(map(lambda a: math.pow(a, 2), self.vals)) return math.sqrt(total) def normalized(self): divisor = [self.length()] * len(self) return Vector(*(self / divisor)) def __iter__(self): return py_iter(self.vals) @classmethod def map(cls, *args): return args[0].map(args[1:]) def __getitem__(self, item): return self.values[item] def __str__(self): return str(self.vals) def __len__(self): return len(self.vals) @classmethod def add(cls, a, b): return Vector(*a) + Vector(*b) @classmethod def sub(cls, a, b): return Vector(*a) - Vector(*b) @classmethod def mul(cls, a, b): return Vector(*a) * Vector(*b) @classmethod def div(cls, a, b): return Vector(*a) / Vector(*b) @classmethod def dot(cls, left, right): return sum(Vector.mul(left, right)) @classmethod def norm_dot(Vector, left, right): left = Vector(*left).normalized() right = Vector(*right).normalized() return sum(Vector.mul(left, right))
python
The first quarter-final of the 2018 World Cup will see 2-time former champions Uruguay, take on former champions France, in the Nizhny Novograd Stadium, as both sides look to secure a spot in the semi-finals. Uruguay started off their World Cup campaign in rather unimpressive fashion as they won 1-0 against Egypt, courtesy an 89th-minute goal by Jose Gimenez. The second match saw them winning against Saudi Arabia with the same scoreline as Luis Suarez scored his first goal of the World Cup to help set up the victory for the South Americans. The third match against Russia saw Uruguay break the shackles as they comprehensively won 3-0 again Russia with Oscar Tabarez going with a 4-4-1-1 formation instead of the usual 4-4-2. An impressive display against Portugal in the round of 16, after a brace from Edinson Cavani, saw Uruguay win 2-1 against Portugal to set up the quarter-final clash against France. Uruguay will be hoping to qualify to the first semi-final since 2010. France started their World Cup campaign in rather poor fashion as they toiled to a 2-1 victory over Australia. The second match saw them face off against Peru as they secured their second consecutive victory after winning 1-0 against Peru. The third match saw them face off against Denmark which to date saw the only goalless draw of the tournament. But it was in the round of 16 that France really stepped up as Greizmann, Pavard and Kylian Mbappe scored against Argentina to give a 4-3 victory for France. France will be looking for their first semi-final appearance in the World Cup since 2006. Uruguay is set to be without in-form striker Edinson Cavani after he suffered a calf injury in the match against Portugal. Christian Stuani is expected to replace Cavani in the starting XI. Corentin Tolisso is expected to start in place of the suspended Blaise Matuidi in the French team. Uruguay and France will face off for the 4th time in the history of the World Cup and the first time in the knockout stage. Uruguay leads France in the head to head, with the only victory coming in the 1966 World Cup in Chile. Uruguay will be looking to make their second World Cup semi-final appearance in the last three tournaments. Uruguay has never lost a quarter-final fixture since a 4-0 loss to West Germany in 1966. France will be aiming to reach their first semi-final in 12 years with the first victory over Uruguay in this fixture. France is unbeaten in their last 9 matches against a South American side. Only Pele and Germany's Edmund Conen has scored more goals as teenagers than Kylian Mbappe. Follow Uruguay vs France Live Football Scores here.
english
Real Madrid beat local rivals Atletico Madrid 2-0 in La Liga last night. Carlo Ancelotti's men are now eight points clear at the top of the league table, although they have played an extra game this season. Real Madrid's victory over Atletico Madrid was their 13th win in 17 league games this season. Los Blancos have raced far ahead of arch-rivals Barcelona, who have 24 points from 16 games this season. With 42 points after 17 games, Real Madrid are eight points ahead of second-placed Sevilla, who have 34 points on the board after 16 games. Speaking after his team's 2-0 win against Atletico Madrid, Real Madrid boss Carlo Ancelotti said that the Galacticos are favorites to win La Liga this season: "We are favorites to win LaLiga but we are focused on the future. A mental loss can cost you dearly and I think we are doing well and it is the only way to get closer to victory in each game." Ancelotti's men were fluent in attack from day one this season but had some defensive issues to sort out. However, the Italian was jubilant with his team's clean sheet and defensive display against Atletico Madrid. He said: "I like the team a lot defensively. We are more solid because we have improved and I am happy about it." Ancelotti had special praise for Luka Modric and Vinicius Junior after their performance against Atletico Madrid: "The role of Luka Modric has been extraordinary. He continues to have a lot of quality and it is a pleasure to coach him." "He's (Vinicius) improving himself. I don't talk to him much because I don't have much to say to him. I always tell him to be effective and not to haggle for dribbling." Various reports on social media have indicated that Real Madrid are planning to sign Kylian Mbappe next summer. The Galacticos reportedly sent in a €170 million offer for the Frenchman in the final days of last summer's transfer window. With only 12 months left on Mbappe's contract, many people expected Paris Saint-Germain (PSG) to sell their star forward. However, the Parisians decided to hold on to him in the hopes that he would sign a contract extension. Mbappe has spoken to the media a few times since then and has indirectly made it clear that he wants to switch clubs next summer. The free signing of a player of his caliber will greatly boost the squad at Real Madrid.
english
Being nice does have its advantages. Everyone talks to you. You get more favors. You have more friends. And everyone loves you! But learning to be nice and likeable is a trait that few people have mastered. Have you ever met a warm person who made you feel comfortable and relaxed within a few minutes of meeting them? You may have felt nervous or uncomfortable to start with, but all it took was a few lines to enjoy a great conversation with this nice person. They’re charming and great to be friends with, aren’t they? So what makes someone nice and one a bore? Use these 6 tips on how to be nice and you’ll definitely be liked and adored by all too! This is a perfect start on your journey to becoming a nicer and more likeable person. Don’t be grumpy and plaster a frown on your face all the time. View the glass of life as half full. When you’re happy in your own shoes, the world will start to love you for your infectious happiness. Have interesting conversations with others without getting personal or intrusive. Don’t talk only about what you want to talk or what you know of. Be willing to listen and indulge in conversations that others around you can relate to. Most of us are so full of ourselves that we forget to think from someone else’s perspective. If you’re with a friend who’s having lobsters for the first time, empathize with that person instead of laughing while watching them fight with a hard shell. Talk about the first time you had to crack a lobster and how it ended up falling off your table. When you make someone feel better, they’ll be grateful to you and like you more. Avoid being rude or snappy in your retorts and responses. Don’t hurt people just because you can. Many people take pleasure in making someone else feel weak or humiliated. Don’t be that person. You may be confident and egoistic about yourself. You may take pride in your achievements or how much you make in a year. But when you’re interacting with others, don’t bring your ego out in the open for all to see. People who are less fortunate than you in some way or the other will always think you’re bragging. Be egoistic and proud on the inside, but don’t reveal it unless there’s a need to. Be happy. Don’t obsess about the bad things in life. Enjoy every moment of life and share your happiness with people around you. Positive people always have a sparkle in their eyes, and draw friends and admirers closer all the time.
english
package org.calvin.__Book.epi; import epi.test_framework.EpiTest; import epi.test_framework.RandomSequenceChecker; import epi.test_framework.GenericTest; import epi.test_framework.TestFailure; import epi.test_framework.TimedExecutor; import java.util.ArrayList; import java.util.List; import java.util.Random; public class UniformRandomNumber { private static int zeroOneRandom() { Random gen = new Random(); return gen.nextInt(2); } public static int uniformRandom(int lowerBound, int upperBound) { int numberOfOutcomes = upperBound - lowerBound + 1, result; do { result = 0; for (int i = 0; (1 << i) < numberOfOutcomes; ++i) { // zeroOneRandom() is the provided random number generator. result = (result << 1) | zeroOneRandom(); } } while (result >= numberOfOutcomes); return result + lowerBound; } private static boolean uniformRandomRunner(TimedExecutor executor, int lowerBound, int upperBound) throws Exception { List<Integer> results = new ArrayList<>(); executor.run(() -> { for (int i = 0; i < 100000; ++i) { results.add(uniformRandom(lowerBound, upperBound)); } }); List<Integer> sequence = new ArrayList<>(); for (Integer result : results) { sequence.add(result - lowerBound); } return RandomSequenceChecker.checkSequenceIsUniformlyRandom( sequence, upperBound - lowerBound + 1, 0.01); } @EpiTest(testDataFile = "uniform_random_number.tsv") public static void uniformRandomWrapper(TimedExecutor executor, int lowerBound, int upperBound) throws Exception { RandomSequenceChecker.runFuncWithRetries( () -> uniformRandomRunner(executor, lowerBound, upperBound)); } public static void main(String[] args) { System.exit( GenericTest .runFromAnnotations(args, "UniformRandomNumber.java", new Object() {}.getClass().getEnclosingClass()) .ordinal()); } }
java
/* * Copyright (C) 2010-2014 <NAME> * CONRAD is developed as an Open Source project under the GNU General Public License (GPL). */ package edu.stanford.rsl.conrad.geometry.trajectories; import java.util.ArrayList; import java.util.Arrays; import java.util.Random; import edu.stanford.rsl.conrad.geometry.General; import edu.stanford.rsl.conrad.geometry.Projection; import edu.stanford.rsl.conrad.geometry.Rotations; import edu.stanford.rsl.conrad.geometry.Projection.CameraAxisDirection; import edu.stanford.rsl.conrad.geometry.shapes.simple.PointND; import edu.stanford.rsl.conrad.geometry.shapes.simple.StraightLine; import edu.stanford.rsl.conrad.io.SafeSerializable; import edu.stanford.rsl.conrad.numerics.SimpleMatrix; import edu.stanford.rsl.conrad.numerics.SimpleOperators; import edu.stanford.rsl.conrad.numerics.SimpleVector; import edu.stanford.rsl.conrad.numerics.Solvers; //import edu.stanford.rsl.conrad.phantom.AnalyticPhantom; import edu.stanford.rsl.jpop.FunctionOptimizer; import edu.stanford.rsl.jpop.FunctionOptimizer.OptimizationMode; import edu.stanford.rsl.jpop.GradientOptimizableFunction; public class Trajectory implements SafeSerializable{ private static final long serialVersionUID = 8005225046964549262L; protected int numProjectionMatrices; protected int detectorWidth; protected int detectorHeight; protected double pixelDimensionX; protected double pixelDimensionY; protected double sourceToDetectorDistance; protected double sourceToAxisDistance; protected double averageAngularIncrement; protected int projectionStackSize; protected double [] reconDimensions; protected double [] reconVoxelSizes; protected Projection [] projectionMatrices; protected double [] primaryAngles = null; protected double [] secondaryAngles = null; private String primaryAnglesString; private String secondaryAnglesString; protected double originInPixelsX; protected double originInPixelsY; protected double originInPixelsZ; protected CameraAxisDirection detectorUDirection; protected CameraAxisDirection detectorVDirection; protected double detectorOffsetU; protected double detectorOffsetV; protected SimpleVector rotationAxis; /** * Copy Constructor that reads the values of another Trajectory object. * @param source */ public Trajectory (Trajectory source){ this.numProjectionMatrices = source.numProjectionMatrices; this.detectorWidth = source.detectorWidth; this.detectorHeight = source.detectorHeight; this.pixelDimensionX = source.pixelDimensionX; this.pixelDimensionY = source.pixelDimensionY; this.sourceToDetectorDistance = source.sourceToDetectorDistance; this.sourceToAxisDistance = source.sourceToAxisDistance; this.averageAngularIncrement = source.averageAngularIncrement; if (source.reconDimensions != null) { this.reconDimensions = Arrays.copyOf(source.reconDimensions, source.reconDimensions.length); } else { reconDimensions = new double[3]; } if (source.reconVoxelSizes != null) { this.reconVoxelSizes = Arrays.copyOf(source.reconVoxelSizes, source.reconVoxelSizes.length); } else { reconVoxelSizes = new double[3]; } if (source.projectionMatrices != null){ this.projectionMatrices = new Projection[source.projectionMatrices.length]; for(int i = 0; i < source.projectionMatrices.length; i++) { this.projectionMatrices[i] = new Projection(source.projectionMatrices[i]); } } if (source.primaryAngles != null){ this.primaryAngles = Arrays.copyOf(source.primaryAngles, source.primaryAngles.length); } if (source.secondaryAngles != null){ this.secondaryAngles = Arrays.copyOf(source.secondaryAngles, source.secondaryAngles.length); } this.projectionStackSize = source.projectionStackSize; this.originInPixelsX = source.originInPixelsX; this.originInPixelsY = source.originInPixelsY; this.originInPixelsZ = source.originInPixelsZ; this.detectorUDirection = source.detectorUDirection; this.detectorVDirection = source.detectorVDirection; if (source.rotationAxis != null) { this.rotationAxis = source.rotationAxis.clone(); } } public Trajectory (){ reconDimensions = new double[3]; reconVoxelSizes = new double[3]; } public Projection[] getProjectionMatrices() { return projectionMatrices; } public void setProjectionMatrices(Projection[] projectionMatrices) { this.projectionMatrices = projectionMatrices; } public int getDetectorWidth() { return detectorWidth; } public void setDetectorWidth(int detectorWidth) { this.detectorWidth = detectorWidth; } public int getDetectorHeight() { return detectorHeight; } public void setDetectorHeight(int detectorHeight) { this.detectorHeight = detectorHeight; } public double getPixelDimensionX() { return pixelDimensionX; } public void setPixelDimensionX(double pixelDimensionX) { this.pixelDimensionX = pixelDimensionX; } public double getPixelDimensionY() { return pixelDimensionY; } public void setPixelDimensionY(double pixelDimensionY) { this.pixelDimensionY = pixelDimensionY; } /** * returns the source to detector distance in [mm] * @return the source to detector distance */ public double getSourceToDetectorDistance() { return sourceToDetectorDistance; } public void setSourceToDetectorDistance(double sourceToDetectorDistance) { this.sourceToDetectorDistance = sourceToDetectorDistance; } public double getSourceToAxisDistance() { return sourceToAxisDistance; } public void setSourceToAxisDistance( double sourceToAxisDistance) { this.sourceToAxisDistance = sourceToAxisDistance; } public double getAverageAngularIncrement() { return averageAngularIncrement; } public void setAverageAngularIncrement(double averageAngularIncrement) { this.averageAngularIncrement = averageAngularIncrement; } public double[] getReconDimensions() { return reconDimensions; } public void setReconDimensions(double ... reconDimensions) { this.reconDimensions = reconDimensions; } public void setNumProjectionMatrices(int numProjectionMatrices) { this.numProjectionMatrices = numProjectionMatrices; } public double[] getReconVoxelSizes() { return reconVoxelSizes; } public void setReconVoxelSizes(double[] reconVoxelSizes) { this.reconVoxelSizes = reconVoxelSizes; } public Projection getProjectionMatrix(int i){ if (i < projectionMatrices.length && i>=0) return projectionMatrices[i]; else { return null; } } public void setProjectionMatrix(int i, Projection projMat){ if (i < projectionMatrices.length && i>=0) { projectionMatrices[i] = projMat; } } public int getNumProjectionMatrices(){ return numProjectionMatrices; } public double[] getPrimaryAngles() { return primaryAngles; } public void setPrimaryAngleArray(double[] primaryAngles) { this.primaryAngles = primaryAngles; } public double[] getSecondaryAngles(){ return secondaryAngles; } public void setSecondaryAngleArray(double[] secondaryAngles) { this.secondaryAngles = secondaryAngles; } public int getProjectionStackSize() { return projectionStackSize; } public void setProjectionStackSize(int projectionStackSize) { this.projectionStackSize = projectionStackSize; } public int getReconDimensionX() { return (int)reconDimensions[0]; } public int getReconDimensionY() { return (int)reconDimensions[1]; } public int getReconDimensionZ() { return (int)reconDimensions[2]; } public double getVoxelSpacingX() { return reconVoxelSizes[0]; } public double getVoxelSpacingY() { return reconVoxelSizes[1]; } public double getVoxelSpacingZ() { return reconVoxelSizes[2]; } public void setReconDimensionX(int value) { reconDimensions[0] = value; } public void setReconDimensionY(int value) { reconDimensions[1] = value; } public void setReconDimensionZ(int value) { reconDimensions[2] = value; } public void setVoxelSpacingX(double value) { reconVoxelSizes[0] = value; } public void setVoxelSpacingY(double value) { reconVoxelSizes[1] = value; } public void setVoxelSpacingZ(double value) { reconVoxelSizes[2] = value; } @Override public void prepareForSerialization() { if (primaryAngles != null) { primaryAnglesString = ""; if (secondaryAngles != null) secondaryAnglesString = ""; for (int i=0; i< primaryAngles.length-1; i++){ primaryAnglesString += primaryAngles[i] + " "; if (secondaryAngles != null)secondaryAnglesString += secondaryAngles[i] + " "; } primaryAnglesString += primaryAngles[primaryAngles.length-1]; if (secondaryAngles != null) secondaryAnglesString += secondaryAngles[secondaryAngles.length-1]; if (secondaryAngles != null) secondaryAngles = null; primaryAngles = null; } if (projectionMatrices !=null) { for (int i=0; i< projectionMatrices.length; i++){ //projectionMatrices[i].prepareForSerialization(); } } } /** * @return the primaryAnglesString */ public String getPrimaryAnglesString() { return primaryAnglesString; } /** * @param primaryAnglesString the primaryAnglesString to set */ public void setPrimaryAnglesString(String primaryAnglesString) { String [] entries = primaryAnglesString.split("\\s+"); primaryAngles = new double [entries.length]; for (int i = 0; i<entries.length; i++){ primaryAngles[i] = Double.parseDouble(entries[i]); } this.primaryAnglesString = primaryAnglesString; } /** * @return the secondaryAnglesString */ public String getSecondaryAnglesString() { return secondaryAnglesString; } /** * @param secondaryAnglesString the secondaryAnglesString to set */ public void setSecondaryAnglesString(String secondaryAnglesString) { String [] entries = secondaryAnglesString.split("\\s+"); secondaryAngles = new double [entries.length]; for (int i = 0; i<entries.length; i++){ secondaryAngles[i] = Double.parseDouble(entries[i]); } this.secondaryAnglesString = secondaryAnglesString; } /** * @return the originInPixelsX */ public double getOriginInPixelsX() { return originInPixelsX; } // /** * @return the originX in world coordinates [mm] */ public double getOriginX() { return General.voxelToWorld(-originInPixelsX, getVoxelSpacingX(), 0); } /** * @return the originY in world coordinates [mm] */ public double getOriginY() { return General.voxelToWorld(-originInPixelsY, getVoxelSpacingY(), 0); } /** * @return the originZ in world coordinates [mm] */ public double getOriginZ() { return General.voxelToWorld(-originInPixelsZ, getVoxelSpacingZ(), 0); } /** * Method to center the world origin around a phantom's min and max. * @param phantom * public void setOriginToPhantomCenter(AnalyticPhantom phantom){ PointND min = phantom.getMin().clone(); PointND max = phantom.getMax().clone(); SimpleVector minVec = min.getAbstractVector(); minVec.add(max.getAbstractVector()); minVec.divideBy(2); SimpleVector maxVec = new SimpleVector(getVoxelSpacingX()*getReconDimensionX(),getVoxelSpacingY()*getReconDimensionY(), getVoxelSpacingZ()*getReconDimensionZ()); maxVec.divideBy(2); minVec.subtract(maxVec); maxVec.multipliedBy(2); maxVec.add(minVec); setOriginInWorld(new PointND(minVec)); }*/ public void setOriginInWorld(PointND originInWorld){ originInPixelsX = General.worldToVoxel(-originInWorld.get(0), getVoxelSpacingX(), 0); originInPixelsY = General.worldToVoxel(-originInWorld.get(1), getVoxelSpacingY(), 0); originInPixelsZ = General.worldToVoxel(-originInWorld.get(2), getVoxelSpacingZ(), 0); } /** * @param originInPixelsX the originInPixelsX to set */ public void setOriginInPixelsX(double originInPixelsX) { this.originInPixelsX = originInPixelsX; } /** * @return the originInPixelsY */ public double getOriginInPixelsY() { return originInPixelsY; } /** * @param originInPixelsY the originInPixelsY to set */ public void setOriginInPixelsY(double originInPixelsY) { this.originInPixelsY = originInPixelsY; } /** * @return the originInPixelsZ */ public double getOriginInPixelsZ() { return originInPixelsZ; } /** * @param originInPixelsZ the originInPixelsZ to set */ public void setOriginInPixelsZ(double originInPixelsZ) { this.originInPixelsZ = originInPixelsZ; } /** * @param detectorUDirection the detectorUDirection to set */ public void setDetectorUDirection(CameraAxisDirection detectorUDirection) { this.detectorUDirection = detectorUDirection; } /** * @return the detectorUDirection */ public CameraAxisDirection getDetectorUDirection() { return detectorUDirection; } /** * @return the detectorVDirection */ public CameraAxisDirection getDetectorVDirection() { return detectorVDirection; } /** * @param detectorVDirection the detectorVDirection to set */ public void setDetectorVDirection(CameraAxisDirection detectorVDirection) { this.detectorVDirection = detectorVDirection; } /** * @return the detectorOffsetU */ public double getDetectorOffsetU() { return detectorOffsetU; } /** * @param detectorOffsetU the detectorOffsetU to set */ public void setDetectorOffsetU(double detectorOffsetU) { this.detectorOffsetU = detectorOffsetU; } /** * @return the detectorOffsetV */ public double getDetectorOffsetV() { return detectorOffsetV; } /** * @param detectorOffsetV the detectorOffsetV to set */ public void setDetectorOffsetV(double detectorOffsetV) { this.detectorOffsetV = detectorOffsetV; } /** * @param rotationAxis the rotationAxis to set */ public void setRotationAxis(SimpleVector rotationAxis) { this.rotationAxis = rotationAxis; } /** * @return the rotationAxis */ public SimpleVector getRotationAxis() { return rotationAxis; } /** * computes the iso center of the current trajectory. Current computation is based on heuristics, but works. * Should be implemented properly in the future. * Testing with 100 tries gives a standard deviation of 0.15 mm per coordinate.<br> * Average error is about 0.5 mm. * Use computeIsoCenter() instead! * * @return the iso center of the scan trajectory. * @see #computeIsoCenter() */ public PointND computeIsoCenterOld(){ Random random = new Random(System.currentTimeMillis()); ArrayList<PointND> list = new ArrayList<PointND>(); for (int i = 0; i < 150; i++){ int random1 = random.nextInt(getProjectionMatrices().length); Projection proj1 = getProjectionMatrices()[random1]; StraightLine line1 = new StraightLine(new PointND(proj1.computeCameraCenter()),proj1.computePrincipalAxis().normalizedL2()); int random2 = random.nextInt(getProjectionMatrices().length); Projection proj2 = getProjectionMatrices()[random2]; StraightLine line2 = new StraightLine(new PointND(proj2.computeCameraCenter()),proj2.computePrincipalAxis().normalizedL2()); try { PointND p = line1.intersect(line2, 2000); if (p!= null){ list.add(p); } } catch(Exception e){ } } PointND center = new PointND(0,0,0); for (PointND p:list){ center.getAbstractVector().add(p.getAbstractVector()); } center.getAbstractVector().divideBy(list.size()); return center; } /** * Call of this Method will replace the entries in the internal primaryAngle Array with values that are computed * from the projection matrices. * Do not call this too often, the gradient descent is quite slow. */ public void updatePrimaryAngles(){ // Internal Coordinates we want to use for visualization: (0,0,0) to (1,1,1); Trajectory trajectory = this; PointND min = new PointND(Double.MAX_VALUE, Double.MAX_VALUE, Double.MAX_VALUE); PointND max = new PointND(-Double.MAX_VALUE, -Double.MAX_VALUE, -Double.MAX_VALUE); for (Projection p: trajectory.getProjectionMatrices()){ PointND source = new PointND(p.computeCameraCenter()); min.updateIfLower(source); max.updateIfHigher(source); } PointND center = trajectory.computeIsoCenter(); SimpleVector range = max.getAbstractVector(); range.add(min.getAbstractVector().negated()); for (int i=0;i<3;i++){ if (range.getElement(i) < 0.1) range.setElementValue(i, 0.1); } // direction in the first halfspace SimpleVector normdir = new SimpleVector(1,0,0); // direction for the angular computation in the other halfspace SimpleVector normdir2 = new SimpleVector(-1,0,0); // compute normalized source position. SimpleVector scaledCoordinate = trajectory.getProjectionMatrix(0).computeCameraCenter(); scaledCoordinate.add(center.getAbstractVector().negated()); scaledCoordinate.normalizeL2(); SimpleMatrix normRot = Rotations.getRotationMatrixFromAtoB(scaledCoordinate, normdir); for (int i = 0; i < trajectory.getProjectionMatrices().length; i++){ // Normalize points and move them to the center Projection p = trajectory.getProjectionMatrices()[i]; scaledCoordinate = p.computeCameraCenter(); scaledCoordinate.add(center.getAbstractVector().negated()); scaledCoordinate.normalizeL2(); scaledCoordinate = SimpleOperators.multiply(normRot, scaledCoordinate); double angle = Rotations.getRotationFromAtoB(normdir, scaledCoordinate); if (scaledCoordinate.getElement(1) > 0){ // Other half space: angle = Math.PI + Rotations.getRotationFromAtoB(normdir2, scaledCoordinate); } // primary Angles are stored in Degrees. primaryAngles[i] = General.toDegrees(angle); } // set first angle to 0; boolean invert = primaryAngles[0] > primaryAngles[1]; double substract = primaryAngles[0]; if (invert) substract = primaryAngles[primaryAngles.length-1]; for (int i=primaryAngles.length-1; i >= 0;i--){ primaryAngles[i] -= substract; primaryAngles[i] = primaryAngles[i] % 360; if (primaryAngles[i] < 0) primaryAngles[i] = 360 + primaryAngles[i]; } } /** * Computes the iso center of the current trajectory. * Computation is based on a gradient descent procedure:<br> * The objective function is<br> * f(p, r) = (\Sum (x-p)^\top(x-p)-r^2)^2<br> * where<br> * p is the iso center and r the source to iso center distance. x are the different source positions. * The objective function is basically the sphere equation and we seek to find the closest point that fulfills the equation at 0. * Hence, we compute the square and use a gradient descent-type of solver.<br><br> * The derivatives are:<br> * f(p, r) / dp = 2 * (\Sum (x-p)^\top(x-p)-r^2) * (-2\Sum(x-p))<BR> * f(p, r) / dr = 2 * (\Sum (x-p)^\top(x-p)-r^2) * (-2\Sum(r)) * * We do 15 attempts just to be on the save side. * Still quite brute force, but better than guessing.<br> * Testing with 100 tries gives a standard deviation of 2.208233228965341E-15 per coordinate<br> * Average error is about 2.4312505535109182E-14. * * @return the iso center of the scan trajectory. */ public PointND computeIsoCenter(){ // create list with source positions ArrayList<PointND> list = new ArrayList<PointND>(); for (Projection p: this.getProjectionMatrices()){ list.add(new PointND(p.computeCameraCenter())); } IsoCenterObjectiveFunction function = new IsoCenterObjectiveFunction(list); FunctionOptimizer fo = new FunctionOptimizer(); fo.setDimension(4); fo.setOptimizationMode(OptimizationMode.Function); fo.setConsoleOutput(false); PointND center = null; double min = Double.MAX_VALUE; for (int i = 0; i < 15; i++) { PointND firstGuess = computeIsoCenterOld(); //firstGuess = new PointND(0,0,0); fo.setInitialX(new double [] {firstGuess.get(0),firstGuess.get(1),firstGuess.get(2),sourceToAxisDistance}); double [] result = fo.optimizeFunction(function); if (function.evaluate(result, 0) < min) { center = new PointND(result[0],result[1],result[2]); min = function.evaluate(result, 0); } } //System.out.println(firstGuess + " " + center); return center; } private class IsoCenterObjectiveFunction implements GradientOptimizableFunction { ArrayList<PointND> sourcePositions; public IsoCenterObjectiveFunction(ArrayList<PointND> list){ sourcePositions = list; } @Override public void setNumberOfProcessingBlocks(int number) { // not parallel } @Override public int getNumberOfProcessingBlocks() { return 1; } @Override public double evaluate(double[] x, int block) { double sum = 0; double r2 = x[3]*x[3]; for (PointND p: sourcePositions){ SimpleVector diff = new SimpleVector(p.get(0)-x[0],p.get(1)-x[1],p.get(2)-x[2]); sum += SimpleOperators.multiplyInnerProd(diff, diff) - r2; } System.out.println("function " + sum*sum + " " + new SimpleVector(x)); return (sum*sum); } @Override public double[] gradient(double[] x, int block) { double [] grad = new double [4]; double sum =0; double r2 = x[3]*x[3]; System.out.println("x: " + new SimpleVector(x)); try{ for (PointND p: sourcePositions){ SimpleVector diff = new SimpleVector(p.get(0)-x[0],p.get(1)-x[1],p.get(2)-x[2]); sum += (SimpleOperators.multiplyInnerProd(diff, diff) - r2); grad[0] += diff.getElement(0) * -2.0; grad[1] += diff.getElement(1) * -2.0; grad[2] += diff.getElement(2) * -2.0; grad[3] += -2.0 * x[3]; } grad[0] *= sum * 2.0; grad[1] *= sum * 2.0; grad[2] *= sum * 2.0; grad[3] *= sum * 2.0; } catch (Exception e){ e.printStackTrace(); } System.out.println("grad: " + new SimpleVector(grad)); return grad; } } /** * Computes the isocenter by a least-squares problem. The isocenter is computed by the * smallest squared Eucledian distance to all principle rays. * See [1] for more details. * * [1] <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, * <NAME>, and <NAME>, “Fiducial marker-based correction for involuntary * motion in weight-bearing C-arm CT scanning of knees. II. Experiment,” * Med. Phys., vol. 41, no. 6, p. 061902, Jun. 2014. */ public PointND computeIsoCenterSolve(){ SimpleMatrix M = new SimpleMatrix(2*getProjectionMatrices().length,3); SimpleVector vals = new SimpleVector(2*getProjectionMatrices().length); int idx = 0; for (int i = 0; i < getProjectionMatrices().length; i++) { Projection proj = getProjectionMatrices()[i]; SimpleMatrix projMat = proj.computeP(); SimpleVector vec3 = projMat.getSubRow(2, 0, 3); SimpleVector vec2 = projMat.getSubRow(1, 0, 3); SimpleVector vec1 = projMat.getSubRow(0, 0, 3); double ppU = proj.getPrincipalPoint().getElement(0); double ppV = proj.getPrincipalPoint().getElement(1); M.setRowValue(idx, SimpleOperators.subtract(vec3.multipliedBy(ppU),vec1)); vals.setElementValue(idx, -ppU*projMat.getElement(2, 3)+projMat.getElement(0, 3)); idx++; M.setRowValue(idx, SimpleOperators.subtract(vec3.multipliedBy(ppV),vec2)); vals.setElementValue(idx, -ppV*projMat.getElement(2, 3)+projMat.getElement(1, 3)); idx++; } SimpleVector center = Solvers.solveLinearLeastSquares(M, vals); return new PointND(center); } }
java
The Tirumala Tirupati Devasthanams board that runs the richest temple in the temple of Tirupati holds a respectable position. It not only oversees the day-to-day activities and programs at the shrine but also makes sure the devotees have a safe darshan while offering their prayers to the presiding deity. However, the board has been in the news for the wrong reasons as a few members of the board are facing criminal records. On many occasions, the High Court asked what the need is to continue them on the board while others without any criminal record can be taken in. The issue had reached the High Court once again. S. Sudhakar had moved the High Court seeking directives that he should also be permitted for the board meeting along with the MLA. After hearing his arguments, the High Court said that it cannot issue orders at once. The bench of the Andhra Pradesh High Court which heard the petition had adjourned the next hearing to the 20th of June and directed the Andhra Pradesh government to file its counter on the matter as multiple petitions were filed earlier. It has to be mentioned here that, earlier a few petitions were filed in the High Court against the members of the board with criminal cases. The Court earlier said that the government can remove at least half members if not all the members.
english
{ "_comment": "DO NOT EDIT MANUALLY - See ../../../README.md", "name": "gist-img", "full_name": "chrismytton/gist-img", "owner": "chrismytton", "private": false, "html_url": "https://github.com/chrismytton/gist-img", "description": "DEPRECATED: Don't use this, it doesn't work :)", "fork": false, "url": "https://api.github.com/repos/chrismytton/gist-img", "languages_url": "https://api.github.com/repos/chrismytton/gist-img/languages", "pulls_url": "https://api.github.com/repos/chrismytton/gist-img/pulls{/number}", "created_at": "2012-06-26T23:23:04Z", "updated_at": "2017-12-12T12:55:50Z", "pushed_at": "2015-09-04T21:53:03Z", "homepage": "", "size": 170, "stargazers_count": 52, "language": "Shell", "mirror_url": null, "archived": true, "license": { "key": "mit", "name": "MIT License", "spdx_id": "MIT", "url": "https://api.github.com/licenses/mit", "node_id": "MDc6TGljZW5zZTEz" }, "default_branch": "master", "contributors": { "chrismytton": 9 }, "pulls_authors": [ "israelshirk", "Nikkolina23" ], "languages": { "Shell": { "bytes": 1040, "color": "#89e051" }, "Ruby": { "bytes": 423, "color": "#701516" } }, "fetched_at": "2018-09-12T04:59:45.977Z" }
json
// All export * from './lib/ui.module'; // Components export * from './lib/components/components.module'; export * from './lib/components/util/util-components.module'; export * from './lib/components/layout/layout-components.module'; export * from './lib/components/util/confirmation-dialog/confirmation-dialog.component'; export * from './lib/components/not-found/not-found.component'; export * from './lib/components/unauthorized/unauthorized.component'; // Directives export * from './lib/directives/directives.module'; // Pipes export * from './lib/pipes/pipes.module'; //material export * from './lib/material/material.module';
typescript
#!/usr/bin/python3 ##python3 闭包 与 nonlocal #如果在一个内部函数里,对在外部作用域(但不是在全局作用域)的变量进行引用, #那么内部函数就被认为是闭包(closure) def A_(): var = 0 def clo_B(): var_b = 1 # 闭包的局部变量 var = 100 print(var) # 引用外部的var , 但是不会改变var 的值 return clo_B #clo_B是一个闭包 #nonlocal 关键字 def A_(): var = 0 def clo_B(): nonlocal var # nonlocal关键字 指定var 不是闭包的局部变量 var = var + 1 # 若 不使用nonlocal 关键字 , 则此行代码会出现错误
python
<filename>tests/conftest.py<gh_stars>0 """ A pytest conftest module that provides pytest fixtures for number theoretic functions. """ import os import pickle import pytest import numpy as np FOLDER = os.path.join(os.path.dirname(os.path.abspath(__file__)), "data") ############################################################################### # Helper functions ############################################################################### def read_pickle(filename): with open(os.path.join(FOLDER, filename), "rb") as f: print(f"Loading {f}...") d = pickle.load(f) return d ############################################################################### # Fixtures for integer math functions ############################################################################### @pytest.fixture(scope="session") def egcd(): return read_pickle("egcd.pkl") @pytest.fixture(scope="session") def lcm(): return read_pickle("lcm.pkl") @pytest.fixture(scope="session") def prod(): return read_pickle("prod.pkl") @pytest.fixture(scope="session") def power(): return read_pickle("power.pkl") @pytest.fixture(scope="session") def crt(): return read_pickle("crt.pkl") @pytest.fixture(scope="session") def isqrt(): return read_pickle("isqrt.pkl") @pytest.fixture(scope="session") def iroot(): return read_pickle("iroot.pkl") @pytest.fixture(scope="session") def ilog(): return read_pickle("ilog.pkl") ############################################################################### # Fixtures for Number Theory functions ############################################################################### @pytest.fixture(scope="session") def euler_phi(): return read_pickle("euler_phi.pkl") @pytest.fixture(scope="session") def carmichael_lambda(): return read_pickle("carmichael_lambda.pkl") @pytest.fixture(scope="session") def is_cyclic(): return read_pickle("is_cyclic.pkl") ############################################################################### # Fixtures for Number Theory functions ############################################################################### @pytest.fixture(scope="session") def primes(): return read_pickle("primes.pkl") @pytest.fixture(scope="session") def kth_prime(): return read_pickle("kth_prime.pkl") @pytest.fixture(scope="session") def prev_prime(): return read_pickle("prev_prime.pkl") @pytest.fixture(scope="session") def next_prime(): return read_pickle("next_prime.pkl") @pytest.fixture(scope="session") def is_prime(): return read_pickle("is_prime.pkl") @pytest.fixture(scope="session") def is_prime_power(): return read_pickle("is_prime_power.pkl") @pytest.fixture(scope="session") def is_perfect_power(): return read_pickle("is_perfect_power.pkl") @pytest.fixture(scope="session") def is_square_free(): return read_pickle("is_square_free.pkl") @pytest.fixture(scope="session") def is_smooth(): return read_pickle("is_smooth.pkl") @pytest.fixture(scope="session") def is_powersmooth(): return read_pickle("is_powersmooth.pkl")
python
<reponame>shapoval-darya/CATSdesigner export class GroupStatsStatistic { Code: string; Message: string; GroupName: string; Students: GroupStatsStudent[]; } export class GroupStatsStudent { FIO: string; Id: number; Rating: number; UserAvgLabMarks: StatsValue[]; UserAvgTestMarks: StatsValue[]; UserLabCount: StatsValue[]; UserLabPass: StatsValue[]; UserLecturePass: StatsValue[]; UserTestCount: StatsValue[]; } export class StatsValue { Key: number; Value: number; }
typescript
David Wiese played a significant role with both bat and ball in helping Namibia qualify in the Super 12 stage. After losing the first game against Sri Lanka, Namibia went on to win their next two games in the first round against Netherlands and Ireland. The last game was a potential knockout for both sides. David Wiese picked 2 for 22 in that game and then played an unbeaten 28-run knock off 14 balls to help the side reach the next round. He finished as the sixth-highest run-scorer in the tournament with 227 runs in 6 matches at an average of 45.40. Besides, he picked 6 wickets in 8 matches.
english
//package com.example.application.dca.agents; // //import ac.udsm.dca.core.*; ////import jade.core.AID; //import jade.domain.FIPAAgentManagement.DFAgentDescription; //import jade.domain.FIPAAgentManagement.Property; //import jade.domain.FIPAAgentManagement.ServiceDescription; //import jade.lang.acl.ACLMessage; // //import java.io.FileNotFoundException; //import java.io.FileReader; //import java.util.HashMap; //import java.util.Map; //import java.util.Scanner; // //public class LoadAgent extends ClientAgent { // public int gridId; // public int id; // private AID grid; // private Map<Integer, Line> buses; // // // @Override // protected void setup() { // Object[] args = getArguments(); // if (args != null && args.length > 0) { // gridId = Integer.parseInt(String.valueOf(args[0])); // } // if (register(LOAD_AGENT, "-Load monitor")) { // readNodes(); // addBehaviour(new FindController(this)); // } // } // // @Override // protected void onTick(int timestamp) { // print(timestamp); // } // // private void readNodes() { // Scanner sc = null; // try { // sc = new Scanner(new FileReader("nodes/node-" + id + ".txt")); // buses = new HashMap<>(); // while (sc.hasNextLine()) { // Line bus = new Line(sc.nextLine()); // buses.put(bus.getId(), bus); // } // } catch (FileNotFoundException e) { // e.printStackTrace(); // } // } // // public double[][] getBusMatrix() { // double[][] lines = new double[buses.size()][]; // int index = 0; // for (int id : buses.keySet()) { // Line bus = buses.get(id); // double[] values = new double[]{ // id, // bus.getRealPower(), // bus.getReactivePower() // }; // lines[index] = values; // } // return lines; // } // // public double[][] getLineMatrix() { // double[][] lines = new double[buses.size() - 1][]; // int index = 0; // for (int id : buses.keySet()) { // Line bus = buses.get(id); // if (bus.getParentId() != -1) { // double[] values = new double[]{ // bus.getIndex(), // bus.getParentId(), // bus.getId(), // bus.getResistance(), // bus.getReactance() // }; // lines[index] = values; // } // // } // return lines; // } // // class FindController extends AgentBehaviour { // private boolean found = false; // // FindController(BaseAgent agent) { // super(agent, Conversation.LOAD_SUBSCRIPTION); // } // // @Override // protected ACLMessage handleInform(ACLMessage msg) { // print("my id is " + msg.getContent()); // setDone(true); // return null; // } // // @Override // protected void run() { // if (grid == null) { // DFAgentDescription[] items = findAgents(GRID_AGENT); // if (items != null) { // for (int i = 0; i < items.length; i++) { // DFAgentDescription item = items[i]; // while (item.getAllServices().hasNext()) { // ServiceDescription svc = (ServiceDescription) item.getAllServices().next(); // if (svc.getAllProperties().hasNext()) { // Property p = (Property) svc.getAllProperties().next(); // if (p.getName().equals("id") && Integer.parseInt((String) p.getValue()) == gridId) { // grid = item.getName(); // print("Found controller " + grid.getName()); // found = true; // break; // } // } // } // if (found) { // break; // } // } // } // if (found) { // sendMessage(Conversation.LOAD_SUBSCRIPTION, 0, grid, ACLMessage.SUBSCRIBE); // } // } // // } // } // // void powerFlow() { // // } //}
java
Jawed Ashraf, Ambassador of India to France and Monaco also said that French companies are developing the aviation sector from an industrial and servicing standpoint in India. There is a lot of buzz about India at the Paris Air Show, the world's largest air show, which alternates with Farnborough in Britain, is at Le Bourget for the first time in four years after the 2021 edition fell victim to the pandemic. This comes after IndiGo's monumental order for 500 Airbus narrowbody jets, billed as the largest order ever placed with Airbus. In February, Air India also placed orders for 470 aircraft from both Airbus and Boeing. In an exclusive with ANI, Jawed Ashraf, Ambassador of India to France and Monaco said, "There is a lot of buzz at the Paris Air Show about India. This comes from the announcement by Indigo Airlines and what is billed as the largest order for Airbus. This follows the order that Air India had placed both on Airbus and Boeing for 470 aircraft just in February." The buying spree by Indian airlines adds to signs of strong global demand for civilian aircraft as travel rebounds from the pandemic and airlines look to reduce their environmental impact with more fuel-efficient new models. "Everyone recognizes that the aviation sector is growing at a very rapid pace. India is one of the top three aviation markets, the number of airports has doubled from 74 in the course of just nine years and the traffic at major airports is growing at double-digit rates. Now, this is the size and the market; therefore, we have placed more orders for aircraft, and there are aircraft flying in India. We hope that this will also translate into India becoming a major aviation hub and becoming a major carrier for international traffic and re-emerge as one of the major aviation service providers in the world," said Ashraf. Air India's deal includes 250 planes from Airbus and 220 from Boeing. The Airbus part comprises 210 A320neo and A321neo narrowbody jets and 40 A350 widebodies, while the Boeing deal is for 190 737 MAX, 20 787 Dreamliners and 10 mini-jumbo 777X. Ambassador Ashraf also said that French companies are developing the aviation sector from an industrial and servicing standpoint in India. "Safran, the French company that makes engines, both military and civil aviation engines has just announced that it is going to set up its largest global MRO which is a maintenance repair overhaul facility in Hyderabad. We will serve not just the engines of Indian aircraft, but also the entire region," said the Indian envoy. Moreover, there are many companies including French companies that have started manufacturing components, advanced systems for aircraft and engines and some of these require very advanced technologies and Safran inaugurated two plants last year to manufacture engine parts in Bengaluru and Hyderabad. Also, Airbus and Boeing are manufacturing various components and systems and subsystems designing, doing research and development and engineering works in India. "So there's a lot of value addition in the aviation sector. From the perspective of design, development, engineering, and manufacturing, we tend to focus a lot on the complete platforms. But I think there is a lot of value addition in developing manufacturing specific components, subsystems parts during the design and engineering," said Ashraf. Speaking about defence aviation, he said that India is one of the major military powers in the world and Prime Minister Narendra Modi's vision for Atma Nirbhar Bharat has provided further impetus to realise the goal of indigenisation of the defence sector. "Today, there is a lot of interest from all defence aviation companies, and we've seen that in the Paris Air Show not just the French companies, but companies from everywhere else that are interested in setting up manufacturing design and development and engineering facilities in India," said Ashraf. PM Modi has taken a clear stance that India must become sovereign, and self-reliant in the defence industry in order to really be a secure nation and create employment in India and not just abroad. "You can see there is a buzz in Paris Air Show, also because everyone recognizes that to make supply chains resilient, they need to diversify the supply chains. COVID was a great learning experience in the geopolitical competition and tensions are another reason why all aviation companies whether they make military or civil and usually they do both are wanting to diversify and set up supply chains in India, not just for the Indian market, but for the global market," said the Indian envoy. He said that many companies have made several proposals to India regarding it. "This really is a reflection of two things. One is the fact that PM Modi has made a very clear decision that India is not going to simply continue with the buyer-seller relationship and is not going to become simply a buyer of foreign equipment. He wants to develop a defence industry, a truly sovereign and self-reliant defence industry that's important for our economy. It's important for our security. The second reason we are looking ahead is because of the fact that France and India shared a very strong and strategic partnership, and that gives us that comfort to proceed with this," said Ashraf. Talking about PM Modi's upcoming visit to France, invited as the Guest of Honour for the National Day on July 14, he said, "During that period, we will have a tri-service marching contingent over here. We will also have a military band and in addition to that, fly past by our fighter jets." India and France are celebrating 25 years of strategic partnership between the two countries, which was signed in 1998 by Indian PM Atal Bihari Vajpayee and French President Jacques Chirac. "Since then, our relationship has transformed completely it's grown in every dimension. This is a moment both to celebrate that journey, but also to look ahead over the next 25 years and beyond to raise the ambitions of our partnership to work in a very diverse set of areas, the broad range of areas, and our relationship is no longer just confined to bilateral partnership, but it has a genuinely global perspective, key partnership for the Indo-Pacific region," said the Indian envoy. (ANI)
english
<filename>AlchemyInsights/sharepoint-migration-w-spmt.md<gh_stars>0 --- title: Migração sharePoint com SPMT ms.author: v-todmc author: todmccoy manager: mnirkhe ms.date: 04/21/2020 ms.audience: Admin ms.topic: article ROBOTS: NOINDEX, NOFOLLOW localization_priority: Normal ms.collection: Adm_O365 ms.custom: - "5300030" - "2594" ms.openlocfilehash: 32afe7771a10e4d5ac9b6bd90467debc2961d0b7 ms.sourcegitcommit: e6d73d240669342fde9d4d25b0ee2838b7e43965 ms.translationtype: MT ms.contentlocale: pt-PT ms.lasthandoff: 05/14/2020 ms.locfileid: "44235363" --- # <a name="sharepoint-migration-with-spmt"></a>Migração sharePoint com SPMT Projetada para ser usada para migrações que vão desde o menor conjunto de ficheiros até uma migração empresarial em larga escala, a Ferramenta de Migração SharePoint permitirá transferir as suas informações para a nuvem e tirar partido das mais recentes soluções de colaboração, inteligência e segurança com o Microsoft 365. - [Download and install the SharePoint Migration Tool](https://docs.microsoft.com/sharepointmigration/introducing-the-sharepoint-migration-tool) (Transferir e Instalar a Ferramenta de Migração do SharePoint) - [Resolução de problemas comum problemas e erros de SPMT](https://docs.microsoft.com/sharepointmigration/troubleshooting-common-spmt-issues) - [Problemas de resolução de problemas problemas de instalação SPMT](https://docs.microsoft.com/sharepointmigration/spmt-install-issues#troubleshooting-spmt-installation-issues)
markdown
Begin typing your search above and press return to search. Indian hockey team captain Rani Rampal has achieved everything the hard way in life. In India, it's a nightmare situation if a girl announces that she wants to play sports for a career and a living. All hell breaks loose especially when you come from a conservative place like I do. Back then, the only comprehensive reason for any girl to take up sports was the possibility of a comfortable job. To be honest, that was my reason to take up hockey as well. I was 7 when I was drawn to the game and the only motivation riding me was the fact that being a hockey player would help me rid my family of poverty. It became a sort of obsession for me, growing up. The fact that my town, Shahabad, had one of the best coaching centers for women's hockey played a huge role in me picking up the sport. It wasn't a plan. It wasn't destiny. It was just a way out to suit utilitarian purposes. Back then, my family situation was such that we could not afford an alarm clock. Practice started at 5 am every day and it was quite a task to wake up on time and reach the ground. My mother somehow managed to guess the time by looking at the sky each morning. That's how she would wake me up to get ready for another fresh day of Hockey. If it hadn't been for her, I wouldn't have gotten any sleep at all. While she may have been accurate for the major chunk of my early days in this academy, there were a couple of days when her sky-reading skills fell a little short of perfect. I remember how on one particular day I reached the ground at 5:02. My coach, Baldev Singh was furious and I got a proper earful before practice even started. After that, he told me to pay a fine the next day for being late- a sum of two hundred rupees. The moment he pronounced that sentence and punishment, I was scared beyond my wits. For one, my father's daily earnings were nothing close to the amount he was asking for and I knew that if I went and told my parents about this, they would probably put a stop to me playing hockey for good. Somehow, I mustered up the courage to tell my mother and I pleaded with her to make the amount possible before the next day. She, for once, understood how important this was to me. But even though she tried her level best by borrowing from people around us, it was impossible to reach the figure coach had quoted. A hundred rupees was all she managed to give me. That night, I got no sleep. I kept thinking that I had just reached the end of my career as a hockey player. Somehow, I could not digest that thought. Also read: I was the only girl competing and playing with a pack of boys The next day, I was right on time. I went and gave the money to my coach and, as expected, I got an earful for not paying up the fine when I had clearly made a major mistake. Anyway, he allowed me to play after a proper scolding but at the end of training that day, he called me and asked me why I had failed to pay up the amount he had asked for. The intimidated kid that I was, I managed to stammer out a reply about how 100/- was all my family could afford to pay. He smiled on hearing that. "I don't want your money," he said. "But you must have learned a valuable lesson from this incident, didn't you?" "Discipline is important if you want to pursue sports," he said. "And unless you implement that in life, it will never reflect in your game." Till today, I make sure to be right on time whenever I have an appointment to keep. If necessary, I reach the place about 10-15 minutes early. I don't even have to try anymore, punctuality just comes naturally to me now- like it's a part of my personality. The next day, Baldev sir returned an amount of Rs 200/- to me even though I had only given him hundred for the fine he asked me. He told me not to ask any questions and to resume with my training. But I was determined to leave no room for doubt. I had decided that no matter what, I would find a permanent solution to this problem- one that did not involve my mother having to go sleepless to ensure that I reached the ground on time. My school used to have these handwriting competitions and the winner was awarded an alarm clock. I knew this and then, it seemed like the easiest solution to my problem. I cannot tell you how hard I practiced just to win the competition. Till then, hockey was the only thing which had seen that kind of dedication on my part so it was a little surprising to the people around me when I decided to practice writing like it was the end of the world. But it finally paid off, thankfully. I won the alarm clock. That moment that they announced me as the winner, I felt like I had achieved the greatest thing I ever would. That was what I needed and I worked hard to finally achieve it. All those hand cramps from practicing my handwriting seemed worth it and for a long time, this clock was the only clock in my house. At that point, it seemed that all problems were solved and done with. There was nothing standing in the way of me concentrating wholeheartedly on Hockey. Still, we had no concept of what the National team meant or the prestige that comes with being a part of it. During all this, I used to be a good student in school but that was partly because my family threatened to stop me from playing Hockey unless I maintained 80% till Std 12. That wasn't the only ultimatum I got, though. My Hockey academy coach had his own conditions. He once told me that he would only allow me to continue playing the game if he succeeded in making a good player out of me. If he failed, there really was no point to me carrying on my relationship with Hockey. I think, at that point, I had decided that I never wanted to disappoint him. You know sometimes, you don't believe in yourself but there's someone else who does- someone who thinks you are worth the effort. Such people are the ones who should never be let down no matter what. They go out of their way to ensure that you live up to the standard you are capable of. So if someone else is putting in that time for me, who am I to argue? From there, my academy went on to win the Gold in the U14 State Championship from which began my career in the National team. I don't remember any domestic tournament that we finished in second place in. Winning the Districts earned us a sum of Rs 500/- each and you can imagine the ecstasy that was quite evident in each member of the team. Baldev sir, however, insisted that we all have the prize money transferred to our own individual accounts. He knew that, mostly, all of us came from poverty-stricken families and he did not want the amount to be squandered away. "Only when you are stable can you help your family," he always said. For a long time he kept our bank passbooks with himself and anytime we wanted to spend money, we had to go and ask him. Such good money management ensured that by the time we reached the national team, we had at least some money in our respective accounts.I cannot say it was much- but it was enough and a respectable amount. The idea behind that was to teach us to spend our money properly. Once we had a stable bank account, it even gave us some motivation to play because we could see that our hard work was being duly rewarded and we could actually survive because of Hockey. That was an impetus to fight more, to cover more ground and overcome bigger targets. Also read: For the first 14 years of my life, I lived in a slum. Now I play for India. In 2005, I was selected in the National Sub-Junior camp and, truth be told, I had no idea about how any of it worked. I had no idea that that was where selections to the national teams are done from. It was just that my name came up, and I arrived. My coach here proved to be another hard taskmaster. As a part of our training, he asked all of us to lift weights amounting to 80kgs. In those days, my whole body weight was just 36kgs. So essentially, he was asking me to lift an amount greater than double my own weight. At first, I refused but he insisted that I would have to do this if I were to stay in the Camp. I was new, whatever little resistance I had, crumbled and I quietly set to work. Predictably, I got a major back injury and was out of play for nearly a year. Only an athlete understands what you go through when you're injured. Voluntarily giving up the game is one thing but injury? Your hands are tied, there's nothing you can do except wait for your body to recover. It's probably the most difficult time in the life of an athlete. Personally, I had given up hope. I was told that I would never return to the national camp as I was too weak. My coach at the camp told Baldev Sir that I did not have the strength and stamina needed to play for the National team. That statement inevitably hurt the ego of the man who had once promised to make me give up hockey if he failed to make me a good player from the country. Slowly, but steadily, intense physiotherapy and work helped me regain my health. Once again, Baldev sir stepped in at a juncture where I had given up hope. I resented him a lot back then. In fact, I myself had given up going for training because it was that painful and I did not think the effort was worth it. But I had to rethink it soon enough because I knew that if I did not turn up for practice, he would reach my home and force me to go. "You, of all people, are not giving up hockey," he kept saying. Looking back, I realise that this perseverance adds to the already huge debt that I owe him- one that I can never hope to repay. I resumed playing in 2007 and got another shot in the National team when my performance in the Guwahati nationals caught the eye of the selectors. The next year, I got my debut in the national team as I played in the qualifying matches. We finished fourth in the qualifying rounds but it was still a huge deal for us. To be honest, I had no inkling of what the Olympics were. I only knew that I was playing for India and I had to give it all. Also read: Have always aimed for podium finishes and 2018 is no different: In conversation with the Indian Women's Hockey Team Little snippets of education like this teaches one to be a leader. There are two ways to learn- from other people and from the mistakes you make on your own. For my part, I have always believed that good leaders must have had good mentors. Leadership isn't natural as most people like to believe. More often than not, it's the result of slow and painful progress-both physically and emotionally. If you want to change something, that process has to start from you. You just cannot sit around waiting for circumstances to suit you before you take any step. In a particularly tight corner during a match or even in life, it is important to take the plunge if you think there is the slightest chance that you can make a difference. That fearlessness is what makes people look up to you. As a captain, that's important. Not only do you have the burden of an entire nation resting on you, you also have to shoulder the team that looks up to you. During trials or practice, there are people to mentor you. On the turf, you're alone. And in a match situation, you have a split second to take your decision and it's irreversible. Tough situations where you literally feel backed up to a wall, they teach you a lot. For one, they let you know the exact depth of your passion for whatever it is you are doing in life. You know, coming from a state like Haryana, the difference in passion between a male and a female athlete is clearly visible. The boys always got it easy. They had no one to oppose them. For the girls, they had their task cut out for them. Every player in my academy had a burning desire to do well, they all had somebody they had to prove wrong. For my part, even though convincing my parents took time, it still felt easier than continuously fighting my relatives and extended family. We had become the laughing stock back then. Now that tune has changed into congratulations whenever they see me perform well. Ultimately, that is what I want. I want to break the stigma that girls are any less than boys. I want to be the one that people in my hometown and state hold up as an example of to teach their daughters that they have the world before them which won't be limited because of their gender. I want to win the ultimate accolades for my country in Hockey so that more women take up the sport. I have come a long way since. I came from getting my Olympic Qualifiers debut in 2008 and not knowing what the Olympics meant to becoming the captain of the Women's team. But I am not satisfied. Each day brings with it newer challenges and, as a leader, it is my duty to face them all. Only if I do, can I expect the rest of the team to be resilient. For now, I am still in touch with Baldev sir. He has a simple thing he often tells me and that keeps me motivated. "Hockey has given you everything. Be sure to leave no stone unturned in returning all you have got to the game."
english
Before giant waves slammed into Sri Lanka and India coastlines ten days ago, wild and domestic animals seemed to know what was about to happen and fled to safety. According to eyewitness accounts, the following events happened: - Elephants screamed and ran for higher ground. - Dogs refused to go outdoors. - Flamingos abandoned their low-lying breeding areas. - Zoo animals rushed into their shelters and could not be enticed to come back out. The belief that wild and domestic animals possess a sixth sense—and know in advance when the earth is going to shake—has been around for centuries. Wildlife experts believe animals’ more acute hearing and other senses might enable them to hear or feel the Earth’s vibration, tipping them off to approaching disaster long before humans realize what’s going on. The massive tsunami was triggered by a magnitude 9 temblor off the coast of northern Sumatra island on December 26. The giant waves rolled through the Indian Ocean, killing more than 150,000 people in a dozen countries. Relatively few animals have been reported dead, however, reviving speculation that animals somehow sense impending disaster. Ravi Corea, president of the Sri Lanka Wildlife Conservation Society, which is based in Nutley, New Jersey, was in Sri Lanka when the massive waves struck. Afterward, he traveled to the Patanangala beach inside Yala National Park, where some 60 visitors were washed away. The beach was one of the worst hit areas of the 500-square-mile (1,300-square-kilometer) wildlife reserve, which is home to a variety of animals, including elephants, leopards, and 130 species of birds. Corea did not see any animal carcasses nor did the park personnel know of any, other than two water buffalos that had died, he said. Along India’s Cuddalore coast, where thousands of people perished, the Indo-Asian News service reported that buffaloes, goats, and dogs were found unharmed. Flamingos that breed this time of year at the Point Calimere wildlife sanctuary in India flew to higher ground beforehand, the news service reported. Accounts of strange animal behavior have also started to surface. About an hour before the tsunami hit, Corea said, people at Yala National Park observed three elephants running away from the Patanangala beach. World Wildlife Fund, an organization that leads international efforts to protect endangered species and their habitats, has satellite collars on some of the elephants in the park. A spokeswoman said they plan to track the elephants on that fateful day to verify whether they did move to higher ground. She doesn’t know, though, when the satellite data will be downloaded and analyzed. Corea, a Sri Lankan who emigrated to the United States 20 years ago, said two of his friends noticed unusual animal behavior before the tsunami. One friend, in the southern Sri Lankan town of Dickwella, recalls bats frantically flying away just before the tsunami struck. Another friend, who lives on the coast near Galle, said his two dogs would not go for their daily run on the beach. "They are usually excited to go on this outing," Corea said. But on this day they refused to go and most probably saved his life. Alan Rabinowitz, director for science and exploration at the Bronx Zoo-based Wildlife Conservation Society in New York, says animals can sense impending danger by detecting subtle or abrupt shifts in the environment. "Earthquakes bring vibrational changes on land and in water while storms cause electromagnetic changes in the atmosphere," he said. "Some animals have acute sense of hearing and smell that allow them to determine something coming towards them long before humans might know that something is there. " Did Humans Lose Their Sixth Sense? At one time humans also had this sixth sense, Rabinowitz said, but lost the ability when it was no longer needed or used. Joyce Poole is director of the Savanna Elephant Vocalization Project, which has its headquarters in Norway. She has worked with African elephants in Kenya for 25 years. She said the reports of Sri Lanka’s elephants fleeing to higher ground didn’t surprise her. Research on both acoustic and seismic communication indicates that elephants could easily pick up vibrations generated from the massive earthquake-tsunami, she said. Poole has also experienced this firsthand. "I have been with elephants during two small tremors, and on both occasions the elephants ran in alarm several seconds before I felt the tremor," she said. One of the world’s most earthquake-prone countries is Japan, where devastation has taken countless lives and caused enormous damage to property. Researchers there have long studied animals in hopes of discovering what they hear or feel before the earth shakes. They hope that animals may be used as a prediction tool. Some U. S. seismologists, on the other hand, are skeptical. There have been documented cases of strange animal behavior prior to earthquakes. But the United States Geological Survey, a government agency that provides scientific information about the Earth, says a reproducible connection between a specific behavior and the occurrence of a quake has never been made. "What we’re faced with is a lot of anecdotes," said Andy Michael, a geophysicist at USGS. "Animals react to so many things—being hungry, defending their territories, mating, predators—so it’s hard to have a controlled study to get that advanced warning signal. " In the 1970s a few studies on animal prediction were done by the USGS, "but nothing concrete came out of it," Michael said. Since that time the agency has made no further investigations into the theory. Dhama Jagruti Sabhas is creating mass awareness among Hindus about various problems affecting Hindu Dharma. Temples are the centres of Hindu Dharma. Anti Hindu forces like Muslims, Congress, Christians has constantly targetted them. HJS is fighting against these forces.
english
<gh_stars>1-10 // Copyright 2020 <NAME> // SPDX-License-Identifier: Apache-2.0 // (Re-)generated by schema tool // >>>> DO NOT CHANGE THIS FILE! <<<< // Change the json schema instead package coreblocklog import "github.com/iotaledger/wasp/packages/wasmvm/wasmlib/go/wasmlib/wasmtypes" type ImmutableControlAddressesResults struct { proxy wasmtypes.Proxy } func (s ImmutableControlAddressesResults) BlockIndex() wasmtypes.ScImmutableUint32 { return wasmtypes.NewScImmutableUint32(s.proxy.Root(ResultBlockIndex)) } func (s ImmutableControlAddressesResults) GoverningAddress() wasmtypes.ScImmutableAddress { return wasmtypes.NewScImmutableAddress(s.proxy.Root(ResultGoverningAddress)) } func (s ImmutableControlAddressesResults) StateControllerAddress() wasmtypes.ScImmutableAddress { return wasmtypes.NewScImmutableAddress(s.proxy.Root(ResultStateControllerAddress)) } type MutableControlAddressesResults struct { proxy wasmtypes.Proxy } func (s MutableControlAddressesResults) BlockIndex() wasmtypes.ScMutableUint32 { return wasmtypes.NewScMutableUint32(s.proxy.Root(ResultBlockIndex)) } func (s MutableControlAddressesResults) GoverningAddress() wasmtypes.ScMutableAddress { return wasmtypes.NewScMutableAddress(s.proxy.Root(ResultGoverningAddress)) } func (s MutableControlAddressesResults) StateControllerAddress() wasmtypes.ScMutableAddress { return wasmtypes.NewScMutableAddress(s.proxy.Root(ResultStateControllerAddress)) } type ImmutableGetBlockInfoResults struct { proxy wasmtypes.Proxy } func (s ImmutableGetBlockInfoResults) BlockInfo() wasmtypes.ScImmutableBytes { return wasmtypes.NewScImmutableBytes(s.proxy.Root(ResultBlockInfo)) } type MutableGetBlockInfoResults struct { proxy wasmtypes.Proxy } func (s MutableGetBlockInfoResults) BlockInfo() wasmtypes.ScMutableBytes { return wasmtypes.NewScMutableBytes(s.proxy.Root(ResultBlockInfo)) } type ArrayOfImmutableBytes struct { proxy wasmtypes.Proxy } func (a ArrayOfImmutableBytes) Length() uint32 { return a.proxy.Length() } func (a ArrayOfImmutableBytes) GetBytes(index uint32) wasmtypes.ScImmutableBytes { return wasmtypes.NewScImmutableBytes(a.proxy.Index(index)) } type ImmutableGetEventsForBlockResults struct { proxy wasmtypes.Proxy } func (s ImmutableGetEventsForBlockResults) Event() ArrayOfImmutableBytes { return ArrayOfImmutableBytes{proxy: s.proxy.Root(ResultEvent)} } type ArrayOfMutableBytes struct { proxy wasmtypes.Proxy } func (a ArrayOfMutableBytes) AppendBytes() wasmtypes.ScMutableBytes { return wasmtypes.NewScMutableBytes(a.proxy.Append()) } func (a ArrayOfMutableBytes) Clear() { a.proxy.ClearArray() } func (a ArrayOfMutableBytes) Length() uint32 { return a.proxy.Length() } func (a ArrayOfMutableBytes) GetBytes(index uint32) wasmtypes.ScMutableBytes { return wasmtypes.NewScMutableBytes(a.proxy.Index(index)) } type MutableGetEventsForBlockResults struct { proxy wasmtypes.Proxy } func (s MutableGetEventsForBlockResults) Event() ArrayOfMutableBytes { return ArrayOfMutableBytes{proxy: s.proxy.Root(ResultEvent)} } type ImmutableGetEventsForContractResults struct { proxy wasmtypes.Proxy } func (s ImmutableGetEventsForContractResults) Event() ArrayOfImmutableBytes { return ArrayOfImmutableBytes{proxy: s.proxy.Root(ResultEvent)} } type MutableGetEventsForContractResults struct { proxy wasmtypes.Proxy } func (s MutableGetEventsForContractResults) Event() ArrayOfMutableBytes { return ArrayOfMutableBytes{proxy: s.proxy.Root(ResultEvent)} } type ImmutableGetEventsForRequestResults struct { proxy wasmtypes.Proxy } func (s ImmutableGetEventsForRequestResults) Event() ArrayOfImmutableBytes { return ArrayOfImmutableBytes{proxy: s.proxy.Root(ResultEvent)} } type MutableGetEventsForRequestResults struct { proxy wasmtypes.Proxy } func (s MutableGetEventsForRequestResults) Event() ArrayOfMutableBytes { return ArrayOfMutableBytes{proxy: s.proxy.Root(ResultEvent)} } type ImmutableGetLatestBlockInfoResults struct { proxy wasmtypes.Proxy } func (s ImmutableGetLatestBlockInfoResults) BlockIndex() wasmtypes.ScImmutableUint32 { return wasmtypes.NewScImmutableUint32(s.proxy.Root(ResultBlockIndex)) } func (s ImmutableGetLatestBlockInfoResults) BlockInfo() wasmtypes.ScImmutableBytes { return wasmtypes.NewScImmutableBytes(s.proxy.Root(ResultBlockInfo)) } type MutableGetLatestBlockInfoResults struct { proxy wasmtypes.Proxy } func (s MutableGetLatestBlockInfoResults) BlockIndex() wasmtypes.ScMutableUint32 { return wasmtypes.NewScMutableUint32(s.proxy.Root(ResultBlockIndex)) } func (s MutableGetLatestBlockInfoResults) BlockInfo() wasmtypes.ScMutableBytes { return wasmtypes.NewScMutableBytes(s.proxy.Root(ResultBlockInfo)) } type ArrayOfImmutableRequestID struct { proxy wasmtypes.Proxy } func (a ArrayOfImmutableRequestID) Length() uint32 { return a.proxy.Length() } func (a ArrayOfImmutableRequestID) GetRequestID(index uint32) wasmtypes.ScImmutableRequestID { return wasmtypes.NewScImmutableRequestID(a.proxy.Index(index)) } type ImmutableGetRequestIDsForBlockResults struct { proxy wasmtypes.Proxy } func (s ImmutableGetRequestIDsForBlockResults) RequestID() ArrayOfImmutableRequestID { return ArrayOfImmutableRequestID{proxy: s.proxy.Root(ResultRequestID)} } type ArrayOfMutableRequestID struct { proxy wasmtypes.Proxy } func (a ArrayOfMutableRequestID) AppendRequestID() wasmtypes.ScMutableRequestID { return wasmtypes.NewScMutableRequestID(a.proxy.Append()) } func (a ArrayOfMutableRequestID) Clear() { a.proxy.ClearArray() } func (a ArrayOfMutableRequestID) Length() uint32 { return a.proxy.Length() } func (a ArrayOfMutableRequestID) GetRequestID(index uint32) wasmtypes.ScMutableRequestID { return wasmtypes.NewScMutableRequestID(a.proxy.Index(index)) } type MutableGetRequestIDsForBlockResults struct { proxy wasmtypes.Proxy } func (s MutableGetRequestIDsForBlockResults) RequestID() ArrayOfMutableRequestID { return ArrayOfMutableRequestID{proxy: s.proxy.Root(ResultRequestID)} } type ImmutableGetRequestReceiptResults struct { proxy wasmtypes.Proxy } func (s ImmutableGetRequestReceiptResults) BlockIndex() wasmtypes.ScImmutableUint32 { return wasmtypes.NewScImmutableUint32(s.proxy.Root(ResultBlockIndex)) } func (s ImmutableGetRequestReceiptResults) RequestIndex() wasmtypes.ScImmutableUint16 { return wasmtypes.NewScImmutableUint16(s.proxy.Root(ResultRequestIndex)) } func (s ImmutableGetRequestReceiptResults) RequestRecord() wasmtypes.ScImmutableBytes { return wasmtypes.NewScImmutableBytes(s.proxy.Root(ResultRequestRecord)) } type MutableGetRequestReceiptResults struct { proxy wasmtypes.Proxy } func (s MutableGetRequestReceiptResults) BlockIndex() wasmtypes.ScMutableUint32 { return wasmtypes.NewScMutableUint32(s.proxy.Root(ResultBlockIndex)) } func (s MutableGetRequestReceiptResults) RequestIndex() wasmtypes.ScMutableUint16 { return wasmtypes.NewScMutableUint16(s.proxy.Root(ResultRequestIndex)) } func (s MutableGetRequestReceiptResults) RequestRecord() wasmtypes.ScMutableBytes { return wasmtypes.NewScMutableBytes(s.proxy.Root(ResultRequestRecord)) } type ImmutableGetRequestReceiptsForBlockResults struct { proxy wasmtypes.Proxy } func (s ImmutableGetRequestReceiptsForBlockResults) RequestRecord() ArrayOfImmutableBytes { return ArrayOfImmutableBytes{proxy: s.proxy.Root(ResultRequestRecord)} } type MutableGetRequestReceiptsForBlockResults struct { proxy wasmtypes.Proxy } func (s MutableGetRequestReceiptsForBlockResults) RequestRecord() ArrayOfMutableBytes { return ArrayOfMutableBytes{proxy: s.proxy.Root(ResultRequestRecord)} } type ImmutableIsRequestProcessedResults struct { proxy wasmtypes.Proxy } func (s ImmutableIsRequestProcessedResults) RequestProcessed() wasmtypes.ScImmutableString { return wasmtypes.NewScImmutableString(s.proxy.Root(ResultRequestProcessed)) } type MutableIsRequestProcessedResults struct { proxy wasmtypes.Proxy } func (s MutableIsRequestProcessedResults) RequestProcessed() wasmtypes.ScMutableString { return wasmtypes.NewScMutableString(s.proxy.Root(ResultRequestProcessed)) }
go
# Pylint doesn't play well with fixtures and dependency injection from pytest # pylint: disable=redefined-outer-name import os import pytest from buildstream.exceptions import ErrorDomain, LoadErrorReason from buildstream.testing.runcli import cli # pylint: disable=unused-import # Project directory DATA_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "invalid-keys") @pytest.mark.datafiles(DATA_DIR) @pytest.mark.parametrize( ("element", "location"), [ ("no-path-specified.bst", "line 4 column 4"), ("optional-source.bst", "line 6 column 10"), ("included-source.bst", "line 4 column 4"), ], ) def test_compositied_node_fails_usefully(cli, datafiles, element, location): project = str(datafiles) result = cli.run(project=project, args=["show", element]) result.assert_main_error(ErrorDomain.LOAD, LoadErrorReason.INVALID_DATA) assert "synthetic node" not in result.stderr assert "{} [{}]: Dictionary did not contain expected key 'path'".format(element, location) in result.stderr
python
<reponame>Muritiku/xmondrian-build<filename>src/main/webapp/xmla4js/package.json { "name": "xmla4js", "version": "0.0.2", "description": "Javascript interface for XML for Analysis", "main": "Xmla.js", "directories": { "doc": "doc" }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { "type": "git", "url": "https://github.com/rpbouman/xmla4js.git" }, "keywords": [ "javascript", "xmla", "mdx", "bi", "business", "intelligence", "soap", "OLAP", "query", "analytics", "XML/A", "analysis", "pivot table", "data", "multidimensional", "data warehouse", "business intelligence" ], "bugs": { "url": "https://github.com/rpbouman/xmla4js/issues", "email": "<EMAIL>" }, "author": { "name": "<NAME>" }, "contributors": [ { "name": "<NAME>", "email": "<EMAIL>" }, { "name": "<NAME>", "email": "<EMAIL>" } ], "license": "Apache-2.0" }
json
<gh_stars>1-10 {"text":"\n     Any proposal for the incurrence of indebtedness of the City and County for public improvements, payable from the proceeds of taxes levied upon property in the City and County, which is submitted to the qualified voters of the City and County by the Board of Supervisors, shall be submitted in accordance with the applicable provisions of the general laws of the State and the Charter of the City and County, subject only to the limitations imposed by this Article. \n(Ord No. 567-58, Sec 1; amended by Ord. 133-99, File No. 990584, App. 5/28/99) \n\n","heading":{"title":"2","chaptersection":"30","identifier":"2.30","catch_text":"PROPOSAL SUBMITTED TO VOTERS PURSUANT TO STATE LAW AND CHARTER."}}
json
<reponame>restful-ma/thresholds { "apiTitle": "Cloud Shell", "apiVersion": "v1alpha1", "apiFileName": "googleapis.com-cloudshell-v1alpha1-swagger.yaml", "apiFormat": "OPENAPI", "measurementDate": "2019/12/13", "measurement": [ { "metricName": "NumberOfRootPaths", "metricValue": 1.0, "additionalInformation": "all root paths: /v1alpha1" }, { "metricName": "LongestPath", "metricValue": 3.0, "additionalInformation": "Longest path: /v1alpha1/{parent}/publicKeys, Length: 3" }, { "metricName": "AveragePathLength", "metricValue": 2.25 }, { "metricName": "DataWeight", "metricValue": 112.0 }, { "metricName": "LackOfMessageLevelCohesion", "metricValue": 0.5858 }, { "metricName": "WeightedServiceInterfaceCount", "metricValue": 6.0, "additionalInformation": "Number of different operations: 6" }, { "metricName": "DistinctMessageRatio", "metricValue": 0.75 }, { "metricName": "BiggestRootCoverage", "metricValue": 1.0, "additionalInformation": "Biggest root coverage: /v1alpha1 with 6 operation(s) from overall 6 operation(s)" }, { "metricName": "ArgumentsPerOperation", "metricValue": 12.8333 }, { "metricName": "ServiceInterfaceDataCohesion", "metricValue": 0.5667, "additionalInformation": "Metric value range: [0-1]; Set of pairwise operations with at least one common parameter: [[cloudshell.users.environments.authorize, cloudshell.users.environments.start], [cloudshell.users.environments.patch, cloudshell.users.environments.get], [cloudshell.users.environments.start, cloudshell.users.environments.get], [cloudshell.users.environments.patch, cloudshell.users.environments.publicKeys.create], [cloudshell.users.environments.authorize, cloudshell.users.environments.publicKeys.delete], [cloudshell.users.environments.authorize, cloudshell.users.environments.patch], [cloudshell.users.environments.authorize, cloudshell.users.environments.get], [cloudshell.users.environments.start, cloudshell.users.environments.patch], [cloudshell.users.environments.start, cloudshell.users.environments.publicKeys.delete], [cloudshell.users.environments.get, cloudshell.users.environments.publicKeys.delete], [cloudshell.users.environments.patch, cloudshell.users.environments.publicKeys.delete], [cloudshell.users.environments.publicKeys.delete, cloudshell.users.environments.publicKeys.create], [cloudshell.users.environments.authorize, cloudshell.users.environments.publicKeys.create], [cloudshell.users.environments.start, cloudshell.users.environments.publicKeys.create], [cloudshell.users.environments.get, cloudshell.users.environments.publicKeys.create]]; Set of pairwise operations with common return type: [[cloudshell.users.environments.patch, cloudshell.users.environments.get], [cloudshell.users.environments.authorize, cloudshell.users.environments.publicKeys.delete]]; Number of operations: 6.0" } ] }
json
<reponame>arielmorelli/simplye-circulation-web /* eslint-disable @typescript-eslint/camelcase */ import { expect } from "chai"; import { spy, stub } from "sinon"; import * as React from "react"; import { shallow, mount } from "enzyme"; import { SelfTests } from "../SelfTests"; import { CheckSoloIcon, XIcon } from "@nypl/dgx-svg-icons"; // SelfTests can take more than just a collection (an integration can have // self tests), but just testing collection data right now. const collections = [ { id: 1, name: "collection 1", protocol: "protocol", libraries: [{ short_name: "library" }], settings: { external_account_id: "nypl", }, self_test_results: { duration: 1.75, start: "2018-08-07T19:34:54Z", end: "2018-08-07T19:34:55Z", results: [ { duration: 0.000119, end: "2018-08-07T19:34:54Z", exception: null, name: "Initial setup.", result: null, start: "2018-08-07T19:34:54Z", success: true, }, ], }, }, { id: 1, name: "collection 1", protocol: "protocol", libraries: [{ short_name: "library" }], settings: { external_account_id: "nypl", }, self_test_results: { duration: 1.75, start: "2018-08-07T19:34:54Z", end: "2018-08-07T19:34:55Z", results: [ { duration: 0.000119, end: "2018-08-07T19:34:54Z", exception: null, name: "Initial setup.", result: null, start: "2018-08-07T19:34:54Z", success: true, }, { duration: 0, end: "2018-08-07T19:34:55Z", exception: { class: "IntegrationException", debug_message: "Add the collection to a library that has a patron authentication service.", message: "Collection is not associated with any libraries.", }, name: "Acquiring test patron credentials.", result: null, start: "2018-08-07T19:34:55Z", success: false, }, ], }, }, { id: 1, name: "collection 1", protocol: "protocol", libraries: [{ short_name: "library" }], settings: { external_account_id: "nypl", }, self_test_results: { exception: "Exception getting self-test results for collection ...", duration: 0, start: "", end: "", results: [], }, }, ]; const updatedCollection = { id: 1, name: "collection 1", protocol: "protocol", libraries: [{ short_name: "library" }], settings: { external_account_id: "nypl", }, self_test_results: { duration: 1.75, start: "2018-08-07T20:34:54Z", end: "2018-08-07T20:34:55Z", results: [ { duration: 0.000119, end: "2018-08-07T20:34:54Z", exception: null, name: "Initial setup.", result: null, start: "2018-08-07T20:34:54Z", success: true, }, ], }, }; describe("SelfTests", () => { let wrapper; beforeEach(() => { wrapper = mount( <SelfTests item={collections[0]} type="collection" getSelfTests={stub()} /> ); }); it("should render the SelfTests component with empty self_test_results", () => { wrapper = shallow( <SelfTests item={{} as any} type="collection" getSelfTests={stub()} /> ); expect(wrapper.render().hasClass("integration-selftests")).to.equal(true); expect(wrapper.find("ul").length).to.equal(0); expect(wrapper.find("p").text()).to.equal("No self test results found."); }); it("should disable the button if the tests cannot be run", () => { const selfTestResultsWithException = { ...collections[0].self_test_results, ...{ exception: "Exception!", disabled: true }, }; const collectionWithException = { ...collections[0], ...{ self_test_results: selfTestResultsWithException }, }; wrapper = mount( <SelfTests item={collectionWithException} type="collection" getSelfTests={stub()} /> ); expect(wrapper.find("button").props().disabled).to.be.true; }); it("should render the SelfTests component for new services", () => { const exception = "This integration has no attribute 'prior_test_results'"; const self_test_results = { ...collections[0].self_test_results, ...{ exception }, }; const item = { ...collections[0], ...{ self_test_results } }; wrapper = shallow( <SelfTests item={item} type="collection" getSelfTests={stub()} /> ); expect(wrapper.render().hasClass("integration-selftests")).to.equal(true); expect(wrapper.find("ul").length).to.equal(0); expect(wrapper.find(".description").text()).to.equal( "There are no self test results yet." ); }); it("should render the SelfTests component with results", () => { expect(wrapper.render().hasClass("integration-selftests")).to.equal(true); expect(wrapper.find("ul").length).to.equal(1); }); // not working with locale! /* it("should format the date and duration of the most recent tests", () => { expect(wrapper.instance().formatDate(collections[0])).to.equal("Tests last ran on Tue Aug 07 2018 15:34:54 and lasted 1.75s."); });*/ it("should handle new props", () => { expect(wrapper.state()["mostRecent"]).to.equal(wrapper.prop("item")); wrapper.setProps({ item: updatedCollection }); // The new item has a more recent start time, so the state gets updated. expect(wrapper.state()["mostRecent"]).to.equal(updatedCollection); wrapper.setProps({ item: collections[1] }); // This is not a new result. Nothing happens. expect(wrapper.state()["mostRecent"]).to.equal(updatedCollection); }); describe("Successful self tests", () => { it("should display information about the whole self test result", () => { const passSVGIcon = wrapper.find(CheckSoloIcon); const failSVGIcon = wrapper.find(XIcon); // const description = wrapper.find(".description"); // There's only one self test result in the collection and it passes. expect(failSVGIcon.length).to.equal(0); expect(passSVGIcon.length).to.equal(1); // expect(description.text().trim()).to.equal("Tests last ran on Tue Aug 07 2018 15:34:54 and lasted 1.75s."); // not working with locale }); it("should display detail information for each self test result for the collection", () => { const list = wrapper.find("ul"); const selfTestResults = list.find("li"); expect(selfTestResults.length).to.equal(1); expect(selfTestResults.hasClass("success")).to.be.true; expect(selfTestResults.find("h4").text()).to.equal("Initial setup."); expect(selfTestResults.find("p").text()).to.equal("success: true"); }); }); describe("Unsuccessful self tests", () => { beforeEach(() => { wrapper = mount( <SelfTests item={collections[1]} type="collection" getSelfTests={stub()} /> ); }); it("should display the base error message when attempting to run self tests", () => { wrapper = shallow( <SelfTests item={collections[2]} type="collection" getSelfTests={stub()} /> ); const description = wrapper.find(".description"); expect(description.text().trim()).to.equal( "Exception getting self-test results for collection ..." ); }); it("should display information about the whole self test result", () => { const passSVGIcon = wrapper.find(CheckSoloIcon); const failSVGIcon = wrapper.find(XIcon); // const description = wrapper.find(".description"); // There are two self tests but one of them failed, so show a failing icon. expect(failSVGIcon.length).to.equal(1); expect(passSVGIcon.length).to.equal(0); // expect(description.text().trim()).to.equal("Tests last ran on Tue Aug 07 2018 15:34:54 and lasted 1.75s."); // not working with locale }); it("should display detail information for each self test result for the collection", () => { const list = wrapper.find("ul"); const selfTestResults = list.find("li"); expect(selfTestResults.length).to.equal(2); expect(list.childAt(1).find("li").hasClass("success")).to.equal(true); expect(list.childAt(1).find("h4").text()).to.equal("Initial setup."); expect(list.childAt(1).find(".success-description").text()).to.equal( "success: true" ); expect(list.childAt(1).find(".exception-description").length).to.equal(0); expect(list.childAt(2).find("li").hasClass("failure")).to.equal(true); expect(list.childAt(2).find("h4").text()).to.equal( "Acquiring test patron credentials." ); expect(list.childAt(2).find(".success-description").text()).to.equal( "success: false" ); expect(list.childAt(2).find(".exception-description").text()).to.equal( "exception: Collection is not associated with any libraries." ); }); }); describe("Get new results", () => { let runSelfTests; let getSelfTests; beforeEach(() => { runSelfTests = stub().returns( new Promise<void>((resolve) => resolve()) ); getSelfTests = stub().returns( new Promise<void>((resolve) => resolve()) ); wrapper = mount( <SelfTests item={collections[0]} type="collection" runSelfTests={runSelfTests} getSelfTests={getSelfTests} /> ); }); it("should run new self tests", async () => { const runSelfTestsBtn = wrapper .find("button") .findWhere((el) => el.text() === "Run tests") .at(0); expect(runSelfTests.callCount).to.equal(0); runSelfTestsBtn.simulate("click"); expect(runSelfTests.callCount).to.equal(1); }); it("should run new self tests but get an error", async () => { const error = { status: 400, response: "Failed to run new tests.", url: "/admin/collection_self_tests/12", }; runSelfTests = stub().returns( new Promise<void>((resolve, reject) => reject(error)) ); getSelfTests = stub().returns( new Promise<void>((resolve) => resolve()) ); wrapper = mount( <SelfTests item={collections[0]} type="collection" runSelfTests={runSelfTests} getSelfTests={getSelfTests} /> ); const runSelfTestsBtn = wrapper .find("button") .findWhere((el) => el.text() === "Run tests") .at(0); let alert = wrapper.find(".alert"); expect(runSelfTests.callCount).to.equal(0); expect(wrapper.state("error")).to.equal(null); expect(alert.length).to.equal(0); runSelfTestsBtn.simulate("click"); const pause = (): Promise<void> => { return new Promise<void>((resolve) => setTimeout(resolve, 0)); }; await pause(); expect(runSelfTests.callCount).to.equal(1); expect(wrapper.state("error")).to.eq(error); alert = wrapper.render().find(".alert"); expect(alert.length).to.equal(1); }); }); describe("Handle metadata test results", () => { const collectionNames = ["A", "B", "C"]; const baseResult = collections[0].self_test_results.results[0]; const results = []; const makeResult = (c: string, success = true) => { return { ...baseResult, ...{ collection: c, name: `Test ${results.length < collectionNames.length ? 1 : 2}`, success: success, }, }; }; const display = (results) => wrapper.instance().displayByCollection(results, false); it("should call displayMetadata", () => { const spyDisplayByCollection = spy( wrapper.instance(), "displayByCollection" ); expect(spyDisplayByCollection.callCount).to.equal(0); const integration = { ...collections[0], ...{ goal: "metadata" } }; wrapper.setState({ mostRecent: integration }); wrapper.setProps({ sortByCollection: true }); expect(spyDisplayByCollection.callCount).to.equal(1); expect(spyDisplayByCollection.args[0][0][0]).to.equal(baseResult); spyDisplayByCollection.restore(); }); it("should sort metadata test results by their collection", () => { while (results.length < collectionNames.length * 2) { collectionNames.map((c) => results.push(makeResult(c))); } const collectionPanels = display(results); expect(collectionPanels.length).to.equal(collectionNames.length); collectionPanels.map((panel: JSX.Element, idx: number) => { const collectionName = collectionNames[idx]; const { headerText, style, content } = panel.props; expect(headerText).to.equal(collectionName); expect(style).to.equal("success"); content.map((x: JSX.Element, idx: number) => { expect(x.props.result.collection).to.equal(collectionName); expect(x.props.result.name).to.equal(`Test ${idx + 1}`); }); }); }); it("should display the result of the initial setup test", () => { const initialResult = makeResult("undefined"); const panel = display([initialResult])[0]; expect(panel.props.headerText).to.equal("Initial Setup"); }); it("should add the 'danger' class if not all the tests for the collection succeeded", () => { const errorResult = makeResult("With Error", false); const successResult = makeResult("With Error"); const panel = display([errorResult, successResult])[0]; expect(panel.props.style).to.equal("danger"); }); }); });
typescript
<reponame>Elaina-Alex/boluobao_nodejs var request = require('request') print = console.log var headers = { 'User-Agent': 'boluobao/4.5.52(iOS;14.0)/appStore', 'Host': 'api.sfacg.com', 'Accept-Language': 'gzip, deflate, br', 'Accept': 'application/vnd.sfacg.api+json;version=1', 'Accept-Encoding': 'zh-Hans-US;q=1', 'Connection': 'keep-alive', 'Authorization': 'Basic YXBpdXNlcjozcyMxLXl0NmUqQWN2QHFlcg==' }; var options = { url: 'https://api.sfacg.com/novels/0/sysTags/novels?', headers: headers }; function callback(error, response, body) { if (!error && response.statusCode === 200) { const jsonParsed = JSON.parse(body); console.log(jsonParsed.data[0]); return body } } var novels = request(options, callback).body print(novels)
javascript
/* eslint-disable consistent-return */ /* eslint-disable no-param-reassign */ /* eslint-disable no-restricted-syntax */ /* eslint-disable no-unused-vars */ const WOQLQuery = require('../query/woqlCore'); const UTILS = require('../utils'); /** * Functions to manipulate and check the paging related properties of a query */ WOQLQuery.prototype.getLimit = function () { return this.getPagingProperty('limit'); }; WOQLQuery.prototype.setLimit = function (l) { return this.setPagingProperty('limit', l); }; WOQLQuery.prototype.isPaged = function (q) { q = (q || this.query); for (const prop of Object.keys(q)) { if (prop === 'limit') return true; if (this.paging_transitive_properties.indexOf(prop) !== -1) { return this.isPaged(q[prop][q[prop].length - 1]); } } return false; }; WOQLQuery.prototype.getPage = function () { if (this.isPaged()) { const psize = this.getLimit(); if (this.hasStart()) { const s = this.getStart(); // eslint-disable-next-line radix return (parseInt(s / psize) + 1); } return 1; } return false; }; WOQLQuery.prototype.setPage = function (pagenum) { const pstart = (this.getLimit() * (pagenum - 1)); if (this.hasStart()) { this.setStart(pstart); } else { this.addStart(pstart); } return this; }; WOQLQuery.prototype.nextPage = function () { return this.setPage(this.getPage() + 1); }; WOQLQuery.prototype.firstPage = function () { return this.setPage(1); }; WOQLQuery.prototype.previousPage = function () { const npage = this.getPage() - 1; if (npage > 0) this.setPage(npage); return this; }; WOQLQuery.prototype.setPageSize = function (size) { this.setPagingProperty('limit', size); if (this.hasStart()) { this.setStart(0); } else { this.addStart(0); } return this; }; WOQLQuery.prototype.hasSelect = function () { return (!!this.getPagingProperty('select')); }; WOQLQuery.prototype.getSelectVariables = function (q) { q = (q || this.query); for (const prop of Object.keys(q)) { if (prop === 'select') { const vars = q[prop].slice(0, q[prop].length - 1); return vars; } if (this.paging_transitive_properties.indexOf(prop) !== -1) { const val = this.getSelectVariables(q[prop][q[prop].length - 1]); if (typeof val !== 'undefined') { return val; } } } }; WOQLQuery.prototype.hasStart = function () { return (typeof this.getPagingProperty('start') !== 'undefined'); }; WOQLQuery.prototype.getStart = function () { return this.getPagingProperty('start'); }; WOQLQuery.prototype.setStart = function (start) { return this.setPagingProperty('start', start); }; WOQLQuery.prototype.addStart = function (s) { if (this.hasStart()) this.setStart(s); else { const nq = { start: [s, this.query] }; this.query = nq; } return this; }; /** * Returns the value of one of the 'paging' related properties (limit, start,...) */ WOQLQuery.prototype.getPagingProperty = function (pageprop, q) { q = (q || this.query); for (const prop of Object.keys(q)) { if (prop === pageprop) return q[prop][0]; if (this.paging_transitive_properties.indexOf(prop) !== -1) { const val = this.getPagingProperty(pageprop, q[prop][q[prop].length - 1]); if (typeof val !== 'undefined') { return val; } } } }; /** * Sets the value of one of the paging_transitive_properties properties */ WOQLQuery.prototype.setPagingProperty = function (pageprop, val, q) { q = (q || this.query); for (const prop of Object.keys(q)) { if (prop === pageprop) { q[prop][0] = val; } else if (this.paging_transitive_properties.indexOf(prop) !== -1) { this.setPagingProperty(pageprop, val, q[prop][q[prop].length - 1]); } } return this; };
javascript
The social game empire's focus on making players pay to click should pay off handsomely as it goes public. Zynga is half of the big IPO we've been waiting for. The other half, if course, is Facebook. But Zynga is likely the cleaner story for investors. Expected to file its public offering papers tomorrow, we can prepare to see in them some heartening information: Most likely, we'll see a company that's raking in money from a broad base of consumers, based on a scalable and maintainable base of technology. Zynga is a beautiful, shark-like machine. Its focus is on getting consumers to pay for online interactions, and it does that well. The company builds cartoony world-building games. They're fun to click on. The first click is free, as they say. But to really succeed at these games, you need to pay--either by buying credits for in-game resources, or by enlisting your friends. Or both. The games are good enough that people voluntarily pay for their little pixelated adrenaline rushes time and again. Then they push the service on their friends--not really because they want to share the fun, but rather out of self-interest.The more friends you have in your world, the more success you have. Zynga's community is built on the back of Facebook's social network. Zynga would not be (I think) the cash-generating monster it is without the Facebook graph. But to pay into Zynga games, you need to buy Facebook credits, and Facebook keeps a portion of all credit sales for itself (reportedly, 30 percent). That joins the success of these companies together. There are no gaming companies close to Zynga in reach or in excellence of execution, and there are no social networks close to Facebook. The two companies are, at the moment, different sides of the same beast. But they are not the same company. Zynga is a purer play, a more focused cash generator. It doesn't need to maintain the social network, it doesn't have the same need to focus on privacy, it doesn't have to build non-revenue-generating ancillary services like an out-of-band messaging platform or an API. All it has to do is keep building games. Facebook is a more diversified social company that benefits from the success of Zynga, and emergent Zynga-alikes, but it's got to do more to keep people engaged on the site, and to keep the social network robust, and to keep users from shifting their attention to competing services, which there will eventually be (maybe Google+, maybe something after that). Zynga, for its part, can graft itself onto almost any robust social network. The social services Zynga and Facebook (and the recently public LinkedIn) appear to be better short-term businesses than the real-world commerce service Groupon, which is expensively buying its way in to markets and taking large losses in the process.
english
Apart from the four northeast states - Tripura, Meghalaya, Nagaland and Mizoram, Rajasthan, Chhattisgarh, Madhya Pradesh, Karnataka and Telangana will be going ahead for elections for the year 2023. The Election Commission has invited political parties for a demonstration of the remote EVM on January 16. The MCC comes into force soon after the announcement of elections in India (central, state, or local). The code applies to all political parties, the candidates and polling agents, the government in power, and all government employees. Over the past few years, Himachal Pradesh has seen bipolar contests between the ruling Bharatiya Janata Party (BJP), and its arch-rival, the Congress. In the 2017 polls, the saffron party won 44 seats (up from 26 in 2012), Amid the barrage of allegations and counter-allegations, hustle and bustle of the elections in India's most populated state Uttar Pradesh, here is one instance where a candidate is winning hearts with his simplicity and unique way of campaigning.
english
Last year also India started 2019 with the tour of New Zealand which was a limited-over leg keeping in mind the preparation for ICC Cricket World Cup 2019. After the three-match ODI series against Australia at home, India will begin their away leg for the year of 2020 with a full-fledged tour of New Zealand, starting January 24 with a five-match T20I series followed by three-match ODI series from February 5 and then two-match Test series from February 25 after a red-ball warm-up game in Seddon Park, Hamilton. Last year also India started 2019 with the tour of New Zealand which was a limited-over leg keeping in mind the preparation for ICC Cricket World Cup 2019. DD Sports, Star Sports and Live Telecast on Star Sports 1 and Star Sports Hindi 1.
english
<filename>frontend/src/pages/organizations/containers/index.tsx<gh_stars>0 import OrganizationsPage from "../components/organization"; import { connect } from "react-redux"; import { createOrganization, getOrganizations, createUser } from "../../../redux/reducers/organizationsReducer"; import { AppState } from "../../../redux/store"; import { fetchOrganizations } from "../../../redux/selectors"; let mapStateToProps = (state: AppState) =>({ organizations: fetchOrganizations(state) }) export default connect(mapStateToProps, {createOrganization, createUser, getOrganizations})(OrganizationsPage)
typescript
{"Status":3,"TimeLimitReached":true,"RunningTime":"00:05:00.3011029","StartTimes":[{"JobIndex":0,"OperationIndex":0,"StartTime":148.0},{"JobIndex":1,"OperationIndex":0,"StartTime":0.0},{"JobIndex":2,"OperationIndex":0,"StartTime":279.0},{"JobIndex":3,"OperationIndex":0,"StartTime":124.0},{"JobIndex":4,"OperationIndex":0,"StartTime":57.0},{"JobIndex":5,"OperationIndex":0,"StartTime":270.0},{"JobIndex":6,"OperationIndex":0,"StartTime":111.0},{"JobIndex":7,"OperationIndex":0,"StartTime":227.0},{"JobIndex":8,"OperationIndex":0,"StartTime":105.0},{"JobIndex":9,"OperationIndex":0,"StartTime":188.0},{"JobIndex":10,"OperationIndex":0,"StartTime":166.0},{"JobIndex":11,"OperationIndex":0,"StartTime":248.0},{"JobIndex":12,"OperationIndex":0,"StartTime":12.0},{"JobIndex":13,"OperationIndex":0,"StartTime":320.0},{"JobIndex":14,"OperationIndex":0,"StartTime":308.0},{"JobIndex":15,"OperationIndex":0,"StartTime":330.0},{"JobIndex":16,"OperationIndex":0,"StartTime":58.0},{"JobIndex":17,"OperationIndex":0,"StartTime":42.0},{"JobIndex":18,"OperationIndex":0,"StartTime":83.0},{"JobIndex":19,"OperationIndex":0,"StartTime":333.0}]}
json
<filename>data/wdl/local/mutect2.inputs.mm10.json<gh_stars>0 { "Mutect2.gatk_docker": "gatk.latest", "Mutect2.intervals": "/data/h_vangard_1/WilsonKeith_data/20190501_3197MouseWES/S0276129_Covered.NoHeaderForPipeline_mm9Tomm10_Map95.bed", "Mutect2.scatter_count": 7, "Mutect2.m2_extra_args": "", "Mutect2.ref_fasta": "/scratch/cqs_share/references/gencode/GRCm38.p6/bwa_index_0.7.17/GRCm38.primary_assembly.genome.fa", "Mutect2.ref_dict": "/scratch/cqs_share/references/gencode/GRCm38.p6/bwa_index_0.7.17/GRCm38.primary_assembly.genome.dict", "Mutect2.ref_fai": "/scratch/cqs_share/references/gencode/GRCm38.p6/bwa_index_0.7.17/GRCm38.primary_assembly.genome.fa.fai", "Mutect2.tumor_reads": "", "Mutect2.tumor_reads_index": "" }
json
From UPSC perspective, the following things are important : Tamil Nadu CM has charged that the Governor that he had failed to perform the duty vested in him by the Constitution when it came to deciding on the Bill adopted in the Legislative Assembly against the National Eligibility cum Entrance Test (NEET). What is the issue? - The Governor had returned the Bill to the Assembly Speaker instead of forwarding it for Presidential assent. officers subordinate to him in accordance with this Constitution. - Article 163 (1): There shall be a council of ministers with the chief minister as the head to aid and advise the governor in the exercise of his functions, except in so far as he is required to exercise his functions in his discretion. - Article 163 (2): If any question arises whether a matter falls within the governor’s discretion or not, the decision of the governor is final and the validity of anything done by him cannot be called in question on the ground that he ought or ought not to have acted in his discretion. - The governor has constitutional discretion in the following cases: a) Reservation of a bill for the consideration of the President (Articles 200 and 201). b) Recommendation for the imposition of the President’s Rule in the state (Article 356). c) While exercising his functions as the administrator of an adjoining Union territory (in case of an additional charge). d) Special responsibility in 5th and 6th schedule areas. e) Seeking information from the chief minister with regard to the administrative and legislative matters of the state. - Also, the governor has situational discretion (i.e., the hidden discretion derived from the exigencies of a prevailing political situation) in the following cases: a) Appointment of the chief minister when no party has a clear-cut majority in the state legislative assembly or when the chief minister in office dies suddenly and there is no obvious successor. c) Dissolution of the state legislative assembly if the council of ministers has lost its majority. What are the Legislative Powers of Governor? Governor summons the sessions of both houses of the state legislature and prorogues them. - The governor can even dissolve the State Legislative Assembly. - These powers are formal and the governor’s use of these powers must comply with the advice of the Council of Ministers headed by the Chief Minister. - He addresses the first session of the state legislature after the general elections in the state. - He appoints 1/6th members of the State Legislative Council in states wherever there is a bicameral legislature. - He nominates one member in the state legislative assembly from the Anglo-Indian Community if in view; the community is not well represented. - Governor is empowered under Article 192 to disqualify a member of the State legislature when the election commission recommends that the legislator is no longer complying with provisions of Article 191. - All the bills passed by the state legislatures are sent to the Governor for assent. - Once a bill is sent to Governor for assent, he can: c) Return the bill to the legislature for reconsideration if it is not a money bill. d) If the bill is re-passed by the legislature with or without amendment, the governor has to give assent to the bill. e) Reserve the bill for consideration of the President. When is the Bill sent to the President? This is done under the circumstances when a bill: - Violates the constitution or against directive principles of state policy (DPSP) - May endanger the position of the high court in the state. - When the state legislature is not in session and the governor considers it necessary to have a law, then the governor can promulgate ordinances. - These ordinances are submitted to the state legislature at its next session. - They remain valid for no more than six weeks from the date the state legislature is reconvened unless approved by it earlier. - As per Articles 165 and 177, Governor can ask the Advocate General to attend the proceedings of both houses of the state legislature and report to them any unlawful functioning if any. - Misuse of discretionary powers: States allege that this provision has often been misused by the governor who acts on the behest of the union government which is opposed to the basic scheme of the Indian Constitution. - Appointment by centre: This often leads to the appointment of persons aligning with the party’s ideology to the post of Governor and he/she remains faithful to the Union government of the day rather than acting on the advice of the State Executive. - Arbitrary removal: Even after Supreme Court Judgement in B.P. Singhal v. Union of India calling for a fixed tenure for Governors to encourage neutrality and fairness in the discharge of their duties, it is not being implemented on the ground. UPSC 2022 countdown has begun! Get your personal guidance plan now! (Click here) From UPSC perspective, the following things are important : Prelims level : Artificial Neural Networks (ANN) This newscard is an excerpt from the original article published in TH. What are ANN? - The concept behind an ANN is to define inputs and outputs, feed pieces of inputs to computer programs that function like neurons and make inferences or calculations. - It then forwards those results to another layer of computer programs and so on, until a result is obtained. - As part of this neural network, a difference between intended output and input is computed at each layer and this difference is used to tune the parameters to each program. - This method is called back-propagation and is an essential component to the Neural Network. - Instead of CPUs, Graphic Processing Units (GPU) which are good at performing massive parallel tasks can be used for setting up ANNs. - A few free ANN frameworks are TensorFlow, Keras, PyTorch and Theano. - These can be used for both normal Machine Learning tasks like classification or clustering and for Deep Learning/ANN tasks. Why called Neural Network? - Neuron is the building block of the brain and it inspired computer scientists from the 1950s to make a computer perform tasks like a brain does. - It is not a simple problem and the clue to its complexity is in the brain structure. Why ANN? - We need billions of artificial neurons if we were to build an artificial brain. - With the increase in computing power, mimicking billions of neurons is now possible. - Data Science, used interchangeably with Machine Learning, is the computer technology that uses data to detect patterns. - Hand-written digit recognition is a good example of machine learning. - However, in order for the computer to do this task, large amounts of sample data need to be manually labelled as examples of images of digits. - The ANN mentioned above with its backpropagation does exactly this. - This is why ANNs have become hugely popular in the past decade. This approach of using neural networks of many layers to automatically detect patterns and parameters is called Deep Learning. UPSC 2022 countdown has begun! Get your personal guidance plan now! (Click here) From UPSC perspective, the following things are important : A recent US intelligence report says that ‘Havana Syndrome’ —a collection of symptoms and related brain injuries, reported by some US officials could be caused by pulsed electromagnetic energy or close-range ultrasound. What is Havana Syndrome? - ‘Havana Syndrome’ is a colloquial name given to a set of symptoms such as dizziness, hearing loss, headaches, vertigo, nausea, memory loss and possible brain injuries. - It was first reported by 16 American Embassy staff and their family members in Havana, Cuba, in 2016-17. - There have been other instances of the phenomenon, which has mostly impacted US officials. What did the latest investigation find? - Such cases have been caused by pulsed electromagnetic energy in the radio frequency. - The results of the investigation did not point to who may have been behind the phenomenon, nor commented on their motivations. What can be the other reasons? - Psychosocial factors alone do not explain the core characteristics, the report finds, although they may cause other incidents or contribute to long-term effects. - These other incidents could occur via hyper-vigilance or reactions to stress especially among individuals who are security-oriented. UPSC 2022 countdown has begun! Get your personal guidance plan now! (Click here) From UPSC perspective, the following things are important : The Basai Wetlands in Gurugram has shrunk to a quarter of its original size over the years. - Basai wetland, located in Basai village in Gurgaon Haryana is a flora and fauna rich water body. - It lies in one of the paleochannel of the Sahibi River, a tributary of Yamuna which originates from the Aravalli range in Rajasthan and flows through the region. - It is recognized as one of India’s Important Bird and Biodiversity Areas and is of global conservation significance. - It supports populations of several endangered, vulnerable, and threatened bird species. - It is recognized globally as an Important Bird Area (IBA) by the BirdLife International housing 20,000 birds of over 280 species including migratory birds and endangered birds. - However, it has not yet been declared a protected wetland by the Government of Haryana. - Given the accelerated expansion of the city of the future, the wetland continues to disappear under newly laid roads, modern housing constructions and other infrastructure development. - An upcoming expressway, cutting through the terrain here, has majorly impacted the flyway of thousands of migratory birds from Europe and Central Asia. UPSC 2022 countdown has begun! Get your personal guidance plan now! (Click here) From UPSC perspective, the following things are important : The Rajya Sabha has discussed a Private Member’s Bill on population regulation. - First introduced in 2019, it is a private member bill proposed by Rakesh Sinha. - The purpose of the bill was to control the population growth of India. - The proposed bill then was signed by 125 Members of Parliament (MP) and is yet to become an act of law. - The state shall withdraw every concession from and deprive such incentives to those not adhering to small family norm, to keep the growing population under control. - Penalties: The 2019 bill talked about introducing penalties for couples not adhering to the two-child policy such as debarment from contesting in elections and ineligibility for government jobs. - Two-child policy: The 2020 bill proposes to introduce a two-child policy per couple. - Incentivizing adoption: It shall incentivize adoption through various measures such as educational benefits, taxation cuts, home loans, free healthcare, and better employment opportunities. - Birth spacings: It also proposes to ensure healthy birth spacing through measures related to augmenting the availability, accessibility and affordability of quality reproductive health services. - Alienation: If a family was penalized for more than two children, then the third child would develop a feeling of alienation that he is an unwanted child. - Bar on Women: The biggest victim of such would be women, irrespective of religion. They would be debarred in political participation. - Selective abortions: In India, the preference for male children may lead to a greater anti-female child sex selection because parents will only have “two attempts” to have babies. - Violation of reproductive autonomy: To control and regulate the number of children a family can have is a gross violation of human rights, the right to self-determination and an individual’s reproductive autonomy. - Violation of Individual Privacy: A right to procreation is not explicitly mentioned in the Constitution but it comes under the ambit of Article 21, as discussed in Jasvir Singh vs State of Punjab. - Remarriage issues: A divorced person who has two children with a prior partner cannot bear a child with their next spouse. Why need such policy? - India had a land availability of only 1.2 hectare per person, while the resources that get regenerated automatically was 0.43 only. - We are an ecological debtor. The ecological footprint which we use and the gap between their regeneration is 187%. - If this continued for 30 years, then resources would be exhausted and people would not be able to lead a dignified life. - Some people see demographic dividend in the growing population but it was being used as cheap labour globally. - The population of India is seen as the biggest obstacle to its economic development. - It is the fall guy for governments seeking to justify their incompetence. - No legislation must be enacted unless its future impact and social effect are first completely realized. UPSC 2022 countdown has begun! Get your personal guidance plan now! (Click here) From UPSC perspective, the following things are important : A row over whether educational institutions can impose a strict dress code that could interfere with the rights of students has spilled in the Udupi district of Karnataka. Don’t you think that such instances incite fear among the politically destitute minorities? - Article 25(1) of the Constitution guarantees the “freedom of conscience and the right freely to profess, practise and propagate religion”. - It is a right that guarantees a negative liberty — which means that the state shall ensure that there is no interference or obstacle to exercise this freedom. - Like all fundamental rights, the state can restrict the right for grounds of public order, decency, morality, health and other state interests. - Over the years, the Supreme Court has evolved a practical test of sorts to determine what religious practices can be constitutionally protected and what can be ignored. - In 1954, the Supreme Court held in the Shirur Mutt case that the term “religion” will cover all rituals and practices “integral” to a religion. The test to determine what is integral is termed the “Essential Religious Practices” test. What is the essential religious practices test? - While these issues are largely understood to be community-based, there are instances in which the court has applied the test to individual freedoms as well. - In a 2004 ruling, the Supreme Court held that the Ananda Marga sect had no fundamental right to perform the Tandava dance in public streets since it did not constitute an essential religious practice of the sect. - For example, in 2016, the Supreme Court upheld the discharge of an airman from the Indian Air Force for keeping a beard. - It distinguished the case of a Muslim airman from that of Sikhs who are allowed to keep a beard. - In 2015, the Supreme Court restored the Jain religious practice of Santhara/Sallekhana (a ritualistic fast unto death) by staying an order of the Rajasthan HC. - In the first place, what constitutes the essential part of a religion is primarily to be ascertained with reference to the doctrines of that religion itself, the SC had held in the Shirur Mutt case. - So the test, a judicial determination of religious practices, has often been criticized by legal experts as it pushes the court to delve into theological spaces. - In criticism of the test, scholars agree that it is better for the court to prohibit religious practices for public order rather than determine what is so essential to a religion that it needs to be protected. - In several instances, the court has applied the test to keep certain practices out. - Two set of rulings of the Kerala High Court, particularly on the right of Muslim women hold dressing according to the tenets of Islam. - In 2015, Kerala HC ruled the prescription of dress code for AIPMT exam which prescribed wearing light clothes with half sleeves not having big buttons, brooch/badge, flower, etc. with Salwar/Trouser and slippers and not shoes. - In 2016, it examined the issue more closely. It held that the practice of wearing a hijab constitutes an essential religious practice but did not quash the CBSE rule. - The court once again allowed for the “additional measures” and safeguards put in place the previous year. UPSC 2022 countdown has begun! Get your personal guidance plan now! (Click here) From UPSC perspective, the following things are important : Presenting the Union Budget for 2022-23, Finance Minister said 400 new energy-efficient Vande Bharat trains will be introduced in three years. What is Vande Bharat Express? - The Vande Bharat Express is a semi-high speed train designed, developed, and built by the Integral Coach Factory (ICF). - Presently there are only two Vande Bharat trains that are running — Delhi to Varanasi and Delhi to Katra. - The current Vande Bharat trains have seating only in two classes — chair car and executive chair car. But Railways is planning to upgrade it. - The trains have fully sealed gangways for a dust-free environment, modular bio-vacuum toilets, rotating seats in Executive Class, personalized reading lights, automatic entry/exit doors with sliding footsteps, diffused LED lighting, mini pantry, and sensor-based interconnecting doors in each coach. - They are self-propelled trains that do not require an engine. This feature is called a distributed traction power system, which is increasingly becoming the norm the world over for passenger operations(Distributed power gives the train higher acceleration and deceleration compared to loco-hauled trains, which take a much longer time to reach top speed or to gradually come to a halt). - 400 trains announced by the Finance Minister carry a potential investment of Rs 50,000 crore over the next three years, because of different specifications and also, inflation. - The current Vande Bharat’s are being made at Rs 106 crore per trainset of 16 cars, at 2018 pricing. 4) Faster Acceleration and Deceleration among others. Why High-speed rail projects are important for India? - Improve India’s GDP: According to a study conducted by the London School of Economics and Political Science and the University of Hamburg in 2008, cities that are connected to HSR systems tend to witness a rise in their gross domestic product (GDP) by at least 2.7 percentage points compared to their neighbors that do not have an HSR station. The reason for the differential was improved market access. with over 68,102 route km IR strives to provide a safe, efficient, competitive, and world-class transport system. freight and 1.25 billion passengers. In addition, despite COVID -19 pandemic revenue earning freight loading (excluding loading by Konkan Railway Corporation Ltd. (KRCL) was 1230.9 million tonnes in 2020-21 as compared to 1208.4 million tonnes during2019-20. Passengers originating were 1250 million in 2020-21 as compared to 8086 million in 2019-20- Economic Survey 2021-22. - Spin-off effect: It is about Rs 40,000 crore business opportunity that would also create 15,000 jobs and several spin-off benefits and act as a stimulus for the development of satellite towns. - Boost to ‘Make in India’– it involves only about 15 percent import content which will further go down if production volumes increase. - Environmental Benefits: More rail traffic translates to less automobile traffic, and by extension, less highway and city street traffic congestion, reduced air pollution. In addition, less congestion means less wear and tear on the roadways, which means that they require fewer repairs. According to the International Association of Railways (UIC), high-speed rail is eight times more energy-efficient than airplanes and four times more efficient than automobile use. - Social Benefits: High-speed rail can promote a sense of social cohesion among residents, by bringing distant populated areas closer together. - Global Experience: The High-Speed Railway has an economic multiplier effect. Since the introduction of the first Shinkansen (literally meaning ‘new main line’) in Japan in 1964, high-speed trains have proven to be an undeniable technological, commercial and popular success. Many countries like the UK, France, Germany, Spain, China, and most recently, the US have adopted the technology. - Infrastructure Bottlenecks: India’s railway system is saddled with a two-pronged infrastructure deficit – aging infrastructure and the pace of new project execution struck by unforeseen circumstances related to socio-economic issues on land acquisition for new projects and escalating projects costs. - New Technologies: For instance, Hyperloop Transportation Technologies which proposes to make travel as fast as 760 miles per hour, investing a humongous capital on bullet trains seems like an outdated investment. - Political Will: The politics of Rail Bhavan and an unwillingness to accept the need for change have derailed the project execution. - Short of Investments: For instance, the estimated cost of Mumbai-Ahmedabad HSR is ₹1.1 lakh crore (US$17 billion) which is massively expensive. Though India receives funding from Japan (81%), the power demand and up-gradation of existing infrastructure will be more costly. - Social Conflict: Development along the corridor will lead to an increase in urbanization, the fight for resources, and social conflicts due to the labor influx of the workforce. - Legal Trouble: While farmers in Maharashtra are protesting on the ground, the farmers in Gujarat led by Gujarat Khedut Samaj (GKS)- fighting a case in the Gujarat High Court against the land acquisition for the bullet train project. - Stakeholders approach: Politics and Policy have to be in sync for the railway modernization. In order to achieve the target, Railways will have to pool in all resources and multiple stakeholders, including private players to deliver the propulsion system and also carry out the assembling. The Policymakers and administration should give priority to systematic sustainable development work- the convergence of jal, jungle, jameen(water-forest-land is an asset for the Adivasi community). - Regular Monitoring: To ensure the induction of these trains in the shortest time possible, as envisaged by Indian Railways. - Technology Transfer: The government has to push for the technology transfer of HSR. This is because there is no mention of the transfer of technology anywhere in the agreement. India aspires to become the third-largest economy in the next 25 years. It has already proven its prowess in the field of space and now is the time for furthering its international stature by joining the exclusive club of nations having a high-speed rail network, however, we should be careful not to confuse leapfrogging technology development with elitism, whether it is mobile phones, satellite launches, regional air connectivity, or high-speed rail. This high-speed rail project will therefore help the Indian Railways to become a global leader in scale, technology, and skill. UPSC 2022 countdown has begun! Get your personal guidance plan now! (Click here) From UPSC perspective, the following things are important : A noted Parliamentarian from Hyderabad has rejected the ‘Z’ category security by the Central Armed Police Forces (CAPF) accorded to him. - In India, security is provided to high-risk individuals by the police and local government. - The level of security needed by any individual is decided by the Ministry of Home Affairs, based on inputs received from intelligence agencies which include the IB and R&AW. - Individuals such as PM, home minister, and other officials such as the National Security Advisor generally get security cover because of the positions they occupy. - In addition to this, persons who are believed to be under threat also receive security cover. What is ‘Z’ Category Security? In India, the category covers are X, Y, Y-plus, Z, Z-plus, and SPG (Special Protection Group). - X Category: The protectee gets one gunman. Protectees in the Y category have one gunman for mobile security and one (plus four on rotation) for static security. - Y Plus category: It receives the cover of two gunmen (plus four on rotation) for mobile security, and one (plus four on rotation) for residence security, - Z Category: It has six gunmen for mobile security and two (plus 8) for residence security. They get 10 security personnel for mobile security, and two (plus 8) for residence security. - Z Plus Category: It is provided by National Security Guard commandos whereas the other category of security is provided by the Delhi police or the ITBP or CRPF personnel. What about Special Protection Group (SPG) Cover? - The SPG cover is meant only for the PM and his immediate family. - After Indira Gandhi was assassinated by her own security guards in 1984, the Rajiv Gandhi government decided to create a special cadre of security personnel for the PM. - In March 1985, following the recommendations of a committee set up by the Home Ministry, a special unit was created for this purpose under the Cabinet Secretariat. - This unit, initially called the Special Protection Unit, was renamed as Special Protection Group in April 1985. UPSC 2022 countdown has begun! Get your personal guidance plan now! (Click here) From UPSC perspective, the following things are important : Neighbours of a golden langur habitat in western Assam’s Bongaigaon district have opposed a move by the State government to upgrade it to a wildlife sanctuary. - The Assam Forest Department has issued a preliminary notification for converting the 19.85 sq. km. patch of forest into the Kajoijana Bamuni Hill Wildlife Sanctuary. - It is one of the better-known homes of the golden langur (Trachypithecus geei) found only in Assam and Bhutan. - Gee’s golden langur (Trachypithecus geei), also known as simply the golden langur, is an Old World monkey. - It is found in a small region of Western Assam and in the neighboring foothills of the Black Mountains of Bhutan. - Long considered sacred by many Himalayan people, the golden langur was first brought to the attention of the western world by the naturalist Edward Pritchard Gee in the 1950s. - Adult males have a cream to golden coat with darker flanks while the females and juveniles are lighter. - It has a black face and a long tail up to 50 cm in length. - It lives in high trees and has a herbivorous diet of ripe and unripe fruits, mature and young leaves, seeds, buds and flowers. - The average group size is eight individuals, with a ratio of several females to each adult male. - It is one of the most endangered primate species of India and Bhutan. - Its habitat is bounded on the south by the Brahmaputra River, on the east by the Manas River, on the west by the Sankosh River, in Assam and on the north by the Black Mountains of Bhutan. Try this question from CSP 2014: Q. Which one of the following groups of animals belongs to the category of endangered species? (c) Snow Leopard, Swamp Deer, Rhesus Monkey, Saras (Crane) Post your answers here. UPSC 2022 countdown has begun! Get your personal guidance plan now! (Click here) From UPSC perspective, the following things are important : The fiscal deficit for the year 2022-23 is higher than what was recommended by the Fifteenth Finance Commission. However, if we consider the direction of consolidation, it is towards a reduction in the fiscal deficit. - This year’s Union budget projects an increase in capex by Rs 3.14 lakh crore, as compared to the budgeted numbers of the previous fiscal. - Given the economy’s savings-investment profile and macroeconomic uncertainties due to the pandemic, private and household investments are likely to be reactive to the general economic environment. - Achieving sustainable recovery: For the government, making capital investment in such uncertain times assumes a much higher priority and is equally indispensable for achieving a strong and sustainable recovery from the pandemic. - Increasing share of government: As per National Accounts data, gross fixed capital formation by the general government (Centre and states) has shown an increase as a percentage of GDP from 3.48 in 2011-12 to 3.82 in 2019-20, while other sectors, particularly households, the share fell from 15.75 per cent to 11.39 per cent during the same period. - The fiscal stance taken in the post-pandemic budgets for higher capital spending, including the budget of 2022-23, is likely to further enhance the general government share in overall capital formation. - Important role of the States: it is also important to recognise that two-thirds of the general government’s capital expenditure is undertaken by states and in this context, the announcement of the Rs 1 lakh crore interest-free loans to the states to increase public investment has been a significant step. - Since states taken together have a higher share in the country’s public capital spending, effective absorption of this additional borrowing facility will be critical for higher public investment. - 1] Increase in taxes: The increase in taxes by Rs 5.71 lakh crore between 2020-21 (the first year of the pandemic) and 2022-23 shows that the fiscal challenges have eased, but remain present as we navigate economic recovery in uncertain times. - 2] Reduction in revenue deficit: Between 2020-21 and 2022-23 (BE), the reduction in revenue deficit has been substantial — from 7.3 per cent to 3.8 per cent of GDP. - 3] Revenue deficit dominates fiscal deficit: Compositionally, revenue deficit continues to be more than 55 per cent of the fiscal deficit and the management of such a deficit has few important considerations for revenue expenditure, that is, interest payments and allocation under various centrally sponsored and central sector schemes. - Role of CSS in revenue deficit: Aggregate allocation under centrally sponsored and central sector schemes (CSS) as per the 2022-23 (BE) is Rs 3.83 lakh crore and the interest payment cost of the Union government is Rs 9.56 lakh crore. - Beyond scheme-wise allocations, it is also important to consider CSS allocation as an issue of macro-fiscal management issue at the Union and state level, especially when it is contributing to the high revenue deficit of the central government and binding state resources for matching contribution, thereby increasing states’ deficit. - The fiscal deficit for the year 2022-23 is higher than what was recommended by the Fifteenth Finance Commission. - However, if we consider the direction of consolidation, it is towards a reduction in the fiscal deficit. - Though in the medium-term, the fiscal story is about supporting recovery, it is also true that there is no “one-size-fits-all” solution to fiscal consolidation and debt sustainability. The direction of fiscal consolidation rather than a specific quantified path in an unprecedented time like this is probably the most appropriate consideration. UPSC 2022 countdown has begun! Get your personal guidance plan now! (Click here) From UPSC perspective, the following things are important : Over 2 crore people who have signed up for the Centre’s portal for unorganised sector workers hold a Graduate Degree. - On August 26, 2021, the Ministry of Labour and Employment (MOLE) launched the E-Shram, the web portal for creating a National Database of Unorganized Workers (NDUW), which will be seeded with Aadhaar. - It seeks to register an estimated 398-400 million unorganized workers and to issue an E-Shram card. - Long process: Given the gigantic nature of registering each worker, it will be a long-drawn process. - No gestation period: The Government has not mentioned a gestation period to assess its strategy and efficiency. - No hasty process: Employers are or required their workers to register even. While the Government can appeal to them, any penal measure will hurt the ease of doing business. - Considering the estimated 380 million workers as the universe of registration — debatable as the novel coronavirus pandemic has pushed lakhs of workers into informality. - Privacy: One of the vital concerns of e-portals is data security, including its potential abuse especially when it is a mega-sized database. - No national framework yet: There are also media reports pointing out the absence of a national architecture relating to data security. - Local server issues: It has been reported that in some states such as Maharashtra, the server was down for a few days. - Aadhaar seeding: Many workers will not have an Aadhaar-seeded mobile or even a smartphone. Aadhaar-seeding is a controversial issue with political overtones, especially in the North-eastern regions. - Eligibility: There are several issues concerning the eligibility of persons to register as well as the definitional issues. - Exclusion: By excluding workers covered by EPF and ESI, lakhs of contract and fixed-term contract workers will be excluded from the universe of UW. Hazardous establishments employing even a single worker will have to be covered under the ESI, which means these workers also will be excluded. - No benefits for the aged: The NDUW excludes millions of workers aged over 59 from its ambit, which constitutes age discrimination. - Migration: Many are circular migrant workers and they quickly, even unpredictably, move from one trade to another. - Mixed work: Many others perform formal and informal work as some during non-office hours may belong to the gig economy, for example as an Uber taxi or a Swiggy employee. They straddle formal and informal sectors. - Gig workers: Even though MOLE has included gig workers in this process, it is legally unclear whether the gig/platform worker can be classified first as a worker at all. - Dependence on States: The central government will have to depend on the state governments for this project to be successful. - Lack of coordination: In many States, the social dialogue with the stakeholders especially is rather weak or non-existent. The success of the project depends on the involvement of a variety of stakeholders apart from trade unions. - Corruption: There is also the concern of corruption as middle-service agencies such as Internet providers might charge exorbitant charges to register and print the E-Shram cards. - Workers stand to gain by registration in the medium to long run. - But the instant benefit of accident insurance up to ₹0.2 million to registered workers is surely not an attractive carrot. - The main point of attraction is the benefits they stand to gain during normal and crisis-ridden periods such as the novel coronavirus pandemic now which the Government needs to disseminate properly. - E-Shram is a vital system to provide hitherto invisible workers much-needed visibility. - It will provide the Labour Market Citizenship Document to them. - The govt should go one step further for triple linkage for efficient and leakage-less delivery of all kinds of benefits and voices to workers/citizens: One-Nation-One-Ration Card (ONOR), E-Shram Card (especially bank account seeded), and the Election Commission Card. - Last but not least, registrations cannot be a source of exclusion of a person from receiving social assistance and benefits. UPSC 2022 countdown has begun! Get your personal guidance plan now! (Click here) From UPSC perspective, the following things are important : In a recent television interview, the Indian Army Chief, General M.M. Naravane, argued that “out of the five or six friction points (in Ladakh), five have been solved”. - ‘Friction point’ are the points of Chinese ingress into hitherto India-controlled territory in Ladakh, where this control is exercised by the Army and the Indo-Tibetan Border Police (ITBP) through regular patrols to the claimed areas. - These ‘friction points’ are Depsang, Galwan, Hot Springs, Gogra, North bank of Pangong Tso, Kailash Range and Demchok. - By asserting that only one of the friction points is remaining to be resolved — Hot Springs or PP15, Army Chief implicitly ruled out Depsang as an area to be resolved. - This attempt to delink the strategically important area of Depsang from the ongoing Ladakh border crisis is worrying. - Depsang is an enclave of flat terrain located in an area the Army classifies as Sub-Sector North (SSN), which provides land access to Central Asia through the Karakoram Pass. - The Army has always identified Depsang plains as where it finds itself most vulnerable in Ladakh, devising plans to tackle the major Chinese challenge. - SSN’s flat terrain of Depsang, Trig Heights and DBO — which provides direct access to Aksai Chin — is suited for mechanised warfare but is located at the end of only one very long and tenuous communication axis for India. - China, in turn, has multiple roads that provide easy access to the area. - This leaves SSN highly vulnerable to capture by the PLA, with a few thousands of square kilometres from the Karakoram Pass to Burtse, likely to be lost. - Nowhere else in Ladakh is the PLA likely to gain so much territory in a single swoop. - SSN lies to the east of Siachen, located between the Saltoro ridge on the Pakistani border and the Saser ridge close to the Chinese border. - On paper, it is the only place where a physical military collusion can take place between Pakistan and China — and the challenge of a two-front war can become real in the worst-case scenario. - If India loses this area, it will be nearly impossible to launch a military operation to wrest back Gilgit-Baltistan from Pakistan. - Invalidation of Indian claims: The biggest danger of delinking Depsang from the current border crisis in Ladakh, however, is of corroborating the Chinese argument, which invalidates the rightful Indian claim over a large swathe of territory. - In sparsely populated areas like Ladakh, with limited forward deployment of troops, the only assertion of territorial claims is by regular patrolling. - By arguing that the blockade at Y-junction predates the current stand-off — a ‘legacy issue’ that goes back years — the Chinese side can affirm that Indian patrols never had access to this area and thus India has no valid claim on the territory. As was demonstrated by China in the aftermath of the 1962 War, there should be no holding back in painstakingly asserting one’s claims when it comes to safeguarding the territory. UPSC 2022 countdown has begun! Get your personal guidance plan now! (Click here) From UPSC perspective, the following things are important : ISRO plans to execute the Chandrayaan-3 mission in August this year. What is Chandrayaan-3 Mission? - The Chandrayaan-3 mission is a follow-up of Chandrayaan-2 of July 2019, which aimed to land a rover on the lunar South Pole. - Chandrayaan-2 consisted of an Orbiter, Lander and Rover, all equipped with scientific instruments to study the moon. - The Orbiter would watch the moon from a 100-km orbit, while the Lander and Rover modules were to be separated to make a soft landing on the moon’s surface. - ISRO had named the Lander module as Vikram, after Vikram Sarabhai, the pioneer of India’s space programme, and the Rover module as Pragyaan, meaning wisdom. - The Orbiter part of the mission has been functioning normally. It is carrying eight instruments. - Each of these instruments has produced a handsome amount of data that sheds new light on the moon and offers insights that could be used in further exploration. - The subsequent failure of the Vikram lander led to the pursuit of another mission to demonstrate the landing capabilities needed for the Lunar Polar Exploration Mission proposed in partnership with Japan for 2024. - The lander for Chandrayaan-3 will have only four throttle-able engines. - Unlike Vikram on Chandrayaan-2 which had five 800N engines with a fifth one being centrally mounted with a fixed thrust. - Additionally, the Chandrayaan-3 lander will be equipped with a Laser Doppler Velocimeter (LDV). - The Chandrayaan-1 mission was launched in October 2008 was ISRO’s first exploratory mission to the moon, in fact to any heavenly body in space. - The mission was designed to just orbit around the moon and make observations with the help of the instruments onboard. - The closest that Chandrayaan-1 spacecraft came to the moon was in an orbit 100 km from its surface. UPSC 2022 countdown has begun! Get your personal guidance plan now! (Click here) From UPSC perspective, the following things are important : The Union Ministry of Environment, Forest & Climate Change has informed about the criteria used to define forest in India. - As per the Conference of Parties (CoP) 9-Kyoto Protocol, the forest can be defined by any country depending upon the capacities and capabilities of the country. - Crown cover percentage: Tree crown cover- 10 to 30% (India 10%) - Minimum height of trees: Potential to reach a minimum height at maturity in situ of 2 to 5 m (India 2m) The definition of forest cover has clearly been defined in all the India State of Forest Report (ISFR) and in all the International communications of India. - The forest cover is defined as ‘all land, more than one hectare in area, with a tree canopy density of more than 10 percent irrespective of ownership and legal status. - Such land may not necessarily be a recorded forest area. It also includes orchards, bamboo and palm’. In ISFR 2021 recently published has divided the forest cover as: - Inside Recorded Forest Area: These are basically natural forests and plantations of Forest Department. - Outside Recorded Forest Area: These cover mango orchards, coconut plantations, block plantations of agroforestry. The Forest Survey of India (FSI) classifies forest cover in 4 classes. - Very Dense forest: All lands with tree cover (including mangrove cover) of canopy density of 70% and above. - Moderately dense forest: All lands with tree cover (including mangrove cover) of canopy density between 40% and 70%. - Open forests: All lands with tree cover (including mangrove cover) of canopy density between 10% and 40%. - Scrubs: All forest lands with poor tree growth mainly of small or stunted trees having canopy density less than 10%. UPSC 2022 countdown has begun! Get your personal guidance plan now! (Click here) From UPSC perspective, the following things are important : Godavari Estuary in Coringa Wildlife Sanctuary (CWS) is facing due ignorance despite meeting all nine criteria of Ramsar Convention. - The estuary, including 235.70 sq. km Coringa Wildlife Sanctuary (CWS), is one of the rarest eco-regions on the earth. - It is also home to India’s second-largest mangrove cover after the Sundarbans. - The CWS is inhabited by 115 endangered fishing cats (Prionailurus viverrinus), Olive Ridley turtles, Indian smooth-coated otter, and saltwater crocodiles. What are the nine criteria laid out by Ramsar Convention? - The Convention on Wetlands of International Importance (better known as the Ramsar Convention) is an international agreement promoting the conservation and wise use of wetlands. - It is the only global treaty to focus on a single ecosystem. - The convention was adopted in the Iranian city of Ramsar in 1971 and came into force in 1975. - Traditionally viewed as a wasteland or breeding ground of disease, wetlands actually provide fresh water and food and serve as nature’s shock absorber. - Wetlands, critical for biodiversity, are disappearing rapidly, with recent estimates showing that 64% or more of the world’s wetlands have vanished since 1900. - Major changes in land use for agriculture and grazing, water diversion for dams and canals, and infrastructure development are considered to be some of the main causes of loss and degradation of wetlands. UPSC 2022 countdown has begun! Get your personal guidance plan now! (Click here) From UPSC perspective, the following things are important : While there is an allure to national dreams of economic prosperity and global competitiveness, underwritten by AI, there is an environmental cost. - Unfair race for dominance in AI: A few developed economies possess certain material advantages right from the start, they also set the rules. - They have an advantage in research and development, and possess a skilled workforce as well as wealth to invest in AI. - Inequality in terms of governance: We can also look at the state of inequity in AI in terms of governance: How “tech fluent” are policymakers in developing and underdeveloped countries? - What barriers do they face in crafting regulations and industrial policy? - At the same time, there is an emerging challenge at the nexus of AI and climate change that could deepen this inequity. - The climate impact of AI comes in a few forms: The energy use of training and operating large AI models is one. - In 2020, digital technologies accounted for between 1.8 per cent and 6.3 per cent of global emissions. - Both global AI governance and climate change policy (historically) are contentious, being rooted in inequitable access to resources. - Developing and underdeveloped countries face a challenge on two fronts: - 1] AI’s social and economic benefits are accruing to a few countries. - 2] Most of the current efforts and narratives on the relationship between AI and climate impact are being driven by the developed West. - Assess technology-led priorities: Governments of developing countries, India included, should also assess their technology-led growth priorities in the context of AI’s climate costs. - It is argued that as developing nations are not plagued by legacy infrastructure it would be easier for them to “build up better”. Consider the question “How Artificial Intelligence technologies could transform the world as we know it? What are the concerns with it? It may be worth thinking through what “solutions” would truly work for the unique social and economic contexts of the communities in our global village. UPSC 2022 countdown has begun! Get your personal guidance plan now! (Click here) From UPSC perspective, the following things are important : Indian criminal laws are divided into three major acts: - Indian Penal Code, 1860: It is a comprehensive code intended to cover all substantive aspects of criminal law. - Code of Criminal Procedure, 1973: CrPC defines the rules with which substantive laws can be enforced. - Indian Evidence Act, 1872: It contains a set of rules and allied issues governing the admissibility of evidence in the Indian courts of law. Besides these major acts, special Criminal Laws are also passed by the Indian Parliament which includes: - The Defence of India Act, etc. - Colonial ideas prevail in the code. - Risk of excessive policing, which leads to harassment of people. - Need to harmonize statute books with court rulings, which have often expanded the rights of people. - Influence of media trials on the judiciary while using the IPC. Why amend them? - The evolution of criminal laws is a continuous process. - They need to be made in accordance with the contemporary needs and aspirations of people. - Malimath Committee has called for reform in India’s criminal justice system. - The entire procedure is a long-drawn-out one and no time limit can be fixed or given for this legislative process. - Legislation of such laws is a complex and lengthy exercise given the spectrum of divergent views of stakeholders. - The Home Ministry is seeking suggestions from various stakeholders and judicial luminaries in this regard. UPSC 2022 countdown has begun! Get your personal guidance plan now! (Click here) From UPSC perspective, the following things are important : The Supreme Court Collegium headed by Chief Justice N.V. Ramana has recommended to the Centre the names of six judicial officers for appointment as judges of the Delhi High Court. What is Collegium System? - The Collegium of judges is the Indian Supreme Court’s invention. - It does not figure in the Constitution, which says judges of the Supreme Court and High Courts are appointed by the President and speaks of a process of consultation. - In effect, it is a system under which judges are appointed by an institution comprising judges. - After some judges were superseded in the appointment of the CJI in the 1970s, and attempts made subsequently to effect a mass transfer of High Court judges across the country. - Hence there was a perception that the independence of the judiciary was under threat. This resulted in a series of cases over the years. - First Judges Case (1981) ruled that the “consultation” with the CJI in the matter of appointments must be full and effective. - However, it rejected the idea that the CJI’s opinion, albeit carrying great weight, should have primacy. - Second Judges Case (1993) introduced the Collegium system, holding that “consultation” really meant “concurrence”. - It added that it was not the CJI’s individual opinion, but an institutional opinion formed in consultation with the two senior-most judges in the Supreme Court. - Third Judges Case (1998): On a Presidential Reference for its opinion, the Supreme Court, in the Third Judges Case (1998) expanded the Collegium to a five-member body, comprising the CJI and four of his senior-most colleagues. - The President of India appoints the CJI and the other SC judges. - As far as the CJI is concerned, the outgoing CJI recommends his successor. - In practice, it has been strictly by seniority ever since the supersession controversy of the 1970s. - The Union Law Minister forwards the recommendation to the PM who, in turn, advises the President. - For other judges of the top court, the proposal is initiated by the CJI. - The CJI consults the rest of the Collegium members, as well as the senior-most judge of the court hailing from the High Court to which the recommended person belongs. - The consultees must record their opinions in writing and it should form part of the file. - The Collegium sends the recommendation to the Law Minister, who forwards it to the Prime Minister to advise the President. - The CJs of High Courts are appointed as per the policy of having Chief Justices from outside the respective States. The Collegium takes the call on the elevation. - High Court judges are recommended by a Collegium comprising the CJI and two senior-most judges. - The proposal, however, is initiated by the Chief Justice of the High Court concerned in consultation with two senior-most colleagues. - The recommendation is sent to the Chief Minister, who advises the Governor to send the proposal to the Union Law Minister. Does the Collegium recommend transfers too? - Yes, the Collegium also recommends the transfer of Chief Justices and other judges. - Article 222 of the Constitution provides for the transfer of a judge from one High Court to another. - When a CJ is transferred, a replacement must also be simultaneously found for the High Court concerned. There can be an acting CJ in a High Court for not more than a month. - In matters of transfers, the opinion of the CJI “is determinative”, and the consent of the judge concerned is not required. - However, the CJI should take into account the views of the CJ of the High Court concerned and the views of one or more SC judges who are in a position to do so. - All transfers must be made in the public interest, that is, “for the betterment of the administration of justice”. - Lack of Transparency: Opaqueness and a lack of transparency, and the scope for nepotism are cited often. - Judges appointing Judge: The attempt made to replace it with a ‘National Judicial Appointments Commission’ was struck down by the court in 2015 on the ground that it posed a threat to the independence of the judiciary. - Criteria: Some do not believe in full disclosure of reasons for transfers, as it may make lawyers in the destination court chary of the transferred judge. - In respect of appointments, there has been an acknowledgment that the “zone of consideration” must be expanded to avoid criticism that many appointees hail from families of retired judges. - The status of a proposed new memorandum of procedure, to infuse greater accountability, is also unclear. - Even the majority opinions admitted the need for transparency, now Collegiums’ resolutions are now posted online, but reasons are not given. UPSC 2022 countdown has begun! Get your personal guidance plan now! (Click here) From UPSC perspective, the following things are important : The J&K Delimitation Commission is likely to get a second extension of its term this month. What is Delimitation and why is it needed? - Delimitation is the act of redrawing boundaries of an assembly or Lok Sabha seat to represent changes in population over time. - This exercise is carried out by a Delimitation Commission, whose orders have the force of law and cannot be questioned before any court. - The objective is to redraw boundaries (based on the data of the last Census) in a way so that the population of all seats, as far as practicable, be the same throughout the State. - Aside from changing the limits of a constituency, the process may result in a change in the number of seats in a state. - Assembly seats in J&K were delimited in 1963, 1973 and 1995. - Prior to August 5, 2019, carving out of J&K’s Assembly seats was carried out under the J&K Constitution and Jammu and Kashmir Representation of the People Act, 1957. - Until then, the delimitation of Lok Sabha seats in J&K was governed by the Constitution of India. - However, the delimitation of the state’s Assembly was governed by the J&K Constitution and J&K Representation of the People Act, 1957. - There was no census in the state in 1991 and hence no Delimitation Commission was set up by the state until 2001 census. Why is it in the news again? - After the abrogation of J&K’s special status in 2019, the delimitation of Lok Sabha and Assembly seats in the newly-created UT would be as per the provisions of the Indian Constitution. - On March 6, 2020, the government set up the Delimitation Commission, headed by retired Supreme Court judge Ranjana Prakash Desai, which was tasked with winding up delimitation in J&K in a year. - As per the J&K Reorganization Bill, the number of Assembly seats in J&K would increase from 107 to 114, which is expected to benefit the Jammu region. - The number of districts had increased from 12 to 20 and tehsils from 52 to 207 since the last delimitation. - The population density ranged from 29 persons a square km in Kishtwar to 3,436 persons a square km in Srinagar. - The remoteness of the place, inaccessibility etc are also considered during the exercise. - Jammu vs. Kashmir: Concerns had been expressed over how the delimitation process may end up favoring the Jammu region over Kashmir in terms of the seats. - Under-representation of Ladakh: Arguments have been made on how Ladakh has been underrepresented, with demands for statehood/sixth schedule. - Non-proportionate reservations: It is argued that seats for STs should’ve been divided in both Jammu province & Kashmir province, as the ST population is almost equal. Do not forget to answer this PYQ in the comment box: Q.With reference to the Delimitation Commission, consider the following statements: - The orders of the Delimitation Commission cannot be challenged in a Court of Law. - When the orders of the Delimitation Commission are laid before the Lok Sabha or State Legislative Assembly, they cannot affect any modifications in the orders. Which of the statements given above is/are correct? Post your answers here: From UPSC perspective, the following things are important : Recently, The Central Board of Direct Taxes (CBDT) issued detailed guidelines on the Tax Deducted at Source (TDS) rule for Virtual Digital Assets (VDAs) such as cryptocurrencies . What are Virtual Digital Assets? - To define the term “virtual digital asset”, a new clause (47A) is proposed to be inserted into section 2 of the Act. - A virtual digital asset is proposed to mean any information or code or number or token (not being Indian currency or any foreign currency): - Can be transferred, stored, or traded electronically. - Non-fungible token (NFT) and; any other token of similar nature are included in the definition. Why tax them? - Popularity: Virtual digital assets have gained tremendous popularity in recent times and the volumes of trading in such digital assets have increased substantially. - Growing market: Further, a market is emerging where payment for the transfer of a virtual digital asset can be made through another such asset. - Increased transactions: There has been a phenomenal rise in such transactions and the magnitude and frequency of these transactions have made it imperative to provide for a specific tax regime. - Prevalence of gifting: The gifting of virtual digital assets is also a popular mode of exchange. - The bill provides for the definition of virtual digital assets which is wide enough to cover emerging digital assets including NFT, assets in metaverse, cryptocurrencies, etc. - This recognition of digital assets under income tax is NOT akin to granting legal status. UPSC 2022 countdown has begun! Get your personal guidance plan now! (Click here)
english
India’s oldest car maker Hindustan Motors, which declared suspension of work at its Uttarpara plant on May 24, has terminated the services of around 240 managerial staff. The company, however, retained some staff in disciplines such as finance and HR. Company sources said that the termination notices on the staff were served yesterday. The company had given employment to around 2,300 workers. The plant manufactured the iconic Ambassador cars, whose demand in the market place dwindled owing to the onset of stiff competition from Japanese and Korean players. Commenting on the termination of the managerial staff, HR professionals were of the opinion that this action on the part of the existing top management would create a psychological impact in the minds of the workers. “The workers will now have a feeling that since the managerial staff were retrenched, so there are little hopes of reopening,” a senior HR professional said. In that case, the liability of the company would get reduced to a large extent with no decrease in assets. “It will probably be in a better situation to rope in a new investor for revival of the plant,” he said. Meanwhile, the West Bengal labour department has called a tripartite on June 12.
english
{"id": 1686, "title": "Ticket #1686: schedd crash due to memory corruption", "description": "<blockquote>\nThis was observed in a pre-release of 7.5.5:\n\n<p></p><div class=\"verbatim\">\n<pre>$CondorVersion: 7.5.5 Sep 23 2010 BuildID: 274250 PRE-RELEASE-UWCS $\n$CondorPlatform: X86_64-LINUX_RHEL3 $\n</pre></div>\n\n\n<p>It appears that memory got corrupted, because the schedd died in malloc. It's not clear what caused this.\n\n</p><p></p><div class=\"verbatim\">\n<pre>Stack dump for process 17639 at timestamp 1285983425 (18 frames)\ncondor_schedd(dprintf_dump_stack+0xb3)[0x5dcf2b]\ncondor_schedd(_Z18linux_sig_coredumpi+0x28)[0x5ced68]\n/lib64/tls/libpthread.so.0[0x2a95678430]\n/lib64/tls/libc.so.6[0x2a95fa6458]\n/lib64/tls/libc.so.6(malloc+0x92)[0x2a95fa8202]\n/usr/lib64/libstdc++.so.5(_Znwm+0x25)[0x2a95b6b425]\ncondor_schedd(_ZN6SecMan12startCommandEiP4SockbP11CondorErroriPFvbS1_S3_PvES4_bPKcS8_+0x2c)[0x6d4ecc]\ncondor_schedd(_ZN6Daemon12startCommandEiP4SockiP11CondorErrorPFvbS1_S3_PvES4_bPKcPcP6SecManbS8_+0x12f)[0x61eeb1]\ncondor_schedd(_ZN6Daemon24startCommand_nonblockingEiP4SockiP11CondorErrorPFvbS1_S3_PvES4_PKcbS8_+0x83)[0x61f2ed]\ncondor_schedd(_ZN11DCMessenger12startCommandE18classy_counted_ptrI5DCMsgE+0x47f)[0x63474b]\ncondor_schedd(_ZN6Daemon7sendMsgE18classy_counted_ptrI5DCMsgE+0xc2)[0x623654]\ncondor_schedd(_Z9sendAliveP9match_rec+0x232)[0x53e6fc]\ncondor_schedd(_ZN9Scheduler10sendAlivesEv+0x123)[0x53ead3]\ncondor_schedd(_ZN12TimerManager7TimeoutEv+0x26f)[0x5d83d5]\ncondor_schedd(_ZN10DaemonCore6DriverEv+0x71f)[0x5bb9d1]\ncondor_schedd(main+0x1921)[0x5d1d5d]\n/lib64/tls/libc.so.6(__libc_start_main+0xdb)[0x2a95f593fb]\ncondor_schedd(_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c+0x42)[0x51fbea]\n</pre></div>\n\n\n<p>The full <code>SchedLog</code> is at <a class=\"external\" href=\"http://www.hep.wisc.edu/~dan/schedd_crash_2010-10-04/SchedLog\">http://www.hep.wisc.edu/~dan/schedd_crash_2010-10-04/SchedLog</a></p></blockquote>", "remarks": "<blockquote>\n<hr/>\n<em>2011-Jan-27 14:50:47 by danb:</em> <br/>\n\nBulk change of target version from v070505 to v070506 using ./ticket-target-mover.\n<hr/>\n<em>2011-Feb-01 16:20:02 by tannenba:</em> <br/>\n\nBulk change of target version from v070506 to NULL using ./ticket-target-mover.\n\n<p></p><hr/>\n<em>2014-Jul-16 11:59:58 by bbockelm:</em> <br/>\n\nClosing old debugging tickets - reopen if it happens again.</blockquote>", "derived_tickets": "", "attachments": "<html><head></head><body></body></html>", "check_ins": "", "type": "defect", "last_change": "2014-Jul-16 12:00", "status": "abandoned", "created": "2010-Oct-04 10:17", "fixed_version": "2010-Oct-04 10:17", "broken_version": "v070505", "priority": "4", "subsystem": "", "assigned_to": "", "derived_from": "", "creator": "danb", "rust": "", "customer_group": "cms", "visibility": "public", "notify": "<EMAIL>", "due_date": ""}
json
#include "PanelAudioMixer.h" #include "Application.h" #include "Modules/ModuleEditor.h" #include "Modules/ModuleScene.h" #include "Modules/ModuleAudio.h" #include "Utils/Pool.h" #include "Scene.h" #include "imgui.h" #include "IconsForkAwesome.h" #include <string> #include "Utils/Logging.h" #include "Utils/Leaks.h" PanelAudioMixer::PanelAudioMixer() : Panel("Audio Mixer", false) {} void PanelAudioMixer::Update() { ImGui::SetNextWindowSize(ImVec2(400.0f, 400.0f), ImGuiCond_FirstUseEver); std::string windowName = std::string(ICON_FK_MUSIC " ") + name; if (ImGui::Begin(windowName.c_str(), &enabled, ImGuiWindowFlags_AlwaysAutoResize)) { if (App->scene->scene->audioListenerComponents.Count() == 0) { ImGui::End(); return; } float gainMainChannel = App->audio->GetGainMainChannel(); float gainMusicChannel = App->audio->GetGainMusicChannel(); float gainSFXChannel = App->audio->GetGainSFXChannel(); ImGui::TextColored(App->editor->titleColor, "Main Volume"); if (ImGui::SliderFloat("##main_volume", &gainMainChannel, 0.f, 1.f)) { App->audio->SetGainMainChannel(gainMainChannel); } ImGui::Separator(); ImGui::NewLine(); ImGui::TextColored(App->editor->titleColor, "Music Volume"); if (ImGui::SliderFloat("##music_volume", &gainMusicChannel, 0.f, 1.f)) { App->audio->SetGainMusicChannel(gainMusicChannel); } ImGui::TextColored(App->editor->titleColor, "SFX Volume"); if (ImGui::SliderFloat("##sfx_volume", &gainSFXChannel, 0.f, 1.f)) { App->audio->SetGainSFXChannel(gainSFXChannel); } } ImGui::End(); }
cpp
The Brazilian footballing legend, Pele, who will be 80 in October, has had hip trouble for some time, needs a frame to walk and often uses a wheelchair. And if the recent interview of his son is to be summed up, issues have once again popped up regarding the health of the player. Son of three-time World Cup winner and the Brazilian legend Pele said that his father is “depressed” and reluctant to leave his house because he cannot walk unaided due to his poor health. The Brazilian, thought by some to be the greatest player in history, will be 80 in October and was treated in Paris in April for a urinary infection. Pele, full name Edson Arantes do Nascimento, has had hip trouble for some time and now needs a frame to walk, with many of his recent public appearances seeing him use a wheelchair. In an interview with Brazil’s Globo Esporte, 49-year-old son Edinho said: Edinho said that he had argued with his father because he had not done the physiotherapy called for after a hip operation. Adding to his comments, Edinho opined; This summer will mark the 50th anniversary of the striker’s third World Cup victory, won in Mexico in 1970 with what many people believe is the greatest team of all time. He also played in the Brazil sides that won in 1958 and 1962 and scored a record 1,282 goals in 1,363 games over a 21-year career.
english
In the early 1980s, a sexually transmitted disease called HIV (Human Immunodeficiency Virus) was discovered and later it was found to be the main reason behind AIDS (Acquired immunodeficiency syndrome). Since the late 1980s as HIV AIDS emerged as a threat to public health sexually transmitted diseases became a widely discussed subject. During this time, when people started getting concerned over sexual health, many awareness campaigns were launched around “safe and protected sex”. However, over the years sexually transmitted diseases have remained a matter of concern for health experts. Syphilis is one such infection, which also increases the risk of HIV AIDS among certain groups like commercial sex workers and individuals with multiple partners, among others. Syphilis is a common type of sexually transmitted infection whose symptoms vary from person to person. The most common symptom is an ulcer or boils on the affected area, which is caused by treponema pallidum bacteria. The size of boils ranges from the size of a pimple to a centimetre wide. In women, it usually occurs in the vagina or the labia, and in men, it appears on the penis. It can also appear around the anus or other parts of the body. Apart from this, some early symptoms of syphilis infection are often ignored as many infected people fail to realise what it is and assume it will go away on its own. Syphilis infection is mainly caused by sexual intercourse with an infected person. If not treated early, skin rash starts developing all over the body because of the spread of pathogens via blood. The infected person starts getting skin lesions throughout the body, where some are raised, some are a bit scaly, and others are reddish. At an advanced stage, the condition worsens as it starts affecting the internal organs, stomach, liver, airways, muscles and bones. The situation gets critical when on the main artery a “syphilitic node" is formed that can lead to an aortic aneurysm, which is deadly. Contrary common perception, syphilis infection can lead to chronic diseases. As a systemic disease, it causes heart inflammation, liver function changes, brain damage and signs of paralysis in its fourth phase. The disease causes brain inflammation and affects the eyes in many cases. In fact, in old times, Syphilis was nicknamed “the great pretender" as it mimics many other diseases. When syphilis infection started, it used to be treated with an arsenic compound, salvarsan in 1910. In 1943, penicillin was created, and it became the drug of choice, just like it is now. Benzathine penicillin G injection is used for the treatment of the disease and different doses are recommended by the doctors depending on the severity and stage of Syphilis. However, experts believe that if the pathogen builds up resistance to penicillin, then it will take immense efforts to deal with the disease.
english
116/7 (17. 0 ov) 62/0 (7. 2 ov) 172/7 (20. 0 ov) 157 (20. 0 ov) The ICC World Cup 2007 saw Australia dominate like no other team had previously. Matthew Hayden claimed that Ryan Harris is probably the best bowler on the planet right now. On this day, 11 years back, when Steve Waugh walked out to bat for the final time in international cricket, defeat was still a possibility. Hayden claimed that Hazlewood looks like a bowler where nothing can really go wrong. Matthew Hayden criticised India’s mental strength as he said that India’s weakness lies in their thought process. Former Australia batsman Matthew Hayden feels India always have an excuse for their loss. Downton also claimed he was unable to find a single person who wanted the batsman to stay. Kallis is the only all-rounder in the team. The WACA Test of 2001-02 was a spectacular one: the mighty Australians crumbled against Daniel Vettori until Shane Warne rescued them with a career-best 99. Net bowlers are usually drawn from high level club cricket and play an important role in helping World Cup.
english
<reponame>m-prth/Hacktoberfest2021-1 # Rotating 3D Poster Flutter UI Challenge - 11 ## Screen ![Flutter 3D Poster](screen.gif)
markdown
There has been only one building ever erected on earth that was perfect in every detail from the start and never needed to be added to or changed; the tabernacle in the wilderness. The blueprint, layout, plan and design with all the specifications were designed in heaven. It was conveyed to Moses from the Lord for Israel. Moses received it while he was on Mount Sinai, shortly after Israel's exodus and deliverance from Egypt. The finest detail of the tabernacle, every particular aspect, was designed by the Almighty God. Every aspect has a prophetic redemptive and type meaning which was fulfilled in Christ. There is no Scripture richer in meaning, more perfect in teaching the plan of salvation, than this divinely designed building - the tabernacle. God was the Architect. Every detail points back to a certain aspect of the character and work of the person of God's Son, Jesus Christ. In its completed form, the tabernacle is probably the most fully detailed revelation of Jesus Christ, the Son of God, and the plan of salvation in the entire Old Testament. At first glance, the outward appearance of the tabernacle was not very appealing. From the outside, there was very little indication of the glory, splendour, beauty and magnificence that existed within it. The priest looking from the outside could not see the intrinsic beauty and breathtaking glory. Only after he entered the forecourt through the gate on the east side, stood still at the brazen altar with his burnt offering and then washed his hands and feet in the laver, could he enter to see the glory of what was inside the tabernacle. This tabernacle in the wilderness/desert would become the central place of all worship for the children of Israel during their wanderings, as determined by the God of heaven. Moses was repeatedly ordered to make an exact replica of the one that God had shown to him on Mount Sinai (Exod. 25:40; Heb. 8:5). What God showed him was therefore one that already existed in heaven. The tabernacle was a type, an image, a shadow of something with real substance that already existed! One thing is absolutely certain; the tabernacle of God on earth was a type or foreshadowing of the Lord Jesus Christ! This is where God and man meet, where Deity and humanity converge in one person (Heb. 8:1, 2). So in Christ we find the perfect answer to the spiritual significance of the tabernacle. We read in John 1:14: And the Word became flesh and dwelt among us (literally: tabernacle). Every detailed aspect of the tabernacle refers back to different aspects of the person and work of Christ our Saviour. The tabernacle would be the epitome of the all-sufficient and complete provision of salvation in Jesus Christ. The tabernacle is more than just an image of Jesus Christ, in a secondary sense, it is a picture of the believer. The believer IN CHRIST is the dwelling place of God. We are also the temple of the Holy Spirit (1 Cor. 6:19; 2 Cor. 6:16). It's not just an image of the Lord Jesus Christ and the believer, but also a complete picture of the plan of salvation in a sevenfold plan: One: As a sinner standing outside, we have to go through the door (gate) and stop at the ALTAR: the place of sacrifice (the cross, the starting point of our experience of salvation). Two: Thereafter, seclusion and daily cleansing at the LAVER follows. Three: Then we move into the community with the Word or bread at the TABLE WITH SHEWBREAD. Four: We learn to walk in the light of the GOLDEN CANDLESTICK (1 John 1:7). Five: Now, and only now, do we come to the place of power in prayer at the GOLDEN ALTAR OF INCENSE. Six: Now we are ready and we go into the HOLY OF HOLIES for the highest service of the tabernacle in God's intimate presence. Seven: This brings us to complete rest and peace at the blood sprinkled MERCY SEAT of the ARK OF THE COVENANT under the shadow of the cherubims of glory. It's amazing to think that all of this takes place on a small patch of land in the midst of the people in the desert. The size of the rectangular plot of land was: 75 feet wide (23 meters) and 150 feet long (46 meters). It was the same size as a normal plot for a home in the later city life of the nation of Israel. The rectangular plot on which the tabernacle would stand was enclosed with a fence of seven and a half feet (2.3 meters) high. To the east was the entrance gate which was the only place of access to this sacred area. The idea of the tabernacle was that God became a pilgrim with pilgrims and lived in a "tent" with people living in tents or, God came down to where man was so that He could have fellowship with man. And there I will meet with you (Exod. 25:22). In Christ, God would dwell below the cloud column (John 1:14). Tabernacle is a name formed from the Latin word meaning TENT, literally in Hebrew: DWELLING (Exod. 25:8, 9). Jesus came to live with us (John 1:14), and in Revelation 21:3 God the Father dwells with man forever. The tabernacle, made by human hands, was designed by the Lord Himself. The whole design and layout of the tabernacle of the Lord was shown to Moses on Mount Sinai. Moses was commanded to build the tabernacle in strict accordance with the Lord God's clear instructions. Exploring The Mind of God (Hebrew Word Study)
english
<filename>datasets/2D/SIGN/writer005/sessionB/curve_downRight-1-7.json {"name":"curve_downRight","subject":5,"date":"16122009-062251","paths":{"Pen":{"strokes":[{"x":-483,"y":-445,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":0,"stroke_id":0},{"x":-539,"y":-489,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":1,"stroke_id":0},{"x":-566,"y":-510,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":2,"stroke_id":0},{"x":-591,"y":-533,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":3,"stroke_id":0},{"x":-610,"y":-546,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":4,"stroke_id":0},{"x":-620,"y":-566,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":5,"stroke_id":0},{"x":-613,"y":-580,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":6,"stroke_id":0},{"x":-593,"y":-590,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":7,"stroke_id":0},{"x":-558,"y":-590,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":8,"stroke_id":0},{"x":-508,"y":-582,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":9,"stroke_id":0},{"x":-447,"y":-557,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":10,"stroke_id":0},{"x":-373,"y":-517,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":11,"stroke_id":0},{"x":-287,"y":-457,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":12,"stroke_id":0},{"x":-200,"y":-378,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":13,"stroke_id":0},{"x":-110,"y":-282,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":14,"stroke_id":0},{"x":-26,"y":-176,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":15,"stroke_id":0},{"x":52,"y":-59,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":16,"stroke_id":0},{"x":114,"y":57,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":17,"stroke_id":0},{"x":165,"y":173,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":18,"stroke_id":0},{"x":195,"y":281,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":19,"stroke_id":0},{"x":207,"y":382,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":20,"stroke_id":0},{"x":194,"y":469,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":21,"stroke_id":0},{"x":163,"y":549,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":22,"stroke_id":0},{"x":111,"y":619,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":23,"stroke_id":0},{"x":43,"y":680,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":24,"stroke_id":0},{"x":-39,"y":735,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":25,"stroke_id":0},{"x":-128,"y":778,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":26,"stroke_id":0},{"x":-217,"y":814,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":27,"stroke_id":0},{"x":-312,"y":833,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":28,"stroke_id":0},{"x":-384,"y":842,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":29,"stroke_id":0},{"x":-440,"y":834,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":30,"stroke_id":0},{"x":-471,"y":816,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":31,"stroke_id":0},{"x":-471,"y":816,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":32,"stroke_id":0}]}},"device":{"osBrowserInfo":"Fujitsu-Siemens Stylistic ST5022 Tablet PC","resolutionHeight":null,"resolutionWidth":null,"windowHeight":null,"windowWidth":null,"pixelRatio":null,"mouse":false,"pen":true,"finger":false,"acceleration":false,"webcam":false}}
json
<filename>src/input.rs use std::io::{Error, ErrorKind}; use std::marker::Unpin; use async_stream::stream; use futures::Stream; use termion::event::{Event, Key, MouseButton, MouseEvent}; use tokio::io::AsyncReadExt; use tokio::prelude::*; // This file contains tty event handling rewritten in async // src: https://github.com/redox-os/termion/blob/master/src/event.rs async fn fetch_byte(rdr: &mut (impl AsyncRead + Unpin)) -> Result<u8, Error> { let mut buf = [0u8]; rdr.read_exact(&mut buf[..]).await?; Ok(buf[0]) } async fn parse_csi(mut rdr: &mut (impl AsyncRead + Unpin)) -> Option<Event> { let ev = match fetch_byte(&mut rdr).await.ok()? { b'[' => { let val = fetch_byte(&mut rdr).await.ok()?; Event::Key(Key::F(1 + val - b'A')) } b'D' => Event::Key(Key::Left), b'C' => Event::Key(Key::Right), b'A' => Event::Key(Key::Up), b'B' => Event::Key(Key::Down), b'H' => Event::Key(Key::Home), b'F' => Event::Key(Key::End), b'M' => { // X10 emulation mouse encoding: ESC [ CB Cx Cy (6 characters only). let cb = fetch_byte(&mut rdr).await.ok()? as i8 - 32; // (1, 1) are the coords for upper left. let cx = fetch_byte(&mut rdr).await.ok()?.saturating_sub(32) as u16; let cy = fetch_byte(&mut rdr).await.ok()?.saturating_sub(32) as u16; Event::Mouse(match cb & 0b11 { 0 => { if cb & 0x40 != 0 { MouseEvent::Press(MouseButton::WheelUp, cx, cy) } else { MouseEvent::Press(MouseButton::Left, cx, cy) } } 1 => { if cb & 0x40 != 0 { MouseEvent::Press(MouseButton::WheelDown, cx, cy) } else { MouseEvent::Press(MouseButton::Middle, cx, cy) } } 2 => MouseEvent::Press(MouseButton::Right, cx, cy), 3 => MouseEvent::Release(cx, cy), _ => return None, }) } b'<' => { // xterm mouse encoding: // ESC [ < Cb ; Cx ; Cy (;) (M or m) let mut buf = Vec::new(); let mut c = fetch_byte(&mut rdr).await.unwrap(); while match c { b'm' | b'M' => false, _ => true, } { buf.push(c); c = fetch_byte(&mut rdr).await.unwrap(); } let str_buf = String::from_utf8(buf).unwrap(); let nums = &mut str_buf.split(';'); let cb = nums.next().unwrap().parse::<u16>().unwrap(); let cx = nums.next().unwrap().parse::<u16>().unwrap(); let cy = nums.next().unwrap().parse::<u16>().unwrap(); let event = match cb { 0..=2 | 64..=65 => { let button = match cb { 0 => MouseButton::Left, 1 => MouseButton::Middle, 2 => MouseButton::Right, 64 => MouseButton::WheelUp, 65 => MouseButton::WheelDown, _ => unreachable!(), }; match c { b'M' => MouseEvent::Press(button, cx, cy), b'm' => MouseEvent::Release(cx, cy), _ => return None, } } 32 => MouseEvent::Hold(cx, cy), 3 => MouseEvent::Release(cx, cy), _ => return None, }; Event::Mouse(event) } c @ b'0'..=b'9' => { // Numbered escape code. let mut buf = Vec::new(); buf.push(c); let mut c = fetch_byte(&mut rdr).await.unwrap(); // The final byte of a CSI sequence can be in the range 64-126, so // let's keep reading anything else. while c < 64 || c > 126 { buf.push(c); c = fetch_byte(&mut rdr).await.unwrap(); } match c { // rxvt mouse encoding: // ESC [ Cb ; Cx ; Cy ; M b'M' => { let str_buf = String::from_utf8(buf).unwrap(); let nums: Vec<u16> = str_buf.split(';').map(|n| n.parse().unwrap()).collect(); let cb = nums[0]; let cx = nums[1]; let cy = nums[2]; let event = match cb { 32 => MouseEvent::Press(MouseButton::Left, cx, cy), 33 => MouseEvent::Press(MouseButton::Middle, cx, cy), 34 => MouseEvent::Press(MouseButton::Right, cx, cy), 35 => MouseEvent::Release(cx, cy), 64 => MouseEvent::Hold(cx, cy), 96 | 97 => MouseEvent::Press(MouseButton::WheelUp, cx, cy), _ => return None, }; Event::Mouse(event) } // Special key code. b'~' => { let str_buf = String::from_utf8(buf).unwrap(); // This CSI sequence can be a list of semicolon-separated // numbers. let nums: Vec<u8> = str_buf.split(';').map(|n| n.parse().unwrap()).collect(); if nums.is_empty() { return None; } // TODO: handle multiple values for key modififiers (ex: values // [3, 2] means Shift+Delete) if nums.len() > 1 { return None; } match nums[0] { 1 | 7 => Event::Key(Key::Home), 2 => Event::Key(Key::Insert), 3 => Event::Key(Key::Delete), 4 | 8 => Event::Key(Key::End), 5 => Event::Key(Key::PageUp), 6 => Event::Key(Key::PageDown), v @ 11..=15 => Event::Key(Key::F(v - 10)), v @ 17..=21 => Event::Key(Key::F(v - 11)), v @ 23..=24 => Event::Key(Key::F(v - 12)), _ => return None, } } _ => return None, } } _ => return None, }; Some(ev) } /// Parse `c` as either a single byte ASCII char or a variable size UTF-8 char. async fn parse_utf8_char(c: u8, mut rdr: &mut (impl AsyncRead + Unpin)) -> Result<char, Error> { if c.is_ascii() { return Ok(c as char); } let mut buf = Vec::with_capacity(5); buf.push(c); loop { buf.push(fetch_byte(&mut rdr).await?); match std::str::from_utf8(&buf) { Ok(st) => return Ok(st.chars().next().unwrap()), Err(err) if buf.len() >= 4 => { return Err(Error::new( ErrorKind::Other, format!("Input character is not valid UTF-8: {}", err), )); } _ => {} } } } pub async fn parse_event(mut rdr: &mut (impl AsyncRead + Unpin)) -> Result<Event, Error> { let item = match fetch_byte(&mut rdr).await { Ok(item) => item, Err(err) => return Err(err), }; match item { b'\x1B' => { // This is an escape character, leading a control sequence. let c = match fetch_byte(&mut rdr).await? { b'O' => { match fetch_byte(&mut rdr).await? { // F1-F4 val @ b'P'..=b'S' => Event::Key(Key::F(1 + val - b'P')), _ => { return Err(Error::new( ErrorKind::Other, "Could not parse a function key event", )) } } } b'[' => { // This is a CSI sequence. parse_csi(&mut rdr).await.ok_or_else(|| { Error::new(ErrorKind::Other, "Could not parse a csi sequence key event") })? } c => Event::Key(Key::Alt(parse_utf8_char(c, rdr).await?)), }; Ok(c) } b'\n' | b'\r' => Ok(Event::Key(Key::Char('\n'))), b'\t' => Ok(Event::Key(Key::Char('\t'))), b'\x7F' => Ok(Event::Key(Key::Backspace)), c @ b'\x01'..=b'\x19' => Ok(Event::Key(Key::Ctrl((c as u8 - 0x1 + b'a') as char))), c @ b'\x1C'..=b'\x1F' => Ok(Event::Key(Key::Ctrl((c as u8 - 0x1C + b'4') as char))), b'\0' => Ok(Event::Key(Key::Null)), c => Ok({ Event::Key(Key::Char(parse_utf8_char(c, rdr).await?)) }), } } pub fn events_stream(mut rdr: impl AsyncRead + Unpin) -> impl Stream<Item = Result<Event, Error>> { stream! { loop { match parse_event(&mut rdr).await { Ok(event) => yield Ok(event), Err(err) if err.kind() == ErrorKind::UnexpectedEof => break, Err(err) => yield Err(err), } } } }
rust
<gh_stars>100-1000 {"nom":"Vitry-sur-Seine","circ":"9ème circonscription","dpt":"Val-de-Marne","inscrits":29570,"abs":18514,"votants":11056,"blancs":180,"nuls":82,"exp":10794,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":3342},{"nuance":"FI","nom":"Mme <NAME>","voix":1889},{"nuance":"COM","nom":"Mme <NAME>","voix":1603},{"nuance":"FN","nom":"<NAME>","voix":1081},{"nuance":"LR","nom":"Mme <NAME>","voix":940},{"nuance":"SOC","nom":"<NAME>","voix":862},{"nuance":"DLF","nom":"M. <NAME>","voix":240},{"nuance":"ECO","nom":"Mme <NAME>","voix":220},{"nuance":"DIV","nom":"Mme <NAME>","voix":170},{"nuance":"DIV","nom":"<NAME>","voix":143},{"nuance":"EXG","nom":"Mme <NAME>","voix":124},{"nuance":"DVG","nom":"M. <NAME>","voix":77},{"nuance":"EXG","nom":"M. <NAME>","voix":52},{"nuance":"DIV","nom":"M. <NAME>","voix":51},{"nuance":"DVD","nom":"Mme <NAME>","voix":0}]}
json
Pictures are taken from various sources for spreading knowledge. this is a non- commercial blog. Thanks for your great pictures. Thiruvisai Nallur is a village situated ten kilometres from Kumbakonam. We were fortunate enough to see the house (now a holy mutt) and the miracle well in the house. Sridhara Venkatesa Ayyaval 1635-1720 (aiyaavaaL) lived about 400 years before our time. The area was under the Maratha Kings of Thanjavur then. His father served as a Diwan of Mysore King. Ayyaval was also offered good posts in the kingdom; but he rejected those offers and started visiting Shiva Temples in Kaveri basin. He was very much attracted towards Lord Shiva of Thiruvidaimaruthur (Sri Mahalinga Swami). When he settled down in the nearby village Thiruvisainallur, several miracles happened in his life. He was the composer of several popular hymns. He used one of his hymns to revive a dead boy, who died of snake bite. Another miracle that happened in his life is remembered until today and celebrated annually on Karthikai Amavasai Day (New moon day in the month of Krittika). This is the story of the miracle: Once he performed the ritual Sraddha (ceremony in memory of departed souls) and went towards river Kaveri (also Cauvery). He saw a low caste man suffering from acute hunger. Though Ayyaval was a strict Brahmin, he fed the low caste man with the remaining food in his house. Brahmins are supposed to leave the reminder only to cows. Only close family can eat Sradhdha food. The village came to know what he did against the prescribed rule. They told him that he must go to Kasi (Varanasi/ Benares) and bathe in the Holy Ganga River to atone for his blasphemous act. Being a great saint, he saw all men as equal and sons of God. He prayed strongly to Lord Shinva and it was answered immediately. He was told that he need not travel to Kasi, but Ganges river itself will come to him on the Newmoon day of Karthikai. That happened on the day in the well situated in his house and the water overflew flooding the streets. Now all orthodox village community knew his greatness. Then followed several miracles. His hymn on River Ganga is called Gangashtakam. He was a contemporary of other great composers like Bodhendra and Sadhasiva Brahmendra. I was fortunate enough to visit hose holy places in Govindarajapuram and Nerur of those two great men. You may read a lot about holy shrines and saints who did miracles. Bu when you visit those places in person, you get a great thrill and complete satisfaction. Moreover, their power remains there for several centuries. We were fortunate enough to sprinkle the holy water on our heads from the village well at Sridhara Ayaaval’s house. Now it has been made a temple/Mutt . On the Karthikai Amavasai Day every year, thousands of devotees come here to bathe or sprinkle the holy well water. (Please see the pictures taken by me in February 2023)
english
* { margin: 0; padding: 0; box-sizing: border-box; } .cube_wraper { flex: 1 1 50%; display: flex; margin: 250px 0 0; justify-content: center; } @media (max-width: 992px) { .cube_wraper { margin: 0 0 40px; flex: 0 0 250px; } } .cubeFaces, .shadow { /* -webkit-animation:spin 45s linear infinite; */ animation: spin 45s linear infinite; } .shadowContainer { perspective: 800px; perspective-origin: 50% 100px; -webkit-perspective: 800px; -webkit-perspective-origin: 50% 100px; } .shadow { position: relative; width: 300px; transform-style: preserve-3d; } @media (max-width: 992px) { .shadow { width: 200px; } } .shadow div { position: absolute; width: 300px; height: 300px; top: 0; opacity: 0.98; box-shadow: 0 0 100px #000; transform: rotateX(90deg) translateY(150px); transform-origin: bottom center; } @media (max-width: 992px) { .shadow div { width: 200px; height: 200px; transform: rotateX(90deg) translateY(100px); } } .actualCubeContainer { perspective: 800px; perspective-origin: 50% 100px; } .cubeFaces { position: relative; width: 300px; transform-style: preserve-3d; } @media (max-width: 992px) { .cubeFaces { width: 200px; } } .cubeFace { outline: 1px solid #02203c; position: absolute; width: 300px; height: 300px; opacity: 0.75; box-shadow: inset 0 0 100px #02203c; } @media (max-width: 992px) { .cubeFace { width: 200px; height: 200px; } } .reduxLogo, .reactLogo, .webpackLogo, .javaScriptLogo { width: 100%; height: 100%; } .cubeFaceFront { transform: translateZ(150px); background-color: #3e526a; } @media (max-width: 992px) { .cubeFaceFront { transform: translateZ(100px); } } .cubeFaceBack { transform: translateZ(-150px) rotateY(180deg); background-color: #3e526a; } @media (max-width: 992px) { .cubeFaceBack { transform: translateZ(-100px) rotateY(180deg); } } .cubeFaceRight { transform: rotateY(-270deg) translateX(150px); transform-origin: top right; background-color: #3e526a; } @media (max-width: 992px) { .cubeFaceRight { transform: rotateY(-270deg) translateX(100px); } } .cubeFaceLeft { padding: 1em; transform: rotateY(270deg) translateX(-150px); transform-origin: center left; background-color: #3e526a; } @media (max-width: 992px) { .cubeFaceLeft { transform: rotateY(270deg) translateX(-100px); } } .cubeFaceTop { transform: rotateX(-90deg) translateY(-150px); transform-origin: top center; background-color: #02203c; } @media (max-width: 992px) { .cubeFaceTop { transform: rotateX(-90deg) translateY(-100px); } } .cubeFaceBottom { transform: rotateX(90deg) translateY(150px); transform-origin: bottom center; background-color: #02203c; } @media (max-width: 992px) { .cubeFaceBottom { transform: rotateX(90deg) translateY(100px); } } @-webkit-keyframes spin { 0% { transform: rotateY(0); } to { transform: rotateY(1turn); } } @keyframes spin { 0% { transform: rotateY(0); } to { transform: rotateY(1turn); } }
css
version https://git-lfs.github.com/spec/v1 oid sha256:122f7ef900963345097ad95023da8ececca8bb7d4a40c11212bb3cdce61cdf3a size 1149620
typescript
filed under: Internet Governance, On December 13 and 14, 2012, the Electronic Frontier Foundation organized the Surveillance and Human Rights Camp held in Rio de Janeiro, Brazil. The meeting examined trends in surveillance, reasons for state surveillance, surveillance tactics that governments are using, and safeguards that can be put in place to protect against unlawful or disproportionate surveillance. filed under: Internet Governance, This report entails an overview of the discussions and recommendations of the third Privacy Round Table meeting in Chennai, on 18th May 2013. The Surveillance Industry in India: At Least 76 Companies Aiding Our Watchers! filed under: surveillance technologies, Internet Governance, Maria Xynou is conducting research on surveillance technology companies operating in India. So far, 76 companies have been detected which are currently producing and selling different types of surveillance technology. This post entails primary data on the first ever investigation of the surveillance industry in India. Check it out! filed under: Internet Governance, In this post, Maria Xynou gives us a comparison of the Draft DNA Profiling Bill 2007 and the Draft Human DNA Profiling Bill 2012. filed under: Internet Governance, In this post, Maria Xynou looks at some of DARPA´s artificial intelligence surveillance technologies in regards to the right to privacy and their potential future use in India. Workshop on the Unique Identity Number (UID), the National Population Register (NPR) and Governance: What will happen to our data? filed under: Internet Governance, On March 2nd, 2013, the Centre for Internet and Society and the Say No to UID campaign organized a workshop to discuss the present state of the UID and NPR schemes. Some of the questions which were addressed included ´How do the UID and NPR impact citizenship´, ´Why and how is national security linked to UID/NPR´, and ´What is the relationship between UID and Big Data´. filed under: Internet Governance, The Centre for Internet and Society (CIS) recently interviewed Mathew Thomas from the Say No to UID campaign about his ongoing efforts to challenge the UID scheme legally in the Bangalore High Court and Supreme Court of India. Read this interview and gain an interesting insight on recent legal developments with regards to the UID! filed under: Internet Governance, UAS License Agreement Amendment regarding the Central Monitoring System (CMS) filed under: Internet Governance, filed under: Internet Governance, The Centre for Internet and Society has been researching privacy in India since 2010 with the objective of raising public awareness around privacy, completing in depth research, and driving a privacy legislation in India. As part of this work, Bhairav Acharya has drafted the Privacy (Protection) Bill 2013.
english
<reponame>wangzhengfeng/test @charset "utf-8"; i{ font-style: normal; } b{ font-weight: normal; } img{ border:0px; vertical-align:middle; cursor:pointer; } h1{ font-size:12px; color:#808080; font-family: "microsoft yahei"; margin-bottom:11px; border-bottom: 1px solid #bbb; margin-top:30px; } #header{ height:40px; margin:10px auto 10px auto; width:1000px; clear:both; } #navlist { width: 1000px; height: 38px; margin: 25px auto; } #navlist li{ float:left; height:38px; line-height:38px; position: relative; } .navlist_blue{ background: -moz-linear-gradient(top, #27b0f6 0%, #0aa1ed 100%); background: -webkit-linear-gradient(top, #27b0f6 0%, #0aa1ed 100%); background: -o-linear-gradient(top, #27b0f6 0%, #0aa1ed 100%); background: -ms-linear-gradient(top, #27b0f6 0%, #0aa1ed 100%); box-shadow: 3px 3px 6px 0px #ccc; text-align:center; font-size:16px; font-weight:bold; color:#FFF; width:310px; height:38px; } #navlist .navlist_blue_arrow{ width: 0; height: 0; border-top: 19px solid transparent; border-left: 20px solid #0aa1ed; border-bottom: 19px solid transparent; } .navlist_gray{ background: -moz-linear-gradient(top, #f5f4f5 0%, #e6e6e5 100%); background: -webkit-linear-gradient(top, #f5f4f5 0%,#e6e6e5 100%); background: -o-linear-gradient(top, #f5f4f5 0%,#e6e6e5 100%); background: -ms-linear-gradient(top, #f5f4f5 0%,#e6e6e5 100%); box-shadow: 3px 3px 6px 0px #ccc; text-align:center; font-size:14px; font-weight:bold; width:325px; } #navlist .navlist_gray_arrow{ width: 0; height: 0; border-left: 20px solid #e8e8e8; border-top: 19px solid transparent; border-bottom: 19px solid transparent; } #navlist>ul>li>b{ width: 0; height: 0; border-top: 19px solid transparent; border-bottom: 19px solid transparent; border-left: 20px solid #f5f5f5; position:absolute; left:0; } /*结算条*/ #container #count_bar{ margin-top:260px; margin-bottom:10px; width:1000px; height:54px; line-height:54px; background: -moz-linear-gradient(top, #f5f4f5 0%, #e6e6e5 100%); background: -webkit-linear-gradient(top, #f5f4f5 0%,#e6e6e5 100%); background: -o-linear-gradient(top, #f5f4f5 0%,#e6e6e5 100%); background: -ms-linear-gradient(top, #f5f4f5 0%,#e6e6e5 100%); box-shadow: 3px 3px 6px 0px #ccc; clear:both; } #count_bar>span{ font-size:12px; text-align: left; } #count_bar .pay_leftTime{ padding: 0 16px; color:#636363; } #count_bar .pay_leftTime>b{ color:#0aa1ed; } #count_bar .okPay{ float: right; margin:11px 16px; width:86px; height:32px; cursor:pointer; line-height:32px; box-sizing: border-box; text-align: center; /*FILTER: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#ffb20f,endColorStr=eda50b); /!*IE 6 7 8*!/*/ background: -ms-linear-gradient(top, #ffb20f, #eda50b); /* IE 10 */ background:-moz-linear-gradient(top,#ffb20f,#eda50b);/*火狐*/ background:-webkit-gradient(linear, 0% 0%, 0% 100%,from(#ffb20f), to(#eda50b));/*谷歌*/ background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#ffb20f), to(#eda50b)); /* Safari 4-5, Chrome 1-9*/ background: -webkit-linear-gradient(top, #ffb20f, #eda50b); /*Safari5.1 Chrome 10+*/ background: -o-linear-gradient(top, #ffb20f, #eda50b); /*Opera 11.10+*/ color:#fff; } /*支付订单信息*/ #container { width: 1000px; margin: 10px auto; } #container .pay_info{ color:#808080; padding:0 2px; font-size:12px; } #container .pay_info span{ float:right; padding-right:2px; } #container .pay_info b>i{ color:#0AA1ED; font-weight:bold; } /*支付方式选择*/ #pay_type .pay_type_title{ background: -moz-linear-gradient(top, #f5f4f5 0%, #e6e6e5 100%); background: -webkit-linear-gradient(top, #f5f4f5 0%,#e6e6e5 100%); background: -o-linear-gradient(top, #f5f4f5 0%,#e6e6e5 100%); background: -ms-linear-gradient(top, #f5f4f5 0%,#e6e6e5 100%); box-shadow: 3px 3px 3px #ccc; color:#808080; font-size:12px; height:30px; line-height:30px; padding:0 18px; } #pay_type .pay_type_title span{ float:right; } /*支付方式*/ #pay_type .pay_type img{ padding:20px; border: 1px solid transparent; } #pay_type .pay_type img:hover{ border: 1px solid #0aa1ed; } /*订单支付结果*/ h1 b{ color:#0aa1ed; font-size:16px; font-weight: bold; } h1 i{ font-size:16px; } #container .pay_result{ float:right; width:448px; height:90px; margin-right:260px; margin-top:130px; color:#808080; clear: both; margin-bottom: 176px; } #container .pay_result >img{ float:left; padding:50px 20px 0 66px; } #container .pay_result >p{ padding:15px 15px 0 5px; font-size:32px; font-family: simhei; color: #0aa1ed; margin-top:46px; margin-bottom:5px; } .rt{float: right} #container .pay_result a{ color:#bbbbbb; } #container .pay_result a:hover{ color:#0aa1ed; } /*银行支付*/ #dnBank ul{ background: #fff; width:1000px; box-sizing: border-box; padding: 35px 16px 25px 18px; float:left; box-shadow: 3px 3px 6px #ccc; } #dnBank ul li{ float:left; margin:0 13px 10px; } .img{ border:2px solid transparent; } #dnBank>ul>li img:hover{ opacity: 0.9; } .hover{ border-color: #0aa1fd; border-radius: 8px; } #canvas{ float:left; } #foot_box{ display: block; }
css
<filename>trf/src/test/java/org/lcsim/recon/tracking/trfcyl/HitCylPhiGenerator_Test.java /* * HitCylPhiGenerator_Test.java * * Created on July 24, 2007, 8:44 PM * * $Id: HitCylPhiGenerator_Test.java,v 1.1.1.1 2010/04/08 20:38:00 jeremy Exp $ */ package org.lcsim.recon.tracking.trfcyl; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import junit.framework.TestCase; import org.lcsim.recon.tracking.trfbase.BoundedStat; import org.lcsim.recon.tracking.trfbase.Cluster; import org.lcsim.recon.tracking.trfbase.CrossStat; import org.lcsim.recon.tracking.trfbase.ETrack; import org.lcsim.recon.tracking.trfbase.Hit; import org.lcsim.recon.tracking.trfbase.Surface; import org.lcsim.recon.tracking.trfbase.TrackError; import org.lcsim.recon.tracking.trfbase.TrackVector; import org.lcsim.recon.tracking.trfbase.VTrack; import org.lcsim.recon.tracking.trfutil.Assert; import org.lcsim.recon.tracking.trfutil.TRFMath; /** * * @author <NAME> */ public class HitCylPhiGenerator_Test extends TestCase { private boolean debug; /** Creates a new instance of HitCylPhiGenerator_Test */ public void testHitCylPhiGenerator() { String component = "HitCylPhiGenerator"; String ok_prefix = component + " (I): "; String error_prefix = component + " test (E): "; if(debug) System.out.println( ok_prefix + "---------- Testing component " + component + ". ----------" ); //******************************************************************** if(debug) System.out.println( ok_prefix + "Test constructor." ); double radius = 25.0; double dphi = 0.01; TestSurfCylinder tcy = new TestSurfCylinder(radius); if(debug) System.out.println(tcy); HitCylPhiGenerator gen = new HitCylPhiGenerator(tcy,dphi); if(debug) System.out.println( gen ); //******************************************************************** if(debug) System.out.println( ok_prefix + "Generate a list of hits." ); double phi0 = 1.2345; Surface srf = new SurfCylinder(radius); TrackVector vec = new TrackVector(); vec.set(SurfCylinder.IPHI, phi0); TrackError err = new TrackError(); VTrack trv = new VTrack(srf,vec); ETrack tre = new ETrack(trv,err); List clusters = new ArrayList(); int nclus = 20; for ( int i=0; i<nclus; ++i ) { Cluster clu = gen.newCluster(trv); Assert.assertTrue( clu != null ); clusters.add( clu ); } // Verify and display the list. List hits = new ArrayList(); for ( Iterator iclu=clusters.iterator(); iclu.hasNext(); ) { Cluster clu = (Cluster) iclu.next(); Assert.assertTrue( clu != null ); List newhits = clu.predict(tre,clu); Assert.assertTrue( newhits.size() == 1 ); hits.add( newhits.get(0) ); } Assert.assertTrue( hits.size() == nclus ); //******************************************************************** if(debug) System.out.println( ok_prefix + "Generate list of measured values." ); double avg = 0.0; double sdev = 0.0; for ( Iterator ihit=hits.iterator(); ihit.hasNext(); ) { Hit hit = (Hit) ihit.next(); Assert.assertTrue( hit != null ); double mval = hit.measuredVector().get(0); double merr = hit.measuredError().get(0,0); double pval = hit.predictedVector().get(0); double perr = hit.predictedError().get(0,0); Assert.assertTrue( TRFMath.isEqual(pval,phi0) ); Assert.assertTrue( TRFMath.isEqual(merr,dphi*dphi) ); if(debug) System.out.println( mval ); avg += mval; sdev += (mval-pval)*(mval-pval); } avg /= nclus; sdev = Math.sqrt(sdev/nclus); if(debug) System.out.println( " Avg: " + avg ); if(debug) System.out.println( "Sdev: " + sdev ); Assert.assertTrue( Math.abs( avg - phi0 ) < dphi ); Assert.assertTrue( Math.abs( sdev - dphi ) < dphi ); //******************************************************************** if(debug) System.out.println( ok_prefix + "Generate a hit out-of-bounds." ); vec.set(SurfCylinder.IZ, 200.0); trv.setVector(vec); Assert.assertTrue( gen.newCluster(trv) == null ); //******************************************************************** if(debug) System.out.println( ok_prefix + "Print final generator state." ); if(debug) System.out.println( gen ); //******************************************************************** if(debug) System.out.println( ok_prefix + "------------- All tests passed. -------------" ); //******************************************************************** } // SurfCylinder subclass for testing. // z > 100 is considered out of bounds. static class TestSurfCylinder extends SurfCylinder { // static methods // Return the type name. public static String typeName() { return "TestSurfCylinder"; } // Return the type. public static String staticType() { return typeName(); } public double _zmax; public TestSurfCylinder(double radius) { super(radius); } public CrossStat status( ETrack tre) { return status( (VTrack) tre ); } // Return the type. public String type() { return staticType(); } public CrossStat status( VTrack trv ) { CrossStat xstat = pureStatus(trv); if ( ! xstat.at() ) return xstat; double z = trv.vector(SurfCylinder.IZ); if ( z > 100.0 ) return new CrossStat(BoundedStat.OUT_OF_BOUNDS); return new CrossStat(BoundedStat.IN_BOUNDS); } public Surface newSurface() { return new TestSurfCylinder(radius()); } public String toString() { return "TestSurfCylinder with radius "+_radius; } } }
java
<filename>LibHTML/Layout/LayoutNode.cpp #include <LibHTML/Layout/LayoutNode.h> LayoutNode::LayoutNode(const Node* node) : m_node(node) { } LayoutNode::~LayoutNode() { } void LayoutNode::retain() { ASSERT(m_retain_count); ++m_retain_count; } void LayoutNode::release() { ASSERT(m_retain_count); if (!--m_retain_count) delete this; } void LayoutNode::append_child(Retained<LayoutNode> node) { if (m_last_child) m_last_child->set_next_sibling(node.ptr()); node->m_parent_node = this; m_last_child = &node.leak_ref(); if (!m_first_child) m_first_child = m_last_child; } void LayoutNode::layout() { for_each_child([](auto& child) { child.layout(); }); }
cpp
<reponame>mastodon-sc/mastodon-collection /*- * #%L * Mastodon Collections * %% * Copyright (C) 2015 - 2021 <NAME>, <NAME> * %% * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * #L% */ package org.mastodon.pool; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import java.util.Iterator; import java.util.NoSuchElementException; import org.junit.Assume; import org.junit.Before; import org.junit.Test; import org.mastodon.Options; /** * These tests ensure that proper exceptions are raised when a Pool is queried * with invalid index. */ public class PoolInvalidAccessTest { @Before public void checkDebugFlag() { // This class tests DEBUG behaviour. If DEBUG==false, ignore tests. Assume.assumeTrue( Options.DEBUG ); } @Test( expected = NoSuchElementException.class ) public void testGetObjectNegative() { final int nTargets = 10; final TestObjectPool pool = new TestObjectPool( nTargets ); final TestObject ref = pool.createEmptyRef(); for ( int i = 0; i < nTargets; i++ ) pool.create( ref ).init( i ); // Good. pool.getObject( 0, ref ); // Not good. pool.getObject( -1, ref ); } @Test( expected = NoSuchElementException.class ) public void testGetObjectOver() { final int nTargets = 10; final TestObjectPool pool = new TestObjectPool( nTargets ); final TestObject ref = pool.createEmptyRef(); for ( int i = 0; i < nTargets; i++ ) pool.create( ref ).init( i ); pool.getObject( 0, ref ); pool.getObject( nTargets + 1, ref ); } @Test( expected = NoSuchElementException.class ) public void testGetObjectDeleted() { final int nTargets = 10; final TestObjectPool pool = new TestObjectPool( nTargets ); final TestObject ref = pool.createEmptyRef(); for ( int i = 0; i < nTargets; i++ ) pool.create( ref ).init( i ); // Remove first 5. final Iterator< TestObject > it = pool.iterator( ref ); int nit = 0; while ( it.hasNext() && nit++ < 5 ) pool.delete( it.next() ); // Should crash. pool.getObject( 0, ref ); } @Test( expected = NoSuchElementException.class ) public void testGetObjectInvalid() { final int nTargets = 10; final TestObjectPool pool = new TestObjectPool( nTargets ); final TestObject ref = pool.createEmptyRef(); for ( int i = 0; i < nTargets / 2; i++ ) pool.create( ref ).init( i ); final TestObject o = pool.create( ref ).init( 1234987239 ); final int id = o.getInternalPoolIndex(); for ( int i = 0; i < nTargets / 2; i++ ) pool.create( ref ).init( i + 10 ); final TestObject td = pool.getObject( id, ref ); pool.delete( td ); pool.getObject( id, ref ); } @Test( expected = NoSuchElementException.class ) public void testPoolIterator() { final int nTargets = 10; final TestObjectPool pool = new TestObjectPool( nTargets ); final TestObject ref = pool.createEmptyRef(); for ( int i = 0; i < nTargets; i++ ) pool.create( ref ).init( i ); assertEquals( "Pool does not have the expected size.", nTargets, pool.size() ); // Remove them all. for ( final TestObject o : pool ) pool.delete( o ); assertEquals( "Pool should be of size 0.", 0, pool.size() ); final Iterator< TestObject > it = pool.iterator(); assertFalse( "Pool iterator should not have a next element.", it.hasNext() ); // Re-add 5. for ( int i = 0; i < nTargets / 2; i++ ) pool.create( ref ).init( nTargets + i ); // Re-delete for ( final TestObject o : pool ) pool.delete( o ); // Should trigger NoSuchElementException. it.next(); pool.releaseRef( ref ); } }
java
import numpy as np import requests import random import pandas as pd import time import multiprocessing url = 'https://raw.githubusercontent.com/dwyl/english-words/master/words_alpha.txt' existingWords = requests.get(url) existingWords = existingWords.text.split() existingWords = [word for word in existingWords if (len(word) == 4 or len(word) == 5 or len(word) == 6)] def genLetter(): alphabet = 'abcdefghijklmnopqrstuvwxyz' randletter = random.choice(alphabet) return randletter def createboard(rand=False, dimensions = '4x4'): if rand == True: indexableboard = np.array([ [genLetter(), genLetter(), genLetter(), genLetter()], [genLetter(), genLetter(), genLetter(), genLetter()], [genLetter(), genLetter(), genLetter(), genLetter()], [genLetter(), genLetter(), genLetter(), genLetter()], ]) df = pd.DataFrame(data=indexableboard) else: line1 = input("Input letters:\n\n").lower() line2 = input().lower() line3 = input().lower() line4 = input().lower() indexableboard = np.array([ [line1[0], line1[1], line1[2], line1[3]], [line2[0], line2[1], line2[2], line2[3]], [line3[0], line3[1], line3[2], line3[3]], [line4[0], line4[1], line4[2], line4[3]] ]) df = pd.DataFrame(data=indexableboard) return df def getSurrounding(df, row, column): possible = [] if row+1 < 4: possible.append([row+1, column]) if row-1 > -1: possible.append([row-1, column]) if column +1 < 4: possible.append([row, column+1]) if column -1 > -1: possible.append([row, column-1]) if row+1 < 4 and column +1 < 4: possible.append([row+1, column+1]) if row+1 < 4 and column -1 > -1: possible.append([row+1, column-1]) if row-1 > -1 and column +1 < 4: possible.append([row-1, column+1]) if row-1 > -1 and column -1 > -1: possible.append([row-1, column-1]) return possible def solveBoard(df, beginningval, return_list): words = [] board = df.copy() row = beginningval[0] column = beginningval[1] surroundings = getSurrounding(board, row, column) letter1 = board.iloc[row, column] board.iloc[row, column] = np.NaN for level1 in surroundings: wordlist = '' wordlist+=letter1 row = level1[0] column = level1[1] if type(board.iloc[row, column]) == str: letter2 = board.iloc[row, column] surroundings1 = getSurrounding(board, row, column) board.iloc[row, column] = np.NaN wordlist+=letter2 for level2 in surroundings1: board2 = board.copy() wordlist2 = wordlist row = level2[0] column = level2[1] if type(board2.iloc[row, column]) == str: letter3 = board2.iloc[row, column] wordlist2+=letter3 surroundings2 = getSurrounding(board2, row, column) board2.iloc[row, column] = np.NaN words.append(wordlist2) for level3 in surroundings2: board3 = board2.copy() wordlist3 = wordlist2 row = level3[0] column = level3[1] if type(board3.iloc[row, column]) == str: letter4 = board3.iloc[row, column] wordlist3+=letter4 surroundings3 = getSurrounding(board3, row, column) board3.iloc[row, column] = np.NaN words.append(wordlist3) for level4 in surroundings3: board4 = board3.copy() wordlist4 = wordlist3 row = level4[0] column = level4[1] if type(board4.iloc[row, column]) == str: letter5 = board4.iloc[row, column] wordlist4+=letter5 surroundings4 = getSurrounding(board4, row, column) board4.iloc[row, column] = np.NaN words.append(wordlist4) for level5 in surroundings4: board5 = board4.copy() wordlist5 = wordlist4 row = level5[0] column = level5[1] if type(board5.iloc[row, column]) == str: letter6 = board5.iloc[row, column] wordlist5+=letter6 board5.iloc[row, column] = np.NaN words.append(wordlist5) #print(words) possible = [word for word in words if word in existingWords] return_list += possible if __name__ == '__main__': yes = [] for i in range(4): for z in range(4): yes.append((i,z)) processes = [] board = createboard(rand=False) startime = time.time() manager = multiprocessing.Manager() return_list = manager.list() for m in yes: p = multiprocessing.Process(target=solveBoard, args=(board, m, return_list)) processes.append(p) p.start() for process in processes: process.join() endtime = time.time() print(f'Finished successfully in {endtime-startime}') print(sorted(return_list, key=len, reverse=True))
python
Perth: Michael Klinger smashed an unbeaten 71 off 49 balls to steer the Perth Scorchers to a crushing nine-wicket win over the Sydney Sixers in Australia’s Twenty20 Big Bash League final in Perth on Saturday. Klinger hammered five fours and five sixes in the Scorchers’ 144 for one to easily overhaul the Sixers’ 141 for nine with 25 balls to spare. It was the Scorchers’ third title in six BBL seasons in another dominant campaign. Englishman Ian Bell was at the wicket with Klinger when the winning runs were hit and remained 31 not out off 25 balls. “Some times the risks come off. 140 can be a tricky target," Klinger said. “We just thought that we’ll come out here and take the game away. Whiteman was unbelievable in the first three-four overs, but our bowlers set this up for us. " Pacemen Jhye Richardson and England import Tim Bresnan set up the crushing victory with three wickets each in the Sixers’ struggling innings. Former Australia Test fast bowler Mitchell Johnson had another influential bowling spell with one for 13 off four overs after taking three for three in the semi-final win over the Melbourne Stars. Johnson said he thoroughly enjoyed playing in the BBL but had no thoughts of breaking his retirement to play international T20 cricket. “Pretty awesome. It brings back old memories. The last two games have been amazing," Johnson said. “You always think about coming out of retirement. Playing here, I had fun, but I don’t think I will play international cricket again. “That’s done and dusted. I’m just enjoying playing here. " The Scorchers have now won the BBL title in 2013/14, 2014/15 and this season and lost in two other finals, while the Sixers, who were the inaugural season champions, have now lost in two other finals. Cricket Australia said it will increase the number of games next season as it looks to capitalise on huge turnouts at matches. The Big Bash League has drawn huge crowds across Australia over the past few weeks and CA said it plans to add another eight matches to the competition. More than one million spectators attended matches this season, while the league has attracted an average television viewership of more than a million each night, CA said. (This story has not been edited by News18 staff and is published from a syndicated news agency feed - AFP)
english
<gh_stars>100-1000 package org.talend.esb.mep.requestcallback.impl; import java.io.File; import java.net.MalformedURLException; import java.net.URL; import java.security.cert.X509Certificate; import java.util.List; import java.util.Map; import javax.wsdl.Definition; import javax.xml.namespace.QName; import org.apache.cxf.binding.soap.SoapMessage; import org.apache.cxf.headers.Header; import org.apache.cxf.helpers.CastUtils; import org.apache.cxf.helpers.DOMUtils; import org.apache.cxf.interceptor.Fault; import org.apache.cxf.message.Exchange; import org.apache.cxf.message.Message; import org.apache.cxf.phase.AbstractPhaseInterceptor; import org.apache.cxf.phase.Phase; import org.apache.cxf.rt.security.utils.SecurityUtils; import org.apache.cxf.service.model.BindingInfo; import org.apache.cxf.ws.addressing.AddressingProperties; import org.apache.cxf.ws.addressing.JAXWSAConstants; import org.apache.cxf.ws.addressing.MAPAggregator; import org.apache.cxf.ws.security.SecurityConstants; import org.apache.cxf.wsdl.WSDLManager; import org.apache.wss4j.dom.WSConstants; import org.apache.wss4j.dom.engine.WSSecurityEngineResult; import org.apache.wss4j.dom.handler.WSHandlerConstants; import org.apache.wss4j.dom.handler.WSHandlerResult; import org.talend.esb.mep.requestcallback.feature.CallContext; import org.talend.esb.mep.requestcallback.feature.CallbackInfo; import org.talend.esb.mep.requestcallback.feature.RequestCallbackFeature; import org.talend.esb.sam.agent.flowidprocessor.FlowIdProtocolHeaderCodec; import org.talend.esb.sam.agent.flowidprocessor.FlowIdSoapCodec; import org.talend.esb.sam.agent.message.FlowIdHelper; import org.w3c.dom.Element; /** * The Class CompressionOutInterceptor. */ public class RequestCallbackInInterceptor extends AbstractPhaseInterceptor<SoapMessage> { public RequestCallbackInInterceptor() { super(Phase.PRE_LOGICAL); addAfter(MAPAggregator.class.getName()); } /** * {@inheritDoc} */ @Override public void handleMessage(SoapMessage message) throws Fault { final Header callHeader = message.getHeader( RequestCallbackFeature.CALL_ID_HEADER_NAME); if (callHeader == null) { return; } final Exchange e = message.getExchange(); if (!e.isOneWay()) { e.setOneWay(true); } final Header callbackHeader = message.getHeader( RequestCallbackFeature.CALLBACK_ID_HEADER_NAME); if (callbackHeader == null) { doHandleRequestSoapMessage(message, callHeader); } else { doHandleCallbackSoapMessage(message, callHeader, callbackHeader); } } private void doHandleRequestSoapMessage( SoapMessage message, Header callHeader) throws Fault { CallContext ctx = setupCallContext(message, callHeader, null); // In case of using requestor certificate for response encryption, store certificate into callContext storeRequestorCertificate(message, ctx); } private void doHandleCallbackSoapMessage( SoapMessage message, Header callHeader, Header callbackHeader) throws Fault { setupCallContext(message, callHeader, callbackHeader); setupFlowId(message); } private CallContext setupCallContext( SoapMessage message, Header callHeader, Header callbackHeader) throws Fault { final AddressingProperties maps = getAddressingProperties(message); if (maps == null) { throw new IllegalStateException( "Request-Callback enabled but no WS-Addressing headers set. "); } CallContext ctx = new CallContext(); message.put(RequestCallbackFeature.CALLCONTEXT_PROPERTY_NAME, ctx); final QName operationName = QName.valueOf(maps.getAction().getValue()); if (!isGenericOperation(operationName)) { ctx.setOperationName(operationName); } ctx.setCallId(valueOf(callHeader)); if (callbackHeader != null) { ctx.setCallbackId(valueOf(callbackHeader)); } ctx.setRequestId(maps.getMessageID().getValue()); ctx.setReplyToAddress(maps.getReplyTo().getAddress().getValue()); ctx.setCorrelationId(getCorrelationId(message)); // Try to get SAM flowId in request message // to store it in CallContext for subsequent use // in callback message if (callbackHeader == null) { setupFlowId(message); } fillCallContext(ctx, message); return ctx; } private static String getCorrelationId(SoapMessage message) { Header h = message.getHeader(RequestCallbackFeature.CORRELATION_ID_HEADER_NAME); if(h!=null){ return valueOf(h); } return null; } private static AddressingProperties getAddressingProperties(SoapMessage message) { AddressingProperties maps = (AddressingProperties) message.get( JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES); if (maps == null) { maps = (AddressingProperties) message.get( JAXWSAConstants.ADDRESSING_PROPERTIES_INBOUND); } return maps; } private static String valueOf(Header header) { final Object headerObject = header.getObject(); if (headerObject == null) { return null; } if (headerObject instanceof String) { return (String) headerObject; } if (headerObject instanceof Element) { return DOMUtils.getContent((Element) headerObject); } return null; } private static boolean isGenericOperation(QName operationName) { final String name = operationName.getLocalPart(); return name.startsWith("http://cxf.apache.org/jaxws") && name.endsWith("InvokeOneWayRequest"); } public static void fillCallContext(CallContext callContext, SoapMessage message) { if (callContext.getOperationName() == null) { callContext.setOperationName((QName) message.get(Message.WSDL_OPERATION)); } callContext.setPortTypeName((QName) message.get(Message.WSDL_INTERFACE)); callContext.setServiceName((QName) message.get(Message.WSDL_SERVICE)); final BindingInfo bi = message.getExchange().getBinding().getBindingInfo(); callContext.setBindingId(bi == null ? "http://schemas.xmlsoap.org/wsdl/soap/" : bi.getBindingId()); URL wsdlLocation = resolveCallbackWsdlLocation(callContext.getServiceName(), message); if (wsdlLocation != null) { callContext.setWsdlLocation(wsdlLocation); } String flowId = FlowIdHelper.getFlowId(message); if (flowId != null && !flowId.isEmpty()) { callContext.setFlowId(flowId); } } private static URL resolveCallbackWsdlLocation(QName callbackService, SoapMessage message) { final WSDLManager wsdlManager = message.getExchange().getBus().getExtension(WSDLManager.class); for (Map.Entry<Object, Definition> entry : wsdlManager.getDefinitions().entrySet()) { if (entry.getValue().getService(callbackService) != null) { final Object key = entry.getKey(); if (key instanceof URL) { return asCallbackWsdlURL((URL) entry.getKey()); } if (key instanceof String) { final String loc = (String) key; if (loc.startsWith("file:") || loc.indexOf("://") > 0) { try { return asCallbackWsdlURL(new URL(loc)); } catch (MalformedURLException e) { throw new IllegalStateException("Corrupted WSDL location URL: ", e); } } final File wsdlFile = new File(loc); if (wsdlFile.exists()) { return toCallbackWsdlURL(wsdlFile); } // classpath resolution will only work where the loader // of request-callback classes is in the same classloader // as the invoking application. Otherwise, the WSDL location // must be provided as URL or absolute file path. URL classpathWsdlURL = CallContext.class.getClassLoader().getResource(loc); if (classpathWsdlURL != null) { return asCallbackWsdlURL(classpathWsdlURL); } return null; } } } return null; } private static URL asCallbackWsdlURL(URL wsdlURL) { if (wsdlURL == null) { return null; } final CallbackInfo cbInfo = CallContext.createCallbackInfo(wsdlURL); if (cbInfo.getCallbackServiceName() == null) { // old-style callback definition without callback service. return null; } final String callbackWsdlLocation = cbInfo.getSpecificCallbackSenderWsdlLocation(null); try { return callbackWsdlLocation == null ? wsdlURL : new URL(callbackWsdlLocation); } catch (MalformedURLException e) { throw new IllegalStateException("Unexpected URL creation problem: ", e); } } private static URL toCallbackWsdlURL(File wsdlFile) { if (!(wsdlFile.isFile() && wsdlFile.canRead())) { throw new IllegalStateException("File " + wsdlFile.getName() + " is not a readable file. "); } try { final URL wsdlURL = wsdlFile.toURI().toURL(); final CallbackInfo cbInfo = CallContext.createCallbackInfo(wsdlURL); if (cbInfo.getCallbackServiceName() == null) { // old-style callback definition without callback service. return null; } return wsdlURL; } catch (MalformedURLException e) { throw new IllegalArgumentException("Cannot create URL for WSDL file location. ", e); } } /** * This functions reads SAM flowId and sets it * as message property for subsequent store in CallContext * @param message */ private static void setupFlowId(SoapMessage message) { String flowId = FlowIdHelper.getFlowId(message); if (flowId == null) { flowId = FlowIdProtocolHeaderCodec.readFlowId(message); } if (flowId == null) { flowId = FlowIdSoapCodec.readFlowId(message); } if (flowId == null) { Exchange ex = message.getExchange(); if (null!=ex){ Message reqMsg = ex.getOutMessage(); if ( null != reqMsg) { flowId = FlowIdHelper.getFlowId(reqMsg); } } } if (flowId != null && !flowId.isEmpty()) { FlowIdHelper.setFlowId(message, flowId); } } private static void storeRequestorCertificate(Message message, CallContext callContext) { String encrUser = (String) SecurityUtils.getSecurityPropertyValue(SecurityConstants.ENCRYPT_USERNAME, message); if (WSHandlerConstants.USE_REQ_SIG_CERT.equals(encrUser)) { X509Certificate reqSignCert = getReqSigCert(message); callContext.setRequestorSignatureCertificate(reqSignCert); } } // TODO: Currently this method is private in CXF AbstractBindingBuilder. // Refactor the method into public CXF utility and reuse it from CXF instead copy&paste private static X509Certificate getReqSigCert(Message message) { List<WSHandlerResult> results = CastUtils.cast((List<?>) message.getExchange().getInMessage().get(WSHandlerConstants.RECV_RESULTS)); if (results == null) { return null; } /* * Scan the results for a matching actor. Use results only if the * receiving Actor and the sending Actor match. */ for (WSHandlerResult rResult : results) { List<WSSecurityEngineResult> wsSecEngineResults = rResult .getResults(); /* * Scan the results for the first Signature action. Use the * certificate of this Signature to set the certificate for the * encryption action :-). */ for (WSSecurityEngineResult wser : wsSecEngineResults) { Integer actInt = (Integer) wser .get(WSSecurityEngineResult.TAG_ACTION); if (actInt.intValue() == WSConstants.SIGN) { return (X509Certificate) wser .get(WSSecurityEngineResult.TAG_X509_CERTIFICATE); } } } return null; } }
java
<gh_stars>0 /** * Modularized styling for the package */ /* Bootstrap Overrides */ .row { box-sizing: border-box; display: flex; flex: 0 1 auto; flex-direction: row; flex-wrap: wrap; } .flexCenter { justify-content: center; text-align: center; } .flexMiddle { align-items: center; } .contentContainer { width: 100%; composes: row; composes: flexCenter; composes: flexMiddle; } /** * Styles for the Media Item */ .mediaContainer21by9 { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; } .mediaContainer21by9::before { content: ""; display: block; padding-top: 42.85714%; } .mediaContainer16by9 { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; } .mediaContainer16by9::before { content: ""; display: block; padding-top: 56.25%; } .mediaContainer4by3 { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; } .mediaContainer4by3::before { content: ""; display: block; padding-top: 75%; } .mediaContainer1by1 { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; } .mediaContainer1by1::before { content: ""; display: block; padding-top: 100%; } .mediaItem { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; height: 100%; border: 0; object-fit: cover; } .mediaContentContainer { position: absolute; margin: 0; top: 50%; left: 50%; transform: translate(-50%, -50%); } .round { border-radius: 50%; } .contentPadding { padding: 1.5rem !important; } @media screen and (min-width: 768px) { .contentPadding { padding: 2rem !important; } } .contentMedia { box-sizing: border-box; flex: 0 0 auto; padding-right: 0.5rem; padding-left: 0.5rem; flex-grow: 1; flex-basis: 0; max-width: 100%; order: 0; } .contentRight { composes: contentPadding; box-sizing: border-box; flex: 0 0 auto; padding-right: 0.5rem; padding-left: 0.5rem; flex-basis: 100%; max-width: 100%; order: 1; text-align: center; } @media screen and (min-width: 768px) { .contentRight { box-sizing: border-box; flex: 0 0 auto; padding-right: 0.5rem; padding-left: 0.5rem; flex-basis: 50%; max-width: 50%; text-align: left; } } .contentLeft { composes: contentPadding; box-sizing: border-box; flex: 0 0 auto; padding-right: 0.5rem; padding-left: 0.5rem; flex-basis: 100%; max-width: 100%; order: 1; text-align: center; } @media screen and (min-width: 768px) { .contentLeft { box-sizing: border-box; flex: 0 0 auto; padding-right: 0.5rem; padding-left: 0.5rem; flex-basis: 50%; max-width: 50%; order: -1; text-align: left; } } .contentTop { composes: contentPadding; box-sizing: border-box; flex: 0 0 auto; padding-right: 0.5rem; padding-left: 0.5rem; flex-basis: 100%; max-width: 100%; order: -1; } .contentBottom { composes: contentPadding; box-sizing: border-box; flex: 0 0 auto; padding-right: 0.5rem; padding-left: 0.5rem; flex-basis: 100%; max-width: 100%; order: 1; } /** * Styles for the Loaders */ .loader { background: linear-gradient(90deg, #ced4da, #f8f9fa); background-size: 300% 300%; -webkit-animation: GradientAnimation 3s ease infinite; -moz-animation: GradientAnimation 3s ease infinite; animation: GradientAnimation 3s ease infinite; } .accordionLoaderContainer { display: flex; flex-flow: row wrap; width: 100%; } .accordionLoaderColumn { flex: 0 0 50%; max-width: 50%; } .accordionLoaderItem { composes: loader; height: 50px; max-width: 100%; margin: 10px 10px; } .contentLoaderContainer { display: flex; flex-flow: column; justify-content: center; width: 100%; } .contentLoaderImg { composes: loader; composes: mediaContainer4by3; } .contentLoaderTitle { composes: loader; margin: 10px 30%; height: 50px; } .contentLoaderLine { composes: loader; margin: 10px 20%; height: 30px; } .contentLoaderLine:last-of-type { margin: 10px 25%; height: 30px; } .ringContainer { height: 100%; width: 100%; composes: contentContainer; } .ringLoader { display: inline-block; width: 56px; height: 56px; } .ringLoader:after { content: " "; display: block; width: 46px; height: 46px; margin: 1px; border-radius: 50%; border: 5px solid #00aeef; border-color: #00aeef transparent #00aeef transparent; animation: lds-dual-ring 1.2s linear infinite; } /** * Animations for the Loaders */ @-webkit-keyframes GradientAnimation { 0% { background-position: 0% 50%; } 75% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } } @-moz-keyframes GradientAnimation { 0% { background-position: 0% 50%; } 75% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } } @keyframes GradientAnimation { 0% { background-position: 0% 50%; } 75% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } } @keyframes lds-dual-ring { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .accordionContainer { composes: row; } .accordionItem { box-sizing: border-box; flex: 0 0 auto; padding-right: 0.5rem; padding-left: 0.5rem; flex-basis: 100%; max-width: 100%; margin-top: .5rem; margin-bottom: .5rem; } @media screen and (min-width: 768px) { .accordionItem { box-sizing: border-box; flex: 0 0 auto; padding-right: 0.5rem; padding-left: 0.5rem; flex-basis: 50%; max-width: 50%; } } .accordionButton { font-weight: normal; padding: 1.5rem 2rem; background: white; border-color: #adb5bd; border-width: 0 0 2px 0; width: 100%; text-align: left; font-size: larger; transition: font-weight .25s ease-out; -webkit-tap-highlight-color: transparent; } .accordionButton:focus { outline: 0; } .accordionButton:hover { cursor: pointer; } .accordionBody { background: white; border: solid; border-color: #adb5bd; border-width: 0 0 1px 0; max-height: 0; overflow: hidden; transition: max-height .25s ease-out; } .accordionItemOpen .accordionButton { font-weight: bold; transition: font-weight .25s ease; } .accordionItemOpen .accordionBody { max-height: 100vh; display: block; overflow: hidden; transition: max-height .25s ease-in; } .accordionItemOpen .accordionIcon:before { transform: rotate(90deg); } .accordionTitle { float: left; width: 90%; } .accordionIcon { float: right; text-align: right; position: relative; width: 15px; height: 15px; /* Vertical line */ /* horizontal line */ } .accordionIcon:before, .accordionIcon:after { content: ""; position: absolute; background-color: black; transition: transform 0.25s ease-out; } .accordionIcon:before { top: 0; left: 50%; width: 4px; height: 100%; margin-left: -2px; margin-top: 4px; } .accordionIcon:after { top: 50%; left: 0; width: 100%; height: 4px; margin-top: 2px; } .dot { padding: 0; } .dot li { position: relative; display: inline-block; width: 20px; height: 20px; margin: 0 2px; padding: 0; cursor: pointer; } .dot li.slick-active button { background: gray; } .dot button { font-size: 0; line-height: 0; display: block; width: 15px; height: 15px; padding: 5px; cursor: pointer; color: transparent; border: 0; border-radius: 50%; outline: none; background: lightgrey; }
css
<filename>src/main/java/dixx/game/StartActivity.java package dixx.game; import android.content.Intent; import android.media.MediaPlayer; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import io.realm.Realm; import io.realm.RealmConfiguration; public class StartActivity extends AppCompatActivity { private MediaPlayer mp; @Override protected void onCreate(Bundle SavedInstance) { super.onCreate(SavedInstance); setContentView(R.layout.activity_main); Realm.init(this); RealmConfiguration config = new RealmConfiguration.Builder().name("realmdb.realm") .deleteRealmIfMigrationNeeded() .build(); Realm.setDefaultConfiguration(config); mp = MediaPlayer.create(StartActivity.this, R.raw.sound); mp.start(); Thread thread = new Thread() { @Override public void run() { try { sleep(5000); } catch (Exception e) { e.printStackTrace(); } finally { Intent mainIntent = new Intent(StartActivity.this, MainActivity.class); startActivity(mainIntent); } } }; thread.start(); } @Override protected void onPause() { super.onPause(); mp.release(); finish(); } }
java
{% include header.html title=post.title %} <!-- Primary Page Layout –––––––––––––––––––––––––––––––––––––––––––––––––– --> <div class="section small-hero"> <div class="container"> <div class="row imf"> <div class="one-half-column"> <h1><a href="/"><span class="blog">blog.</span>{{ site.top_name }}</a></h1> </div> </div> </div> </div> <div class="section small-banner imf"> <div class="container"> <div class="row"> <div class="one-half column"> </div> </div> </div> </div> <div class="color-overlay"> <div class="section post imf"> <div class="container"> <div class="row"> <div class="ten columns value"> <h2 class="post-title"><a href="{{ page.url | relative_url }}">{{ page.title }}</a></h4> {% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %} <h5 class="post-date">{{ page.date | date: date_format }}</h5> {{ content }} </div> </div> </div> </div> </div> {% include footer.html %} <!-- End Document –––––––––––––––––––––––––––––––––––––––––––––––––– --> </body> </html>
html
traffic shaping applications, redirections to captive portals for hotspots, guest access via a separate SSID, upstream and downstream QOS, and intelligent bandwidth monitoring. Sorry. Umm... $69 for those who wish to compile code for this puppy. Full release after the jump. I’m going to get a cup of coffee and a shot of vitamin B12. SANTA CLARA, Calif. – June 30, 2008 – NETGEAR®, Inc. (NASDAQGM: NTGR), a worldwide provider of technologically advanced, branded networking solutions, today announced the launch of the Open Source Wireless-G Router (WGR614L), a full-featured wireless router designed to serve as a reliable, high-performance platform to support a wide variety of applications created by the open source community. The high-performance WGR614L, which is “Works with Windows Vista” certified, features a 240 MHz MIPS32® CPU core with 16 KB of instruction cache, 16 KB of data cache, 1 KB of pre-fetch cache, and incorporates 4 MB of flash memory and 16 MB of RAM. In addition to an external 2 dBi antenna, the WGR614L integrates a second internal diversity antenna to provide enhanced performance and range. The router supports free open source Linux®-based Tomato and DD-WRT firmware and will soon support OpenWRT. The WGR614L is supported by a dedicated open source router community, www.myopenrouter.com, which provides open source firmware downloads, forums, blogs, articles, source code, and user guides, and provides users with dedicated and responsive support by open source experts. The NETGEAR Open Source Wireless-G Router (WGR614L), which features one 10/100 Internet WAN port and a four-port 10/100 LAN switch, incorporates an 802.11g access point to support wireless connectivity at speeds of up to 54 Mbps. The WGR614L supports static and dynamic routing with TCP/IP, VPN pass-through (IPSec, L2TP), NAT, PPTP, PPPoE, DHCP (client and server), and Bigpond. A Stateful Packet Inspection (SPI) firewall protects the network from intruders, and the wireless connection is secured with support for 40-, 128- and 152-bit WEP encryption, Wi-Fi Protected Access (WPA), WPA2-PSK, and Wi-Fi Protected Setup (WPS). Additional security features include: Exposed Host (DMZ), MAC address authentication, URL content filtering, logs and e-mail alerts of Internet activity. The NETGEAR Open Source Wireless-G Router (WGR614L) is backed by a one-year hardware warranty and is available now via select retailers, direct marketers, e-commerce sites and value added resellers at a retail price in the U.S. of $69.
english
import { Chain } from './chain'; import { State } from './states/state'; /** * Interface for states that can have 'next' states */ export interface INextable { next(state: IChainable): Chain; } /** * Interface for objects that can be used in a Chain */ export interface IChainable { /** * Descriptive identifier for this chainable */ readonly id: string; /** * The start state of this chainable */ readonly startState: State; /** * The chainable end state(s) of this chainable */ readonly endStates: INextable[]; } /** * Predefined error strings */ export declare class Errors { /** * Matches any Error. */ static readonly All = "States.ALL"; /** * A Task State either ran longer than the “TimeoutSeconds” value, or * failed to heartbeat for a time longer than the “HeartbeatSeconds” value. */ static readonly Timeout = "States.Timeout"; /** * A Task State failed during the execution. */ static readonly TaskFailed = "States.TaskFailed"; /** * A Task State failed because it had insufficient privileges to execute * the specified code. */ static readonly Permissions = "States.Permissions"; /** * A Task State’s “ResultPath” field cannot be applied to the input the state received. */ static readonly ResultPathMatchFailure = "States.ResultPathMatchFailure"; /** * A branch of a Parallel state failed. */ static readonly BranchFailed = "States.BranchFailed"; /** * A Choice state failed to find a match for the condition field extracted * from its input. */ static readonly NoChoiceMatched = "States.NoChoiceMatched"; } /** * Retry details */ export interface RetryProps { /** * Errors to retry * * A list of error strings to retry, which can be either predefined errors * (for example Errors.NoChoiceMatched) or a self-defined error. * * @default All errors */ readonly errors?: string[]; /** * How many seconds to wait initially before retrying * * @default 1 */ readonly intervalSeconds?: number; /** * How many times to retry this particular error. * * May be 0 to disable retry for specific errors (in case you have * a catch-all retry policy). * * @default 3 */ readonly maxAttempts?: number; /** * Multiplication for how much longer the wait interval gets on every retry * * @default 2 */ readonly backoffRate?: number; } /** * Error handler details */ export interface CatchProps { /** * Errors to recover from by going to the given state * * A list of error strings to retry, which can be either predefined errors * (for example Errors.NoChoiceMatched) or a self-defined error. * * @default All errors */ readonly errors?: string[]; /** * JSONPath expression to indicate where to inject the error data * * May also be the special value DISCARD, which will cause the error * data to be discarded. * * @default $ */ readonly resultPath?: string; } /** * Special string value to discard state input, output or result */ export declare const DISCARD = "DISCARD";
typescript
{ "register": "Daftar", "help.email": "Secara default, emailmu akan disembunyikan dari publik.", "help.username_restrictions": "Nama Pengguna yang unik antara %1 dan %2 karakter. Pengguna lain dapat menyebutmu dengan menggunakan @<span id='Nama Pengguna mu'>nama pengguna</span>.", "help.minimum_password_length": "Panjang password harus setidaknya %1 karakter.", "email_address": "Alamat Email", "email_address_placeholder": "Masukkan Alamat Email", "username": "Nama Pengguna", "username_placeholder": "Masukkan Nama Pengguna", "password": "<PASSWORD>", "password_placeholder": "<PASSWORD>", "confirm_password": "<PASSWORD>", "confirm_password_placeholder": "<PASSWORD>", "register_now_button": "Daftar Sekarang", "alternative_registration": "Pendaftaran Alternatif", "terms_of_use": "Aturan Penggunaan", "agree_to_terms_of_use": "Saya menyetujui Aturan Penggunaan", "registration-added-to-queue": "Pendaftaranmu telah ditambahkan dalam daftar persetujuan. Kamu akan menerima email ketika pendaftaranmu disetujui oleh administrator." }
json
package com.wumbleminky.luxincraft.reference; import net.minecraft.item.Item; import net.minecraft.item.ItemArmor; import net.minecraftforge.common.util.EnumHelper; public class Material { public static final class Tools{ public static final Item.ToolMaterial BLUE_LUXIN = EnumHelper.addToolMaterial(Names.Materials.BLUE_LUXIN, 2, 150, 6.0F, 2.0F, 5); public static final Item.ToolMaterial GREEN_LUXIN = EnumHelper.addToolMaterial(Names.Materials.GREEN_LUXIN, 1, 300, 6.0F, 1.0F, 5); public static final Item.ToolMaterial YELLOW_LUXIN = EnumHelper.addToolMaterial(Names.Materials.YELLOW_LUXIN, 3, 1500, 8.0F, 3.0F, 5); } public static final class Armors{ public static final ItemArmor.ArmorMaterial SPECTACLES = EnumHelper.addArmorMaterial(Names.Materials.SPECTACLES, Reference.withMODID(Names.Materials.SPECTACLES), 10, new int[]{0,0,0,0}, 0); public static final ItemArmor.ArmorMaterial BLUE_LUXIN = EnumHelper.addArmorMaterial(Names.Materials.BLUE_LUXIN_ARMOR, Reference.withMODID(Names.Materials.BLUE_LUXIN_ARMOR), 5, new int[]{2,6,5,2}, 0); public static final ItemArmor.ArmorMaterial GREEN_LUXIN = EnumHelper.addArmorMaterial(Names.Materials.GREEN_LUXIN_ARMOR, Reference.withMODID(Names.Materials.GREEN_LUXIN_ARMOR), 15, new int[]{1,3,2,1}, 0); public static final ItemArmor.ArmorMaterial YELLOW_LUXIN = EnumHelper.addArmorMaterial(Names.Materials.YELLOW_LUXIN_ARMOR, Reference.withMODID(Names.Materials.YELLOW_LUXIN_ARMOR), 33, new int[]{3,8,6,3}, 0); } }
java
exercicio7.Conversor exercicio7.Fores exercicio7.Multiplicacao exercicio7.AreaCirculo exercicio7.Exercicio7 exercicio7.Corpo
rust
<gh_stars>1-10 .page-header { background: var(--color-primary); width: 100vw; padding-top: 2rem; padding-bottom: 3rem; } .page-header.inner { height: 5.5rem; margin-bottom: 4rem; } .page-header.inner .container{ display: grid; grid-template-columns: repeat(3, 1fr); } .page-header.inner h1 { margin: 0 auto; font-family: Inter; font-weight: 600; font-size: 1rem; line-height: 1.625rem; color: var(--color-header-inner-title); } .toggle { position: relative; } input[type=checkbox]{ height: 0; width: 0; visibility: hidden; } .switch-theme { cursor: pointer; text-indent: -9999px; top: 0px; width: 48px; height: 24px; background: grey; float: right; border-radius: 100px; position: relative; } .switch-theme::after{ content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background-color: white; border-radius: 90px; transition: 0.3s; } input:checked + .switch-theme { background-color: #6944b9; } input:checked + .switch-theme::after { left: calc(100% - 3px); transform: translateX(-100%); } .dash-switch { top: -68px; left: -128px; }
css
<reponame>kitingChris/azure-docs.de-de --- title: Behandeln von Problemen mit einem virtuellen Azure-Computer unter Verwendung der geschachtelten Virtualisierung in Azure | Microsoft-Dokumentation description: Hier erfahren Sie, wie Sie Probleme mit einem virtuellen Azure-Computer unter Verwendung der geschachtelten Virtualisierung in Azure behandeln. services: virtual-machines-windows documentationcenter: '' author: glimoli manager: gwallace editor: '' tags: azure-resource-manager ms.service: virtual-machines-windows ms.workload: infrastructure-services ms.tgt_pltfrm: vm-windows ms.devlang: na ms.topic: article ms.date: 11/01/2018 ms.author: genli ms.openlocfilehash: 135368fd9b838573ae8aa65e16d5df2cd3df3e6d ms.sourcegitcommit: <PASSWORD>1<PASSWORD>a2<PASSWORD> ms.translationtype: HT ms.contentlocale: de-DE ms.lasthandoff: 07/09/2019 ms.locfileid: "67709230" --- # <a name="troubleshoot-a-problem-azure-vm-by-using-nested-virtualization-in-azure"></a>Behandeln von Problemen mit einem virtuellen Azure-Computer unter Verwendung der geschachtelten Virtualisierung in Azure In diesem Artikel erfahren Sie, wie Sie in Microsoft Azure eine geschachtelte Virtualisierungsumgebung erstellen, um den Datenträger des virtuellen Computers zur Problembehandlung auf dem Hyper-V-Host (virtueller Rettungscomputer) einbinden zu können. ## <a name="prerequisites"></a>Voraussetzungen Um den virtuellen Computer mit dem Problem einbinden zu können, muss der virtuelle Rettungscomputer folgende Voraussetzungen erfüllen: - Er muss sich am gleichen Standort befinden wie der virtuelle Computer mit dem Problem. - Er muss sich in der gleichen Ressourcengruppe befinden wie der virtuelle Computer mit dem Problem. - Er muss die gleiche Art von Speicherkonto (Standard oder Premium) verwenden wie der virtuelle Computer mit dem Problem. ## <a name="step-1-create-a-rescue-vm-and-install-hyper-v-role"></a>Schritt 1: Erstellen eines virtuellen Rettungscomputers und Installieren der Hyper-V-Rolle 1. Erstellen Sie einen neuen virtuellen Rettungscomputer: - Betriebssystem: Windows Server 2016 Datacenter - Größe: Beliebige V3-Serie mit mindestens zwei Kernen, die die geschachtelte Virtualisierung unterstützen. Weitere Informationen finden Sie unter [Introducing the new Dv3 and Ev3 VM sizes](https://azure.microsoft.com/blog/introducing-the-new-dv3-and-ev3-vm-sizes/) (Vorstellung der neuen VM-Größen Dv3 und Ev3). - Gleicher Standort, gleiches Speicherkonto und gleiche Ressourcengruppe wie der virtuelle Computer mit dem Problem - Speichertyp: Gleicher Typ wie bei dem Computer mit dem Problem (Standard oder Premium) 2. Stellen Sie nach dem Erstellen des virtuellen Rettungscomputers eine Remotedesktopverbindung mit ihm her. 3. Klicken Sie im Server-Manager auf **Verwalten** > **Rollen und Features hinzufügen**. 4. Wählen Sie im Abschnitt **Installationstyp** die Option **Rollenbasierte oder featurebasierte Installation** aus. 5. Vergewissern Sie sich im Abschnitt **Zielserver auswählen**, dass der virtuelle Rettungscomputer ausgewählt ist. 6. Klicken Sie auf **Hyper-V-Rolle** > **Features hinzufügen**. 7. Klicken Sie im Abschnitt **Features** auf **Weiter**. 8. Sollte ein virtueller Switch verfügbar sein, wählen Sie ihn aus. Klicken Sie andernfalls auf **Weiter**. 9. Klicken Sie im Abschnitt **Migration** auf **Weiter**. 10. Klicken Sie im Abschnitt **Standardspeicher** auf **Weiter**. 11. Aktivieren Sie das Kontrollkästchen für den automatischen Neustart des Servers, sofern erforderlich. 12. Wählen Sie **Installieren** aus. 13. Lassen Sie die Installation der Hyper-V-Rolle auf dem Server zu. Dieser Vorgang dauert einige Minuten. Anschließend wird der Server automatisch neu gestartet. ## <a name="step-2-create-the-problem-vm-on-the-rescue-vms-hyper-v-server"></a>Schritt 2: Erstellen des virtuellen Computers mit dem Problem auf dem Hyper-V-Server des virtuellen Rettungscomputers 1. Notieren Sie sich den Namen des Datenträgers des virtuellen Computers mit dem Problem, und löschen Sie anschließend den virtuellen Computer mit dem Problem. Bewahren Sie alle angefügten Datenträger auf. 2. Fügen Sie den Betriebssystemdatenträger des virtuellen Computers mit dem Problem als Datenträger des virtuellen Rettungscomputers an. 1. Navigieren Sie nach dem Löschen des virtuellen Computers mit dem Problem zum virtuellen Rettungscomputer. 2. Klicken Sie auf **Datenträger** und anschließend auf **Datenträger hinzufügen**. 3. Wählen Sie den Datenträger des virtuellen Computers mit dem Problem aus, und klicken Sie anschließend auf **Speichern**. 3. Stellen Sie nach dem erfolgreichen Anfügen des Datenträgers eine Remotedesktopverbindung mit dem virtuellen Rettungscomputer her. 4. Öffnen Sie die Datenträgerverwaltung (diskmgmt.msc). Vergewissern Sie sich, dass der Datenträger des virtuellen Computers mit dem Problem den Status **Offline** hat. 5. Öffnen Sie den Hyper-V Manager: Wählen Sie im **Server-Manager** die **Hyper-V-Rolle** aus. Klicken Sie mit der rechten Maustaste auf den Server, und wählen Sie den **Hyper-V Manager** aus. 6. Klicken Sie im Hyper-V-Manager mit der rechten Maustaste auf den virtuellen Rettungscomputer, und klicken Sie auf **Neu** > **Virtueller Computer** > **Weiter**. 7. Geben Sie einen Namen für den virtuellen Computer ein, und klicken Sie auf **Weiter**. 8. Wählen Sie **Generation 1** aus. 9. Legen Sie den Startspeicher auf mindestens 1.024 MB fest. 10. Wählen Sie ggf. den erstellten Hyper-V-Netzwerkswitch aus. Navigieren Sie andernfalls zur nächsten Seite. 11. Wählen Sie **Virtuelle Festplatte später zuordnen** aus. ![Abbildung mit der Option „Virtuelle Festplatte später zuordnen“](media/troubleshoot-vm-by-use-nested-virtualization/attach-disk-later.png) 12. Klicken Sie auf **Fertig stellen**, wenn der virtuelle Computer erstellt wurde. 13. Klicken Sie mit der rechten Maustaste auf den erstellten virtuellen Computer, und klicken Sie auf **Einstellungen**. 14. Klicken Sie auf **IDE-Controller 0** > **Festplatte** > **Hinzufügen**. ![Abbildung zum Hinzufügen der neuen Festplatte](media/troubleshoot-vm-by-use-nested-virtualization/create-new-drive.png) 15. Wählen Sie unter **Physische Festplatte** den Datenträger des virtuellen Computers mit dem Problem aus, den Sie an den virtuellen Azure-Computer angefügt haben. Sollten keine Datenträger aufgeführt werden, überprüfen Sie mithilfe der Datenträgerverwaltung, ob der Datenträger auf „Offline“ festgelegt ist. ![Abbildung zum Einbinden des Datenträgers](media/troubleshoot-vm-by-use-nested-virtualization/mount-disk.png) 17. Klicken Sie auf **Apply** (Anwenden) und dann auf **OK**. 18. Doppelklicken Sie auf den virtuellen Computer, und starten Sie ihn. 19. Der virtuelle Computer kann nun als lokaler virtueller Computer verwendet werden. Sie können beliebige Problembehandlungsschritte ausführen. ## <a name="step-3-re-create-your-azure-vm-in-azure"></a>Schritt 3: Neuerstellen des virtuellen Azure-Computers in Azure 1. Wenn Sie den virtuellen Computer wieder online geschaltet haben, fahren Sie den virtuellen Computer im Hyper-V-Manager herunter. 2. Klicken Sie im [Azure-Portal](https://portal.azure.com) auf den virtuellen Rettungscomputer und anschließend auf „Datenträger“. Kopieren Sie dann den Namen des Datenträgers. Der Name wird im nächsten Schritt benötigt. Trennen Sie den eingebauten Datenträger vom virtuellen Rettungscomputer. 3. Navigieren Sie zu **Alle Ressourcen**, suchen Sie nach dem Namen des Datenträgers, und wählen Sie den Datenträger aus. ![Abbildung zur Suche nach dem Datenträger](media/troubleshoot-vm-by-use-nested-virtualization/search-disk.png) 4. Klicken Sie auf **Virtuellen Computer erstellen**. ![Abbildung zur Erstellung des virtuellen Computers auf der Grundlage des Datenträgers](media/troubleshoot-vm-by-use-nested-virtualization/create-vm-from-vhd.png) Der virtuelle Computer kann auch mithilfe von Azure PowerShell auf der Grundlage des Datenträgers erstellt werden. Weitere Informationen finden Sie unter [Erstellen des neuen virtuellen Computers](../windows/create-vm-specialized.md#create-the-new-vm). ## <a name="next-steps"></a>Nächste Schritte Wenn Probleme beim Herstellen einer Verbindung mit Ihrer VM auftreten, helfen Ihnen die Informationen unter [Problembehandlung bei Remotedesktopverbindungen mit einem Windows-basierten virtuellen Azure-Computer](troubleshoot-rdp-connection.md) weiter. Konsultieren Sie [Problembehandlung beim Zugriff auf eine Anwendung, die auf einem virtuellen Azure-Computer ausgeführt wird](troubleshoot-app-connection.md) bei Problemen mit dem Zugriff auf Anwendungen, die auf Ihrer VM ausgeführt werden.
markdown
The mobile network gear maker counts market leader Huawei and Finland's Nokia as its main rivals and some analysts think it could benefit from Western suspicions of Huawei, after Washington alleged its gear could be used by Beijing for spying. Huawei has strongly rejected the allegations and launched a lawsuit against the US government. "What we see is that customers are worried," Ericsson Chief Executive Borje Ekholm told Reuters ahead of the firm's annual meeting at a venue close to its north Stockholm headquarters. "And that of course leads to more discussions with customers for us, but we can't see that contracts are being allocated. That has not happened yet." EU nations will be required to share data on 5G cyber-security risks and produce measures to tackle them by the end of the year, the European Commission said on Tuesday, shunning US calls to ban Huawei across the bloc. "It's good that the EU is trying to harmonise the regulations...they are trying to create some kind of umbrella, which I think is very good for Europe," Ekholm said, adding that Ericsson will not take a position on national security issues. Ericsson won back a 5G customer from Huawei in its own backyard last week when it signed a comprehensive deal with Denmark's TDC to deploy its 5G platform and modernise the carrier's radio access and core networks. Huawei had signed a six-year networks deal with TDC back in 2013, establishing the Danish company as a 'reference' customer to showcase its performance. TDC CEO Allison Kirkby was quoted as saying that the operator "is not blind" to widespread concerns about Huawei and information security, although she also pointed out that price was a significant factor. Ericsson said it had won the contract because it is a technology leader in 5G. "This is an important customer, we will be working with their whole network... and we see that as a strategically important cooperation," Ekholm said, but added the deal had been on the table for "a few years".
english
<gh_stars>1-10 package com.gianni.frycolor.model; import java.util.List; import org.springframework.stereotype.Component; @Component public class Post { private int nwId; private String comment; private String image; private int contReactions; private String imageProfile; private int userId; private String nameUser; private boolean userLike; private List<ResponsePost> listResponses; private String dateTime; public int getNwId() { return nwId; } public void setNwId(int nwId) { this.nwId = nwId; } public String getComment() { return comment; } public void setComment(String comment) { this.comment = comment; } public String getImage() { return image; } public void setImage(String image) { this.image = image; } public int getContReactions() { return contReactions; } public void setContReactions(int contReactions) { this.contReactions = contReactions; } public List<ResponsePost> getListResponses() { return listResponses; } public void setListResponses(List<ResponsePost> listResponses) { this.listResponses = listResponses; } public int getUserId() { return userId; } public void setUserId(int userId) { this.userId = userId; } public String getNameUser() { return nameUser; } public void setNameUser(String nameUser) { this.nameUser = nameUser; } public boolean isUserLike() { return userLike; } public void setUserLike(boolean userLike) { this.userLike = userLike; } public String getImageProfile() { return imageProfile; } public void setImageProfile(String imageProfile) { this.imageProfile = imageProfile; } public String getDateTime() { return dateTime; } public void setDateTime(String dateTime) { this.dateTime = dateTime; } }
java
{ "srcPort": { "src-access-topology-id": ${prop.connection-attachment.access-topology-id}, "src-access-client-id": ${prop.connection-attachment.access-client-id}, "src-access-provider-id": ${prop.connection-attachment.access-provider-id}, "src-access-node-id": ${prop.connection-attachment.access-node-id}, "src-access-ltp-id": ${prop.connection-attachment.access-ltp-id} }, "dstPort": { "dst-access-topology-id": ${prop.remote.connection-attachment.access-topology-id}, "dst-access-client-id": ${prop.remote.connection-attachment.access-client-id}, "dst-access-provider-id": ${prop.remote.connection-attachment.access-provider-id}, "dst-access-node-id": ${prop.remote.connection-attachment.access-node-id}, "dst-access-ltp-id": ${prop.remote.connection-attachment.access-ltp-id} } }
json
I’m still sick. Not super super sick, just not always spelling the worlds I mean to say correctly kind of sick. So, let’s not overburden Margaret’s brain! Let’s do a totally brainless post. Pick your favorite between the two options, your favorite over all, suggest other contrasts in comments, whatever! Have fun!
english
The Tamil Nadu Assembly had in September passed a Bill to the scrap the test. Tamil Nadu Chief Minister MK Stalin has written to his counterparts in 12 states, asking them to support him in opposing the National Eligibility cum Entrance Test for admissions to undergraduate medical degree courses. On Monday, Stalin posted a tweet with the letter sent to the chief ministers of West Bengal, Andhra Pradesh, Chhattisgarh, Delhi, Jharkhand, Kerala, Maharashtra, Odisha, Punjab, Rajasthan, Telangana and Goa. The letter was written on Friday. The Tamil Nadu chief minister’s letter said that the Centre’s decision to introduce NEET went against the spirit of federalism. “It violates the constitutional balance of power by curbing the rights of the state governments to decide on the method of admission in the medical institutions founded, established and run by them,” Stalin wrote. The Tamil Nadu Assembly had in September passed a Bill to scrap NEET, and instead, admit students to medical courses based on the marks they scored in Class 12 board examinations. Admissions in Tamil Nadu were based on these marks itself before the Centre in 2017 made NEET compulsory for students across all states and education boards. Abolishing the exam was one of the promises that Stalin’s party Dravida Munnetra Kazhagam made ahead of the Assembly elections in Tamil Nadu in April. NEET was prepared by the Central Board of Secondary Education and based on its own syllabus, which was very different from the Tamil Nadu board’s syllabus. Tamil Nadu has argued that a common entrance test would harm the prospects of state board students. In his letter to the other chief ministers, Stalin said that states needed to assert their constitutional rights in deciding the method of admission to their higher educational institutions. Stalin also forwarded to his counterparts a copy of the report prepared by retired Madras High Court Judge AK Rajan-led committee. The Tamil Nadu government had set up the committee in June to study the impact of NEET on aspirants from socially disadvantaged sections of the society. The committee had found that NEET favoured affluent students. Stalin urged his counterparts to read the report. He said that students from marginalised sections of the society should not face difficulties in securing admissions to higher educational institutions.
english
{"id_2753":{"title":"Fountain","language":"English","totaltime":"0:15:23","url_librivox":"http://librivox.org/the-fountain-by-james-russell-lowell/","url_iarchive":"http://www.archive.org/details/fountain_0812_librivox","readers":["1212","1474","2448","2487","2592","2623","2911","3296","3314","3374","3412","3417"],"authors":"1204","genres":"Multi-version (Weekly and Fortnightly poetry)"}}
json
Victoria Azarenka, instead of initiating a handshake, opted to give a thumbs-up to Elina Svitolina following the former's defeat in the first round of the 2023 Citi Open. Svitolina defeated Azarenka 7-6(2), 6-4 in one hour and 47 minutes. She won two tight sets against the Belarusian to secure her place in the second round of the WTA 500 tournament. The match also marked the Ukrainian's return to hardcourt since March 2022, when she suffered a defeat in her opening match against Heather Watson at the Miami Open. Since the onset of Russia's invasion of Ukraine in early 2022, Ukrainian athletes have consistently expressed their discomfort in competing against players from Russia and Belarus. Among them, Svitolina has been particularly vocal on this issue, steadfastly refusing to shake hands with Russian and Belarusian players. In a display of respect for Svitolina's stance, Belarus' Victoria Azarenka opted to give a thumbs-up to Elina Svitolina instead of initiating a handshake after their match. Previously, Svitolina and Azarenka faced each other in the fourth round at Wimbledon, with the Ukrainian winning 2-6, 6-4, 7-6(9). Due to Svitolina's decision, at the conclusion of the match, Azarenka, instead of extending a customary handshake raised her hand towards Svitolina in a show of respect. Displeased with Azarenka's behavior, the crowd expressed their discontent by booing her intensely as she left the court. However, this time around in Washington, the booing did not occur. The WTA, prior to the match announced that there would be no post-match handshake. Elina Svitolina talked about the immense challenges she faces in maintaining her professional tennis career amidst the ongoing conflict in her country, Ukraine. During an interview with the British lifestyle magazine, "Harper's Bazaar," Svitolina gave insight into her mindset as she continues competing on the WTA Tour. "It's difficult not to think about it all the time. I'm constantly online and see messages from friends in Ukraine. I really have to try to isolate myself as much as possible," Svitolina said. "At the same time, it also offers an important perspective. When I have a difficult moment during the game, I try to think about what the people of Ukraine are going through. I'm lucky to be doing what I love," she added. Svitolina elaborated on her choice to refrain from shaking hands with Victoria Azarenka during the 2023 Wimbledon Championships. "For me, it's very sad and very frustrating that people don't understand that. Sometimes you can't separate politics from sports. The players represent their country and I represent my country to the world. My position must be clear," the Ukrainian stated.
english
<filename>Userland/Libraries/LibJS/Runtime/PromiseResolvingElementFunctions.cpp /* * Copyright (c) 2021, <NAME> <<EMAIL>> * * SPDX-License-Identifier: BSD-2-Clause */ #include <LibJS/Runtime/AbstractOperations.h> #include <LibJS/Runtime/AggregateError.h> #include <LibJS/Runtime/Array.h> #include <LibJS/Runtime/GlobalObject.h> #include <LibJS/Runtime/PromiseReaction.h> #include <LibJS/Runtime/PromiseResolvingElementFunctions.h> namespace JS { PromiseResolvingElementFunction::PromiseResolvingElementFunction(size_t index, PromiseValueList& values, PromiseCapability capability, RemainingElements& remaining_elements, Object& prototype) : NativeFunction(prototype) , m_index(index) , m_values(values) , m_capability(move(capability)) , m_remaining_elements(remaining_elements) { } void PromiseResolvingElementFunction::initialize(GlobalObject& global_object) { Base::initialize(global_object); define_direct_property(vm().names.length, Value(1), Attribute::Configurable); } ThrowCompletionOr<Value> PromiseResolvingElementFunction::call() { if (m_already_called) return js_undefined(); m_already_called = true; return resolve_element(); } void PromiseResolvingElementFunction::visit_edges(Cell::Visitor& visitor) { Base::visit_edges(visitor); visitor.visit(&m_values); visitor.visit(m_capability.promise); visitor.visit(m_capability.resolve); visitor.visit(m_capability.reject); visitor.visit(&m_remaining_elements); } PromiseAllResolveElementFunction* PromiseAllResolveElementFunction::create(GlobalObject& global_object, size_t index, PromiseValueList& values, PromiseCapability capability, RemainingElements& remaining_elements) { return global_object.heap().allocate<PromiseAllResolveElementFunction>(global_object, index, values, capability, remaining_elements, *global_object.function_prototype()); } PromiseAllResolveElementFunction::PromiseAllResolveElementFunction(size_t index, PromiseValueList& values, PromiseCapability capability, RemainingElements& remaining_elements, Object& prototype) : PromiseResolvingElementFunction(index, values, move(capability), remaining_elements, prototype) { } ThrowCompletionOr<Value> PromiseAllResolveElementFunction::resolve_element() { auto& vm = this->vm(); auto& global_object = this->global_object(); // 8. Set values[index] to x. m_values.values()[m_index] = vm.argument(0); // 9. Set remainingElementsCount.[[Value]] to remainingElementsCount.[[Value]] - 1. // 10. If remainingElementsCount.[[Value]] is 0, then if (--m_remaining_elements.value == 0) { // a. Let valuesArray be ! CreateArrayFromList(values). auto* values_array = Array::create_from(global_object, m_values.values()); // b. Return ? Call(promiseCapability.[[Resolve]], undefined, « valuesArray »). return JS::call(global_object, *m_capability.resolve, js_undefined(), values_array); } // 11. Return undefined. return js_undefined(); } PromiseAllSettledResolveElementFunction* PromiseAllSettledResolveElementFunction::create(GlobalObject& global_object, size_t index, PromiseValueList& values, PromiseCapability capability, RemainingElements& remaining_elements) { return global_object.heap().allocate<PromiseAllSettledResolveElementFunction>(global_object, index, values, capability, remaining_elements, *global_object.function_prototype()); } PromiseAllSettledResolveElementFunction::PromiseAllSettledResolveElementFunction(size_t index, PromiseValueList& values, PromiseCapability capability, RemainingElements& remaining_elements, Object& prototype) : PromiseResolvingElementFunction(index, values, move(capability), remaining_elements, prototype) { } ThrowCompletionOr<Value> PromiseAllSettledResolveElementFunction::resolve_element() { auto& vm = this->vm(); auto& global_object = this->global_object(); // 9. Let obj be ! OrdinaryObjectCreate(%Object.prototype%). auto* object = Object::create(global_object, global_object.object_prototype()); // 10. Perform ! CreateDataPropertyOrThrow(obj, "status", "fulfilled"). MUST(object->create_data_property_or_throw(vm.names.status, js_string(vm, "fulfilled"sv))); // 11. Perform ! CreateDataPropertyOrThrow(obj, "value", x). MUST(object->create_data_property_or_throw(vm.names.value, vm.argument(0))); // 12. Set values[index] to obj. m_values.values()[m_index] = object; // 13. Set remainingElementsCount.[[Value]] to remainingElementsCount.[[Value]] - 1. // 14. If remainingElementsCount.[[Value]] is 0, then if (--m_remaining_elements.value == 0) { // a. Let valuesArray be ! CreateArrayFromList(values). auto* values_array = Array::create_from(global_object, m_values.values()); // b. Return ? Call(promiseCapability.[[Resolve]], undefined, « valuesArray »). return JS::call(global_object, *m_capability.resolve, js_undefined(), values_array); } // 15. Return undefined. return js_undefined(); } PromiseAllSettledRejectElementFunction* PromiseAllSettledRejectElementFunction::create(GlobalObject& global_object, size_t index, PromiseValueList& values, PromiseCapability capability, RemainingElements& remaining_elements) { return global_object.heap().allocate<PromiseAllSettledRejectElementFunction>(global_object, index, values, capability, remaining_elements, *global_object.function_prototype()); } PromiseAllSettledRejectElementFunction::PromiseAllSettledRejectElementFunction(size_t index, PromiseValueList& values, PromiseCapability capability, RemainingElements& remaining_elements, Object& prototype) : PromiseResolvingElementFunction(index, values, move(capability), remaining_elements, prototype) { } ThrowCompletionOr<Value> PromiseAllSettledRejectElementFunction::resolve_element() { auto& vm = this->vm(); auto& global_object = this->global_object(); // 9. Let obj be ! OrdinaryObjectCreate(%Object.prototype%). auto* object = Object::create(global_object, global_object.object_prototype()); // 10. Perform ! CreateDataPropertyOrThrow(obj, "status", "rejected"). MUST(object->create_data_property_or_throw(vm.names.status, js_string(vm, "rejected"sv))); // 11. Perform ! CreateDataPropertyOrThrow(obj, "reason", x). MUST(object->create_data_property_or_throw(vm.names.reason, vm.argument(0))); // 12. Set values[index] to obj. m_values.values()[m_index] = object; // 13. Set remainingElementsCount.[[Value]] to remainingElementsCount.[[Value]] - 1. // 14. If remainingElementsCount.[[Value]] is 0, then if (--m_remaining_elements.value == 0) { // a. Let valuesArray be ! CreateArrayFromList(values). auto* values_array = Array::create_from(global_object, m_values.values()); // b. Return ? Call(promiseCapability.[[Resolve]], undefined, « valuesArray »). return JS::call(global_object, *m_capability.resolve, js_undefined(), values_array); } // 15. Return undefined. return js_undefined(); } PromiseAnyRejectElementFunction* PromiseAnyRejectElementFunction::create(GlobalObject& global_object, size_t index, PromiseValueList& errors, PromiseCapability capability, RemainingElements& remaining_elements) { return global_object.heap().allocate<PromiseAnyRejectElementFunction>(global_object, index, errors, capability, remaining_elements, *global_object.function_prototype()); } PromiseAnyRejectElementFunction::PromiseAnyRejectElementFunction(size_t index, PromiseValueList& errors, PromiseCapability capability, RemainingElements& remaining_elements, Object& prototype) : PromiseResolvingElementFunction(index, errors, move(capability), remaining_elements, prototype) { } ThrowCompletionOr<Value> PromiseAnyRejectElementFunction::resolve_element() { auto& vm = this->vm(); auto& global_object = this->global_object(); // 8. Set errors[index] to x. m_values.values()[m_index] = vm.argument(0); // 9. Set remainingElementsCount.[[Value]] to remainingElementsCount.[[Value]] - 1. // 10. If remainingElementsCount.[[Value]] is 0, then if (--m_remaining_elements.value == 0) { // a. Let error be a newly created AggregateError object. auto* error = AggregateError::create(global_object); // b. Perform ! DefinePropertyOrThrow(error, "errors", PropertyDescriptor { [[Configurable]]: true, [[Enumerable]]: false, [[Writable]]: true, [[Value]]: ! CreateArrayFromList(errors) }). auto* errors_array = Array::create_from(global_object, m_values.values()); MUST(error->define_property_or_throw(vm.names.errors, { .value = errors_array, .writable = true, .enumerable = false, .configurable = true })); // c. Return ? Call(promiseCapability.[[Reject]], undefined, « error »). return JS::call(global_object, *m_capability.reject, js_undefined(), error); } return js_undefined(); } }
cpp
from setuptools import setup, find_packages setup(name='jsonrpcstdio', description='Asynchroncous Python implementation of JSON RPC for arbitrary' ' Streams and a particular implementation for JSON RPC of ' 'standard IO', author='amas0', version='0.6', packages=find_packages(), install_requires=[ 'aioconsole', 'pydantic' ])
python
I own a property in Tambaram, Chennai. As per the sale deed, the measurement of the land is 2400 sq. ft. , which is the physical measurement of the property. But in patta the measurement is given as 2152 sq. ft. , which is lesser than the actual size of the plot area. I want to know if building approval will be given based on the actual measurement of the land or what is mentioned in the patta? Also, if I must correct the patta, who should I contact? You can make an application to the jurisdictional Tahsildar’s office for correction of patta. It is also possible that you may get an approval with the existing documents based on the plan submitted by you to the authorities disclosing the actual site measurements. Please consult your architect/ civil engineer as to the necessity of correcting the patta before taking further steps in this regard.
english
{ "id": "nodebb-plugin-cookie-auto-login", "name": "NodeBB Cookie Auto Login", "description": "Logs in automatically", "url": "https://github.com/livey0u/nodebb-plugin-cookie-auto-login", "library": "./library.js", "hooks": [ { "hook": "static:app.load", "method": "load" }, { "hook": "filter:config.get", "method": "extendConfig" } ], "staticDirs": { "static": "./static" }, "less": [ "static/style.less" ], "templates": "static/templates" }
json
One of India’s finest batsman Virender Sehwag, at the business end of a glorious career, will again be the primary attraction as Delhi host Saurashtra in an opening round encounter of the Ranji Trophy on a Roshanara Club track here from Sunday. Delhi team management and especially skipper Gautam Gambhir’s fascination for playing at the Roshanara Club ground is well documented but Saurashtra coach and domestic legend Shitanshu Kotak was pleasantly surprised after having a look at the strip which bore a partially bald look. “When they shifted the game to Roshanara, I thought they wanted to give us a green-top. But this is not a green top, I would rather say a sporting wicket where batsmen will get runs and the spinners will also come in the picture,” Kotak told reporters ahead of the match. “The Roshanara track in which I last played in 2009-10 season probably was a green-top. Again when I played institutional cricket for PSPB, it used to be flat deck. This is somehow in between so it’s difficult to predict an outright result,” said Kotak, who has played a record 21 seasons for Saurashtra, in Ranji Trophy. The question that was doing the rounds today was whether Delhi’s team management couldn’t get what they expected from the Roshanara curator as the “22-yard strip” looks different from what has been provided over the years. Delhi coach Vijay Dahiya, on his part, said they are planning to play five specialist bowlers with off-spinner Shivam Sharma and left-arm spinner Varun Sood also in contention for a berth in playing XI. Dahiya said veteran Rajat Bhatia would be looked “more as a batsman”. With Unmukt Chand opening with Gambhir, Sehwag, wicketkeeper Puneet Bisht, Bhatia are the certainties. In case they play five bowlers, the toss-up for the sixth batsman will be between right-hander Milind Kumar and Vaibhav Rawal. Rawal’s inclusion might see Sehwag batting at No 4 while Milind’s inclusion can push him upto No 3. The three pace bowlers will be Parvinder Awana, who has a knack of picking wickets on unresponsive tracks, left-armer Pawan Suyal, who is replacing Pradeep Sangwan, and Sumit Narwal, who is handy with the bat too. For Saurashtra, their strength is a bunch of utility cricketers ranging from Chirag Jani to opener Sheldon Jackson, youngster Arpit Vasavada, glovesman Sagar Jogiyani to name a few. The bowling department has experienced Siddharth Trivedi and Sudeep Tyagi, who had played four ODIs for India at the start of the decade.
english
<filename>wukong/master/tests/service_tests/HbaseStorageServiceImplTest.py import os, sys sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), '../..')) sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..')) from service.storage.mongo import MongoDBStorageServiceImpl from service.storage.model import storage_pb2
python
<nav class="page-nav clear"> <div class="container"> <div class="flex flex-middle space-between"> <span class="prev-page"><a href="@@prev" class="link">&larr; Prev Page</a></span> <span class="copyright"><NAME> artwork credit: (left) <a href="https://twitter.com/@@left" target="_blank">@@@left</a> <i>@@noteLeft</i> | (right) <a href="https://twitter.com/@@right" target="_blank">@@@right</a> <i>@@noteRight</i> </span> <span class="next-page"><a href="@@next" class="link">Next Page &rarr;</a></span> </div> </div> <!-- /.page-nav --> </nav>
html
Standardized Scores (Z-Scores). By: David Ruff. Z-Score Defined. The number of standard deviations a raw score (individual score) deviates from the mean. X - X s x where : Z x = standardized score for a value of X = number of standard deviations a raw score (X-score) View 2 upwards PowerPoint (PPT) presentations online in SlideServe. SlideServe has a very huge collection of 2 upwards PowerPoint presentations. You can view or download 2 upwards presentations for your school assignment or business presentation. Browse for the presentations on every topic that you want.
english
{ "accountLinkingWhitelistedDomains": null, "asin": "B01DJJ286M", "averageRating": 3, "canDisable": true, "capabilities": null, "category": null, "description": "This skill finds the current GMT and tells it to user in terms of hours and minutes", "enablement": null, "exampleInteractions": [ "Alexa ask Greenwich Time what is GMT", "Alexa ask Greenwich Time to say Zulu time", "Alexa ask Greenwich Time to say Greenwich Mean Time" ], "firstReleaseDate": 1459190371.615, "homepageLinkText": null, "homepageLinkUrl": null, "id": "amzn1.echo-sdk-ams.app.fe04d827-6f0b-4564-ae48-364cb53e2d34", "imageAltText": "Greenwich Time icon", "imageUrl": "https://github.com/dale3h/alexa-skills-list/raw/master/skills/B01DJJ286M/skill_icon", "inAppPurchasingSupported": false, "launchPhrase": "greenwich time", "name": "<NAME>", "numberOfReviews": 1, "pamsPartnerId": null, "permissions": null, "privacyPolicyUrl": "http://coolapps8.weebly.com/gmt.html", "shortDescription": "Tells GMT or Greenwich Mean Time", "skillTypes": null, "stage": "live", "termsOfUseUrl": "http://coolapps8.weebly.com/gmt.html", "vendorId": "MJJ9XXN17BZNB", "vendorName": "SameerK" }
json
More than 50 musicians have signed a letter directed at politicians on both the left and right imploring them to ask for permission before using their work at public events. Popular artists like Elton John, The Rolling Stones, Aerosmith, Lionel Richie and Linkin Park signed a letter from the Artist Rights Alliance addressed to both Democratic and Republican national, congressional and senatorial committees asking that they all pledge to stop using songs for political purposes without express permission from the artist or copyright holder. “This is the only way to effectively protect your candidates from legal risk, unnecessary public controversy, and the moral quagmire that comes from falsely claiming or implying an artist’s support or distorting an artists’ expression in such a high stakes public way,” the letter reads. The Artist Rights Alliance goes on to note that in addition to clear legal issues that stem from an artist having to speak up about improper use of their material, it can often confuse the voting public and distort the campaign process. Other artists who attached their name to the letter include Green Day, Elivs Costello, John Mellencamp, Lorde, Sia, Sheryl Crow, R. E. M. and Cyndi Lauper. Mick Jagger and Steven Tyler added their names separately from their respective bands as well. Earlier this month, Neil Young penned an open letter to Donald Trump after the president's use of one of his songs at a Fourth of July event in South Dakota. Young, however, is not one of the artists who signed the letter. The complete list of artists who signed the letter is below: R. E. M.
english
#pragma once #include <boost/interprocess/ipc/message_queue.hpp> #include "Werk/Utility/NamedObject.hpp" #include "ConsoleMessage.hpp" namespace Werk { //console server that uses ipc queue to receive message class IpcConsoleServer : public NamedObject { private: boost::interprocess::message_queue _queue; public: static void remove(const std::string& name) { boost::interprocess::message_queue::remove(name.c_str()); } IpcConsoleServer(const std::string& name, uint32_t maxMessages=1024) : NamedObject(name), _queue(boost::interprocess::create_only, name.c_str(), maxMessages, sizeof(ConsoleMessage)) {} ~IpcConsoleServer() { remove(name()); } bool receive(uint32_t& sequenceNumber, std::string& message); }; }
cpp
--- layout: post title: 운영체제 개요 (2) categories: OS tags: [OS] --- [이화여대 반효경 교수님 강의](http://www.kocw.net/home/search/kemView.do?kemId=1226304)를 듣고 정리한 내용 <br><br> # 운영체제의 구조 ![operating system structure](https://user-images.githubusercontent.com/60416981/150637630-75b6017c-63bf-4570-9240-73a347160af7.png) <br> - 어떤 프로그램에게 CPU 사용권을 줄까? **CPU 스케쥴링** - 한정된 메모리를 어떻게 나누어 쓸까? **메모리 관리** - 디스크에 들어온 요청을 어떤 순서로 처리할까? **디스크 스케줄링** - 느린 입출력장치와 빠른 CPU 간에 어떻게 정보를 주고 받게 할까? **인터럽트, 캐싱** - 컴퓨터 안에서 실행되는 프로그램들을 어떻게 관리할까? **프로세스 관리** - 그외 - **보호 시스템**, **네트워킹**, **명령어 해석기** <br><br> # CPU 스케쥴링 ## 1. FCFS (First-Come First-Served) > 먼저 요청을 한 프로그램에게 먼저 CPU를 사용하게 해주는 방식 - 형평성은 있는 것 같지만, 효율적이지 않음. - 어떤 프로세스가 먼저 도착하느냐에 따라 효율성이 달라짐.<br> ![CPU Scheduling](https://user-images.githubusercontent.com/60416981/150637685-780fad9b-b67d-46c1-9802-eb1d6da3fcf4.png) ## 2. SJF (Shortest-Job-First) > CPU 사용 시간이 가장 짧은 프로세스를 제일 먼저 CPU를 사용하게 해줌 - 기아 현상 (Starvation) : 사용시간이 긴 프로세스는 CPU를 사용할 수 없는 상황이 올 수 있음<br> ![SJF](https://user-images.githubusercontent.com/60416981/150637721-10e46419-303c-4df8-8a95-d22cf3e95986.png) ## 3. RR (Round Robin) >각 프로세스에 동일한 크기의 CPU 할당 시간을 부여하고, 할당시간이 끝나면 해당 프로세스는 CPU 큐의 제일 뒤에 줄을 서게 됨. - 대기 시간이 프로세스의 CPU 사용 시간에 비례함 - 어떤 프로세스도 (n-1)*할당시간 이상 기다리지 않음 - 프로세스의 사용시간이 긴 경우 계속 CPU 큐 뒤로 가서 줄을 서면 됨.<br> ![Round Robin](https://user-images.githubusercontent.com/60416981/150637734-e53d36bf-98f2-4c24-ad32-8516de3b3664.png) <br><br> # 메모리 관리 ![메모리 관리](https://user-images.githubusercontent.com/60416981/150637754-1c86bccb-3807-4040-9c47-3e2561f8d26a.png) <br> ## 프로세스가 메모리에 할당되는 순서 1. 디스크에 있는 실행파일을 실행시킨다. 2. 해당 프로그램만이 가지는 논리적인 주소 공간(가상메모리)이 만들어진다. 3. 이 가상메모리가 dRam(메모리)에 할당된다. 4. 메모리 공간이 부족할 경우 메모리의 연장공간인 디스크(스왑 메모리)에 프로세스가 저장된다. > 스왑 메모리: 물리메모리가 부족할 경우를 대비해 사용하는 공간. 디스크의 공간을 메모리처럼 사용한다. <br><br> ## LRU vs. LFU ![LRU vs. LFU](https://user-images.githubusercontent.com/60416981/150640327-0de6e161-5b61-4a7d-847c-1b9114e7d62c.png) - 메모리에 프로세스가 꽉 찼을 경우 어떤 프로세스를 내보내고 새로운 프로세스를 할당할 것인가? - 과거를 보고 가까운 미래에 사용될 확률이 낮은 프로세스를 내보낸다. - LRU: 가장 오래 전에 참조된 페이지를 삭제 => 페이지 1 - LFU: 참조 횟수가 가장 적은 페이지를 삭제 => 페이지 4 - 두 방식 모두 단점이 있기 때문에 LRU와 LFU를 보완한 방법이 필요 <br><br> # 디스크 스케줄링 > 먼저 요청이 들어온 순서대로 처리한다면, 디스크 헤드의 이동 거리가 길어진다. ![디스크 스케줄링](https://user-images.githubusercontent.com/60416981/150640332-15f610ca-a85a-47a6-aad9-16efbf0c55cc.png) <br> ## 디스크 스케쥴링의 목표 > Seek Time을 줄이고, 디스크 헤드의 이동거리를 줄여 효율성을 극대화하자 ![디스크 스케줄링의 목표](https://user-images.githubusercontent.com/60416981/150640345-5a7623c0-e687-4f56-ba8c-949fb3268b81.png) <br> ## 1. FCFS (First-Come First-Served) > 먼저 요청이 들어온 순서대로 처리 - 헤드의 이동거리가 길어 효율성이 떨어져 사용하지 않음! ![FCFS](https://user-images.githubusercontent.com/60416981/150640362-c1ed23d8-14fc-44ff-b926-17c71402eacc.png) <br> ## 2. SSTF (Shortest Seek Time First) > 탐색 시간이 가장 짧은 요청을 먼저 처리 - Starvation 문제 발생 ![SSTF](https://user-images.githubusercontent.com/60416981/150640370-d508cab8-91d4-4eba-a707-7286e58718ff.png) <br> ## 3. SCAN > 요청 큐에 상관없이 헤드가 이동하는 길목에 있는 요청을 처리하는 방법 - Starvation 문제가 발생하지 않음 - 헤드의 이동 거리가 짧아짐 ![SCAN](https://user-images.githubusercontent.com/60416981/150640376-17a2b67e-b574-410f-95b1-0093f04c944d.png) <br> # 저장장치 계층구조과 캐싱(caching) > I/O 장치와 CPU 사이의 속도차이를 완충하기 위해 캐싱을 사용함 - 캐싱: 빠른 저장장치에 정보를 복사해놓아 빠르게 가져다쓸 수 있게 하는 것 - 처음에는 제일 밑 계층의 디스크에서 파일을 읽어오지만, 다시 요청한다면 중간 단계에 있는 복사본을 사용하면 되기 때문에 시간이 절약됨 - 용량이 한정되어 있기 때문에 모든 정보를 복사해놓을 수는 없음 ![Caching](https://user-images.githubusercontent.com/60416981/150640407-2d34f7f2-0baa-403f-869d-7131aa5da6d5.png) - Speed - 위로 올라갈수록 빠르고, 아래로 내려올수록 느림 - Cost - 위로 올라갈수록 비싸고, 아래로 내려올수록 저렴함 - Volatility (휘발성) - 메모리는 휘발성, 디스크는 비휘발성 <br> ## 플래시메모리 ![플래시메모리](https://user-images.githubusercontent.com/60416981/150640418-fbc7188e-4f4c-428c-979b-de60f3d59b72.png) - 플래시메모리의 단점 - 데이터 변형이 일어날 가능성이 있음(시간이 지나면 전하가 조금씩 빠져나가므로) - 쓰기 횟수가 제약되어 있음
markdown
The Shiv Sena again claimed on Friday that there is a strong move among a section of Bharatiya Janata Party to make Mumbai - the country's financial capital - into a Union Territory. Sena MP and chief spokesperson Sanjay Raut claimed that a group of BJP leaders including ex-Mumbai MP Kirit Somaiya are chalking out a plan to the effect with the help of some businessmen, realtors, and others. "This has been going on for the past couple of months or so. A detailed presentation has also been made to the Union Home Ministry in this regard," he said, adding he has evidence in the matter. Raut said there is a possibility that this group is likely to move the courts citing that the percentage of Marathi-speaking people in Mumbai has gone down and hence it should be made a UT under the direct control of the Centre. On several occasions in the past, the Maha Vikas Aghadi (MVA) has accused the BJP and Centre of making attempts to carve out Mumbai from Maharashtra to bring the megalopolis under its jurisdiction as a UT. In January 2021, BJP-ruled Karnataka's then Deputy Chief Minister Laxman Savadi had sparked a major political row by demanding that Mumbai should be handed over to Karnataka and until then its status should be changed to a UT. However, the MVA allies Shiv Sena-Nationalist Congress Party-Congress had slammed the proposal and said Mumbai has always been an integral part of Maharashtra, will remain so, and any plans to dilute it would be resisted stiffly.
english
Geography and Recent History Between Ukraine and Russia • Ukraine was one of 15 separate republics that made up the Soviet Union until Soviet Union collapsed in 1991 • Crimean Peninsula was part of Russian Republic until 1954 when Soviet leadership transferred it to Ukrainian republic. • Many ethnic Russians still live in Ukraine, especially in eastern part of the country including Crimean Peninsula • Traditionally, they’ve had closer ties to Moscow than to the rest of Europe. EurAsEC (EAEC) vs. EU • Eurasian Economic Community is an organization of 5 member countries that was created to encourage economic cooperation among countries in Eastern Europe and Central Asia (Russia, Belarus, Kazakhstan, Kyrgyzstan, and Tajikistan) • European Union is an organization of 28 members countries mainly in Western and Central Europe – maintains free trade among its members and encourages common economic, social, and foreign policies. • Ukraine’s movement toward the EU threatened plans to expand new EAEC into Ukraine and elsewhere. Is this the start of a new Cold War? • During the Cold War (1945-1991), the U.S. and Soviet Union battled for influence over Europe and beyond • In current crisis, the U.S. and Russia are at odds over the direction of Ukraine – will it draw closer to Europe or Moscow? • The debate in Russia’s parliament over whether to give Putin the go-ahead to use military force sounded at times like the darkest days of the Cold War. What to do? • There is little the U.S. and NATO can do to reverse Russia’s takeover of Crimea • Putin MAY NOT be done yet! • Weak response to Russia-Georgia situation in 2008, weak response to Russia-Ukraine situation in 2014 • What’s to stop Putin and Russia from taking more land? • First: the ongoing U.S.-led effort to reduce and better secure the global store of nuclear weapons and nuclear material (the subject of a major conference led by President Obama last week in the Netherlands).
english
New Delhi, July 16 (IANS) India pacer Jasprit Bumrah is close to regaining his full-fitness and is likely to make his highly-anticipated return to action next month during the tour of Ireland. According to an Indian Express report, Bumrah, who underwent a back surgery in March and had resumed bowling last month after successfully undergoing rehabilitation at the National Cricket Academy in Bengaluru, has been gradually increasing his workload. The pacer is continuing his rehab programme under the watchful eyes of NCA chief VVS Laxman and he is bowling full throttle at the nets, where he is bowling 8-10 overs. While the selectors and the team management were looking to include Bumrah for the Asia Cup in September, the progression he has made in the last couple of weeks means he could travel to Ireland next month with a second-string India team. The decision on his travel would be taken in the coming days. The report further said that Bumrah is being handled with extra care given the nature of injury he suffered and has missed the competitive cricket since last September. ". . . . Bumrah isn’t showing any discomfort at the nets, where he is training on a daily basis. There are indications that Bumrah could even play a few practice matches at the NCA, where camps are underway," the report added. The development comes as a big boost for the Indian cricket team ahead of major events such as the Asia Cup and the ICC ODI World Cup, the latter hosted by India in the months of October and November. Meanwhile, another Indian pacer Prasidh Krishna, who underwent surgery for a lumbar stress fracture is recovering well and has resumed bowling. The 27-year-old pacer had missed the IPL 2023 with injury and last featured in a competitive match in August 2022 in Zimbabwe. Since then he has been battling a stress fracture, which eventually ended up with him undergoing surgery. As of now, Prasidh is not a certainty for the Ireland tour next month, he is in line to feature in the Asia Cup, which could boost India further. On the other hand, Shreyas Iyer, who also underwent surgery for a recurring back injury has also resumed batting after completing his rehab. The KKR captain had missed the IPL 2023 after picking up the injury during the Tests against Australia last February-March. If he gets fit, Iyer could travel to Ireland. Disclaimer: This story has not been edited by the Sakshi Post team and is auto-generated from syndicated feed.
english
<gh_stars>1-10 { "name": "@uninen/howler", "version": "3.0.0-alpha.4", "description": "Javascript audio library for the modern web.", "homepage": "https://github.com/Uninen/howler.js", "keywords": [ "howler", "howler.js", "audio", "sound", "web audio", "webaudio", "browser", "html5", "html5 audio", "audio sprite", "audiosprite", "typescript" ], "author": "<NAME> <<EMAIL>>", "repository": { "type": "git", "url": "git://github.com:Uninen/howler.js.git" }, "scripts": { "test": "vite", "test:network": "vite --host", "build": "node esbuild.js", "typecheck": "tsc --emitDeclarationOnly false --noEmit true", "release": "VERSION=`printf 'v' && node -e 'console.log(require(\"./package.json\").version)'` && git tag $VERSION && git push && git push origin $VERSION && npm publish" }, "devDependencies": { "esbuild": "^0.14.3", "prettier": "^2.5.1", "tsc": "^2.0.3", "typescript": "^4.5.4", "vite": "^2.7.2" }, "type": "module", "main": "dist/core.js", "license": "MIT", "files": [ "dist/core.js", "dist/core.d.ts", "dist/helpers.d.ts", "dist/howl.d.ts", "dist/howler.d.ts", "dist/sound.d.ts" ], "dependencies": { "fs-extra": "^10.0.0" } }
json
WIRED Customizable audio updates allow you to choose what you want to hear and when you want to hear it. Very lightweight and durable. Desktop softwares is very intuitive and Mac compatible. Sexy voice for a computer. (Sorry... No men's voices yet.) TIRED Lack of any screen whatsoever is a bit annoying. Controls are a bit clunky.
english
Ukraine will restrict electricity supplies across the country on Thursday after Russia knocked out more power generating plants, a senior aide to President Volodymyr Zelenskiy said on Wednesday. Zelenskiy, who said this week that 30% of Ukrainian power stations had been hit by Russian air strikes, met senior officials to discuss security at plants and the possibility of a breakdown in the energy system. ”Tomorrow, October 20, electricity supply restrictions will be introduced throughout all of Ukraine. Today the enemy has destroyed power generating facilities again,” Kyrylo Tymoshenko, deputy head of Zelenskiy’s office, said on Telegram. Ukrainian grid operator Ukrenergo later said that the planned power cut would be limited to Thursday and cited a lack of capacity in the system. ”We do not exclude that with the onset of a cold weather we will be asking for your help even more frequently,” Ukrenergo said in a post on Telegram. Earlier in the day, a Russian missile strike hit a major thermal power station in the city of Burshtyn in western Ukraine, the region’s governor said, the latest in a wave of attacks on critical infrastructure ahead of winter. The latest salvo hit the coal-fired Burshtyn plant in the region of Ivano-Frankivsk that supplies electricity to three western regions and to five million consumers – more than 10% of Ukraine’s pre-war population of about 41 million. Svitlana Onyshchuk, Ivano-Frankivsk’s governor, said no one was hurt in the strike to the area hundreds of kilometres from the front lines that has until the last 10 days been relatively unscathed by eight months of war. The same plant was hit by four missiles on Oct. 10, the governor said. Serhiy Borzov, governor of the Vinnytsia region in western Ukraine, said Russia had also carried out energy-related attacks there on Wednesday. In Ukraine’s capital, air defences shot down incoming missiles, Kyiv’s mayor said. Three people were injured in drone attacks in the northeast region of Chernyhiv, a senior official from the president’s office said. Air defences took down four incoming cruise missiles launched by Russian warplanes as well as 10 Shahed-136 ”kamikaze” drones, Ukraine’s air force said in a statement. Ukraine accuses Russia of using the drones, which fly to their target and detonate. Iran denies supplying them and the Kremlin on Tuesday also denied using them. The mayor of the western city of Lviv said on television that it would take months to repair power substations that have been damaged in recent days. The city announced possible disruptions to electricity supply while repairs were made. ”We will have to turn off the lights – this is a forced measure, we have to economise,” said mayor Andriy Sadovyi. Read the Latest News and Breaking News here(This story has not been edited by News18 staff and is published from a syndicated news agency feed - Reuters)
english
Hero Sivaji is all set to play the role of a software engineer in the new film which will be directed by Kiran. This is the first movie as director for Kiran who has worked as assitant to several big film makers in Tollywood. C D Nagendra will produce this picture on Chandan Movies banner. The movie will hit the floors in May. S Murali Mohan Reddy will handle cinematography and Raj Kiran will compose music for this flick. Apparently there will be only three songs in this family entertainer. "This is an urban based story which revolves around a software engineer. He resolves a lot of technical problems and how he gets entangled in his personal problems is what the story is all about. Sivaji played a lot of roles but this is the first time he will be seen as software engineer" the director said. The heroine and other technicians for this project are yet to be finalised. Follow us on Google News and stay updated with the latest!
english
Gabriel was part of the Windies squad, that just concluded a three-Test series against Sri Lanka. West Indian quick Shannon Gabriel has been named as a replacement for Junior Dala in the Trinbago Knight Riders squad for the 2018 edition of the Caribbean Premier League (CPL) starting August 8. South African Dala is no longer available due to international commitments in Sri Lanka while this will be Gabriel’s comeback to the franchise after representing ithem in 2014. “Gabriel is a world-class bowler, and he has shown that in international cricket. It is great to have him joining the TKR family. We are really looking forward to getting our title defence underway on August,” Venky Mysore, Director of the Knight Riders, said on Thursday. Gabriel was part of the Windies squad, that just concluded a three-Test series against Sri Lanka earlier in the month, with 20 wickets against his name that also included 13/121 in the St. Lucia Test — the third best by a West Indian, and the best at home. In the process of that record performance, he also bagged his 100th wicket in Tests. The 30-year-old pacer has played 35 T20s and has picked 29 wickets.
english
A free app for Android, by Harmonix. A free program for Android, by TRACKON. A free app for Android, by Fluid software team. Easily Watch Internet Television Of All Different Sorts.
english
Veteran Indian cricketer-turned commentator Sunil Gavaskar admitted that the rate at which the Indian batting collapsed on the fourth morning of the Leeds Test was 'hard to take'. Speaking to Sony Sports during the post-match show, Gavaskar was asked if the speed at which the visitors got knocked over was too rapid to swallow. The legendary cricketer-turned commentator responded in the affirmative. Gavaskar had the following to say: "It was. When you have a look at what we have got at 8,9,10, and 11, we did have some rearguard action at Lord's, where England lost the plot more than anything else. Once the top three batsmen fell, it was clear we (India) were not going to survive for too long. By any stretch of the imagination, in 54 minutes for 7 wickets to fall is a little bit hard to take. " India started the day at 215 for 2 but that all changed quickly with the dismissal of Cheteshwar Pujara. The Indian No. 3 made an error of judgment as he padded up to a nip-backer from Ollie Robinson. England challenged the on-field call and were vindicated as ball-tracking displayed three reds. The visitors never recovered from that blow as Ollie Robinson and James Anderson prized out Virat Kohli and Ajinkya Rahane, leaving them gasping for breath. Rishabh Pant soon followed as he edged Robinson behind the wicket for the third time in the series and with Ravindra Jadeja stranded with four genuine No. 11s, it was only a matter of time before England notched up a series-levelling win. The next four wickets fell in the space of 8 overs as India succumbed to their first innings defeat since 2018. Meanwhile, Indian captain Virat Kohli doffed his hat off to the English pacers for their sensational display in the third Test. While Kohli admitted that the batsmen made errors in judgment, he also asserted that England bowlers forced them to make mistakes with their relentless accuracy. "Batting collapses can happen in this country, the pitch was good to bat on, but their discipline with the ball forced us to make a few mistakes, and it was difficult to deal with spells where we weren't getting runs. We didn't make good decisions as a batting side," Kohli also lauded the England batting unit for the intent they displayed during their innings. The Indian skipper signed off by admitting that the home side were deserved winners. The Indian captain added: With the series tantalizingly poised at 1-1, the fourth Test at the Oval is all set to be a riveting affair. It will be interesting to see if India can stage a redemption just like England did at Headingley following a humiliating defeat at Lord's. The fourth Test of the 5-match series will start at the Oval in London on September 02.
english
# -*- coding: utf-8 -*- __version__ = '2.4.0.beta'
python
<reponame>mahkoh/winit<filename>src/platform_impl/linux/x11/util/mod.rs // Welcome to the util module, where we try to keep you from shooting yourself in the foot. // *results may vary mod atom; mod client_msg; mod cursor; mod geometry; mod hint; mod icon; mod input; mod queue; mod randr; mod window_property; mod wm; pub use self::{ atom::*, client_msg::*, geometry::*, hint::*, icon::*, input::*, queue::*, randr::*, window_property::*, wm::*, }; use std::{ mem::{self}, ptr, }; use super::{ffi, XConnection}; use xcb_dl_util::error::XcbError; use xcb_dl_util::void::{XcbPendingCommand, XcbPendingCommands}; use xcb_dl_util::xcb_box::XcbBox; pub fn maybe_change<T: PartialEq>(field: &mut Option<T>, value: T) -> bool { let wrapped = Some(value); if *field != wrapped { *field = wrapped; true } else { false } } pub fn fp1616_to_f64(x: ffi::xcb_input_fp1616_t) -> f64 { (x as f64 * 1.0) / ((1 << 16) as f64) } pub fn fp3232_to_f64(x: ffi::xcb_input_fp3232_t) -> f64 { x.integral as f64 + (x.frac as f64) / ((1u64 << 32) as f64) } impl XConnection { pub fn check_cookie(&self, cookie: ffi::xcb_void_cookie_t) -> Result<(), XcbError> { unsafe { self.errors.check_cookie(&self.xcb, cookie) } } pub unsafe fn check<T>( &self, val: *mut T, err: *mut ffi::xcb_generic_error_t, ) -> Result<XcbBox<T>, XcbError> { self.errors.check(&self.xcb, val, err) } pub fn check_pending1(&self, pending: XcbPendingCommand) -> Result<(), XcbError> { unsafe { pending.check(&self.xcb, &self.errors) } } pub fn check_pending(&self, pending: XcbPendingCommands) -> Result<(), XcbError> { unsafe { pending.check(&self.xcb, &self.errors) } } pub fn discard(&self, pending: XcbPendingCommand) { unsafe { pending.discard(&self.xcb, self.c) } } pub fn flush(&self) -> Result<(), XcbError> { unsafe { if self.xcb.xcb_flush(self.c) == 0 { self.errors.check_connection(&self.xcb) } else { Ok(()) } } } pub fn generate_id(&self) -> u32 { unsafe { self.xcb.xcb_generate_id(self.c) } } }
rust
<gh_stars>0 # Copyright (c) 2014, Telecom Italia SpA """ Service Orchestrator for OpenEPC. MCN 2014 """ __author__ = 'sruffino' import json import os import requests from interfaces.ServiceAdapter import ServiceAdapter as ABCServiceAdapter class PgwuSgwuAdapter(ABCServiceAdapter): def __init__(self, conf_proxy): """ Initializes a new ServiceAdapter. :return: """ # -------------------------------------------------------# # Parameters for preinit/install # -------------------------------------------------------# self.PGWU_SGWU_ID="3812090105" # (e.g.: 3812090105 ) The unit id generated by orchestrator (or whatever ID generated by you ) self.OFP_DATAPATH_ID="3812090105000000" # (e.g.: $PGWU_SGWU_ID000000) unit id with appended zeros to match length for datapath_id self.UPLOAD_FLOATING_NETWORK_CIDR="172.16.31.10" # (e.g.: 192.168.95.0/24 ) Example from the wall self.PGWU_SGWU_NET_A_IP="172.16.31.10" self.PGWU_SGWU_NET_B_IP="" self.PGWU_SGWU_NET_MGMT_IP="3.3.3.10" self.PGWU_SGWU_NET_D_IP="5.5.5.10" self.ZABBIX_IP="9.9.9.9" self.PGW_U_Upload_Interface_IP=self.PGWU_SGWU_NET_B_IP self.PGW_U_Download_Interface_IP=self.PGWU_SGWU_NET_A_IP # -------------------------------------------------------# # Paramters for gw relation # -------------------------------------------------------# self.GW_NET_A_IP="4.4.4.3" self.PGWU_NET_A_IP_ENDING_NUMBER="10" # The last number from the net_a IP of the pgwu-sgwu self.GW_NET_A_IP_ENDING_NUMBER="3" # The last number from the net_a IP of the gw self.VIRT_NET_A_IP="192.168.77." + self.PGWU_NET_A_IP_ENDING_NUMBER # e.g. 192.168.77.210 when pgwu-sgwu got 172.30.5.210 self.VIRT_NET_A_GW_IP="192.168.77" + self.GW_NET_A_IP_ENDING_NUMBER # e.g. 192.168.77.204 when gw got 172.20.5.204 # -------------------------------------------------------# # Paramters for pgw_c relation # -------------------------------------------------------# self.PGW_C_Openflow_Transport_Protocol="tcp" self.PGW_C_Openflow_IP="172.16.58.3" # The MGMT_IP of pgw_c self.PGW_C_OpenFlow_Port="6634" # -------------------------------------------------------# # Configuration proxy self.proxies = { "http": "http://" + conf_proxy + ":3128", "https": "http://" + conf_proxy + ":3128" } def preinit(self, config): """ sends the preinit method based on the received config parameters curl -X POST -H "Content-Type:application/json" -d \ "{\"parameters\":[\"net_d=$PGWU_SGWU_NET_D_IP,mgmt=$PGWU_SGWU_NET_MGMT_IP,\ net_a=$PGWU_SGWU_NET_A_IP\",\ \"$ZABBIX_IP\"]}" http://$NAT_PUBLIC_IP:8390/pgw_u-sgw_u-5G/preinit :param config: :return: """ parameters = [] networks = "" for net_name, net_ip in config['ips'].items(): networks = networks + ("%s=%s;"%(net_name,net_ip)) parameters.append(networks) parameters.append(config['zabbix_ip']) request = {"parameters":parameters} print "I'm the pgwu-sgwu adapter, preinit pgwu-sgwu service, \ parameters %s, request %s" %(parameters,str(json.dumps(request))) url = 'http://' + config['floating_ips'].get('mgmt') + \ ':8390/pgw_u-sgw_u-5G/preinit' headers = {'content-type': 'application/json'} response = requests.post(url, data=json.dumps(request), headers=headers, proxies=self.proxies) print response.content print "I'm the pgwu-sgwu adapter, preinit pgwu-sgwu services, \ received resp %s" %response return True def install(self, config): """ Creates a new Service based on the config file. curl -X POST -H "Content-Type:application/json" -d \ "{\"parameters\":[\"PGW-U-$PGWU_SGWU_ID\",\"$PGWU_SGWU_NET_MGMT_IP\",\ \"$PGW_U_Upload_Interface_IP\",\"$PGW_U_Download_Interface_IP\",\ \"$OFP_DATAPATH_ID\",\"true\",\"$UPLOAD_FLOATING_NETWORK_CIDR\"]}" \ http://127.0.0.1:8390/pgw_u-sgw_u-5G/install :params config: :return: """ exp_params = ['PGWU_SGWU_ID', 'PGWU_SGWU_NET_MGMT_IP', 'PGW_U_Upload_Interface_IP', 'PGW_U_Download_Interface_IP', 'OFP_DATAPATH_ID', 'UPLOAD_FLOATING_NETWORK_CIDR'] # pgwu-sgwu for v in exp_params: if v not in config: print "PGWU-SGWU adapter - install _ missing parameter: " + v return False parameters = [] parameters.append('PGW-U-' + config['PGWU_SGWU_ID']) parameters.append(config['PGWU_SGWU_NET_MGMT_IP']) parameters.append(config['PGW_U_Upload_Interface_IP']) parameters.append(config['PGW_U_Download_Interface_IP']) parameters.append(config['OFP_DATAPATH_ID']) parameters.append('true') parameters.append(config['UPLOAD_FLOATING_NETWORK_CIDR']) # create request nat request = {"parameters":parameters} print "I'm the pgwu-sgwu adapter, install pgwu-sgwu service, parameters %s" %(parameters) url = 'http://' + config['floating_ips'].get('mgmt') + \ ':8390/pgw_u-sgw_u-5G/install' headers = {'content-type': 'application/json'} response = requests.post(url, data=json.dumps(request), headers=headers, proxies=self.proxies) print response.content print "I'm the pgwu-sgwu adapter, installing pgwu-sgwu service, received resp %s" %response return True def pre_start(self, config): """ Pre-start method curl -X POST -H "Content-Type:application/json" -d \ "{\"parameters\":[\"PGW-U-$PGWU_SGWU_ID\",\"$PGWU_SGWU_NET_MGMT_IP\",\ \"$PGW_U_Upload_Interface_IP\",\"$PGW_U_Download_Interface_IP\",\ \"$OFP_DATAPATH_ID\",\"$PGW_C_Openflow_IP\",\"$PGW_C_OpenFlow_Port\"]}" \ http://127.0.0.1:8390/pgw_u-sgw_u-5G/preStart :param config: :return: """ exp_params = ['PGWU_SGWU_ID', 'PGWU_SGWU_NET_MGMT_IP', 'PGW_U_Upload_Interface_IP', 'PGW_U_Download_Interface_IP', 'OFP_DATAPATH_ID', 'PGW_C_Openflow_IP', 'PGW_C_OpenFlow_Port'] # pgwu-sgwu for v in exp_params: if v not in config: print "PGWU-SGWU adapter - preStart _ missing parameter: " + v return False parameters = [] parameters.append('PGW-U-' + config['PGWU_SGWU_ID']) parameters.append(config['PGWU_SGWU_NET_MGMT_IP']) parameters.append(config['PGW_U_Upload_Interface_IP']) parameters.append(config['PGW_U_Download_Interface_IP']) parameters.append(config['OFP_DATAPATH_ID']) parameters.append(config['PGW_C_Openflow_IP']) parameters.append(config['PGW_C_OpenFlow_Port']) # create request nat request = {"parameters":parameters} print "I'm the pgwu-sgwu adapter, preStart pgwu-sgwu service, parameters %s" %(parameters) url = 'http://' + config['floating_ips'].get('mgmt') + \ ':8390/pgw_u-sgw_u-5G/preStart' headers = {'content-type': 'application/json'} response = requests.post(url, data=json.dumps(request), headers=headers, proxies=self.proxies) print response.content print "I'm the pgwu-sgwu adapter, preStarting pgwu-sgwu service, received resp %s" %response return True def add_dependency(self, config, ext_service): """ Add the dependency between this service and the external one curl -X POST -H "Content-Type:application/json" -d \ "{\"parameters\":[\"$PGWU_SGWU_NET_A_IP\",\"$GW_NET_A_IP\", \ \"$VIRT_NET_A_IP\",\"$VIRT_NET_A_GW_IP\"]}" \ http://127.0.0.1:8390/pgw_u-sgw_u-5G/addRelation/gw curl -X POST -H "Content-Type:application/json" -d \ "{\"parameters\":[\"$PGW_C_Openflow_Transport_Protocol\",\ \"$PGW_C_Openflow_IP\",\"$PGW_C_OpenFlow_Port\"]}" \ http://127.0.0.1:8390/pgw_u-sgw_u-5G/addRelation/pgw_c :return: """ exp_params_gw = ['PGWU_SGWU_NET_A_IP', 'GW_NET_A_IP', 'VIRT_NET_A_IP', 'VIRT_NET_A_GW_IP'] exp_params_pgw_c = ['PGW_C_Openflow_Transport_Protocol', 'PGW_C_Openflow_IP', 'PGW_C_OpenFlow_Port'] parameters = [] if ext_service == 'gw': for v in exp_params_gw: if v not in config: print "PGWU-SGWU adapter - add_relation _ missing parameter: " + v return False # parameters require a specific order parameters.append(config['PGWU_SGWU_NET_A_IP']) parameters.append(config['GW_NET_A_IP']) parameters.append(config['VIRT_NET_A_IP']) parameters.append(config['VIRT_NET_A_GW_IP']) elif ext_service == 'pgw_c': for v in exp_params_pgw_c: if v not in config: print "PGWU-SGWU adapter - add_relation _ missing parameter: " + v return False # parameters require a specific order parameters.append(config['PGW_C_Openflow_Transport_Protocol']) parameters.append(config['PGW_C_Openflow_IP']) parameters.append(config['PGW_C_OpenFlow_Port']) else: print ("PGWU-SGWU adapter - wrong ext_service") request = {"parameters":parameters} print "I'm the pgwu-sgwu adapter, adding " + ext_service + " relation to pgwu-sgwu service, parameters %s" %(parameters) url = 'http://' + config['floating_ips'].get('mgmt')+ \ ':8390/pgw_u-sgw_u-5G/addRelation/' + ext_service headers = {'content-type': 'application/json'} response = requests.post(url, data=json.dumps(request), headers=headers, proxies=self.proxies) print response.content print "I'm the pgwu-sgwu adapter, adding " + ext_service + " relation to pgwu-sgwu service, received resp %s" %response return True def remove_dependency(self, config, ext_service=None): """ Remove the dependency between this service and the external one 1) For the switch you need to call the relation departed script to the nat : curl -X POST -H "Content-Type:application/json" -d "{\"parameters\":[\"$PGWU_SGWU_NET_A_IP\"]}" http://127.0.0.1:8390/pgw_u-sgw_u-5G/removeRelation/gw :return: """ exp_params = ['PGWU_SGWU_NET_A_IP'] for v in exp_params: if v not in config: print "PGWU-SGWU adapter - " \ "remove_dependency _ missing parameter: " + v return False parameters = [] parameters.append(config['PGWU_SGWU_NET_A_IP']) request = {"parameters": parameters} print "I'm the pgwu-sgwu adapter, " \ "remove_dependency pgwu-sgwu service, parameters %s" % parameters url = 'http://' + config['floating_ips'].get('mgmt') + \ ':8390/pgw_u-sgw_u-5G/removeRelation/gw' headers = {'content-type': 'application/json'} response = requests.post(url, data=json.dumps(request), headers=headers, proxies=self.proxies) print response.content print "I'm the pgwu-sgwu adapter, " \ "remove_dependency pgwu-sgwu service, received resp %s" % response return True def start(self, config): """ Sending start requests to the different components curl -X POST -H "Content-Type:application/json" \ -d "{\"parameters\":[]}" http://$NAT_PUBLIC_IP:8390/gw/start :return: """ parameters = [] request = {"parameters":parameters} print "I'm the pgwu-sgwu adapter, adding pgwu relation to pgwu-sgwu service, parameters %s" %(parameters) url = 'http://' + config['floating_ips'].get('mgmt') + ':8390/pgw_u-sgw_u-5G/start' headers = {'content-type': 'application/json'} response = requests.post(url, data=json.dumps(request), headers=headers, proxies=self.proxies) print response.content print "I'm the pgwu-sgwu adapter, adding pgwu relation to pgwu-sgwu service, received resp %s" %response return True def terminate(self): """ Terminate the service :return: """ pass if __name__ == '__main__': from utils import * from globals import * # set http_proxy to epc-proxy VM # since we use the proxy, no floating_ip needed conf_proxy = 'FILLME FOR TESTING' #os.environ['http_proxy']='http://192.168.127.12:3128' c = PgwuSgwuAdapter(conf_proxy) # NOTE NOTE: out must be filled with heat output string out = 'FILL ME FOR TESTING' nat_ip = get_ips(out, 'mcn.endpoint.nat') nat_ip_net_a = get_ips(out, 'nat.net_a.ip') pgwu1_ip = get_ips(out, 'mcn.endpoint.pgwu-sgwu-1') pgwu1_ip_net_a = get_ips(out, 'pgwu-sgwu-1.net_a.ip') mme_ip = get_ips(out, 'mcn.endpoint.mme-pgwc-sgwc') mme_ip_net_d = get_ips(out, 'mme-pgwc-sgwc.net_d.ip') pgwu1_ip_net_d = get_ips(out, 'pgwu-sgwu-1.net_d.ip') #pgwu1_ip = '192.168.85.95' # preinit config = {} config['hostname'] = PGW1_VM_NAME # config['ips'] = {'mgmt': '192.168.85.95', 'net_a': '172.19.5.95', # 'net_d': '172.19.8.95'} config['ips'] = {'mgmt': pgwu1_ip, 'net_a': pgwu1_ip_net_a, 'net_d': pgwu1_ip_net_d} config['zabbix_ip'] = '192.168.85.145' config['floating_ips'] = {'mgmt': pgwu1_ip} c.preinit(config) # install config = {} # config = {'OFP_DATAPATH_ID': '3812090105000000', # 'PGWU_SGWU_ID': '3812090105', # 'PGWU_SGWU_NET_MGMT_IP': '192.168.85.95', # 'PGW_U_Download_Interface_IP': '172.19.5.95', #net_a # 'PGW_U_Upload_Interface_IP': '172.19.8.95', # net_d # 'UPLOAD_FLOATING_NETWORK_CIDR': '172.16.58.3/25'} #floating ip subnet cidr config = {'OFP_DATAPATH_ID': '3812090105000000', 'PGWU_SGWU_ID': '3812090105', 'PGWU_SGWU_NET_MGMT_IP': pgwu1_ip, 'PGW_U_Download_Interface_IP': pgwu1_ip_net_a, #net_a 'PGW_U_Upload_Interface_IP': pgwu1_ip_net_d, # net_d 'UPLOAD_FLOATING_NETWORK_CIDR': '172.16.58.3/25'} #floating ip subnet cidr config['floating_ips'] = {'mgmt': pgwu1_ip} c.install(config) # add dependency to gw(nat) config = {} config = { 'PGWU_SGWU_NET_A_IP': pgwu1_ip_net_a, 'GW_NET_A_IP': nat_ip_net_a, # The last number from the net_a IP of the pgwu-sgwu 'PGWU_NET_A_IP_ENDING_NUMBER': pgwu1_ip.split('.')[3], # The last number from the net_a IP of the gw 'GW_NET_A_IP_ENDING_NUMBER': nat_ip_net_a.split('.')[3] } # config = { # 'PGWU_SGWU_NET_A_IP': '172.19.5.95', # 'GW_NET_A_IP':'172.19.5.96', # 'PGWU_NET_A_IP_ENDING_NUMBER':'95', # 'GW_NET_A_IP_ENDING_NUMBER':'96' # } config['VIRT_NET_A_IP'] = '192.168.77.' + config['PGWU_NET_A_IP_ENDING_NUMBER'] # e.g. 192.168.77.210 when pgwu-sgwu got 172.30.5.210 config['VIRT_NET_A_GW_IP'] = '192.168.77.' + config['GW_NET_A_IP_ENDING_NUMBER'] # e.g. 192.168.77.204 when gw got 172.20.5.204 config['floating_ips'] = {'mgmt': pgwu1_ip} c.add_dependency(config, 'gw') # add dependency to pgw_c config = {} config = { 'PGW_C_Openflow_Transport_Protocol':'tcp', #'PGW_C_Openflow_IP': '192.168.85.97', # The MGMT_IP of mme 'PGW_C_Openflow_IP': mme_ip, # The MGMT_IP of mme 'PGW_C_OpenFlow_Port':'6634' } config['floating_ips'] = {'mgmt': pgwu1_ip} c.add_dependency(config, 'pgw_c') # prestart config = {} # config = { # 'PGWU_SGWU_ID': '3812090105', # 'PGWU_SGWU_NET_MGMT_IP': '192.168.85.95', # 'PGW_U_Download_Interface_IP': '172.19.5.95', #net_a # 'PGW_U_Upload_Interface_IP': '172.19.8.95', # net_d # 'OFP_DATAPATH_ID': '3812090105000000', # 'PGW_C_Openflow_IP':'192.168.85.97', # The MGMT_IP of mme # 'PGW_C_OpenFlow_Port':'6634' # } config = { 'PGWU_SGWU_ID': '3812090105', 'PGWU_SGWU_NET_MGMT_IP': pgwu1_ip, 'PGW_U_Download_Interface_IP': pgwu1_ip_net_a, #net_a 'PGW_U_Upload_Interface_IP': pgwu1_ip_net_d, # net_d 'OFP_DATAPATH_ID': '3812090105000000', 'PGW_C_Openflow_IP': mme_ip, # The MGMT_IP of mme 'PGW_C_OpenFlow_Port':'6634' } config['floating_ips'] = {'mgmt': pgwu1_ip} c.pre_start(config) config = {} config['floating_ips'] = {'mgmt': pgwu1_ip} c.start(config)
python