text
stringlengths 1
1.04M
| language
stringclasses 25
values |
|---|---|
{
"username": "KiritoNya",
"password": "<PASSWORD>",
"email": "<EMAIL>",
"pictureProfile": ""
}
|
json
|
<filename>src/main/test/edu/fiuba/algo3/modelo/preguntas/PreguntaMultipleChoiceConPuntajeParcialTest.java
package edu.fiuba.algo3.modelo.preguntas;
import edu.fiuba.algo3.modelo.Jugador;
import edu.fiuba.algo3.modelo.Opcion;
import edu.fiuba.algo3.modelo.Respuesta;
import edu.fiuba.algo3.modelo.preguntas.MultipleChoice;
import edu.fiuba.algo3.modelo.preguntas.TipoParcial;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import java.util.Arrays;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
public class PreguntaMultipleChoiceConPuntajeParcialTest {
@Test
public void testUnaPreguntaMultipleChoiceConPuntajeParcialPuedeCrearseIndicandoleCualEsLaRespuestaCorrecta(){
Opcion opcionCorrecta = new Opcion("4",true);
Opcion opcionCorrecta2 = new Opcion("2^2",true);
Opcion opcionIncorrecta = new Opcion("8",false);
Opcion opcionIncorrecta2 = new Opcion("Pez",false);
ArrayList<Opcion> opciones = new ArrayList<Opcion>(Arrays.asList(opcionCorrecta,opcionCorrecta2,opcionIncorrecta,opcionIncorrecta2));
TipoParcial tipoParcial = new TipoParcial();
MultipleChoice multipleChoiceParcial = new MultipleChoice(" 2+2=..? ", opciones, tipoParcial);
ArrayList<Opcion> opcionesCorrectas = new ArrayList<Opcion>(Arrays.asList(opcionCorrecta2,opcionCorrecta));
assertTrue(multipleChoiceParcial.opcionesCorrectas().containsAll(opcionesCorrectas));
}
@Test
public void testUnaPreguntaMultipleChoiceConPuntajeParcialRecibeUnaListaDeRespuestasYAsignaCorrectamentePuntosALosJugadoresQueRespondieronCorrectamente(){
Jugador jugador1 = new Jugador();
Jugador jugador2 = new Jugador();
Opcion opcionCorrecta = new Opcion("4",true);
Opcion opcionCorrecta2 = new Opcion("2^2",true);
Opcion opcionIncorrecta = new Opcion("8",false);
Opcion opcionIncorrecta2 = new Opcion("Pez",false);
ArrayList<Opcion> opciones = new ArrayList<Opcion>(Arrays.asList(opcionCorrecta,opcionCorrecta2,opcionIncorrecta,opcionIncorrecta2));
TipoParcial tipoParcial = new TipoParcial();
MultipleChoice multipleChoiceParcial = new MultipleChoice(" 2+2=..? ", opciones,tipoParcial);
Respuesta respuestaJugador1 = new Respuesta(jugador1);
Respuesta respuestaJugador2 = new Respuesta(jugador2);
respuestaJugador1.agregarOpcion(opcionCorrecta);
respuestaJugador1.agregarOpcion(opcionCorrecta2);
respuestaJugador2.agregarOpcion(opcionIncorrecta);
respuestaJugador2.agregarOpcion(opcionCorrecta2);
multipleChoiceParcial.asignarPuntaje(respuestaJugador1);
multipleChoiceParcial.asignarPuntaje(respuestaJugador2);
assertEquals(2,jugador1.puntaje());
assertEquals(0,jugador2.puntaje());
}
}
|
java
|
Cardiff: KL Rahul, who smashed a match-winning ton in the first T20I in Manchester against England, has lauded wrist-spinners Kuldeep Yadav and Yuzvendra Chahal for stepping up to fill the void left by pace spearhead Jasprit Bumrah. Bumrah sustained an injury during the first T20I against Ireland which ruled him out of the ongoing series against England.
“I don’t think it is just England (who have been found wanting against spin),” he said ahead of the second T20I in Cardiff. “With the kind of skill that Kuldeep has, it is always going to be hard for a team who doesn’t play spin a lot.
“What Kuldeep did (in Manchester) was special… getting a fifer in T20I is not easy. You can be bowling well but it the end you have nothing to show for it. But he kept at it. We are very confident of playing two wrist-spinners and do most of the damage for us. We are missing Jasprit Bumrah up the order but the way our two wrist-spinners are bowling, I think they are going to be dangerous right through the course of the tour. "
Rahul also that the win in Manchester was big confidence booster for the team as it has set the tone for the rest of the series.
“Yes, we are high on confidence,” he said. “Our preparations have been very good. We came here a week before the series got underway. We went to Ireland and played couple of T20Is and we did well there as well.
“We got exactly what we wanted from those two games — as team and as individuals. As a team we are really enjoying ourselves here in the UK. The way we started has been excellent and hopefully we can continue the same momentum going into the other games. "
Talking about his own form, Rahul expressed his happiness after finally being able to convert a fifty into a hundred — something which he hadn’t able to do in recent times. However, now that he has finally managed to get the monkey off his shoulders, Rahul is hopeful of carrying the momentum forward.
“I didn’t know if I was in form or out-of-form,” he said. “I kept getting the fifties and was also batting well but wasn’t able to cross the three figure mark. It was quite frustrating for me. Also, being in and out of the team because of injuries and sickness kept playing on my mind.
“I realised somewhere down the line that getting 50s was at least better than getting dismissed in single digits. I wanted this hundred very badly and I was happy that it came here in England. Hopefully I can carry that confidence forward. "
With Shikhar Dhawan and Rohit Sharma in the playing XI, Rahul hasn’t been able to bat at his preferred opening slot. However, his hundred at Manchester was scored batting at number three and he insists that he is happy to slot in at any position the team prefers.
“I love to bat at the top of the order,” he said. “One and two is what I am most comfortable at. I got a chance to bat early (in first T20I) despite batting at number three as Shikhar (Dhawan) got out early. It felt like I was opening the batting and it gives me a chance to get my eye in. Whatever chances I get I have to make the most of it. I felt happy that I got a chance to bat up the order. "
|
english
|
Luxury car manufacturer Jaguar Land Rover(JLR), a subsidiary of Tata Motors, is expecting a drop in growth this year due to the hike in customs duty on components and imposition of high GST rates on the premium segment, managing director of JLR India Rohit Suri said.
The impact of customs duty hike on parts and kits by five per cent would raise prices ranging between 3. 5 per to five per cent across the various models of JLR, he said.
"The hike in customs duty hike as announced in the budget was really disappointing. This will have an adverse impact on the growth in 2017," Suri said.
"We were expecting a double digit growth in 2018. But the customs duty hike would depress it down to a single digit", he said.
In 2017 JLR sold around 4000 cars in India, which was 49 per cent year-on-year growth over 2016, Suri told reporters on the sidelines of a showroom launch here today.
The proportion of Jaguar sedan and SUV Land Rover sales was almost 50:50, he said.
Regarding GST, he said it was 50 per cent for SUVs and 48 per cent for sedans inclusive of cess. "This too is very high", Suri said.
Spanning across 11 models of Jaguar and Land Rover models in India, the prices range between Rs 40 lakh to Rs 1. 6 crore, depending on the model.
JLR, which stared operations in India four years ago, had a low-volume manufacturing plant in Pune and was pitted against other luxury brands like Mercedes, BMW, Audi and Porsche. It had a market share of 11 per cent in the category.
Asked about the probable launch of electric vehicles in India from the JLR stable, Suri said "In India, we have to see whether the infrastructure support is there, like charging points".
JLR already has the technology and a vehicle, I-Pace, was just showcased in the Geneva Motor Show.
|
english
|
Let me start by saying that I am not against anyone running a business on the steem blockchain or using their hard earned stake in the platform as they see fit.
Whait a minute...didn't you just say that you are not against people using their Steem Power as they see fit?
Doesn't self-voting fall under that category?
The problem is not the action itself (self-voting) but the rates at which the services are offered.
Let me use myself as an example:
As you can see on the image I received 4,936.585 SP for just 100 Steem. I will be able to use it for 30 days. I was very happy with my decision until I did the math (yes I know I should have done this before entering the transaction...shoot me).
Hear is the deal...with the extra steem power one full vote from my account increased by ~0.40 SBD. At the current exchange rate this equals ~0.43 Steem.
In a perfect scenario I could earn 0.1075 Steem per vote from curation. Multiply this by 10 votes per day (the optimal number) and then by 30 days you get 32.25 Steem.
So I am not going to get back my investment just with curation. What about giving myself some upvotes?
To break even I am going to need to make 3.33 Steem per day. 3.33/0.43 = 7.74 votes or rounded up 8 votes.
In order to break even I am going to need to use 77.4% of the votes on myself!
I am not familiar with the rates of other services but I imagen they are similar and would yield the same result give or take (point it out if I am wrong),
We have 2 possibilities:
- People using these services do the "rational" thing and use the extra voting power on themselves.
- People vote on other accounts and end up short-changed.
The first scenario will take out the social part of the platform...not good.
The second one will lead to the increase in wealth of the organizations and individuals that offer these services at the expense of their customers...not good either.
This would be different if the payout of the posts was not 75/25 (75% to authors and 25% to curators) but something more like 50/50. Or if authors could customize the reward distribution to encourage voting.
Or these services could be offered at better rates.
|
english
|
<filename>HISTORY.md
## Release History
### 0.1.2 (2014-12-28)
Add test script to top-level directory to invoke doctests.
### 0.1.1 (2014-12-28)
Slight refactor for improved versioning and release history.
### 0.1.0 (2014-12-01)
Initial release.
|
markdown
|
<reponame>Ecdar/Ecdar-GUI-import<gh_stars>1-10
{
"name": "Test 1",
"testModelId": "Retailer",
"action": "Test",
"sutPath": "../Program/out/artifacts/Program_jar/Program.jar",
"exportFormat": "",
"useDemonic": true,
"useAngelic": false,
"changeSource": true,
"changeTarget": true,
"changeActionInputs": true,
"changeActionOutputs": true,
"changeGuardConstant": true,
"changeGuardOpClocks": true,
"changeGuardOpLocals": true,
"changeVarUpdate": true,
"changeInvariant": true,
"sinkLocation": true,
"invertReset": true,
"maxGenerationThreads": 10,
"maxSutInstances": 3,
"maxOutputWaitTime": 5,
"verifytgaTries": 3,
"timeUnit": 200,
"stepBounds": 5,
"simulateTime": false,
"verdictMAX_WAIT": false,
"verdictMUT_NO_DELAY": false,
"verdictOUT_OF_BOUNDS": false,
"verdictFAIL_PRIMARY": true,
"verdictFAIL_NORMAL": true,
"verdictNON_DETERMINISM": false,
"verdictPASS": false,
"verdictNO_RULE": false
}
|
json
|
World No. 1 Novak Djokovic led a big shift in the operations of the tennis world when he resigned as the ATP Player Council President on Saturday to head the new Professional Tennis Players Association (PTPA). The group has received divided reception from rest of the field, and has managed to cause plenty of discomfort within the ATP.
But while the new outfit continues to work towards its goals, it is important to also note the work being done by Novak Djokovic. The Serb had recently stated it was 'challenging mentally and emotionally to stay sane' in testing times like these.
A few hours ago, Alexander Zverev in his press conference was asked to give his thoughts on the new group. Zverev admitted that he hadn't yet signed the letter to join the PTPA, but lauded the efforts of Novak Djokovic in bringing about change.
Alexander Zverev and Novak Djokovic have always gotten well with each other, and the Serb had even invited him to his charity exhibition. When asked whether his good friend Djokovic had roped him in yet, the German said:
"I haven't signed the paper. But I think it's a great thing that players do want to come together. I think it's great that we can be more united. I have to give credits - whether somebody signs the paper or not, that's in their decision."
Zverev then commended Djokovic's efforts in leading the fight for pay increase for lower-ranked players despite being preoccupied with his own eminent career.
"But I have to give credit to Novak and to Vasek Pospisil, because a World No. 1 has more things to do than, you know, do some player union or something like that," Zverev added.
Novak Djokovic formed the PTPA because he felt the ATP board had not done enough to fairly represent the players' interests. The Serb is ready to grapple for a bigger slice of the revenue raised, but it has also caused him strain.
"It's not easy for me obviously dealing with all that in the midst of the tournament. It was Cincinnati just before semifinals when it all started," Djokovic had said in his press conference after beating Kyle Edmund at 2020 US Open.
Zverev claimed that Novak Djokovic was not obligated to go against the system but was doing it for the sake of his fellow players.
"He's a World No. 1. He has made enough money. He doesn't need to worry about that. He doesn't need to worry about anything, but he does. He does worry about the well-being of other players," Zverev said.
"So I think I have to give a lot of credit to him for taking the time and doing these things, because in his position, to be honest, he doesn't need to. He just simply doesn't need to. He can relax and not do anything and he will be just fine. But he cares about other players, which is great, I think," the German added.
Novak Djokovic's new association has shaken the official governing body of men's tennis. The group's agenda is clear: a fairer distribution of prize money and more player power in the game. Whether they succeed in achieving their objectives remains to be seen, but considering the support from top players like Zverev, they seem to be on the right track.
|
english
|
Mangaluru: For many passengers who can afford to shell out more money, always prefer Rajdhani Express trains to reach their destination faster than other trains- and I too also prefer Rajdhani to travel to Margao from Mangaluru Junction railway station-but many a times getting confirmed tickets is an hassle-you will always be on wait list. Travel by Rajdhani is much faster than other trains- the travel time from Mangaluru to Margao-Goa is about 5. 30 hrs, while other trains take nearly 7- 7. 30 hrs. But now there is good news for those people who have unconfirmed Rajdhani tickets- and still want to reach their destination in time and faster.
According to sources, Air India will now fly unconfirmed passengers of Rajdhani trains at the fares matching with the AC first class ticket prices under a special scheme for a limited period. Rajdhani Express passengers who remain wait-listed can now book the tickets four hours prior to the flight departure at a fare which is equivalent to the ticket price IA class of these trains.
Under the ‘Super Saver’ scheme, Air India offers an all-inclusive economy class one-way fare on its select domestic routes, which started from June 26 till September 30, 2016. Currently, 21 Rajdhani Express trains run across the Indian Railways network and close to 20,000 passengers travel in these train everyday. As on date, 1A Rajdhani fares for Mumbai and Chennai stood at Rs 4,755 and Rs 6,335, respectively.
Similarly, the first AC fares for these trains to Kolkata and Guwahati were Rs 4,815 and Rs 5,990, respectively. However, thousands of passengers are unable to get confirmed tickets due to non-availability of seats. Air India will now bridge this gap as passengers. By availing the scheme, passengers will not only reach their destination at the same cost of Rajdhani Express but in much lesser time.
The wait-listed passengers of AC First Class of Rajdhani trains would not have to pay any additional amount in case they decide to take an Air India flight. In the case of those booked on Rajdhani Second and Third AC classes, the passengers would have to pay up to Rs. 2,000 per ticket as an additional amount for flying Air India.
|
english
|
Floyd Mayweather has a long list of achievements in life in and out of the ring. Becoming a model grandfather is something he could add there now.
In his latest Instagram post, 'Money' shared to his 28 million plus followers an adorable moment with his grandson Kentrell Jr. In the photo, the one-year-old can be seen copying his grandfather while shadow boxing. In the post, Mayweather wrote:
"They say pictures say a thousand words, I guess this one says a million."
He added:
"The torch might have skipped a generation!"
Check out Floyd Mayweather's Instagram post:
Many of Mayweather's followers were delighted with his grandson's charm, with some expressing appreciation for the 45-year-old spending quality time with his family. Among those who reacted to the post were pro boxers such as Caleb Plant and Adrien Broner.
Plant commented a crossed-swords emoji while Broner claimed Kentrell Jr. may become "one of the best" if his grandfather were to train him.
Mayweather has always expressed his love for his family and it is endearing to see him spend quality time with them after dedicating much of his life to training to become one of the best boxers in history. He usually shares loving moments with his grandson, whom he gifted an ultra-luxurious Rolex just months after being born.
Floyd Mayweather has four children: 23-year-old Koraun, 22-year-old Iyanna, 21-year-old Zion, and 19-year-old Jirah, along with his adopted son Devion Cromwell.
While Koraun, Zion, and Jirah were born from Mayweather's relationship with former reality star Josie Harris, Iyanna is the daughter of 'Money' and television star Melissa Brim.
In January 2021, Iyanna and her boyfriend, rapper NBA Youngboy, welcomed Kentrell Jr.
Mayweather, who retired from professional boxing in August 2017, is reportedly in a relationship with social media star and model Gallienne Nabila.
Nabila is a 24-year-old model who enjoys a massive following on Instagram with nearly a million followers. She also has a popular TikTok account. She and Mayweather have an on-and-off relationship, having been rumored to be dating as far back as 2016.
|
english
|
1855\. Maximum Distance Between a Pair of Values
Medium
You are given two **non-increasing 0-indexed** integer arrays `nums1` and `nums2`.
A pair of indices `(i, j)`, where `0 <= i < nums1.length` and `0 <= j < nums2.length`, is **valid** if both `i <= j` and `nums1[i] <= nums2[j]`. The **distance** of the pair is `j - i`.
Return _the **maximum distance** of any **valid** pair_ `(i, j)`_. If there are no valid pairs, return_ `0`.
An array `arr` is **non-increasing** if `arr[i-1] >= arr[i]` for every `1 <= i < arr.length`.
**Example 1:**
**Input:** nums1 = [55,30,5,4,2], nums2 = [100,20,10,10,5]
**Output:** 2
**Explanation:** The valid pairs are (0,0), (2,2), (2,3), (2,4), (3,3), (3,4), and (4,4). The maximum distance is 2 with pair (2,4).
**Example 2:**
**Input:** nums1 = [2,2,2], nums2 = [10,10,1]
**Output:** 1
**Explanation:** The valid pairs are (0,0), (0,1), and (1,1). The maximum distance is 1 with pair (0,1).
**Example 3:**
**Input:** nums1 = [30,29,19,5], nums2 = [25,25,25,25,25]
**Output:** 2
**Explanation:** The valid pairs are (2,2), (2,3), (2,4), (3,3), and (3,4). The maximum distance is 2 with pair (2,4).
**Constraints:**
* <code>1 <= nums1.length, nums2.length <= 10<sup>5</sup></code>
* <code>1 <= nums1[i], nums2[j] <= 10<sup>5</sup></code>
* Both `nums1` and `nums2` are **non-increasing**.
|
markdown
|
p{
min-width: 600px;
max-width: 600px;
width: 100%;
text-align: justify;
}
button{
margin-left: 15rem;
margin-top: 1rem;
}
|
css
|
{
"name": "demo_app",
"version": "1.0.0",
"private": true,
"description": "RevJS Demo App",
"main": "./dist/server.js",
"repository": "https://github.com/RevJS/demo_app.git",
"author": "<NAME> <<EMAIL>>",
"license": "MIT",
"scripts": {
"build": "npm run build-server && npm run build-clientlibs && npm run build-client",
"build-client": "webpack --mode production --config ./conf/webpack.client.config.js",
"build-clientlibs": "webpack --mode production --config ./conf/webpack.clientlibs.config.js",
"build-server": "tslint -p . && tsc",
"build-standalone": "webpack --mode production --config ./conf/webpack.client_standalone.config.js",
"start": "node ./dist/server/server.js",
"test": "",
"watch-client": "webpack --mode development --config ./conf/webpack.client.config.js --watch",
"watch-server": "cross-env NODE_ENV=development nodemon --watch 'src/**/*' -e ts,tsx --exec 'ts-node' src/server/server.tsx",
"client-stats": "webpack --config ./conf/webpack.client.config.js --profile --json > client-stats.json"
},
"dependencies": {
"apollo-server-koa": "1.3.3",
"koa": "2.5.0",
"koa-bodyparser": "4.2.0",
"koa-json-log": "2.0.2",
"koa-mount": "3.0.0",
"koa-router": "7.4.0",
"koa-static": "4.0.2",
"material-ui": "1.0.0-beta.41",
"@material-ui/icons": "1.0.0-beta.42",
"react": "16.2.0",
"react-dom": "16.2.0",
"react-router-dom": "4.2.2",
"rev-api": "0.17.0",
"rev-api-client": "0.17.0",
"rev-models": "0.17.0",
"rev-ui": "0.17.0",
"rev-ui-materialui": "0.17.0",
"source-map-support": "0.5.4"
},
"devDependencies": {
"@types/graphql": "0.12.7",
"@types/koa": "2.0.44",
"@types/koa-bodyparser": "4.2.0",
"@types/koa-mount": "3.0.1",
"@types/koa-router": "7.0.27",
"@types/koa-static": "4.0.0",
"@types/node": "9.6.0",
"@types/react": "16.1.0",
"@types/react-dom": "16.0.4",
"@types/react-router-dom": "4.2.6",
"cross-env": "5.1.4",
"nodemon": "1.17.2",
"ts-loader": "4.1.0",
"ts-node": "5.0.1",
"tslint": "5.9.1",
"typescript": "2.8.1",
"webpack": "4.3.0",
"webpack-cli": "2.0.13"
}
}
|
json
|
<gh_stars>10-100
{
"vorgangId": "78188",
"VORGANG": {
"WAHLPERIODE": "18",
"VORGANGSTYP": "Schriftliche Frage",
"TITEL": "Optionen zur Berechnung der Rückstände von Glyphosat und seiner Abbauprodukte auf pflanzlichen Lebensmitteln",
"AKTUELLER_STAND": "Beantwortet",
"SIGNATUR": "",
"GESTA_ORDNUNGSNUMMER": "",
"WICHTIGE_DRUCKSACHE": {
"DRS_HERAUSGEBER": "BT",
"DRS_NUMMER": "18/10313",
"DRS_TYP": "Schriftliche Fragen",
"DRS_LINK": "http://dipbt.bundestag.de:80/dip21/btd/18/103/1810313.pdf"
},
"EU_DOK_NR": "",
"SCHLAGWORT": {
"_fundstelle": "true",
"__cdata": "Pflanzenschutzmittel"
},
"ABSTRAKT": "Originaltext der Frage(n): \r\n \r\nWie ist zu verstehen, dass im öffentlich zugänglichen Protokoll der letzten Sitzung des Ständigen Ausschusses für Pflanzen, Tiere, Lebens- und Futtermittel (SCPAFF bzw. SCoPAFF; https://ec. europa.eu/food/sites/food/files/plant/docs/sc_phyto_20160922_ppr_sum.pdf) am 22./23. September 2016 von zwei \"Optionen\" die Rede ist, wie man die Rückstände des Pestizids Glyphosat und seiner Abbauprodukte auf pflanzlichen Lebensmitteln berechnen könnte, wobei \"Option 2\" vorsieht, bei nicht gentechnisch veränderten solchen Lebensmitteln die Abbauprodukte unberücksichtigt zu lassen, was eine geringere Gesamtglyphosatbelastung erwarten ließe, und welche \"Präferenz\" hat die Bundesregierung in der Debatte zum Ausdruck gebracht (\"Member States exchanged views and indicated their preference\")?"
},
"VORGANGSABLAUF": {
"VORGANGSPOSITION": {
"ZUORDNUNG": "BT",
"URHEBER": "Schriftliche Frage/Schriftliche Antwort ",
"FUNDSTELLE": "11.11.2016 - BT-Drucksache 18/10313, Nr. 45",
"FUNDSTELLE_LINK": "http://dipbt.bundestag.de:80/dip21/btd/18/103/1810313.pdf",
"PERSOENLICHER_URHEBER": [
{
"VORNAME": "Harald",
"NACHNAME": "Ebner",
"FUNKTION": "MdB",
"FRAKTION": "BÜNDNIS 90/DIE GRÜNEN",
"AKTIVITAETSART": "Frage"
},
{
"VORNAME": "Peter",
"NACHNAME": "Bleser",
"FUNKTION": "Parl. Staatssekr.",
"RESSORT": "Bundesministerium für Ernährung und Landwirtschaft",
"AKTIVITAETSART": "Antwort"
}
]
}
}
}
|
json
|
<filename>eigacom_review/2018/470.json
{
"id": 470,
"reviews": {
"eigacom": [
"前半は面白かったけど\n 前半はそれなりに緊迫感があってハラハラしたけど、後半になって主人公らしきものがあっという間に死んでしまうし、なんのインパクトも残らない映画だった。一体、何を訴えようとしたのかな?設定的には主人公(マッチョと大学院生)のとちらかが生き残って、それでジ・エンドでしょう。2人があんなに簡単に撃たれて死んだら、インパクトが残らないのは当然でしょう。この映画は監督の技量が疑われるものですね。 ",
"ラスト直前までめっちゃ面白かった。最後はクソである。\n 女子大生ルーシーが彼氏と一緒に地元に帰るとそこは突然の戦場。彼氏あっさり殺される。訳も分からず街をうろつき暴漢に襲われるもなんか頼りになりそうな元軍人が助けてくれる。以降ふたりは協力して行動を共にするが...。よくありがちな謎の軍に占領された街。ですがカメラワーク(主人公の足取りをグイグイ追っていく)のおかげでえらい面白かったです。主人公2人が駆け抜けていく背景で流れるように住人たちが殺されていくのが臨場感あって良い。住人たちもただオロオロするだけでなく、この機会に強奪殺戮したり兵士に反撃して殺す奴もいて見ていて飽きませんでした。ルーシーの妹と合流した辺りで突然の殺戮についての真相が判明しますがたいして面白い理由ではなかった。ここは謎のまま引っ張るかもっとぶっ飛んだ真相のが良かった気がする。これ以降、住人と兵士の攻防が激戦していきますが他人事かのようにあっさり流していくカメラワークと静かなBGMがめっちゃ面白い。いきなりのショッキングなイベントが起こりさらにショッキングが続き、えーこれからどうなるの?(盛り上がってきましたー!)な所で突如終わります。何も解決してないんですけどー!物語を最後まで描ききって欲しかったです。ルーシーはキャーキャー騒ぐ系の典型的ヒロインですが、目の前の悪事を見過ごせず敵を撃ち殺したり倒れてる住人を助けたりと好感の持てる主人公でした。ラストのあれもルーシーらしい×××。 ",
"評価が分かれるのも納得\n ものすごく評価の分かれる作品だと思いました。個人的には「ミスト」並みの胸糞の悪い映画だと思いましたが、作品としてはそれなりに楽しめました。あそこまで長回しの映像なかなかないのでよかったです。自分も同じような目にあったらルーシーのようにパニック起こすだろうなと感じました。 ",
"ダメだこりゃ。\n 色々突っ込みどころ満載なB級映画ですが物語中盤まはそこそこ良かった。しかし妹の所で事の原因が判明してしまいそこからの内容は最低。制作側の早く終わらせなくちゃ感が半端ない。黒人ギャングとその母親はどうなったの?神父の件は要らないよね?教会の血気盛んな30〜40人の人達っていた?テロが起きてるのに非武装地帯って何?なんで主要キャストはハンドガンしか持たないの?まぁ細かい指摘は置いといてとにかくラストは最悪。結局この世界はどうなってどうなったのが分からず終い。 ",
"地下鉄出たら戦場だった\n 地下鉄から降りたら、「人が居ない、訓練か?」で済まされる雰囲気からしても、どこか全く違う社会なのか?しかも、いきなりマッチョがピンチを救ってくれる。なんだろうこの映画は?冒頭から何にも知らないルーシーがバティスタに尋ねまくる(笑)「戦術的だ…」とやり口の説明に終始するバティースタ(笑)後々、取っ捕まえた反乱兵士からテキサス州からブッシュウィックを襲撃したが、抵抗が激しかった為、攻撃命令になったと言う。攻撃した後の事を考えてないのがちょっとバカらしい。抵抗が激しい理由も銃の保持率が高いとか(笑)道理で普段から犯罪が絶えない訳だ。トランプへの批判含みなのかと思ったが、単に争いの無意味さだけが際立っただけだった。出てくるキャストは皆、気が早く、中でもルーシーのアホさ加減には少し嫌気が(笑)撃たれたスチューブ(バティーストタ)は簡単に捨てていくし。ラストも救いはない。観る前この作品に期待したイメージとはかなり違ったので長い感想になった。しかし、戦争とはこんなもんであると言うメッセージとしてなら受け取れる。善人であれ悪人であれ、銃弾の前に立てば、相手を撃ち、相手に撃たれる。理由はなんであれ、下々に戦争の意義など関係ない。どこのどなたが戦争の意義を説いても、戦場と言うその場においては人殺しでしかない。弾の届かない所でモノを言う人は信用出来ない。 ",
"見るだけ時間の無駄\n 三流すぎる素人が作ってんだろうな色々むちゃくちゃ内容薄すぎ久々に腹立ったTSUTAYAでお薦めしてたけど、TSUTAYAってクソだね ",
"B級映画だけど普通に面白い\n 星🌟🌟🌟 あんまり評判は良くなかったけど観たい作品だったので見ました 自分はすごく面白かったです❗テンポよく観客を惹き付けてラストまで感情移入出来ました❗粗を探せばば主人公だけ殺さず捕まえようとするとか彼氏がまだ死んでないのに逃げてしまうとかいろいろありますがあまり気になりませんでした❗長回しもあまりブレてなくてかえって臨場感があって良かったです❗単館系の映画が好きな人にはオススメだと思います❗ ",
"突然何が起こったのかわからなくなる恐怖!\n 日常の生活が、ある日突然まったく違う世界に変わってしまう!そんな恐怖を描いた作品!日本でも大地震や水害で普段の生活が一瞬にして壊されることもあるし、ある日突然近隣諸国と戦争が勃発してしまうこともあり得なくはない!そんな時に自分はどうすればいいのか?まったく分からない問題にいきなり直面すると、人は狼狽えるしかない!そんな偽装体験を感じさせてくれる興奮に満ちた映画だ! ",
"突然何が起こったのかわからなくなる恐怖!\n 日常の生活が、ある日突然まったく違う世界に変わってしまう!そんな恐怖を描いた作品!日本でも大地震や水害で普段の生活が一瞬にして壊されることもあるし、ある日突然近隣諸国と戦争が勃発してしまうこともあり得なくはない!そんな時に自分はどうすればいいのか?まったく分からない問題にいきなり直面すると、人は狼狽えるしかない!そんな偽装体験を感じさせてくれる興奮に満ちた映画だ! ",
"3流映画だけど。\n 突然戦争が始まって、これからどうなるかと、楽しみにしてたけどさすが3流でした。最後は、え!となってしまったけど???ですね。続きありき? ",
"これ好きです\n 話はシンプルなんだけど映像に臨場感があって好きです。手持ちカメラで長回しが効果的なのかな。 ",
"誰にでも起こりうる恐怖。疑似体験出来る異色のパニック映画!!\n 【賛否両論チェック】賛:突如失われた日常の中、主人公達に近い目線で戦場を奔走していく展開に、言いようのない緊迫感が感じられる。否:主人公達が際どい所を助かっていくのは、お約束とはいえかなりのご都合主義。グロシーンもあり。 当たり前だと思っていた日常が一瞬で終わりを告げ、普通に暮らしていた街が戦場と化してしまったら。一見突拍子もないようで、実は今のご時世誰にでも起こりうるショッキングなストーリーに、まずは圧倒されてしまいます。 そしてやはり特筆すべきは、長回しを多用したその展開です。主人公達と近い目線になって、次に何が待ち受けているか分からない街中を駆け回る様は、観ていて思わず手に汗握ること請け合いです。 内容的にどうしても荒唐無稽感があり、好き嫌いも分かれそうな作品ではありますが、あまり観られない作風でもありますので、是非ご覧になってみて下さい。 ",
"もうちょい\n 119本目。公開されてから何度か足を運んだんだけど、ほぼ満席で諦めてたんだけど、今日やっと観れた。ほぼ1カメ風で撮ってて面白いなぁと思ったし、緊張感があってこれもまたいいなぁと思ったんだけど、慣れてくるのかダレてくるのかなぁ。政治的な事は、あんまり言ってなかったけど反トランプ映画? ",
"いきなり謎の攻撃を受ける状況とVRぽぃカメラカットは、自分もそこに...\n いきなり謎の攻撃を受ける状況とVRぽぃカメラカットは、自分もそこに居る感じが出て面白かった♪あとNY市民の武器所有率と抵抗力が高くて苦戦する敵て設定がスキ! ",
"惜しい!発想は好き\n 地下鉄を降りるとそこは、戦場だった。わ!面白くなるんかなって。なんかつまらん。やはり、ジョンカーペンターみたいな変人が撮らないと。ストリートファイヤーやニューヨーク1997みたいに華がないなあ。残念です。 ",
"スポンサーは全米ライフル協会?\n いきなり戦闘に巻き込まれるイントロはいいんだけど、その後は馬鹿のひとつ覚えの長回しの一本調子で退屈でした。スラム街の住人が不法所持の銃で軍隊に立ち向かうと言うのは、アメリカの銃社会を皮肉ってて面白いのに、さっぱり盛り上がらず。 ",
"ちょっとね?\n なんか馬鹿にされた気分。設定も脚本もかなり難あり。 ",
"評価は低いけどね\n まぁfpsを低予算でとってみたらこんな感じかなーとりあえずドンパチを楽しむ分にはいいと思う深みはないよ ",
"これがNY!?\n 地下鉄を降りて地上に出たら街中で紛争が起きていたという話。地上に出たらいきなり彼氏は爆死。訳もわからず逃げ惑っていたらマッチョな自称用務員と出会い助けられて行動を共にするというストーリー。設定は面白いしインパクトも充分なんだけど、主人公が自己中だし後先考えず能天気過ぎちゃって…妹はもっとだけど。そういえばなぜかワンシーンだけちょっと知的になったか。話は悪くないけれど何でこんな主人公?という人物を中心に話が展開していくからイマイチ没入出来ない。最後は嫌いじゃないけどもうワンシーン欲しい中途半端さだし。なんか色々と勿体なく感じた。 ",
"戦争版クローバーフィールド\n 地下鉄から地上に出たら始まっていた戦闘。そこから生き残ろうとする男女を描いたアクション映画。ワンカット風に見せる工夫をしていたのが印象的。後で知ったけど、10カットなんだね。急に事態に巻き込まれるし、ロングカットということもあって、クローバーフィールドを連想した。でも、全体的には退屈。戦闘シーンも地味だし、序盤は敵味方がわかりづらい。そして何より話の盛り上がりに欠ける。戦闘が起こっている原因もしっくりこない。残念な映画だ。 "
],
"filmarks": [],
"coco": []
}
}
|
json
|
St. Res, re. Delhi MAGHA 7, 1897 (SAKA) St. Res, re. Delhi Rent Control (Amdt.) Ordinance and Delhi Rent Control (Amdt.) Bill
sion on 9th September, 1975, that a person who owns his own house should vacate the Government commodation allotted to him before 31st December 1975, the Government considered that in the circumstances, the Act required to be amended urgently. The matter was discussed with the Members of Parliament from Delhi, who also stressed the urgency of the matter to provide relief to persons against whom eviction proceedings were pending in courts on this account.
As the Parliament was not in ses sion, the Delhi Rent Control Amendment Ordinance, 1975, was promulgated on the 1st December, 1975. The Bill seeks to replace the said Ordinance.
The provisions relating to protection conferred On heirs/successors have a retrospective application. The Bill has been already passed by the Rajya Sabha.
I will answer the points raised by the hon. Member; later. I coniment the Bill for consideration.
MR. CHAIRMAN: Motion moved:
"That the Bill further to amend the Delhi Rent Control Act, 1958, as passed by Rajya Sabha, be taken into consideration."
sions of this Bill. Before Shri Bhagat became a Minister, may be two years before his becoming a Minister, when he was a simple member of Parliament elected from Delhi, he had espoused the cause of the tenants. Many tenants of Delhi came to me at that time to put forth their grievances and I had sent a representation to the senior Minister Shri Raghu Kamalah to high light the difficulties faced by the tenants of Delhi. I remember, Sir, that I had also given a notice for raising a discussion under Rule 377 for putting forth the grievances of the tenants before this House. Mr. Bhagat had also at the same time given another notice under Rule 377 on the same subject. Hon. Minister of today Shri G. S. Dhillon the Speaker at that time. He ignored my notice for raising a discussed but had permitted Shri Bhagat to raise the discussion under that Rule. During the discussion Shri Bhagat had said and it is on record that the rights of the tenants should be protected. Rights of tenancy should he available to the successors of a deceased tenant. His successor should be given protection against eviction. This was pleaded by Shri Bhagat at that time and I remember that I had fully supported his views. But the irony is that after he became Minister Shri Bhagat forgot his earlier views and has broughtforth a legislation which is totally against the Interests of the tenants and is rather pro landlord. It actually stands to benefit the houseowners. On 1st December 1975 an Ordinance was pro. mulgated and now he has come before this House fo- enacting a legislation to replace that ordinance. This
Bill has been pas by Rajya Sabha. I will request Shri Bhagat to withdraw this Bill while there is still time and to bring a comprehensive Bill before this House through which the rights of the tenants can really be protected. Sir, when this Bill be*SHRI KRISHNA CHANDRA HALDAR (Ausgram): Mr. Chairman, Sır. I rise to oppose the Delhi Rent Control (Amendment) Bill, 1976 and extend my full support to the resolution of Shri Indrajit Gupta. Sir, it will be more appropriate if the title of the Bill under discussion was changed to Delhi Rent Increase and Tenant Eviction Bill, 1976. This is what I feel after going through the provi*The Original Speech was delivered in Bengali.
|
english
|
Saharanpur district’s sugarcane officer Krishna Mohan Mani Tripathi has stated that despite the efforts taken by the government the sugar mills from the district have been able to clear only 46% of the cane bills for the on-going season.
To prevent the surge in COVID-19 cases, Chief Minister Ashok Gehlot has imposed night curfew in nine cities of Rajasthan with effect from Saturday till April 30.
Seven years after Prime Minister Narendra Modi promised the farmers to revive the Motihari Sugar mill, there is no sign of the revival of the sugar mill. In a present situation, state Sugarcane Minister Pramod Kumar has asked the district administration to sell the sugar mill to pay off the pending cane dues of the farmers.
The World Health Organisation (WHO) has refuted reports claiming that it has issued a warning on 50,000 fatalities due to COVID-19 in India by April 15.
|
english
|
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="author" content="<NAME> 2500">
<title></title>
<link rel="stylesheet" type="text/css" href="../../../theme.css">
</head>
<body>
<div id="text" lang="pli">
<section class="sutta" id="ja168">
<article>
<div class="hgroup">
<p class="division"><a><i>Jātaka</i></a></p>
<p><a><i>Dukanipāta</i></a></p>
<p><a><i>Santhavavagga</i></a></p>
<h1><a><i>8. Sakuṇagghijātaka</i></a></h1>
</div>
<blockquote class="gatha">
<p><a data-ref="sc1, pts-vp-pli2.60, ms22J_395, msdiv35"><i>“Seno balasā patamāno,</i></a><br>
<a><i>lāpaṃ gocaraṭhāyinaṃ;</i></a><br>
<a><i>Sahasā ajjhappattova,</i></a><br>
<a><i>maraṇaṃ tenupāgami.</i></a></p>
<p><a data-ref="sc2, ms22J_396, msdiv36"><i>Sohaṃ nayena sampanno,</i></a><br>
<a><i>pettike gocare rato;</i></a><br>
<a><i>Apetasattu modāmi,</i></a><br>
<a><i>sampassaṃ atthamattano”ti.</i></a></p>
</blockquote>
<p class="endsutta"><a data-ref="sc3, ms22J_397"><i>Sakuṇagghijātakaṃ aṭṭhamaṃ.</i></a></p>
</article>
</section>
</div>
</body>
</html>
|
html
|
<filename>dependents/st.json
["atomify","blogh","blogh-template-base","broth","collective-oauth-server","colorant","dathub","deeploy","docpad-plugin-st","drudge","fine-uploader-server","firetruck","flatsheet","flipflops","gael","generator-esstatic-boilerplate","grassroots","grunt-autoshot","grunt-localscreenshots","grunt-screenshot","grunt-screenshotlocal","gulp-banners-screenshots","gulp-cjs","gulp-local-screenshots","gulp-local-screenshots-for-windows","haiku","harp-static","haste","haste-server","http-framework","hut-build","imhacker","ipfs-npm","itero","js-cache-factory","jsweb","metalsmith-dev","mocha-snapshot","modweb-server","moonbase","morkdown","mosca","mosca-bitfinder","mosca-lowfat","ng-stassets","nimoy","npm-www","organic-express-static","ponte","private-static-website","psrv-static","psvg","publicbits","quickie","reginabox","registry-mirror","reportr","rpl","rsas","rwdperf","serv-imgs","shipp-server","simple-npm-cache-proxy","skateboard","skippyjs","skira","skira-server","splink-smvc","splinky","stickshift","superfluous","synth","tool","tsd-web","unbroken-doc-wiki","vekter","video-clipper","w3","webgl-workshop","wigwam","wpt-runner","wup","zag"]
|
json
|
/* eslint-disable @typescript-eslint/no-empty-interface */
let supportsPassive = false;
try {
const opts = Object.defineProperty({}, 'passive', {
get: () => {
supportsPassive = true;
return true;
},
});
window.addEventListener('test', () => {}, opts);
// eslint-disable-next-line no-empty
} catch (e) {}
interface IEEvent {
attachEvent(event: string, listener: EventListener): boolean;
detachEvent(event: string, listener: EventListener): void;
}
declare global {
interface Element extends IEEvent {}
interface Window extends IEEvent {}
interface Document extends IEEvent {}
}
export default {
supportsPassiveEvents: supportsPassive,
on(
el: Window | Document | Element,
type: string,
callback: EventListener,
options: AddEventListenerOptions | boolean = { passive: false },
) {
if (el.addEventListener) {
el.addEventListener(type, callback, supportsPassive ? options : false);
} else {
el.attachEvent(`on${type}`, () => {
callback.call(el);
});
}
},
off(
el: Window | Document | Element,
type: string,
callback: EventListener,
options: AddEventListenerOptions | boolean = { passive: false },
) {
if (el.removeEventListener) {
el.removeEventListener(type, callback, supportsPassive ? options : false);
} else {
el.detachEvent(`on${type}`, callback);
}
},
once(
el: Window | Document | Element,
type: string,
callback: EventListener,
options: AddEventListenerOptions | boolean = { passive: false },
) {
const typeArray = type.split(' ');
const recursiveFunction = (e: Event) => {
if (e.target) {
e.target.removeEventListener(e.type, recursiveFunction, supportsPassive ? options : false);
}
return callback(e);
};
for (let i = typeArray.length - 1; i >= 0; i -= 1) {
this.on(el, typeArray[i], recursiveFunction);
}
},
};
|
typescript
|
<filename>src/org/springframework/util/ResourceUtils.java
/*
* Copyright 2002-2006 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.util;
import java.io.File;
import java.io.FileNotFoundException;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLDecoder;
/**
* Utility methods for resolving resource locations to files in the
* file system. Mainly for internal use within the framework.
*
* <p>Consider using Spring's Resource abstraction in the core package
* for handling all kinds of file resources in a uniform manner.
* ResourceLoader's <code>getLocation</code> can resolve any location to a
* Resource object, which in turn allows to get a <code>java.io.File</code>
* in the file system through its <code>getFile</code> method.
*
* <p>The main reason for these utility methods for resource location
* handling is to support Log4jConfigurer, which must be able to resolve
* resource locations <i>before the logging system has been initialized</i>.
* Spring' Resource abstraction in the core package, on the other hand,
* already expects the logging system to be available.
*
* @author <NAME>
* @since 1.1.5
* @see org.springframework.core.io.Resource
* @see org.springframework.core.io.ClassPathResource
* @see org.springframework.core.io.FileSystemResource
* @see org.springframework.core.io.UrlResource
* @see org.springframework.core.io.ResourceLoader
*/
public abstract class ResourceUtils {
/** Pseudo URL prefix for loading from the class path: "classpath:" */
public static final String CLASSPATH_URL_PREFIX = "classpath:";
/** URL prefix for loading from the file system: "file:" */
public static final String FILE_URL_PREFIX = "file:";
/** URL protocol for a file in the file system: "file" */
public static final String URL_PROTOCOL_FILE = "file";
/** URL protocol for an entry from a jar file: "jar" */
public static final String URL_PROTOCOL_JAR = "jar";
/** URL protocol for an entry from a zip file: "zip" */
public static final String URL_PROTOCOL_ZIP = "zip";
/** URL protocol for an entry from a WebSphere jar file: "wsjar" */
public static final String URL_PROTOCOL_WSJAR = "wsjar";
/** Separator between JAR URL and file path within the JAR */
public static final String JAR_URL_SEPARATOR = "!/";
/**
* Return whether the given resource location is a URL:
* either a special "classpath" pseudo URL or a standard URL.
* @see #CLASSPATH_URL_PREFIX
* @see java.net.URL
*/
public static boolean isUrl(String resourceLocation) {
if (resourceLocation == null) {
return false;
}
if (resourceLocation.startsWith(CLASSPATH_URL_PREFIX)) {
return true;
}
try {
new URL(resourceLocation);
return true;
}
catch (MalformedURLException ex) {
return false;
}
}
/**
* Resolve the given resource location to a <code>java.net.URL</code>.
* <p>Does not check whether the URL actually exists; simply returns
* the URL that the given location would correspond to.
* @param resourceLocation the resource location to resolve: either a
* "classpath:" pseudo URL, a "file:" URL, or a plain file path
* @return a corresponding URL object
* @throws FileNotFoundException if the resource cannot be resolved to a URL
*/
public static URL getURL(String resourceLocation) throws FileNotFoundException {
Assert.notNull(resourceLocation, "Resource location must not be null");
if (resourceLocation.startsWith(CLASSPATH_URL_PREFIX)) {
String path = resourceLocation.substring(CLASSPATH_URL_PREFIX.length());
URL url = ClassUtils.getDefaultClassLoader().getResource(path);
if (url == null) {
String description = "class path resource [" + path + "]";
throw new FileNotFoundException(
description + " cannot be resolved to URL because it does not exist");
}
return url;
}
try {
// try URL
return new URL(resourceLocation);
}
catch (MalformedURLException ex) {
// no URL -> treat as file path
try {
return new URL(FILE_URL_PREFIX + resourceLocation);
}
catch (MalformedURLException ex2) {
throw new FileNotFoundException("Resource location [" + resourceLocation +
"] is neither a URL not a well-formed file path");
}
}
}
/**
* Resolve the given resource location to a <code>java.io.File</code>,
* i.e. to a file in the file system.
* <p>Does not check whether the fil actually exists; simply returns
* the File that the given location would correspond to.
* @param resourceLocation the resource location to resolve: either a
* "classpath:" pseudo URL, a "file:" URL, or a plain file path
* @return a corresponding File object
* @throws FileNotFoundException if the resource cannot be resolved to
* a file in the file system
*/
public static File getFile(String resourceLocation) throws FileNotFoundException {
Assert.notNull(resourceLocation, "Resource location must not be null");
if (resourceLocation.startsWith(CLASSPATH_URL_PREFIX)) {
String path = resourceLocation.substring(CLASSPATH_URL_PREFIX.length());
String description = "class path resource [" + path + "]";
URL url = ClassUtils.getDefaultClassLoader().getResource(path);
if (url == null) {
throw new FileNotFoundException(
description + " cannot be resolved to absolute file path " +
"because it does not reside in the file system");
}
return getFile(url, description);
}
try {
// try URL
return getFile(new URL(resourceLocation));
}
catch (MalformedURLException ex) {
// no URL -> treat as file path
return new File(resourceLocation);
}
}
/**
* Resolve the given resource URL to a <code>java.io.File</code>,
* i.e. to a file in the file system.
* @param resourceUrl the resource URL to resolve
* @return a corresponding File object
* @throws FileNotFoundException if the URL cannot be resolved to
* a file in the file system
*/
public static File getFile(URL resourceUrl) throws FileNotFoundException {
return getFile(resourceUrl, "URL");
}
/**
* Resolve the given resource URL to a <code>java.io.File</code>,
* i.e. to a file in the file system.
* @param resourceUrl the resource URL to resolve
* @param description a description of the original resource that
* the URL was created for (for example, a class path location)
* @return a corresponding File object
* @throws FileNotFoundException if the URL cannot be resolved to
* a file in the file system
*/
public static File getFile(URL resourceUrl, String description) throws FileNotFoundException {
Assert.notNull(resourceUrl, "Resource URL must not be null");
if (!URL_PROTOCOL_FILE.equals(resourceUrl.getProtocol())) {
throw new FileNotFoundException(
description + " cannot be resolved to absolute file path " +
"because it does not reside in the file system: " + resourceUrl);
}
return new File(URLDecoder.decode(resourceUrl.getFile()));
}
/**
* Determine whether the given URL points to a resource in a jar file,
* that is, has protocol "jar", "zip" or "wsjar".
* <p>"zip" and "wsjar" are used by BEA WebLogic Server and IBM WebSphere,
* respectively, but can be treated like jar files.
* @param url the URL to check
*/
public static boolean isJarURL(URL url) {
String protocol = url.getProtocol();
return (URL_PROTOCOL_JAR.equals(protocol) ||
URL_PROTOCOL_ZIP.equals(protocol) ||
URL_PROTOCOL_WSJAR.equals(protocol));
}
/**
* Extract the URL for the actual jar file from the given URL
* (which may point to a resource in a jar file or to a jar file itself).
* @param jarUrl the original URL
* @return the URL for the actual jar file
* @throws MalformedURLException if no valid jar file URL could be extracted
*/
public static URL extractJarFileURL(URL jarUrl) throws MalformedURLException {
String urlFile = jarUrl.getFile();
int separatorIndex = urlFile.indexOf(JAR_URL_SEPARATOR);
if (separatorIndex != -1) {
return new URL(urlFile.substring(0, separatorIndex));
}
else {
return jarUrl;
}
}
}
|
java
|
<reponame>bayvistabc/www.bayvista.org
---
title: Dependence in the Life of a Follower
date: 2014-05-26 07:00:00
categories:
- Audio
episode:
media: 20140525-bayvista-audio.mp3
length: 12451329
duration: "42:58"
passage: John 15:1-17
speaker: <NAME>
service_date: May 25th, 2014
---
After a storm, you sometimes see branches on the ground. While they may still have leaves on them, those leaves will die, and the branch becomes little more than kindling. This is the picture that Jesus uses to illustrate our need to depend on Him not just for salvation, but for everything.
|
markdown
|
Known for his unique choices of roles in the recent past, Sikandar Kher has now taken things to another level. He will next be seen in a film based on surrogacy piloted by the debutant director-duo Siddharth Singh and Garima Wahal.
The duo has commercially and critically successful movies like Goliyon Ki Raasleela: Ram-leela and Toilet: Ek Prem Katha added to their credit as writers, leaving almost no scope for error when it comes to storytelling at its core.
Their new film deals with a topic which needs the expertise of talented and hard-working individuals, thus comes in Monika Panwar, or better known as ‘Guddi’ of Jamtara: Sabka Number Aayega fame.
She has been roped in to play the lead role alongside Sikandar Kher and if sources are to be believed, the two have already started prepping up for their respective roles as their characters and the film’s subject – both require a degree of research before the shoot commences.
On the other hand, Sikandar is also gearing up for his debut Hollywood project titled ‘Monkey Man’. For his role, the actor has moved from his lean physique to a bulkier self and says that he has worked really hard to alter his structure.
”Monkey Man is the biggest opportunity being thrown at me. It is one step ahead to reach out to a completely new audience. I wanted to give it my all. My part in the film requires a bulky figure and I have worked very hard to alter my structure to suit the role,” said Sikandar, son of veteran actor Anupam Kher and actor-politician wife Kirron Kher.
“An actor is only as good as his films. That’s it. Life’s thrown this huge opportunity towards me and I am working very hard to stay true to the character. My reel life characters have been very personal for me. I try to look like them, think like them and act like them. It won’t be wrong to say I like to get under the skin of every role that comes my way. Obviously the change is a gradual process but then I feel confident now, confident enough to tell you that my part in Monkey Man is who I am at the moment,” added Sikandar.
|
english
|
Delhi Capitals opening batter Shafali Verma credited skipper Meg Lanning for helping her overcome initial nervousness ahead of their first game in the Women's Premier League (WPL). The youngster underlined that they tried to keep it simple and play according to their strengths.
Verma and her opening partner sizzled in the Capitals' opening encounter against the Royal Challengers Bangalore (RCB) as their 162-run opening stand set the base for 223 in 20 overs. Verma notably top-scored with 84 off 45 balls, hitting 10 boundaries and four maximums.
Speaking at the post-match presentation, the 19-year-old revealed that her 'good friend' Lanning advised her to bat responsibly and it calmed her nerves.
"I was a bit nervous at the start," Verma stated. "The experience of playing with Lanning was good, she’s a good friend of mine and she told me to be responsible with the bat. We just wanted to play good shots and play according to our strength. You feel happy when you get to a landmark, yes, happy with the total."
After an opening stand of 162, Jemimah Rodrigues and Marizanne Kapp added 60 off 31 deliveries to provide the finishing touches. However, Tara Norris was comfortably the Player of the Match, returning with figures of 4-0-29-5, helping her side restrict Mumbai to 163/8.
Meg Lanning, who recently captained Australia to their sixth T20 World Cup crown, underlined that they had to bowl well as the wicket was good to bat on. The 30-year-old batter, who mustered 72, said:
"We felt like it was a good score but it was such a good wicket so we knew we had to bowl well. It’s great to begin the tournament with a win. We were thinking about our bowling but we weren’t too concerned about the batting. It was fun watching Shafali bat from the other end. We were smiling all the time."
The Royal Challengers were under pressure from the outset, needing to score over 10 an over. Skipper Smriti Mandhana, Ellyse Perry, Heather Knight, and Megan Schutt scored quick-fire 30s but fell short by 60 runs.
The Capitals will next face the UP Warriorz on Tuesday, March 7, while the Royal Challengers will lock horns with the Gujarat Giants on Wednesday, March 8.
|
english
|
Introduction Bitcoin Casinos are a relatively new phenomenon in the world of online gambling. These casinos offer players the chance to play games using digital currencies such as Bitcoin, Ethereum, and Litecoin. The rise of Bitcoin casinos has been fueled by the increasing popularity of cryptocurrencies as a means of payment, as well as the growing demand for online gambling services. In this report, we will explore the world of Bitcoin casinos and the potential impact they may have on the online gambling industry.
Background The first Bitcoin casino was launched in 2012, and since then, the number of Bitcoin casinos has grown significantly. Mirror News Today, there are hundreds of Bitcoin casinos, offering a wide variety of games, including slots, table games, and sports betting. One of the main advantages of Bitcoin casinos is that they offer players the ability to play anonymously, without the need to provide personal information or banking details.
Advantages of Bitcoin Casinos There are several advantages to playing at a Bitcoin casino. Firstly, Bitcoin transactions are fast and secure, with transactions typically taking just a few minutes to process. Secondly, Bitcoin casinos offer players a greater level of anonymity than traditional online casinos. This is because Bitcoin transactions do not require personal information to be shared, making it an ideal payment method for players who value their privacy.
Another advantage of Bitcoin casinos is that they often offer better odds and payouts than traditional online casinos. This is because Bitcoin casinos have lower overheads than traditional online casinos, and therefore can afford to offer players better payouts. Additionally, Bitcoin casinos often offer bonuses and promotions to attract new players, which can result in even greater payouts for players. Potential Impact on the Online Gambling Industry The rise of Bitcoin casinos has the potential to disrupt the online gambling industry.
Traditional online casinos rely on payment methods such as credit cards and bank transfers, which can be slow and costly. Bitcoin casinos, on the other hand, offer fast and secure transactions, with lower fees than traditional payment methods. Furthermore, Bitcoin casinos offer players a greater level of anonymity, which is becoming increasingly important in today’s digital age. As a result, traditional online casinos may need to adapt to keep up with the growing demand for Bitcoin casinos.
Conclusion In conclusion, Bitcoin casinos are a new and exciting development in the world of online gambling. They offer players a greater level of anonymity, faster and more secure transactions, and better odds and payouts than traditional online casinos. The rise of Bitcoin casinos has the potential to disrupt the online gambling industry, and traditional online casinos may need to adapt to keep up with the growing demand for Bitcoin casinos.
The post Apply Any Of these 5 Secret Strategies To enhance Mirror News Today first appeared on United Cannabis Seeds | Buy Marijuana Seeds.
|
english
|
Cricket unites, like little else, in our country. It brings people across the divides of age, beliefs, demographics, and even, political preferences, together, in celebration of sporting spirit and glory.
The idyllic, bayside hamlets of Alibag, became an arena of this celebration, when Samir A Nerurkar, Founder MD - Samira Habitats, supported Gram Panchayat : Gunjis- Boris (Alibag) in a gesture to commemorate one of the most triumphant chapters in cricketing history; the Champions of Champions trophy victory, steered by their own “Alibagkar”, Ravi Shastri.
The event marked the 37th year to the day, when Ravi Shastri was crowned the Champion of Champions, at the tournament.
The copper and steel, installation art, themed to represent Ravi Shashtri’s spin bowling and all rounder cricketing fame, has been created at the newly beautified Kankeshwar Junction, Alibag.
The behemoth installation was inaugurated by Hon. Minister of Urban Development & Public Works, Mr. Eknath Shinde, Hon. Minister of State, Ms. Aditi Tatkare, Ex Minister of State Mrs. Meenakshi Tai Patil and, the man of the moment, proud Alibagkar, Ravi Shastri.
The event, heralded by traditional dhol, taasha, lezim dancers and resplendent traditional gaiety, was attended by Mr. Mahendra Dalvi, MLA Alibag, Mr. Subhash Patil Ex MLA, Mr. Aswad & Chitra Patil, Kiran Patil IAS, Addl Sup. Of police Mr. Atul Zende and other govt & local dignitaries.
|
english
|
#include <hxalignmicrotubules/mtalign/CPDElasticAligner.h>
#include <stdio.h>
#include <iostream>
#include <gtest/internal/gtest.h>
#include <hxspatialgraph/internal/HxSpatialGraph.h>
#include <mclib/McMat3f.h>
namespace ma = mtalign;
static void checkSameCoord(const McDVector<double> coord1,
const McDVector<double> coord2) {
float eps = 2.e-2;
for (int i = 0; i < coord1.size(); i++) {
ASSERT_NEAR(coord1[i], coord2[i], eps);
}
}
static void testingPrint(QString msg) {
// Use the following line to temporarily enable printing.
// puts(qPrintable(msg));
}
static ma::Context makeTestingContext() {
ma::Context ctx;
ctx.print = &testingPrint;
return ctx;
}
static ma::Context testingContext = makeTestingContext();
namespace {
// `CPDElasticAlignerTesting` is used to run tests that access protected
// members.
class CPDElasticAlignerTesting : public mtalign::CPDElasticAligner {
public:
void givenPoints_runCDPNLFMAndCheckResult_E3MS() {
CPDElasticAlignerTesting& cpd = *this;
cpd.params.beta = 1;
cpd.params.lambda = 1;
cpd.params.w = 0.1;
McDMatrix<double> W;
McDMatrix<double> G;
McDMatrix<double> P;
cpd.align(G, W);
McDMatrix<double> shifted;
cpd.shiftYs(cpd.ys, G, W, shifted);
checkSameCoord(cpd.xs.getRowVector(0), shifted.getRowVector(0));
checkSameCoord(cpd.xs.getRowVector(1), shifted.getRowVector(1));
checkSameCoord(cpd.xs.getRowVector(2), shifted.getRowVector(2));
}
void givenAssymPoints43_checkRuns_E3MS() {
CPDElasticAlignerTesting& cpd = *this;
cpd.setContext(&testingContext);
McDArray<McVec3f> xsarray, ysarray;
xsarray.append(McVec3f(1, 1, 0));
xsarray.append(McVec3f(2, 2, 0));
xsarray.append(McVec3f(2, 1, 0));
xsarray.append(McVec3f(2, 1.1, 0));
ysarray.append(McVec3f(2, 2, 0));
ysarray.append(McVec3f(3, 3, 0));
ysarray.append(McVec3f(3, 2, 0));
ma::FacingPointSets points;
points.ref.positions = xsarray;
points.trans.positions = ysarray;
cpd.setPoints(points);
cpd.params.beta = 1;
cpd.params.lambda = 1;
cpd.params.w = 0.1;
McDMatrix<double> W;
McDMatrix<double> G;
McDMatrix<double> P;
cpd.align(G, W);
double res[9] = { 1, 0.32047626849284516,
0.56610623428191031, 0.32047626849284516,
1, 0.56610623428191031,
0.56610623428191031, 0.56610623428191031,
1 };
McDMatrix<double> erg(3, 3, res);
for (int i = 0; i < 3; i++)
for (int j = 0; j < 3; j++)
EXPECT_NEAR(erg[i][j], G[i][j], 1.e-5);
McDMatrix<double> shifted;
cpd.shiftYs(cpd.ys, G, W, shifted);
checkSameCoord(cpd.xs.getRowVector(0), shifted.getRowVector(0));
checkSameCoord(cpd.xs.getRowVector(1), shifted.getRowVector(1));
shifted[2][1] -= 0.05;
checkSameCoord(cpd.xs.getRowVector(2), shifted.getRowVector(2));
}
void givenAssymPoints34_checkRuns_E3MS() {
CPDElasticAlignerTesting& cpd = *this;
cpd.setContext(&testingContext);
McDArray<McVec3f> xsarray, ysarray;
cpd.xs.resize(3, 3);
xsarray.append(McVec3f(1, 1, 0));
xsarray.append(McVec3f(2, 2, 0));
xsarray.append(McVec3f(2, 1, 0));
cpd.xs.resize(4, 3);
ysarray.append(McVec3f(2, 2, 0));
ysarray.append(McVec3f(3, 3, 0));
ysarray.append(McVec3f(3, 2, 0));
ysarray.append(McVec3f(2, 1.1, 0));
ma::FacingPointSets points;
points.ref.positions = xsarray;
points.trans.positions = ysarray;
cpd.setPoints(points);
cpd.params.beta = 1;
cpd.params.lambda = 1;
cpd.params.w = 0.1;
McDMatrix<double> W;
McDMatrix<double> G;
McDMatrix<double> P;
cpd.align(G, W);
double res[9] = { 1, 0.32047626849284516,
0.56610623428191031, 0.32047626849284516,
1, 0.56610623428191031,
0.56610623428191031, 0.56610623428191031,
1 };
McDMatrix<double> erg(3, 3, res);
for (int i = 0; i < 3; i++)
for (int j = 0; j < 3; j++)
EXPECT_NEAR(erg[i][j], G[i][j], 1.e-5);
McDMatrix<double> shifted;
cpd.shiftYs(cpd.ys, G, W, shifted);
checkSameCoord(cpd.xs.getRowVector(0), shifted.getRowVector(0));
checkSameCoord(cpd.xs.getRowVector(1), shifted.getRowVector(1));
checkSameCoord(cpd.xs.getRowVector(2), shifted.getRowVector(2));
}
void givenPoints_testG_GUI_E3MS() {
CPDElasticAlignerTesting& cpd = *this;
cpd.setContext(&testingContext);
McDArray<McVec3f> xsarray, ysarray;
cpd.xs.resize(3, 2);
xsarray.append(McVec3f(1, 1, 0));
xsarray.append(McVec3f(2, 2, 0));
xsarray.append(McVec3f(2, 1, 0));
cpd.xs.resize(3, 2);
ysarray.append(McVec3f(2, 2, 0));
ysarray.append(McVec3f(3, 3, 0));
ysarray.append(McVec3f(3, 2, 0));
ma::FacingPointSets points;
points.ref.positions = xsarray;
points.trans.positions = ysarray;
cpd.setPoints(points);
cpd.params.beta = 1;
cpd.params.lambda = 1;
cpd.params.w = 0.1;
McDMatrix<double> W;
McDMatrix<double> G;
McDMatrix<double> P;
cpd.align(G, W);
double res[9] = { 1, 0.34686364525689239,
0.58895130975055354, 0.34686364525689239,
1, 0.58895130975055354,
0.58895130975055354, 0.58895130975055354,
1 };
McDMatrix<double> erg(3, 3, res);
for (int i = 0; i < 3; i++)
for (int j = 0; j < 3; j++)
EXPECT_NEAR(erg[i][j], G[i][j], 1.e-5);
}
void givenPoints_testComputeP_GUI_E3MS() {
CPDElasticAlignerTesting& cpd = *this;
cpd.setContext(&testingContext);
McDArray<McVec3f> xsarray, ysarray;
cpd.xs.resize(3, 3);
xsarray.append(McVec3f(1, 1, 0));
xsarray.append(McVec3f(2, 2, 0));
xsarray.append(McVec3f(2, 1, 0));
cpd.xs.resize(3, 3);
ysarray.append(McVec3f(2, 2, 0));
ysarray.append(McVec3f(3, 3, 0));
ysarray.append(McVec3f(3, 2, 0));
cpd.convertCoordsToMatrix(xsarray, cpd.xs);
cpd.convertCoordsToMatrix(ysarray, cpd.ys);
cpd.params.beta = 1;
cpd.params.lambda = 1;
cpd.params.w = 0.1;
McDMatrix<double> W;
McDMatrix<double> G;
McDMatrix<double> P;
double initSigmaSquare =
(1.0 / (2 * 3 * 3)) * cpd.sumSquaredDistances(cpd.xs, cpd.ys);
double LL;
cpd.computeP(cpd.xs, cpd.ys, initSigmaSquare, 0.1, cpd.params.w, P, LL);
double res[9] = { 0.286168, 0.310922, 0.295566, 0.0358612, 0.155592,
0.0740157, 0.101303, 0.219948, 0.209085 };
McDMatrix<double> erg(3, 3, res);
for (int i = 0; i < 3; i++)
for (int j = 0; j < 3; j++)
EXPECT_NEAR(erg[i][j], P[i][j], 1.e-5);
}
void givenPoints_runCDPAndCheckResult_GUI_E3MS() {
CPDElasticAlignerTesting& cpd = *this;
cpd.setContext(&testingContext);
McDArray<McVec3f> xsarray, ysarray;
cpd.xs.resize(3, 3);
xsarray.append(McVec3f(1, 1, 0));
xsarray.append(McVec3f(2, 2, 0));
xsarray.append(McVec3f(2, 1, 0));
cpd.xs.resize(3, 3);
ysarray.append(McVec3f(2, 2, 0));
ysarray.append(McVec3f(3, 3, 0));
ysarray.append(McVec3f(3, 2, 0));
ma::FacingPointSets points;
points.ref.positions = xsarray;
points.trans.positions = ysarray;
cpd.setPoints(points);
cpd.params.beta = 1;
cpd.params.lambda = 1;
cpd.params.w = 0.1;
McDMatrix<double> W;
McDMatrix<double> G;
McDMatrix<double> P;
cpd.align(G, W);
McDMatrix<double> shifted;
cpd.shiftYs(cpd.ys, G, W, shifted);
checkSameCoord(cpd.xs.getRowVector(0), shifted.getRowVector(0));
checkSameCoord(cpd.xs.getRowVector(1), shifted.getRowVector(1));
checkSameCoord(cpd.xs.getRowVector(2), shifted.getRowVector(2));
}
void givenPoints_runCDP_GUI_E3MS() {
CPDElasticAlignerTesting& cpd = *this;
cpd.setContext(&testingContext);
McDArray<McVec3f> xsarray, ysarray;
cpd.xs.resize(3, 3);
xsarray.append(McVec3f(1, 1, 0));
xsarray.append(McVec3f(2, 2, 0));
xsarray.append(McVec3f(2, 1, 0));
cpd.xs.resize(3, 3);
ysarray.append(McVec3f(1, 1, 0));
ysarray.append(McVec3f(2, 2, 0));
ysarray.append(McVec3f(2, 1, 0));
ma::FacingPointSets points;
points.ref.positions = xsarray;
points.trans.positions = ysarray;
cpd.setPoints(points);
cpd.params.beta = 1;
cpd.params.lambda = 1;
cpd.params.w = 0.1;
McDMatrix<double> W;
McDMatrix<double> G;
cpd.align(G, W);
McDMatrix<double> shifted;
cpd.shiftYs(cpd.ys, G, W, shifted);
checkSameCoord(cpd.xs.getRowVector(0), shifted.getRowVector(0));
checkSameCoord(cpd.xs.getRowVector(1), shifted.getRowVector(1));
checkSameCoord(cpd.xs.getRowVector(2), shifted.getRowVector(2));
}
};
} // namespace
static CPDElasticAlignerTesting makeCPDdataNLVMRotated() {
CPDElasticAlignerTesting cpd;
cpd.setContext(&testingContext);
cpd.params.useDirections = true;
// create data
McDArray<McVec3f> xc, xd, yc, yd;
McDArray<McVec3f> tempD;
McDArray<double> xz, yz;
xc.append(McVec3f(0, 0, 0));
xc.append(McVec3f(0, 1, 0));
xc.append(McVec3f(1, 0, 0));
xc.append(McVec3f(10, 10, 0));
tempD.append(McVec3f(1, 2, 3));
tempD.append(McVec3f(0, 10, 0));
tempD.append(McVec3f(4, 0, 0));
tempD.append(McVec3f(4, 20, 10));
xc.append(McVec3f(-100, -100, 0));
tempD.append(McVec3f(4, 0, 10));
McMat3f R;
R.setValue(cos(0.3), -sin(0.3), 0, sin(0.3), cos(0.3), 0, 0, 0, 1);
for (int i = 0; i < tempD.size(); i++) {
tempD[i].normalize();
McVec3f transCoord, rotCoord, rotDir;
transCoord = McVec3f(1.0, 1.0, 0.0) + xc[i];
R.multMatrixVec(transCoord, rotCoord);
R.multMatrixVec(tempD[i], rotDir);
xd.append(tempD[i]);
yd.append(rotDir);
yc.append(rotCoord);
}
yd.append(yd[2]);
yc.append(yc[2] + McVec3f(0.01, 0.05, 0.0));
ma::FacingPointSets points;
points.ref.positions = xc;
points.trans.positions = yc;
points.ref.directions = xd;
points.trans.directions = yd;
cpd.setPoints(points);
return cpd;
}
TEST(mtalign__CPDElasticAlignerTest,
givenPoints_runCDPNLFMAndCheckResult_E3MS) {
CPDElasticAlignerTesting cpd = makeCPDdataNLVMRotated();
cpd.givenPoints_runCDPNLFMAndCheckResult_E3MS();
}
TEST(mtalign__CPDElasticAlignerTest, givenAssymPoints43_checkRuns_E3MS) {
CPDElasticAlignerTesting cpd;
cpd.givenAssymPoints43_checkRuns_E3MS();
}
TEST(mtalign__CPDElasticAlignerTest, givenAssymPoints34_checkRuns_E3MS) {
CPDElasticAlignerTesting cpd;
cpd.givenAssymPoints34_checkRuns_E3MS();
}
TEST(mtalign__CPDElasticAlignerTest, givenPoints_testG_GUI_E3MS) {
CPDElasticAlignerTesting cpd;
cpd.givenPoints_testG_GUI_E3MS();
}
TEST(mtalign__CPDElasticAlignerTest, givenPoints_testComputeP_GUI_E3MS) {
CPDElasticAlignerTesting cpd;
cpd.givenPoints_testComputeP_GUI_E3MS();
}
TEST(mtalign__CPDElasticAlignerTest,
givenPoints_runCDPAndCheckResult_GUI_E3MS) {
CPDElasticAlignerTesting cpd;
cpd.givenPoints_runCDPAndCheckResult_GUI_E3MS();
}
TEST(mtalign__CPDElasticAlignerTest, givenPoints_runCDP_GUI_E3MS) {
CPDElasticAlignerTesting cpd;
cpd.givenPoints_runCDP_GUI_E3MS();
}
|
cpp
|
I am very grateful and happy for all the help I was provided with. It was on the suggestion of my ISMP mentor, and one of many impulsive decisions to seek counselling. My problem was a very common one at IITB- to manage various things. Initially, I did not believe my mentor when she said this might improve my productivity.
But, as I started taking the sessions, I was surprised by the amount of change they were bringing. It felt like a lot of clouds were being cleared, and I could work with focus for once. Surprisingly, my counsellor Ms. Anisha Mathews did not tell me anything new. Yet, they felt like new things, because I never looked at those problems and methods actively. A simple example would be to not overestimate what I can do in a day and getting my priorities straight. It took so many iterations, to just understand and implement this one thing.
Above all else, I enjoyed our sessions and always looked forward to the next one. I believe she modified sessions in a way to let me sort things out according to myself. Initially, it was a lot of conversation about problems, then it turned more into ranting and Q&A. It was after months when I finally felt that I am able to answer most of my questions and handle my life better. I learned how to balance things myself. However, I am still in the process of learning and always will be. It is a part of growing up.
Going through life has become a lot easier because I committed to doing it and felt accountable to my counsellor. Thank you for guiding me and being the sweet counsellor having my back.
|
english
|
<reponame>JefferyLukas/SRIs
{"sp.es5.js":"<KEY>,"sp.es5.umd.bundle.js":"<KEY>,"sp.es5.umd.bundle.min.js":"<KEY>,"sp.es5.umd.js":"<KEY>,"sp.es5.umd.min.js":"<KEY>,"sp.js":"<KEY>}
|
json
|
#pragma once
// Various clips for the different icons that are found in resources_icons.
GLOBAL constexpr quad CLIP_NONE = { 0, 0, 0, 0 };
GLOBAL constexpr quad CLIP_BULLET = { 96, 108, 24, 12 };
GLOBAL constexpr quad CLIP_BRUSH = { 0, 0, 24, 24 };
GLOBAL constexpr quad CLIP_FILL = { 24, 0, 24, 24 };
GLOBAL constexpr quad CLIP_SELECT = { 48, 0, 24, 24 };
GLOBAL constexpr quad CLIP_GRID = { 72, 0, 24, 24 };
GLOBAL constexpr quad CLIP_BOUNDS = { 0, 24, 24, 24 };
GLOBAL constexpr quad CLIP_LAYERS = { 24, 24, 24, 24 };
GLOBAL constexpr quad CLIP_CAMERA = { 48, 24, 24, 24 };
GLOBAL constexpr quad CLIP_FLIP_H = { 0, 48, 24, 24 };
GLOBAL constexpr quad CLIP_FLIP_V = { 24, 48, 24, 24 };
GLOBAL constexpr quad CLIP_MIRROR_H = { 48, 48, 24, 24 };
GLOBAL constexpr quad CLIP_MIRROR_V = { 72, 48, 24, 24 };
GLOBAL constexpr quad CLIP_CUT = { 0, 72, 24, 24 };
GLOBAL constexpr quad CLIP_COPY = { 24, 72, 24, 24 };
GLOBAL constexpr quad CLIP_DESELECT = { 48, 72, 24, 24 };
GLOBAL constexpr quad CLIP_CLEAR = { 72, 72, 24, 24 };
GLOBAL constexpr quad CLIP_ARROW_UP = { 48, 96, 12, 12 };
GLOBAL constexpr quad CLIP_ARROW_RIGHT = { 60, 96, 12, 12 };
GLOBAL constexpr quad CLIP_ARROW_LEFT = { 48, 108, 12, 12 };
GLOBAL constexpr quad CLIP_ARROW_DOWN = { 60, 108, 12, 12 };
GLOBAL constexpr quad CLIP_CROSS = { 72, 96, 24, 24 };
GLOBAL constexpr quad CLIP_EYE = { 96, 96, 24, 12 };
GLOBAL constexpr quad CLIP_RESIZE_N = { 24, 96, 12, 12 };
GLOBAL constexpr quad CLIP_RESIZE_E = { 36, 96, 12, 12 };
GLOBAL constexpr quad CLIP_RESIZE_S = { 36, 108, 12, 12 };
GLOBAL constexpr quad CLIP_RESIZE_W = { 24, 108, 12, 12 };
GLOBAL constexpr quad CLIP_RESIZE_NE = { 12, 96, 12, 12 };
GLOBAL constexpr quad CLIP_RESIZE_SE = { 12, 108, 12, 12 };
GLOBAL constexpr quad CLIP_RESIZE_SW = { 0, 108, 12, 12 };
GLOBAL constexpr quad CLIP_RESIZE_NW = { 0, 96, 12, 12 };
GLOBAL constexpr quad CLIP_RESIZE = { 72, 24, 24, 24 };
GLOBAL constexpr quad CLIP_PACK = { 96, 24, 24, 24 };
GLOBAL constexpr quad CLIP_UNPACK = { 96, 48, 24, 24 };
GLOBAL constexpr quad CLIP_GUIDES = { 96, 0, 24, 24 };
GLOBAL constexpr quad CLIP_ENTITY = { 96, 72, 24, 24 };
GLOBAL constexpr quad CLIP_NEW = { 120, 0, 24, 24 };
GLOBAL constexpr quad CLIP_LOAD = { 144, 0, 24, 24 };
GLOBAL constexpr quad CLIP_SAVE = { 168, 0, 24, 24 };
GLOBAL constexpr quad CLIP_SAVE_AS = { 192, 0, 24, 24 };
GLOBAL constexpr quad CLIP_UNDO = { 216, 0, 24, 24 };
GLOBAL constexpr quad CLIP_REDO = { 120, 24, 24, 24 };
GLOBAL constexpr quad CLIP_ZOOM_OUT = { 144, 24, 24, 24 };
GLOBAL constexpr quad CLIP_ZOOM_IN = { 168, 24, 24, 24 };
GLOBAL constexpr quad CLIP_RUN = { 192, 24, 24, 24 };
GLOBAL constexpr quad CLIP_SETTINGS = { 216, 24, 24, 24 };
GLOBAL constexpr quad CLIP_ABOUT = { 120, 48, 24, 24 };
GLOBAL constexpr quad CLIP_HELP = { 144, 48, 24, 24 };
GLOBAL constexpr quad CLIP_UPDATE = { 168, 48, 24, 24 };
GLOBAL constexpr quad CLIP_BUG = { 192, 48, 24, 24 };
GLOBAL constexpr quad CLIP_BACKUPS = { 144, 0, 24, 24 };
// Globally accessible and generic resources that can be used by the editor.
// We also have a global copy of the no tile/spawn image texture so that we
// can use it in the level editor in case a level is loaded that has IDs we
// no longer recognise -- just so that the user doesn't think they're empty.
GLOBAL Texture resource_icons;
GLOBAL Font resource_font_regular_sans;
GLOBAL Font resource_font_regular_dyslexic;
GLOBAL Font resource_font_regular_libmono;
GLOBAL Font resource_font_mono_dyslexic;
GLOBAL Font resource_font_bold_sans;
GLOBAL Font resource_font_bold_dyslexic;
GLOBAL Texture resource_checker_14;
GLOBAL Texture resource_checker_16;
GLOBAL Texture resource_checker_20;
GLOBAL Texture_Atlas resource_large;
GLOBAL Texture_Atlas resource_small;
FILDEF bool init_resource_manager ();
FILDEF void get_resource_location ();
FILDEF bool load_texture_resource (std::string file_name, Texture& tex, Texture_Wrap wrap = TEXTURE_WRAP_CLAMP_TO_EDGE);
FILDEF bool load_atlas_resource (std::string file_name, Texture_Atlas& atlas);
FILDEF bool load_font_resource (std::string file_name, Font& fnt, std::vector<int> pt = { DEFAULT_FONT_GLYPH_POINT_SIZE }, float csz = DEFAULT_FONT_GLYPH_CACHE_SIZE);
FILDEF Shader load_shader_resource (std::string file_name);
FILDEF std::vector<u8> load_binary_resource (std::string file_name);
FILDEF SDL_Surface* load_surface_resource (std::string file_name);
FILDEF std::string load_string_resource (std::string file_name);
FILDEF bool load_editor_resources ();
FILDEF void free_editor_resources ();
FILDEF std::string build_resource_string (std::string str);
FILDEF void update_editor_font ();
FILDEF bool is_editor_font_opensans ();
FILDEF Font& get_editor_regular_font ();
FILDEF Font& get_editor_bold_font ();
FILDEF Texture_Atlas& get_editor_atlas_large ();
FILDEF Texture_Atlas& get_editor_atlas_small ();
|
cpp
|
In the game last night, sent into bat, RCB rode on De Villiers’ 83 off 46 balls with the help of six boundaries and two sixes and Kohli’s 80 off 63 deliveries, during which he struck seven fours and two hits over the fence, to post 185 for five. Later, RCB bowlers rose to the occasion and managed to restrict Pune to 172 for eight. Both Kohli and De Villiers are reckoned as one of the best batsmen in contemporary cricket and has often praised on each other for their supreme batsmanship. Kohli while speaking in the post-match presentation at the Maharashtra Cricket Association Stadium in Pune once again spoke highly about De Villiers and addressed him as the best in the world.
This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.
If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.
|
english
|
<filename>src/main/java/com/julioherrera/school/core/bs/dao/CourseInstructorRepository.java
package com.julioherrera.school.core.bs.dao;
import com.julioherrera.school.core.eis.bo.CourseInstructor;
import com.julioherrera.school.core.eis.bo.CourseInstructorId;
import org.springframework.data.repository.PagingAndSortingRepository;
public interface CourseInstructorRepository extends PagingAndSortingRepository<CourseInstructor, CourseInstructorId> {
}
|
java
|
<reponame>XinyiJackieGe/Proj1
* {
box-sizing: border-box;
}
/* background color */
body {
background-color: aliceblue;
font-family: 'Courier New', Courier, monospace;
}
/*center headings*/
h1, h2 {
text-align: center;
}
/* formats timeline*/
.timeline {
margin: 0 auto;
position: relative;
max-width: 1200px;
}
/* timeliine formatting cont*/
.timeline::after {
content: '';
position: absolute;
width: 6px;
background-color: blue;
top: 0;
bottom: 0;
left: 50%;
margin-left: -3px;
}
/* Box around the text */
.contain {
padding: 10px 40px;
position: relative;
background-color: inherit;
width: 50%;
}
/* creates circles on timeline */
.contain::after {
content: '';
position: absolute;
width: 25px;
height: 25px;
right: -17px;
background-color: white;
border: 4px solid blue;
top: 15px;
border-radius: 50%;
z-index: 1;
}
/* Place content to the left or the right */
.left {
left: 0;
}
.right {
left: 50%;
}
/* Fix the circle for containers on the right side */
.right::after {
left: -16px;
}
/* The actual content */
.content {
padding: 20px 30px;
background-color: white;
border: 4px solid blue;
position: relative;
border-radius: 6px;
}
/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {
/* Place the timelime to the left */
.timeline::after {
left: 31px;
}
/* Full-width containers */
.contain {
width: 100%;
padding-left: 70px;
padding-right: 25px;
}
/* Make sure all circles are at the same spot */
.left::after, .right::after {
left: 0px;
}
/* Make all right boxes behave like the left ones */
.right {
left: 15%;
}
}
/* configure footer */
footer {
padding-top: 15px;
text-align: center;
background-color: aliceblue;
color: blue;
text-shadow: 10px 10px 5px blue;
font-size: 15px;
display: inline-block;
width: 100%;
}
|
css
|
<gh_stars>0
/**
*
* := created by: Shuza
* := create date: 10/10/17
* := (C) CopyRight NybSys Ltd
* := Fun : Coffee : Code
*
**/
import BaseModel from "../../core/abstractClass/baseModel";
export default class BusinessTypeModel extends BaseModel {
businessTypeID: number;
value: string;
constructor() {
super();
}
}
|
typescript
|
---
layout: layouts/contact.njk
title: Contact
permalink: /contact/index.html
---
Wanna get in touch? Just fill out the form below!
|
markdown
|
#!/usr/bin/env python
# File name: chop_chain_joiner.py
# Author: <NAME>
# Date created: 5/24/2017
# Date last modified: 5/24/2017
# Python Version: 3.6
"""
Description:
This script 'fills in' missing residues in PDB files and creates a fixed PDB file.
In order to fill in the gaps, Modeller is used to create a homology model with the
original PDB file serving as a template and the full sequence serving as the target
sequence to model.
The process of doing this is as follows:
1. Call make_seq.py to extract the sequence from the original PDB file with missing residues.
2. Call make_alignment.py to create an alignment file, alignment.ali, between the original PDB structure
with missing residues and the full fasta sequence (usually available on PDB website).
3. Call make_model.py to create the actual homology model.
Please see the headers of each of these scripts for more specific information.
Usage: python chain_joiner.py -p pdbfile.pdb -f fastafile.fasta [options]
For example, to make a loop model of PDB code 1qg8, I would call it as:
'python chain_joiner.py -p 1qg8.pdb -f 1qg8_full_seq.fasta -a'
Input Arguments:
[optional]
-a, --automodel
The simplest method for simple comparitive modeling. Will not give
great results but suggested when many chain breaks are present. [default: True]
-f, --fixed_automodel
Builds an automodel and keeps the non-missing residues fixed,
whereas they can move in the other methods. [default: False]
-l, --loopmodel
Builds a model by refining the loop with the missing residues.
Suggested when have one small chain break in the PDB. [default: False]
Output: A set of PDB files (number depends on the chosen method)
"""
import argparse
import sys
import os
# import modules
# from chain_joiner import make_seq
# from chain_joiner import make_alignment
# from chain_joiner import make_model
from chain_joiner import make_seq
from chain_joiner import make_alignment
from chain_joiner import make_model
def main():
parser = argparse.ArgumentParser(
prog='make_model.py',
formatter_class=argparse.RawDescriptionHelpFormatter,
description=
"""
This script 'fills in' missing residues in PDB files and creates a fixed PDB file.
In order to fill in the gaps, Modeller is used to create a homology model with the
original PDB file serving as a template and the full sequence serving as the target
sequence to model.
The process of doing this is as follows:
1. Call make_seq.py to extract the sequence from
the original PDB file with missing residues.
2. Call make_alignment.py to create an alignment file, alignment.ali,
between the original PDB structure with missing residues and the full
fasta sequence (usually available on PDB website).
3. Call make_model.py to create the actual homology model.
Please see the headers of each of these scripts for more specific information.
Usage: python chain_joiner.py -p pdbfile.pdb -f fastafile.fasta [options]
For example, to make a loop model of PDB code 1qg8, I would call it as:
'python chain_joiner.py -p 1qg8.pdb -f 1qg8_full_seq.fasta -a'
@author: <NAME>, <EMAIL>
<NAME>en lab, Yale University
REQUIREMENTS:
Preferably Anaconda python 3 with following modules:
argparse
modeller
"""
)
parser.add_argument(
"-p", "--pdb", help="path of the pdb file with .pdb file descriptor")
parser.add_argument(
"-f", "--fasta", help="path of the fasta file with .fasta file descriptor")
parser.add_argument(
"-a", "--automodel", help="the simplest method for simple comparitive modeling", action="store_true")
parser.add_argument(
"-fm", "--fixed_automodel", help="builds an automodel and keeps the non-missing residues fixed", action="store_true")
parser.add_argument(
"-l", "--loopmodel", help="builds a model by refining the loop with the missing residues", action="store_true")
args = parser.parse_args()
# join the chains
join_chains(args.pdb, args.fasta, args.automodel, args.fixed_automodel, args.loopmodel)
def join_chains(pdb_file, fasta_file, a, fm, l):
# Get the PDB id from the file
pdb_id = os.path.splitext(os.path.basename(pdb_file))[0]
# get the sequence from the PDB file:
make_seq.get_sequence(pdb_file)
# make the alignment file:
make_alignment.align(pdb_file, pdb_id + ".seq", fasta_file)
# make the model
make_model.model(pdb_file, a, fm, l)
# make a folder for the output
dir_name = './' + pdb_id +'_output/'
os.makedirs(dir_name)
# get a list of all output files in the working directory
output_files = [filename for filename in os.listdir('.') if filename.startswith(pdb_id)]
# remove the folder name
if (pdb_id + '_output') in output_files:
output_files.remove(pdb_id + '_output')
# mv these files to the output folder
for file in output_files:
try:
os.system('mv ' + file + ' ./' + pdb_id + '_output/')
except:
pass
if __name__ == "__main__":
main()
|
python
|
<gh_stars>10-100
package statik
//This just for fixing the error in importing empty github.com/Dipper-Labs/Dipper-Protocol/client/lcd/statik
|
go
|
<filename>projects/rxjs-uploader-demo/src/app/examples/uploader-simple-example.component.ts
import { AfterViewInit, Component } from '@angular/core';
import { Uploader } from 'rxjs-uploader';
@Component({
selector: 'uploader-simple-example',
template: `
<button (click)="uploader?.selectFiles()">Upload</button>
<div class="mt-4">
<div class="row">
<div id="files" class="col-12"></div>
</div>
<div class="mt-1 d-flex align-items-center row">
<div class="col-9">
<div id="progress" class="progress">
<div class="progress-bar progress-bar-striped"
role="progressbar"
aria-valuenow="0"
aria-valuemin="0"
aria-valuemax="100">
</div>
</div>
</div>
<div class="col-3">
<button class="btn-danger" onclick="rxjsUploader.clear()">Reset</button>
</div>
</div>
</div>
`
})
export class UploaderSimpleExampleComponent implements AfterViewInit {
public uploader: Uploader;
// Since this all depends on DOM elements, we have to wait until the view initializes.
public ngAfterViewInit(): void {
// Make our DOM queries.
const progressBar = document.querySelector('.progress-bar') as HTMLElement;
const files = document.getElementById('files');
// Create the uploader and bind it to a global so we can access it from our HTML.
this.uploader = window['rxjsUploader'] = new Uploader();
// Buld the uploader and create the stream.
const fileUploads$ = this.uploader
.setRequestUrl('https://www.mocky.io/v2/5185415ba171ea3a00704eed')
.setAllFilesUploadedCallback(
(fileUploads) => console.log(`Uploaded ${fileUploads.length} files!`)
)
.streamFileUploads();
// Render information about the file uploads in the UI.
fileUploads$.subscribe((fileUploads) => {
let visualizerHtml = ``;
const averageProgress = fileUploads.reduce((acc, curr, index) => {
return (acc + curr.progressPercentage) / (index + 1);
}, 0);
fileUploads.forEach((fileUpload) => {
visualizerHtml += `<div class="file-upload"><h4>${fileUpload.name}</h4></div>`;
});
files.innerHTML = visualizerHtml;
progressBar.style.width = `${averageProgress}%`;
progressBar.setAttribute('aria-valuenow', `${averageProgress}`);
});
}
}
|
typescript
|
'use strict';
const Promise = require('bluebird');
const _ = require('lodash');
const getClient = require('../../utils/config').getClient;
module.exports = function module(context) {
if (_.includes(context.sysconfig.terafoundation.logging, 'elasticsearch')) {
const client = getClient(context, context.sysconfig.teraslice.state, 'elasticsearch');
const template = require('./backends/mappings/logs.json');
const elasticsearch = require('elasticsearch_api')(client, context.logger, null);
const clusterName = context.sysconfig.teraslice.name;
const name = `${clusterName}_logs_template`;
// setting template name to reflect current teraslice instance name to help prevent
// conflicts with differing versions of teraslice with same elastic db
template.template = `${clusterName}${template.template}`;
return elasticsearch.putTemplate(template, name);
}
return Promise.resolve(true);
};
|
javascript
|
[{"namaKab":"PEMALANG","originalFilename":"47355.jpg","namaPartai":"PARTAI GERAKAN INDONESIA RAYA","id":105496,"noUrut":1,"nama":"SYARKAWI","stringJenisKelamin":"Laki-Laki"},{"namaKab":"PEMALANG","originalFilename":"SRI HARTATI.JPG","namaPartai":"PARTAI GERAKAN INDONESIA RAYA","id":105324,"noUrut":2,"nama":"<NAME>","stringJenisKelamin":"Perempuan"},{"namaKab":"PEMALANG","originalFilename":"43756.jpg","namaPartai":"PARTAI GERAKAN INDONESIA RAYA","id":105406,"noUrut":3,"nama":"<NAME>, SE","stringJenisKelamin":"Perempuan"},{"namaKab":"PEMALANG","originalFilename":"29237a - Copy.jpg","namaPartai":"PARTAI GERAKAN INDONESIA RAYA","id":129945,"noUrut":4,"nama":"<NAME>, ST","stringJenisKelamin":"Laki-Laki"},{"namaKab":"PEMALANG","originalFilename":"DSC_7304 copy.jpg","namaPartai":"PARTAI GERAKAN INDONESIA RAYA","id":105169,"noUrut":5,"nama":"<NAME>","stringJenisKelamin":"Perempuan"},{"namaKab":"PEMALANG","originalFilename":"TAUFAN.jpg","namaPartai":"PARTAI GERAKAN INDONESIA RAYA","id":184224,"noUrut":6,"nama":"<NAME>","stringJenisKelamin":"Laki-Laki"}]
|
json
|
Tina Turner captured the hearts of millions with her powerful voice and electrifying performances. As news spread that she passed away at the age 83, people all over the world paid tribute to the talented singer.
The legendary singer, who was known as the "Queen of Rock 'n' Roll," died peacefully at her home near Zurich in Switzerland after a long illness. Her publicist, Bernard Doherty, confirmed in a statement that the funeral will be private and attended only by close friends and family.
How did Tina Turner die?
Singer Tina Turner, who has been living in Switzerland since 1994 with her husband, German actor and music producer Erwin Bach, was granted Swiss citizenship in 2013.
She had been battling serious health problems for several years. In 2016, she was diagnosed with intestinal cancer, which required surgery and chemotherapy; the following year, she had a kidney transplant.
Turner was a dynamic and influential performer. After walking away from the spotlight and her volatile husband, she reinvented herself as a solo artist and sold more than 100 million records, winning eight Grammy awards. Her costumes and dance moves were imitated by performers across generations.
In the 1960s, Turner was a pioneer of rock'n'roll. She influenced Mick Jagger's stage persona and became one of the defining pop icons of the 1980s with her album Private Dancer.
Apart from several memoirs, Tina Turner's life has been the subject of a biopic, a Broadway musical and an acclaimed documentary film, Tina. Buddhism and chanting were important influences on Turner in the 1980s.
Although best known for her music, she also starred in several films and published two memoirs. She released her final solo album in 2000 and announced her retirement a year later. She returned to performing in 2008 for a Grammy awards performance with Beyoncé and for a final tour celebrating 50 years of her career.
Tina Turner was an icon who helped shape the music industry and inspired countless singers throughout her life. She was a true pioneer, who overcame tremendous odds to live the life she wanted.
Turner’s music has had an immeasurable impact on the world. It shone bright on her, and even now that she’s gone, her legacy will continue to shine.
|
english
|
{"SolverName":"EAGO","ObjBound":1.1587302195556402,"SolveTime":0.125,"PrimalStatus":"FEASIBLE_POINT","InstanceName":"32_sigmoid_5_1_5","SolveTimeRaw":0.125,"CompletedSolveTime":0.125,"ObjValue":1.1588485915750222,"Error":false,"TerminationStatus":"OPTIMAL"}
|
json
|
The Player Draft for the 2019 edition of the Pakistan Super League (PSL) will take place on November 20 in Islamabad. The Pakistan Cricket Board (PCB) has released a list of players under various categories who will be available for selection.
The board has also restricted each franchise to retain up to a maximum of ten players from their previous squad and have a deadline of November 13 for submitting the same. The remaining players will go back in the draft pool.
Every squad can comprise a maximum of 16 players. Based on the rankings from last season, this is the order in which the teams make their first picks - Lahore Qalandars, TBD, Quetta Gladiators, Karachi Kings, Peshawar Zalmi and Islamabad United.
Here is a complete list of players available in the 2019 PSL draft.
Follow Sportskeeda for all the latest Pakistan Super league schedule, points table, stats, and previews.
|
english
|
<reponame>aritchie/jobs<gh_stars>10-100
## Setup - Android
1.Install From [](https://www.nuget.org/packages/Plugin.Jobs/)
2. In Android, you must create an Application class similar to below
```csharp
sing System;
using Android.App;
using Android.Runtime;
using Plugin.Jobs;
namespace Sample.Droid
{
[Application]
public class MainApplication : Application
{
static IContainer container;
public MainApplication(IntPtr handle, JniHandleOwnership transfer) : base(handle, transfer)
{
}
public override void OnCreate()
{
CrossJobs.Init(this);
base.OnCreate();
}
}
}
```
3.Add the following to your AndroidManifest.xml
```xml
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.BATTERY_STATS" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
```
__OPTIONAL__
On Android, you'll have to set the CrossJob.ResolveJob = (jobInfo) => return IJob in the MainApplication
### NOTES
* If Doze is enabled, the reschedule period is not guaranteed to be an average of 10 mins. It may be much longer.
* IF YOU ARE NOT SCHEDULING YOUR JOBS ON EVERY START - If you application force quits, Android will not restart the job scheduler. For this, there is CrossJobs.EnsureJobServiceStarted
|
markdown
|
/*
*
* Copyright (C) 1998-2010, OFFIS e.V.
* All rights reserved. See COPYRIGHT file for details.
*
* This software and supporting documentation were developed by
*
* OFFIS e.V.
* R&D Division Health
* Escherweg 2
* D-26121 Oldenburg, Germany
*
*
* Module: dcmpstat
*
* Author: <NAME>
*
* Purpose:
* classes: DVPSStoredPrint_PList
*
*/
#include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */
#include "dcmtk/dcmpstat/dvpsspl.h"
#include "dcmtk/dcmpstat/dvpssp.h" /* for DVPSStoredPrint */
#include "dcmtk/dcmpstat/dvpsib.h" /* for DVPSImageBoxContent */
#include "dcmtk/dcmpstat/dviface.h"
#include "dcmtk/dcmpstat/dvpsdef.h"
#include "dcmtk/dcmpstat/dvpsov.h" /* for DVPSOverlay, needed by MSVC5 with STL */
#include "dcmtk/dcmpstat/dvpsgl.h" /* for DVPSGraphicLayer, needed by MSVC5 with STL */
#include "dcmtk/dcmpstat/dvpsrs.h" /* for DVPSReferencedSeries, needed by MSVC5 with STL */
#include "dcmtk/dcmpstat/dvpsal.h" /* for DVPSOverlayCurveActivationLayer, needed by MSVC5 with STL */
#include "dcmtk/dcmpstat/dvpsga.h" /* for DVPSGraphicAnnotation, needed by MSVC5 with STL */
#include "dcmtk/dcmpstat/dvpscu.h" /* for DVPSCurve, needed by MSVC5 with STL */
#include "dcmtk/dcmpstat/dvpsvl.h" /* for DVPSVOILUT, needed by MSVC5 with STL */
#include "dcmtk/dcmpstat/dvpsvw.h" /* for DVPSVOIWindow, needed by MSVC5 with STL */
#include "dcmtk/dcmpstat/dvpsda.h" /* for DVPSDisplayedArea, needed by MSVC5 with STL */
#include "dcmtk/dcmpstat/dvpssv.h" /* for DVPSSoftcopyVOI, needed by MSVC5 with STL */
#include "dcmtk/dcmpstat/dvpsab.h" /* for DVPSAnnotationContent, needed by MSVC5 with STL */
#include "dcmtk/dcmpstat/dvpstx.h" /* for DVPSTextObject, needed by MSVC5 with STL */
#include "dcmtk/dcmpstat/dvpsgr.h" /* for DVPSGraphicObject, needed by MSVC5 with STL */
#include "dcmtk/dcmpstat/dvpsri.h" /* for DVPSReferencedImage, needed by MSVC5 with STL */
DVPSStoredPrint_PList::DVPSStoredPrint_PList()
: list_()
{
}
DVPSStoredPrint_PList::DVPSStoredPrint_PList(const DVPSStoredPrint_PList &arg)
: list_()
{
OFListConstIterator(DVPSStoredPrint *) first = arg.list_.begin();
OFListConstIterator(DVPSStoredPrint *) last = arg.list_.end();
while (first != last)
{
list_.push_back((*first)->clone());
++first;
}
}
DVPSStoredPrint_PList::~DVPSStoredPrint_PList()
{
clear();
}
void DVPSStoredPrint_PList::clear()
{
OFListIterator(DVPSStoredPrint *) first = list_.begin();
OFListIterator(DVPSStoredPrint *) last = list_.end();
while (first != last)
{
delete (*first);
first = list_.erase(first);
}
}
void DVPSStoredPrint_PList::printSCPBasicFilmBoxSet(
DVConfiguration& cfg,
const char *cfgname,
T_DIMSE_Message& rq,
DcmDataset *rqDataset,
T_DIMSE_Message& rsp,
DcmDataset *& rspDataset,
OFBool presentationLUTnegotiated,
DVPSPresentationLUT_PList& globalPresentationLUTList)
{
OFListIterator(DVPSStoredPrint *) first = list_.begin();
OFListIterator(DVPSStoredPrint *) last = list_.end();
OFBool found = OFFalse;
while ((first != last) && (!found))
{
if ((*first)->isFilmBoxInstance(rq.msg.NSetRQ.RequestedSOPInstanceUID)) found = OFTrue;
else ++first;
}
if (found)
{
DVPSStoredPrint *newSP = new DVPSStoredPrint(*(*first));
if (newSP)
{
if (newSP->printSCPSet(cfg, cfgname, rqDataset, rsp, rspDataset, presentationLUTnegotiated, globalPresentationLUTList))
{
// N-SET successful, replace entry in list
delete (*first);
list_.erase(first);
list_.push_back(newSP);
} else delete newSP;
} else {
DCMPSTAT_WARN("cannot update film box, out of memory.");
rsp.msg.NSetRSP.DimseStatus = STATUS_N_ProcessingFailure;
}
} else {
// film box does not exist or wrong instance UID
DCMPSTAT_WARN("cannot update film box, object not found.");
rsp.msg.NSetRSP.DimseStatus = STATUS_N_NoSuchObjectInstance;
}
}
void DVPSStoredPrint_PList::printSCPBasicGrayscaleImageBoxSet(
DVInterface& cfg,
const char *cfgname,
T_DIMSE_Message& rq,
DcmDataset *rqDataset,
T_DIMSE_Message& rsp,
DcmDataset *& rspDataset,
OFBool presentationLUTnegotiated)
{
OFListIterator(DVPSStoredPrint *) first = list_.begin();
OFListIterator(DVPSStoredPrint *) last = list_.end();
DVPSStoredPrint *sp = NULL;
DVPSImageBoxContent *newib = NULL;
while ((first != last) && (sp == NULL))
{
newib = (*first)->duplicateImageBox(rq.msg.NSetRQ.RequestedSOPInstanceUID);
if (newib) sp = *first; else ++first;
}
if (newib && sp)
{
DcmFileFormat imageFile;
DcmDataset *imageDataset = imageFile.getDataset();
if (newib->printSCPSet(cfg, cfgname, rqDataset, rsp, rspDataset, *imageDataset,
sp->getReferencedPresentationLUTAlignment(), presentationLUTnegotiated))
{
if (EC_Normal == sp->writeHardcopyImageAttributes(*imageDataset))
{
// check for image position clash
if (sp->haveImagePositionClash(rq.msg.NSetRQ.RequestedSOPInstanceUID, newib->getImageBoxPosition()))
{
delete rspDataset;
rspDataset = NULL;
DCMPSTAT_WARN("cannot update basic grayscale image box, image position collision.");
rsp.msg.NSetRSP.DimseStatus = STATUS_N_InvalidAttributeValue;
} else {
if (EC_Normal == cfg.saveFileFormatToDB(imageFile))
{
sp->replaceImageBox(newib);
} else {
delete rspDataset;
rspDataset = NULL;
rsp.msg.NSetRSP.DimseStatus = STATUS_N_ProcessingFailure;
}
}
} else {
delete rspDataset;
rspDataset = NULL;
DCMPSTAT_WARN("cannot update basic grayscale image box, out of memory.");
rsp.msg.NSetRSP.DimseStatus = STATUS_N_ProcessingFailure;
}
}
} else {
// image box does not exist or wrong instance UID
DCMPSTAT_WARN("cannot update basic grayscale image box, object not found.");
rsp.msg.NSetRSP.DimseStatus = STATUS_N_NoSuchObjectInstance;
}
}
void DVPSStoredPrint_PList::printSCPBasicFilmBoxAction(
DVInterface& cfg,
const char *cfgname,
T_DIMSE_Message& rq,
T_DIMSE_Message& rsp,
DVPSPresentationLUT_PList& globalPresentationLUTList)
{
OFListIterator(DVPSStoredPrint *) first = list_.begin();
OFListIterator(DVPSStoredPrint *) last = list_.end();
OFBool found = OFFalse;
while ((first != last) && (!found))
{
if ((*first)->isFilmBoxInstance(rq.msg.NActionRQ.RequestedSOPInstanceUID)) found = OFTrue;
else ++first;
}
if (found)
{
DcmFileFormat spFile;
DcmDataset *spDataset = spFile.getDataset();
DVPSStoredPrint *sp = *first;
OFBool writeRequestedImageSize = cfg.getTargetPrinterSupportsRequestedImageSize(cfgname);
sp->updatePresentationLUTList(globalPresentationLUTList);
sp->clearInstanceUID();
if ((*first)->emptyPageWarning())
{
DCMPSTAT_INFO("empty page, will not be stored in database");
if (STATUS_Success == rsp.msg.NActionRSP.DimseStatus) rsp.msg.NActionRSP.DimseStatus = STATUS_N_PRINT_BFB_Warn_EmptyPage;
} else {
if (EC_Normal == sp->write(*spDataset, writeRequestedImageSize, OFFalse, OFFalse, OFTrue))
{
if (EC_Normal == cfg.saveFileFormatToDB(spFile))
{
// N-ACTION successful.
} else {
rsp.msg.NActionRSP.DimseStatus = STATUS_N_ProcessingFailure;
}
} else {
DCMPSTAT_WARN("cannot print basic film box, out of memory.");
rsp.msg.NActionRSP.DimseStatus = STATUS_N_ProcessingFailure;
}
}
} else {
// film box does not exist or wrong instance UID
DCMPSTAT_WARN("cannot print film box, object not found.");
rsp.msg.NActionRSP.DimseStatus = STATUS_N_NoSuchObjectInstance;
}
}
void DVPSStoredPrint_PList::printSCPBasicFilmSessionAction(
DVInterface& cfg,
const char *cfgname,
T_DIMSE_Message& rsp,
DVPSPresentationLUT_PList& globalPresentationLUTList)
{
if (size() > 0)
{
OFBool writeRequestedImageSize = cfg.getTargetPrinterSupportsRequestedImageSize(cfgname);
OFListIterator(DVPSStoredPrint *) first = list_.begin();
OFListIterator(DVPSStoredPrint *) last = list_.end();
while (first != last)
{
DcmFileFormat spFile;
DcmDataset *spDataset = spFile.getDataset();
(*first)->updatePresentationLUTList(globalPresentationLUTList);
(*first)->clearInstanceUID();
if ((*first)->emptyPageWarning())
{
DCMPSTAT_INFO("empty page, will not be stored in database");
if (STATUS_Success == rsp.msg.NActionRSP.DimseStatus) rsp.msg.NActionRSP.DimseStatus = STATUS_N_PRINT_BFS_Warn_EmptyPage;
} else {
if (EC_Normal == (*first)->write(*spDataset, writeRequestedImageSize, OFFalse, OFFalse, OFTrue))
{
if (EC_Normal == cfg.saveFileFormatToDB(spFile))
{
// success for this film box
} else {
rsp.msg.NActionRSP.DimseStatus = STATUS_N_ProcessingFailure;
}
} else {
DCMPSTAT_WARN("cannot print basic film session, out of memory.");
rsp.msg.NActionRSP.DimseStatus = STATUS_N_ProcessingFailure;
}
}
++first;
}
} else {
// no film boxes to print
DCMPSTAT_WARN("cannot print film session, no film box.");
rsp.msg.NActionRSP.DimseStatus = STATUS_N_PRINT_BFS_Fail_NoFilmBox;
}
}
void DVPSStoredPrint_PList::printSCPBasicFilmBoxDelete(T_DIMSE_Message& rq, T_DIMSE_Message& rsp)
{
OFListIterator(DVPSStoredPrint *) first = list_.begin();
OFListIterator(DVPSStoredPrint *) last = list_.end();
OFBool found = OFFalse;
while ((first != last) && (!found))
{
if ((*first)->isFilmBoxInstance(rq.msg.NDeleteRQ.RequestedSOPInstanceUID)) found = OFTrue;
else ++first;
}
if (found)
{
delete (*first);
list_.erase(first);
} else {
// film box does not exist or wrong instance UID
DCMPSTAT_WARN("cannot delete film box with instance UID '" << rq.msg.NDeleteRQ.RequestedSOPInstanceUID << "': object does not exist.");
rsp.msg.NDeleteRSP.DimseStatus = STATUS_N_NoSuchObjectInstance;
}
}
OFBool DVPSStoredPrint_PList::haveFilmBoxInstance(const char *uid)
{
if (uid==NULL) return OFFalse;
OFListIterator(DVPSStoredPrint *) first = list_.begin();
OFListIterator(DVPSStoredPrint *) last = list_.end();
while (first != last)
{
if ((*first)->isFilmBoxInstance(uid)) return OFTrue;
else ++first;
}
return OFFalse;
}
OFBool DVPSStoredPrint_PList::usesPresentationLUT(const char *uid)
{
if (uid==NULL) return OFFalse;
OFListIterator(DVPSStoredPrint *) first = list_.begin();
OFListIterator(DVPSStoredPrint *) last = list_.end();
while (first != last)
{
if ((*first)->usesPresentationLUT(uid)) return OFTrue;
else ++first;
}
return OFFalse;
}
OFBool DVPSStoredPrint_PList::matchesPresentationLUT(DVPSPrintPresentationLUTAlignment align) const
{
OFBool result = OFTrue;
OFListConstIterator(DVPSStoredPrint *) first = list_.begin();
OFListConstIterator(DVPSStoredPrint *) last = list_.end();
while (first != last)
{
result = result && (*first)->matchesPresentationLUT(align);
++first;
}
return result;
}
void DVPSStoredPrint_PList::overridePresentationLUTSettings(
DcmUnsignedShort& newIllumination,
DcmUnsignedShort& newReflectedAmbientLight,
DcmUniqueIdentifier& newReferencedPLUT,
DVPSPrintPresentationLUTAlignment newAlignment)
{
OFListIterator(DVPSStoredPrint *) first = list_.begin();
OFListIterator(DVPSStoredPrint *) last = list_.end();
while (first != last)
{
(*first)->overridePresentationLUTSettings(newIllumination, newReflectedAmbientLight, newReferencedPLUT, newAlignment);
++first;
}
}
|
cpp
|
<filename>src/lib.rs
// https://old.reddit.com/r/dailyprogrammer/comments/jfcuz5/20201021_challenge_386_intermediate_partition/
// Partition Counts
pub mod bigint;
pub mod multithreaded;
pub mod sync;
pub mod util;
use bigint::BigInt;
use multithreaded::*;
use sync::*;
use util::*;
pub fn calc_partition_count(n: usize) -> BigInt {
let index_subtractions = generate_index_subtractions(n);
let mut index_subtraction_take_count = 2;
let mut partition_count_table = vec![BigInt::from(1), BigInt::from(1)];
for index in 2..=n {
if index_subtractions
.get(index_subtraction_take_count)
.map(|x| x.0)
== Some(index)
{
index_subtraction_take_count += 1;
}
let index_sub_slice = &index_subtractions[0..index_subtraction_take_count];
let mut partial_sum = BigInt::from(0);
for (sub_amt, add_or_sub) in index_sub_slice.iter().rev() {
let int = &partition_count_table[index - sub_amt];
match add_or_sub {
AddOrSub::Add => partial_sum += int,
AddOrSub::Sub => partial_sum -= int,
}
}
partition_count_table.push(partial_sum);
}
partition_count_table[n].clone()
}
pub fn calc_partition_count_parallel(n: usize, num_threads: usize) -> BigInt {
let index_subtractions = Arc::new(generate_index_subtractions(n));
let partition_count_table = Arc::new(ParallelTable::new(n));
let mut sender_pool: Vec<mpsc::Sender<ParallelTableMutIndexTicket>> = vec![];
let mut thread_handles = vec![];
for _ in 0..num_threads {
let (sender, receiver) = mpsc::channel();
sender_pool.push(sender);
let partition_count_table = partition_count_table.clone();
let index_subtractions = index_subtractions.clone();
let handle = thread::spawn(move || {
while let Ok(ticket) = receiver.recv() {
let mut index_subtraction_take_count = 2;
for (i, (sub_amt, _)) in index_subtractions.iter().enumerate().skip(2) {
if ticket.get_index() >= *sub_amt {
index_subtraction_take_count = i + 1;
} else {
break;
}
}
let index_sub_slice = &index_subtractions[0..index_subtraction_take_count];
let part_valid = partition_count_table.get_all_valid();
let mut partial_sum = BigInt::from(0);
for (sub_amount, add_or_sub) in index_sub_slice.iter().rev() {
let get_index = ticket.get_index() - sub_amount;
let int: &BigInt = match part_valid.get(get_index) {
Some(int) => int.as_ref().unwrap(),
None => loop {
match partition_count_table.get(get_index) {
Some(int) => break int,
None => hint::spin_loop(),
}
},
};
match add_or_sub {
AddOrSub::Add => partial_sum += int,
AddOrSub::Sub => partial_sum -= int,
}
}
ticket.set(partial_sum);
}
});
thread_handles.push(handle);
}
let table_mut_tickets = generate_tickets(partition_count_table.clone()).unwrap();
for (ticket, sender) in table_mut_tickets
.into_iter()
.zip(sender_pool.iter().cycle())
{
sender.send(ticket).expect("Thread ded :(");
}
// we must drop the sender pool or else none of the threads will ever finish
// as they will be blocked waiting for another message from the mpsc
drop(sender_pool);
for handle in thread_handles {
handle.join().expect("thread died unexpectedly :(");
}
partition_count_table
.get(n)
.as_ref()
.expect("didn't calculate up to n somehow")
.clone()
}
// #[cfg(test)]
// mod tests {
// const ANSWER_666: &str = "11956824258286445517629485";
// use crate::BigInt;
// use crate::{calc_partition_count, calc_partition_count_parallel};
// #[test]
// #[ignore]
// fn serial_correct() {
// let true_answer: BigInt = ANSWER_666.parse().unwrap();
// let serial_answer = calc_partition_count(666);
// assert_eq!(serial_answer, true_answer);
// }
// // #[test]
// // fn parallel_correct() {
// // let true_answer: BigInt = ANSWER_666.parse().unwrap();
// // let parallel_answer = calc_partition_count_parallel(666, 12);
// // assert_eq!(parallel_answer, true_answer);
// // }
// #[test]
// #[cfg(loom)]
// fn loom_parallel_correct() {
// loom::model(|| {
// let true_answer: BigInt = ANSWER_666.parse().unwrap();
// let parallel_answer = calc_partition_count_parallel(666, 12);
// assert_eq!(parallel_answer, true_answer);
// });
// }
// }
|
rust
|
'use strict'
var ethJSUtil = require('ethereumjs-util')
var BN = ethJSUtil.BN
module.exports = {
toInt: (h) => {
if (h.indexOf && h.indexOf('0x') === 0) {
return (new BN(h.replace('0x', ''), 16)).toString(10)
} else if (h.constructor && h.constructor.name === 'BigNumber' || BN.isBN(h)) {
return h.toString(10)
}
return h
},
stringify: stringify
}
function stringify(v) {
try {
if (v instanceof Array) {
var ret = []
for (var k in v) {
ret.push(stringify(v[k]))
}
return ret
} else if (BN.isBN(v) || (v.constructor && v.constructor.name === 'BigNumber')) {
return v.toString(10)
} else if (v._isBuffer) {
return ethJSUtil.bufferToHex(v)
} else if (typeof v === 'object') {
var retObject = {}
for (var i in v) {
retObject[i] = stringify(v[i])
}
return retObject
} else {
return v
}
} catch (e) {
console.log(e)
return v
}
}
|
javascript
|
The Common Law Admission Test (CLAT) 2019 online registration will begin from January 13. According to the details available on the official website, clatconsortiumofnlu. ac. in, the online enrollment for CLAT 2019 will close on March 31, 2019. The application has to be submitted online only from clatconsortiumofnlu. ac. in website, says the website. The CLAT 2019 exam will be held on Sunday, May 12, 2019 (3:00 PM to 5:00 PM). According to a new development the CLAT 2019 exam will be held in offline or pen and paper mode.
The candidates are first required to register themselves at the CLAT-2019 website by using personal mobile number and e-mail Id. Upon registration, an OTP will be sent to the given mobile number for validation. Once your mobile number is validated, you can login using your mobile number and the password you provided at the time of registration.
The information once furnished by the candidate with regard to the category to which the candidate belongs, the preference for the NLUs and the Centre of the Entrance Test submitted by the candidates through online application mode shall be final and no change whatsoever, shall be allowed thereafter under any circumstances.
The candidates are required to read the instructions carefully and furnish correct and authentic information.
In case the information furnished at any stage of the application, exam and admission process is found to be false or incorrect or if there is any discrepancy or mismatch between the information furnished by the candidate at the relevant section and the certificates/documents produced at the time of admission, the provisional admission offered to the candidate shall stand cancelled with immediate effect without assigning any further reason and the candidate shall stand disqualified from being considered for further admission to the NLUs by the CLAT Consortium Office.
The candidate can fill preference order for all 21 NLUs at the time of online application itself.
|
english
|
INTERACTION BETWEEN TWIN DEFICITS:
AbstractThe study investigates the interaction between twin deficits in the context of India during the macroeconomic reform period from 1994: II to 2001: I. Using the vector autoregression (VAR) model, it shows that there exists one-way interaction between the two deficits. The increase in fiscal deficit reduces the current account deficit, which contradicts most of the studies carried out in the context of other countries. This indicates a need to reinvestigate the determinants which could explain such inverse relationship.
|
english
|
<reponame>siagholami/aws-documentation<gh_stars>1-10
# SVL\_S3LIST<a name="r_SVL_S3LIST"></a>
Use the SVL\_S3LIST view to get details about Amazon Redshift Spectrum queries at the segment level\.
SVL\_S3LIST is visible to all users\. Superusers can see all rows; regular users can see only their own data\. For more information, see [Visibility of data in system tables and views](c_visibility-of-data.md)\.
## Table columns<a name="r_SVL_S3LIST-table-columns"></a>
[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/redshift/latest/dg/r_SVL_S3LIST.html)
## Sample query<a name="r_SVL_S3LIST-sample-query"></a>
The following example queries SVL\_S3LIST for the last query executed\.
```
select *
from svl_s3list
where query = pg_last_query_id()
order by query,segment;
```
|
markdown
|
Catalunya Tigers Cricket Club (CAT) will lock horns with Gracia (GRA) on Friday (February 12) in the 23rd match of the European Cricket Series (ECS) T10 Barcelona 2021 at Montjuic Cricket Ground in Barcelona. The match is scheduled to begin at 5 PM IST.
The Tigers have started off the new season with a defeat to Bengali CC before their second game went washed out. They will be looking to snatch a win from this fixture to get the winning momentum. Gracia, on the other hand, will be also eyeing the same after their first game went washed out and the tie from the following.
The likes of Kuldeep Lal, Yasir Ali and Muhammad Armghan Khan will be the men to watch out today from this fixture. The match is expected to be a high-scoring contest for the viewers.
My Dream11 team for Catalunya Tigers CC vs Gracia match:
Probable XIs for both sides:
Squads:
Gracia: Paramjit Singh, Harpreet Singh, Kuldeep Lal, Ali Azam, Mukhtiar Singh, Kulwant Singh, Gurwinder Bajwa, Manoj Kumar, Abhishek Khullar, Trilochan Singh, Amol Rathod, Bikramjit Singh, Vicky Sondhi, Vijay Kumar, Harkamal Singh, Karandeep Singh, Mayank Dayal, Varinder Singh, Aditya Thakur, Prabal Singh, Manish Kumar Tokhi, Saad Salahuddin and Amarpreet Singh.
|
english
|
A new textile policy to be announced by the State government is expected to focus on holistic development of the entire textile value chain, with measures for development of latest design and to textile machinery manufacturing, said Ravi Sam, chairman of Southern India Mills’ Association.
Welcoming the announcements in the Tamil Nadu Budget on SIPCOT industrial parks in Coimbatore, Vellore, Kallakurichi, and Virudhunagar, 10 mini handloom parks at an outlay of ₹20 crores, and factory skill schools, he said the handloom parks would upgrade the standard of handloom products by using latest technologies and creating market linkages.
The target fixed to double the installed power generation capacity by 2030 and increase the share of green energy to 50 % is laudable as the export market is prioritising sustainability, he said.
A. Sakthivel, chairman of Federation of Indian Export Organisations, said the Budget proposals focused on industrial and infrastructure development to make the State a top exporting hub. At present, Tamil Nadu contributed 9. 5 % of the country’s exports ($ 30. 5 billion). The proposal for new SIPCOT industrial parks, allocation for global investors meet, and factories for manufacture of non-leather footwear would all boost industrial production in the State.
According to K. M. Subramanian, president of Tiruppur Exporters’ Association, the Salem and Virudhunagar parks would pave way for the growth of textile exports and generate more employment.
Welcoming the allocation of ₹25 crores for the factory skill schools, he said skilled workers were essential to increase productivity and quality and reduce waste generation. He sought extension of the metro rail project to Tiruppur.
The Indian Texpreneurs Federation convenor Prabhu Dhamodharan said the government’s plan to set up a textile park in Salem on 119 acres at a total cost of ₹880 crores, with investment from the Centre and the private sector too, would enable the textile supply chain in the western districts move towards value-addition. The new park can target apparel and home textile segments.
The Open End Spinning Mills Association president G. Arulmozhi said in a press release that infrastructure development would attract investment to the State.
According to the South India Hosiery Manufacturers Association, the Budget announcements show the commitment of the State government to boost industrial growth. While there were several welcome measures, there was no announcement for Tiruppur, it said.
|
english
|
<gh_stars>0
{"date":"2006-10-01","platform":"TV","images":{"small":"https://lain.bgm.tv/pic/cover/s/f1/38/35321_1tBt5.jpg","grid":"https://lain.bgm.tv/pic/cover/g/f1/38/35321_1tBt5.jpg","large":"https://lain.bgm.tv/pic/cover/l/f1/38/35321_1tBt5.jpg","medium":"https://lain.bgm.tv/pic/cover/m/f1/38/35321_1tBt5.jpg","common":"https://lain.bgm.tv/pic/cover/c/f1/38/35321_1tBt5.jpg"},"summary":"時ははるか未来。\r\n\r\nNEUE(ノイエ)と呼ばれる銀河に存在する惑星セルダール。\r\n\r\nセルダール星には別の銀河EDEN(エデン)にあるトランスバール星との友好関係の元に作られた、トランスバール市が存在する。\r\n\r\nそこにトランスバール軍によって設立された5人の女の子による特殊部隊、それがルーンエンジェル隊である。\r\n\r\n精鋭であるルーンエンジェル隊は紋章機と呼ばれる戦闘機を駆り、広大な宇宙を舞台に大活躍!\r\n……のはずだったのだが……彼女たちは一筋縄ではいかない隊員だらけだったのだ!\r\n\r\nマイペースな5人が、気の向くままに何もなくても縦横無尽のドタバタ騒ぎを大展開!\r\n果たして一体どんな愉快な事件がおきるのか!?\r\n\r\nハイテンションSFアクションコメディの決定版! ","name":"ギャラクシーエンジェる~ん","name_cn":"银河天使II","tags":[{"name":"TV","count":11},{"name":"2006","count":8},{"name":"Satelight","count":8},{"name":"游戏改","count":8},{"name":"2006年10月","count":4},{"name":"动画","count":4},{"name":"岸誠二","count":4},{"name":"银河天使","count":4},{"name":"搞笑","count":3},{"name":"水野良","count":3},{"name":"山根公利","count":2},{"name":"06秋","count":1},{"name":"2007","count":1},{"name":"SF","count":1},{"name":"TVA","count":1},{"name":"季番","count":1},{"name":"岸诚二","count":1},{"name":"新番记录","count":1},{"name":"新谷良子","count":1},{"name":"日本","count":1},{"name":"日本动画","count":1},{"name":"早川正","count":1},{"name":"机战","count":1},{"name":"沢城みゆき","count":1},{"name":"田村ゆかり","count":1}],"infobox":[{"key":"中文名","value":"银河天使II"},{"key":"别名","value":[{"v":"Galaxy Angel II"}]},{"key":"话数","value":"13"},{"key":"放送开始","value":"2006年10月1日"},{"key":"放送星期","value":"星期日"},{"key":"官方网站","value":[{"v":"http://www.tv-tokyo.co.jp/anime/runeangel/"},{"v":"https://www.broccoli.co.jp/ga/"}]},{"key":"播放电视台","value":"TV TOKYO"},{"key":"其他电视台","value":"AT-X"},{"key":"播放结束","value":"2006年12月24日"},{"key":"Copyright","value":"©ブロッコリー/ギャラクシーエンジェる~ん製作委員会"},{"key":"原作","value":"ブロッコリー"},{"key":"导演","value":"岸誠二"},{"key":"剧本协调","value":"菜の花すみれ"},{"key":"机械原案","value":"山根公利"},{"key":"监控图形设计","value":"神林剛"},{"key":"音乐制作人","value":"斎藤滋"},{"key":"动画制作人","value":"兼坂勝利"},{"key":"制片人","value":"並木俊治、森本浩二、水野良"},{"key":"总制片","value":"黒木健一"},{"key":"3D导演","value":"町田政彌"},{"key":"製作","value":"ギャラクシーエンジェる〜ん製作委員会"},{"key":"音乐","value":"原田勝通(Angel Note)"}],"rating":{"rank":0,"total":29,"count":{"1":0,"2":0,"3":0,"4":2,"5":7,"6":11,"7":6,"8":2,"9":1,"10":0},"score":6.1},"total_episodes":13,"collection":{"on_hold":15,"dropped":11,"wish":26,"collect":44,"doing":1},"id":35321,"eps":13,"volumes":0,"locked":false,"nsfw":false,"type":2}
|
json
|
{
"title": "[Train]",
"creation_date": "no date",
"creation_date_earliest": null,
"creation_date_latest": null,
"medium": "photograph mounted on board",
"accession_number": "2007.51.43",
"id": "cmoa:things/a012a10c-5949-4a56-873c-0a8ed149f117",
"credit_line": "Gift of the Ge<NAME> Family",
"date_acquired": "2007-10-04",
"department": "Photography",
"physical_location": "Not on View",
"item_width": 20.0,
"item_height": 14.875,
"item_depth": 0.0,
"item_diameter": 0.0,
"web_url": "http://collection.cmoa.org/CollectionDetail.aspx?item=49887",
"provenance_text": "George Ebbs",
"classification": "photographs",
"images": [
{
"image_url": "http://collection.cmoa.org/CollectionImage.aspx?irn=99941&size=Medium"
},
{
"image_url": "http://collection.cmoa.org/CollectionImage.aspx?irn=55979&size=Medium"
}
],
"creator": [
{
"artist_id": "cmoa:parties/2708f297-f7b9-43aa-ba1f-17aead0a8404",
"party_type": "Person",
"full_name": "<NAME>",
"cited_name": "<NAME>.",
"role": null,
"nationality": "American",
"birth_date": null,
"death_date": null,
"birth_place": null,
"death_place": null
}
]
}
|
json
|
package com.tom.EBM_RuleManager.Listeners;
import java.util.EventListener;
public interface AddRuleListener extends EventListener{
public void addRuleEventOccurred(AddRuleEvent event);
}
|
java
|
How did Sturtevant explain gene mapping while working with Morgan?
Gene linkage in a chromosome can be shown in the form of genetic map (linkage map or we can say chromosomal map). Alfred Sturtevant was the first individual who developed the genetic map. He used the recombination frequency of crossing over between two genes for the preparation of first genetic map of X chromosome of Drosophila. There are two aspects of genetic mapping: gene order, gene distance.
Crossing over occurs with increase in frequency as the distance increases between two specific gene loci. Recombinant frequency is used to define the measure of map distance between the two genes. The unit of measurement of genetic map is called as map unit or centimorgan (cM). 1 map unit or 1 cM is equal to 1% of recombination. Formula for map distance:
|
english
|
<gh_stars>0
<div class="container">
<h3> DONATE AND SAVE LIFES {{title}} </h3>
<div class="row">
<div class="col-sm-6" >
<div id="services" class="container-fluid text-center">
<br>
<div class="row slideanim">
<div class="col-sm-4">
<span class="glyphicon glyphicon-off logo-small"></span>
<h4>POWER</h4>
<p>Know your inner strength to change the world.</p>
</div>
<div class="col-sm-4">
<span class="glyphicon glyphicon-heart logo-small"></span>
<h4>LOVE</h4>
<p>Love your self by doing great things like this.</p>
</div>
<div class="col-sm-4">
<span class="glyphicon glyphicon-lock logo-small"></span>
<h4>JOB DONE</h4>
<p>Never feel that day is over yet to do more magic.</p>
</div>
</div>
<br><br>
<div class="row slideanim">
<div class="col-sm-4">
<span class="glyphicon glyphicon-leaf logo-small"></span>
<h4>GREEN</h4>
<p>Saying go green is not enough but involving in it is awesome.</p>
</div>
<div class="col-sm-4">
<span class="glyphicon glyphicon-certificate logo-small"></span>
<h4>CERTIFIED</h4>
<p>You are certified when you prove yourself</p>
</div>
<div class="col-sm-4">
<span class="glyphicon glyphicon-wrench logo-small"></span>
<h4 >HARD WORK</h4>
<p>Not smart work always works but hard work definitely works</p>
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<p><video width="400" controls>
<source src="../assets/images/Untitled.mp4" type="video/mp4">
Your browser does not support HTML5 video.
</video></p>
</div>
</div>
<hr>
</div>
|
html
|
The Vice President of India, Shri Bhairon Singh Shekhawat has greeted the people of our country on the joyous occasion of Deepawali, the Festival of Lights.
Following is the text of the Vice President’s message on the occasion of Deepawali festival :
“ I extend my warm greetings and good wishes to the people of our country on the joyous occasion of Deepawali, the Festival of Lights.
Celebrated all over the country with traditional gaiety and enthusiasm, the Festival marks the triumph of good over evil, light over darkness and truth over untruth. The festival emphasizes the enduring significance of these time-tested values in our lives and unite us all in a common brotherhood.
|
english
|
Crisp mornings, twinkly lights, the smell of cinnamon and fir trees in the air –Christmas is almost here! So what better way to get into the holiday spirit than with festive-inspired foods and sweet treats cooked in the air fryer?
Whether you bought an air fryer in the recent Black Friday sales, or you're a long-time convert, the holiday season presents the perfect opportunity to put the appliance to the test. Especially if you're hosting loved ones throughout the holidays.
Not only have the best air fryers gained an almost cult following because of their versatility, but they offer a healthier alternative to frying with oil. They also tend to use less energy than traditional ovens, are faster, and can be much less hassle. Exactly the kind of quality and convenience you need at what can be a stressful time of year.
To help you feel inspired this holiday season, I've picked five of my favorite air fryer Christmas recipes below, each one offering a slight spin on traditional festive flavors and foods.
And if you're feeling particularly ambitious, we've explained how you can even cook turkey in your air fryer, albeit with a few caveats!
Looking for a gift for the air fryer lover in your life? Our air fryer gift guide will help with that.
If you're after a more exciting way of serving turkey this Christmas, or looking for festive snacks or canapes for your holiday entertaining, these turkey poppers are a great, tasty and alternative way to stick with tradition.
The cream cheese inside stops the turkey from drying out, and the crispy bacon adds a delicious, crispy and salty taste. You can add jalapenos for a touch of heat, or add different herbs and spices to the cream cheese to lift the flavor even more.
Plus they're incredibly simple to make and can be made with as few as three ingredients. The perfect low-hassle, cost-effective way to feed your family or large groups this Christmas.
I adore warm pecan pie, especially over the holidays when the weather is cold, the nights are long and I'm craving sweet festive flavors. However, it's not the easiest dessert to make at home so I've found a compromise.
These mini pecan pies have all the flavors you expect from a large pie – crunchy pecans, a soft, sweet centre and crispy pastry – but in individual, bite-sized portions that can be made in the air fryer.
They take just 20 minutes from start to finish and if you use pre-rolled pastry you can make sweet party treats in very few steps.
Not everyone likes turkey so if you prefer serving beef, or you want to serve both to give your family options, then this air fryer prime rib is worth a try.
Simply mix butter with salt, pepper and flavors of your choice – I like rosemary and garlic – rub the mix over your prime rib and put in the air fryer for 45 minutes. The butter seeps into the meat and leaves it moist and delicious, while giving the fat a perfectly crispy and salty texture.
I recommend letting the meat rest for at least 20 minutes to maximize the flavor, but this means you can make it slightly ahead of time and have one less thing to worry about when serving the rest of your meal.
If you're hosting at any point over the holidays, and especially if you're putting on a buffet spread, you're going to want to serve sausage rolls. They're a buffet staple and, if my family and friends are anything to go by, you'll need to stock up.
Instead of buying them frozen, or taking multiple trips to the store over the holidays to buy them fresh, make your own.
These air fryer sausage rolls are easy and quick to bake. You can make them ahead of time and freeze them, or make a large batch of filling and bake batches as and when you need them. They taste their best when served straight from the air fryer and my family love dipping them into tomato relish.
Green beans are the go-to veg of choice for me and my family at Christmas but they can be quite boring when boiled, and can take ages in the oven.
This air fryer green beans recipe offers a happy medium between taste and time. You can swap the onions and mushrooms out for strips of bacon, or swap the Italian seasoning for mint. It even works well with frozen green beans.
The options are almost endless and it's a great, low-stress way to both elevate your side dishes this Christmas, and encourage your children to eat more veg. Win-win!
Get the hottest deals available in your inbox plus news, reviews, opinion, analysis, deals and more from the TechRadar team.
Victoria Woollaston is a freelance science and technology journalist with more than a decade’s experience writing for Wired UK, Alphr, Expert Reviews, TechRadar, Shortlist and the Sunday Times. She has a keen interest in next-generation technology and its potential to revolutionise how we live and work.
|
english
|
1Duhen yó, deng gotu deng ne kedlimun Dwata du yóm longit ne yóm tonok ne yóm kdéen ton ta le. 2Bè yóm ghituhen kdaw là buden mò nmò Dwata, deng gotu deng ne kedlimunen du yóm kentihen. 3Ne wen oluhen du yóm ghituhen kdaw yó, htólóngen mò kun abay se hegnô bè yóm kdaw yó bè yóm kedlimunen du yóm kentihen. 4Yó se tehe kmò kedlimun Dwata du yóm longit ne yóm tonok ne yóm kdéen ton.
Bè yóm tehe kedlimun yóm sana Dwata hol gónó mogot yóm longit ne yóm tonok, 5laen kô dù hulu tonem tahen yóm tonok duhen ke laen dù lem hulu lemsob tahen, abay se là deng hkulón Dwata du he, lelen laen deng tau mò hulu. 6Okóm balù yóm là deng kehkulón Dwata du, wen él tembul gu lem tonok mò hméfê du. 7Bè yóm tehe kmò Dwata tau, wen tonok nwahen ne nifilen, henbalingen tau. Ominen myuf lem ilungen yóm nawa mò hlowil du ne tódô mnawa se yóm tau nifilen yó ne sen-gengen se mowil.
8Ne wen hungul koyu nmò Dwata bè yóm benwu boluyen Idin fi dmata kdaw ne bè yó gónón hemnô du yóm tau deng nifilen. 9Tódô kentihen koyu alì tilob mton du gotu htowok Dwata bè yó, hono kem koyu tilob kbungu le. Bè hol gónón sóól yóm hungul nmoen yó, wen sotu koyu mteg bè yó ke gken tau bunguhen tódô hlós mowil. Ne wen bud sotu koyu mteg bè yó ke gken tau bunguhen, tódô tngónen yóm hyu ne tódô tngónen se yóm sidek.
10Bè yóm hungul Idin yó, wen él bong mlel gu lemen mò hméfê du. Yóm él yó, fat gónón mesgólól bè senbwak yóm hungul. 11Yóm tanay lelen, boluyen Pisun, mlel etu lem yóm benwu boluyen Habila. 12Bè yóm benwu yó gónón nô yóm tahu blówón laen kô dù bolen ne yóm sotu kay litok koyu alì tilob boohen ne yó kem botu tilob alì mebtes. 13Ne yóm gewu lel yóm él yó, boluyen Gihon, mlel etu lem yóm benwu boluyen Kus. 14Ne yóm getluhen, boluyen Tigris, mlel etu fi dmata kdaw yóm benwu Asirya. Ne yóm gfat lelen, boluyen Yufratis.
18Yó bud mon Dwata, “Là hyuhen béléen nim tau nifilu ni ke tek sotuhen. Na mò béléen dumuhen seklóón mò tóbóng lówóhen.” 19Tahu se, gotu nwit Dwata ebè yóm tau nifilen yóm kentihen deng tehe dlimunen lemwót bè tonok, kentihen ógóf nô te tonok ne kentihen onuk móyóng te kmawang. Ne hmoen du boluy le. Ne yó se buten yóm kwen kul mdengen boluy yóm kdê le. 20Tahu se, gotu nmò yóm tau nifil Dwata yó boluy yóm kentihen onuk móyóng te kmawang ne kentihen ógóf nô te tonok. Okóm balù sotu bélê le ke wen dumun seklóón mò tóbóng lówóhen. 21Omin Dwata henga htungô yóm tau yó, ne bè yóm igoen lemnga tódô dilot Dwata béléen sotu tiol lohoken ne kendel hekdimolen yóm ungeden. 22Tódô henbaling Dwata libun yóm tiol lohoken yó koni, ominen mit du ebè yóm logi.
23Ne yó mon yóm logi yó, monen,
“Ni dii hol dou dumu seklóón.
Dou tiol yóm kun tiol ne dou unged se yóm kun unged.
24Yó gónóm mon, yóm tau ke myehen gtagaken maen ne yéen ne tódô le setlomin yóm kun tuha libun, ne baling le ssotu yóm lewu le. 25Bè yóm kdaw yó, tódô mógów hlówó yóm logi ne yóm libun yó, okóm là kô le myak du.
|
english
|
TCS Q3 Results Preview: In constant currency terms, most analysts expect TCS to see flat to a little over 1% growth in revenue sequentially. But there are a few brokerages like Nomura and BNP Paribas who foresee a decline in revenue. Most analysts have considered revenue contribution from the BSNL project in their topline estimates.
With nearly half of Target's sales coming from these less essential categories, its sales have fallen in the past two quarters, but the retailer has been about to eke out a higher profit on tighter inventory management and cost controls in other parts of its business, such as logistics. On Wednesday, the company forecast adjusted earnings to land between $1.90 and $2.60 per share. The midpoint of that range topped analysts' expectations of $2.22 per share, according to LSEG data.
As per Trendlyne data, the average target price of Ideforge stock is Rs 1607, which shows an upside potential of 97% from the current market prices. The consensus recommendation from one analyst for the stock is a 'Strong Buy'.
Revenues grew 8% to Rs.1595 crore in Q2FY24 compared to Rs 1475 crore last year. The earnings before interest, tax, depreciation and amortization (EBITA) declined 6% YoY to Rs 218 crore. The EBITDA margins stood at 14% in Q2FY24.
The year-on-year decline in net loss came in though the company’s topline grew as it managed to keep costs under control. The firm saw its consolidated operating revenue rise 8% year-on-year to Rs 1,941.75 crore for the second quarter of the fiscal.
SBI Q2 Preview: Net profit for the second quarter is seen growing by a marginal 2% year-on-year (YoY), according to the average estimate of four brokerages. Net interest income (NII) in the same period is expected to grow 10% YoY. Analysts also expect operating profit growth to be flat YoY, again due to higher operating expenses and NIM pressure in the September quarter.
The company reported a 15% increase in its net profit for Q2FY24 at Rs 603 crore from Rs 526 crore in the year-ago quarter. The interest income grew 28% to Rs 1,902 crore, while income from other sources jumped 21% to Rs 2,186 crore.
Analysts are building in loan growth of 3% QoQ, and net interest margins (NIMs) may decline up to 23 basis points QoQ due to the higher cost of deposits. In the recent first quarter, the bank posted a net profit of Rs 5,797 crore, up 40% YoY.
The lender's total income rose by 53% at Rs 1,248 crore, while net interest income rose by nearly 50% at Rs 772 crore. Pre-provision operating profit increased by 68% at 563 crore. The NBFC-MFIs gross loan portfolio grew 36% year-on-year (YoY) to Rs 22,488 crore, while the customer base expanded 21% to 46.03 lakh at the end of September.
Kotak Mahindra Bank Q2 Preview: The profit for the second quarter is expected to grow anywhere between 17-19% YoY, according to an average estimate of five brokerages. NII growth for the same period is seen up to 24% YoY.
Among the ones who came out with their post-earnings review of the stocks were BofA, Kotak Institutional Equities and Nuvama and all of them have a buy view on the counter. Meanwhile, Motilal Oswal chose to take a neutral stance on the counter.
Vijayakumar told ET that the lack of discretionary spending across clients through the past two quarters and limited resumption visibility on customer expenditures have been the key factors for slashing organic revenue growth guidance.
IT services company HCL Technologies on Thursday reported a 10% growth in its consolidated net profit at Rs 3,832 crore for the quarter ended September 2023. The same stood at Rs 3,489 crore in the last year period. Revenue from operations during the period rose 8% to Rs 26,672 crore as against Rs 24,686 crore in the corresponding quarter last year.
As India pushes for electric vehicles, Tata Motors, with its growing EV segment, stands out. Their global presence, especially with the Jaguar Land Rover brand, showcases India's capability in high-end manufacturing and innovation.
"We expect a revenue CAGR of 11% over FY23–25E driven by new products and network expansion. Recent launches such as Hunter 350cc and Meteor 650cc along with the upcoming line-up have the potential to rev up growth in the face of higher competitive intensity," Nuvama said.
Major firms such as Maruti Suzuki, Titan, Bharti Airtel, and M&M among others will release their June quarter results this week. The report cards of other companies such as GAIL, Power Grid, Sun Pharma, and Adani Enterprises are also expected to be out. This week, Maruti Suzuki, Adani Enterprises, Adani Transmission, Titan, IndiGo, Bharti Airtel, Sun Pharma, SBI, M&M, Varun Beverages, and Bank of Baroda are scheduled to announce their quarterly performance.
Asian Paints saw equal growth in T1, T2 and T3, T4 cities, according to Amit Syngal, CEO. The projects division has done particularly well, with B2B customers, builders, factories and government spending showing strong signs of recovery. A good performance in the industrial sector was also reported. Syngal also said that, buoyed by a longer season and strong monsoons, Q2 and Q3 looked good.
Tata Consultancy Services (TCS) reported a YoY rise of 17% in consolidated net profit of Q1 to Rs 11,074 crore. However, consolidated revenue increased nearly 13%, marginally lower than the estimated Rs 59,500 crore. Motilal Oswal and Nuvama retained their 'Buy' recommendation on the IT major, while Nomura maintained a 'Reduce' rating.
Portfolio manager Arvind Kothari has likened building an investment portfolio to forming a cricket team. He said that like cricket, a successful investment strategy requires a top order, middle order, tail-enders and strong bowlers. Kothari argued that, for a commercial strategy, fearlessness like that of cricket's opening batsmen is needed for firms, such as Shivalik Bimetal, Waaree Energies and Ganesha Ecosphere, that are in a transition phase. Meanwhile, companies that are well-established and leaders in their sectors -- such as Elecon Engineering, Usha Martin and Borosil -- make up the portfolio's middle order and reliable tail-enders such as JK Paper are also included.
An increasing number of companies have been doling out bonus shares since the past few months. This has come as a golden opportunity for some promoters waiting to take a quick exit from their holdings, thanks to the bonus-triggered boost in liquidity in the shares.
Besides this, there are three stock splits lined up for today. Colorchips New Media announced the sub-division of its equity shares from a face value of Rs 10 to Rs 2 per share. Greencrest and Nikhil Adhesives, on the other hand, announced a stock split in the ratio of 1:10 each.
|
english
|
There’s good news for the fans of Munnabhai franchise. Rajkumar Hirani, who created the franchise, has made up his mind to direct the next Munnabhai movie. Reportedly, Hirani wasn’t interested it earlier. So Vidhu Vinod Chopra signed on director Subhash Kapoor to direct the next film. But a few days later, Vidhu called up Subhash Kapoor and told him that Raju would be directing the movie. We hear Raju wants to help out his good friend Sanjay Dutt, who will soon be out of Yerwada Jail. Subhash Kapoor understood the situation and promptly returned the signing amount.
|
english
|
<reponame>CandidoDiogo/plantmanager-app
{"ast":null,"code":"export var BLUR = 'blur';\nexport var CONTEXT_MENU = 'contextmenu';\nexport var FOCUS_OUT = 'focusout';\nexport var MOUSE_DOWN = 'mousedown';\nexport var MOUSE_MOVE = 'mousemove';\nexport var MOUSE_UP = 'mouseup';\nexport var MOUSE_CANCEL = 'dragstart';\nexport var TOUCH_START = 'touchstart';\nexport var TOUCH_MOVE = 'touchmove';\nexport var TOUCH_END = 'touchend';\nexport var TOUCH_CANCEL = 'touchcancel';\nexport var SCROLL = 'scroll';\nexport var SELECT = 'select';\nexport var SELECTION_CHANGE = 'selectionchange';\nexport function isStartish(eventType) {\n return eventType === TOUCH_START || eventType === MOUSE_DOWN;\n}\nexport function isMoveish(eventType) {\n return eventType === TOUCH_MOVE || eventType === MOUSE_MOVE;\n}\nexport function isEndish(eventType) {\n return eventType === TOUCH_END || eventType === MOUSE_UP || isCancelish(eventType);\n}\nexport function isCancelish(eventType) {\n return eventType === TOUCH_CANCEL || eventType === MOUSE_CANCEL;\n}\nexport function isScroll(eventType) {\n return eventType === SCROLL;\n}\nexport function isSelectionChange(eventType) {\n return eventType === SELECT || eventType === SELECTION_CHANGE;\n}","map":{"version":3,"sources":["C:/Users/User/OneDrive/Área de Trabalho/plantmanager-app/node_modules/react-native-web/dist/modules/useResponderEvents/ResponderEventTypes.js"],"names":["BLUR","CONTEXT_MENU","FOCUS_OUT","MOUSE_DOWN","MOUSE_MOVE","MOUSE_UP","MOUSE_CANCEL","TOUCH_START","TOUCH_MOVE","TOUCH_END","TOUCH_CANCEL","SCROLL","SELECT","SELECTION_CHANGE","isStartish","eventType","isMoveish","isEndish","isCancelish","isScroll","isSelectionChange"],"mappings":"AAQA,OAAO,IAAIA,IAAI,GAAG,MAAX;AACP,OAAO,IAAIC,YAAY,GAAG,aAAnB;AACP,OAAO,IAAIC,SAAS,GAAG,UAAhB;AACP,OAAO,IAAIC,UAAU,GAAG,WAAjB;AACP,OAAO,IAAIC,UAAU,GAAG,WAAjB;AACP,OAAO,IAAIC,QAAQ,GAAG,SAAf;AACP,OAAO,IAAIC,YAAY,GAAG,WAAnB;AACP,OAAO,IAAIC,WAAW,GAAG,YAAlB;AACP,OAAO,IAAIC,UAAU,GAAG,WAAjB;AACP,OAAO,IAAIC,SAAS,GAAG,UAAhB;AACP,OAAO,IAAIC,YAAY,GAAG,aAAnB;AACP,OAAO,IAAIC,MAAM,GAAG,QAAb;AACP,OAAO,IAAIC,MAAM,GAAG,QAAb;AACP,OAAO,IAAIC,gBAAgB,GAAG,iBAAvB;AACP,OAAO,SAASC,UAAT,CAAoBC,SAApB,EAA+B;AACpC,SAAOA,SAAS,KAAKR,WAAd,IAA6BQ,SAAS,KAAKZ,UAAlD;AACD;AACD,OAAO,SAASa,SAAT,CAAmBD,SAAnB,EAA8B;AACnC,SAAOA,SAAS,KAAKP,UAAd,IAA4BO,SAAS,KAAKX,UAAjD;AACD;AACD,OAAO,SAASa,QAAT,CAAkBF,SAAlB,EAA6B;AAClC,SAAOA,SAAS,KAAKN,SAAd,IAA2BM,SAAS,KAAKV,QAAzC,IAAqDa,WAAW,CAACH,SAAD,CAAvE;AACD;AACD,OAAO,SAASG,WAAT,CAAqBH,SAArB,EAAgC;AACrC,SAAOA,SAAS,KAAKL,YAAd,IAA8BK,SAAS,KAAKT,YAAnD;AACD;AACD,OAAO,SAASa,QAAT,CAAkBJ,SAAlB,EAA6B;AAClC,SAAOA,SAAS,KAAKJ,MAArB;AACD;AACD,OAAO,SAASS,iBAAT,CAA2BL,SAA3B,EAAsC;AAC3C,SAAOA,SAAS,KAAKH,MAAd,IAAwBG,SAAS,KAAKF,gBAA7C;AACD","sourcesContent":["/**\n * Copyright (c) <NAME>\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\nexport var BLUR = 'blur';\nexport var CONTEXT_MENU = 'contextmenu';\nexport var FOCUS_OUT = 'focusout';\nexport var MOUSE_DOWN = 'mousedown';\nexport var MOUSE_MOVE = 'mousemove';\nexport var MOUSE_UP = 'mouseup';\nexport var MOUSE_CANCEL = 'dragstart';\nexport var TOUCH_START = 'touchstart';\nexport var TOUCH_MOVE = 'touchmove';\nexport var TOUCH_END = 'touchend';\nexport var TOUCH_CANCEL = 'touchcancel';\nexport var SCROLL = 'scroll';\nexport var SELECT = 'select';\nexport var SELECTION_CHANGE = 'selectionchange';\nexport function isStartish(eventType) {\n return eventType === TOUCH_START || eventType === MOUSE_DOWN;\n}\nexport function isMoveish(eventType) {\n return eventType === TOUCH_MOVE || eventType === MOUSE_MOVE;\n}\nexport function isEndish(eventType) {\n return eventType === TOUCH_END || eventType === MOUSE_UP || isCancelish(eventType);\n}\nexport function isCancelish(eventType) {\n return eventType === TOUCH_CANCEL || eventType === MOUSE_CANCEL;\n}\nexport function isScroll(eventType) {\n return eventType === SCROLL;\n}\nexport function isSelectionChange(eventType) {\n return eventType === SELECT || eventType === SELECTION_CHANGE;\n}"]},"metadata":{},"sourceType":"module"}
|
json
|
Tropical Storm Fred is moving across the Gulf of Mexico toward the Florida Panhandle early Monday where it is expected to bring heavy rainfall and a dangerous storm surge.
A tropical storm warning is in effect for a part of the Florida Panhandle from Navarre to the Wakulla/Jefferson County line, which means tropical storm conditions are expected somewhere within the warning area in the next 24 hours, according to the National Hurricane Center (NHC).
A storm surge warning is also in effect for the coast of the Florida Panhandle from Indian Pass to Yankeetown.
As of 4 a. m. Monday, Fred was about 160 miles south of Panama City, Florida, with maximum sustained winds of 50 mph, according to the NHC. The storm was moving north at 9 mph.
"On the forecast track, the center of Fred should move across thenortheastern Gulf of Mexico today, and make landfall in the western Florida Panhandle this afternoon or early evening," the NHC said.
Through Tuesday, the storm is expected to produce heavy rainfall, which could lead to flooding across the southeast, and parts of southern Florida -- as well as the state's Big Bend and Panhandle regions. Flooding may also occur in southeast Alabama, parts of Georgia, and the western Carolinas.
In anticipation of Fred, Florida Gov. Ron DeSantis declared a state of emergency for the state's Panhandle region.
On Saturday, Alabama Gov. Kay Ivey issued a statement saying her administration was monitoring the weather and "will be ready to act from the state level if needed. "
Ivey's statement was made on the same day that Fred was downgraded to a tropical wave – prior to it regaining tropical storm status. Tropical waves can contain winds and heavy rain, but do not circulate around a center point or an "eye" like a tropical storm or hurricane.
Meanwhile, Grace was demoted to a tropical depression after its sustained winds fell to 35 mph – below the 39 mph threshold for a tropical storm. As of 5 a. m. Monday, Grace was located about 160 miles east-southeast of Port Au Prince, Haiti, and was moving west at 15 mph, according to the NHC.
Grace prompted tropical storm warnings for Puerto Rico and the Virgin Islands. Those warnings were discontinued, but a tropical storm watch remains in effect for the entire coasts of the Dominican Republic and Haiti, where rainfall totals around 4 to 8 inches were forecast through Tuesday.
Fred was forecast to bring roughly the same amount of rainfall to the Big Bend of Florida and the Panhandle.
A tropical storm earlier in the week, Fred had weakened to a depression by its spin over Haiti and the Dominican Republic, where it knocked out power to some 400,000 customers and caused flooding that forced officials to shut part of the country’s aqueduct system, interrupting water service for hundreds of thousands of people.
Local officials reported hundreds of people were evacuated and some buildings were damaged. A 7. 2 magnitude earthquake also struck Haiti on Saturday.
|
english
|
<reponame>macmillaninc/EmuTarkov-ServerMods<gh_stars>1-10
{
"Name": "Adaptador de raíl de 2\" para guardamanos SIG MPX Gen. 1",
"ShortName": "2\" Gen. 1",
"Description": "El raíl SIG MPX Gen. 1 de 2 pulgadas se adapta al guardamanos SIG MPX de primera generación, permitiendo montar equipamiento adicional."
}
|
json
|
<reponame>miniants/miniarch<gh_stars>0
package cn.remex.core.util;
public interface Numeric {
public double getValue();
}
|
java
|
#include <iostream>
#include <cstdio>
using namespace std;
const int MAXN = 25;
int e[MAXN][MAXN], val[MAXN], f[MAXN], pre[MAXN], n;
bool vis[MAXN];
inline void printPath(int cur)
{
if (cur == pre[cur]) { printf("%d ", cur); return; }
printPath(pre[cur]);
printf("%d ", cur);
}
inline void dfs(int cur, int fa, int sum)
{
if (sum + val[cur] > f[cur])
{
f[cur] = sum + val[cur];
pre[cur] = fa;
}
for (int to = 1; to <= n; ++to)
{
if (!e[cur][to] || vis[to]) continue;
vis[to] = true;
dfs(to, cur, sum + val[cur]);
vis[to] = false;
}
}
int main()
{
#ifndef ONLINE_JUDGE
freopen("P2196.in", "r", stdin);
// freopen(".out", "w", stdout);
#endif
scanf("%d", &n);
for (int i = 1; i <= n; ++i) scanf("%d", &val[i]);
for (int i = 1; i < n; ++i)
for (int j = i + 1; j <= n; ++j)
scanf("%d", &e[i][j]);
for (int i = 1; i <= n; ++i) dfs(i, i, 0);
int ans = 0;
for (int i = 1; i <= n; ++i) ans = max(ans, f[i]);
for (int i = 1; i <= n; ++i)
{
if (f[i] != ans) continue;
printPath(i);
break;
}
printf("\n%d", ans);
return 0;
}
|
cpp
|
const AWS = require('aws-sdk');
const argv = process.argv;
const delay = 1;
const bucket = 'logs.huge.head.li';
const user = require("os").userInfo().username;
console.log(user);
const put_s3_object = async () => {
const s3 = new AWS.S3();
const time = new Date().toISOString();
const TARGET_KEY = time.replace(/:/g, '-').replace(/\./g, '-');
const params = {
Bucket: bucket,
Key: TARGET_KEY,
Body: `${time} OK`
};
const result = await s3.putObject(params).promise();
return result;
};
(async () => {
const r = await new Promise((rs, rj) => {
setTimeout(async () => {
try {
await put_s3_object();
} catch(ex) {
console.log(ex);
}
rs(argv);
}, delay * 1000);
});
console.log(r[2]);
console.log('End.')
})();
console.log('Started ...');
|
javascript
|
Shalini Pandey after making her sensational debut in Tollywood in Arjun Reddy, the actress is making her Tamil debut with 100 Percent Kadhal, the remake of Telugu hit 100% Love that starred Naga Chaitanya and Tamannaah.
The Tamil film is directed by MM Chandramouli and has GV Prakash Kumar as the lead actor. Interestingly, before Shalni was zeroed in for the role, the makers had approached Lavanya and Sayyeshaa were approached. Lavanya who agreed to be part of the project had to walk out of the film as the dates clashed with another project and the film didn’t take off as per the plan. While, Sayyeshaa rejected the offer, apparently.
Shalini rose to fame with Arjun Reddy directed by Sandeep Reddy Vanga. The film not only catapulted Telugu cinema image but also gave mileage to Shalini and her co-actor Vijay Deverakonda. The actress also had a small role in Mahanati where she essayed Savitri’s friend, portrayed by Keerthy Suresh.
|
english
|
You can manage your notification subscription by clicking on the icon.
To Start receiving timely alerts please follow the below steps:
Click on the Menu icon of the browser, it opens up a list of options.
Click on the “Options ”, it opens up the settings page,
Here click on the “Privacy & Security” options listed on the left hand side of the page.
Scroll down the page to the “Permission” section .
Here click on the “Settings” tab of the Notification option.
A pop up will open with all listed sites, select the option “ALLOW“, for the respective site under the status head to allow the notification.
Once the changes is done, click on the “Save Changes” option to save the changes.
Firing claims 8; Left told to make stir 'democratic'
UGC chairman calls for "inclusive education"
'4 pvt medical colleges get deemed status'
'No Govt role in Content Code implementation'
UP: News channel expose; Rape accused,
TN: SIO to organise three "yatras"
1mn yrs old human footprints discovered!
Palestinian govt platform drops "armed resistance"
Giant pandas expanding its habitat!
Do you want to clear all the notifications from your inbox?
|
english
|
<reponame>elmachotroso/python-scripts<filename>ffmpegAutomate.py
#!/usr/bin/python3
'''
ffmpegAutomate
Automates certain fixed operations on a list of files.
mp4tomkv - converts .mp4 files into .mkv files
small - creates a smaller version of the file sacrificing some quality.
'''
import os
class ffmpegAutomate:
DEFAULT_FILE_CONVERT = 'convertfiles.txt'
DEFAULT_FILE_SMALLIFY = 'smallifyfiles.txt'
def __init__( self ):
self.cwd = os.getcwd()
self.appBinFolder = os.path.join( self.cwd, 'bin' )
self.operations = {
'mp4tomkv' : {
'cmd' : 'ffmpeg_mp4_to_mkv.cmd',
'msg' : 'mp4 to mkv conversion',
'substr' : '',
},
'small' : {
'cmd' : 'ffmpeg_small.cmd',
'msg' : 'smallify',
'substr' : 'small',
}
}
self.filesToConvert = []
self.filesToSmallify = []
self.start()
def start( self ):
fileConvertSource = os.path.join( self.cwd, ffmpegAutomate.DEFAULT_FILE_CONVERT )
if os.path.exists( fileConvertSource ) and os.path.isfile( fileConvertSource ):
with open( fileConvertSource, 'r' ) as outWriter:
for line in outWriter:
line = str( line ).strip()
if line != None and len( line ) > 0:
self.filesToConvert.append( line )
fileSmallifySource = os.path.join( self.cwd, ffmpegAutomate.DEFAULT_FILE_SMALLIFY )
if os.path.exists( fileSmallifySource ) and os.path.isfile( fileSmallifySource ):
with open( fileSmallifySource, 'r' ) as outWriter:
for line in outWriter:
line = str( line ).strip()
if line != None and len(line) > 0:
self.filesToSmallify.append( line )
self.performOpOnList( 'mp4tomkv', self.filesToConvert )
self.performOpOnList( 'small', self.filesToSmallify )
def performOpOnList( self, operation, list ):
if operation is None or ( operation not in self.operations ):
print( 'Operation: {} is not valid.'.format( operation ) )
return
if list is None:
print( 'List is invalid.' )
return
op = self.operations[ operation ]
command = os.path.join( self.appBinFolder, op[ 'cmd' ] )
if not os.path.exists( command ) or not os.path.isfile( command ):
print( 'Command: {} is not found!'.format( command ) )
return
if len( list ) > 0:
print( '>>> START BATCH OPERATION: {}'.format( op[ 'msg' ] ) )
for file in list:
if not os.path.exists( file ) or not os.path.isfile( file ):
print( 'File: {} does not exist or is not a file. Skipping...'.format( file ) )
continue
fileName, fileExt = os.path.splitext( file )
fileTarget = fileName
if len( op[ 'substr' ] ) > 0:
fileTarget = fileTarget + '.' + op[ 'substr' ]
fileTarget = fileTarget + fileExt
print( 'Performing {} of file: {} to file: {}'.format(
op[ 'msg' ],
str( file ),
str( fileTarget )
) )
commandLine = command + ' "' + file + '" "' + fileTarget + '"'
try:
os.system( commandLine )
except Exception as error:
print( 'Error while executing command line: {}\nError: {}'.format(
commandLine,
str( error )
) )
continue
print( '>>> END BATCH OPERATION: {}'.format( op[ 'msg' ] ) )
# command line
if __name__ == '__main__':
ffmpegAutomate().start()
|
python
|
<gh_stars>1-10
// balb_pipecontrolchannel.t.cpp -*-C++-*-
// ----------------------------------------------------------------------------
// NOTICE
//
// This component is not up to date with current BDE coding standards, and
// should not be used as an example for new development.
// ----------------------------------------------------------------------------
#include <balb_pipecontrolchannel.h>
#include <bslim_testutil.h>
#include <bdlf_bind.h>
#include <bdlf_placeholder.h>
#include <bslmt_barrier.h>
#include <bslmt_condition.h>
#include <bslmt_mutex.h>
#include <bslmt_threadgroup.h>
#include <bslmt_threadutil.h>
#include <bdls_pipeutil.h>
#include <bsl_algorithm.h>
#include <bsl_cstdlib.h>
#include <bsl_fstream.h>
#include <bsl_iostream.h>
#include <bslma_testallocator.h>
#include <bsls_assert.h>
#include <bsls_atomic.h>
#include <bsls_log.h>
#include <bsls_platform.h>
#include <bsls_timeinterval.h>
#ifdef BSLS_PLATFORM_OS_UNIX
#include <bsl_c_signal.h>
#include <bsl_cstdio.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#endif
using namespace BloombergLP;
using namespace bsl; // automatically added by script
// ============================================================================
// TEST PLAN
// ----------------------------------------------------------------------------
// Overview
// --------
// The component under test is a mechanism that reads data from a named pipe
// and invokes a user-supplied callback function with that data. This test
// driver verifies the implementation of by ensuring the component may be
// started, stopped, and shutdown, and also by ensuring that any data written
// to the named pipe is supplied as an argument to the user-defined callback
// function.
// ----------------------------------------------------------------------------
// CREATORS
// [ 1] explicit
// balb::PipeControlChannel(const ControlCallback& callback,
// bslma::Allocator *basicAllocator = 0);
//
// [ 4] ~balb::PipeControlChannel();
//
// MANIPULATORS
// [ 2] int start(const bsl::string& pipeName);
// [ 2] void shutdown();
// [ 2] void stop();
//
// ACCESSORS
// [ 1] const bsl::string& pipeName() const;
// ----------------------------------------------------------------------------
// [ 1] BREATHING TEST
// [ 2] TESTING CONCERN: THE COMPONENT MAY BE RESTARTED
// [ 3] TESTING CONCERN: 'shutdown' IS IDEMPOTENT
// [ 4] TESTING CONCERN: THE DESTRUCTOR INVOKES 'shutdown'
// [ 5] TESTING CONCERN: DATA SENT BY A CLIENT IS READ FROM THE PIPE
// [ 6] TESTING CONCERN: CONCURRENT WRITES
// [ 7] TESTING USAGE EXAMPLE
// ============================================================================
// STANDARD BDE ASSERT TEST FUNCTION
// ----------------------------------------------------------------------------
namespace {
int testStatus = 0;
void aSsErT(bool condition, const char *message, int line)
{
if (condition) {
cout << "Error " __FILE__ "(" << line << "): " << message
<< " (failed)" << endl;
if (0 <= testStatus && testStatus <= 100) {
++testStatus;
}
}
}
} // close unnamed namespace
// ============================================================================
// STANDARD BDE TEST DRIVER MACRO ABBREVIATIONS
// ----------------------------------------------------------------------------
#define ASSERT BSLIM_TESTUTIL_ASSERT
#define ASSERTV BSLIM_TESTUTIL_ASSERTV
#define LOOP_ASSERT BSLIM_TESTUTIL_LOOP_ASSERT
#define LOOP0_ASSERT BSLIM_TESTUTIL_LOOP0_ASSERT
#define LOOP1_ASSERT BSLIM_TESTUTIL_LOOP1_ASSERT
#define LOOP2_ASSERT BSLIM_TESTUTIL_LOOP2_ASSERT
#define LOOP3_ASSERT BSLIM_TESTUTIL_LOOP3_ASSERT
#define LOOP4_ASSERT BSLIM_TESTUTIL_LOOP4_ASSERT
#define LOOP5_ASSERT BSLIM_TESTUTIL_LOOP5_ASSERT
#define LOOP6_ASSERT BSLIM_TESTUTIL_LOOP6_ASSERT
#define Q BSLIM_TESTUTIL_Q // Quote identifier literally.
#define P BSLIM_TESTUTIL_P // Print identifier and value.
#define P_ BSLIM_TESTUTIL_P_ // P(X) without '\n'.
#define T_ BSLIM_TESTUTIL_T_ // Print a tab (w/o newline).
#define L_ BSLIM_TESTUTIL_L_ // current Line number
// ============================================================================
// GLOBAL TYPES, CONSTANTS, AND VARIABLES FOR TESTING
// ----------------------------------------------------------------------------
static int verbose = 0;
static int veryVerbose = 0;
static int veryVeryVerbose = 0;
static int veryVeryVeryVerbose = 0;
extern "C"
{
void noopHandler (int)
{
}
}
namespace {
// ===================
// class ControlServer
// ===================
class ControlServer {
// DATA
balb::PipeControlChannel d_channel;
bsl::vector<bsl::string> d_messages;
// PRIVATE MANIPULATORS
void onMessage(const bslstl::StringRef& message)
{
if ("EXIT" != message) {
d_messages.push_back(message);
}
else {
shutdown();
}
}
// UNIMPLEMENTED
ControlServer(const ControlServer&); // = deleted
ControlServer& operator=(const ControlServer&); // = deleted
public:
// CREATORS
explicit ControlServer(bslma::Allocator *basicAllocator = 0)
: d_channel(bdlf::BindUtil::bind(&ControlServer::onMessage,
this,
bdlf::PlaceHolders::_1),
basicAllocator)
, d_messages(basicAllocator)
{}
// MANIPULATORS
int start(const bslstl::StringRef &pipeName) {
return d_channel.start(pipeName);
}
void shutdown() {
d_channel.shutdown();
}
void stop() {
d_channel.stop();
}
// ACCESSORS
bsl::size_t numMessages() const {
return d_messages.size();
}
const bsl::string& message(int index) const {
return d_messages[index];
}
};
static void threadSend(const bsl::string& pipeName,
const bsl::string& message,
int numIterations)
{
for (int i = 0; i < numIterations; ++i) {
bdls::PipeUtil::send(pipeName.c_str(), message);
}
}
void noop(const bslstl::StringRef&)
{
}
void verifyPayload(const bsl::string& expected,
const bslstl::StringRef& found,
bslmt::Barrier *barrier)
{
// Verify that the specified 'found' payload has the same value as the
// specified 'expected' payload.
ASSERT(expected == found);
barrier->wait();
}
void loadData(bsl::string *result, int length)
{
const char DATA[] = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz"
"abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz"
"abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz"
"abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz"
"abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz"
"abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz"
"abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz"
"abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz"
"abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz"
"abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz"
"abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz"
"abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz"
"abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz"
"abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz"
"abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz"
"abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz"
"abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz"
"abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz"
"abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz"
"abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz";
enum { DATA_SIZE = sizeof DATA - 1 };
int capacity = length;
result->clear();
result->reserve(capacity);
do {
int nbytes = (capacity >= DATA_SIZE) ? DATA_SIZE : capacity;
result->append(DATA, nbytes);
capacity -= nbytes;
} while (capacity > 0);
}
} // close unnamed namespace
extern "C"
void onSigPipe(int) {
BSLS_LOG_WARN("SIGPIPE received");
}
void myCallback(bslmt::Condition *condition,
bsls::AtomicBool *conditionFlag,
const bslstl::StringRef& msg)
{
if (verbose) {
bsl::cout << "Received message: " << msg << bsl::endl;
}
*conditionFlag = true;
condition->signal();
bslmt::ThreadUtil::sleep(bsls::TimeInterval(0, 200000000)); // 0.2 seconds
}
void sendHello(const char *pipeName)
{
// Allow time for the condition.wait() to be reached (see 'main')
bslmt::ThreadUtil::sleep(bsls::TimeInterval(2, 0));
bsl::ofstream pipe(pipeName);
ASSERT(pipe.is_open());
if (!pipe.is_open()) { // Avoiding waiting forever
abort(); // ABORT
}
pipe << "Hello pipe" << endl;
}
// ============================================================================
// MAIN PROGRAM
// ----------------------------------------------------------------------------
int main(int argc, char *argv[])
{
int test = (argc > 1) ? bsl::atoi(argv[1]) : 1;
verbose = (argc > 2);
veryVerbose = (argc > 3);
veryVeryVerbose = (argc > 4);
veryVeryVeryVerbose = (argc > 5);
#ifdef BSLS_PLATFORM_OS_UNIX
ofstream devnull;
if (9 == test) {
devnull.open("/dev/null");
}
#endif
if (test >= 0) {
cout << "TEST " << __FILE__ << " CASE " << test << endl;
}
#ifndef BSLS_PLATFORM_OS_WINDOWS
sigset(SIGPIPE, onSigPipe);
#endif
switch (test) { case 0:
case 11: {
// --------------------------------------------------------------------
// 'shutdown' DOES NOT DEADLOCK ON WINDOWS
//
// Concerns:
// The 'sendEmptyMessage' function does not deadlock during shutdown.
//
// Plan:
//: Create a 'baea_PipeControlChannel' with a callback that triggers a
//: condition variable then waits 200 milliseconds. Next create a
//: thread that (after a 2 seconds) wait will send data to the pipe.
//: Then wait on the condition variable. Once the condition is
//: triggered the main thread is going to destroy the
//: 'baea_PipeControlChannel', which opens up a window of opportunity
//: to the tested (regression) race condition to occur. The test case
//: has been tested using the unfixed code (on Windows) and the
//: deadlock occurs.
//:
//: The tested regression: The 'shutdown' function sets the
//: 'd_isRunningFlag' to 'false' while the background thread is still
//: (in our test case sleeping) in the user callback. Once the
//: background thread returns from the user callback it can "see" that
//: that the 'd_isRunningFlag' is 'false' and stops reading from the
//: pipe. This causes the send function to block forever, waiting for
//: a reader to show up.
//:
//: The fix: The code was fixed by introducing a critical section (in
//: the 'readNamedPipe' function) around the code that reads from the
//: pipe and runs the user callback, using the already existing
//: 'd_mutex' member. A mutex lock is also introduced into the
//: 'backgroundProcessor' function to protect the reading of the
//: 'd_isRunningFlag', as it may be written to (from within 'shutdown')
//: from another thread, therefore reading it without synchronization
//: is undefined behavior.
//
// Testing:
// shutdown
// --------------------------------------------------------------------
if (verbose) {
cout << "'shutdown' DOES NOT DEADLOCK ON WINDOWS" << endl
<< "=======================================" << endl;
}
#ifndef BSLS_PLATFORM_OS_WINDOWS
if (verbose) {
cout << "Skipping test case 11 on non-Windows OS..." << endl;
}
#else
const char PIPE_NAME[] = "\\\\.\\pipe\\ctrl.baea.pcctest11";
bslmt::Mutex mutex;
bslmt::Condition condition;
bsls::AtomicBool conditionFlag(false);
balb::PipeControlChannel pipeChannel(
bdlf::BindUtil::bind(&myCallback,
&condition,
&conditionFlag,
bdlf::PlaceHolders::_1));
pipeChannel.start(PIPE_NAME);
bslmt::ThreadUtil::Handle thread;
int rc = bslmt::ThreadUtil::create(&thread, bdlf::BindUtil::bind(
&sendHello, PIPE_NAME));
ASSERT(rc == 0);
if (rc != 0) {
break; // BREAK
}
condition.wait(&mutex);
#endif
} break;
case -10: {
// --------------------------------------------------------------------
// Child process for case 10
// --------------------------------------------------------------------
#if defined(BSLS_PLATFORM_OS_WINDOWS) || defined(BSLS_PLATFORM_OS_CYGWIN)
if (verbose) {
cout << "Skipping case -10 on Windows and Cygwin..." << endl;
}
#else
if (argc != 5 ||
(argv[2][0] != 'Y' &&
argv[2][0] != 'Z' &&
argv[2][0] != 'A'))
{
cout << "Case -10 is for internal use only. Go away!" << endl;
exit(99);
}
veryVeryVerbose = argv[2][0] == 'A';
verbose = veryVeryVerbose || argv[2][0] == 'Z';
cout << "P" << getpid() << "\n" << flush;
signal(SIGINT, &noopHandler);
if (verbose) {
cerr << "Case 10 client process starting" << endl;
}
unlink(argv[3]);
bslmt::Barrier barrier(2);
balb::PipeControlChannel channel(bdlf::BindUtil::bind(
&verifyPayload,
bsl::string(argv[4]),
bdlf::PlaceHolders::_1,
&barrier));
int rc = channel.start(argv[3]);
ASSERT(0 == rc);
sigset_t intset;
sigemptyset(&intset);
sigaddset(&intset, SIGINT);
pthread_sigmask(SIG_BLOCK, &intset, 0);
barrier.wait();
if (verbose) {
cerr << "Case 10 client process stopping" << endl;
}
channel.shutdown();
channel.stop();
#endif
} break;
case 10: {
#if defined(BSLS_PLATFORM_OS_WINDOWS) || defined(BSLS_PLATFORM_OS_CYGWIN)
if (verbose) {
cout << "Skipping case 10 on Windows and Cygwin..." << endl;
}
#else
if (verbose) {
cout << "EINTR test" << endl
<< "==========" << endl;
}
bsl::string pipeName;
ASSERT(0 == bdls::PipeUtil::makeCanonicalName
(&pipeName, "ctrl.pcctest10"));
char buffer[512];
char verb = veryVeryVerbose ? 'A' :
verbose ? 'Z' : 'Y';
snprintf(buffer, 512, "%s -10 %c %s QUICKBROWNFOX_CASE10",
argv[0], verb, pipeName.c_str());
FILE* childFD = popen(buffer, "r");
BSLS_ASSERT(0 != childFD); // test invariant
do {
fscanf(childFD, "%s", buffer);
} while (buffer[0] == '\n');
int childPid = 0;
if (buffer[0] == 'P') {
childPid = atoi(&buffer[1]);
}
if (0 == childPid) {
cout << "Communication error with child process!!" << endl;
cout << "...(received \"" << buffer << "\"" << endl;
exit(9);
}
else if (verbose) {
cout << "Child pid: " << childPid << endl;
}
bslmt::ThreadUtil::microSleep(10000);
kill(childPid, SIGINT);
bslmt::ThreadUtil::microSleep(100000);
if (verbose) {
cout << "Sending QUICKBROWNFOX_CASE10 to " << pipeName
<< endl;
}
ASSERT(0 == bdls::PipeUtil::send(pipeName, "QUICKBROWNFOX_CASE10\n"));
ASSERT(0 == pclose(childFD));
#endif
} break;
case -9: {
enum { NUM_CLIENTS = 2, NUM_ITERATIONS = 500 };
if (argc != 4 ||
(argv[2][0] != 'Y' &&
argv[2][0] != 'Z'))
{
cout << "Case -9 is for internal use only. Go away!" << endl;
exit(99);
}
verbose = argv[2][0] == 'Z';
if (verbose) {
cerr << "Case 9 client process starting" << endl;
}
#ifdef BSLS_PLATFORM_OS_UNIX
unlink(argv[3]);
#endif
const char MESSAGE[]
= "Hello, world! The sick cat couldn't jump over even a lazy dog";
bslmt::Barrier barrier(2);
bsl::string message(MESSAGE);
balb::PipeControlChannel channel(bdlf::BindUtil::bind(
&verifyPayload,
message,
bdlf::PlaceHolders::_1,
&barrier));
ASSERT(0 == channel.start(argv[3]));
if (verbose) {
cerr << "\tCase 9 client: channel started, sending A..."
<< endl;
}
cout << "A\n" << flush;
bslmt::ThreadGroup threadGroup;
threadGroup.addThreads(bdlf::BindUtil::bind(&threadSend,
bsl::string(argv[3]),
message + "\n",
(int)NUM_ITERATIONS),
NUM_CLIENTS);
for (int i = 0; i < NUM_CLIENTS * NUM_ITERATIONS; ++i) {
barrier.wait();
}
threadGroup.joinAll();
if (verbose) {
cerr << "\tCase 9 client: sleeping..." << endl;
}
bslmt::ThreadUtil::sleep(bsls::TimeInterval(2.0));
if (verbose) {
cerr << "\tCase 9 client: sending B and shutting down..." << endl;
}
cout << "B\n" << flush;
channel.shutdown();
channel.stop();
bslmt::ThreadUtil::sleep(bsls::TimeInterval(1.0));
break;
}
case 9: {
// --------------------------------------------------------------------
// TESTING PIPE-IN-USE SAFETY
//
// Concern: That if a process opens a PipeControlChannel, another one
// cannot open the same pipe or interfere with its operation.
//
//---------------------------------------------------------------------
#if defined(BSLS_PLATFORM_OS_WINDOWS) || defined(BSLS_PLATFORM_OS_CYGWIN)
if (verbose) {
cout << "Skipping case 9 on Windows and Cygwin..." << endl;
}
#else
if (verbose) {
cout << "Pipe-in-use safety test" << endl
<< "=======================" << endl;
}
bsl::string pipeName;
ASSERT(0 == bdls::PipeUtil::makeCanonicalName
(&pipeName, "ctrl.safttest9"));
char buffer[512];
snprintf(buffer, 512, "%s -9 %c %s", argv[0],
verbose? 'Z' : 'Y', pipeName.c_str());
FILE* childFD = popen(buffer, "r");
BSLS_ASSERT(0 != childFD); // test invariant
do {
fgets(buffer, 3, childFD);
} while (buffer[0] == '\n');
if (buffer[0] != 'A') {
cout << "Communication error with child process!!" << endl;
cout << "...(received \"" << buffer << "\"" << endl;
exit(9);
}
ControlServer server;
int rc;
for (int i = 0; i < 5; ++i) {
rc = server.start(pipeName);
LOOP_ASSERT(i, 0 != rc);
bslmt::ThreadUtil::microSleep(100);
}
do {
fgets(buffer, 50, childFD);
} while (buffer[0] == '\n');
if (buffer[0] != 'B') {
cout << "Communication error with child process!!" << endl;
cout << "...(received \"" << buffer << "\"" << endl;
exit(9);
}
pclose(childFD);
#endif
} break;
case -8: {
if (argc != 4 ||
(argv[2][0] != 'Y' &&
argv[2][0] != 'Z'))
{
cout << "Case -8 is for internal use only. Go away!" << endl;
exit(99);
}
verbose = argv[2][0] == 'Z';
if (verbose) {
cerr << "Case 8 client process starting" << endl;
}
#ifdef BSLS_PLATFORM_OS_UNIX
unlink(argv[3]);
#endif
balb::PipeControlChannel *channel =
new balb::PipeControlChannel(&noop);
ASSERT(0 == channel->start(argv[3]));
if (verbose) {
cerr << "\tCase 8 client: channel started, seg faulting..."
<< endl;
}
cout << "A\n" << flush;
*(int*)10 = 10;
ASSERT(!"unreachable");
break;
}
case 8: {
// --------------------------------------------------------------------
// TESTING CRASH RECOVERY
//
// Concern: That if a process opens a PipeControlChannel and
// subsequently crashes, another process can then open the same named
// pipe.
//---------------------------------------------------------------------
#if defined(BSLS_PLATFORM_OS_WINDOWS) || defined(BSLS_PLATFORM_OS_CYGWIN)
if (verbose) {
cout << "Skipping case 8 on Windows and Cygwin..." << endl;
}
#else
if (verbose) {
cout << "Crash recovery test: \"Bus Error\" is OK" << endl
<< "======================================" << endl;
}
bsl::string pipeName;
ASSERT(0 == bdls::PipeUtil::makeCanonicalName
(&pipeName, "ctrl.restarttest8"));
char buffer[512];
snprintf(buffer, 512, "%s -8 %c %s", argv[0],
verbose? 'Z' : 'Y', pipeName.c_str());
FILE* childFD = popen(buffer, "r");
BSLS_ASSERT(0 != childFD); // test invariant
do {
fgets(buffer, 3, childFD);
} while (buffer[0] == '\n');
if (buffer[0] != 'A') {
cout << "Communication error with child process!!" << endl;
cout << "...(received \"" << buffer << "\"" << endl;
exit(9);
}
bslmt::ThreadUtil::sleep(bsls::TimeInterval(1.0));
ControlServer server;
int rc = server.start(pipeName);
ASSERT(0 == rc && "Failed to start pipe control channel");
if (0 == rc) {
const char MSG0[] = "this is the first message";
const char MSG1[] = "this is the second message";
rc = bdls::PipeUtil::send(pipeName, bsl::string(MSG0) + "\n");
ASSERT(0 == rc);
rc = bdls::PipeUtil::send(pipeName, bsl::string(MSG1) + "\n");
ASSERT(0 == rc);
rc = bdls::PipeUtil::send(pipeName, "EXIT\n");
ASSERT(0 == rc);
server.stop(); // blocks until shutdown
ASSERT(2 == server.numMessages());
ASSERT(bsl::string(MSG0) == server.message(0));
ASSERT(bsl::string(MSG1) == server.message(1));
}
#endif
} break;
case 7: {
// --------------------------------------------------------------------
// TESTING USAGE EXAMPLE
//
// Concerns:
// The usage example provided in the component header file must
// compile, link, and execute as shown.
//
// Plan:
// Incorporate the usage example from the header file into the test
// driver. Additionally, replace all calls to 'BSLS_ASSERT' in
// the usage example with calls to 'ASSERT'. This now becomes the
// source, which is then "copied" back to the header file by
// reversing the above process.
//
// Testing:
// USAGE EXAMPLE
// --------------------------------------------------------------------
#if defined(BSLS_PLATFORM_OS_CYGWIN)
if (verbose) {
cout << "Skipping case 7 on Cygwin..." << endl;
}
#else
if (verbose) {
cout << "Usage Example" << endl
<< "=============" << endl;
}
// Now, construct and run the server using a canonical name for the pipe:
//..
bsl::string pipeName;
bdls::PipeUtil::makeCanonicalName(&pipeName, "ctrl.pcctest");
//
ControlServer server;
//
int rc = server.start(pipeName);
if (0 != rc) {
cout << "ERROR: Failed to start pipe control channel" << endl;
}
//..
// Once the server is started, clients can send messages to the server.
//..
const char MSG0[] = "this is the first message";
const char MSG1[] = "this is the second message";
//
rc = bdls::PipeUtil::send(pipeName, bsl::string(MSG0) + "\n");
ASSERT(0 == rc);
rc = bdls::PipeUtil::send(pipeName, bsl::string(MSG1) + "\n");
ASSERT(0 == rc);
rc = bdls::PipeUtil::send(pipeName, "EXIT\n");
ASSERT(0 == rc);
//..
// The server shuts down once it processes the "EXIT" control message.
//..
server.stop(); // block until shutdown
//..
// Finally, let's ensure the server received each control message sent.
//..
ASSERT(2 == server.numMessages());
ASSERT(bsl::string(MSG0) == server.message(0));
ASSERT(bsl::string(MSG1) == server.message(1));
//..
#endif
} break;
case 6: {
// --------------------------------------------------------------------
// TESTING CONCERN: CONCURRENT WRITES
//
// Concerns:
// When multiple clients concurrent write to the pipe each write
// occurs "atomically", i.e., the data in a message is not
// interleaved with the data from any other message.
//
// Plan:
// Create a pipe control channel and start the channel processing
// a named pipe. Start a group of threads that write a payload to
// the named pipe, and verify the pipe control channel's control
// callback is invoked the expected number of times with an argument
// having the same value as the payload written to the pipe.
//
// Testing:
// Concurrent writes
// --------------------------------------------------------------------
#if defined(BSLS_PLATFORM_OS_WINDOWS) || defined(BSLS_PLATFORM_OS_CYGWIN)
if (verbose) {
cout << "Skipping case 6 on Windows and Cygwin..." << endl;
}
#else
if (verbose) {
cout << "TESTING CONCERN: CONCURRENT WRITES" << endl
<< "==================================" << endl;
}
bslma::TestAllocator ta(veryVeryVeryVerbose);
{
bsl::string pipeName;
ASSERT(0 == bdls::PipeUtil::makeCanonicalName
(&pipeName, "ctrl.baea.pcctest6"));
#ifdef BSLS_PLATFORM_OS_UNIX
unlink(pipeName.c_str());
#endif
enum { NUM_CLIENTS = 10, NUM_ITERATIONS = 100 };
int DATA[] = {
1, 32, 256
};
enum { NUM_DATA = sizeof DATA / sizeof *DATA };
for (int iteration = 0; iteration < NUM_DATA; ++iteration) {
int messageLength = DATA[iteration];
bsl::string message;
loadData(&message, messageLength);
bslmt::Barrier barrier(2);
balb::PipeControlChannel channel(bdlf::BindUtil::bind(
&verifyPayload,
message,
bdlf::PlaceHolders::_1,
&barrier),
&ta);
int rc = channel.start(pipeName);
ASSERT(0 == rc);
bslmt::ThreadGroup threadGroup;
threadGroup.addThreads(bdlf::BindUtil::bind(
&threadSend,
bsl::string(pipeName),
message + "\n",
(int)NUM_ITERATIONS),
NUM_CLIENTS);
for (int i = 0; i < NUM_CLIENTS * NUM_ITERATIONS; ++i) {
barrier.wait();
}
threadGroup.joinAll();
channel.shutdown();
channel.stop();
}
}
ASSERT(0 < ta.numAllocations());
ASSERT(0 == ta.numBytesInUse());
#endif
} break;
case 5: {
// --------------------------------------------------------------------
// TESTING CONCERN: DATA SENT BY A CLIENT IS READ FROM THE PIPE
//
// Concerns:
// Data sent through the named pipe by a client is read by the object
// and specified as the argument to the control callback.
//
// Plan:
// Create a pipe control channel and start the channel processing
// a named pipe. Write a payload to the named pipe, and verify the
// pipe control channel's control callback is invoked with an
// argument having the same value as the payload written to the
// pipe.
//
// Testing:
// Reading data from the named pipe
// --------------------------------------------------------------------
#if defined(BSLS_PLATFORM_OS_WINDOWS) || defined(BSLS_PLATFORM_OS_CYGWIN)
if (verbose) {
cout << "Skipping case 5 on Windows and Cygwin..." << endl;
}
#else
if (verbose) {
cout << "TESTING CONCERN: READING DATA FROM NAMED PIPE" << endl
<< "=============================================" << endl;
}
bslma::TestAllocator ta(veryVeryVeryVerbose);
{
bsl::string pipeName;
ASSERT(0 == bdls::PipeUtil::makeCanonicalName
(&pipeName, "ctrl.baea.pcctest5"));
#ifdef BSLS_PLATFORM_OS_UNIX
unlink(pipeName.c_str());
#endif
const char MESSAGE[] = "Hello, world!";
bslmt::Barrier barrier(2);
balb::PipeControlChannel channel(bdlf::BindUtil::bind(
&verifyPayload,
bsl::string(MESSAGE),
bdlf::PlaceHolders::_1,
&barrier),
&ta);
int rc = channel.start(pipeName);
ASSERT(0 == rc);
bdls::PipeUtil::send(pipeName, bsl::string(MESSAGE) + "\n");
barrier.wait();
channel.shutdown();
channel.stop();
}
ASSERT(0 < ta.numAllocations());
ASSERT(0 == ta.numBytesInUse());
#endif
} break;
case 4: {
// --------------------------------------------------------------------
// TESTING CONCERN: THE DESTRUCTOR INVOKES 'shutdown'
//
// Concerns:
// Destroying the object shuts down the object and joins the
// background thread.
//
// Plan:
// Create a pipe control channel and start processing a name pipe.
// Do no explicitly shut down the pipe control channel. Destroy the
// object, and verify the thread destroying the object is eventually
// unblocked.
//
// Testing:
// ~PipeControlChannel()
// --------------------------------------------------------------------
if (verbose) {
cout << "TESTING CONCERN: DESTRUCTOR INVOKES 'shutdown'" << endl
<< "=============================================" << endl;
}
bslma::TestAllocator ta(veryVeryVeryVerbose);
{
bsl::string pipeName;
ASSERT(0 == bdls::PipeUtil::makeCanonicalName
(&pipeName, "ctrl.baea.pcctest4"));
#ifdef BSLS_PLATFORM_OS_UNIX
unlink(pipeName.c_str());
#endif
{
balb::PipeControlChannel channel(&noop, &ta);
int rc = channel.start(pipeName);
ASSERT(0 == rc);
}
ASSERT("The calling thread is unblocked.");
}
ASSERT(0 == ta.numBytesInUse());
} break;
case 3: {
// --------------------------------------------------------------------
// TESTING CONCERN: 'shutdown' IS IDEMPOTENT
//
// Concerns:
// The 'shutdown' function is idempotent.
//
// Plan:
// Start the pipe control channel then explicitly call shutdown and
// then stop, validating the result. Explicitly call shutdown and
// then stop again.
//
// Testing:
// shutdown
// --------------------------------------------------------------------
if (verbose) {
cout << "TESTING CONCERN: 'shutdown' IS IDEMPOTENT" << endl
<< "=========================================" << endl;
}
bslma::TestAllocator ta(veryVeryVeryVerbose);
{
#ifdef BSLS_PLATFORM_OS_WINDOWS
const char PIPE_NAME[] = "\\\\.\\pipe\\ctrl.baea.pcctest3";
#else
const char PIPE_NAME[] = "/tmp/ctrl.baea.pcctest3";
unlink(PIPE_NAME);
#endif
balb::PipeControlChannel channel(&noop, &ta);
int rc = channel.start(PIPE_NAME);
ASSERT(0 == rc);
channel.shutdown();
channel.shutdown();
channel.stop();
channel.shutdown();
channel.shutdown();
channel.stop();
}
ASSERT(0 == ta.numBytesInUse());
} break;
case 2: {
// --------------------------------------------------------------------
// TESTING CONCERN: THE COMPONENT MAY BE RESTARTED
//
// Concerns:
// The pipe control channel may be restarted after it has been
// shutdown and stopped.
//
// Plan:
// Create a pipe control channel. Start, shutdown, and stop the
// object. Restart the pipe control channel with a different name
// and verify the result. Stop the pipe control channel, then
// restart the object with the same name as the previous iteration
// and verify the result.
//
// Testing:
// run, shutdown, stop
// --------------------------------------------------------------------
if (verbose) {
cout << "TESTING CONCERN: The Component May Be Restarted" << endl
<< "===============================================" << endl;
}
bslma::TestAllocator ta(veryVeryVeryVerbose);
{
int rc;
#ifdef BSLS_PLATFORM_OS_WINDOWS
const char PIPE_NAME1[] = "\\\\.\\pipe\\ctrl.pcctest2-1";
const char PIPE_NAME2[] = "\\\\.\\pipe\\ctrl.pcctest2-2";
#else
const char PIPE_NAME1[] = "/tmp/ctrl.baea.pcctest2-1";
const char PIPE_NAME2[] = "/tmp/ctrl.baea.pcctest2-2";
unlink(PIPE_NAME1);
unlink(PIPE_NAME2);
#endif
balb::PipeControlChannel channel(&noop, &ta);
rc = channel.start(PIPE_NAME1);
ASSERT(0 == rc);
ASSERT(PIPE_NAME1 == channel.pipeName());
channel.shutdown();
channel.stop();
rc = channel.start(PIPE_NAME2);
ASSERT(0 == rc);
ASSERT(PIPE_NAME2 == channel.pipeName());
channel.shutdown();
channel.stop();
rc = channel.start(PIPE_NAME2);
ASSERT(0 == rc);
ASSERT(PIPE_NAME2 == channel.pipeName());
channel.shutdown();
channel.stop();
}
ASSERT(0 == ta.numBytesInUse());
} break;
case 1: {
// --------------------------------------------------------------------
// BREATHING TEST
//
// Concerns:
// Exercise default implementation of task manager component by
// calling primary manipulators and accessors and verifying their
// return codes.
//
// Plan:
// Create a pipe control channel, ensure the object reports the pipe
// name correctly, start, shutdown, and stop the object. Verify
// each function's return code.
//
// Testing:
// BREATHING TEST
// --------------------------------------------------------------------
if (verbose) {
cout << "Breathing Test" << endl
<< "==============" << endl;
}
bslma::TestAllocator ta(veryVeryVeryVerbose);
{
#ifdef BSLS_PLATFORM_OS_WINDOWS
const char PIPE_NAME[] = "\\\\.\\pipe\\ctrl.baea.pcctest1";
#else
const char PIPE_NAME[] = "/tmp/ctrl.baea.pcctest1";
unlink(PIPE_NAME);
#endif
balb::PipeControlChannel channel(&noop, &ta);
int rc = channel.start(PIPE_NAME);
ASSERT(0 == rc);
ASSERT(PIPE_NAME == channel.pipeName());
channel.shutdown();
channel.stop();
}
ASSERT(0 == ta.numBytesInUse());
} break;
default: {
cerr << "WARNING: CASE `" << test << "' NOT FOUND." << endl;
testStatus = -1;
}
}
if (testStatus > 0) {
cerr << "Error, non-zero test status = " << testStatus << "."
<< endl;
}
return testStatus;
}
// ----------------------------------------------------------------------------
// Copyright 2017 Bloomberg Finance L.P.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ----------------------------- END-OF-FILE ----------------------------------
|
cpp
|
{"domain":"LanguageCodes","code":"sm","codevalue":"Samoan","link":"","sequence":0,"attributes":[{"key":"ISO639-2T","val":"smo"},{"key":"ISO639-2B","val":"smo"},{"key":"Language Family","val":"Austronesian"}],"SequenceType":0,"id":"9f4f3e0a-c78e-4ebb-9cfc-9c915dd9b31f","cachettl":1}
|
json
|
New Zealand have won the first ICC Test Championship after beating India in the final by 8 wickets on Wednesday at the Rose Bowl, Southampton. There was a reserve day for the championship match in case the rain interrupts during the play. Eventually, the match ended on the sixth day. New Zealand were superb on the final day and they were desperate to win the contest. It was a collective effort that guided New Zealand to win the most prestigious ICC tournament. This article discusses how New Zealand crowned champion after beating India in the inaugural edition of the ICC Test Championship final.
Rain disrupted every day of the ICC Test Championship Final between New Zealand and India, and the game was not even held on the first day. As a result, the match lasted till the reserve day.New Zealand skipper Kane Williamson opted to bowl first in a swinging condition at the Rose Bowl ground.
The Kiwi pacers were excellent in line and length in the first innings, with neither bowler conceding more than 3 runs per over. Especially, Kyle Jamieson was outstanding in terms of accuracy. He took five wickets for 31 runs, including Rohit Sharma, Rishab Pant, and Captain Virat Kohli.
India were bowled out for 217 after playing 92.1 overs. Ajinkya Rahane was the top scorer (47) for team India, while Virat made 44 runs.
In response, New Zealand scored 249 runs to take a crucial 32-run lead over India in the first innings. Devon Conway led the way with 54 runs, while Captain Kane Williamson chipped in with 49. Fast Bowler Mohammad Shami picked up the highest 4 wickets for India.
India had hoped to bat out the whole day on the final day but were bowled out for 170 after the drinks break in the second session. Rishab Pant scored the highest 41 runs for India, while Tim Southee claimed the most four wickets for New Zealand.
New Zealand had nearly 50 overs to reach the 139-run winning target. Thanks to 96* runs unbeaten stand between Kane Williamson (52) and Ross Taylor (47) guided New Zealand to the victory in the third session of the sixth day. Spinner Ravi Ashwin snatched both the wickets for India. Pacer Kyle Jamieson was named player of the match after taking seven wickets in the match.
We saw some incredible performances and unforgettable matches over the course of the two-year-long ICC Test Championship. Here we mentioned some of the top performers in the inaugural edition of the tournament.
Australia’s Marnus Labuschagne was the most runs scorer in the Test Championship tournament, He made 1,675 runs in 23 innings with an average of 72.82. England’s Joe Root (1,660) and Aussie middle-order batsman Steven Smith (1,341) came in second and third respectively on the list.
Read Who was The Best Captain of Bangladesh Cricket team?
India’s off-spinner Ravi Ashwin had the most wickets in the tournament. He picked up 71 wickets with an average of 20.33 in 26 innings. Australia’s Pat Cummins (70) and England’s Stuart Broad (69) were among the top three wicket-takers in the tournament.
Australia’s David Warner was the only player to score 300 runs in an innings in this tournament. His unbeaten 335* runs against Pakistan was the highest innings of the competition, followed by Zak Crawley (267) and Virat Kohli (254*).
Lankan bowler Lasith Embuldeniya's 7/137 wickets haul against England was the best bowling figure in an innings in the championship. Ravi Ashwin (7/145) and Jasprit Bumrah (6/27) finished second and third respectively on the list.
Before winning the Test championship, New Zealand’s biggest achievement on the international stage was winning the ICC Champions Trophy in 2000. The Kiwis played two back-to-back 50-over World Cup finals in 2015 and 2019 but lost both the finals against the arch-rivals Australia and England respectively.
So, New Zealand were desperate to win a major ICC tournament prior to the ICC Test Championship Final against India, and they finally have done it. This New Zealand team is arguably the best ever in their cricket history and they deserve a lot of credit.
|
english
|
48 He fought valiantly and defeated the Amalekites,(A) delivering Israel from the hands of those who had plundered them.
30 David and his men reached Ziklag(A) on the third day. Now the Amalekites(B) had raided the Negev and Ziklag. They had attacked Ziklag and burned(C) it,
“‘An Amalekite,(A)’ I answered.
12 Edom[a](A) and Moab,(B) the Ammonites(C) and the Philistines,(D) and Amalek.(E) He also dedicated the plunder taken from Hadadezer son of Rehob, king of Zobah.
Holy Bible, New International Version®, NIV® Copyright ©1973, 1978, 1984, 2011 by Biblica, Inc.® Used by permission. All rights reserved worldwide.
NIV Reverse Interlinear Bible: English to Hebrew and English to Greek. Copyright © 2019 by Zondervan.
|
english
|
The proliferation of online textbook sellers has caused several colleges, prep schools, and distance-learning centers to scale back campus bookstore operations. It's a move they say will save time and money for schools and students.
VarsityBooks.com, a company that sells new textbooks online, has begun partnering with schools and, in some cases, has completely taken over student textbook sales.
One benefit to students is that VarsityBooks offers up to 40 percent off the list price of new textbooks.
"[I believe] costs are going to be down for our students," said Karen Grubbs, the bookstore manager at Georgetown Preparatory in Bethesda, Maryland.
Georgetown's bookstore will not sell any new textbooks after this school year, Grubbs said.
The International School of Information Management University in Denver, a distance-learning school, will maintain a campus bookstore. But the administration hopes students will buy most of their books from VarsityBooks.
"It's nice that someone else can staff this for us," said Tina Parscal, academic dean at ISIM.
If most students use VarsityBooks, "we can focus on our core business, and that is providing accredited distance learning," said Parscal. "We're not in the book business."
Denise Stasio, bookstore manager at St. Agnes Academy in Houston, said that it eliminates a lot of work.
There is also an economic incentive for schools to partner with VarsityBooks. Schools that outsource their new textbook operations to the company receive a revenue share.
Many schools make their course lists available online to VarsityBooks and other online textbook vendors, giving students the option to buy books on the Web.
Other companies selling textbooks online have slightly different approaches to the business. Ecampus.com doesn't plan to replace college bookstores, said Doug Alexander, the online retailer's vice president of strategic planning and development. But schools receive a commission if a student buys a textbook from Ecampus.com.
John Bates, co-founder of Bigwords.com, said his company wants to develop relationships with individual professors and students and "make it convenient for students to get their books no matter where they go to school."
But since the partnership programs are new, several schools are investigating them before making firm commitments.
"It's probably something we would investigate in the future," said Shannon Stimson, the director of public relations for the Madeira School in McLean, Virginia.
|
english
|
<filename>assets/css/mema.css
@import "staypuft.css";
/* Variables
/* ---------------------------------------------------------- */
:root {
--sans-serif: 'Open Sans', sans-serif;
--text-color: #3c484e;
--link-color: #0084cd;
--link-hover-color: #ffcd24;
--sidebar-width: 320px;
--sidebar-color: #006fb9;
--sidebar-link-color: #0084cd;
--background-color: #9dc8e4;
}
/* Overrides
/* ---------------------------------------------------------- */
.post-card {
box-shadow: none;
transform: none;
transition: none;
border: 2px solid transparent;
}
.post-card:hover {
border: 2px solid var(--sidebar-color);
box-shadow: none;
transform: none;
transition: none;
}
.author-card-button {
border-color: var(--link-color);
color: var(--link-color);
}
.author-card-button:hover {
border-color: var(--link-hover-color);
color: var(--link-hover-color);
}
.main-nav li {
background: var(--sidebar-color);
}
.main-nav li a {
color: white;
}
.main-nav li a:hover {
color: white;
text-decoration: underline;
}
body {
background: var(--background-color);
}
.site-footer-content {
color: white;
}
.site-footer-content i {
color: white;
border: 1px solid white;
text-decoration: none;
}
.site-footer-content a {
color: white;
}
.post-full-meta .post-tags a:hover {
color: unset;
text-decoration: underline;
}
.author-card-name a:hover,
.site-footer-content a:hover {
color: unset;
text-decoration: underline;
}
.post-full-content em,
.post-full-content strong {
color: var(--text-color);
}
.site-header {
background: #0084cd;
}
.contrast-box {
background: unset;
}
h2.site-description.contrast-box {
opacity: 0.8;
}
.author-stats.contrast-box,
.author-location.contrast-box,
h2.author-bio.contrast-box {
background-color: unset;
opacity: .8;
}
|
css
|
# OpenCV: Image processing
import cv2
import time
import popupWindow as detectionWindow
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtWidgets import QWidget, QApplication, QLabel, QVBoxLayout
from PyQt5.QtGui import QPixmap
from PyQt5.QtCore import pyqtSignal, pyqtSlot, Qt, QThread
# numpy: numerical computation
import numpy as np
import core.utils as utils
# Tensorflow: deep learning
import tensorflow as tf
# Allow for GPU memory growth to prevent "Out of memory" errors
gpus = tf.config.experimental.list_physical_devices('GPU')
if gpus:
try:
for gpu in gpus:
tf.config.experimental.set_memory_growth(gpu, True)
except RuntimeError as e:
print(e)
import sma as sma
# YOLOV3 itself
from core.yolov3 import YOLOv3, decode
def startDetection(window, minConfidence, videoPath):
popUpFlag = False
video_path = videoPath
# Number of classes, one class for each element
num_classes = 80
input_size = 704
min_confidence = minConfidence / 100
# Layer to be used as an entry point into a Network (a graph of layers).
# Tuple with height, width and depth used to reshape arrays.
# This is used for reshaping in Keras.
input_layer = tf.keras.layers.Input([input_size, input_size, 3])
# (TO DO: see how it does it)
feature_maps = YOLOv3(input_layer)
bbox_tensors = []
for i, fm in enumerate(feature_maps):
bbox_tensor = decode(fm, i)
bbox_tensors.append(bbox_tensor)
# Model groups layers into an object with training and inference features.
# input: input_layer
# output: bbox_tensors
model = tf.keras.Model(input_layer, bbox_tensors)
# load weights from file
utils.load_weights(model, "./data/weights/handgun.weights")
# Prints a string summary of the network.
# model.summary()
# Load video from file with openCV
vid = cv2.VideoCapture(video_path)
runFlag = True
while runFlag:
# Get a frame from the video
# Returns a bool (True/False).
# If frame is read correctly, it will be True.
# So you can check end of the video by checking this return value.
return_value, frame = vid.read()
if not return_value:
raise ValueError("No image!")
# thistuple = ("apple", "banana", "cherry", "orange", "kiwi", "melon", "mango")
# print(thistuple[:2]) => ('apple', 'banana')
# shape holds heigth, width and number of channels
# Gets width and height of the frame
frame_size = frame.shape[:2]
# np.copy(frame) => Return an array copy of the given object.
# Resizes frame to network input size => def image_preporcess(image, target_size, gt_boxes=None):
image_data = utils.image_preporcess(np.copy(frame), [input_size, input_size])
image_data = image_data[np.newaxis, ...].astype(np.float32)
# Performs the prediction on the frame (TO DO: see how it does it)
pred_bbox = model.predict_on_batch(image_data)
# Changes tensor shape, similar to transposing a matrix
# href: https://www.tensorflow.org/api_docs/python/tf/reshape
pred_bbox = [tf.reshape(x, (-1, tf.shape(x)[-1])) for x in pred_bbox]
# Concatenates tensors along one dimension axis = 0 => axis = y
pred_bbox = tf.concat(pred_bbox, axis=0)
# (TO DO: see how it does it)
bboxes = utils.postprocess_boxes(pred_bbox, frame_size, input_size, min_confidence)
# (TO DO: see how it does it)
bboxes = utils.nms(bboxes, 0.45, method='nms')
# Draws boundingbox in image
# (TO DO: see how it does it)
image = utils.draw_bbox(frame, bboxes)
window.imageDisplay.setPixmap(QtGui.QPixmap(utils.convert_cv_qt(image.image)))
# HERE check if detected class is handgun
if(image.classDetected == 'handgun' and image.calculatedSma >= 0.95):
if (popUpFlag == False):
popUpFlag = True
popUpFlag = callPopUpWindow(window, image.image)
if popUpFlag == "Alarm":
popUpFlag = True
window.title.setText("Alarm triggered - Detection saved to PC")
window.title.setStyleSheet("color : red")
# window.title.setPointSize(25)
window.setStyleSheet("""QMainWindow{border: 6px solid red;}""")
# Breaks while loop on 'q' press
if cv2.waitKey(1) & 0xFF == ord('q'):
cv2.destroyAllWindows()
break
def callPopUpWindow(self, detection):
dialog = detectionWindow.DetectionWindow(self)
dialog.setImage(detection)
dialog.show()
if dialog.exec_() == QtWidgets.QDialog.Accepted:
return dialog.returnValue
|
python
|
“A thoughtfully designed protective booth with clinician inputs is a good step in preventing transmission of infection”, says Professor Ashutosh Sharma, Secretary, DST.
Scientists at Sree Chitra Tirunal Institute for Medical Sciences and Technology(SCTIMST), an autonomous institute of the Department of Science and Technology (DST),Govt. of India, have designed and developed a disinfected barrier-examination booth for examining COVID-19 patients.
The innovative disinfected examination booth is closed like a telephone booth for examining the patient without direct contact with the doctor to prevent transmission of infection. It is equipped with a lamp, table fan, rack, and Ultraviolet (UV) light.
The installed UV light in the booth disinfects the chamber after each patient leaves.The UV light installed has a wavelength of 254nmwith a 15 watts rating, which effectively removes most of the viral load within 3 minutes of exposure. A pair of gloves provided in the examination booth allows the patient’s physical examination.Additionally, an entry tunnel onthe side frame is provided to pass a Stethoscope within the chamber. This feature would help the doctor to place stethoscope on the patient and listen to heart and breath sounds.
After the examination, the patient is requested to vacate the chamber, and UV light will be turned on for 3minutes. When UV exposure in the chamber is completed, the next patient is examined, and the sequence is repeated. The Examination Booth hasdimensions of 210 cm(H)X 150cm(D)X 120cm(W), which provides enough space for thepatient.
"Providing the highest standards of safety to the doctors and the front-line medical workers while interacting with the carriers of a highly contagious virus is clearly a critical priority. A thoughtfully designed protective booth with clinician inputs is a good step in that direction”, said Professor Ashutosh Sharma, Secretary, DST.
The team of innovatorsfrom SCTIMST comprises of Mr. Muraleedharan C. V,Mr. Ramesh Babu V.,Mr. D. S. Nagesh, Er. Saurabh S. Nair, Er. Arvind Kumar Prajapati, Dr. Sivakumar K. G. V., and theteam of Artificial Internal Organ (AIO)& Division Of Extra Corporeal Devices (ECD), SCTIMST.The technical know-how of the Examination Booth has already been transferred to FlyTechIndustries, Trivandrum.
(For more details please contact: Ms. Swapna Vamadevan, PRO, SCTIMST, Mob: 9656815943, Email: pro@sctimst.ac.in)
|
english
|
According to a new set of BGMI leaks, the upcoming update will include three new voice packs starring renowned influencers, which will be released in phases. The leaks come from LuckyMan, a popular YouTuber who has previously updated the community on popular battle royale's upcoming features and content.
Krafton, the developers of BGMI, makes every effort to keep the battle royale title exciting for its constantly rising fan base. The feature of the regional voice pack featuring popular players and influencers was brought up in the first update of the year - 1. 8. The number of available options for voice packs has grown each since.
LuckyMan uploaded a video to his channel in which he provided viewers with leaks on the voice packs of Mavi, Scout, and Shreeman. It is expected to follow a similar format, i. e. , basic and special version, with the former including English audio messages and the latter possibly including Hindi ones, also priced higher.
Although the YouTuber did not provide viewers with the audio, he has provided the release date for each version. According to him, the voice packs will be available on the following dates:
This will be a continuation of the Play As Your Hero campaign/event, which previously featured voice packs of popular names such as Jonathan, Snax, and Kaztro in the 1. 8 update.
In the meantime, voice packs from Ghatak Gaming, Payal Gaming, and Dynamo Gaming were added as part of the 1. 9 update, with Dynamo's yet to be made accessible.
The BGMI community has been buzzing with talk about the voice pack of their favorite content creator for quite some time now, with players eagerly anticipating its arrival. All three are likely to make it into the game with the highly awaited BGMI 2. 0 update since the previous two featured three of these.
Since these are leaks, gamers must take them with a pinch of salt. Krafton is yet to announce details about the new voice pack or its release. However, players can be hopeful that these will soon be making their way into the game and for the time being can patiently wait for the same.
Readers must remember that there has been no official news from Krafton, hence they should take the leaks with a pinch of salt.
|
english
|
Pakistan cricketer Umar Akmal has recently returned to the national squad but his returning experience is hugely horrific. On last Monday (7th October) night, Akmal scored another golden duck in the home T20I match against Sri Lanka and has moved on top of the unwanted T20 cricket records.
It was the second T20I of the three-match T20I series between Pakistan and Sri Lanka at Lahore. Before that match, Sri Lanka was leading this three-match T20I series by 1-0 after winning the opening T20I of this series by 64 runs. While Pakistan batsmen totally failed in that innings, Umar Akmal scored a golden duck in his international cricket return.
The second T20I also had a similar picture. After Sri Lanka managed to put 182/6 (20 overs) on the board in the first innings, Pakistan were bundled out for 147 runs (19 overs). The visitors Sri Lanka won that match by 35 runs and secured the series with one match to go. After winning this match, the visitors are leading this series by 2-0.
Like the first T20I, Umar Akmal once again disappointed with the bat by scoring another golden duck. Before this T20I series, Akmal played his last T20I in September 2016. While he managed a fighting return in ODI cricket in last March, this time he has disappointed hugely.
After scoring the latest T20I duck, Umar Akmal is now the jointly leading the list of most T20I ducks. The latest one was his 10th T20I duck, and it has equalled the record of former Sri Lankan cricketer Tillakaratne Dilshan. Before Umar Akmal’s latest T20I duck, Dilshan was lonely holding this record with 10 T20I ducks.
Meanwhile, the latest one was also Umar Akmal’s sixth golden duck in T20I career. It is also the joint-most golden T20I ducks for a batsman. Former Pakistan cricketer Shahid Afridi is also in the leader list with six golden ducks in T20I cricket.
On the other hand, Umar Akmal is now standing in the second position of most ducks in T20 career list. Surpassing Caribbean star Chris Gayle (26 T20 ducks), the 29-year-old Akmal has now managed 27 ducks in T20 career. Another Caribbean cricketer Dwayne Smith is leading this list with 28 T20 ducks.
|
english
|
Harikrishnan Street, Kushaldoss Street, Duraiarasan Street and Bharathiar Street at Kaveri Rangan Nagar in Saligramam have been taken over by parked vehicles, including those left abandoned. Over the last five years, their numbers have been on the increase. On some sections of these streets, vehicles are parked on both the sides, making it difficult for residents to take their vehicles out. During afternoon and late-evening hours, anti-social elements use these vehicles as cover while consuming alcohol. Liquor bottles can be seen under these vehicles and on the road margins. It is also said that banned substances are sold here.
Before the outbreak of COVID-19 pandemic, when schools were functioning, many girl students had complained confidentially about eve-teasing and other unpleasant experiences. They said they found these roads unsafe and would therefore move around only in groups.
Further, residents who reached the owners of these vehicles and asked them to have their vehicles removed, faced threats from the latter.
Further, garbage is being dumped and conservancy workers are unable to carry out thorough sweeping due to these vehicles. A few residents have complained about this at the online grievance redressal platforms of various government departments. But these complaints were closed without solving these issues.
|
english
|
import React, { useContext } from 'react';
import Button from '@material-ui/core/Button';
import Dialog from '@material-ui/core/Dialog';
import DialogContent from '@material-ui/core/DialogContent';
import DialogContentText from '@material-ui/core/DialogContentText';
import DialogTitle from '@material-ui/core/DialogTitle';
import IconButton from '@material-ui/core/IconButton';
import Badge from '@material-ui/core/Badge';
import PlayArrow from '@material-ui/icons/PlayArrow';
import { ListItem, ListItemIcon, ListItemText, TextareaAutosize } from '@material-ui/core';
import CloseIcon from '@material-ui/icons/Close';
import { withStyles } from '@material-ui/core/styles';
import { connect } from "react-redux";
import SystemUpdateAltIcon from '@material-ui/icons/SystemUpdateAlt';
import PostAddIcon from '@material-ui/icons/PostAdd';
import StorageIcon from '@material-ui/icons/Storage';
import { loadDashboardFromNeo4jThunk, loadDashboardListFromNeo4jThunk, loadDashboardThunk } from '../dashboard/DashboardThunks';
import { DataGrid } from '@mui/x-data-grid';
import { Neo4jContext, Neo4jContextState } from "use-neo4j/dist/neo4j.context";
/**
* A modal to save a dashboard as a JSON text string.
* The button to open the modal is intended to use in a drawer at the side of the page.
*/
const styles = {
};
export const NeoLoadModal = ({ loadDashboard, loadDashboardFromNeo4j, loadDashboardListFromNeo4j }) => {
const [loadModalOpen, setLoadModalOpen] = React.useState(false);
const [loadFromNeo4jModalOpen, setLoadFromNeo4jModalOpen] = React.useState(false);
const [text, setText] = React.useState("");
const [rows, setRows] = React.useState([]);
const { driver } = useContext<Neo4jContextState>(Neo4jContext);
const handleClickOpen = () => {
setLoadModalOpen(true);
};
const handleClose = () => {
setLoadModalOpen(false);
};
const handleCloseAndLoad = () => {
setLoadModalOpen(false);
loadDashboard(text);
setText("");
};
function handleDashboardLoadedFromNeo4j(result) {
setText(result);
setLoadFromNeo4jModalOpen(false);
}
const reader = new FileReader();
reader.onload = async (e) => {
setText(e.target.result);
};
const uploadDashboard = async (e) => {
e.preventDefault();
reader.readAsText(e.target.files[0]);
}
const columns = [
{ field: 'id', hide: true, headerName: 'ID', width: 150 },
{ field: 'date', headerName: 'Date', width: 200 },
{ field: 'title', headerName: 'Title', width: 270 },
{ field: 'author', headerName: 'Author', width: 160 },
{
field: 'load', headerName: ' ', renderCell: (c) => {
return <Button onClick={(e) => { loadDashboardFromNeo4j(driver, c.id, handleDashboardLoadedFromNeo4j) }} style={{ float: "right", backgroundColor: "white"}} variant="contained" size="medium" endIcon={<PlayArrow />}>Select</Button>
}, width: 120
},
]
return (
<div>
<ListItem button onClick={handleClickOpen}>
<ListItemIcon>
<IconButton style={{ padding: "0px" }} >
<SystemUpdateAltIcon />
</IconButton>
</ListItemIcon>
<ListItemText primary="Load" />
</ListItem>
<Dialog maxWidth={"lg"} open={loadModalOpen} onClose={handleClose} aria-labelledby="form-dialog-title">
<DialogTitle id="form-dialog-title">
<SystemUpdateAltIcon style={{
height: "30px",
paddingTop: "4px",
marginBottom: "-8px",
marginRight: "5px",
paddingBottom: "5px"
}} /> Load Dashboard
<IconButton onClick={handleClose} style={{ padding: "3px", float: "right" }}>
<Badge badgeContent={""} >
<CloseIcon />
</Badge>
</IconButton>
</DialogTitle>
<DialogContent style={{ width: "1000px" }}>
{/* <DialogContentText> Paste your dashboard file here to load it into NeoDash.</DialogContentText> */}
<div>
<Button
component="label"
onClick={(e) => {
loadDashboardListFromNeo4j(driver, (result) => {setRows(result)});
setLoadFromNeo4jModalOpen(true);
}}
style={{marginBottom: "10px", backgroundColor: "white" }}
color="default"
variant="contained"
size="medium"
endIcon={<StorageIcon />}>
Select From Neo4j
</Button>
<Button
component="label"
// onClick={(e)=>uploadDashboard(e)}
style={{ marginLeft: "10px", backgroundColor: "white", marginBottom: "10px" }}
color="default"
variant="contained"
size="medium"
endIcon={<PostAddIcon />}>
<input
type="file"
onChange={(e) => uploadDashboard(e)}
hidden
/>
Select From File
</Button>
<Button onClick={(text.length > 0) ? handleCloseAndLoad : null}
style={{ color: text.length > 0 ? "white" : "lightgrey", float: "right", marginLeft: "10px", marginBottom: "10px", backgroundColor: text.length > 0 ? "green" : "white" }}
color="default"
variant="contained"
size="medium"
endIcon={<PlayArrow />}>
Load Dashboard
</Button>
</div>
<TextareaAutosize
style={{ minHeight: "500px", width: "100%", border: "1px solid lightgray" }}
className={"textinput-linenumbers"}
onChange={(e) => setText(e.target.value)}
value={text}
aria-label=""
placeholder="Select a dashboard first, then preview it here..." />
</DialogContent>
{/* <DialogActions> */}
{/* </DialogActions> */}
</Dialog>
<Dialog maxWidth={"lg"} open={loadFromNeo4jModalOpen} onClose={(e) => { setLoadFromNeo4jModalOpen(false) }} aria-labelledby="form-dialog-title">
<DialogTitle id="form-dialog-title">
Select From Neo4j
<IconButton onClick={(e) => { setLoadFromNeo4jModalOpen(false) }} style={{ padding: "3px", float: "right" }}>
<Badge badgeContent={""} >
<CloseIcon />
</Badge>
</IconButton>
</DialogTitle>
<DialogContent style={{ width: "800px" }}>
<DialogContentText>If dashboards are saved in your current database, choose a dashboard below.
</DialogContentText>
<div style={{ height: "360px" }}>
<DataGrid
rows={rows}
columns={columns}
pageSize={5}
rowsPerPageOptions={[5]}
disableSelectionOnClick
components={{
ColumnSortedDescendingIcon: () => <></>,
ColumnSortedAscendingIcon: () => <></>,
}}
/></div>
</DialogContent>
</Dialog>
</div>
);
}
const mapStateToProps = state => ({
});
const mapDispatchToProps = dispatch => ({
loadDashboard: text => dispatch(loadDashboardThunk(text)),
loadDashboardFromNeo4j: (driver, uuid, callback) => dispatch(loadDashboardFromNeo4jThunk(driver, uuid, callback)),
loadDashboardListFromNeo4j: (driver, callback) => dispatch(loadDashboardListFromNeo4jThunk(driver, callback)),
});
export default withStyles(styles)(connect(mapStateToProps, mapDispatchToProps)(NeoLoadModal));
|
typescript
|
{"id": "<KEY>", "title": "Matchday 2 on 6 - Match 8 (Type3)", "body": "Choose the ORANGE team below and bet on its victory for the Community!\nThe team not selected will be the RED team by default.\nSee the SportParty3 Champions League rules in our Gitbook: \u00a0https://teaswap.gitbook.io/teaswap/features/sportparties/champions-league", "choices": ["RB Leipzig", "FC Bruges"], "start": 1632156300, "end": 1632840300, "snapshot": "11078256", "state": "closed", "author": "<PASSWORD>", "space": {"id": "tea-swap.eth", "name": "TeaSwap"}, "votes": 16, "votes_data": [{"id": "<KEY>", "voter": "<KEY>", "created": 1632825072, "choice": 1, "space": {"id": "tea-swap.eth"}}, {"id": "<KEY>", "voter": "<KEY>", "created": 1632767155, "choice": 1, "space": {"id": "tea-swap.eth"}}, {"id": "QmeAvz6bKj5rD7k2dES2f4vngpXC9vkCL5aQzVsjx2X1SR", "voter": "<KEY>", "created": 1632595296, "choice": 1, "space": {"id": "tea-swap.eth"}}, {"id": "<KEY>", "voter": "0x6c3E4c56e4F72198582dEb261A7AAdd2B165F486", "created": 1632582937, "choice": 1, "space": {"id": "tea-swap.eth"}}, {"id": "<KEY>", "voter": "0x593c0ea2e2a8B31753B64650DAB91851b0877529", "created": 1632499215, "choice": 1, "space": {"id": "tea-swap.eth"}}, {"id": "QmPpESx71Ur5VcDcTKxCNPpmXZ27mbpQ1kAAharB5mScNo", "voter": "0xde2D49E56A3f96212951f50cF547BB6AE4E9A2D6", "created": 1632402985, "choice": 1, "space": {"id": "tea-swap.eth"}}, {"id": "QmdfWh58qVfvvPXgFpUgk8hB923btZSHf7TictniAMbQ5q", "voter": "0x07A0339e15581ea16dF76A34c73cd1f088Ee27f4", "created": 1632262958, "choice": 1, "space": {"id": "tea-swap.eth"}}, {"id": "QmfM7bUsPP9MrLtAKkoT9Jx8mwd9rpJMhmUecmHfdUBW6y", "voter": "0xACedAC59681eEAe979Edaf3b5C47968E1762e04f", "created": 1632219703, "choice": 2, "space": {"id": "tea-swap.eth"}}, {"id": "<KEY>", "voter": "0x29717eb79B59f9610C036eA50741153a8826d5fF", "created": 1632217687, "choice": 1, "space": {"id": "tea-swap.eth"}}, {"id": "<KEY>", "voter": "0x369660Ee92ff675d4725C8E3eF27244c13ff9E73", "created": 1632214833, "choice": 2, "space": {"id": "tea-swap.eth"}}, {"id": "Qma3h8TiNTsafEsdAKKfR1rZgqvvAmfSviDKQefPDs5npj", "voter": "0xd1148f53a80d81767Ea6f3AF892d142D9629FDa4", "created": 1632175491, "choice": 1, "space": {"id": "tea-swap.eth"}}, {"id": "<KEY>", "voter": "0x816ebC0f5F022B4d3DaDf9f759C218e682661B18", "created": 1632171845, "choice": 1, "space": {"id": "tea-swap.eth"}}, {"id": "<KEY>", "voter": "0xF5A1068dF90515Adc25dD5e551c5Aac37B6d565f", "created": 1632166146, "choice": 2, "space": {"id": "tea-swap.eth"}}, {"id": "<KEY>", "voter": "<KEY>", "created": 1632165247, "choice": 2, "space": {"id": "tea-swap.eth"}}, {"id": "<KEY>", "voter": "<KEY>", "created": 1632163305, "choice": 2, "space": {"id": "tea-swap.eth"}}, {"id": "QmbS1JhQk1XeG9tutdZds3jYNUtE8d1FCBoEifG5fGxRse", "voter": "0x51D23B934438CA00b4f04F41b11660DbB497275a", "created": 1632160517, "choice": 1, "space": {"id": "tea-swap.eth"}}]}
|
json
|
{
"name": "<NAME>",
"raster": "hexagons/durhack2019trans.png",
"description": "DurHack2023 Hex sticker with trans flag colours"
}
|
json
|
---
ms.openlocfilehash: cb43277a112df9927c3e00a3ec91b4bc464788ad
ms.sourcegitcommit: 9b552addadfb57fab0b9e7852ed4f1f1b8a42f8e
ms.translationtype: HT
ms.contentlocale: zh-CN
ms.lasthandoff: 04/23/2019
ms.locfileid: "61663646"
---
LINQ to ADO.NET
|
markdown
|
<reponame>PenguinOfWar/unofficial-emojis
{
"name": "hot_sauce",
"url": "/emojis/3649-hot_sauce/download",
"filename": "hot_sauce.jpg",
"base64": <KEY>"
}
|
json
|
# Storm Apache Kafka integration using the kafka-client jar
This includes the new Apache Kafka consumer API.
Spouts and Bolts that write to and read from Kafka through the kafka-client library.
Please see [here](../../docs/storm-kafka-client.md) for details on how to use it.
|
markdown
|
{
"name": "array-to-archy",
"version": "1.1.0",
"description": "Convert an array to object structure representation which can be used to archy.",
"main": "index.js",
"engines": {
"node": "> 4",
"npm": "> 3"
},
"scripts": {
"add-contributor": "kcd-scripts contributors add",
"lint": "kcd-scripts lint --ignore-path .gitignore",
"test": "./node_modules/.bin/jest --coverage test.js",
"precommit": "npm run lint",
"validate": "kcd-scripts validate",
"setup": "npm install && npm run validate -s"
},
"files": [
"index.js"
],
"keywords": [
"array",
"archy",
"array-to-archy"
],
"author": "<NAME> <<EMAIL>> (https://github.com/rjoydip)",
"license": "MIT",
"dependencies": {},
"devDependencies": {
"archy": "^1.0.0",
"eslint": "^5.2.0",
"eslint-config-standard": "^11.0.0",
"eslint-plugin-import": "^2.13.0",
"eslint-plugin-node": "^7.0.1",
"eslint-plugin-promise": "^3.8.0",
"eslint-plugin-standard": "^3.1.0",
"husky": "^1.0.0-rc.13",
"jest": "^23.4.1",
"kcd-scripts": "^0.36.1"
},
"eslintConfig": {
"extends": "./node_modules/kcd-scripts/eslint.js"
},
"eslintIgnore": [
"node_modules",
"coverage",
"dist"
],
"husky": {
"hooks": {
"pre-commit": "npm run precommit"
}
},
"repository": {
"type": "git",
"url": "https://github.com/rjoydip/array-to-archy.git"
},
"bugs": {
"url": "https://github.com/rjoydip/array-to-archy/issues"
},
"homepage": "https://github.com/rjoydip/array-to-archy#readme"
}
|
json
|
First and foremost, this is a facelift of the BMW 3-series GT, perhaps the most underrated of the Bavarian brand's models in India. It's got as much rear legroom than a 5-series thanks to its near-three-metre wheelbase, and luggage space to rival BMW's X SUVs and with a price that's not too much high. The new bumpers, front and rear, adaptive full-LED headlamps, reprofiled LED taillamps, new alloy wheel designs, classier interior trims, a bit more equipment and the newest version of BMW's 2.0-litre diesel engine, with 190hp, added refinement and smoother power delivery. With 252hp and 350Nm, on paper, this new motor is a clear step up from the 184hp 20i, a worthy successor to the old 30i, and a perfect match for the latest crop of powerful four-cylinder petrol from Mercedes-Benz (GLC 300) and Jaguar (XE 25t). The GT gets four driving modes as standard, Eco Pro, Comfort, Sport and Sport+ and understandably, the first of those isn't very thrilling with its dulled throttle responses and slow, smooth shifts. Comfort is still the better all-around mode and the one you'll find yourself in most of the time. This is because it does get you a little more pep off the line without sacrificing too much by way of the economy. Sport and Sport+ gets you more aggression from the engine and gearbox (the latter disengages the traction control too), a firmer steering and a little more noise from the exhaust.
- Mileage (14)
- Performance (5)
- Comfort (15)
- Engine (10)
- Interior (10)
- Power (9)
Best in Class BMW 320i.
|
english
|
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
<meta name="description" content="Into The Odd Content." />
<title>Into The Odd</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="list.js"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="apple-touch-icon" sizes="180x180" href="/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicons/favicon-16x16.png">
<link rel="manifest" href="/favicons/site.webmanifest">
<link rel="mask-icon" href="/favicons/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="/favicons/favicon.ico">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
<meta name="msapplication-config" content="/favicons/browserconfig.xml">
</head>
<body>
<div class="post">
<div class="row">
<div class="col-md-9 col-lg-offset-2">
<header class="post-header">
<h2 class="post-title">Emergency Primatologist </a></h2>
</header>
<p></p>
<p></p>
<h3 class="post-stats"><b></b></h3>
<h3 class="post-summary"><b>Summary: </b></h3>
<div class="col-xs-12" style="height:10px;"></div>
<h4 class="post-subtext1">A surprising number of apes wander into Bastion's establishment every day.</h4>
<h4 class="post-subtext2">You were always on call to force them out with minimal collateral damage, or at least convince them to act like respectable customers.</h4>
<h4 class="post-subtext3">Take a Monkey Discouragement Rod (d6+d6 CHA damage against primates excluding humans) and an anti-face-ripping mask.</h4>
<h4 class="post-subtext4"></h4>
<article class="post-content">
<p><br /></p>
<table>
<thead>
<tr>
<th>What Was Your Speciality?</th>
</tr>
</thead>
<tbody>
<tr>
<td>£1 Gorillas, large and strong but respecting tradition - You’re very good at appearing bigger and stronger than you really are. You can convincingly copy any form of ritualized combat, if you’ve witnessed it at least once.</td>
</tr>
<tr>
<td>£2 Gibbons, incredibly agile but solve most problems by screaming - You can scream very loudly. If something hoots (or screams) at you, you can hoot back louder.</td>
</tr>
<tr>
<td>£3 Bonobos, constantly lusty - If you want, you can be sexually appealing to any vaguely humanoid creature (bipedal, two arms, two legs, some sort of head)</td>
</tr>
<tr>
<td>£4 Orangutans, unerringly calm - You can always keep a calm facade, regardless of your inner turmoil. You can also stretch your cheeks very far.</td>
</tr>
<tr>
<td>£5 Baboons, vicious and answering only to violence - Your unarmed attacks deal d6 damage to fleshy targets. You can tear faces off on critical damage.</td>
</tr>
<tr>
<td>£6 Macaques, with notoriously sticky fingers - You always subconsciously watch your interlocutors hands. They can’t pickpocket from you or do anything similarly underhanded without you noticing.</td>
</tr>
</tbody>
</table>
<p></p>
<table>
<thead>
<tr>
<th>Where Did You Learn Your Trade?</th>
</tr>
</thead>
<tbody>
<tr>
<td>1 HP You were raised by apes (Species according to table above) - take a runty monkey brother (d6 nails and teeth, DEX 15, 4HP)</td>
</tr>
<tr>
<td>2 HP Trained by a renowned explorer and zoologist - Take a safari outfit, including a pith helmet. It gives you an air of an upper-class gentleman adventurer.</td>
</tr>
<tr>
<td>3 HP A shady correspondence course - Take a worthless, but impressive seeming diploma.</td>
</tr>
<tr>
<td>4 HP Years of observation in the field - Take a notebook full of excitable notes on primate behaviour.</td>
</tr>
<tr>
<td>5 HP You made it up as you went along - Take a collection of scars, with stories to go along with them.</td>
</tr>
<tr>
<td>6 HP Trained by a group of mischievous mock-apes - take a book titled “How to trick a monkey”. All the pages are blank.</td>
</tr>
</tbody>
</table>
</article>
<div class="col-xs-12" style="height:30px;"></div>
<h4 class="post-genre"> <b>genre: </b></a></p></h4>
<h4 class="post-cost"> <b>cost: </b></a></p></h4>
<p></p>
<h4 class="post-category"> <b>category: </b><a href="/intotheodd/failed-careers.html"><b>failed-careers</b></a></h4>
<h4 class="post-source"><b>source: </b><a href="https://discordapp.com/channels/499193406828838922/674544134798966806/722766040857313370"><b>discord</b></a></h4>
<h4 <p><i>return to the <a href=https://yochaigal.github.io/intotheodd/><b>main page</b></a>.</i></p> </h4>
<div class="col-xs-12" style="height:50px;"></div>
<script type="text/javascript" src="entry.js"></script>
</div>
</div>
</div>
</body>
</html>
|
html
|
For startups, achieving unicorn status is a big deal. Companies valued at more than $1 billion look more formidable to competitors, customers, and recruits---and less like the fly-by-night startups they may actually be. Thus, for the past three years, startup founders have asked investors to grant them billion-dollar valuations, regardless of whether they’re worth that by any traditional business metric.
Now, a study from the National Bureau of Economic Research concludes that, on average, unicorns are roughly 50 percent overvalued. The study, by researchers at the University of British Columbia and Stanford, examined 135 startups valued at $1 billion or more. Of those, the researchers estimate that nearly half---65---should be more fairly valued at less than $1 billion.
Why such big disparities? In order to get to unicorn status, most of the companies accepted funding with strings attached, terms that reward the latest investors at the expense of early investors and employee shareholders. Those conditions include separate share classes, which give some shareholders more rights than others; veto rights, which allow certain investors to vote against an IPO priced below the last private valuation; and IPO ratchets, which give certain investors more shares in the event of a disappointing IPO price.
The most significant terms are liquidation preferences, which mandate that, in the event of a sale or IPO, the company’s most recent investors earn a certain return---ranging from their principle to, in extreme cases, four times their initial investment----before any other shareholders receive anything. That can mean that if the company doesn’t sell for a multiple of its last valuation, shares owned by employees and early investors are worthless.
Startup founders often accept these terms knowing they may be able to successfully negotiate a good outcome for themselves in an acquisition, even if the acquisition is disappointing. For example, the CEO of Practice Fusion, a medical-records startup which recently sold to AllScripts for $100 million---significantly less than its last reported valuation---is set to make millions in the deal while mid-level employees’ shares were worthless, according to CNBC. The company has had as many as 450 employees but had shrunk to half that by the time of the sale.
Likewise for student-loan startup Earnest, which sold to Navient for half of its last private valuation in October. Employees, some of whom paid thousands of dollars in taxes to exercise their stock options, got nothing in the sale. But CEO Louis Beryl and co-founder Ben Hutchinson negotiated a package of up to $10 million each including earn-outs as part of the deal, according to several people familiar with the situation. Three other Earnest executives earned “parachute” payments, and fewer than a dozen employees holding preferred shares earned small payouts. But mid-level employees, most of whom owned common shares, were left with nothing. Earnest had 150 employees at the time of the sale. A representative from Earnest declined to comment on the deal’s terms.
This disparity in outcomes raises important questions about how startups value themselves. Typically, a startup’s valuation is calculated based on the value of the latest shares issued. But if some shareholders, including employees, are less likely to see a payout than other shareholders, shouldn’t those shares be worth less? And if most of a startup’s shares are worth less, shouldn’t that difference be reflected in the startup’s valuation?
Gornall says it’s important that employees---the Kia owners, essentially---who may think their shares are worth more than they are understand their company’s share structure. “If professional investors are misinterpreting these terms that’s one thing, but real people are basing their lives around this stuff,” he says.
Gornall and co-author Ilya Strebulaev of Stanford set out to assess how different share structures affect a company’s valuation. With a team of three lawyers and three law-school students, they sifted through Certificate of Incorporation filings in Delaware. Those rarely reviewed documents contain specific deal terms, but they’re hard to interpret: They don’t use standard language, companies often omit information, and they only reflect share sale authorization---not the number of shares actually issued. In some cases, filings from the company’s most recent funding were not available.
To estimate a value for each company, the authors considered a wide range of potential outcomes, from IPO and acquisition to failure. They took into account the volatility of venture investment returns, the rate at which venture-backed startups exit, the probability of IPO, and prevailing interest rates. For the exit rate and IPO probabilities, the researchers used data from more than 10,000 companies spanning decades from VentureSource.
They found that the biggest unicorns, including Uber, Airbnb, WeWork, Palantir, Pinterest, Lyft, and Dropbox---have the fewest special terms attached to their shares, and therefore tend to be less overvalued by their formula. All of those companies were overvalued by 21 percent or less, according to the study. (SpaceX is an exception; its $10.5 billion valuation from 2015 is overvalued by 59 percent due to terms that favor its most recent investors.)
Augmented-reality company Magic Leap was valued at $4.5 billion following a 2016 round of funding. But the funding came with strings: some shares are granted seniority over others in a sale, and certain investors are guaranteed a payout in an IPO. Considering those factors, the study estimates that Magic Leap should have been more fairly valued at $3 billion, one-third less. A Magic Leap representative declined to comment.
Student-loan startup SoFi, with deal terms including cumulative dividends (meaning certain investors must earn a certain dividend before others are paid out), liquidation preferences, and an IPO return threshold, was overvalued by 27 percent in its $3.6 billion valuation in 2015, according to the study Ecommerce site Fanatics, worth $2.7 billion in 2015, is overvalued by 64 percent due to seniority and an IPO return threshold. A SoFi representative declined to comment and Fanatics did not respond to a request for comment.
The study included companies that have since been bought or gone public. Meal-kit delivery service Blue Apron, which carried a private valuation of $2.1 billion, had a fair value of $1.6 billion, according to the study. The company went public in mid-2017 at a valuation between those two figures---$1.89 billion. Since then, Blue Apron’s CEO and co-founder has resigned and the company’s struggles to retain customers have sent its market capitalization down to $577 million.
As their name implies, holders of preferred shares get preferences over other shareholders. But Gornall and Strebulaev determined that some deal terms hurt preferred shareholders as well: In 66 out of the 135 companies studied, new investors were also “senior to” (meaning they get paid out first) some existing preferred shareholders. In 43 of the companies, new investors took preference over all existing shareholders, including preferred shareholders.
The differences in terms are often not clear when shares are sold on the secondary market, either. The study notes that secondary sales of common stock in Wish, an ecommerce site valued at an estimated $3.7 billion in its 2015 round of funding, do not warn potential investors that the company’s preferred shareholders have strong protections. Wish investor Digital Sky Technologies retains the right to get its money back in any exit other than an IPO and the right to keep its preferred liquidation preference in an IPO unless that IPO provides the firm a 150% return. That means if Wish is sold for $750 million---a deal that would rank among the country’s top e-commerce sales---preferred investors like DST would get their money back but common shareholders would get nothing. Wish did not respond to a request for comment.
Not every startup has accepted onerous terms. Roy Bahat, head of investment firm Bloomberg Beta, says his firm has had at least one portfolio company turn down a billion-dollar valuation, opting instead for an investor offering standard deal terms at a lower price. “When a startup takes a higher valuation in exchange for complicated terms I always start worrying that they're in trouble," he says.
Betterment, a New York City-based financial advisory startup that has raised $275 million in venture funding, fielded investment offers that valued the company at more than $1 billion. But those offers came with unattractive deal terms including IPO ratchets, and the company opted to take the lower valuation, sans terms. “Whenever we’ve been raising capital, its been an absolute priority to secure terms that were as clean as possible for the benefit of our team,” says CEO Jon Stein.
A study found that many private companies valued at more than $1 billion should carry smaller valuations, because they conditions attached to some of their shares make other shares less valuable. Here's a sample of the disparities identified in the study:
- If the unicorn bubble bursts, employees will suffer the most.
- Venture capitalists plan to invest heavily in artificial intelligence and blockchain-related companies this year.
- Startups are racing to create cancer screens from DNA in blood.
|
english
|
package com.lambdaschool.school.service;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.lambdaschool.school.SchoolApplicationTest;
import com.lambdaschool.school.SchoolApplicationTests;
import com.lambdaschool.school.model.Course;
import com.lambdaschool.school.model.Instructor;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.MockitoAnnotations;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import javax.persistence.EntityNotFoundException;
import static org.junit.Assert.*;
@RunWith(SpringRunner.class)
@SpringBootTest(classes = SchoolApplicationTest.class)
public class CourseServiceImplTest
{
@Autowired
private CourseService courseService;
@Autowired
private InstructorService instructorService;
@Before
public void setUp() throws Exception
{
MockitoAnnotations.initMocks(this);
}
@After
public void tearDown() throws Exception
{
}
@Test
public void deleteFound()
{
courseService.delete(4);
assertEquals(5, courseService.findAll().size());
}
@Test (expected = EntityNotFoundException.class)
public void deleteNotFound()
{
courseService.delete(399);
assertEquals(6, courseService.findAll().size());
}
@Test
public void findCourseById()
{
assertEquals("JavaScript", courseService.findCourseById(2).getCoursename());
}
@Test
public void save()
{
Instructor newInst = new Instructor("Mike");
instructorService.save(newInst);
Course newCourse = new Course("Testing", newInst);
Course addedCourse = courseService.save(newCourse);
Course foundCourse = courseService.findCourseById(addedCourse.getCourseid());
assertEquals(addedCourse.getCourseid(), foundCourse.getCourseid());
}
}
|
java
|
<reponame>ZajithCorro/batata-bit
:root {
--bitcoin-orange: #f7931a;
--soft-orange: #ffe9d5;
--secondary-blue: #1a9af7;
--soft-blue: #e7f5ff;
--warm-black: #201e1c;
--black: #282623;
--grey: #bababa;
--off-white: #faf8f7;
--just-white: #fff;
}
* {
box-sizing: border-box;
padding: 0;
margin: 0;
scroll-behavior: smooth;
}
html {
font-size: 62.5%;
font-family: 'DM Sans', sans-serif;
}
header {
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
width: 100%;
min-width: 320px;
height: 334px;
text-align: center;
background: linear-gradient(207.8deg, #201e1c 16.69%, #f7931a 100%);
}
header img {
width: 150px;
height: 24px;
margin-top: 42px;
align-self: center;
}
.header--title-container {
width: 90%;
min-width: 288px;
max-width: 900px;
height: 218px;
margin-top: 36px;
text-align: center;
align-self: center;
}
.header--title-container h1 {
font-size: 2.4rem;
font-weight: bold;
line-height: 2.6rem;
color: var(--just-white);
}
.header--title-container p {
margin-top: 25px;
font-size: 1.4rem;
font-weight: 500;
line-height: 1.8rem;
color: var(--soft-orange);
}
.header--title-container .header--button {
position: absolute;
display: flex;
width: 229px;
height: 48px;
top: calc(100% - 24px);
left: calc(50% - 114.5px);
padding: 15px;
align-items: center;
justify-content: space-around;
background: var(--off-white);
color: var(--warm-black);
border-radius: 4px;
box-shadow: 0px 4px 8px rgba(89, 73, 30, 0.16);
font-size: 1.4rem;
font-weight: bold;
text-decoration: none;
}
.header--button span {
display: inline-block;
width: 13px;
height: 8px;
background-image: url('./assets/icons/down-arrow.svg');
}
main {
width: 100%;
height: auto;
background-color: var(--off-white);
}
.main--exchange-container {
width: 100%;
height: auto;
padding-top: 80px;
padding-bottom: 30px;
text-align: center;
}
.main--exchange-title {
width: 90%;
min-width: 288px;
max-width: 900px;
margin: 0 auto;
}
.main--exchange-container .background--img {
width: 200px;
height: 200px;
margin: 0 auto;
margin-bottom: 50px;
background-image: url('./assets/img/Bitcoin.svg');
background-position: center;
background-size: cover;
background-repeat: no-repeat;
/* Shorthand */
/* background: url('./assets/img/Bitcoin.svg') center/cover no-repeat; */
}
.main--exchange-title h2 {
margin-bottom: 24px;
font-size: 2.4rem;
font-weight: bold;
line-height: 2.6rem;
color: var(--black);
}
.main--exchange-title p {
margin-bottom: 48px;
font-size: 1.4rem;
color: #757575;
}
.main--currency-table {
width: 70%;
min-width: 235px;
max-width: 500px;
height: 360px;
margin: 0 auto;
}
.main--currency-table .currency--table-title {
margin: 0 auto 15px auto;
font-size: 1.8rem;
font-weight: bold;
line-height: 2.3rem;
color: var(--bitcoin-orange);
max-width: 300px;
}
.currency--table-container {
position: relative;
width: 90%;
min-width: 230px;
max-width: 300px;
height: 250px;
margin: 0 auto;
}
.currency--table-container table {
width: 100%;
height: 100%;
border-radius: 15px;
overflow: hidden;
}
.currency--table-container td {
width: 50%;
font-size: 1.6rem;
font-weight: 500;
line-height: 1.9rem;
color: var(--grey);
background-color: var(--just-white);
}
.currency--table-container tr td:nth-child(1) {
text-align: left;
padding: 0 15px;
}
.currency--table-container tr td:nth-child(2) {
font-size: 1.4rem;
font-weight: normal;
line-height: 1.7rem;
color: #757575;
}
.currency--table-container tr td .trending {
display: inline-block;
width: 15px;
height: 15px;
margin-left: 10px;
background-repeat: no-repeat;
background-size: cover;
background-position: center;
}
.currency--table-container tr td .trending.up {
background-image: url('../assets/icons/trending-up.svg');
}
.currency--table-container tr td .trending.down {
background-image: url('./assets//icons/trending-down.svg');
}
.currency--table-date {
width: 190px;
height: 30px;
margin: 0 auto;
margin-top: 16px;
padding: 8px;
background-color: var(--soft-orange);
border-radius: 8px;
}
.currency--table-date p {
font-size: 1.2rem;
line-height: 1.5rem;
color: var(--warm-black);
}
.currency--table-next,
.commission--table-prev {
background-image: url('./assets/icons/right-arrow.svg');
background-repeat: no-repeat;
display: block;
width: 12px;
height: 12px;
position: absolute;
top: calc(50% - 6px);
cursor: pointer;
}
.currency--table-next {
right: -10%;
}
.d-none {
display: none;
}
/* -- Main comission table -- */
.main--commission-table {
width: 70%;
min-width: 235px;
max-width: 500px;
height: 360px;
margin: 0 auto;
}
.main--commission-table .commission--table-title {
margin: 0 auto 15px auto;
font-size: 1.8rem;
font-weight: bold;
line-height: 2.3rem;
color: var(--secondary-blue);
max-width: 300px;
}
.commission--table-container {
width: 90%;
min-width: 230px;
max-width: 300px;
margin: 0 auto;
position: relative;
height: 250px;
}
.commission--table-prev {
left: -10%;
transform: rotate(180deg);
}
.commission--table-container .commission--table-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
border-radius: 15px;
overflow: hidden;
}
.commission--table-container li {
list-style: none;
border: 1px solid var(--off-white);
background-color: var(--just-white);
padding: 20px 15px;
}
.commission--table-container li:nth-child(odd) {
font-size: 1.6rem;
font-weight: 500;
line-height: 1.9rem;
color: var(--grey);
text-align: left;
}
.commission--table-container li:nth-child(even) {
font-size: 1.4rem;
line-height: 1.9rem;
color: #757575;
text-align: center;
}
.commission--table-date {
width: 190px;
height: 30px;
margin: 0 auto;
margin-top: 16px;
padding: 8px;
background-color: #e7f5ff;
border-radius: 8px;
}
.commission--table-date p {
font-size: 1.2rem;
line-height: 1.5rem;
color: var(--warm-black);
}
.main--product-detail {
position: relative;
width: 100%;
min-width: 320px;
height: auto;
padding: 20px 16px;
background-color: var(--warm-black);
}
.product-detail--batata-logo {
position: absolute;
background-image: url('./assets/icons/batata.svg');
background-repeat: no-repeat;
width: 40px;
height: 25px;
top: -12.5px;
left: calc(50% - 20px);
}
.product--detail-title {
width: 90%;
min-width: 288px;
height: auto;
margin: 44px auto 32px;
text-align: center;
}
.product--detail-title h2 {
margin-bottom: 20px;
font-size: 2.4rem;
font-weight: bold;
line-height: 2.6rem;
color: var(--just-white);
}
.product--detail-title p {
font-size: 1.4rem;
font-weight: 500;
line-height: 1.8rem;
color: #808080;
}
.product--detail-card {
width: 100%;
min-width: 288px;
max-width: 400px;
height: 150px;
margin: 16px auto;
padding: 16px 18px;
background: #282623;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.16);
border-radius: 4px;
}
.product--detail-card .icon-card {
display: inline-block;
width: 20px;
height: 20px;
margin-bottom: 12px;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
.product--detail-card .icon-card.clock {
background-image: url('./assets/icons/clock.svg');
}
.product--detail-card .icon-card.eye {
background-image: url('./assets/icons/eye.svg');
}
.product--detail-card .icon-card.dolar {
background-image: url('./assets/icons/dollar-sign.svg');
}
.product--detail-card .icon-card.check {
background-image: url('./assets/icons/check-circle.svg');
}
.product--detail-card .product--card-title {
margin-bottom: 10px;
font-size: 1.8rem;
line-height: 1.8rem;
font-weight: bold;
color: var(--just-white);
}
.product--detail-card .product--card-body {
font-size: 1.4rem;
font-weight: 500;
line-height: 1.8rem;
color: #808080;
}
.bitcoin--img-container {
width: 100%;
min-width: 320px;
height: 50vh;
background-image: url('./assets/img/bitcoinbaby2x.jpg');
background-position: center;
background-size: cover;
background-repeat: no-repeat;
}
.bitcoin--img-container h2 {
padding-top: 64px;
font-size: 2.4rem;
font-weight: bold;
line-height: 2.6rem;
color: var(--just-white);
text-align: center;
}
.main--plans-container {
width: 100%;
min-width: 320px;
padding: 64px 0;
text-align: center;
}
.main--plans-container .plans--tile {
width: 90%;
min-width: 288px;
height: auto;
margin: 0 auto;
}
.main--plans-container .plans--tile h2 {
font-size: 2.4rem;
line-height: 2.6rem;
font-weight: bold;
color: var(--warm-black);
}
.main--plans-container .plans--tile p {
margin-top: 24px;
font-size: 1.4rem;
font-weight: 500;
line-height: 1.8rem;
color: #757575;
margin-bottom: 40px;
}
.plans--container-slider {
display: flex;
height: 316px;
overflow-x: scroll;
overscroll-behavior-x: contain;
scroll-snap-type: x proximity;
margin: 0 20px;
}
.plans--container-card {
position: relative;
scroll-snap-align: center;
width: 70%;
min-width: 190px;
max-width: 300px;
height: 250px;
margin: 20px 10px 0;
padding: 24px 20px;
background-color: var(--just-white);
box-shadow: 0px 4px 8px rgba(89, 73, 30, 0.16);
border-radius: 15px;
}
.recommended {
position: absolute;
width: 120px;
height: 31px;
top: -15px;
left: calc(50% - 60px);
background-color: var(--bitcoin-orange);
color: var(--just-white);
font-size: 1.2rem;
font-weight: bold;
line-height: 1.5rem;
padding: 8px;
border-radius: 8px;
}
.plan--info-container .plan--card-title {
margin-top: 10px;
font-size: 1.4rem;
font-weight: 500;
line-height: 1.8rem;
color: black;
}
.plan--info-container .plan--card-price {
margin: 8px 0 16px 0;
font-size: 5.2rem;
font-weight: bold;
display: flex;
flex-direction: row;
justify-content: center;
}
.plan--info-container .plan--card-price span {
font-size: 1.2rem;
font-weight: 300;
margin-top: 10px;
margin-right: 5px;
}
.plan--info-container .plan--card-saving {
font-size: 1.2rem;
line-height: 1.5rem;
color: #757575;
font-weight: 500;
}
.plan--info-container .plan--card-ca {
width: 150px;
height: 48px;
margin-top: 20px;
padding: 12px 16px;
background-color: var(--off-white);
border: 2px solid var(--bitcoin-orange);
color: var(--warm-black);
border-radius: 4px;
font-size: 1.4rem;
font-weight: bold;
line-height: 1.8rem;
}
.plan--info-container .plan--card-ca span {
background-image: url('./assets/icons/orange-right-arrow.svg');
width: 20px;
height: 20px;
display: inline-block;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
vertical-align: text-bottom;
}
footer {
display: flex;
justify-content: space-evenly;
align-items: center;
width: 100%;
height: 150px;
background-color: var(--bitcoin-orange);
}
footer ul {
list-style: none;
}
footer li {
margin: 8px 0;
}
footer li a {
text-decoration: none;
color: var(--just-white);
font-weight: 500;
font-size: 1.4rem;
line-height: 1.8rem;
}
|
css
|
<filename>node_modules/grunt-contrib-htmlmin/package.json<gh_stars>0
{
"name": "grunt-contrib-htmlmin",
"description": "Minify HTML",
"version": "0.3.0",
"author": {
"name": "<NAME>",
"url": "http://gruntjs.com/"
},
"repository": {
"type": "git",
"url": "git://github.com/gruntjs/grunt-contrib-htmlmin"
},
"licenses": [
{
"type": "MIT",
"url": "https://github.com/gruntjs/grunt-contrib-htmlmin/blob/master/LICENSE-MIT"
}
],
"engines": {
"node": ">= 0.10.0"
},
"scripts": {
"test": "grunt test"
},
"dependencies": {
"chalk": "~0.4.0",
"html-minifier": "~0.6.0",
"pretty-bytes": "~0.1.0"
},
"devDependencies": {
"grunt": "~0.4.2",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-internal": "~0.4.4",
"grunt-contrib-jshint": "~0.10.0",
"grunt-contrib-nodeunit": "~0.3.0"
},
"peerDependencies": {
"grunt": "~0.4.0"
},
"keywords": [
"gruntplugin",
"html",
"min",
"minify",
"compress"
],
"files": [
"tasks",
"LICENSE-MIT"
],
"readme": "# grunt-contrib-htmlmin v0.3.0 [](https://travis-ci.org/gruntjs/grunt-contrib-htmlmin)\n\n> Minify HTML\n\n\n\n## Getting Started\nThis plugin requires Grunt `~0.4.0`\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-contrib-htmlmin --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-contrib-htmlmin');\n```\n\n\n\n\n## Htmlmin task\n_Run this task with the `grunt htmlmin` command._\n\nMinifies HTML using [html-minifier](https://github.com/kangax/html-minifier). Bugs regarding the output should be reported [here](https://github.com/kangax/html-minifier/issues/new).\n\n### Options\n\nSee the html-minifier [options](https://github.com/kangax/html-minifier#options-quick-reference).\n\n#### Example config\n\n```javascript\ngrunt.initConfig({\n htmlmin: { // Task\n dist: { // Target\n options: { // Target options\n removeComments: true,\n collapseWhitespace: true\n },\n files: { // Dictionary of files\n 'dist/index.html': 'src/index.html', // 'destination': 'source'\n 'dist/contact.html': 'src/contact.html'\n }\n },\n dev: { // Another target\n files: {\n 'dist/index.html': 'src/index.html',\n 'dist/contact.html': 'src/contact.html'\n }\n }\n }\n});\n\ngrunt.registerTask('default', ['htmlmin']);\n```\n\n\n## Release History\n\n * 2014-05-05 v0.3.0 Drop node.js 0.8 support. Updated to htmlmin 0.6.0.\n * 2014-02-09 v0.2.0 Rewrite task. Drop concat support.\n * 2013-04-06 v0.1.3 Fail target when minify encounters an error.\n * 2013-04-05 v0.1.2 Update html-minifier which fixes IE conditional comments and prefixed HTML elements `<ng-include>` `<ng:include>`.\n * 2013-02-18 v0.1.1 First official release for Grunt 0.4.0.\n * 2013-01-30 v0.1.1rc7 Updating grunt/gruntplugin dependencies to rc7. Changing in-development grunt/gruntplugin dependency versions from tilde version ranges to specific versions.\n * 2013-01-09 v0.1.1rc5 Updating to work with grunt v0.4.0rc5. Switching to this.filesSrc api.\n * 2012-11-01 v0.1.0 Initial release.\n\n---\n\nTask submitted by [<NAME>](http://github.com/sindresorhus)\n\n*This file was generated on Mon May 05 2014 02:02:08.*\n",
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/gruntjs/grunt-contrib-htmlmin/issues"
},
"homepage": "https://github.com/gruntjs/grunt-contrib-htmlmin",
"_id": "grunt-contrib-htmlmin@0.3.0",
"_from": "grunt-contrib-htmlmin@0.3.0"
}
|
json
|
On the one-year anniversary of Edward Snowden's first NSA document leaks, Bahaa Nasr spent the day in Beirut, teaching a roomful of Middle East activists how to thwart the kind of government-backed spying that Snowden so shockingly exposed.
As a project manager for the Institute for War & Peace Reporting's Cyberarabs project, Nasr's job is to keep journalists and activists safe from snoops. Since 2010, he has taught more than 400 activists the ins and outs of digital security, how to use a virtual private network and the TOR anonymous browser, how to avoid getting hacked, how to recover files, how to properly delete files, and how to encrypt them so that they can be shared outside of the prying eyes of governments.
>You can't easily encrypt documents using the net's biggest file sharing services, including those from Google, Microsoft, and Dropbox.
There are so many security tools he and his students can use to guard themselves against NSA and other government snoops, who have ways of accessing so many parts of the internet. But Nasr says there's a big hole in this toolkit. You can't easily encrypt documents using the net's biggest file sharing services, including those from Google, Microsoft, and Dropbox. And, for Nasr, this shouldn't be the case. After all, encryption is offered by so many underground file-sharing sites, including Mega, the service from swashbuckling internet entrepreneur Kim Dotcom.
Last week, Google announced that it's working on a browser plug-in that can encrypt the messages you send via Gmail and other email services so that, even if the NSA gained access to the machines running these services, it couldn't read your correspondence. Even Google itself wouldn't be able to read them. But file sharing is another matter. You still can't encrypt files using the company's documents-editing-and-sharing service Google Drive. And the same goes for many similar services. "This is something that should be done. Google should not be able to read my files. Dropbox should not be able to reach my files," Nasr says. "I don't know why they don't provide better security for the files."
Google, Dropbox and Microsoft do encrypt communications as they're moving from your computer to Google's servers. And following the NSA revelations, Google and Microsoft have also taken new steps to protect information when it's moving from between their own data centers. But for the truly paranoid, the best solutions is to use open-source software to encrypt the file on your computer before it's uploaded to Google or Microsoft's networks. That way, if someone -- the NSA perhaps -- compromises Google's network, it still can't read your stuff.
But doing that kind of encryption has become a little trickier of late. The folks who develop one of Nasr's go-to encryption programs, TrueCrypt, abruptly pulled the plug on their open source project a few weeks ago. Now they're warning that it's insecure. For now, he's still teaching his activists about TrueCrypt, but he's hoping for something better. That's where Google or Microsoft or Dropbox could step in with new encryption software for end users, something similar to the End-to-End code Google just released for Gmail and other web mail services.
Given the concerns that consumers and businesses have about the cloud, it's surprising that this hasn't already happened, particularly when you see encryption on a site like Mega. Nasr doesn't recommend Mega because of Dotcom's past troubles with the law. Dotcom launched Mega last year after the feds shuttered his previous file-sharing service, Megaupload, and charged him and his business partners with criminal copyright infringement and other crimes. But other small name sites, such as Wuala and SpiderOak, offer reliable encryption that he's comfortable with.
SpiderOak occasionally gets calls from law enforcement, requesting access to user files, but there's simply nothing that the company can do, says Ethan Oberman, the company's CEO. "Even if we wanted to betray the trust of our users, we couldn't," he says. "We don't have the encryption keys."
>'Even if we wanted to betray the trust of our users, we couldn't. We don't have the encryption keys.'
Google, Microsoft and Dropbox declined to comment for this story, but there are a few business reasons why the big vendors might want to avoid developing their own file encryption software. It's tricky to do encryption right -- security experts we spoke with say that they're not convinced anyone does cloud encryption in a completely secure way. Most users don't demand it. And encryption software is notoriously hard to use.
That last point is probably the deal-breaker for most cloud providers right now. Imagine Google Drive with no search capabilities, or Dropbox with no preview. None of those features would work with encrypted files, because they'd be unreadable by Google and Dropbox's server software. And if Google doesn't have the encryption keys it can't help you out if you lose a password. If you lose your SpiderOak password, for example, you lose your documents permanently, Oberman says.
And there's a last point. Encrypted files are more expensive to store because companies like dropbox can't identify the encrypted version of a popular movie or song and store one copy of it that's shared between users. "[T]hat’s the economy of scale storage providers depend on," says Nate Lawson, a cryptography expert and the founder of SourceDNA. "They only want to store one copy of the Frozen DVD, not thousands."
|
english
|
Over two years have passed since the launch of Windows 10, and well over half a billion devices have the operating system software installed. There have been a lot of improvements in security over earlier versions of Windows, but as is the case with all software, vulnerabilities exist.
While experts continue to find security issues in Windows 10 itself, other issues come from the interaction of devices, applications and cloud services.
With some features like speech recognition and personalized services, the issue isn’t always that there’s an immediate security threat; the issue revolves around what level of privacy the user expects, and how to protect personal information.
Taking control over Windows 10 features can help prevent some common security issues. Some of the basics of securing your system, based on Windows 10 Home Edition Fall Creators Update (version 1709, 2017) are the same, but there are also some new additions worth looking into. First, the familiar – Windows Hello and the startup screen you get after booting up your computer.
The convenience of tablets, notebooks, and other mobile devices is undeniable. There are more than three times as many notebooks and tablets sold every year, compared to desktop PCs. Given that people use their devices in public places like coffee shops and shared workplaces, using passwords and lockscreens is essential to keeping Windows 10 devices locked down from unauthorized use.
Since the introduction of Windows 10, Windows Hello has offered the ability to use facial recognition technology in place of passwords and fingerprint readers that come on some computers. It’s definitely convenient, but consider that there might be a risk – perhaps slight – that the system can be tricked. Researchers have shown that the facial recognition technology in versions of Windows 10 prior to Windows Fall Creators Update (build 1703 or 1709) can be tricked into authenticating the user by using a photo of the user placed in front of the device’s camera.
Even if you’ve upgraded to the latest build, be sure to set up Windows Hello again to ensure that you’re using the most up-to-date settings and data.
To set up Windows Hello with biometric recognition, check first to see if your device is supported. Some devices and applications are listed on this Microsoft website.
Select the Start button, then select Settings > Accounts > Sign-in options to get ready to set up Windows Hello. In the Windows Hello box, there are options for face, fingerprint, or iris scans if your PC has a fingerprint reader or a camera that supports these functions.
If you prefer to be a bit more old-fashioned or, as is the case with our test computer, your device doesn’t support Windows Hello,then make sure to set up a password or PIN.
Don’t forget to set the option to Require sign-in for When PC Wakes from sleep. That will ensure that an unauthorized user can get access after you’ve stepped away from your device.
Windows Defender is still the central location for security functions, with the addition of a relatively new feature called Controlled folder access. It might not sound like a security feature, but it was added to address the growing problem of ransomware. What is ransomware? It is essentially a form of malware whose purpose is to extort money from the victim by “locking” files using encryption and preventing the user from accessing her machine.
Controlled folder access is designed to prevent unauthorized access to important files. It does this by only allowing authorized applications to access data. Malicious files and scripts are denied access to folders, and Windows shows an alert when an unapproved application attempts to access or modify your files.
To turn on the feature, start by opening the Windows Defender Security center by clicking the shield icon in the task bar. Next, click the Virus and threat protection icon on the left side menu bar or its tile to the right.
The window will show a switch for Controlled folder access, which you can now turn On.
Most commonly used folders are protected, including Documents, Pictures, Music, and Videos. If you want to add other folders, including those on external drives, click on Add a protected folder and name the path to be protected.
If an unauthorized application tries to access or modify files in the protected folders, this warning is displayed:
Criminals aren’t the only ones trying to install malware on your computer. Sometimes, users such as young children can inadvertently install applications that cause problems. Another step for locking down Windows 10 is to change permission on which apps can get installed on the computer. With Windows 10 Creators Update, there is an option to only allow software from the Windows Store to be installed.
To set download permission, go to Settings > Apps & Features.
At the top of the window, you will see the Installing Apps setting.
There are three choices. Allow apps from anywhere is the default choice, but if there are young or less tech-savvy users you should consider enabling the Warn me before installing apps from outside the Store option.
This will show a warning before the installation can proceed. As long as you have set a separate account where there is only one user with administrator privileges, the other standard user accounts will need permission from the administrator to continue.
The setting for Allow apps from the Store only promises to offer an additional level of security, in that Microsoft is doing more to check the authenticity and trustworthiness of software in its store. Even apps that are checked might have security flaws, but at least (hopefully) most malicious apps will be filtered out.
Security experts talk about “layered security” as a way to protect computers and their data. It basically means that effective security means using several methods of protection to make it harder for bad guys to do you harm. Making sure that you’ve taken steps to prevent easy access by using Windows Hello is an essential first step towards locking down your Windows device. Using other features such as Controlled folder access and restricting which applications can be downloaded add another layer of protection from outsiders.
|
english
|
Posted On:
The second wave of COVID-19 has come in rapidly, observed Dr. Shashank Joshi, Member of Maharashtra’s COVID-19 Task Force, during an interaction with Prime Minister Shri Narendra Modi in the 76th ‘Mann Ki Baat’ programme held at 11 AM today. “This virus is faster moving than the first wave”, stated the senior doctor. He also observed that, “But the good thing is that the recovery rate is higher and mortality rate pretty low”.
Pointing out the differences observed between the first and the second waves of the pandemic, Dr. Joshi stated, it has been observed in youth and children too, to an extent, in the second wave. Speaking about the symptoms widely seen this time, Dr. Joshi said, “Breathlessness, dry cough, fever…all these are there…along with it, loss of smell and taste are also there”. He also added that “80 to 90 percent people do not show any of these symptoms”.
The renowned doctor, who was awarded the Padma Shri in 2014, advised the citizens not to feel scared. Speaking about the much-discussed mutations happening in the virus, Dr. Joshi said, “There’s no need to be afraid of that. These mutations keep on happening…the way we change our clothes, the virus keeps changing its colours…hence there is nothing to fear and we shall overcome this wave too”. However, one needs to be alert medically, he added. “Covid has a 14 to 21 day’s timetable, in which we should avail of the Doctor’s advice”, stated the senior doctor.
In course of the conversation, the Prime Minister informed Padmashri Dr. Shashank Joshi that he has received many letters containing numerous apprehensions of people regarding treatment and that the demand for certain medicines is very high. In his connection, speaking about the treatment procedures of Covid, Dr. Joshi informed, the clinical treatment protocol has magnitude of three types – light or mild Covid, medium or moderate Covid and intense, what is called severe Covid.
“In the case of mild Covid, we do oxygen monitoring, pulse monitoring and fever monitoring. If the fever rises, sometimes we use medicines like paracetamol”, stated Dr. Joshi and advised that such patients should seek medical advice.
“In the case of moderate or severe Covid, it is extremely important to contact the Doctor. Correct and inexpensive medicines are available. Steroids can save life…inhalers can be given, tablets can be given. And along with that, oxygen has to be administered…there are many simple treatments available”, stated Dr. Joshi. Speaking about the use of Remdesivir in such cases, he said, “There is a new experimental medicine called Remdesivir. But one thing about this medicine is that one has to stay 2 – 3 days lesser in the hospital and it aids in clinical recovery. And this medicine too works only when it is taken in the first 9-10 days…and it is to be taken only for five days”. The senior doctor cautions saying, “The way people are running after Remdesivir…they should stop doing that. This medicine has a limited role…it should be taken only when people are put on oxygen in a hospital, strictly as per the Doctor’s advice. It is important for all people to understand this”.
Dr. Joshi, who is the dean of Indian College of Physicians, suggests, our lungs increase a bit on doing pranayama. He also informs, there is an injection called Heparin for thinning blood. 98% of people recover on being given these simple medicines, stated Dr. Joshi. Hence, it is not at all required to run after all these expensive medications, added the doctor who has first-hand experience of treating numerous COVID-19 patients and is also associated with research on it. “Whenever this medicine is available, it should be given only to appropriate people. On this, many myths are doing the rounds”, he added.
Dr. Joshi further said, India has the best recovery rate. “If you compare Europe, America, our patients are recovering fast through our treatment protocols”, the senior doctor further stated.
Speaking in PM’s ‘Mann Ki Baat’ programme, Dr. Joshi advised, “Staying positive is very important”. The doctor also mentioned, “It is imperative that treatment protocol is as per the Doctor’s advice”. In this connection, the senior doctor observed that people believe in “what they keep watching on their Mobile feeds”. Dr. Joshi urged, “If people abide by information provided by the Government, they will not face these difficulties”. Dr. Joshi also observed that many people start clinical treatment very late because they believe that the illness will subside on its own, something that should not be done.
Dr. Joshi said, “It was indeed an honour and pleasure to speak in ‘Mann Ki Baat’. “Honourable PM Shri Narendra Modi’s concern for the people is truly remarkable”, stated Dr. Joshi. He further stated that, we all are facing the second wave and we should ensure that we come out of it successfully by taking ourselves safe and all the people around us safe too.
|
english
|
{
"code": "lv",
"messages": {
"alpha": " Laukā {_field_} var ievadīt tikai burtus",
"alpha_num": "Laukā {_field_} var ievadīt tikai burtus un ciparus",
"alpha_dash": "Laukā {_field_} var ievadīt tikai burtus, ciparus, domuzīmes un pasvītras",
"alpha_spaces": "Laukā {_field_} var ievadīt tikai burtus un atstarpes",
"between": "Lauka {_field_} vērtībai jābūt intervālā starp {min} un {max}",
"confirmed": "Apstiprinājuma lauka {_field_} vērtība nav korekta",
"digits": "Lauka {_field_} vērtību veido precīzs {length} ciparu skaits",
"dimensions": "Lauka {_field_} izmērs ir {width} pikseļu platumā un {height} pikseļu augstumā",
"email": "Lauka {_field_} vērtībai jābūt derīgai e-pasta adresei",
"excluded": "Laukā {_field_} jāievada derīga vērtība",
"ext": "Lauka {_field_} vērtībai jābūt failam",
"image": "Lauka {_field_} vērtībai jābūt attēlam",
"integer": "Lauka {_field_} vērtībai jābūt veselam skaitlim",
"length": "Lauka {_field_} garumam jābūt {length}",
"max_value": "Lauka {_field_} vērtībai jābūt {max} vai mazākai",
"max": "Laukā {_field_} nevar ievadīt vairāk nekā {length} rakstzīmes",
"mimes": "Lauka {_field_} vērtībai jābūt failam",
"min_value": "Laukā {_field_} izmanto minimālo vērtību {min} vai lielāku",
"min": "Laukā {_field_} jāievada vismaz {length} rakstzīmes",
"numeric": "Laukā {_field_} var ievadīt tikai ciparus",
"oneOf": "Lauka {_field_} vērtībai jābūt derīgai",
"regex": "Lauka {_field_} formāts nav korekts",
"required": "Lauks {_field_} ir obligāti aizpildāms",
"required_if": "Lauks {_field_} ir obligāti aizpildāms",
"size": "Lauka {_field_} lielumam jābut mazākam nekā {size}KB",
"double": "Laukam {_field_} ir jābūt derīgam aiz komata"
}
}
|
json
|
import { SignalLastRowItem } from "../../signal/models/signal.model";
export interface MarketOrderProcessItem {
lastPosition: number,
status: string,
closedDate: string,
benefit?: number
id: number
}
export interface MarketOrderItem {
type: "buy" | "sell",
lot: number,
id?: number, //The market order id
amount?: number,
member?: object,
stopLess: number,
takeProfit: number,
position: number,
analysis_id: string,
benefit?: number,
process: MarketOrderProcessItem
}
export interface MarketOrderUpdatePositionData {
data: SignalLastRowItem,
extras:{
TP: number,
SL: number
}
}
export interface UpdateOrderProcessInputInterface {
id: number, data: MarketOrderProcessItem
}
export interface CloseOrderInputInterface extends UpdateOrderProcessInputInterface {}
|
typescript
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.