text
stringlengths
1
1.04M
language
stringclasses
25 values
Recycling is good. When you separate glass, paper and cans you know they're going to a happy place, but what of the organic waste; the pizza crusts and the caviar that has passed its use-by date? Apartment dwellers can dump these slops into the Nature Mill, a kitchen-cupboard composter. The upper chamber does the work: waste decomposes and the heat generated by microbes sterilizes the compost. A motor then tips the now nitrogen rich mixture into the lower bin, ready to be added to the window box. A carbon filter, good for up to five years, eliminates odor. The standard model is available now for $300, and the pro model, shipping in March for $400, adds stainless steel construction, a lockable box and a "vacation mode" which kicks the Mill into action periodically, instead of leaving it running continuously. There's also a Pet-Friendly" version, with these quite excellent instructions:
english
“He is our witness,” they said. 6 Then Samuel said to the people, “It is the Lord who ·chose [appointed; L made] Moses and Aaron and brought your ·ancestors [fathers] out of Egypt. 7 Now, ·stand there [or take your stand], and I will ·remind you of [plead with you/confront you concerning] all the ·good things [righteous/saving acts] the Lord did for you and your ·ancestors [fathers]. 8 “After Jacob [C the Israelites] ·entered [went to; arrived in] Egypt, ·his descendants [they] cried to the Lord for help. So the Lord sent Moses and Aaron, who took your ·ancestors [fathers] out of Egypt and ·brought them to live [settled them] in this place. 9 “But they forgot the Lord their God. So he ·handed them over as slaves [sold them] to Sisera [Judg. 4–5], the commander of the army of Hazor, and ·as slaves to [into the hand of] the Philistines [Judg. 13–16] and the king of Moab. ·They all […all of whom had] fought against your ·ancestors [fathers]. 10 Then your ancestors cried to the Lord and said, ‘We have sinned. We have ·left [turned away from; forsaken] the Lord and served the Baals and the Ashtoreths [C gods and goddesses of the Canaanites]. But now ·save [rescue; deliver] us from [L the hand of] our enemies, and we will ·serve [worship] you.’ 11 So the Lord sent ·Gideon [L Jerubbaal; C another name for Gideon; Judg. 6:32], ·Barak [L Bedan; Judg. 4:6], Jephthah [Judg. 11–12], and Samuel. He ·saved [rescued; delivered] you from [L the hands of] your enemies around you, and you lived in ·safety [security]. 12 But when you saw Nahash king of the ·Ammonites [L sons of Ammon] ·coming [marching] against you, you said, ‘No! We want a king to ·rule [reign] over us!’—even though the Lord your God was your king. 13 ·Now [All right; So] here is the king you chose, the one you asked for. The Lord has ·put [set; appointed] him over you. 14 ·You must [If you…] ·honor [fear] the Lord and ·serve [worship] him. You must ·obey [listen to] his ·word [voice] and not ·turn [rebel] against ·his commands [L the mouth of the Lord]. Both you and the king ·ruling [reigning] over you must follow the Lord your God. If you do, it will be well with you. 15 But if you don’t ·obey [listen to the voice of] the Lord, and if you ·turn [rebel] against ·his commands [L the mouth of the Lord], ·he [the hand of the Lord] will be ·against [heavy on] you. ·He will do to you what he did to […as it was on] your ·ancestors [fathers]. 12 Samuel said to all Israel, “I have listened(A) to everything you said to me and have set a king(B) over you. 2 Now you have a king as your leader.(C) As for me, I am old and gray, and my sons(D) are here with you. I have been your leader from my youth until this day. 3 Here I stand. Testify against me in the presence of the Lord and his anointed.(E) Whose ox have I taken? Whose donkey(F) have I taken? Whom have I cheated? Whom have I oppressed? From whose hand have I accepted a bribe(G) to make me shut my eyes? If I have done(H) any of these things, I will make it right.”(I) “He is witness,” they said. 6 Then Samuel said to the people, “It is the Lord who appointed Moses and Aaron and brought(M) your ancestors up out of Egypt. 7 Now then, stand(N) here, because I am going to confront(O) you with evidence before the Lord as to all the righteous acts(P) performed by the Lord for you and your ancestors. 8 “After Jacob(Q) entered Egypt, they cried(R) to the Lord for help, and the Lord sent(S) Moses and Aaron, who brought your ancestors out of Egypt and settled them in this place. 9 “But they forgot(T) the Lord their God; so he sold them(U) into the hand of Sisera,(V) the commander of the army of Hazor,(W) and into the hands of the Philistines(X) and the king of Moab,(Y) who fought against them. 10 They cried(Z) out to the Lord and said, ‘We have sinned; we have forsaken(AA) the Lord and served the Baals and the Ashtoreths.(AB) But now deliver us from the hands of our enemies, and we will serve you.’ 11 Then the Lord sent Jerub-Baal,[a](AC) Barak,[b](AD) Jephthah(AE) and Samuel,[c](AF) and he delivered you from the hands of your enemies all around you, so that you lived in safety. 12 “But when you saw that Nahash(AG) king(AH) of the Ammonites was moving against you, you said to me, ‘No, we want a king to rule(AI) over us’—even though the Lord your God was your king. 13 Now here is the king(AJ) you have chosen, the one you asked(AK) for; see, the Lord has set a king over you. 14 If you fear(AL) the Lord and serve and obey him and do not rebel(AM) against his commands, and if both you and the king who reigns over you follow the Lord your God—good! 15 But if you do not obey the Lord, and if you rebel against(AN) his commands, his hand will be against you, as it was against your ancestors. 18 Then Samuel called on the Lord,(AV) and that same day the Lord sent thunder and rain. So all the people stood in awe(AW) of the Lord and of Samuel. 20 “Do not be afraid,” Samuel replied. “You have done all this evil;(AZ) yet do not turn away from the Lord, but serve the Lord with all your heart. 21 Do not turn away after useless(BA) idols.(BB) They can do you no good, nor can they rescue you, because they are useless. 22 For the sake(BC) of his great name(BD) the Lord will not reject(BE) his people, because the Lord was pleased to make(BF) you his own. 23 As for me, far be it from me that I should sin against the Lord by failing to pray(BG) for you. And I will teach(BH) you the way that is good and right. 24 But be sure to fear(BI) the Lord and serve him faithfully with all your heart;(BJ) consider(BK) what great(BL) things he has done for you. 25 Yet if you persist(BM) in doing evil, both you and your king(BN) will perish.”(BO) The Expanded Bible, Copyright © 2011 Thomas Nelson Inc. All rights reserved. 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
Elton John’s songs are staple of his domestic rallies. He has even used phrases from those songs to name his political rivals. Basking in adulation from a massive, colourful crowd, US President Donald Trump and Prime Minister Narendra Modi lavished each other with praise on Monday in Gujarat as the state hosted ‘Namaste Trump’ to welcome the American leader. More than 100,000 people packed into Motera, the world’s largest cricket stadium in Ahmedabad, to give Trump the biggest rally crowd of his political career. Nearly everyone in the newly constructed stadium sported a white cap with the name of the event, “Namaste Trump” or “Welcome Trump,” and roared for the introductions of both leaders. On a whirlwind 36-hour visit to India, Trump opened his speech by declaring that he had travelled 8,000 miles to deliver the message that “America loves India, America respects India and America will always be faithful and loyal friends to the Indian people”. The boisterous scene featured musicians on camels and a musical medley of Bollywood hits and Trump’s campaign rally playlist, including songs of British singer Elton John that seemed to puzzle most of the crowd. Elton John’s songs are staple of his domestic rallies. In fact, Trump likes Elton John’s songs so much that he has even used phrases from those songs to name his political rivals. “Rocket Man” is one such example. He used the nickname for North Korean leader in his appearance before the UN General Assembly. The song “Rocket Man” was on Elton John’s 1972 album “Honky Chateau”. Trump enjoyed playing the song at his rallies, as well as another Elton John hit “Tiny Dancer”. Some of the Elton John songs which were played today in Motera are “Tiny Dancer”, “Rotten Peaches” and “Indian Sunset”. Trump heaped praise on PM Modi, calling him a tough leader and someone who has made it possible to reach the peak “if you work hard towards realising your dreams”. He also recounted the decades of friendship between India and the US. “The US will always be faithful and loyal friend of India. Thank you for the spectacular welcome,” he added. The US President reached out to Indians by hailing the “genius” of the Hindi film industry and recalling two all-time favourites, “Sholay” and “Dilwale Dulhania Le Jayenge” (DDLJ). Addressing the ‘Namaste Trump’ event, the Trump said people “take great joy” in watching Bollywood films and understanding Indian culture through them. The event ended with Rolling Stones’ “You Can’t Always Get What You Want”.
english
The National Achievement Survey 2021 shows a widening difference in mathematics learning outcomes among girls and boys as they progressively reach higher classes. A stark gap in education between rural and urban students was likely fuelled by the pandemic. State/UT governments need to make up for lost time fast. The National Achievement Survey 2021 shows girls and boys begin at an almost level playing field in mathematics, but by the time they reach high school, there is already a gap in learning outcomes, which becomes most stark by class X when boys significantly outperform girls in the subject. Something clearly does not add up, considering girls are better or equal learners in other subjects throughout schooling. Data show that in class III, the national average score for girls in mathematics (301) is not significantly different from that of boys (300). It is comparable in class V when girls scored 280 and boys 281. In class VIII, the national average score for both boys and girls are equal, but already in some states, girls' performance appears to be dropping. In class X, this gap is most stark and the national scores reflect that with girls at 216 and boys at 219. Language remains a subject where girls have steadily outperformed boys throughout all school levels. In class III, the national average achievement score of girls was 323 as opposed to 318 for boys. In class V, the score for girls (311) and boys (305) reflected a widening gap, which became larger by the time students reached class VIII when girls scored 312 and boys just 302. In science, girls and boys were equal in class VIII while girls (211) performed better than boys (210) in class X. In social science, girls in high school scored above boys with a 3 and 2 point difference between the genders in classes VIII and X respectively. Overall, girls seemed to have matched or outdone boys in all subjects except for the widening gap seen in mathematics as students reached progressively higher classes. This finding is in contrast to a UNESCO report in April this year which showed the gender gap in mathematics was closing even in poor countries. Researchers who studied data from 120 countries found that although boys performed better in mathematics in junior classes, girls caught up in secondary schooling. In India, it appears to be the reverse. The rural-urban divide in learning outcomes also gets expressed as students progress through classes. In mathematics, rural schools start at a better score (302) than urban (299) in class III but fall one point behind in class V. In class VIII the gap widens for rural (251) and urban (256) and by class X the difference is a sharp 6 points - 214 for rural and 220 for urban. Language also shows a similar picture where students in rural and urban areas are of comparable competence in class III but there is a sheer difference in class V with rural scoring 304 and urban 313. By class VIII, urban (320) leaves rural (299) far behind and in class X also the difference is huge with rural and urban scoring 247 and 260 respectively. In science and social science too rural students in high school fare poorly than their urban counterparts, however, the difference in languages stands out. While girls do consistently well through school, why does a barrier exist when it comes to mathematics? The subject that is an abstract knowledge considered free of bias, ironically has the most bias when it comes to its practice. Mathematics has long been considered a subject “for men”, the stereotype has been fed for decades despite the strides made by women in education. Social factors, cultural norms, teacher bias, and parental attitudes, among others, keep girls from their potential in the subject. Remember formal education for women, especially in the sciences and mathematics, began world over only in the last century. These factors also discourage women from taking up STEM (science, technology, mathematics, and engineering) as subjects in college, and even fewer women in STEM enter the job market due to the intense work that would take away from family/household responsibilities, which are still largely considered a woman’s domain. Meanwhile, the rural-urban divide is also a sorry reality. The gaps were augmented by the Covid lockdowns which placed rural Indian students at a significant disadvantage due to a lack of access to a device or stable internet. As per the NAS 2021 report, 24% of students surveyed did not have a digital device at home. 78% of students said online learning was burdensome and they were loaded with assignments, 38% faced difficulty in learning and an overwhelming majority of 80% said they learnt better at school with peers' help. 34 lakh students across 1,18,274 schools were surveyed for the report which will inform state and UT government interventions in education going forward. “The objective of NAS 2021 is to evaluate children’s progress and learning competencies as an indicator of the efficiency of the education system, so as to take appropriate steps for remedial actions at different levels,” the Ministry of Education said in an official statement. Governments have an uphill task in making up for the 2 lost years in education due to the pandemic which also led to an alarming dropout rate among students, especially girls, according to a UNICEF India report.
english
LAHORE: Prime Minister Nawaz Sharif visited a private hospital at Gulberg with only one security car early on Saturday. The PM underwent a computed tomography (CT) scan following a minor stomach ache, sources told Geo News. The public was not faced with any inconvenience due to VIP movement, as traffic routes were not blocked for the PM. Doctors declared the PM’s stomach clear following the CT scan. In July 2016, the PM was unable to travel to Islamabad on July 18 after he developed an infection in his leg, a spokesperson for the Prime Minister House said. The premier suffered from fever, following which his medical treatment started. Prime Minister Nawaz Sharif returned to Pakistan on July 9, 2016, 48 days after undergoing open-heart surgery at a London hospital. A dedicated Pakistan International Airline (PIA) Boeing 777 aircraft brought the prime minister and his camp office back home from London.
english
#Grading scale based on user input score #ask for numerical score to be graded grade = raw_input('Enter your numerical score\n') #provide error checking with Try/Except #use if, elif statements to capture correct grade per the score range try: float_grade = float(grade) if float_grade >= 0.9: print 'A' elif float_grade >= 0.8: print 'B' elif float_grade >= 0.7: print 'C' elif float_grade >= 0.6: print 'D' elif float_grade < 0.6: print 'F' #except provides suitable error message and ends gracefully except: print 'Enter a numerical score'
python
Courtesy: Anuradha Prasad is a big name in news and current affairs. After making her foray in television entertainment she is all set with her vision through film production. Anuradha's BAG films is all set to release their first film Zindaggi Rocks in October. Producer Anuradha Prasad speaks to IndiaFM about her film and future plans. you? Doing a film was always in our scheme of things. As you know BAG is a content generation and integration company so it was the most logical step for us. Our USP is content of all genres on all platforms so we do news, current affairs, daily soaps, music shows and game shows. We work on television and mobile as well so it was just a logical extension for us. I am a firm believer that content is king. Today maybe the distribution platform is ruling but content will be ruling tomorrow and that's very clear. film? She came up with the story for which Sushmita agreed to do. I think no one could have performed better than her. So everything fell in place. Everything happened together and for the best in a most positive manner. process? Yes obviously because when you start doing a film then you have to get involved into everything. It's a different medium than television. In television if you can go wrong you are able to rectify but in films you can't do it. You have to do it much ahead of time. You have to think about its look and for me the look of the film is very important. Fortunately, everything fell in place. We as producers did not make any kind of compromise, not in introduction or promotion. So far as a producer we did everything that was important for our film. subjects, same? No it was not that I wanted to begin with female oriented film but I was very clear that whatever content goes out from our production banner, it has to be extremely thoughtful. I want to do commercial films with good content and that is my clear vision and that's what we have designed here. So there was no female oriented subject in my mind rather it's a great drama which has a human angle and whether it's been played by a female or a male it wouldn't have matter. Here in this story the context is important and it's been played by a female actor because it is a mother and son relationship. We have tackled with that aspect of human relationship. music. The music is rocking because Anu Malik has done a really good job. Apart from typical commercial sense the rock songs because she is a rock star in the film and the songs have to justify her image. Anushka has sung beautifully and its rocking the music charts. There are two melodies in the film. Even the remix version which is not in the promos is really nice. I firmly believe that for a good Indian commercial film music is very important. You have to put your heart and soul towards the music which we all have done. release. up? Off course! I am happy, but happiness is one thing and being satisfied is another. As somebody from the creative field I will never be satisfied because the day I'll get satisfied, I'll be dead so there is nothing called satisfaction for me ever. I always like to raise the bar within myself. That's the way it was because you must understand and appreciate what is my grounding. My personal grounding is from television and when I moved into full time entertainment television before that I have been in news and current affairs so my vision is completely differ rather I haven't come from the limited vision. I will never be ever satisfied because I would always like to have something more. lot, camera? Right now I haven't really thought of that because when you run a corporate structure and you have lot of pressure. Whereas a director has to think one thing so right now there is no plan to get into direction but my creative inputs are there while designing the film. As I said earlier that my grounding and my views are little different. I am not saying this only because I am a producer but also because I come with that view and experience. I give my inputs whether the director likes it or not. film? I have made a product. This is my first Hindi film so I am not going with great expectations. If people appreciate it then I'll be extremely happy. If they do not, I would say ok it's my first time. movies? My movies releasing post Diwali and Eid and there are big movies too. But we still get a gap of two weeks. If my movie is good then it will work because you are in scenario where multiplexes have 3-4 screens. I think my film will stand out. box-office, case? Yes that is very traditional way of looking at a thing and that's the bitter truth or bitter reality whatever you can say. But my film is not female oriented. It is based on mother and son relationship so the hero is the story of my film. Rocks? There are some more films lined up. We are releasing our Punjabi film Mannat at the same time. It's a beautiful love story in Punjabi starring Jimmy Shergill and Kulraj Randhawa. Two of our movies are releasing on the same day which I think is rare in the Indian film industry.
english
The first festival of the New Year 2022 is just around the corner and India is gearing up for it. After Lohri comes the ‘Festival of Kites’ Makar Sankranti. The day is dedicated to the worship of the Sun. Surya, the Sun God, is honored on Makar Sankranti. It is also well-known for its Rabi crops. Makar Sankranti is celebrated in many towns across India by singing songs, flying kites, and holding fairs. These are places in India where the holiday is widely celebrated and the market is usually crowded. Makar Sankranti is celebrated on the day the sun transits from Sagittarius to Capricorn, and it has both astrological and traditional significance. The sun god is worshipped with sweets, devotion, and khichdi. According to the Hindu epic Mahabharata, King Bhishma was given the option of choosing his own time and day of death. He was looking forward to Makar Sankranti when he would seek death. One of the most popular activities at Gujarat’s Uttarayan festival is kite flying. While kite flying is now considered a sport, it was not always thought to be so. It was once thought that kite flying was associated with good health because the person would be exposed to the sun for an extended period of time. In many ways, Makar Sankranti is similar to Thanksgiving in Western culture. Like Thanksgiving, Makar Sankranti ushers in harvest, prosperity, and hope. It’s also the time of year when people gather to celebrate with their loved ones. Makar Sankranti marks the beginning of the harvest season and the arrival of spring. Sweets, savory treats, and other food items are distributed as a message to put old grudges aside and begin the year on a positive note of optimism, love, and unity. Rajasthan is one of India’s best winter destinations, and Jaipur is one of the most beautiful cities in the country. Jaipur, also known as the Pink City, is famous for its old-world beauty as well as its diverse art and architecture. Teej, the Elephant Festival, and the International Kite Festival are just a few of the many festivals celebrated in the city. Makar Sankranti is one of the most well-known Indian festivals. Another fantastic place to see the spectacular kite-flying events that take place during Makar Sankranti is Vadodara. The entire state of Gujarat is in a festive mood during the Uttarayan festival. People take to their rooftops to show off their amazing, one-of-a-kind, decorative kites, as well as their kite-flying abilities. Ahmedabad has a well-preserved Gujarati past. Makar Sankranti is widely celebrated as a kite-flying festival. People leave their homes to worship the Sun and fly kites. Societies organize the kite flying festival. Kites are available for purchase all over the market. On that particular day, you could call the city “the city of kites.” To explore Ahmedabad please check the most amazing places to visit near Ahmedabad within 100 kilometers. Haridwar, one of the most beautiful religious destinations in the country, is also spectacular in the winter. Makar Sankranti is an auspicious day for Hindus, and Haridwar’s Ganga aarti, which is beautiful on any day, is even more so during the festival. What person hasn’t heard of the holy city of Haridwar? It is one of the most well-known holy cities in India, and it is located in the state of Uttrakhand. Har ki Pauri, located on the Ganga River’s bank, is a popular tourist destination. Haridwar is a popular pilgrimage destination that draws a large number of visitors all year. Haridwar hosts the Makar Sankranti festival. Ganga Arti is held at the Ganga Ghat in the evenings and is not to be missed. Check out exploring Haridwar in many ways: 09 things to do. Makar Sankranti is also widely observed in Amritsar. You’ve probably heard of the Punjabi ritual of doing the Bhangra. Bhangra is a must-do for any celebration. Wearing traditional attire, playing the dhol, and performing the Bhangra is all part of the festivities. This creates an energizing environment all around. People leave their houses to share jaggery, peanuts, and sesame sweets. Sing some well-known folk songs in addition. To know more check out, your guide to the 10 best temples in Amritsar. Because the Ganga runs through the city, it is a popular place to celebrate Makar Sankranti. It is customary to bathe in any of the sacred rivers on Makar Sankranti. The Ganga is a sacred river that flows through Allahabad (now Prayagraj) and is bathed on special occasions. Makar Sankranti celebrations also include kite flying. There are also kite-flying competitions held during the festival.
english
{ "navigationBarTitleText": "单词打卡", "component": true, "usingComponents": { "wux-button": "/wux/button/index", "wux-landscape": "/wux/landscape/index" } }
json
var bcrypt = require('bcrypt-nodejs'); var db = require('./db'); // Set up Token class var Token = function(token) { var that = Object.create(Token.prototype); that.userid = token.id; that.token = token.token; return that; }; // Hash and salt the password with bcrypt var generate = function() { return bcrypt.hashSync(Date.now, bcrypt.genSaltSync(8), null); }; var generateToken = function(userid, callback){ var newToken = { userid: userid, token: generate(), }; db.query('INSERT INTO token ( userid, token ) values (?,?)', [newToken.userid, newToken.token], function(err) { if (err) { if (err.code === 'ER_DUP_ENTRY') { // If we somehow generated a duplicate user id, try again return generateToken(newToken.userid, newToken.token, callback); } return callback(err); } // Successfully created user return callback(null, new Token(newToken)); } ); } var findToken = function(data, callback){ db.query('SELECT * FROM token WHERE token = ? AND userid = ?', [data.token, data.id], function(err, token) { if (err) return callback(err); // User successfully logged in, return user return callback(null, token); }); } exports.generateToken = generateToken; exports.findToken = findToken;
javascript
In this Krithyam film, Prithviraj Sukumaran, Parul Yadav played the primary leads. The Krithyam was released in theaters on 30 Apr 2005. Movies like Ram, Abraham Ozler, Teri Meri and others in a similar vein had the same genre but quite different stories. The soundtracks and background music were composed by Udayakumar for the movie Krithyam. The movie Krithyam belonged to the Action,Thriller, genre.
english
{ "id": 178746, "info": { "name": "F-List Dark - Redesign (Flat, hover effects)", "description": "Adjusts F-List Dark theme to look more flat and with hover effects.\r\nAlso adjusts F-Chat 2.0 to look flat and improves hover effects and makes text editor dark.\r\nAlso adjusts F-Chat 3.0 to add some colors to status indicators (WIP)", "additionalInfo": null, "format": "uso", "category": "f-list", "createdAt": "2019-12-31T21:36:25.000Z", "updatedAt": "2020-02-13T20:24:36.000Z", "license": "NO-REDISTRIBUTION", "author": { "id": 877734, "name": "CCC G" } }, "stats": { "installs": { "total": 19, "weekly": 0 } }, "screenshots": { "main": { "name": "178746_after.jpeg", "archived": true }, "additional": [ { "name": "178746_additional_35248.jpeg", "archived": true } ] }, "discussions": { "stats": { "discussionsCount": 0, "commentsCount": 0 }, "data": [] }, "style": { "css": "@-moz-document domain('www.f-list.net') {\r\n\r\n.chat-log-item::hover {\r\n\r\n background-color: rgb(80, 80, 80);\r\n transition: all 0.1s ease-in-out;\r\n}\r\n\r\n#message-field {\r\n background-color: rgb(30, 30, 30);\r\n color: rgb(180, 180, 180);\r\n font-size: 16px;\r\n transition: all 0.1s ease-in-out;\r\n}\r\n\r\n.chat-type-system {\r\n font-size: 9px;\r\n}\r\n.ui-state-default,\r\n.ui-widget-content .ui-state-default,\r\n.ui-widget-header .ui-state-default {\r\n border: 1px solid #0000;\r\n border-top: 3px solid #33141400;\r\n border-bottom: 1px solid #00000036;\r\n background: #242020;\r\n font-weight: bold;\r\n color: #a8a8a8;\r\n}\r\n\r\n.ui-state-hover,\r\n.ui-widget-content .ui-state-hover,\r\n.ui-widget-header .ui-state-hover,\r\n.ui-state-focus,\r\n.ui-widget-content .ui-state-focus,\r\n.ui-widget-header .ui-state-focus {\r\n border: 1px solid #0000;\r\n border-top: 3px solid #ec1b1b;\r\n background: #373030;\r\n font-weight: bold;\r\n color: #aeaeae;\r\n transition: all 0.1s ease-in-out;\r\n}\r\n\r\nselect {\r\n font-size: 18px;\r\n border: 1px solid #ffffff4d;\r\n border-left: 4px solid #df1c1c;\r\n color: #e6e6e6;\r\n background-color: #2e2828;\r\n transition: all 0.1s ease-in-out;\r\n}\r\n\r\ninput {\r\n font-size: 18px;\r\n border: 1px solid #ffffff4d;\r\n border-left: 4px solid #df1c1c;\r\n color: #e6e6e6;\r\n background-color: #2e2828;\r\n transition: all 0.1s ease-in-out;\r\n}\r\n\r\n}" } }
json
{"Content-Type": "message/rfc822", "Content-Type-Override": "message/rfc822", "MboxParser-content-transfer-encoding": "8bit", "MboxParser-from": "r Thu Apr 10 00:39:02 2003", "MboxParser-mime-version": "1.0", "MboxParser-reply-to": "<EMAIL>", "MboxParser-return-path": "<R@O> for <R@M>; Thu, 10 Apr 2003 00:38:59 -0400 (EDT) for <R@O>; Thu, 10 Apr 2003 00:38:57 -0400 (EDT)", "MboxParser-sender": "Prosody Discussion List <<EMAIL>>", "MboxParser-status": "RO", "MboxParser-x-mailer": "Microsoft Outlook Express 5.00.2919.6900 DM", "MboxParser-x-mime-autoconverted": "from quoted-printable to 8bit by list.msu.edu id AAA17304", "Message-From": "<NAME>, <<EMAIL>>", "Message-Recipient-Address": "<EMAIL>", "Message-To": ["<EMAIL>", "<EMAIL>"], "Message:From-Email": "<EMAIL>", "Message:From-Name": "<NAME>,", "Message:Raw-Header:Content-Transfer-Encoding": "8bit", "Message:Raw-Header:Content-Type": "text/plain; charset=\"us-ascii\"", "Message:Raw-Header:MIME-Version": "1.0", "Message:Raw-Header:Message-ID": " <<EMAIL>>", "Message:Raw-Header:Reply-To": "<EMAIL>", "Message:Raw-Header:Return-Path": "<R@O>\tfor <R@M>; Thu, 10 Apr 2003 00:38:59 -0400 (EDT)\tfor <R@O>; Thu, 10 Apr 2003 00:38:57 -0400 (EDT)", "Message:Raw-Header:Sender": "Prosody Discussion List <<EMAIL>>", "Message:Raw-Header:Status": "RO", "Message:Raw-Header:X-MIME-Autoconverted": "from quoted-printable to 8bit by list.msu.edu id AAA17304", "Message:Raw-Header:X-Mailer": "Microsoft Outlook Express 5.00.2919.6900 DM", "X-TIKA:Parsed-By": ["org.apache.tika.parser.DefaultParser", "org.apache.tika.parser.mail.RFC822Parser"], "X-TIKA:content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n STRICTLY CONFIDENTIAL\n\nI AM <NAME>, THE DIRECTOR OF SPECIAL DEPOSITORY TRUST ACCOUNT UNIT OF UNITED BANK FOR AFRICA \ufffd NIGERIA PLC.\n\nMY BUSINESS PROPOSITION TO YOU IS AS DETAILED BELOW. IT IS STRICTLY CONFIDENTIAL.\n\nDETAILS\n\nTHE FORMER ZAIREAN PRESIDENT MOBUTU SESE SEKO MAINTAINS A TRUST BANK ACCOUNT WITH OUR BANK, THE ACCOUNT IS OPERATED THROUGH ONE OF HIS PERSONAL AIDE, MR. NSSONA NGOUSOU UNDER THE NAME M-S- SEKO A/C 006497-031109 \ufffd CODE MSSK. THE ACCOUNT BALANCE AS AT THE END OF AUGUST 1997 STANDS AT US$34,657,000.00\n(THIRTY FOUR MILLION, SIX HUNDRED AND FIFTY SEVEN THOUSAND UNITED STATES DOLLARS ONLY).\n\nHOWEVER, PRIOR TO THE DEATH OF OUR CUSTOMER-LATE MOBUTU SESE SEKO IN MOROCCO ON THE 13TH OF SEPTEMBER, 1997, HE HAD INSTRUCTED MY UNIT (SPECIAL DEPOSITORY\nTRUST A/C) THROUGH HIS PERSONAL AIDE TO CONCLUDE THE TRANSFER ARRANGEMENT WITH THE AFRICA DEVELOPMENT BANK (ADB) IN ABIDJAN TO MOVE THE SAID FUNDS FROM OUR BANK\nTO (ADB) ABIDJAN FOR HIS UP KEEP WHILE IN MOROCCO.\n\nHOWEVER, OWINNG TO THE CIRCUMSTANCES THAT SURROUNDS THE ARRANGEMENT WITH THE (ADB) THE FUND MOVEMENT ARRANGEMENT WAS FINALIZED ON THE EVE OF OUR CUSTOMER\ufffdS DEATH ON THE 13TH SEPTEMBER, 1997 IN MOROCCO.\n\nPRESENTLY MR NSSONA NGOUSOU HAS CONCLUDED ARRANGEMENTS WITH US, THE TOP OFFICERS IN UNITED BANK FOR AFRICA \ufffdNIGERIA PLC TO MOVE THE FUND TO AN OVERSEAS BANK A/C.\n\nBASED ON THESE ARRANGEMENT, A CONSENSUS WAS REACHED IN RESPECT OF ALL THE CONCERNED TOP OFFICERS AND MR.NSSONA NGOUSOU TO TRANSFER THE SAID FUND INTO AN A/C THAT WILL BE DESIGNATED BY YOU. WE HAVE THEREFORE\nDECIDED TO SOLICIT YOUR ASSISTANCE IN PROVIDING AN OVERSEAS A/C INTO WHICH THE FUND WILL BE MOVED.\n\nYOU ARE THEREFORE REQUIRED AS A MATTER OF URGENCY TO SEND TO ME THROUGH THE FAX NO. ABOVE, THE FOLLOWING INFORMATION:\n\n(A) YOUR BANK NAME AND ADDRESS, ACCOUNT NO, BANK PHONE, FAX AND TELEX NUMBERS.\n(B) YOUR PERSONAL PRIVATE PHONE AND FAX NUMBERS.(C) BENEFICIARY\ufffdS NAME.\n\nMODALITIES\n\n30% OF THE TOTAL SUM UPON REMITTANCE WILL BE GIVEN TO YOU AS THE OWNER OF THE A/C , 65% WILL BE FOR THE CONCERNED OFFICERS AND MR NSSONA NGOUSOU. THE REMAINING 5% WILL BE USED TO OFFSET ALL EXPENSES INCURRED IN THE COURSE OF THIS TRANSACTION.\n\nFINALLY, BEFORE FURTHER DETAILS OF THIS TRANSACTION WILL BE REVEALED TO YOU, I MUST BE CONVINCED OF YOUR INTEGRITY AND TRANSPORT HONESTY, BECAUSE THIS IS A HIGHLY CONFIDENTIAL BUSINESS TRANSACTION THAT REQUIRES SOMEONE WITH EXPERIENCE, EXPOSURE AND MORE THAN AVERAGE MEANS OF LIVELIHOOD.\n\nBEST REGARDS,\n\nMR.DON UBALA\n\n\n\n\n", "X-TIKA:content_handler": "ToTextContentHandler", "X-TIKA:embedded_depth": "1", "X-TIKA:embedded_resource_path": "/embedded-178", "X-TIKA:parse_time_millis": "3", "dc:creator": ["\"MR.<NAME>A,\" <<EMAIL>>", "MR.<NAME>, <<EMAIL>>"], "dc:format": "text/plain; charset=\"us-ascii\"", "dc:identifier": "<<EMAIL>>", "dc:subject": " STRICTLY CONFIDENTIAL", "dc:title": " STRICTLY CONFIDENTIAL", "dcterms:created": "2003-04-07T11:52:13Z"}
json
Google today announced it’s bringing a new look to Maps. The new experience has brighter colors, clearer icons and an overall improved user experience. Over the next few weeks users will be introduced to new color keys and icons depending on the category, such as orange for food and drink and pink for health. This comes as an upgrade to the old design, where it was easy to mix things up as icons were small and similar in color. The idea is that now users can easily spot what they’re looking for. For example, if you’re out of town and have an accident, you can quickly spot a pink icon on the map and get to hospital. In addition, Google will provide specific maps for different functions, depending if you’re driving, using public transport or simply exploring. If you’re driving, the map will be able to direct you to the nearest gas stations. In the case that you’re using public transport, the nearest train station or bus stop. The update will first be available in all Google products that incorporate Google Maps: the Assistant, Search, Earth, and Android Auto, and eventually apps and websites that use the Google Maps API. Google’s aim is to keep its maps updated and useful for its users, and hopes to achieve this with its newest updates. I personally think this was much needed, as the icons previously used were easy to mix up — with a clear color scheme and icons it’s much easier to navigate. Get the most important tech news in your inbox each week.
english
{"plain_text": {"description": "CC-News containing news articles from news sites all over the world The data is available on AWS S3 in the Common Crawl bucket at /crawl-data/CC-NEWS/. This version of the dataset has 708241 articles. It represents a small portion of English language subset of the CC-News dataset created using news-please(Hamborg et al.,2017) to collect and extract English language portion of CC-News.\n", "citation": "@InProceedings{Hamborg2017,\n author = {<NAME> <NAME>},\n title = {news-please: A Generic News Crawler and Extractor},\n year = {2017},\n booktitle = {Proceedings of the 15th International Symposium of Information Science},\n location = {Berlin},\n doi = {10.5281/zenodo.4120316},\n pages = {218--223},\n month = {March}\n}\n", "homepage": "https://commoncrawl.org/2016/10/news-dataset-available/", "license": "", "features": {"title": {"dtype": "string", "id": null, "_type": "Value"}, "text": {"dtype": "string", "id": null, "_type": "Value"}, "domain": {"dtype": "string", "id": null, "_type": "Value"}, "date": {"dtype": "string", "id": null, "_type": "Value"}, "description": {"dtype": "string", "id": null, "_type": "Value"}, "url": {"dtype": "string", "id": null, "_type": "Value"}, "image_url": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "cc_news", "config_name": "plain_text", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 2016418133, "num_examples": 708241, "dataset_name": "cc_news"}}, "download_checksums": {"https://storage.googleapis.com/huggingface-nlp/datasets/cc_news/cc_news.tar.gz": {"num_bytes": 845131146, "checksum": "1aaf8e5af33e3a73472b58afba48c6a839ebc2dd190c4e0754fc00f8899a9cec"}}, "download_size": 845131146, "post_processing_size": null, "dataset_size": 2016418133, "size_in_bytes": 2861549279}}
json
package grpc import ( "context" "crypto/tls" "fmt" golog "log" "net" "net/http" "strings" "github.com/NYTimes/gziphandler" grpcmiddleware "github.com/grpc-ecosystem/go-grpc-middleware" grpcprometheus "github.com/grpc-ecosystem/go-grpc-prometheus" "github.com/grpc-ecosystem/grpc-gateway/runtime" log "github.com/sirupsen/logrus" "github.com/stackrox/scanner/pkg/mtls" "google.golang.org/grpc" ) const ( localEndpoint = "127.0.0.1:8444" ) func init() { grpcprometheus.EnableHandlingTimeHistogram() } // NewAPI creates a new gRPC API instantiation func NewAPI(config Config) API { return &apiImpl{ config: config, } } func (a *apiImpl) listenOnLocalEndpoint(server *grpc.Server) error { lis, err := net.Listen("tcp", localEndpoint) if err != nil { return err } log.Infof("Launching backend GRPC listener on %v", localEndpoint) // Launch the GRPC listener go func() { if err := server.Serve(lis); err != nil { log.Fatal(err) } log.Fatal("The local API server should never terminate") }() return nil } func (a *apiImpl) connectToLocalEndpoint() (*grpc.ClientConn, error) { return grpc.Dial(localEndpoint, grpc.WithInsecure()) } func (a *apiImpl) Start() { grpcServer := grpc.NewServer(grpcmiddleware.WithUnaryServerChain(a.unaryInterceptors()...)) for _, serv := range a.apiServices { serv.RegisterServiceServer(grpcServer) } if err := a.listenOnLocalEndpoint(grpcServer); err != nil { log.Fatal(err) } conn, err := a.connectToLocalEndpoint() if err != nil { panic(err) } gwHandler := a.muxer(conn) addr := fmt.Sprintf(":%d", a.config.Port) log.Infof("Listening on public endpoint: %v", addr) lis, err := net.Listen("tcp", addr) if err != nil { log.Fatal(err) } conf, err := mtls.TLSServerConfig() if err != nil { log.Fatal(err) } lis = tls.NewListener(lis, conf) handler := httpGrpcRouter(grpcServer, gwHandler) go func() { server := http.Server{ Handler: handler, ErrorLog: golog.New(httpErrorLogger{}, "", golog.LstdFlags), } log.Fatal(server.Serve(lis)) }() } // APIService is the service interface type APIService interface { RegisterServiceServer(server *grpc.Server) RegisterServiceHandler(context.Context, *runtime.ServeMux, *grpc.ClientConn) error } // API listens for new connections on port 443, and redirects them to the gRPC-Gateway type API interface { // Start runs the API in a goroutine, and returns a signal that can be checked for when the API server is started. Start() // Register adds a new APIService to the list of API services Register(services ...APIService) } type apiImpl struct { apiServices []APIService config Config } // A Config configures the server. type Config struct { Port int CustomRoutes map[string]http.Handler } func (a *apiImpl) Register(services ...APIService) { a.apiServices = append(a.apiServices, services...) } func (a *apiImpl) unaryInterceptors() []grpc.UnaryServerInterceptor { // Interceptors are executed in order. return []grpc.UnaryServerInterceptor{ // Ensure the user is authorized before doing anything else. verifyPeerCertsUnaryServerInterceptor(), slimModeUnaryServerInterceptor(), grpcprometheus.UnaryServerInterceptor, } } func (a *apiImpl) muxer(localConn *grpc.ClientConn) http.Handler { mux := http.NewServeMux() for route, handler := range a.config.CustomRoutes { mux.Handle(route, handler) } gwMux := runtime.NewServeMux(runtime.WithMarshalerOption(runtime.MIMEWildcard, &runtime.JSONPb{EmitDefaults: true})) for _, service := range a.apiServices { if err := service.RegisterServiceHandler(context.Background(), gwMux, localConn); err != nil { log.Panicf("failed to register API service: %v", err) } } mux.Handle("/v1/", gziphandler.GzipHandler(gwMux)) return mux } func httpGrpcRouter(grpcServer *grpc.Server, httpHandler http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { if r.ProtoMajor == 2 && strings.Contains(r.Header.Get("Content-Type"), "application/grpc") { grpcServer.ServeHTTP(w, r) } else { httpHandler.ServeHTTP(w, r) } }) }
go
We just got our hands on Intel’s much awaited Gulftown, aka the Core i7 980 Extreme. For those who don’t know, this CPU is based on a new 32nm fabrication process and features 6 cores running at a whopping 3.33 GHz, which many will recall is the same speed that the i7 975 Extreme chip runs at, but with two less cores. Without further ado lets get into some pics: The CPU and heatsink. Note that this is an Intel heatsink, and the first time we’ve seen such an elaborate tower-based solution from them with heatpipes. I’m using a very basic camera, but it’s possible to see the lettering, though it won’t say much more than “Intel Confidential”. Set up in the BIOS. Intel insisted on us using the their own X58 motherboard, the DX58SO. A quick BIOS update and the board recognised the 980X without hiccups. We will be posting some preliminary benchmarks shortly. We will also be featuring this CPU in a detailed review in the April issue of Digit, so interested people might want to look out for that. To discuss the Intel Core i7 980 Extreme visit this post on the forum.
english
package debos import ( "fmt" "os" "path" ) const debianPolicyHelper = "/usr/sbin/policy-rc.d" /* ServiceHelper is used to manage services. Currently supports only debian-based family. */ type ServiceHelper struct { Rootdir string } type ServicesManager interface { Allow() error Deny() error } /* Allow() allows to start/stop services on OS level. */ func (s *ServiceHelper) Allow() error { helperFile := path.Join(s.Rootdir, debianPolicyHelper) if _, err := os.Stat(helperFile); os.IsNotExist(err) { return nil } if err := os.Remove(helperFile); err != nil { return err } return nil } /* Deny() prohibits to start/stop services on OS level. */ func (s *ServiceHelper) Deny() error { helperFile := path.Join(s.Rootdir, debianPolicyHelper) var helper = []byte(`#!/bin/sh exit 101 `) if _, err := os.Stat(helperFile); os.IsExist(err) { return fmt.Errorf("Policy helper file '%s' exists already", debianPolicyHelper) } if _, err := os.Stat(path.Dir(helperFile)); os.IsNotExist(err) { // do not try to do something if ".../usr/sbin" is not exists return nil } pf, err := os.Create(helperFile) if err != nil { return err } defer pf.Close() if _, err := pf.Write(helper); err != nil { return err } if err := pf.Chmod(0755); err != nil { return err } return nil }
go
{ "class": [ "outcome" ], "properties": { "notation": "MCR3U.B2.2", "altNotation": "", "label": "Standard", "listId": "", "description": "determine, through investigation using technology, the roles of the parameters a, k, d, and c in functions of the form y = af (k(x - d)) + c, and describe these roles in terms of transformations on the graph of f(x) = a (a > 0, a ≠ 1) (i.e., translations; reflections in the axes; vertical and horizontal stretches and compressions to and from the x- and y-axes)", "subjects": [ "Functions, University Preparation" ], "source": "asn" }, "links": [ { "rel": [ "about" ], "type": "text/html", "href": "http://asn.desire2learn.com/resources/S2788207" }, { "rel": [ "self" ], "href": "/data/outcomes/o4.json" } ] }
json
The United Kingdom has admitted that its airstrikes, which purportedly targeted the Daesh Takfiri terrorist group in Syria, killed a civilian, the first time to acknowledge civilian casualties after media revelations of several deaths. According to media reports, British Defense Secretary Gavin Williamson said in a statement on Wednesday that the Royal Air Force strike on three Daesh terrorists in eastern Syria on March 26 also killed a motorcyclist who crossed into the area at the last minute. The statement comes a day after the BBC quoted a source inside the so-called US-led coalition purportedly fighting Daesh as saying that he believed civilians had been killed in "several" RAF air raids. "During a strike to engage three Daesh fighters, a civilian motorbike crossed into the strike area at the last moment and it is assessed that one civilian was unintentionally killed," Williamson said. "We reached this conclusion after undertaking routine and detailed post-strike analysis of all available evidence," he added. Back on March 26, the ministry said of the attack that a Reaper remotely-controlled aircraft had tracked "a group of terrorists in a vehicle" in the Syrian Euphrates valley and "successfully destroyed it and its occupants with a precision Hellfire missile attack". Meanwhile, the ministry on Wednesday provided details about Britain's involvement in the alleged fight against Daesh. It said that RAF has carried out more than 1,600 aerial attacks in Iraq and Syria, second only to the US. The statement further said that Britain had around 1,400 military personnel in the region providing "support to local partners".
english
<reponame>probedock/probedock-karma { "name": "probedock-karma", "description": "Karma probe for Probe Dock.", "version": "0.2.1", "homepage": "https://github.com/probedock/probedock-karma", "author": { "name": "<NAME> (Alpha Hydrae)", "email": "<EMAIL>" }, "repository": { "type": "git", "url": "git://github.com/probedock/probedock-karma.git" }, "bugs": { "url": "https://github.com/probedock/probedock-karma/issues" }, "license": "MIT", "engines": { "node": ">= 0.10.0" }, "dependencies": { "probedock-node": "^0.2.0", "q": "^1.0.1", "underscore": "^1.8.3" }, "devDependencies": { "grunt": "~0.4.5", "grunt-bump": "0.3.1", "grunt-contrib-jshint": "~0.11.2" } }
json
<gh_stars>0 Programming Background ================ <NAME> 9/14/2021 ## Reflection on Coding Back when I was a wee-undergrad, I took one intro to programming course for my math major which used the language C++. I remember fondly my professor, who had the same exact tonality of <NAME> (back before <NAME> was known as a predator), and he had the idiosyncrasy of wiping the chalk board clean meticulously in long swipes, end to end. I also remember the countless hours I spent on my final project where I had to write a program to simulate booking passengers at an airport. The reason my project turned into an odyssey was that I had failed to add ‘+1’ to my counter, so my code went off to an oblivion of zeros and ones and kept crashing my computer. Thus started my love of computer science. Fast forward to entering into the Master’s program in Statistics at NC State… While this course is my first exposure to intense programming with R, I had dabbled in R labs in previous course. Most of those ‘toe dipping’ experiences were following the professor’s code, line by line and changing one or two fields to fit the problem. Overall, it was a nice experience, but I did have several instances where the professor underestimated my dependence on their examples and was left in a tizzy when the file or operation deviated one step past the provided code. While I wouldn’t say I enjoy R, I now have a deeper appreciation. I like the rather simple structure of vectors, matrices, data frames, and lists. I LOVE the help resources with R that are available on-line. Since it is open-sourced, it feels more of a community where people will post questions and get rather straightforward responses. I was a kumquat and fought off R Markdown until this course and now I see its full glory! No more screen clipping code and adding them to a OneNote page. My professor has mentioned numerous times that the best and worst thing is most things have multiple ways to code it in. I also have had two courses that used SAS instead of R. My impression of SAS was a pal that made you buy their Amway products. It’s been a full year since SAS coding, but I remember it as being very straightforward with no CasE iSSues to worry about and semi-colons everywhere. Truth be told, that might have been the result of a ton handholding by the professor. I do remember feeling defeated by the installation process. I had to call Tech Support, where the person had to take over my computer to install it. Why the issue, you ask? Because my work computer used ‘D:’ as the personal directory, instead of the more common ‘C:’. I also remember my license expiring right as a project was due, which gave me more adrenaline than was needed. Of the two languages, I prefer R, which is why I waited NC State out for them to remove the ST555 requirement for Master candidates (an intensive SAS course). While that gave me one less language to struggle with, it came at a cost. I wish I had taken my program intensive course sooner, since it would have given me more confidence and knowledge with R, before the concepts became intense. But, se la vie, I’m glad I’m in this course now. ## Example R Markdown output. ``` r plot(iris) ``` ![](../images/unnamed-chunk-1-1.png)<!-- -->
markdown
Mahindra Thar may get a new variant soon. According to a leaked RTO document, an entry-level Thar 4x4 variant – AX (AC). This model will sit below the existing AX (O) variant and most likely take on the upcoming Maruti Suzuki Jimny that was showcased at Auto Expo 2023. Mahindra Thar 4x4 AX (AC) variant is expected to get front-facing second-row seats. It is rumoured to be offered in both 2.0-litre turbo petrol and 2.2-litre diesel engine models. Since it will be an entry-level model, the upcoming vehicle will miss on some features that are offered on other variants. Mahindra is also reportedly planning to bring Bharat Stage 6 Phase 2 model of Thar SUV. According to a report by Carwale, the BS6 2 model of Mahindra Thar will feature an E20 fuel-ready petrol and diesel engine compliant with RDE norms. The current 4x4 model of the SUV comes powered by a 2.2 litre diesel engine and a 2.0 litre petrol engine. While the RWD variant is powered by a 1.5 litre diesel engine. Recently, the company introduced two new colour options of Mahindra Thar 4WD. These are Everest White and Blazing Bronze which till now were available for the 2WD model only. With the new additions, Mahindra Thar 4WD will be available in six colours – Everest White, Blazing Bronze, Aqua Marine, Red Rage, Napoli Black, and Galaxy Grey. The automaker has also revised the price of Mahindra Thar RWD in the country. Its price has been increased by ₹50,000 just three months into the launch of the vehicle. The RWD version of Thar was launched in January 2023 with a starting price of ₹9.99 lakh. Unlock a world of Benefits! From insightful newsletters to real-time stock tracking, breaking news and a personalized newsfeed – it's all here, just a click away! Login Now!
english
distribution of these hormones around the body. problems, insomnia, fatigue, sudden weight gain or weight loss to name a few. balanced. Below are some yoga poses you can try. till the navel. then come back to the starting position. ankles are in a straight line. After that, place your hands by your side. Inhale and press your feet into the ground, gently lifting your hips. shoulders, arms, and feet. towel underneath them. elbows to press against your thighs, and join the palms together. Keep your spine straight, your hips moving toward the floor, breaths. to the floor. tucked toward your chest, keeping your gaze forward.
english
package com.jfinalshop.model.base; import com.jfinal.plugin.activerecord.Model; import com.jfinal.plugin.activerecord.IBean; /** * Generated by JFinal, do not modify this file. */ @SuppressWarnings("serial") public abstract class BaseProductMemberPrice<M extends BaseProductMemberPrice<M>> extends Model<M> implements IBean { public void setProduct(java.lang.Long product) { set("product", product); } public java.lang.Long getProduct() { return get("product"); } public void setMemberPrice(java.math.BigDecimal memberPrice) { set("member_price", memberPrice); } public java.math.BigDecimal getMemberPrice() { return get("member_price"); } public void setMemberPriceKey(java.lang.Long memberPriceKey) { set("member_price_key", memberPriceKey); } public java.lang.Long getMemberPriceKey() { return get("member_price_key"); } }
java
let path = require('path') let fs = require('fs') let { series, watch } = require('gulp') // command line arguments ex: dev [cmd] --foo --bar=123 // argv = ['--foo', '--bar=123'] // Argv = {foo:true, bar:123} let yargs = require('yargs/yargs') const { hideBin } = require('yargs/helpers') const argv = (() => { let arr = hideBin(process.argv) let n = arr.findIndex(function (t) { if (this.skipNext) { this.skipNext = false return false } let isFlag = t[0]=='-' let hasValue = t.indexOf('=')>=0 this.skipNext = isFlag && !hasValue return !isFlag }, { skipNext:false }) return arr.slice(n+1) })(); const Argv = yargs(argv).parse() // caller dir, /foo> .../dev -> '/foo' const initCwd = process.env.INIT_CWD const rootCwd = path.join(__dirname, '..', '..') // packs "a \n b \n c" to "a b c" let packWords = (s) => s.replace(/\s+/g, ' ').trim() let execSync = require('child_process').execSync const exec = (s, opt={}) => { let o = Object.assign({}, { cwd: exports.initCwd, stdio:'inherit', encoding:'utf8', }, opt, { env: Object.assign(process.env, opt.env) }) try { execSync(packWords(s),o) } catch(e) { } } let dockerImageName = 'pg-dev' let pgName = process.env.POSTGRES_NAME || Argv.pg_name || 'pg-dev' let pgUser = process.env.POSTGRES_USER || Argv.pg_user || 'postgres' let pgPassword = process.env.POSTGRES_PASSWORD || Argv.pg_password || '<PASSWORD>' // pg-dev2 maps to 5433 and 8001 let defaultPortIndex = (() => { let a = pgName.replace('pg-dev','').match(/^\d$/g) return a && (parseInt(a[0]) - 1) || 0 })() let pgPort = process.env.PGDEV_PORT || Argv.pg_port|| (5432 + defaultPortIndex) let httpPort = process.env.PGDEV_HTTP_PORT || Argv.pg_http_port || (8000 + defaultPortIndex) exports.docker_build = (cb) => { exec(`docker build -t ${dockerImageName} .`) exec(`docker system prune -f`) cb() } exports.docker_start = (cb) => { let cd = initCwd let dd = path.join(cd, '.data', pgName) exec(` docker run --rm -d -p ${pgPort}:5432 -p ${httpPort}:80 -v ${cd}:/work -v ${dd}:/var/lib/postgresql/data --name ${pgName} -e POSTGRES_PASSWORD=${<PASSWORD>} ${dockerImageName} -c shared_preload_libraries=pg_cron,pg_partman_bgw -c cron.database_name=${pgUser} -c cron.pg_partman_bgw.dbname=${pgUser} `) cb() } exports.docker_stop = (cb) => { exec(` docker exec -it ${pgName} su - postgres -c "/usr/lib/postgresql/12/bin/pg_ctl -D /var/lib/postgresql/data stop -m fast" `) // exec(`docker stop ${pgName}`) cb() } exports.bash = (cb) => { exec(`docker exec -it ${pgName} bash ${argv}`) cb() } // gulp --silent migra ^ // --from postgresql://postgres:<EMAIL>:5433/postgres ^ // --to postgresql://postgres:rei@0.0.0.0:5432/postgres exports.migra = (cb) => { let fromDb = Argv.from let toDb = Argv.to || `postgresql://${pgUser}:${pgPassword}@0.0.0.0:${pgPort}/${pgUser}` try { exec(`docker exec -it ${pgName} migra --unsafe ${fromDb} ${toDb}`) } catch(e) {} cb() } exports.multicorn = (cb) => { let file = Argv.file let p = path.resolve(initCwd, file) let s = fs.lstatSync(p) let isDir = s.isDirectory() let f = isDir ? 'setup.py' : path.basename(p) let d = isDir ? file : path.dirname(p) let notFound = !fs.existsSync(path.resolve(initCwd, d, f)) || path.extname(f)!=='.py' if (notFound) { cb() return } let wd = path.relative(initCwd, d) .split(path.sep) .join('/') exec(` docker exec -t -w /tmp ${pgName} python3 /work/${wd}/${f} clean --all install clean --all `) cb() } exports.psql = (cb) => { exec(`docker exec -it ${pgName} psql -U ${pgUser} -d ${pgUser} ${argv}`) cb() } exports.python = (cb) => { exec(`docker exec -it ${pgName} python3 ${argv} `) cb() } exports.test = (cb) => { let file = Argv.file let p = path.resolve(initCwd, file) let s = fs.lstatSync(p) let isDir = s.isDirectory() let f = isDir ? 'index.sql' : path.basename(p) let d = isDir ? file : path.dirname(p) let wd = path.relative(initCwd, d) .split(path.sep) .join('/') exec(` docker exec -t -w /work/${wd} ${pgName} psql -P pager=off --quiet -v -v ON_ERROR_STOP=1 -U postgres -d postgres ^ -f /dev.sql ^ -v test_file=${f} `) cb() } exports.uvicorn = (cb) => { exec(`docker exec -it -w / ${pgName} uvicorn dev:app --host=0.0.0.0 --port=80`) cb() } exports.watch = (cb) => { let file = Argv.file || '.' let p = path.resolve(initCwd, file) let s = fs.lstatSync(p) let isDir = s.isDirectory() let d = isDir ? file : path.dirname(p) // let wd = path.relative(initCwd, d) // .split(path.sep) // .join('/') watch(['./**/*.sql', './**/*.py'], { cwd:d }, series('test', 'multicorn')) cb() } exports.default = (cb) => { console.log(`pg-dev for pg and python development test - test --file for testing a file multicorn - builds multicorn module --file watch - watch --file for test and multicorn migra - migra --from for migration script uvicorn - maps /api/[schema.fn] see dev.py docker docker_build - builds pg-dev docker image docker_start - starts pg-dev instance docker_stop - stops pd-dev instance utils bash - bash shell psql - psql python - python3 `) cb() }
javascript
<filename>scripts/SDL_Interface/JavaGenerator/jsdl_base/SDLInteger.java package jsdl; public class SDLInteger implements SDLData { private int m_integer; public SDLInteger(int integer) { m_integer = integer; } @Override public String getType() { return "integer"; } @Override public void generateData(StringBuilder out_sdlBuffer) { out_sdlBuffer.append(Integer.toString(m_integer)); } }
java
Todoist is a simple to-do list app that helps boost your productivity dramatically. As a regular user, I can attest to its wondrous powers. It’s available for free (for Android, iOS and Windows) and comes with plenty of features, but does offer a premium version as well. Depending on how productive you need or want to be, you might consider upgrading to Todoist Premium over the free version. But what are the main differences between Todoist and Todoist Premium. Is the upgrade necessary and of course, is the subscription worth the price? Let’s run through some of Todoist Premium’s features that separate it from the free version of Todoist. Since product upgrades are always about getting your bang for the buck, it’s important to analyze whether the additional features justify upgrading at all. For starters, Todoist Premium allows you to add notes and attachments to the tasks you add to your to-do lists. This means you can write out the details of the task or add photos and spreadsheets to help paint a clearer picture. The feature is useful for those who take on large work projects, but unless that’s you, you can probably get away with just typing out regular tasks and making them just lengthy enough to include important details or hyperlinks. It also allows for alerts of all kinds. You can set up mobile and email reminders about events at specific times or get location-based alerts to complete tasks when you arrive or leave certain locations. Todoist free doesn’t offer reminder alerts, but there are free alternatives to this. Built-in calendar and reminder services on iOS and Android have alerts. Todoist Premium has better organization for your tasks and this is a really great feature for keeping track of everything in your own way. For free, you can sort tasks into folders or view them by due date. Premium includes more advanced labeling with auto-completion and color coding. Plus, you can filter between specific tasks by using the search bar for smart queries like project names, priority or who they’re assigned to. You can also export tasks to your calendar app of choice and view them as events. Lastly, Premium takes daily backups of your tasks that you can restore at any time should you need to. It also offers automatic sync across all of your devices without having to manually refresh. Depending on your reliance on Todoist, the automatic backups should come in handy. Note: The paid upgrade also includes some other minor goodies like tracking your productivity score and project templates, but they seem pretty trivial. Now that you know everything you get with Todoist Premium and whether or not the features are necessarily crucial, it all comes down to the price. Todoist lets you create tasks, set due dates, organize them into labels, collaborate with others and sync across apps and devices for free. For everything else, you’ll need Todoist Premium for $29 per year. Everybody is different and you probably prioritize certain premium features over others – perhaps all of them are a priority or none of them are. Depending on your own needs, you might be ready to make the leap to Premium for the 30 bucks every year. Is Todoist Premium Worth It? The answer: probably not. Most people can get away with just utilizing the features Todoist already offers for free. Additionally, many of the premium features have free alternatives. Notes and attachments aren’t groundbreaking and you can store them elsewhere for free. Reminders and location alerts are also free in other apps. The reason why the answer is a “probably” is because some of the premium features that are hard to find in other alternatives, might be truly valuable to you. If you want better organization of all your tasks with advanced filters and daily backups to avoid data loss, spring for Premium. That’s the best way to determine if it’s worth it. For the majority, the free version of Todoist is sufficient. It’s available on the web, PC, Mac, iOS and Android. The above article may contain affiliate links which help support Guiding Tech. However, it does not affect our editorial integrity. The content remains unbiased and authentic.
english
{ "directions": [ "On a cutting board mince and mash the garlic to a paste with the salt. In a food processor pur\u00e9e the chick-peas with the garlic paste, the tahini, the lemon juice, 1/4 cup of the oil, and 1/2 cup water, scraping down the sides, until the hummus is smooth and add salt to taste. Add water, if necessary, to thin the hummus to the desired consistency and transfer the hummus to a bowl. In the food processor, cleaned, pur\u00e9e the remaining 1/4 cup oil with the parsley until the oil is bright green and the parsley is minced transfer the parsley oil to a small jar. The hummus and the parsley oil may be made 3 days in advance and kept covered and chilled. Divide the hummus between shallow serving dishes and smooth the tops. Drizzle the hummus with the parsley oil and sprinkle it with the pine nuts. Serve the hummus with the pita." ], "ingredients": [ "4 garlic cloves", "1 teaspoon salt", "two 1-pound 3-ounce cans chick-peas, drained and rinsed", "2/3 cup well stirred tahini", "1/4 cup fresh lemon juice, or to taste", "1/2 cup olive oil, or to taste", "1/4 cup fresh parsley leaves", "2 tablespoons pine nuts, toasted lightly", "Accompaniment:Toasted Pita Thins" ], "language": "en-US", "source": "www.epicurious.com", "tags": [ "Condiment/Spread", "Garlic", "Side", "Vegetarian", "Quick & Easy", "Ramadan", "Chickpea", "Healthy", "Vegan", "Gourmet" ], "title": "Hummus", "url": "http://www.epicurious.com/recipes/food/views/hummus-101577" }
json
CSK vs DC, IPL 2020: Prithvi Shaw smashed 64 off 43 balls to help Delhi Capitals post 175 for 3 on the board after Chennai Super Kings put them into bat in Dubai. By Rohan Sen: Spirit of cricket was on full display in Dubai on Friday when MS Dhoni helped out Prithvi Shaw with an eye issue which the latter faced during Delhi Capitals' innings in Dubai. Shaw was struggling with his eyesight possibly due to dirt in his eye. He took Dhoni's help first before calling for the physiotherapist Patrick Farhart on the field in the 9th over. Dhoni attended to him first before Farhart checked out the issue with Shaw's eyes. The umpires called for a strategic time-out due to the break in play. Shaw went on to smash 64 runs off 43 balls with 9 fours and a six to help Delhi Capitals post 175 for 3 in their allotted 20 overs after Chennai Super Kings won the toss and put them into bat first. DC got off to the super start with Shaw and Shikhar Dhawan adding 94 runs for the first wicket in 10. 3 overs before the latter got out for 35. But Shaw continued to attack the bowlers and got to his 50 off 35 balls. He added another 14 runs to his score before getting out to leg-spinner Piyush Chawla, who bagged both DC openers. (CSK vs DC Live Score, IPL 2020) Shaw's 5th IPL fifty took him second on the list of batsmen with most 50s before the age of 21. The list is headed by Rishabh Pant, who has 9 fifties in his IPL career so far. The 20-year-old right-handed batsman is only in his third season in the IPL. Shaw has amassed 667 runs from 27 matches at an average of 24. 70 with 5 fifties to his name. Delhi Capitals won their last match in a Super Over against Kings XI Punjab while Chennai Super Kings lost their previous tie against Rajasthan Royals.
english
New Delhi | Congress president Rahul Gandhi on Sunday cast his vote in Lok Sabha polls here and hit out at Prime Minister Narendra Modi, saying he “used hatred” during the elections but the grand old party “used love”. Asserting that this election saw a “good fight” between the two rival parties, Gandhi said he thought that “love is going to win”. “Prime Minister Narendra Modi used hatred, we (Congress) love. And, I think love is going to win,” he told reporters, soon after exercising his franchise. Clad in his trademark kurta-pyjama, he was accompanied by party’s New Delhi candidate Ajay Maken on way to the polling booth, a walking distance from his Tughlaq Lane residence. “There are four issues in this election, these are not our issues but people’s issues. And most important among these is of unemployment. Then, condition of farmers, demonetisation, Gabbar Singh Tax (mocking GST), corruption and the Rafale issue,” he said. As an independent media platform, we do not take advertisements from governments and corporate houses. It is you, our readers, who have supported us on our journey to do honest and unbiased journalism. Please contribute, so that we can continue to do the same in future.
english
<gh_stars>1-10 {"appbase.js":"<KEY>}
json
<gh_stars>0 import React from 'react' import { IconProps } from './types' const IconAirportShuttle: React.FC<IconProps> = ({ ...props }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}> {props.title && <title>{props.title}</title>} <path d="M0 0h24v24H0z" fill="none" /> <path d="M17 5H3c-1.1 0-2 .89-2 2v9h2c0 1.65 1.34 3 3 3s3-1.35 3-3h5.5c0 1.65 1.34 3 3 3s3-1.35 3-3H23v-5l-6-6zM3 11V7h4v4H3zm3 6.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm7-6.5H9V7h4v4zm4.5 6.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zM15 11V7h1l4 4h-5z" /> </svg> ) export { IconAirportShuttle as default }
typescript
[{"article":"Сүрүн сирэй","views":63917,"mobile_percentage":4.18,"rank":1},{"article":"Main Page","views":6508,"mobile_percentage":0.77,"rank":2},{"article":"Биики Домох:Көмө","views":3567,"mobile_percentage":3.87,"rank":3},{"article":"Биики Домох:Кэпсэтэр сир","views":2491,"mobile_percentage":5.58,"rank":4},{"article":"Саха өһүн хоһооно","views":1922,"mobile_percentage":71.49,"rank":5},{"article":"Саха өс хоһоонноро","views":1345,"mobile_percentage":93.16,"rank":6},{"article":"БД:Туһунан","views":1109,"mobile_percentage":5.41,"rank":7},{"article":"Биики Домох:Күрэс:2019.03.19","views":874,"mobile_percentage":2.52,"rank":8},{"article":"Биики Домох:Дьаһабыллар","views":739,"mobile_percentage":7.04,"rank":9},{"article":"Тыл","views":587,"mobile_percentage":54.17,"rank":10},{"article":"БД:Суолта","views":479,"mobile_percentage":7.31,"rank":11},{"article":"Тулаайах оҕо (Далан)","views":465,"mobile_percentage":64.3,"rank":12},{"article":"Бэйэтэ эмтиэкэ (Суорун Омоллоон)","views":453,"mobile_percentage":69.09,"rank":13},{"article":"Саха сомоҕо домохторо","views":437,"mobile_percentage":70.25,"rank":14},{"article":"Өлүү","views":344,"mobile_percentage":12.5,"rank":15},{"article":"Таптал","views":328,"mobile_percentage":51.83,"rank":16},{"article":"Дьикти саас (Далан)","views":305,"mobile_percentage":74.1,"rank":17},{"article":"Доҕордоһуу","views":280,"mobile_percentage":49.29,"rank":18},{"article":"Балыксыт (Н.Д. Неустроев)","views":258,"mobile_percentage":69.77,"rank":19},{"article":"Саха тыла","views":224,"mobile_percentage":14.73,"rank":20},{"article":"Үөрэх","views":219,"mobile_percentage":76.26,"rank":21},{"article":"Көҥүл","views":210,"mobile_percentage":22.86,"rank":22},{"article":"Иирбит Ньукуус","views":204,"mobile_percentage":73.53,"rank":23},{"article":"Биики Домох:Талымҥа хандьыдааттар","views":199,"mobile_percentage":9.05,"rank":24},{"article":"А. Убаарыскай","views":198,"mobile_percentage":13.13,"rank":25},{"article":"Дьахтар уонна эр киһи","views":192,"mobile_percentage":30.73,"rank":26},{"article":"Киһи","views":183,"mobile_percentage":26.78,"rank":27},{"article":"Олох оонньуура (Алампа)","views":179,"mobile_percentage":77.09,"rank":28},{"article":"Дьол","views":175,"mobile_percentage":21.71,"rank":29},{"article":"Билгэ","views":170,"mobile_percentage":71.76,"rank":30},{"article":"Дьоппуон өс хоһоонноро","views":168,"mobile_percentage":18.45,"rank":31},{"article":"Халлаан","views":167,"mobile_percentage":21.56,"rank":32},{"article":"Биики Домох:Дьаһабыл буоларга көрдөбүл суруйуу","views":166,"mobile_percentage":1.2,"rank":33},{"article":"Казаах өс хоһоонноро","views":163,"mobile_percentage":15.34,"rank":34},{"article":"Олох","views":158,"mobile_percentage":24.68,"rank":35},{"article":"Нуучча өс хоһоонноро","views":150,"mobile_percentage":18.67,"rank":36},{"article":"Кэриэй өһүн хоһооно","views":145,"mobile_percentage":25.52,"rank":37},{"article":"Күкүр Уус (дыраама)","views":144,"mobile_percentage":68.75,"rank":38},{"article":"Былатыан Ойуунускай","views":136,"mobile_percentage":48.53,"rank":39},{"article":"Биики Домох:Туһунан","views":133,"mobile_percentage":54.14,"rank":40},{"article":"Саха сирэ","views":131,"mobile_percentage":19.85,"rank":41},{"article":"Муусука","views":127,"mobile_percentage":22.05,"rank":42},{"article":"Ааҥыл өс хоһоонноро","views":125,"mobile_percentage":28,"rank":43},{"article":"Өксөкүлээх Өлөксөй","views":124,"mobile_percentage":55.65,"rank":44},{"article":"Түүл","views":118,"mobile_percentage":27.97,"rank":45},{"article":"Латыын өс хоһоонноро","views":118,"mobile_percentage":22.88,"rank":46},{"article":"Сахалар","views":118,"mobile_percentage":25.42,"rank":47},{"article":"Дьэбириэй өс хоһоонноро","views":117,"mobile_percentage":20.51,"rank":48},{"article":"Эбэҥки өс хоһооно","views":113,"mobile_percentage":21.24,"rank":49},{"article":"Грузин өс хоһоонноро","views":112,"mobile_percentage":27.68,"rank":50},{"article":"Кытай өс хоһоонноро","views":110,"mobile_percentage":24.55,"rank":51},{"article":"Сэрии","views":110,"mobile_percentage":24.55,"rank":52},{"article":"Ыра санаа","views":108,"mobile_percentage":23.15,"rank":53},{"article":"Уһуктуу (Болот Боотур)","views":107,"mobile_percentage":63.55,"rank":54},{"article":"Боронсуус өс хоһоонноро","views":106,"mobile_percentage":22.64,"rank":55},{"article":"Саас","views":106,"mobile_percentage":61.32,"rank":56},{"article":"Ниэмэс өс хоһоонноро","views":105,"mobile_percentage":31.43,"rank":57},{"article":"Поляк өс хоһоонноро","views":103,"mobile_percentage":24.27,"rank":58},{"article":"Ааҥыл өһүн хоһооно","views":100,"mobile_percentage":10,"rank":59}]
json
<gh_stars>10-100 {"title": "An integrated proof language for imperative programs.", "fields": ["proof theory", "automated proof checking", "linked data structure", "computer science", "mathematical proof", "reasoning system"], "abstract": "We present an integrated proof language for guiding the actions of multiple reasoning systems as they work together to prove complex correctness properties of imperative programs. The language operates in the context of a program verification system that uses multiple reasoning systems to discharge generated proof obligations. It is designed to 1) enable developers to resolve key choice points in complex program correctness proofs, thereby enabling automated reasoning systems to successfully prove the desired correctness properties; 2) allow developers to identify key lemmas for the reasoning systems to prove, thereby guiding the reasoning systems to find an effective proof decomposition; 3) enable multiple reasoning systems to work together productively to prove a single correctness property by providing a mechanism that developers can use to divide the property into lemmas, each of which is suitable for a different reasoning system; and 4) enable developers to identify specific lemmas that the reasoning systems should use when attempting to prove other lemmas or correctness properties, thereby appropriately confining the search space so that the reasoning systems can find a proof in an acceptable amount of time. The language includes a rich set of declarative proof constructs that enables developers to direct the reasoning systems as little or as much as they desire. Because the declarative proof statements are embedded into the program as specialized comments, they also serve as verified documentation and are a natural extension of the assertion mechanism found in most program verification systems. We have implemented our integrated proof language in the context of a program verification system for Java and used the resulting system to verify a collection of linked data structure implementations. Our experience indicates that our proof language makes it possible to successfully prove complex program correctness properties that are otherwise beyond the reach of automated reasoning systems.", "citation": "Citations (73)", "departments": ["Massachusetts Institute of Technology", "\u00c9cole Polytechnique F\u00e9d\u00e9rale de Lausanne", "Massachusetts Institute of Technology"], "authors": ["<NAME>.....http://dblp.org/pers/hd/z/Zee:Karen", "<NAME>.....http://dblp.org/pers/hd/k/Kuncak:Viktor", "<NAME>.....http://dblp.org/pers/hd/r/Rinard:Martin_C="], "conf": "pldi", "year": "2009", "pages": 14}
json
<reponame>limitofzero/taiga-ui import {arrayFlat, getImports, Node} from 'ng-morph'; export function getNamedImportReferences( namedImport: string, moduleSpecifier: string | string[] = '**/**', ): Node[] { const importDeclarations = getImports('**/**', { namedImports: [namedImport], moduleSpecifier: moduleSpecifier, }); const namedImports = importDeclarations.map(declaration => declaration .getNamedImports() .find(specifier => specifier.getName() === namedImport) ?.getNameNode(), ); return arrayFlat( namedImports.map(specifier => specifier?.findReferencesAsNodes() || []), ); }
typescript
<reponame>sickomode-tree/bitubi<filename>src/utils/array.js import _ from 'lodash' import { getFormattedValue } from './form' export const queryArrayByKey = (array, key) => { const isArray = _.isArray(array) let items = [] if (isArray) { array.forEach(item => { if (!_.find(items, item[key])) { items.push(item[key]) } }) } return items } export const getValues = (array, key) => { let values = [] values = _.uniq(array.map(item => getObjectValue(item, key))) return values } export const getObjectValue = (object, path, type) => { let value = object path.split('.').forEach(key => { if (value) { value = value[key] } }) if (!_.isNil(object) && !_.isNil(type)) { value = getFormattedValue(value, type) } return value }
javascript
{"nom":"<NAME>","dpt":"Marne","inscrits":52,"abs":8,"votants":44,"blancs":5,"nuls":1,"exp":38,"res":[{"panneau":"1","voix":27},{"panneau":"2","voix":11}]}
json
While compiling the list of India’s youngest debutants in Test cricket ahead of Prithvi Shaw’s impending debut, a couple of things stood out. Before the first Test between India and West Indies, the highest individual score for an Indian teenager on debut was 36 by CS Nayudu way back in 1934. Twenty nine cricketers had made their debut for India before turning 20 and none of them had made a half century in their first match — not even destiny’s favourite child, Sachin Tendulkar. It also felt like the stage was set for Shaw to break a few of these records. In January 2017, at this very venue, he scored a century on his Ranji Trophy debut for Mumbai. Later that year, he scored a century in his Duleep Trophy debut as well. So, on Thursday against the West Indies, when he went on to become the youngest Indian cricketer to score, first, a half-century and then, a century — there was a sense of inevitability about it. On his first day as a senior international cricketer, the 18-year-old lived up to the expectations that were placed on him. Those who have watched Shaw bat in domestic and U19 cricket will not have been surprised by the way he started off his innings. As the first sign of his confidence, he walked out and faced the first ball of the match instead of settling down at the non-striker’s end. The shot that he played to get off the mark was a signature one too — high back-lift that comes down in an arc reminiscent of Brian Lara’s, fast hands, reading the length quickly and punching through cover for three runs. From there on, he kept getting better. Despite losing his senior opening partner KL Rahul in the first over, Shaw didn’t get bogged down by the situation. He backed himself to put the bad balls away from the word go and stuck to his natural game. The pitch was playing true, the depleted Windies bowling attack (without Jason Holder) wasn’t offering much in terms of threat in the October heat and Shaw made the most of it. As a statistic showed, off the first 16 balls he faced, he didn’t play a single defensive stroke. He either left the balls alone or looked to score runs. That trend continued for most of his innings as he cut, drove and flicked fearlessly. It’s normal to think he wasn’t being challenged by the skills of the opposition but playing one’s natural game in the very first knock at the highest level is easier said than done. While we have come to expect that fearlessness from Shaw, the most heartening aspect was the few evident technical corrections he has made in his game. During the Under-19 World Cup, for instance, Ian Bishop had observed how his back foot was moving beyond the leg stump as part of his initial trigger movement, instead of moving towards middle and off. While this enabled him to cut with more power as he made himself room, his driving was at times circumspect. Against West Indies, however, that trigger movement was not to be seen. He is still not moving his back leg towards the off stump, but it’s much more straighter now. As a result, when he played a cover drive or a square drive off the front foot, he was not playing too far away from the body, with his left leg not locked down. His back-foot game, already one of his strong points, seemed to have improved as well as his punches hardly seemed forced. Sanjay Manjrekar, who’s dissecting of batting technique is often top-notch, spoke about how Shaw was middling the ball almost every single time and the full face of the bat was presented even when playing square of the wicket. There have been question marks raised in the past whether Shaw’s technique would stand the rigours of Test cricket. While a century against this West Indies attack on a pitch that was a dream to bat on (Rahul must be kicking himself, eh?) does not quite answer it emphatically, Shaw has showed he has the desire to improve his game. Arguably helped by the time he has spent with Rahul Dravid, who has been a firm advocate of fast-tracking Shaw, it was not just the technical tweaks that stood out in Shaw’s game in Rajkot. At the highest level, the mental aspect is often the difference between a promising talent completing the step up or remaining unfulfilled. And by displaying the maturity to convert a good start into a century, Shaw also showed he has a good head on those young shoulders. One of the less-obvious highlights of Shaw’s innings was how he reset himself after reaching the 100. Without going into a shell, he played the most number of defensive strokes in his innings in the 20-ball period following his landmark. Far too often we see players losing their head in the moment after reaching a milestone, and perish trying to shift gears. M Vijay and KL Rahul have both shown that tendency, to name a few examples, in the recent past. While Shaw didn’t quite convert his century into a big one, his priorities were in order. And as evidenced by the disappointment in his face after getting out in the last over before tea to a soft dismissal, this is a young guy with the hunger for big runs. Tougher challenges await Shaw, but in his first Test, he passed in flying colours.
english
{ "北愛爾蘭": "Irlande du Nord", "波蘭": "Pologne", "南美洲": "Amérique du Sud", "南歐": "Europe du Sud", "美洲": "Amérique", "阿塞拜疆": "Azerbaïdjan", "美國": "États-Unis", "奧地利": "Autriche", "匈牙利": "Hongrie", "國家同地區一覽": "Liste des pays du monde", "法國": "France", "俄羅斯": "Russie", "加拿大": "Canada", "古希臘": "Grèce antique", "保加利亞": "Bulgarie", "黑山": "Monténégro", "東歐": "Europe de l'Est", "政治": "Politique", "蘇格蘭": "Écosse", "亞美尼亞": "Arménie", "薩丁島": "Sardaigne", "塞浦路斯": "Chypre (pays)", "德國": "Allemagne", "巴倫支海": "Mer de Barents", "愛爾蘭共和國": "Irlande (pays)", "馬恩島": "Île de Man", "意大利": "Italie", "蘇聯解體": "Dislocation de l'URSS", "斯洛伐克": "Slovaquie", "歐亞大陸": "Eurasie", "比利時": "Belgique", "斯洛文尼亞": "Slovénie", "摩納哥": "Monaco", "澤西島": "Jersey", "格魯吉亞": "Géorgie (pays)", "馬耳他騎士團": "Ordre souverain militaire hospitalier de Saint-Jean de Jérusalem, de Rhodes et de Malte", "德涅斯特河沿岸共和國": "Transnistrie", "華沙公約組織": "Pacte de Varsovie", "阿布哈茲": "Abkhazie", "西班牙": "Espagne", "南奧塞梯共和國": "Ossétie du Sud", "馬耳他": "Malte", "北塞浦路斯": "Chypre du Nord", "英倫": "Angleterre", "塞浦路斯英屬基地區": "Akrotiri et Dhekelia", "歐洲": "Europe", "歐洲委員會": "Commission européenne", "列支敦士登": "Liechtenstein", "直布羅陀": "Gibraltar", "北美洲": "Amérique du Nord", "大西洋": "Océan Atlantique", "立陶宛": "Lituanie", "安道爾": "Andorre", "歐洲聯盟": "Union européenne", "捷克": "République tchèque", "波斯尼亞": "Bosnie-Herzégovine", "科索沃": "Kosovo", "梵蒂岡": "Vatican", "愛沙尼亞": "Estonie", "根息島": "Guernesey", "挪威": "Norvège", "希臘": "Grèce", "土耳其": "Turquie", "地中海": "Mer Méditerranée", "西西里": "Sicile", "北歐": "Europe du Nord", "斯瓦爾巴群島": "Svalbard", "克羅地亞": "Croatie", "中歐": "Europe centrale", "納戈爾諾-卡拉巴赫": "Haut-Karabagh", "哈薩克": "Kazakhstan", "烏克蘭": "Ukraine", "摩爾多瓦": "Moldavie", "芬蘭": "Finlande", "葡萄牙": "Portugal", "盧森堡": "Luxembourg (pays)", "蘇聯": "Union des républiques socialistes soviétiques", "國": "État", "瑞典": "Suède", "揚馬延島": "Île Jan Mayen", "黑海": "Mer Noire", "北大西洋公約組織": "Organisation du traité de l'Atlantique Nord", "車臣共和國": "Tchétchénie", "冷戰": "Guerre froide", "愛琴海": "Mer Égée", "澳洲": "Australie", "亞洲": "Asie", "法羅群島": "Îles Féroé", "拉脫維亞": "Lettonie", "馬其頓共和國": "Macédoine (pays)", "瑞士": "Suisse", "阿爾巴尼亞": "Albanie", "大洲": "Continent", "荷蘭": "Pays-Bas", "大洋洲": "Océanie", "塞爾維亞": "Serbie", "英國": "Royaume-Uni", "西歐": "Europe de l'Ouest", "南極洲": "Antarctique", "威爾斯": "Pays de Galles", "羅馬尼亞": "Roumanie", "非洲": "Afrique", "格陵蘭": "Groenland", "波羅的海": "Mer Baltique", "直布羅陀海峽": "Détroit de Gibraltar", "奧蘭群島": "Åland", "聖馬連奴": "Saint-Marin", "丹麥": "Danemark", "北冰洋": "Océan Arctique", "裏海": "Mer Caspienne", "冰島": "Islande", "平方公里": "Kilomètre carré", "北海": "Mer du Nord", "白俄羅斯": "Biélorussie", "半島": "Péninsule" }
json
from django.conf import settings from django.template.loader import render_to_string from base.utils import send_email_wrapper, run_in_background from registration.models import Host @run_in_background def send_checkin_email_to_hosts(entry_log): receivers = [entry_log.host.user.email] message = render_to_string('entry_logs/email_templates/checkin_email.html', {"log": entry_log}) subject = "New Entry at Entry Gate" send_email_wrapper(sender=settings.DEFAULT_EMAIL_SENDER, receivers=receivers, subject=subject, message=message) @run_in_background def send_checkout_email_to_visitor(entry_log): receivers = [entry_log.visitor_user.user.email] message = render_to_string('entry_logs/email_templates/checkout_email.html', {"log": entry_log}) subject = "Thank you for visiting this organization" send_email_wrapper(sender=settings.DEFAULT_EMAIL_SENDER, receivers=receivers, subject=subject, message=message)
python
“Uppena” movie is an upcoming film in Tollywood, the audience very much waiting for that. Because of music, Uppena is already considered a hit. Music Director Devi Sri Prasad known as DSP is composed for the “Uppena” movie. The latest son “Ranguladdhukunna” is abuzz, after Nee Kannu Neeli Samudram and Dhak Dhak songs.
english
#include "ItemRocket.h" ItemRocket::ItemRocket(int _x, int _y): x(_x), y(_y) { sprite = new cgf::Sprite(); sprite->load("data/img/rocket.png"); sprite->scale(1.2, 1.2); sf::Vector2f vpos = sf::Vector2f(); vpos.x = x; vpos.y = y; sprite->setPosition(vpos); } ItemRocket::~ItemRocket(){ if (sprite){ delete sprite; } } void ItemRocket::visit(Inventory *iv) { iv->refillRocketLauncher(1); } void ItemRocket::draw(cgf::Game* game){ game->getScreen()->draw(*sprite); }
cpp
<reponame>JohnKvisol/Starbound_RU<gh_stars>10-100 [ { "DeniedAlternatives": [], "Files": { "objects/floran/floranlight/floranlight.object": [ "/apexDescription" ] }, "Texts": { "Eng": "A spooky green light.", "Rus": "Жуткий зеленый свет." } }, { "DeniedAlternatives": [], "Files": { "objects/floran/floranlight/floranlight.object": [ "/floranDescription" ] }, "Texts": { "Eng": "Floran light gain power from sssun. Releassse power sslow when sun iss gone.", "Rus": "Сссвет флорана получать энергию от сссолнца. Выссвобождать энергию медленно, когда нет сссолнца." } }, { "DeniedAlternatives": [], "Files": { "objects/floran/floranlight/floranlight.object": [ "/avianDescription" ] }, "Texts": { "Eng": "I wonder how you'd control where plant lighting grows.", "Rus": "" } }, { "DeniedAlternatives": [], "Files": { "objects/floran/floranlight/floranlight.object": [ "/humanDescription" ] }, "Texts": { "Eng": "The green glow makes me uncomfortable.", "Rus": "" } }, { "DeniedAlternatives": [], "Files": { "objects/floran/floranlight/floranlight.object": [ "/glitchDescription/glitchEmotedText" ] }, "Texts": { "Eng": "The growth of these pods appears to be strictly controlled.", "Rus": "" } }, { "DeniedAlternatives": [], "Files": { "objects/floran/floranlight/floranlight.object": [ "/description" ] }, "Texts": { "Eng": "The pod emits a natural green light.", "Rus": "" } }, { "DeniedAlternatives": [], "Files": { "objects/floran/floranlight/floranlight.object": [ "/hylotlDescription" ] }, "Texts": { "Eng": "These pods seem anything but natural.", "Rus": "" } }, { "DeniedAlternatives": [], "Files": { "objects/floran/floranlight/floranlight.object": [ "/novakidDescription" ] }, "Texts": { "Eng": "This light is growin' right outta the wall.", "Rus": "" } }, { "DeniedAlternatives": [], "Files": { "objects/floran/floranlight/floranlight.object": [ "/shortdescription" ] }, "Texts": { "Eng": "Vine Wall Light", "Rus": "" } } ]
json
<filename>articles/storage/blobs/archive-rehydrate-overview.md --- title: Übersicht über die Aktivierung von Blobs aus der Archivebene description: Während ein Blob sich auf der Archivzugriffsebene befindet, wird es als offline betrachtet und kann nicht gelesen oder geändert werden. Wenn Daten in einem archivierten Blob gelesen oder geändert werden sollen, muss das Blob zunächst auf einer Onlineebene (heiße oder kalte Ebene) aktiviert werden. services: storage author: tamram ms.author: tamram ms.date: 08/24/2021 ms.service: storage ms.subservice: blobs ms.topic: conceptual ms.reviewer: fryu ms.openlocfilehash: 33f29c44e32f1deed0c21e3695e61457a31c7f65 ms.sourcegitcommit: 16e25fb3a5fa8fc054e16f30dc925a7276f2a4cb ms.translationtype: HT ms.contentlocale: de-DE ms.lasthandoff: 08/25/2021 ms.locfileid: "122829676" --- # <a name="overview-of-blob-rehydration-from-the-archive-tier"></a>Übersicht über die Aktivierung von Blobs aus der Archivebene Während ein Blob sich auf der Archivzugriffsebene befindet, wird es als offline betrachtet und kann nicht gelesen oder geändert werden. Wenn Daten in einem archivierten Blob gelesen oder geändert werden sollen, muss das Blob zunächst auf einer Onlineebene (heiße oder kalte Ebene) aktiviert werden. Es gibt zwei Möglichkeiten, ein auf der Archivebene gespeichertes Blob zu aktivieren: - [Kopieren eines archivierten Blobs auf eine Onlineebene](#copy-an-archived-blob-to-an-online-tier): Sie können ein archiviertes Blob mithilfe des Vorgangs[Copy Blob](/rest/api/storageservices/copy-blob) oder [Copy Blob from URL](/rest/api/storageservices/copy-blob-from-url) in ein neues Blob auf der heißen oder kalten Ebene kopieren. Microsoft empfiehlt diese Option für die meisten Szenarios. - [Ändern der Zugriffsebene eines Blobs in eine Onlineebene](#change-a-blobs-access-tier-to-an-online-tier): Sie können ein archiviertes Blob auf der heißen oder kalten Ebene aktivieren, indem Sie die Ebene mithilfe des Vorgangs [Blobebene festlegen](/rest/api/storageservices/set-blob-tier) ändern. Die Aktivierung eines Blobs aus der Archivebene kann mehrere Stunden dauern. Microsoft empfiehlt, größere Blobs zu aktivieren, um eine optimale Leistung zu erzielen. Es kann länger dauern, wenn mehrere kleine Blobs gleichzeitig aktiviert werden. Sie können [Azure Event Grid](../../event-grid/overview.md) so konfigurieren, dass ein Ereignis ausgelöst wird, wenn ein Blob aus der Archivebene in einer Onlineebene aktiviert wird, und dass das Ereignis an einen Ereignishandler gesendet wird. Weitere Informationen hierzu finden Sie unter [Behandeln eines Ereignisses bei der Blobaktivierung](#handle-an-event-on-blob-rehydration). Weitere Informationen zu Zugriffsebenen in Azure Storage finden Sie unter [Zugriffsebenen für Azure Blob Storage: „Heiß“, „Kalt“ und „Archiv“](storage-blob-storage-tiers.md). ## <a name="rehydration-priority"></a>Aktivierungspriorität Wenn Sie ein Blob aktivieren, können Sie die Priorität für den Aktivierungsvorgang über den optionalen *x-ms-rehydrate-priority*-Header bei den Vorgängen [Set Blob Tier](/rest/api/storageservices/set-blob-tier) oder [Copy Blob](/rest/api/storageservices/copy-blob)/[Copy Blob from URL](/rest/api/storageservices/copy-blob-from-url) festlegen. Optionen für Aktivierungspriorität: - **Standardpriorität**: Die Aktivierungsanforderung gemäß der Eingangsreihenfolge verarbeitet und kann bis zu 15 Stunden dauern. - **Hohe Priorität**: Die Aktivierungsanforderung hat Vorrang vor Anforderungen mit Standardpriorität und kann bei Objekten mit einer Größe von weniger als 10 GB in weniger als einer Stunde verarbeitet werden. Wenn Sie die Aktivierungspriorität während des Aktivierungsvorgangs prüfen möchten, rufen Sie [Get Blob Properties](/rest/api/storageservices/get-blob-properties) auf, sodass der Wert des `x-ms-rehydrate-priority`-Headers zurückgegeben wird. Für die Eigenschaft für die Aktivierungspriorität wird *Standard* oder *Hoch* zurückgegeben. Die Standardpriorität ist die Standardaktivierungsoption. Die Aktivierung mit hoher Priorität ist eine schnellere Option, kostet aber auch mehr als die Aktivierung mit Standardpriorität. Die Aktivierung mit hoher Priorität kann je nach Blobgröße und aktueller Auslastung länger als eine Stunde dauern. Microsoft empfiehlt, die Aktivierung mit hoher Priorität nur in Notfallsituationen zu verwenden, in denen Daten dringend wiederhergestellt werden müssen. Weitere Informationen zu den Preisunterschieden zwischen Aktivierungsanforderungen mit Standardpriorität und hoher Priorität finden Sie unter [Preise für Azure Blob Storage](https://azure.microsoft.com/pricing/details/storage/blobs/). ## <a name="copy-an-archived-blob-to-an-online-tier"></a>Kopieren eines archivierten Blobs auf eine Onlineebene Die erste Möglichkeit, ein Blob aus der Archivebene in eine Onlineebene zu verschieben, besteht darin, das archivierte Blob in ein neues Zielblob, also die heiße oder kalte Ebene, zu kopieren. Zum Kopieren des Blobs kann der Vorgang [Copy Blob](/rest/api/storageservices/copy-blob) oder [Copy Blob from URL](/rest/api/storageservices/copy-blob-from-url) verwendet werden. Wenn ein archiviertes Blob in ein neues Blob auf der Onlineebene kopiert wird, bleibt das Quellblob auf der Archivebene unverändert. Das archivierte Blob muss in ein neues Blob mit einem anderen Namen oder in einen anderen Container kopiert werden. Das Quellblob kann nicht durch Kopieren in dasselbe Blob überschrieben werden. Microsoft empfiehlt in den meisten Fällen, in denen ein Blob aus der Archivebene in eine Onlineebene verschoben werden muss, aus folgenden Gründen einen Kopiervorgang durchzuführen: - Durch einen Kopiervorgang wird die Gebühr für vorzeitiges Löschen vermieden, die erhoben wird, wenn die Ebene für das Blob aus der Archivebene vor Ablauf der vorgesehenen Frist von 180 Tagen gewechselt wird. Weitere Informationen finden Sie unter [Zugriffsebene „Archiv“](storage-blob-storage-tiers.md#archive-access-tier). - Wenn für das Speicherkonto eine Lebenszyklusverwaltungsrichtlinie gilt, kann die Aktivierung eines Blobs mit [Set Blob Tier](/rest/api/storageservices/set-blob-tier) dazu führen, dass das Blob aufgrund der Lebenszyklusrichtlinie nach der Aktivierung auf die Archivebene zurück verschoben wird, weil der Zeitpunkt der letzten Änderung nach dem für die Richtlinie festgelegten Schwellenwert liegt. Bei einem Kopiervorgang bleibt das Quellblob auf der Archivebene und es wird ein neues Blob mit einem anderen Namen und einem neuen Wert für den Zeitpunkt der letzten Änderung erstellt, sodass keine Gefahr besteht, dass das aktivierte Blob aufgrund der Lebenszyklusrichtlinie auf die Archivebene zurück verschoben wird. Das Kopieren eines Blobs aus dem Archiv kann je nach ausgewählter Aktivierungspriorität mehrere Stunden dauern. Im Hintergrund wird beim Vorgang „Copy Blob“ das archivierte Quellblob gelesen und so auf der ausgewählten Zielebene ein neues Onlineblob erstellt. Das neue Blob wird möglicherweise bereits vor Abschluss der Aktivierung in der Liste der Blobs im übergeordneten Container angezeigt, wobei die Ebene des Blobs jedoch auf Archiv festgelegt ist. Die Daten sind erst verfügbar, wenn der Lesevorgang aus dem Quellblob in die Archivebene abgeschlossen ist und der Inhalt des Blobs in das Zielblob auf einer Onlineebene geschrieben wurde. Beim neuen Blob handelt es sich um eine unabhängige Kopie, sodass es keine Auswirkungen auf das Quellblob auf der Archivebene hat, wenn das neue Blob geändert oder gelöscht wird. Informationen zum Aktivieren eines Blobs durch Kopieren in eine Onlineebene finden Sie unter [Aktivieren eines Blobs mit einem Kopiervorgang](archive-rehydrate-to-online-tier.md#rehydrate-a-blob-with-a-copy-operation). > [!IMPORTANT] > Löschen Sie das Quellblob erst, nachdem die Aktivierung erfolgreich durchgeführt wurde. Wenn das Quellblob gelöscht wird, kann der Kopiervorgang für das Zielblob möglicherweise nicht abgeschlossen werden. Sie können das Ereignis behandeln, das nach Abschluss des Kopiervorgangs ausgelöst wird, um zu ermitteln, wann das Quellblob bedenkenlos gelöscht werden kann. Weitere Informationen hierzu finden Sie unter [Behandeln eines Ereignisses bei der Blobaktivierung](#handle-an-event-on-blob-rehydration). Das Kopieren eines archivierten Blobs auf eine Onlinezielebene wird nur innerhalb eines Speicherkontos unterstützt. Ein archiviertes Blob kann nicht in ein Zielblob kopiert werden, das sich auch auf der Archivebene befindet. In der folgenden Tabelle ist das Verhalten eines Blobkopiervorgangs abhängig von den Ebenen des Quell- und des Zielblobs dargestellt. | | **Quelle: Heiße Ebene** | **Quelle: Kalte Ebene** | **Quelle: Archivebene** | |--|--|--|--| | **Ziel: Heiße Ebene** | Unterstützt | Unterstützt | Im selben Konto unterstützt Erfordert eine Blobaktivierung | | **Ziel: Kalte Ebene** | Unterstützt | Unterstützt | Im selben Konto unterstützt Erfordert eine Blobaktivierung | | **Ziel: Archivebene** | Unterstützt | Unterstützt | Nicht unterstützt | ## <a name="change-a-blobs-access-tier-to-an-online-tier"></a>Ändern der Zugriffsebene eines Blobs in eine Onlineebene Die zweite Möglichkeit, ein Blob aus der Archivebene in einer Onlineebene zu aktivieren, besteht darin, die Ebene des Blobs durch den Aufruf von [Set Blob Tier](/rest/api/storageservices/set-blob-tier) zu wechseln. Mit diesem Vorgang kann die Ebene des archivierten Blobs in heiß oder kalt geändert werden. Sobald eine [Set Blob Tier](/rest/api/storageservices/set-blob-tier)-Anforderung initiiert wurde, kann sie nicht mehr abgebrochen werden. Während des Aktivierungsvorgangs wird die Zugriffsebene des Blobs weiterhin als archiviert angezeigt, bis der Aktivierungsprozess abgeschlossen ist. Nach Abschluss des Aktivierungsvorgangs wird die Zugriffsebeneneigenschaft des Blobs aktualisiert, sodass die neue Ebene angezeigt wird. Informationen zum Aktivieren eines Blobs durch Ändern seiner Ebene in eine Onlineebene finden Sie unter [Aktivieren eines Blobs durch Ändern seiner Ebene](archive-rehydrate-to-online-tier.md#rehydrate-a-blob-by-changing-its-tier). > [!CAUTION] > Wenn Sie die Ebene eines Blobs ändern, hat das keine Auswirkungen auf den Zeitpunkt der letzten Änderung. Wenn für das Speicherkonto eine [Lebenszyklusverwaltungsrichtlinie](storage-lifecycle-management-concepts.md) gilt, kann die Aktivierung eines Blobs mit **Set Blob Tier** dazu führen, dass das Blob aufgrund der Lebenszyklusrichtlinie nach der Aktivierung auf die Archivebene zurück verschoben wird, weil der Zeitpunkt der letzten Änderung nach dem für die Richtlinie festgelegten Schwellenwert liegt. > > Wenn Sie das vermeiden möchten, aktivieren Sie das archivierte Blob, indem Sie es stattdessen wie in der Beschreibung im Abschnitt [Kopieren eines archivierten Blobs auf eine Onlineebene](#copy-an-archived-blob-to-an-online-tier) kopieren. Bei einem Kopiervorgang wird eine neue Instanz des Blobs mit einem aktualisierten Zeitpunkt der letzten Änderung erstellt, sodass die Lebenszyklusverwaltungsrichtlinie nicht ausgelöst wird. ## <a name="check-the-status-of-a-blob-rehydration-operation"></a>Überprüfen des Status eines Blob-Aktivierungsvorgangs Während des Blog-Aktivierungsvorgangs können Sie den Vorgang [Get Blob Properties](/rest/api/storageservices/get-blob-properties) aufrufen, um den Status zu überprüfen. Informationen zum Prüfen des Status eines Aktivierungsvorgangs finden Sie unter [Überprüfen des Status eines Aktivierungsvorgangs](archive-rehydrate-to-online-tier.md#check-the-status-of-a-rehydration-operation). ## <a name="handle-an-event-on-blob-rehydration"></a>Behandeln eines Ereignisses bei der Blobaktivierung Die Aktivierung eines archivierten Blobs kann bis zu 15 Stunden dauern, und das wiederholte Aufrufen von **Get Blob Properties**, um festzustellen, ob die Aktivierung abgeschlossen ist, ist ineffizient. Die Verwendung von [Azure Event Grid](../../event-grid/overview.md) zur Erfassung des Ereignisses, das bei Abschluss der Aktivierung ausgelöst wird, bietet eine bessere Leistungs- und Kostenoptimierung. Je nachdem, welcher Vorgang zum Aktivieren des Blobs verwendet wurde, wird bei der Blobaktivierung durch Azure Event Grid eines der beiden Ereignisse ausgelöst: - Das Ereignis **Microsoft.Storage.BlobCreated** wird ausgelöst, wenn ein Blob erstellt wird. Im Kontext einer Blobaktivierung wird dieses Ereignis ausgelöst, wenn bei einem [Copy Blob](/rest/api/storageservices/copy-blob)- oder [Copy Blob from URL](/rest/api/storageservices/copy-blob-from-url)-Vorgang in der heißen oder kalten Ebene ein neues Zielblob erstellt wird und die Daten des Blobs aus der Archivebene vollständig aktiviert werden. - Das Ereignis **Microsoft.Storage.BlobTierChanged** wird ausgelöst, wenn sich die Ebene des Blobs ändert. Im Kontext einer Blobaktivierung wird dieses Ereignis ausgelöst, wenn bei einem [Set Blob Tier](/rest/api/storageservices/set-blob-tier)-Vorgang die Ebene eines archivierten Blobs erfolgreich in die heiße oder kalte Ebene geändert wird. Informationen zum Aufzeichnen eines Ereignisses bei der Aktivierung und zum Senden des Ereignisses an einen Ereignishandler einer Azure-Funktion finden Sie unter [Ausführen einer Azure-Funktion als Reaktion auf ein Blob-Aktivierungsereignis](archive-rehydrate-handle-event.md). Weitere Informationen zur Behandlung von Ereignissen in Blob Storage finden Sie unter [Reagieren auf Azure Blob Storage-Ereignisse](storage-blob-event-overview.md) und unter [Azure Blob Storage als Event Grid-Quelle](../../event-grid/event-schema-blob-storage.md). ## <a name="pricing-and-billing"></a>Preise und Abrechnung Ein Aktivierungsvorgang mit [Set Blob Tier](/rest/api/storageservices/set-blob-tier) wird pro Datenlesetransaktion und je nach Datenabrufgröße berechnet. Eine Aktivierung mit hoher Priorität verursachen höhere Vorgangs- und Datenabrufkosten als Vorgänge mit Standardpriorität. Aktivierungsvorgänge mit hoher Priorität werden auf Ihrer Rechnung als separater Posten ausgewiesen. Wenn eine Anforderung zum Abruf eines einige Gigabytes großen archivierten Blobs mit hoher Priorität über fünf Stunden dauert, werden Ihnen nicht die Gebühren für einen Abruf mit hoher Priorität berechnet. Stattdessen werden die Standardgebühren für Abrufvorgänge berechnet. Das Kopieren eines archivierten Blobs in eine Onlineebene mit [Copy Blob](/rest/api/storageservices/copy-blob) oder [Copy Blob from URL](/rest/api/storageservices/copy-blob-from-url) wird pro Datenlesetransaktion und je nach Datenabrufgröße berechnet. Das Erstellen des Zielblobs in einer Onlineebene wird pro Datenschreibtransaktion berechnet. Gebühren für frühes Löschen fallen beim Kopieren in ein Onlineblob nicht an, weil das Quellblob auf der Archivzugriffsebene unverändert bleibt. Für einen Abruf mit hoher Priorität werden Gebühren berechnet, sofern dieser ausgewählt ist. Blobs auf Archivzugriffsebene müssen mindestens 180 Tage lang gespeichert werden. Für das Löschen oder Ändern der Ebene eines archivierten Blobs vor Ablauf der 180-Tage-Frist wird eine Gebühr für vorzeitiges Löschen berechnet. Weitere Informationen finden Sie unter [Zugriffsebene „Archiv“](storage-blob-storage-tiers.md#archive-access-tier). Weitere Informationen zu den Preisen für Blockblobs und Datenaktivierung finden Sie unter [Preise für Azure Storage](https://azure.microsoft.com/pricing/details/storage/blobs/). Weitere Informationen zu den Kosten für ausgehende Datenübertragungen finden Sie unter [Datenübertragungen – Preisdetails](https://azure.microsoft.com/pricing/details/data-transfers/). ## <a name="see-also"></a>Weitere Informationen - [Azure Blob Storage: Zugriffsebenen „Heiß“, „Kalt“ und „Archiv“](storage-blob-storage-tiers.md) - [Aktivieren eines archivierten Blobs auf einer Onlineebene](archive-rehydrate-to-online-tier.md) - [Ausführen einer Azure-Funktion als Reaktion auf ein Blob-Aktivierungsereignis](archive-rehydrate-handle-event.md) - [Reacting to Blob storage events (preview)](storage-blob-event-overview.md) (Reagieren auf Blob Storage-Ereignisse (Vorschauversion))
markdown
<reponame>jinwoov/About_me<filename>index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <link rel="stylesheet" href="reset.css"> <link rel="stylesheet" href="Style.css"> <title>About Jin Kim</title> <script src="https://kit.fontawesome.com/edbc987558.js" crossorigin="anonymous"></script> </head> <body> <header class='header' id='myHeader'> <h1> About Me</h1> <nav> <div><span style="font-size: .875em; color: #394a6d;"> <i class="fas fa-tooth" fa-2x></i> </span><a href="#goto">Jin Kim</a> </div> <div><span style="font-size: .875em; color: #394a6d;"> <i class="fas fa-tooth" fa-2x></i> </span><a href="#Education">Education</a> </div> <div> <span style="font-size: .875em; color: #394a6d;"> <i class="fas fa-tooth" fa-2x></i> </span><a href="#work_experience">Work Experience</a> </div> <div> <span style="font-size: .875em; color: #394a6d;"> <i class="fas fa-tooth" fa-2x></i> </span><a href="#topten">Top 10 Foods</a> </div> </nav> </header> <main class=content> <span class='goto'> &nbsp; </span> <article> <h2 class="button">Jin Kim</h2> <p> My name is <NAME>, Jin is preferred name. I was originally born in South Korea and immigrated to United States when I was in 6th grade. I stayed in Hawaii for 17 years. I worked in different dental office to get an experience and also to see if I would like to commit on dental school. I moved here to Seattle a year ago in hopes to apply for dental school, but later realize to pursue of my true passion which is in IT business. My goal in the future is to apply both my study in dentistry and coding and create an app that help underserved community to receive health care in affordable price.</p> <figure> <img src="image/Surfer.gif" alt="surfer" width="250px"> </figure> </article> <article id="Education"> <span class='goto1'> &nbsp; </span> <h2 class='button2'>Education</h2> <ul> <li>Code Fellows, Seattle WA</li> <li>University of Hawaii at Manoa, Honolulu HI <br \> Bacholor of Art in Biology</li> <figure> <img src="https://pbs.twimg.com/profile_images/1052001602628857856/AGtSZNoO_400x400.jpg" alt="UH logo" width="200px"> <img src='image/cf_logo.png' alt='Code fellows logo' width='200px'> </figure> </ul> </article> <article id='work_experience'> <h2 class='button3'>Work Experience</h2> <ul> <li>Sue Vetter DDS, Seattle WA<br \> Dental Assitant</li> <li>Smile Matters, Seattle WA<br \> Dental Assistant</li> <!-- <img src="image/Tooth.png" alt="tooth animation"> --> </ul> </article> <article id='topten'> <h2 class='button4'>Top 10 Foods that I like </h2> <p> <ol> <li>Kimchi Fried Rice</li> <li>Sukiyaki</li> <li>Hot Pot</li> <li>Yellow Curry</li> <li>Sushi</li> <li>Pasta</li> <li>Italian Sub Sandwich</li> <li>Loco Moco</li> <li>Hamburger</li> <li>Pizza</li> </ol> <figure class="food"> <img src="image/KFR.jpg" alt="Kimchi Fried Rice" width="200px"> <img src="image/Sushi.jpg" alt="Japanese Sushi" width="200px"> <img src="image/Pizza.jpg" alt="Peperoni pizza" width="200px"> <img src="" alt=""> </figure> </p> </article> </main> <footer> <p id="totop"><a href='#Top'>To the TOP</a></p> </footer> <script src="app.js"></script> <!-- <script src="js/fruitloop.js"></script> // for me to test out codes --> </body> </html>
html
<reponame>bbrotsos/cio-converter<filename>schema/vcard.json { "$schema": "http://json-schema.org/draft-04/schema#", "id": "https://project-open-data.cio.gov/v1.1/schema/vcard.json#", "title": "Project Open Data ContactPoint vCard", "description": "A Dataset ContactPoint as a vCard object", "type": "object", "required": [ "fn", "hasEmail" ], "properties": { "@type": { "title": "Metadata Context", "description": "IRI for the JSON-LD data type. This should be vcard:Contact for contactPoint", "enum": [ "vcard:Contact" ] }, "fn": { "title": "Contact Name", "description": "A full formatted name, eg Firstname Lastname", "type": "string", "minLength": 1 }, "hasEmail": { "title": "Email", "description": "Email address for the contact", "pattern": "^mailto:[\\w\\_\\~\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=\\:.-]+@[\\w.-]+\\.[\\w.-]+?$", "type": "string" } } }
json
Pabna: Police arrested one over the Christian church priest murder attempt case at Ishwardi in Pabna. The accused, Raqibul Hassan, was arrested from Majidpur area of the Sadar upazila at about 11:30am on Wednesday. Police claimed Raqibul is the regional commander of Jamaat-ul-Mujahideen Bangladesh in Pabna. Raqibul Hassan is also known as Rajon alias Rafique, said police. The Pabna police said Sadar police and district detective branch (DB) arrested Raqibul from Majidpur area in secret information. Police also said Raqibul was the main planner for attacking church priest, Luk Sarkar. On 5 October, 50-year-old priest of ‘Faith Bible Church’ escaped a murder attempt with injures at School Para under Ishwardi upazila in Pabna. Victim’s wife Padma Sarkar said three young men came to their house on a motorcycle at about 9:00am to listen to sermons from her husband. Hearing his screams from another room, Padma said, she rushed there and found her husband lying in a pool of blood and the youths fleeing the house. Later, a case was filed in this connection.
english
Considering living in Budapest, Hungary? Explore the advantages and drawbacks of this vibrant European city before making your decision. Tesla CEO Elon Musk has met with several world leaders in recent weeks, with the latest being a U.S. meeting with the President of Hungary, according to a new report.
english
<filename>src/nesymres/architectures/model.py import torch from torch import nn import torch.nn.functional as F from torch.utils.data import DataLoader, random_split import pytorch_lightning as pl from .set_encoder import SetEncoder from .beam_search import BeamHypotheses import numpy as np from tqdm import tqdm from ..dataset.generator import Generator, InvalidPrefixExpression from itertools import chain from sympy import lambdify from . import bfgs class Model(pl.LightningModule): def __init__( self, cfg ): super().__init__() self.enc = SetEncoder(cfg) self.trg_pad_idx = cfg.trg_pad_idx self.tok_embedding = nn.Embedding(cfg.output_dim, cfg.dim_hidden) self.pos_embedding = nn.Embedding(cfg.length_eq, cfg.dim_hidden) if cfg.sinuisodal_embeddings: self.create_sinusoidal_embeddings( cfg.length_eq, cfg.dim_hidden, out=self.pos_embedding.weight ) decoder_layer = nn.TransformerDecoderLayer( d_model=cfg.dim_hidden, nhead=cfg.num_heads, dim_feedforward=cfg.dec_pf_dim, dropout=cfg.dropout, ) self.decoder_transfomer = nn.TransformerDecoder( decoder_layer, num_layers=cfg.dec_layers) self.fc_out = nn.Linear(cfg.dim_hidden, cfg.output_dim) self.cfg = cfg self.criterion = nn.CrossEntropyLoss(ignore_index=0) self.dropout = nn.Dropout(cfg.dropout) self.eq = None def create_sinusoidal_embeddings(self, n_pos, dim, out): position_enc = np.array( [ [pos / np.power(10000, 2 * (j // 2) / dim) for j in range(dim)] for pos in range(n_pos) ] ) out[:, 0::2] = torch.FloatTensor( np.sin(position_enc[:, 0::2])) # Odd indices out[:, 1::2] = torch.FloatTensor( np.cos(position_enc[:, 1::2])) # Even indices out.detach_() out.requires_grad = False def make_src_mask(self, src): src_mask = (src != self.src_pad_idx).unsqueeze(1).unsqueeze(2) return src_mask def make_trg_mask(self, trg): trg_pad_mask = (trg != self.trg_pad_idx).float() trg_pad_mask = ( trg_pad_mask.masked_fill(trg_pad_mask == 0, float("-inf")) .masked_fill(trg_pad_mask == 1, float(0.0)) .type_as(trg) ) trg_len = trg.shape[1] mask = (torch.triu(torch.ones(trg_len, trg_len)) == 1).transpose(0, 1) mask = ( mask.float() .masked_fill(mask == 0, float("-inf")) .masked_fill(mask == 1, float(0.0)) .type_as(trg) ) return trg_pad_mask, mask # batch(res [equations that are valid, 4 (x's+y), support points], tokens [eqs that are valid, token length], [eq.expr for eq in filtered_eqs - str expression]) def forward(self, batch): b = batch[0].permute(0, 2, 1) size = b.shape[-1] src_x = b[:, :, : (size - 1)] src_y = b[:, :, -1].unsqueeze(2) trg = batch[1].long() # tokens trg_mask1, trg_mask2 = self.make_trg_mask(trg[:, :-1]) # trg_pad_mask, mask src_mask = None encoder_input = torch.cat((src_x, src_y), dim=-1) # Why ? - same as b enc_src = self.enc(encoder_input) assert not torch.isnan(enc_src).any() pos = self.pos_embedding( torch.arange(0, batch[1].shape[1] - 1) .unsqueeze(0) .repeat(batch[1].shape[0], 1) .type_as(trg) ) te = self.tok_embedding(trg[:, :-1]) trg_ = self.dropout(te + pos) output = self.decoder_transfomer( trg_.permute(1, 0, 2), enc_src.permute(1, 0, 2), trg_mask2.bool(), tgt_key_padding_mask=trg_mask1.bool(), ) output = self.fc_out(output) # (seq_len, bs, vocab_size) return output, trg def compute_loss(self, output, trg): output = output.permute( 1, 0, 2).contiguous().view(-1, output.shape[-1]) trg = trg[:, 1:].contiguous().view(-1) loss = self.criterion(output, trg) return loss def training_step(self, batch, _): output, trg = self.forward(batch) # [21, 9, 60], [9, 22] loss = self.compute_loss(output, trg) self.log("train_loss", loss, on_epoch=True) return loss def validation_step(self, batch, _): output, trg = self.forward(batch) loss = self.compute_loss(output, trg) self.log("val_loss", loss, on_epoch=True) def configure_optimizers(self): optimizer = torch.optim.Adam(self.parameters(), lr=self.cfg.lr) return optimizer def fitfunc(self, X, y, cfg_params=None): """Same API as fit functions in sklearn: X [Number_of_points, Number_of_features], Y [Number_of_points] """ X = X y = y[:, None] X = torch.tensor(X, device=self.device).unsqueeze(0) if X.shape[2] < self.cfg.dim_input - 1: pad = torch.zeros( 1, X.shape[1], self.cfg.dim_input - X.shape[2] - 1, device=self.device) X = torch.cat((X, pad), dim=2) y = torch.tensor(y, device=self.device).unsqueeze(0) with torch.no_grad(): encoder_input = torch.cat((X, y), dim=2) # .permute(0, 2, 1) # if self.device.type == "cuda": # encoder_input = encoder_input.cuda() enc_src = self.enc(encoder_input) src_enc = enc_src shape_enc_src = (cfg_params.beam_size,) + src_enc.shape[1:] enc_src = src_enc.unsqueeze(1).expand( (1, cfg_params.beam_size) + src_enc.shape[1:]).contiguous().view(shape_enc_src) print( "Memory footprint of the encoder: {}GB \n".format( enc_src.element_size() * enc_src.nelement() / 10 ** (9) ) ) assert enc_src.size(0) == cfg_params.beam_size generated = torch.zeros( [cfg_params.beam_size, self.cfg.length_eq], dtype=torch.long, device=self.device, ) generated[:, 0] = 1 # trg_indexes = [[1] for i in range(bs*self.beam_size)] cache = {"slen": 0} # generated = torch.tensor(trg_indexes,device=self.device,dtype=torch.long) generated_hyps = BeamHypotheses( cfg_params.beam_size, self.cfg.length_eq, 1.0, 1) done = False # Beam Scores beam_scores = torch.zeros( cfg_params.beam_size, device=self.device, dtype=torch.long) beam_scores[1:] = -1e9 #beam_scores = beam_scores.view(-1) cur_len = torch.tensor(1, device=self.device, dtype=torch.int64) while cur_len < self.cfg.length_eq: # breakpoint() generated_mask1, generated_mask2 = self.make_trg_mask( generated[:, :cur_len] ) # dec_args = (generated, enc_src, generated_mask, src_mask) pos = self.pos_embedding( torch.arange(0, cur_len) # attention here .unsqueeze(0) .repeat(generated.shape[0], 1) .type_as(generated) ) te = self.tok_embedding(generated[:, :cur_len]) trg_ = self.dropout(te + pos) output = self.decoder_transfomer( trg_.permute(1, 0, 2), # Target enc_src.permute(1, 0, 2), # Memory generated_mask2.float(), tgt_key_padding_mask=generated_mask1.bool(), ) output = self.fc_out(output) output = output.permute(1, 0, 2).contiguous() scores = F.log_softmax(output[:, -1:, :], dim=-1).squeeze( 1 ) assert output[:, -1:, :].shape == (cfg_params.beam_size, 1, self.cfg.length_eq,) n_words = scores.shape[-1] # select next words with scores _scores = scores + beam_scores[:, None].expand_as( scores ) # (bs * beam_size, n_words) # (bs, beam_size * n_words) _scores = _scores.view(cfg_params.beam_size * n_words) next_scores, next_words = torch.topk( _scores, 2 * cfg_params.beam_size, dim=0, largest=True, sorted=True) assert len(next_scores) == len( next_words) == 2 * cfg_params.beam_size done = done or generated_hyps.is_done(next_scores.max().item()) next_sent_beam = [] # next words for this sentence for idx, value in zip(next_words, next_scores): # get beam and word IDs beam_id = idx // n_words # https://github.com/huggingface/transformers/blob/088c1880b7bfd47777778d0d0fcc20e921bcf21e/src/transformers/generation_tf_utils.py#L1062 word_id = idx % n_words # end of sentence, or next word if ( word_id == cfg_params.word2id["F"] or cur_len + 1 == self.cfg.length_eq ): generated_hyps.add( generated[ beam_id, :cur_len, ] .clone() .cpu(), value.item(), ) else: next_sent_beam.append( (value, word_id, beam_id) ) # the beam for next step is full if len(next_sent_beam) == cfg_params.beam_size: break # update next beam content assert ( len(next_sent_beam) == 0 if cur_len + 1 == self.cfg.length_eq else cfg_params.beam_size ) if len(next_sent_beam) == 0: next_sent_beam = [ (0, self.trg_pad_idx, 0) ] * cfg_params.beam_size # pad the batch # next_batch_beam.extend(next_sent_beam) assert len(next_sent_beam) == cfg_params.beam_size beam_scores = torch.tensor( [x[0] for x in next_sent_beam], device=self.device ) # .type(torch.int64) Maybe #beam_scores.new_tensor([x[0] for x in next_batch_beam]) beam_words = torch.tensor( [x[1] for x in next_sent_beam], device=self.device ) # generated.new([x[1] for x in next_batch_beam]) beam_idx = torch.tensor( [x[2] for x in next_sent_beam], device=self.device ) generated = generated[beam_idx, :] # Extend here ! - overwrite previous 2 beams with best beam now found generated[:, cur_len] = beam_words for k in cache.keys(): if k != "slen": cache[k] = (cache[k][0][beam_idx], cache[k][1][beam_idx]) # update current length cur_len = cur_len + torch.tensor( 1, device=self.device, dtype=torch.int64 ) #perc = 0 #cnt = 0 #gts = [] best_preds = [] best_preds_bfgs = [] #best_L = [] best_L_bfgs = [] #flag = 0 L_bfgs = [] P_bfgs = [] prefixs = [] #counter = 1 #fun_args = ",".join(chain(cfg_params.total_variables,"constant")) cfg_params.id2word[3] = "constant" #pred_str = [x if x<14 else x+1 for x in pred_str] from . import data prefixes = [] for __, ww in sorted( generated_hyps.hyp, key=lambda x: x[0], reverse=True ): try: raw = data.de_tokenize(ww[1:].tolist(), cfg_params.id2word) prefixes.append(raw) except Exception as e: print(f'Error {e}') continue return prefixes for __, ww in sorted( generated_hyps.hyp, key=lambda x: x[0], reverse=True ): try: pred_w_c, constants, loss_bfgs, exa, prefix = bfgs.bfgs( ww, X, y, cfg_params ) except InvalidPrefixExpression: continue #L_bfgs = loss_bfgs P_bfgs.append(str(pred_w_c)) L_bfgs.append(loss_bfgs) prefixs.append(prefix) if all(np.isnan(np.array(L_bfgs))): print("Warning all nans") L_bfgs = float("nan") best_L_bfgs = None else: best_preds_bfgs.append(P_bfgs[np.nanargmin(L_bfgs)]) best_L_bfgs.append(np.nanmin(L_bfgs)) output = {'all_bfgs_preds': P_bfgs, 'all_bfgs_loss': L_bfgs, 'best_bfgs_preds': best_preds_bfgs, 'best_bfgs_loss': best_L_bfgs, 'prefixs': prefixs} self.eq = output['best_bfgs_preds'] return output def get_equation(self,): return self.eq if __name__ == "__main__": model = SetTransformer(n_l_enc=2, src_pad_idx=0, trg_pad_idx=0, dim_input=6, output_dim=20, dim_hidden=40, dec_layers=1, num_heads=8, dec_pf_dim=40, dec_dropout=0, length_eq=30, lr=0.001, num_inds=20, ln=True, num_features=10, is_sin_emb=False, bit32=True, norm=False, activation='linear', linear=False, mean=torch.Tensor([1.]), std=torch.Tensor([1.]), input_normalization=False) src_x = torch.rand([2, 5, 20]) src_y = torch.sin(torch.norm(src_x, dim=1)).unsqueeze(1) inp_1 = torch.cat([src_x, src_y], dim=1) inp_2 = torch.randint(0, 13, [2, 10]) batch = (inp_1, inp_2) print(model)
python
Tejasswi Prakash once again grabs the eyeballs with her fake accent in 'Naagin 6' Mumbai, Sep 7 Post her stint in 'Bigg Boss 15', Tejasswi Prakash is making a buzz, either for her relationship with Karan Kundrra or her looks, and most recently, her exaggerated accent in 'Naagin 6'. To portray the character of a foreign-returned lookalike of Pratha (the lead character of 'Naagin' played by Tejasswi), she changed her accent to sound like an NRI from London, but it got so exaggerated that many of her fans trolled her for it and others made fun of it. In fact, Bollywood actress Janhvi Kapoor also made a reel reprising the character and shared it on Instagram which made her fake accent more viral. Though in a recent interview, Tejasswi pointed out that it was all meant to make her fans laugh and also to educate them and if it is going viral her purpose is served. In the video, she can be heard talking to her on-screen sister Mahek (played by Maheck Chahal). Mahek asks her: "Aadhi raat ko walk kar rahi ho" (You are walking in the middle of the night? ) and she replies: "Listen, jab walk karte hai tab time nahi dekhte aur time dekh ke kabhi walk nahi karte . . . kyunki koi agar dekhte hai to humara figure dekhte hai aur mai apna figure maintain karti hu so isliye walk karti hoon. " This video grabbed a humongous number of eyeballs and while speaking to a YouTuber Janice Sequeira, Tejasswi said: "I wasn't following any accent, it wasn't legitimate. I just wanted to make it sound extremely funny. And if people found it funny, that's great. " "Whatever sells. In a time when there are such good things being made, with everything nice and it doesn't work. My show is working even when not everything happening in it makes sense. You do it convincingly and it sells. " The hilarious video and speaking style in the show has became talk of the town. Now, the show has taken a leap and Pratha's twin daughters have made their entry. It has to be seen how Tejasswi woos her fans once again and what new she brings in her look and character.
english
<gh_stars>0 import { _WorkflowExecution } from "./_WorkflowExecution"; import { _ActivityType } from "./_ActivityType"; import { Structure as _Structure_ } from "@aws-sdk/types"; export const PollForActivityTaskOutput: _Structure_ = { type: "structure", required: [ "taskToken", "activityId", "startedEventId", "workflowExecution", "activityType" ], members: { taskToken: { shape: { type: "string", min: 1 } }, activityId: { shape: { type: "string", min: 1 } }, startedEventId: { shape: { type: "integer" } }, workflowExecution: { shape: _WorkflowExecution }, activityType: { shape: _ActivityType }, input: { shape: { type: "string" } } } };
typescript
<gh_stars>1-10 { "key": "<KEY>", "name": "chrome file manager browser tests", "version": "0.1", "manifest_version": 2, "background": { "scripts": ["background.js"] }, "permissions": [ "tabs", "chrome-extension://oobinhbdbiehknkpbpejbbpdbkdjmoco/*", "chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/*", "chrome://files/*" ] }
json
GS Paper 3: Topics Covered: Challenges to internal security through communication networks, role of media and social networking sites in internal security challenges, basics of cyber security; money-laundering and its prevention. On January 12, 2022 , the Supreme Court of India agreed to hear petitions asking for legal action to be taken against the organisers of, and speakers at, the “Hardwar Dharma Sansad”. What’s the issue? During this Dharma Sansad, that had taken place between December 19 and 21, numerous speeches had been made. - These speeches ranged from open calls to violence (“... waging a war that would be more gruesome than 1857” or “if you want to eliminate their [i.e., Muslim] population, then kill them”), to the economic and social boycott of Muslims (“... there is no Muslim buyer here, so throw that [Muslim] vendor out”), and to dog-whistles, (such as drawing comparisons to the ethnic cleansing of Rohingya Muslims in Myanmar). Similar petitions in the Court: Two petitions have been filed in the Supreme Court on hate speeches in the recent past. - One petition asked the court to issue directions for action in such cases. - The second plea sought special provisions, insisting that the IPC wasn’t enough to deal with hate speech and rumour mongering. Both petitions relied on a 2020 Supreme Court decision in Amish Devgun case where hate speech was linked to the violation of unity and fraternity and breach of human dignity, which constitutes an essential facet of the right to life and liberty under Article 21 of the Constitution. What’s the issue? The petitioners were concerned over concerted events in the recent past that targeted political, social and economic exclusion of Muslims through a series of rallies and hate speeches. - The petitioners sought implementation of guidelines on hate speech passed by Supreme Court in 2014 and on mob violence and lynching events in a subsequent decision in 2018. What is Hate Speech? Hate speech is an incitement to hatred against a particular group of persons marginalized by their religious belief, sexual orientation, gender, and so on. - The Law Commission, in its 267th report on hate speech, said such utterances have the potential to provoke individuals and society to commit acts of terrorism, genocide, and ethnic cleansing. How is it treated in Indian law? Sections 153A and 505 of the Indian Penal Code are generally taken to be the main penal provisions that deal with inflammatory speeches and expressions that seek to punish ‘hate speech’. Why Hate Speech Must be curbed? - Internal Security: The Muzaffarnagar riots of 2013 was triggered by a fake video that incited communal passions. - Igniting extremist sentiments. - Mob lynching. - Misinformation and disinformation: Delhi Riots. - The world’s biggest social media companies, including Facebook, Google, Twitter and ByteDance, are exploring an industry-wide alliance to curb fake news on their platforms in India. - The Election Commission of India must tie up with tech companies to identify the creator of such news. - Educating the end-users. - The government should bring out a policy framework on the possible harm due to the internet messaging platforms to engage at a deeper level. - Imposing hefty fines, like in Germany the Social media companies face fines of up to €50m if they persistently fail to remove illegal content from their sites. Need of the hour: - Hate speech is a discursive process of pushing marginalised groups outside of social, economic and political spheres of society by disseminating hate propaganda and encouraging discrimination. At its most harmful, it is widely recognized as a precursor to ethnic cleansing. - Public authorities must be held accountable for dereliction of the duty of care and also for non-compliance with this court’s orders by not taking action to prevent vigilante groups from inciting communal disharmony and spreading hate against citizens of the country and taking the laws into their own hands. Prelims Link: - About Information Technology Act. - Section 66A of the Act. - About the Law Commission of India. - Regulation of Hate speech under IT Act. Mains Link: What is Hate speech? How it should be curbed? Discuss. Sources: the Hindu.
english
<gh_stars>1-10 import {image_search} from "duckduckgo-images-api" import { getFileNameFromUrl} from "../../../utils"; export default async (req, res) => { return res.status(200).json({ response: ( await image_search({query: req.body.query,}) ) .slice(0, 5) // TODO Pagination .map(({image, ...rest}) => ({img: image, filename: getFileNameFromUrl(image), ...rest})) }) }
javascript
<reponame>Leeyuxun/CNN-WebShell-Detect-Tool # coding=utf-8 import commands import multiprocessing import os import re import gensim import numpy as np import tensorflow as tf import tflearn from sklearn import metrics from tflearn.data_utils import to_categorical from tflearn.layers.conv import conv_1d, global_max_pool from tflearn.layers.core import input_data, dropout, fully_connected from tflearn.layers.estimator import regression from tflearn.layers.merge_ops import merge max_features = 448 # max_document_length = 192 # The opcode/bytecode length of the sample file min_code_count = 0 # The min opcode/bytecode length of sample file JspCnnModel = "webshell_detect_cnn_model/jsp_cnn_model/jsp-webshell-detect-cnn-model" def do_metrics(y_test, y_pred): accuracy = metrics.accuracy_score(y_test, y_pred) confusion = metrics.confusion_matrix(y_test, y_pred) precision = metrics.precision_score(y_test, y_pred) recall = metrics.recall_score(y_test, y_pred) f1_score = metrics.f1_score(y_test, y_pred) print("metrics.accuracy_score:" + str(accuracy)) print("metrics.confusion_matrix:") print(str(confusion)) print("metrics.precision_score:" + str(precision)) print("metrics.recall_score:" + str(recall)) print("metrics.f1_score:" + str(f1_score)) # cnn model def jsp_cnn_model(): network = input_data(shape=[None, max_document_length, max_features], name='input') branch1 = conv_1d(network, 128, 3, padding='valid', activation='relu', regularizer="L2") # network filters CNN-core branch2 = conv_1d(network, 128, 4, padding='valid', activation='relu', regularizer="L2") branch3 = conv_1d(network, 128, 5, padding='valid', activation='relu', regularizer="L2") branch4 = conv_1d(network, 128, 6, padding='valid', activation='relu', regularizer="L2") # network filters CNN-core branch5 = conv_1d(network, 128, 7, padding='valid', activation='relu', regularizer="L2") branch6 = conv_1d(network, 128, 8, padding='valid', activation='relu', regularizer="L2") network = merge([branch1, branch2, branch3, branch4, branch5, branch6], mode='concat', axis=1) # 融合层 network = tf.expand_dims(network, 2) # 扩展到二维 network = global_max_pool(network) # 池化层 network = dropout(network, 0.8) # 损失函数 network = fully_connected(network, 2, activation='softmax') # 全连接层 输入层中输出单位数量 激活函数 network = regression(network, optimizer='adam', learning_rate=0.001, loss='categorical_crossentropy', name='target') # 回归函数 指定优化器adam,学习率为0.01,损失函数为交叉熵 model = tflearn.DNN(network, tensorboard_verbose=0) # return model # def cnn_word2vec(opcode_vector,all_tags): def get_jsp_cnn_model(train_opcode, train_tags): global max_document_length print("Start train CNN model:") """ f = open('metrics.txt', 'a') f.write("CNN: \n") f.close() """ # trainX, testX, trainY, testY = train_test_split(x, y, test_size=0.4, random_state=0) # y_test = testY # Converting labels to binary vectors train_tags = to_categorical(train_tags, nb_classes=2) # test_tags = to_categorical(test_tags, nb_classes=2) # Building convolutional network model = jsp_cnn_model() # Train Start model.fit(train_opcode, train_tags, n_epoch=40, shuffle=True, validation_set=0.1, show_metric=True, batch_size=20, run_id="jsp-webshell-datect-cnn") # 训练迭代次数5 shuffle布尔值是否在每轮迭代之前混洗数据 作验证集的训练数据的比例0.1-模型将分出一部分不会被训练的验证数据,并将在每一轮结束时评估这些验证数据的误差和任何其他模型指标 batch_size-每次梯度更新的样本数 print("CNN training is over!!!") model.save(JspCnnModel) # test CNN model def test_jsp_cnn_model(test_opcode, test_tags): print("Start test CNN model:") with tf.Graph().as_default(): new_model = jsp_cnn_model() new_model.load(JspCnnModel) model1 = new_model predict_tags_list = model1.predict(test_opcode) predict_tags = [] for i in predict_tags_list: if i[0] > 0.5: predict_tags.append(0) print(i, "white") else: predict_tags.append(1) print(i, "black") print("CNN model test is over!") do_metrics(test_tags, predict_tags)
python
Manchester United are reportedly willing to activate the release clause of in-form Napoli defender Kim Min-Jae this summer. The South Korean defender has been among the top-performing players for Luciano Spalletti's team during the ongoing 2022-23 campaign. The Italian side are currently top of the Serie A table on 61 points and look set to win the prestigious Scudetto title this season. Napoli have not only exhibited great attacking prowess this season but have also been rock-solid in defense. The Gli Azzurri have so far considered just 15 goals in 23 league games this season. Kim has played a key role in ensuring Napoli's defensive solidity. He has played 22 league games, helping his side record 10 clean sheets. His impressive defensive contribution is said to be currently attracting interest from Premier League giants Manchester United (via Caught Offside). The Red Devils are willing to activate his release clause, which is in the region of €48 million, in a bid to bring him to Old Trafford. Napoli are, however, reluctant to lose the defender for cheap. They are believed to be willing to offer Kim a new contract which could increase his release clause. He only joined Napoli last summer from Turkish club Fenerbahçe for a transfer fee in the region of €18. 05 million. He has since seen his valuation increase in less than a year at the club. Manchester United, meanwhile, themselves boast of a strong defensive partnership between Raphael Varane and Lisandro Martinez. Adding Kim to Erik ten Hag's already existing squad could further strengthen their defense next season. However, there could be serious competition for the South Korean defender, in terms of getting regular game time at Old Trafford. Erik ten Hag was full of praise for Sir Alex Ferguson after they were spotted having dinner together ahead of United's UEFA Europa League clash against Barcelona last week. The Dutch tactician revealed that he is always willing to learn from experienced people like Sir Alex Ferguson. He also stated that the veteran manager has been supportive towards him. He said (via Sky Sports): "I always enjoy speaking with people who have a lot of knowledge and experience, and he wants to share it. He wants to help and support. You feel Manchester United is his club. He feels so committed and wants us to do well. It was a great night and I'm looking forward to the next night with him. " Manchester United will host Barcelona in the second leg of their Europa League tie on February 23 with the first leg tied at 2-2.
english
<reponame>kelvinluime/hkn-member-portal<gh_stars>1-10 /* tslint:disable */ /* eslint-disable */ /** * HKN API * HKN API * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } from '../runtime'; /** * * @export * @interface BaseEventPayload */ export interface BaseEventPayload { /** * * @type {string} * @memberof BaseEventPayload */ name: string; /** * * @type {string} * @memberof BaseEventPayload */ description: string; /** * * @type {string} * @memberof BaseEventPayload */ location?: string; /** * * @type {string} * @memberof BaseEventPayload */ startDate: string; /** * * @type {string} * @memberof BaseEventPayload */ endDate: string; /** * * @type {string} * @memberof BaseEventPayload */ type?: BaseEventPayloadTypeEnum; /** * * @type {string} * @memberof BaseEventPayload */ fbURL?: string; /** * * @type {string} * @memberof BaseEventPayload */ canvaURL?: string; } export function BaseEventPayloadFromJSON(json: any): BaseEventPayload { return BaseEventPayloadFromJSONTyped(json, false); } export function BaseEventPayloadFromJSONTyped( json: any, ignoreDiscriminator: boolean ): BaseEventPayload { if (json === undefined || json === null) { return json; } return { name: json['name'], description: json['description'], location: !exists(json, 'location') ? undefined : json['location'], startDate: json['startDate'], endDate: json['endDate'], type: !exists(json, 'type') ? undefined : json['type'], fbURL: !exists(json, 'fbURL') ? undefined : json['fbURL'], canvaURL: !exists(json, 'canvaURL') ? undefined : json['canvaURL'], }; } export function BaseEventPayloadToJSON(value?: BaseEventPayload | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { name: value.name, description: value.description, location: value.location, startDate: value.startDate, endDate: value.endDate, type: value.type, fbURL: value.fbURL, canvaURL: value.canvaURL, }; } /** * @export * @enum {string} */ export enum BaseEventPayloadTypeEnum { Professional = 'professional', Social = 'social', Technical = 'technical', Mentorship = 'mentorship', }
typescript
<filename>public/static/d/643/path---2-de-0-e4c-U61cUoKMdhpG0YxEuW8Q7TCisA.json {"pageContext":{"isCreatedByStatefulCreatePages":false,"group":[{"node":{"id":"170059f9-e5d6-56c6-ac46-bdffd6fa2f4f","slug":"hello-world","status":"publish","format":"standard","title":"Hello world!","date":"2019-05-20T09:28:55.000Z"}},{"node":{"id":"137c15fd-ba24-553b-bf86-7bae496ce172","slug":"unde-sunt-facilis-nobis-et","status":"publish","format":"standard","title":"Unde sunt facilis nobis et","date":"2019-05-20T05:30:30.000Z"}},{"node":{"id":"1b1e4859-f057-5941-af9e-a66f9d0e5bf0","slug":"laudantium-omnis-consequuntur-corporis","status":"publish","format":"standard","title":"Laudantium omnis consequuntur corporis","date":"2019-05-20T04:07:46.000Z"}}],"pathPrefix":"","first":false,"last":true,"index":2,"pageCount":2,"additionalContext":{}}}
json
<reponame>yoggy/unity_test memo ==== 構成 ---- Clickまたはボタン → CubeController.Fire() → Cube1のAnimatorAnimator.SetTrigger("fire") ↓ SphereController.Fire() → SphereのAnimator.SetTrigger("fire") ↓(1秒後) CubeController.Fire() → Cube2のAnimatorAnimator.SetTrigger("fire") clickイベントの取り方 ---- 1. シーンにEventSystemを追加する - GameObject → UI → Event System 2. メインカメラにPhysics Raycasterをアタッチする。 3. IPointerClickHandlerを実装したクラスを作成。GameObjectにアタッチする。 public class Click : MonoBehaviour, IPointerClickHandler { public CubeAnimation cube; public void OnPointerClick(PointerEventData eventData) { if (cube != null) cube.Fire(); } }
markdown
import { Get, Controller, Param, Post, Body, Query, NotFoundException, Delete, Put, Patch, HttpException, HttpStatus, } from '@nestjs/common' import { ApiTags, ApiResponse, ApiBody, ApiQuery, ApiParam, } from '@nestjs/swagger' import { UserDtoOut, UserDtoIn } from './user.dto' import { getModelSchemaRef } from '@loopback/rest' import { User } from './user.entity' import { GoatFilter, GoatOutput } from '@goatlab/fluent/dist/Providers/types' import { For } from '@goatlab/fluent/dist/Helpers/For' import { getGoatFilterSchema } from '@goatlab/fluent/dist/core/dtos/filterSchema' import { Hash } from '@goatlab/fluent/dist/Helpers/Hash' import { UsersService } from './user.service' @ApiTags('Users') @Controller('users') export class UserController { private users: UsersService constructor() { this.users = new UsersService() } /** * * @param form */ @Post() @ApiResponse({ status: 200, description: 'The created user', content: { 'application/json': { schema: getModelSchemaRef(UserDtoOut) }, }, isArray: true, type: UserDtoOut, }) @ApiBody({ description: 'User', type: UserDtoIn, }) async create( @Body() newUserRequest: UserDtoIn, ): Promise<GoatOutput<UserDtoIn, UserDtoOut>> { let user = newUserRequest if (newUserRequest.password) { const password = await Hash.hash(newUserRequest.password) user = { ...user, password } } const result = await this.users.insert(user) if (!result) throw new HttpException('Unauthorized', HttpStatus.UNAUTHORIZED) return result } /** * */ @Get() @ApiQuery({ name: 'filter', required: false, type: 'object', schema: getGoatFilterSchema(User), }) @ApiResponse({ status: 200, description: 'The forms found', content: { 'application/json': { schema: { items: getModelSchemaRef(UserDtoOut), type: 'array', }, }, }, isArray: true, type: UserDtoOut, }) find( @Query('filter') filter: GoatFilter, ): Promise<GoatOutput<UserDtoIn, UserDtoOut>[]> { return this.users.find(filter) } /** * * @param filter */ @Get(':id') @ApiResponse({ status: 200, description: 'The forms found', content: { 'application/json': { schema: { items: getModelSchemaRef(UserDtoOut), type: 'array', }, }, }, isArray: true, type: UserDtoOut, }) @ApiParam({ name: 'id', required: true, type: 'string', }) async findById( @Param('id') id: string, ): Promise<GoatOutput<UserDtoIn, UserDtoOut>> { const [error, result] = await For.async(this.users.findById(id)) if (error) { throw new NotFoundException(error) } return result } @Delete(':id') @ApiResponse({ status: 200, description: 'The forms found', content: { 'application/json': { schema: { type: 'string', }, }, }, isArray: true, type: UserDtoOut, }) @ApiParam({ name: 'id', required: true, type: 'string', }) async deleteById(@Param('id') id: string): Promise<string> { const [error, result] = await For.async(this.users.deleteById(id)) if (error) { throw new NotFoundException(error) } return result } /** * * @param id * @param form */ @Put(':id') @ApiResponse({ status: 200, description: 'The created form', content: { 'application/json': { schema: getModelSchemaRef(UserDtoOut) }, }, isArray: true, type: UserDtoOut, }) @ApiBody({ description: 'Form', type: UserDtoIn, }) @ApiParam({ name: 'id', required: true, type: 'string', }) async replaceById( @Param('id') id: string, @Body() newUserRequest: UserDtoIn, ): Promise<GoatOutput<UserDtoIn, UserDtoOut>> { let user = newUserRequest if (newUserRequest.password) { const password = await Hash.hash(newUserRequest.password) user = { ...user, password } } const [error, result] = await For.async(this.users.replaceById(id, user)) if (error) { throw new NotFoundException(error) } return result } /** * * @param id * @param form */ @Patch(':id') @ApiResponse({ status: 200, description: 'The created form', content: { 'application/json': { schema: getModelSchemaRef(UserDtoOut) }, }, isArray: true, type: UserDtoOut, }) @ApiBody({ description: 'Form', type: UserDtoIn, }) @ApiParam({ name: 'id', required: true, type: 'string', }) async updateById( @Param('id') id: string, @Body() newUserRequest: UserDtoIn, ): Promise<GoatOutput<UserDtoIn, UserDtoOut>> { let user = newUserRequest if (newUserRequest.password && newUserRequest.password !== '') { const password = await Hash.hash(newUserRequest.password) user = { ...newUserRequest, password } } const [error, result] = await For.async(this.users.updateById(id, user)) if (error) { throw new NotFoundException(error) } return result } } /* updateWhere countWhere */
typescript
A crucial meeting of the GST Council on compensating states for revenue shortfall began on Thursday with the states ruled by non-NDA parties opposing the Centre’s move to ask states to borrow to meet the deficit. The 41st meeting of the Goods and Services Tax (GST) Council headed by Union Finance Minister Nirmala Sitharaman and comprising representatives of all states, held deliberations via video conferencing on ways to make up for the shortfall in states’ revenues, sources said. While Congress and the states ruled by non-NDA parties pushed for the Centre meeting its statutory obligation of covering the deficit, the Union government cited a legal opinion to say it had no such obligation if there was a shortfall in tax collections. The Centre as well as BJP-JD(U)-ruled Bihar were of the opinion that the states should borrow to make up for the shortfall in the tax revenues that have been compounded by the COVID-19 crisis, sources said. The options being deliberated at the GST Council meeting include market borrowing, raising cess rate or increasing the number of items for levy of compensation cess. Discussion on correction in inverted duty on certain goods like textiles and footwear may also happen, they said. Setting the tone for the meeting, West Bengal Finance Minister Amit Mitra on August 26 wrote to Ms. Sitharaman saying states should not be asked to borrow from the market to make good the shortfall in GST revenue collection. “The Centre must pay the compensation from the different cesses that it collects, as it is not getting devolved to the states. In case of a shortfall it is the responsibility of the Centre to garner resources for fully compensating the states, as per the formula agreed upon with the states,” Mr. Mitra wrote. In 2017, 28 states agreed to subsume their local taxes such as VAT into the new, nationwide Goods and Services Tax (GST), in what was hailed as the biggest tax reform. At that time, the Centre had promised to compensate states for any revenue loss for five years from a pool created by levying cess over and above the GST on luxury and sin goods. GST collections including that of compensation cess had been falling short of the targets even before the pandemic, making it difficult for the Centre to compensate the states. States are supposed to receive half of the GST receipts. While the kitty of GST compensation cess may have lagged targets, the Centre has raised cess on items such as petrol and diesel, which have been kept out of the GST regime. This collection, which totals to several thousand crores of rupees, is not shared with states. Mr. Mitra wanted the Centre to make good the losses to states from this collection. “Under no circumstances, states should be asked to borrow from the market as it will increase their debt servicing liability. Further, it may lead to cut in state expenditure which is not desirable at this juncture when the economy is witnessing severe recessionary trend,” he wrote. Stating that there can be no going back on compensation payment, Mr. Mitra said the 14% rate is “sacrosanct”. At the GST Council meeting on Thursday, West Bengal was joined by Punjab, Kerala and Delhi in asking the Centre to make up for the shortfall, sources said. They said Ms. Sitharaman was citing an opinion of Attorney General K. K. Venugopal that stated the Centre is not legally bound to make up from its coffers any shortfall in GST revenues of states. The Centre had in March sought views from the Attorney General on the legality of market borrowing to make good the shortfall in the compensation fund — a corpus created from levy of additional tax on luxury and sin goods to compensate states for revenue shortfall arising from their taxes being subsumed into GST. The AG had also opined that the GST Council has to decide on making good the shortfall in the GST compensation fund by providing the sufficient amount to be credited to the corpus. Sources said the options before the Council for meeting the shortfall could be to rationalise GST rates, cover more items under the compensation cess or increase the cess, or recommend higher borrowing by states to be repaid by the future collection into the compensation fund. Under the GST law, states were guaranteed to be compensated bi-monthly for any loss of revenue in the first five years of the GST implementation from July 1, 2017. The shortfall is calculated assuming a 14% annual growth in GST collections by states over the base year of 2015-16. Under the GST structure, taxes are levied under 5, 12, 18 and 28% slabs. On top of the highest tax slab, a cess is levied on luxury, sin and demerit goods and the proceeds from the same are used to compensate states for any revenue loss. The GST Council has to decide how to meet the shortfall in such circumstances and not the central government, according to sources. Any borrowing of the central government is upon the security of the Consolidated Fund of India. Similarly, borrowing by a state government is upon the security of the consolidated fund of the state. In either case, it would lead to increased general government debt burden and a higher fiscal deficit. The payment of GST compensation to states became an issue after revenues from the imposition of cess started dwindling since August 2019. The Centre had to dive into the excess cess amount collected during 2017-18 and 2018-19. The Centre had released over ₹ 1. 65 lakh crore in 2019-20 as GST compensation. However, the amount of cess collected during 2019-20 was ₹ 95,444 crore. The compensation payout amount was ₹ 69,275 crore in 2018-19 and ₹ 41,146 crore in 2017-18.
english
<reponame>gignaWedi/minecraft-recipe-randomizer {"cookingtime":200,"experience":0.1,"ingredient":{"item":"minecraft:red_terracotta"},"result":"minecraft:stone_axe","type":"minecraft:smelting"}
json
Anthony Joshua has vowed to "whup" Andy Ruiz Jr and says everyone should bow to his greatness after he wins their world heavyweight title rematch. Ruiz sensationally knocked Joshua out to claim his IBF, WBA and WBO titles at Madison Square Garden in June. Joshua says it will be a very different story when he steps into the ring with the Mexican in Saudi Arabia on December 7. "I'm fighting the best man in the world now," Joshua told Sky Sports News. "I'm going to whup him, and show how great I am. "They think he's so great, so when I beat him I want everybody to bow to my feet and tell me how great I am." He added: "I couldn't beat Ruiz Jr before and get the credit I deserved. "You saw me in the ring - I wasn't fighting King Kong, was I? [I didn't have] that mindset. "Apparently I'm fighting the quickest hands and the best fighter in the division. So once I beat him I want everybody to bow to me." Joshua says he has learned from the experience of his first professional defeat in New York. The 30-year-old stated: "My body is in pain. I know how to fight, I know how to box. That's a good place to be in - when you don't second-guess yourself. "You go into a boxing ring without questioning yourself. I feel like I can control myself, and I have learned. In the first fight when I put him down, maybe I should have controlled myself more. "The blessing is that, out of such adversity, such great opportunity has come to right my wrong and become a two-time heavyweight champion. To prove to the world - no, not to the world. To prove to myself that the changes I wanted to make will pay off. That's a good place to be in."
english
Johannesburg: The series may be out of their grasp but South African skipper AB de Villiers feels there is still a lot to gain from the dead-rubber fifth ODI against Sri Lanka at the R Premadasa Stadium in Colombo on Wednesday. South Africa are trailing 1-3 in the five-match series, having suffered an eight-wicket defeat in the fourth ODI at Pallekele on Sunday. “There is a lot to gain from the last game. We have only won one ODI here before, we would like to make that two by finishing on a high," de Villiers said in a statement issued by Cricket South Africa (CSA). “We are getting more experience of how to play in these conditions, especially the younger players. That will be vital for tours in the future. We would still like to get hundreds and some good partnerships with the bat in hand," he stressed. “The bowlers have been playing good cricket and we just haven’t supported them well enough, there is an opportunity for us to show what we are capable of with the bat. " He further said, “Every match that you play for South Africa is an important one, regardless of the state of the series. Every player in the squad takes pride in his performance and they will no doubt want to finish the tour successfully. " Hashim Amla, who returned after missing the first three ODI’s and scored 77 off 71 balls, said he was happy to be back. Amla’s absence left a gap in the Proteas’ top order, which is yet to fire collectively in this series. “I’m certainly happy to be back in the team, especially spending some time in the middle. The first few days were quite tough, there was obviously a bit of pain here and there, but I have enjoyed getting back out there. Even though I made a small contribution, it was disappointing that it wasn’t for a winning cause," Amla said. South Africa travelled to Colombo on Monday, where they will begin preparations for the final ODI. T20 squad members David Wiese, Imran Tahir, Wayne Parnell and Henry Davids arrived in Colombo on Monday for the series which starts on Friday. “It’s always nice to get a bit of new energy in the team, especially at this time of the tour when it starts to get a bit long," de Villiers said. “I’m looking forward to playing some good cricket in this last leg of the tour. " This will be South Africa’s last match before the trip to the UAE in November to play Pakistan.
english
For example, you are waiting for a small company to celebrate an event or occasion and think through the menu. Salad in baskets is a good idea for a solemn table. The basket can be very different. How to prepare salad bowls? For example, you can buy ready-made (or if not too lazy) bake baskets for salad from sand or puff pastry (special molds are needed for this). It should be noted that the basket of shortcake is more suitable for sweet dessert salads, from puff for the same - for any. Some salads can be served in so-called orange baskets, it will look very original, beautiful and comfortable, in addition, the peel of citrus fruits liberates volatile aromatic substances in the space and has a pleasing attractive color and appearance, which increases the mood of those sitting at the table. "Orange" baskets are simply done: on the crust of an orange make a circular cut across the center (in the manner of the equator) and carefully remove the halves of the peel, trying not to damage. You can make a notch in a zigzag, then on the edge will be denticles. Thus, you will get two containers in the form of a hemisphere each. "Orange" baskets are especially good for light dessert fruit salads in fusion style with gentle fillings of yogurt and creamy creamy sauces or for more hearty salads that combine meat, or fish (and / or seafood) with fruits. Ingredients: - pork bacon smoked (or brisket, ham, boiled chicken white meat); - bananas slightly immature; - cheese; - young olives without pits; - kiwi; - garlic; - lime or lemon; - hot red hot pepper; - thick natural unsweetened yogurt or cream; - coriander leaves and parsley for decoration. First we prepare the fill. In yogurt or cream, add lime or lemon juice, chopped garlic and season with hot pepper. Let pouring infusion. When it will be necessary to fill the salad, strain it through a strainer. Bacon cut into small cubes, olives - circles, bananas - circles or smaller, kiwi - arbitrary. Combine all the prepared ingredients in a bowl. Add the fill and mix. Fill the salad with "orange" baskets. Sprinkle with grated cheese and decorate with leafy greens. If desired, you can complicate the recipe by adding a mixture of cocoa powder with powdered sugar (ratio 2: 1, or 1: 1) to the filling - so the salad becomes even more refined and interesting. To this dish, it is good to serve tequila with lime or a cocktail of gin (vodka, rum) with light vermouth (martini) and fresh orange juice .
english
<gh_stars>1-10 use std::fs; use std::collections::VecDeque; fn main() { // Part 1 let input = fs::read_to_string("inputs/aoc9.txt").unwrap(); let mut map: Vec<Vec<u8>> = Vec::new(); for line in input.lines() { let row: Vec<u8> = line.as_bytes().iter().map(|ch|ch-'0' as u8).collect(); map.push( row ); } let mut risk:u32 = 0; let width = map[0].len(); let height = map.len(); let mut basin_seeds: Vec<(usize,usize)> = Vec::new(); // Store the basin seeds for part 2 for y in 0..height { for x in 0..width { let depth = map[y][x]; if ( x==0 || map[y][x-1] > depth ) && ( x==width-1 || map[y][x+1] > depth ) && ( y==0 || map[y-1][x] > depth ) && ( y==height-1 || map[y+1][x] > depth ) { risk += depth as u32 + 1; basin_seeds.push( (x,y)); } } } println!("total risk {}", risk); // Part 2 let mut basin_sizes = vec![0u32;0]; for basin in basin_seeds { let mut basin_size = 0; let mut fill_map = vec![ vec![ 0; width]; height]; let mut fill_queue: VecDeque<(usize,usize)> = VecDeque::new(); fill_queue.push_back( ( basin.0, basin.1 )); // fill the basin ( very ineffcient way of doing it) while !fill_queue.is_empty() { let (x,y) : (usize,usize) = fill_queue.pop_front().unwrap(); if fill_map[y][x] == 1 { continue; } else { fill_map[y][x] = 1; basin_size +=1; if x>0 && map[y][x-1] != 9 { fill_queue.push_back( ( x-1, y )) ;} if x<width-1 && map[y][x+1] != 9 { fill_queue.push_back( ( x+1, y )) ;} if y>0 && map[y-1][x] != 9 { fill_queue.push_back( ( x, y-1 )) ;} if y<height-1 && map[y+1][x] != 9 { fill_queue.push_back( ( x, y+1 )) ;} } } basin_sizes.push(basin_size); } basin_sizes.sort(); basin_sizes.reverse(); println!( "result {}", basin_sizes[0]*basin_sizes[1]*basin_sizes[2]); }
rust
import { InsufficientCapabilitiesException } from "./InsufficientCapabilitiesException"; import { TokenAlreadyExistsException } from "./TokenAlreadyExistsException"; export type UpdateStackExceptionsUnion = | InsufficientCapabilitiesException | TokenAlreadyExistsException;
typescript
Felicitations to you all on the 3rd successive day of rejoicing. Today on the 5th of Sha’ban we are celebrating the blessed birth anniversary of the Survivor of the heartrending tragedy of Karbala. He is none other than the son and successor of Imam Husain (AS). Named Ali at birth in honour of his grandfather, the Commander of the Faithful, Imam Ali ibn Abi Taleb (AS), this virtuous grandson of the Immaculate Lady, Hazrat Fatema Zahra (SA), became famous as Zain al-Abedin or Ornament of the Worshippers of God. Born in Medina in the year 38 AH, his mother was the pious Iranian princess, Shahrbano, and he was destined to be the 4th Infallible Heir of his great-grandfather Prophet Mohammad (SAWA). Stay with us for an interesting feature on the 4th Imam, whose day of birth is marked in the Islamic Republic of Iran as Day of the Freed Prisoners of War, as a tribute to Iran’s captured Muslim combatants, who returned home with dignity from the prisons of the repressive Ba’th minority regime of Saddam. Before we present you a special programme on this blessed occasion, please listen to a moving supplication in the Divine Court. "O Allah, bless Muhammad and the Progeny of Muhammad, the tree of prophethood, the locus of apostlehood, the descent of the angels, the repository of divine knowledge, of the notables of the house of revelation! "This is the month of Your Prophet, the chief of Your apostles—Sha'ban, which You have enveloped in Your mercy and Your approval, the month wherein it was the practice of the Messenger of Allah, may Allah bless him and his progeny, to observe, until his death, its fast and to perform devotions during its nights and days, in order to do it honour and reverence out of humility before You! "O Allah, so help us in following his example with regard to it and to win his intercession! " The passages which you listened to are part of the famous supplication for the month of Sha'ban that believers are recommended to recite daily. The words and phrases are self-explanatory and unravel for us the keys of faith for a life of virtue in this transient world and salvation in afterlife. The dynamic wordings that open up the floodgates of Divine Mercy were taught to us by the person whose birthday we are celebrating today. It would be repetitive to say that Imam Zain al-Abedin (AS) was the son of Imam Husain (AS), was the grandson of Hazrat Fatema Zahra (SA) and Imam Ali (AS), and thus the great-grandson of Prophet Muhammad (SAWA). As we said earlier, his peerless pedigree is crystal clear including the fact that his mother was the Iranian princess, Shahrbano (SA). Born on the 5th of Sha'ban in the Prophet's city Medina in the year 38 AH, and named Ali (AS) in honour of his celebrated grandfather, he was two years old when the one and only Commander of the Faithful (Amir al-Mu'minin) was martyred in Iraq on the 21st of Ramadhan 40 AH, as a result of the fatal sword blow struck on his blessed head by the renegade Abdur-Rahman bin Muljim on 19th Ramadhan while engrossed in the Morning Prayer in the Mosque of Kufa. In his late teens he married his first cousin, Fatema (SA) – daughter of his uncle Imam Hasan (AS) – who soon became the mother of his son and successor, Imam Muhammad al-Baqer (AS). Those were the days of the 19-year long misrule by the Omayyad usurper Mu'awiyya bin Abu Sufyan, whose placing of his equally abominable son, Yazid, as caliph, in violation of the treaty signed with Imam Hasan (AS), brought about the tragedy of Karbala, and the subsequent captivity of members of the Prophet's Household including the 23-year old sick and bedridden son and heir of Imam Husain (AS). He and his aunt Zainab's (SA) electrifying sermons in Yazid's court that led to the release of the Ahl al-Bayt from imprisonment in Damascus and return home to Medina, need not be recounted here. It would also be tedious to focus on the often cited details of his 34-year imamate during which, in addition to bequeathing to humanity the unique set of supplications called Sahifat as-Sajjadiyya and the dynamic code of detailed rights known as Risalat al-Hoqouq, he groomed a core of scholars, thereby laying foundations of the academy of Medina that would flower in the days of his grandson, Imam Ja'far as-Sadeq (AS). The 4th Imam of the Prophet's Ahl al-Bayt who was neither sick all his life, as some conjecture, nor kept himself aloof from public affairs, as others allege, was quite active in various domains, as is borne out by events of his life, despite the huge political pressures he had to endure. For instance, during the initial years of his spiritual leadership of the ummah – 12 years to be exact – the Islamic state was torn between two imposters claiming to be caliphs and wantonly shedding Muslim blood. One was Abdullah bin Zubair in the Hejaz and the other was Abdul-Malik bin Marwan in Syria. The latter finally triumphed and killed the former in 73 AH after blasphemously ordering the storming of the holy Ka'ba and destroying it, and that too in Zilhijja, the month of pilgrimage. In between their tussles for power, these two criminals brutally massacred followers of the Prophet's Ahl al-Bayt, especially the Tawwabin (Penitents) who had risen to avenge the martyrdom of Imam Husain (AS), and Mukhtar bin Abu Obaidah Thaqafi, who succeeded in bringing to justice almost all those involved in the Karbala tragedy. These were indeed critical times for Imam Zain al-Abedin (AS) who never had respite even after the fall of the Zubairis, for the tyrannical Ommayyad governor of Iraq, Hajjaj bin Yusuf al-Thaqafi, continued to slaughter the followers of the Prophet's Ahl al-Bayt for the next 20-odd years, to the tune of 100,000. He proved admirably worthy of his name, to the extent that his piety and worship in the mode of his illustrious grandfather earned him the epithets of Zain al-Abedin (Ornament of the Worshippers) and Seyyed as-Sajedin (Chief of those Prostrating to God). However, when people felt amazed at these unique characteristics of his, the Survivor of history's most heartrending tragedy used to say that these are nothing when compared to the peerless piety, patience, prostrations and other acts of worship of his revered grandfather, Imam Ali (AS). As the 4th Infallible Successor of the Prophet, on many an instance during his 34-year mission, he demonstrated his God-given prowess – in the manner of his redoubtable grandfather –to remove any doubt that real authority belonged to him, and not to any pretender (like Abdullah bin Zubair) and neither to any of those tyrannical Omayyad rulers such as Yazid, Marwan, Abdul-Malik bin Marwan, Waleed… who masqueraded as caliphs. His famous statement, while captive and still a youth of 23 years in the immediate aftermath of his father's martyrdom, exposed hypocrisy in the court in Damascus when he called the pulpit "mere planks of wood" because it had lost its sanctity under the Godless Omayyads and then mounting it stunned the whole audience by the words: "O Yazid! This Muhammad (SAWA), whose name is being recited in the Azaan, was my (great) grandfather or yours; and if mine, how could you slay the Prophet’s grandson and still call yourself a Muslim? " The tyrant had no choice but to soon free the Prophet's blessed family from imprisonment. Another famous instance of his spiritual powers that were beyond the ken and control of any usurper was his effortless access to the sacred Black Stone at the Ka'ba when pilgrims were jostling to reach it and when the Omayyad governor of Mecca, Hesham bin Abdul-Malek, unable to near that holy spot, tried to deride him with the words: Who's is this? Prompt came the reply from the great Arabic poet, Farazdaq, who was happened to be nearby and who composed a beautiful ode saying: He is the one who is recognized by the Ka'ba and the sanctuary; He is the most eminent person of the age and the (great grand)son of the Best of God's creation (the Prophet); He is the Appointee of God, and that very faith in Islam if from the House of this man. Still on another occasion when his uncle Muhammad al-Hanafiyya, in order to disprove the dubious claims of a group of people who wrongly revered him as the Imam, approached the sacred Black Stone for answer, and got no reply, Imam Zain al-Abedin (AS) smiling stepped forward and saluted the seemingly inanimate object, which to the amazement of the audience responded by greeting him as the Emissary of God. Yet despite the animosity of the Omayyads, the 4th Imam never hesitated when the progress and prosperity of the ummah was at stake. This is evident by his sending of his son, Imam Baqer (AS) to Damascus for setting up of the first mint in Islamic history – a move that saved the drain of bullion to the Byzrantine Empire for coins that were designed to insult and undermine Islamic beliefs. No wonder we celebrate his birthday with more fervour every year and look forward to the day when his desecrated tomb in the Baqie Cemetery of Medina will be restored to its former glory.
english
<filename>cidr_trie/__init__.py """Store CIDR IP addresses (both v4 and v6) in a PATRICIA trie for easy lookup. A Patricia trie can be created, inserted to, and searched like this .. code-block:: python trie = PatriciaTrie() trie.insert("0.0.0.0/0", "Internet") trie.insert("192.168.3.11/9", "RIR-A") trie.insert("192.168.3.11/9", "RIR-B") trie.insert("172.16.58.3/16", "another") trie.insert("172.16.17.32/24", "third") trie.insert("192.168.127.12/32", "you") trie.insert("192.168.0.1/32", "totally different") trie.insert("172.16.31.10/8", "RIR3") trie.insert("172.16.58.3/8", "RIR2") # find all node values on the way down print(trie.find_all("192.168.127.12")) """ import threading from .cidr_util import is_v6, cidr_atoi, longest_common_prefix_length, get_subnet_mask, ip_itoa from .bits_util import is_set, ffs from typing import Any, List, Dict, Tuple class PatriciaNode: """A node in the Patricia trie. Attributes: ip (int): The IP address associated with this node. bit (int): How many bits along the IP the decision is made to branch. masks (Dict[int, Any]): The data stored on this node. Maps netmasks to data. left (PatriciaNode): The left subtrie of this node. Self pointer if no left node. right (PatriciaNode): The right subtrie of this node. Self pointer if no right node. parent (PatriciaNode): The parent node of this node. None if root node. """ def __init__(self, ip: int=0, bit: int=0, masks: Dict[int, Any]={}) -> None: self.ip = ip self.bit = bit self.masks = masks self.left = self self.right = self self.parent = None def __str__(self): return f"IP: {self.ip}, Decision bit: {self.bit}" def get_values(self, prefix: str) -> List[Tuple[str, Any]]: """Get values from this node by iterating through netmasks and checking to see if the given prefix is contained within. Args: prefix: The prefix to use to check, i.e. "192.168.0.0/16" Returns: List[Tuple[str, Any]]: list of tuples of prefixes and values, i.e. [("192.168.0.0/16", 2856), ...] """ # parse the CIDR string ip, mask = cidr_atoi(prefix) v6 = is_v6(prefix) result = [] # for each mask stored on this node, check to see if the IP given by the # prefix masked by the mask is equal to the IP stored in the node # this indicates that this IP is within the network defined by the node # and particular netmask for m in self.masks.keys(): # if the mask is greater than the given mask, there's no way the # prefix can be in this range, as it's bigger than this network if m > mask: continue # make sure this ip is within the network defined by the mask if self.ip == (ip & get_subnet_mask(m, v6)): ip_str = f"{ip_itoa(self.ip, v6)}/{m}" result.append((ip_str, self.masks[m])) return result def get_child_values(self, prefix: str) -> List[Tuple[str, Any]]: """Get all child values from this node by iterating through netmasks and checking to see if the given prefix is larger than the given netmask. Args: prefix: The prefix to use to check, i.e. "192.168.0.0/16" Returns: List[Tuple[str, Any]]: list of tuples of prefixes and values, i.e. [("192.168.0.0/16", 2856), ...] """ # parse the CIDR string _, mask = cidr_atoi(prefix) v6 = is_v6(prefix) result = [] # for each mask stored in this node, check to see if the netmask is # greater than the given netmask for m in self.masks.keys(): if m < mask: continue ip_str = f"{ip_itoa(self.ip, v6)}/{m}" result.append((ip_str, self.masks[m])) return result class PatriciaTrie: """A Patricia trie that stores IP addresses and data. Attributes: root (PatriciaNode): The root element of the trie. Always exists as 0.0.0.0. v6 (bool): Whether this trie stores IPv6 addresses or not. size (int): The number of nodes in this trie, not counting the root node. A Patricia trie can be created, inserted to, and searched like this .. code-block:: python trie = PatriciaTrie() trie.insert("0.0.0.0/0", "Internet") trie.insert("192.168.3.11/9", "RIR-A") trie.insert("192.168.3.11/9", "RIR-B") trie.insert("172.16.58.3/16", "another") trie.insert("172.16.17.32/24", "third") trie.insert("192.168.127.12/32", "you") trie.insert("192.168.0.1/32", "totally different") trie.insert("172.16.31.10/8", "RIR3") trie.insert("172.16.58.3/8", "RIR2") # find all node values on the way down print(trie.find_all("192.168.127.12")) """ def __init__(self) -> None: self.root = PatriciaNode(bit=-1) self.v6 = False self.size = 0 def validate_ip_type_for_trie(self, ip: str) -> None: """Make sure this IP is valid for this trie. Raises: ValueError: if trying to insert a v4 address into a v6 trie and vice-versa. """ v6 = is_v6(ip) if v6 == True and self.v6 == False: raise ValueError("Cannot store IPv6 prefix in IPv4 trie") elif v6 == False and self.v6 == True: raise ValueError("Cannot store IPv4 prefix in IPv6 trie") def insert(self, prefix: str, data: Any) -> PatriciaNode: """Insert an IP and data into the trie. If the IP was already in the trie it will overwrite the value. .. code-block:: python trie = PatriciaTrie() trie.insert("192.168.0.0/16", 1234) Args: prefix: The prefix to insert, i.e. "192.168.0.0/16" data: The value to associate with the IP and netmask. Returns: PatriciaNode: The node that was inserted in the trie. Raises: ValueError: When trying to store an IPv4 address in a trie currently storing IPv6 addresses, and vice-versa. """ if self.size == 0: # set the v6 value if first insert self.v6 = is_v6(prefix) self.validate_ip_type_for_trie(prefix) ip, mask = cidr_atoi(prefix) # traverse the trie until we get to a leaf to check last_bit = -2 # -2 as it has to be lower than the root (which is -1) cur_node = self.root while last_bit < cur_node.bit: last_bit = cur_node.bit if is_set(cur_node.bit, ip, self.v6): cur_node = cur_node.right else: cur_node = cur_node.left # check to see if the IP is equal if cur_node.ip == ip: cur_node.masks[mask] = data return cur_node # they're different, so find the rightmost bit where they differ differ_bit = 0 while is_set(differ_bit, cur_node.ip, self.v6) == is_set(differ_bit, ip, self.v6): differ_bit += 1 # special case: if we're inserting a node below the root, we want to # set the bit to the rightmost set bit, otherwise the bit will be set # to zero, causing other non-subprefix nodes to be inserted below # this node erroneously if differ_bit == 0: differ_bit = (127 if self.v6 else 31) - ffs(ip) # travel down the trie to that point last_node = PatriciaNode(bit=-2) # -2 as it has to be lower than the root (-1) cur_node = self.root while last_node.bit < cur_node.bit and cur_node.bit <= differ_bit: last_node = cur_node if is_set(cur_node.bit, ip, self.v6): cur_node = cur_node.right else: cur_node = cur_node.left # create the new node to_insert = PatriciaNode(ip, differ_bit, {mask: data}) # figure out where to put child if is_set(to_insert.bit, cur_node.ip, self.v6): to_insert.right = cur_node else: to_insert.left = cur_node # set the child's new parent if it isn't pointing back up if cur_node.bit > to_insert.bit: cur_node.parent = to_insert # figure out which side to insert on if is_set(last_node.bit, ip, self.v6): last_node.right = to_insert else: last_node.left = to_insert to_insert.parent = last_node self.size += 1 return to_insert def check_value_exists(self, prefix: str) -> (bool, bool): """Check to see if a value exists in the trie already. Returns 2 bools, the first to indicate whether the IP existed in the trie, and the second to indicate whether the mask existed on that IP. There can only be one of any IP stored in the trie, if you stored 2 prefixes, "192.168.0.0/16", and "192.168.0.0/24", the data would be stored on the same node, as the IP address "192.168.0.0" is the same. Even though these refer to 2 separate networks. This method exists so you can check to see if this will happen. The first boolean returned indicates if an IP address is already present, for example in the case above, if called after inserting "192.168.0.0/16", this method would return True in the first boolean for a prefix of "192.168.0.0/24" and other netmasks, and False for the second boolean. The second boolean is for checking if the mask is present -- if called after inserting "192.168.0.0/16" with a prefix of "192.168.0.0/16" it would return True for both booleans. Args: prefix: The prefix to find in the trie, i.e. "192.168.0.0/16" Returns: (bool, bool): A 2-tuple of bools indicating whether the IP existed and the mask existed, respectively. Raises: ValueError: When trying to find an IPv4 address in a v6 trie and vice-versa. """ self.validate_ip_type_for_trie(prefix) # parse the CIDR string ip, mask = cidr_atoi(prefix) # traverse the trie with the given IP last_node = None for node in self.traverse(prefix): last_node = node if node.ip == ip: break ip_exists = False mask_exists = False if last_node.ip == ip: # if the last node's IP equals this IP, the IP exists # we now need to check if the mask is in the set of masks ip_exists = True mask_exists = mask in last_node.masks return ip_exists, mask_exists def find(self, prefix: str) -> PatriciaNode: """Find a value in the trie. Args: prefix: The prefix to find in the trie, i.e. "192.168.0.0/16" Returns: PatriciaNode: The node if found, None otherwise. Raises: ValueError: When trying to find an IPv4 address in a v6 trie and vice-versa. """ self.validate_ip_type_for_trie(prefix) ip, _ = cidr_atoi(prefix) for node in self.traverse(prefix): if node.ip == ip: return node # if we get to here, the node isn't in the trie return None def find_all(self, prefix: str, children: bool=False) -> List[Tuple[str, Any]]: """Find all values for this prefix, traversing the trie at all levels. With get all values from common prefixes of 'prefix', then traverse all children of 'prefix' to get their values too. Args: prefix: The prefix to find in the trie. children: Whether to find all child values of the exact node found. (Defaults to False, as this isn't performant in large tries) Returns: List[Tuple[str, Any]]: list of tuples of prefixes and values, i.e. [("192.168.0.0/16", 2856), ...] Raises: ValueError: When trying to find an IPv4 address in a v6 trie and vice-versa. """ self.validate_ip_type_for_trie(prefix) result = [] ip, mask = cidr_atoi(prefix) # for each node on the way down last_node = None for node in self.traverse(prefix): result += node.get_values(prefix) last_node = node if node.ip == ip: break if children and last_node.ip == ip: # for each child node underneath the last found node for node in self.traverse_inorder_from_node(last_node): # skip the first node, as it's already in the result if node.ip == last_node.ip: continue # make sure this child is within the prefix if (node.ip & get_subnet_mask(mask, self.v6)) == (ip & get_subnet_mask(mask, self.v6)): result += node.get_child_values(prefix) return result def traverse(self, prefix: str) -> PatriciaNode: """Traverse the entire trie (from root) using a prefix. Args: prefix: The prefix to find in the trie, i.e. "192.168.0.0/16" Yields: PatriciaNode: The next node traversed when searching for 'prefix'. Raises: ValueError: When trying to find an IPv4 address in a v6 trie and vice-versa. """ for node in self.traverse_from_node(self.root, prefix): yield node def traverse_from_node(self, node: PatriciaNode, prefix: str) -> PatriciaNode: """Traverse the trie from a specific node using a prefix. Args: node: The node to start traversing from. prefix: The prefix to find in the trie, i.e. "192.168.0.0/16" Yields: PatriciaNode: The next node traversed when searching for 'prefix'. Raises: ValueError: When trying to find an IPv4 address in a v6 trie and vice-versa. """ self.validate_ip_type_for_trie(prefix) ip, _ = cidr_atoi(prefix) # look for a leaf last_node = PatriciaNode(bit=-2) # -2 as it has to be lower than the root (-1) cur_node = node while last_node.bit < cur_node.bit: last_node = cur_node yield cur_node if is_set(cur_node.bit, ip, self.v6): cur_node = cur_node.right else: cur_node = cur_node.left def traverse_inorder(self) -> PatriciaNode: """Perform an inorder traversal of the trie from the root node. Yields: PatriciaNode: The next node in the traversal. Raises: ValueError: When trying to find an IPv4 address in a v6 trie and vice-versa. """ for node in self.traverse_inorder_from_node(self.root): yield node def traverse_inorder_from_node(self, node: PatriciaNode) -> PatriciaNode: """Perform an inorder traversal of the trie from a given node. Args: node: The node to traverse from. Yields: PatriciaNode: The next node in the traversal. Raises: ValueError: When trying to find an IPv4 address in a v6 trie and vice-versa. """ stack = [] last_bit = -2 # -2 as it has to be lower than the root (-1) cur_node = node while len(stack) > 0 or last_bit < cur_node.bit: while last_bit < cur_node.bit: stack.append(cur_node) last_bit = cur_node.bit cur_node = cur_node.left if len(stack) > 0: cur_node = stack.pop() yield cur_node last_bit = cur_node.bit cur_node = cur_node.right def traverse_preorder(self) -> PatriciaNode: """Perform a preorder traversal of the trie from the root node. Yields: PatriciaNode: The next node in the traversal. Raises: ValueError: When trying to find an IPv4 address in a v6 trie and vice-versa. """ for node in self.traverse_preorder_from_node(self.root): yield node def traverse_preorder_from_node(self, node: PatriciaNode) -> PatriciaNode: """Perform a preorder traversal of the trie from a given node. Args: node: The node to traverse from. Yields: PatriciaNode: The next node in the traversal. Raises: ValueError: When trying to find an IPv4 address in a v6 trie and vice-versa. """ stack = [] last_bit = -2 # -2 as it has to be lower than the root (-1) cur_node = node while len(stack) > 0 or last_bit < cur_node.bit: while last_bit < cur_node.bit: stack.append(cur_node) yield cur_node last_bit = cur_node.bit cur_node = cur_node.left if len(stack) > 0: cur_node = stack.pop() last_bit = cur_node.bit cur_node = cur_node.right
python
package com.moesol.cac.agent.selector; import java.io.File; import java.io.IOException; import java.security.KeyStore; import java.security.KeyStore.CallbackHandlerProtection; import java.security.Provider; import java.security.Security; import javax.security.auth.callback.Callback; import javax.security.auth.callback.CallbackHandler; import javax.security.auth.callback.PasswordCallback; import javax.security.auth.callback.UnsupportedCallbackException; import javax.swing.JOptionPane; import com.moesol.cac.agent.CacHookingAgent; public class Pkcs11SelectorKeyManager extends AbstractSelectorKeyManager { private Provider provider; @Override protected KeyStore accessKeyStore() throws Exception { setUpProvider(); chooser.showBusy("Accessing CAC..."); try { KeyStore ks = KeyStore.Builder .newInstance("PKCS11", provider, makeCallbackHandler()) .getKeyStore(); ks.load(null, null); return ks; } finally { chooser.hideBusy(); } } private CallbackHandlerProtection makeCallbackHandler() { CallbackHandler handler = new CallbackHandler() { @Override public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException { for (Callback c : callbacks) { if (c instanceof PasswordCallback) { PasswordCallback pc = (PasswordCallback) c; pc.setPassword(chooser.promptForPin(pc.getPrompt())); } } } }; return new KeyStore.CallbackHandlerProtection(handler); } @SuppressWarnings("restriction") private void setUpProvider() { chooser.showBusy("Initializing PKCS#11..."); try { String home = System.getProperty("user.home"); String configName = home + "/" + CacHookingAgent.CAC_AGENT_DIR + "/pkcs11.cfg"; File configFile = new File(configName); if (configFile.exists()) { provider = new sun.security.pkcs11.SunPKCS11(configName); Security.addProvider(provider); } else { String message = "Not found: " + configName; String title = "PKCS#11 Configuration Not Loaded"; JOptionPane.showMessageDialog(null, message, title, JOptionPane.WARNING_MESSAGE); } } finally { chooser.hideBusy(); } } public static void main(String[] args) { // CacHookingAgent.DEBUG = true; Pkcs11SelectorKeyManager selector = new Pkcs11SelectorKeyManager(); if (Boolean.getBoolean("tty")) { selector.setIdentityKeyChooser(new TtyIdentityKeyChooser(selector)); } System.out.println("chose: " + selector.chooseClientAlias(null, null, null)); // Must not need to call System.exit(0) to shutdown or interferes with jgit. } }
java
Stars are meant to shine – and many of the star players of this World Cup did just that. At the same time, many fans were bitterly disappointed by their heroes, whereas underdogs rose to the occasion and took the spotlight they deserved! Here are some of our new favorites. South Korea is known among the Bangladeshi youth largely for K-pop and K-dramas, but this World Cup they made waves in football as well. One of the standouts of this team is Cho Gue-Sung, who scored two goals in the space of three minutes against Ghana. He became the first Korean to score two goals in a single World Cup match. Right after that, his popularity soared and the number of followers on his Instagram rose from 20 thousand to over 3 million. Sadly, Korea's World Cup run ended when they lost to Brazil in the Round of 16, but they have proved they are the dreamers who make it happen! Once upon a time, he used to practice with a water bottle because that's all he could afford. In 2022, Enner Valencia proved to be Ecuador's standout player, scoring 100 percent of the team's World Cup goals. Sadly, Ecuador was eliminated on 4 points, whereas many teams had managed to get to the round of 16 with the same number. The World Cup needed more of this player, and this player definitely deserved more in the World Cup. The Pistoleiro (Gunfighter) of Portugal scored the first hat-trick of the 2022 World Cup. Despite the odds against him, he made it to the squad after Rafa Silva's retirement, and Portugal supporters couldn't get enough of his presence on the pitch! At first he was a substitute, then when he started he played like a star, winning over Portugal fans. Martinez's last-minute tackle to what could have been a fatal Australian goal was one of the key moments that led Argentina to a 2-1 victory against Australia. All eyes are on Argentina as they are the team which made it furthest among Bangladesh's favorites (we can admit that Bangladesh is mostly divided into 2 factions). Lisandro's passion on the pitch is worth keeping an eye out for. Despite Germany's rapid exit from the World Cup, one can't help but cheer for Jamal Musiala. Although Musiala is only the fourth youngest German to play in the World Cup, his style is indistinguishable from veterans. The way he cuts through opponents and takes away the ball – silky smooth! Get yourself a lawyer who defends you like Bounou defends his goalpost. Morocco has made history by becoming the first African team to reach the World Cup semi-finals. Their defense is fantastic, and Bounou's penalty saves against the Spanish team (who had practiced a thousand penalties) proves it. Portugal's powerful team, who played mainly on the offensive against them, couldn't break through. Even before that, Yassine Bounou was the best goalkeeper in La Liga last season. The Wall of Morocco blocked one of Ronaldo's shots, contributing to Morocco's 1-0 and history-breaking achievement. Every time Croatia wins, I see a minimum of five club football fans begging their clubs to take Livakovic in. Where do we BEGIN with this man? Croatia's matches have been ADDICTIVE to watch, and Dominik Livakovic has been phenomenal. Croatia went to the tie-breakers twice, and Livakovic, being the goalkeeper, must have felt the immense pressure of shouldering the fate of the team. He blocked penalty after penalty against Japan. He almost blocked Casemiro's lightning-fast penalty shot; he swerved in the correct direction and was within inches of blocking the goal. This guy was pivotal in winning against a team like Brazil, who attempted 11 shots on target, but managed to get only one in. Dominik Livakovic breaks your heart by knocking out your favorite football players, and steals it by giving his 200 percent to the game.
english
import { ConfigService } from '@nestjs/config'; import { Sequelize } from 'sequelize-typescript'; import { PROVIDERS, DATABASE_CONFIG } from '../../common/constants'; import { Notification } from '../notification/notification.model'; import { Addresses } from '../address/address.model'; import { Orders } from '../order/order.model'; import { Users } from '../user/user.model'; export const databaseProviders = [ { provide: PROVIDERS.DATABASE_PROVIDER, useFactory: (configService: ConfigService) => { const sequelize = new Sequelize({ ...configService.get(DATABASE_CONFIG), }); sequelize.addModels([Users, Orders, Addresses, Notification]); return sequelize; }, inject: [ConfigService], }, ];
typescript
["Statistics","Stratified sampling","Normal distribution","Histogram","Standard deviation","Probability distribution","Arithmetic mean","Median","Random variable","Estimator","Geometric mean","Radiocarbon dating","Variance","Kurtosis","Law of large numbers","Parameter","Uncertainty principle","Outlier","Accuracy and precision","Uncertainty","Power law","Correlation and dependence","Analysis of variance","Weighted arithmetic mean","Students t-distribution","Chebyshevs inequality","Kalman filter","Observational error","Allan variance","List of statistics articles"]
json
<filename>form/style.css * { margin:0; padding:0; } body { background-color: lightgrey; font-family: Verdana, Geneva, Tahoma, sans-serif; } header { padding: 100px 50px 70px 50px; text-align: center; } header #me h1 { margin-bottom: 0px; } header #me p { margin-top: 5px; font-size: 14px; } header a { text-decoration: none; } #main { display: flex; justify-content: center; } #center { background-color: white; border-radius: 10px; padding: 50px; width: 500px; } #side { background-color: white; border-radius: 10px; padding: 25px; width: 200px; margin-left: 25px; } #form { margin-top: 30px; } #form button { margin-top: 15px; width: 100px; height: 30px; font-size: 14px; padding: 2px; background-color: blue; border: none; border-radius: 5px; color: white; box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.02); cursor: pointer; } .formsection { margin-bottom: 10px; } #footer { margin-top: 100px; } footer { position: static; left: 0; bottom: 0; width: 100%; padding: 25px; background-color: white; text-align: center; } nav { position: static; left: 0; top: 0; width: 100%; padding: 25px; background-color: white; text-align: center; }
css
Two people died after a head-on collision and semitruck crash on U. S. Highway 301 in Florida early Thursday morning. A Tampa woman, 32, was headed northbound in her SUV on U. S. 301 when her vehicle crossed the centerline of the highway and collided head-on with pickup driven by a Zephyrhills woman, 58, at around 3 a. m. A 61-year-old man, also from Zephyrhills, was in the passenger's seat of the pickup. It is unclear why the woman's vehicle crossed the centerline, according to a Florida Highway Patrol report. The pickup truck burst into flames after the collision. A semitruck then collided with the woman's SUV minutes after the initial collision. The truck also side-swept another vehicle and struck a 53-year-old Pennsylvania man trying to help after the initial collision, according to the report. The SUV driver was reported dead at the scene. The two victims in the pickup truck and the pedestrian were airlifted to a nearby hospital. The pickup's passengers were seriously injured after the vehicle caught fire. The pedestrian later died at a hospital from his injuries. The semitruck driver, a 69-year-old man from Port Charlotte, suffered minor injuries while the driver in the side-swept car, 62, was not injured. Both lanes on U. S. 301 were closed after the accidents. The highway was reopened around 9:30 am.
english
<gh_stars>0 package com.trioangle.gofer.helper; /** * @package com.trioangle.gofer * @subpackage helper * @category ReturnValues * @author Trioangle Product Team * @version 1.5 */ import com.google.android.gms.maps.model.LatLng; /* ************************************************************ Return latitude and longitude Values for animate route in Main Activity *************************************************************** */ public class ReturnValues { private final LatLng latlng; private final String country; public ReturnValues(LatLng latlng, String country) { this.latlng = latlng; this.country = country; } /** * return latitude and longitude */ public LatLng getLatLng() { return latlng; } /** * return country */ public String getCountry() { return country; } }
java
<reponame>jupito/dwilib """Automatic ROI search.""" import numpy as np from .types import AlgParams ADCM_MIN = 0.00050680935535585281 ADCM_MAX = 0.0017784125828491648 def get_score_param(img, param): """Return parameter score of given ROI.""" if param.startswith('ADC'): # return 1 - np.mean(img) # return 1 / (np.mean(img) - 0.0008) if np.mean(img) > 0: return 1 / np.mean(img) return 0 # NOTE The following min/max limit seems to make things worse. # if (img < ADCM_MIN).any() or (img > ADCM_MAX).any(): # return 0 elif param.startswith('K'): return np.mean(img) / 1000 elif param.startswith('score'): return np.mean(img) elif param == 'prostate_mask': # Ban areas more than a certain amount outside of prostate. if img.sum() / img.size > 0.20: return 1 return -1e20 elif param == 'prostate_mask_strict': # Ban areas even partly outside of prostate. if img.all(): return 1 return -1e20 return 0 # Unknown parameter def get_roi_scores(img, d, params): """Return array of all scores for each possible ROI of given dimension.""" shape = [img.shape[i]-d[i]+1 for i in range(3)] + [len(params)] scores = np.empty(shape, dtype=np.float32) for z, y, x, i in np.ndindex(scores.shape): roi = img[z:z+d[0], y:y+d[1], x:x+d[2], i] scores[z, y, x, i] = get_score_param(roi, params[i]) return scores def scale_scores(scores): """Scale scores in-place.""" scores[...] /= scores[...].max() # import sklearn.preprocessing # shape = scores.shape # a = scores.ravel() # sklearn.preprocessing.scale(a, copy=False) # a.shape = shape # scores[...] = a def get_scoremap(img, d, params, nrois): """Return array like original image, with scores of nrois best ROI's.""" scores = get_roi_scores(img, d, params) for i in range(len(params)): scale_scores(scores[..., i]) scores = np.sum(scores, axis=-1) # Sum scores parameter-wise. indices = scores.ravel().argsort() # Sort ROI's by score. indices = indices[-nrois:] # Select best ones. indices = [np.unravel_index(i, scores.shape) for i in indices] scoremap = np.zeros(img.shape[0:3] + (1,), dtype=np.float32) for z, y, x in indices: scoremap[z:z+d[0], y:y+d[1], x:x+d[2], 0] += scores[z, y, x] return scoremap def add_mask(img, mask): """Add mask to image as an extra parameter.""" m = mask.array.view() m.shape += (1,) return np.concatenate((img, m), axis=3) def find_roi(img, roidim, params, prostate_mask=None, ap=None): if ap is None: ap = AlgParams(depthmin=2, depthmax=3, sidemin=10, sidemax=10, nrois=500) assert ap.depthmin <= ap.depthmax assert ap.sidemin <= ap.sidemax # Draw score map. dims = [(j, i, i) for i in range(ap.sidemin, ap.sidemax+1) for j in range(ap.depthmin, ap.depthmax+1)] if prostate_mask: img = add_mask(img, prostate_mask) params = params + ['prostate_mask'] scoremaps = [get_scoremap(img, d, params, ap.nrois) for d in dims] scoremap = sum(scoremaps) # Find optimal ROI. scoremap_params = ['score'] if prostate_mask: scoremap = add_mask(scoremap, prostate_mask) scoremap_params += ['prostate_mask_strict'] roimap = get_scoremap(scoremap, roidim, scoremap_params, 1) # Get first nonzero position at each axis. corner = [axis[0] for axis in roimap[..., 0].nonzero()] # Convert to [(start, stop), ...] notation. coords = [(x, x+d) for x, d in zip(corner, roidim)] return dict(algparams=ap, scoremap=scoremap[..., 0], roi_corner=corner, roi_coords=coords)
python
Chandrababu Naidu the Chief Minister of Andhra Pradesh found fault with the attitude of centre towards Mamata Banerjee the Chief Minister of West Bengal. Talking through a Teleconference Chandrababu told his leaders and cadre that After Akhilesh, Mayawathi now it was the turn of Mamata to face the wrath of NDA Government led by Narendra Modi. The CBI was being used against the State Governments who don’t support the regime of Modi he charged. Chandrababu said that the centre was going against Mamata as she has organised an all-party rally in Kolkata against the BJP Government. It is out of Vengeance that the Modi government was using CBI against the CM Mamata he alleged. An all-out war broke against the WestBengal government and the BJP Government from Sunday. The BJP has sent CBI to question Kolkata police chief relating to the Sarada Chit fund scam. Chandrababu alleged that people who surrender to Modi are happy and the cases against them are lifted and they are protected. He was hinting at Jagan the YSRC chief who was facing ED and other cases in Money laundering. He said that the opposition will not keep quiet and that he would chalk out the future course of action against Modi.
english
module.exports = function rupeeFormatter(amount){ var isNegative = false; if(typeof amount === "number" && amount < 0){ isNegative = true; amount = -1 * amount; } if(typeof amount === "string" && parseFloat(amount) < 0){ isNegative = true; amount = -1 * parseFloat(amount); } amount = amount + ""; if(amount === ""){ return "₹ -"; } var amountArr = amount.split("."); var first = amountArr[0]; var decimal = amountArr[1]; var firstdigit = first.split("").pop(); var lastPart = first.split("").filter((v, i , A)=>{return i!== A.length-1}).join(""); var lastPartFormatted = lastPart.split("").reverse().map((v, i, A)=>{if(i!==A.length-1){return `${A[i+1]}${v}`}else{return v}}).filter((v, i)=>{return i%2 === 0}).reverse().join(","); if(isNegative){ if(decimal !== undefined){ return `₹ -${lastPartFormatted}${firstdigit}.${decimal}`; } else { return `₹ -${lastPartFormatted}${firstdigit}`; } } else { if(decimal !== undefined){ return `₹ ${lastPartFormatted}${firstdigit}.${decimal}`; } else { return `₹ ${lastPartFormatted}${firstdigit}`; } } }
javascript
The blues are . . . The meaning of the word "blues" Blues - this is a special musical form that reflects the state of the human soul. Has a pronounced jazz base. Blues music originated in the late XIX century in the southeastern lands of America, on the territory of the "cotton belt". At that time, plantations were cultivated by hundreds of blacks brought by slave traders from the African continent. Work from dawn to sunset was hard, everything had to be done manually, and black slaves suffered. The emotional experiences of slaves demanded an exit, and against this background the first and the main variety of blues appeared - "spirituals". Blues - this is a true folklore art, rooted in the very depth of human existence. Therefore, from the cotton plantations to the new musical direction , a direct path to the stage was opened. There were first performers in the style of "spirituals". And since the true art is never monotonous, then parallel directions began to develop: "soul", "swing", "boogie woogie" and others. The meaning of the word "blues" became multivariate, new varieties appeared. New colorful music spread across America, gaining hundreds of thousands of fans. After a while, the blues split into two categories - the deltas of the Mississippi and the Chicago Delta. One style assumed a guitar accompaniment, the other preferred the accompaniment of labial harmonics. Musical instruments organically complemented the song vocals. The orchestra involved percussion instruments, double bass and trombones. Direction "soul" Blues style "soul" (Soul) necessarily includes a group of wind instruments. For the most part, these are pipes or saxophones. As the most vivid example of the performance of Soul, you can bring Wilson Pickett's song "She's Lookin 'Good", in which the dialogue between the two guitars is complemented by synchronous tricks of the four pipes. Singers Soul, the most popular Aretha Fracklin and Anna King, do not allow themselves multilayer instrumental accompaniment. Franklin has the same four pipes and backing vocals, and Anna King has a double crescendo in the middle of the composition. It's about the classic blues - "Night Time Is The Right Time" - in both cases. Black slaves went to church on Sundays, it was a mandatory ritual. And since the church services became a part of the life of the "Negro working people", then there was music without it. There was "gospel", an interesting direction in the blues. Gospel songs are church songs, mostly Christmas songs . They could be in choral performance or solo. Classical gospel is the Christmas song "Silent Night, Holy Night" ("Silent Night, Holy Night"). But back to the black founders of the blues. In addition to working on plantations and Sunday visits to the church, people wanted to relax, have fun, and dance. Against the background of these simple human desires one more direction of blues was born - boogie-woogie. The style is super-majeur, very expressive, and most importantly - ideal for dancing. Boogie Woogie was based on the repetition of six musical phrases of different layouts, but they were played in a strictly defined order. Thus, the boogie-woogie formula was created. Blues - the best way to have fun, and the best instrument for his performance was immediately recognized as a piano, it worked well on a jazz six-string guitar. The impact instruments were also in place. The contrabass seamlessly supplemented the entire musical picture. By the middle of the twentieth century, the main performers of the blues were defined . They were singers and guitarists from among the black population. The peculiar syncopated rhythm of blues compositions required natural talent - it was impossible to learn. Meanwhile, they did not even try to teach, nuggets in music, especially in folklore, have always been plenty. The blues of talented performers were immediately noticed by the ubiquitous impresario, offered contracts, and thus art developed. Blues - it's "sadness in the soul," if you use the exact translation from English. Melodies and the truth sound sad and melancholy. But there are also blues compositions in the style of "rhythm and blues," which means "funny rhythms in the shower," and they sound joyful and serene. The variety of the genre is impressive. The blues are also swing, which means "escaping, fleeing. " Swinging melodies can be listened to without end, they never get bored. Only experienced musicians can perform them. Following the classic blues in the early 50-ies of the twentieth century appeared the style of rockabilly, that particular kind of rock and roll that no longer corresponded to the "black" canons. However, the origin of the new genre did not cause doubts - the source was blues. Rockabilly played and sang mostly white, the most notable performer of this genre is Wanda Jackson, a young singer, protégé of the King of Rock and Roll Elvis Presley. Vanda's voice was characterized by musical critics as "emery", in another way, perhaps, you will not say. And the singer's popularity is still high. She takes first place in any musical rating. In the stagnant Soviet times, the blues seeped into the USSR with difficulty. Any Western music was banned. Domestic Russian musicians tried to depict blues compositions on their instruments, but the results were more than doubtful. This is understandable: if the culture is alien to the Soviet mentality - how do you play? However, gradually young performers in the post-Soviet space managed to grasp the most important nuances of the blues, and many instrumental ensembles began performing black music. Songs such as "Autumn Blues", "Night Blues" and the like sounded. Soviet execution and did not close to the original, and in some cases was the purest water profanity. How else? After all, for example, Ray Charles, the blues singer, it would never have occurred to perform the Russian folk song "In the garden, in the garden. " There is a good proverb for all occasions: "Do not go to your sledge - do not sit down. " Nevertheless, if the "Autumn Blues" performed by Russian musicians bring joy to someone , it means that it can and should be performed. And the skill will follow. A whole layer of North American music culture is blues. Songs, ballads, Christmas and Thanksgiving. Blues, sad and reckless, youthful and foolish, and old-fashioned thoughtful. Blues is music in the most grandiose sense of the word.
english
<div class="WordSection1"> <p class="RegularParagraphs"><b> §21-4 Adoption of rules.</b> Each investigating committee shall adopt rules, not inconsistent with law or any applicable rules of the legislature, governing its procedures, including the conduct of hearings. [L 1969, c 211, pt of §1]</p> <p class="RegularParagraphs"></p> </div>
html
AAI Cargo Logistic & Allied Services Company Ltd. (AAICLAS) is inviting applications from eligible candidates for 103 vacant posts in various stations / locations. Apply Now! AAI Cargo Logistic & Allied Services Company Ltd. (AAICLAS) is inviting applications from eligible candidates for 103 vacant posts in various stations / locations. Interested candidates can apply before the last date. Check more details on AAICLAS job vacancy 2021. Applications are invited for engagement/empanelment of following manpower purely on fixed term contract basis for deployment in our client's unit i. e. AAI Cargo Logistic & Allied Services Company Ltd. Desirous candidates can check all the job details of no of posts, age limit, salary, qualification, etc prescribed below: 07. 10. 2021. Educational Qualification and Eligibility Criteria for AAICLAS Job Vacancy: How To Apply for AAICLAS Job Openings: - Candidates are required to apply online through website www. becil. com or https://becilregistration. com only. Last date for submission of application forms is 07. 10. 2021. - Candidates are required to apply online through website www. becil. com or https://becilregistration. com only. No other means/mode of application will be accepted. (Before applying for registration candidates are advised to have their Photo, Signature, Birth Certificate/10th Certificate, Caste Certificate scanned images for upload the file size should be not more than 100kb. ) If you want to apply for more than one post against the same advertisement, you need to register once only. - The fee chargeable will vary according to the number of posts applied for. - Candidates are required to go to the website of BECIL i. e. www. becil. com or https://becilregistration. com and click on the link "Career". - Candidates are required to follow below process for registration. - Registration to be completed in 7 steps: Step 6: Payment Online Mode (via credit card, Debit card, net banking, UPI etc. ) Step 7: Email your scanned documents to the Email Id mentioned in the last page of application form. - Candidates will have to upload scanned copy of passport color photo, signature scan copy, size of these scanned copies should be within 100 kb and in jpg/. pdf files only. - Only online payment of registration & application processing fees (non-refundable) is applicable. There will not be any other mode of payment of registration & application processing fee. Demand Drafts, Cheques, Money Orders, Postal Orders, Pay Orders, Banker's Cheque, postal stamps etc. , will not be accepted, towards registration & application processing fee. Category-wise registration & application processing is given below: General - Rs. 750/- (Rs. 500/- extra for every additional post applied) OBC - Rs. 750/-(Rs. 500/- extra for every additional post applied) SC/ST - Rs. 450/-(Rs. 300/- extra for every additional post applied) Ex-Serviceman - Rs. 750/-(Rs. 500/- extra for every additional post applied) Women - Rs. 750/-(Rs. 500/- extra for every additional post applied) EWS/PH - Rs. 450/-(Rs. 300/- extra for every additional post applied) Note: The GST and Bank charges will be borne by the candidates. - BECIL will not be responsible for any network problems in submission of online application. - Candidates are advised to fill the post judiciously as per the advertisement released by BECIL. - All the communications be made either on registered e. mail or registered mobile number. - complaint with local authorities be made, on the desecration of BECIL. - No candidate shall make any communication with our client. - Candidates are requested to enter the details in the online application format carefully. Before final submission of application, there will be a preview available to the candidates in case of modification required. - After submission of the application, no modification will be permitted and fees once paid will not be refunded. Selection Procedure for AAICLAS Job Vacancy: - The selection of the candidates will be based on the interview. - Selection/engagement will be made as per the prescribed norms and requirement of the job. - No TA/DA will be paid for attending the test/ written exam/ document verification-interaction/ joining the duty on selection etc. Uniform/Shoes/ESI benefit/PF etc. as per rules to be applicable after engagement, if any. - Application must be submitted ONLINE only for the above contractual positions. Disclaimer: Provided by AAI Cargo Logistic & Allied Services Company Ltd. (AAICLAS), regarding any kind of delay, application misplaced, etc.
english
/* Q Light Controller Plus waves.js Copyright (c) <NAME> 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.txt 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. */ // Development tool access var testAlgo; ( function() { var algo = new Object; algo.apiVersion = 2; algo.name = "Waves"; algo.author = "<NAME>"; algo.properties = new Array(); algo.taillength = 50; algo.properties.push("name:taillength|type:range|display:Tail Length %|values:0,100|write:setTail|read:getTail"); algo.tailfade = 1; algo.properties.push("name:tailfade|type:list|display:Fade Tail|values:No,Yes|write:setFade|read:getFade"); algo.direction = 0; algo.properties.push("name:direction|type:list|display:Direction|values:Right,Left,In,Out|write:setDirection|read:getDirection"); algo.orientation = 0; algo.properties.push("name:orientation|type:list|display:Orientation|values:Horizontal,Vertical|write:setOrientation|read:getOrientation"); algo.setTail = function(_tail) { algo.taillength = _tail; util.initialize(); }; algo.getTail = function() { return algo.taillength; }; algo.setFade = function(_fade) { if (_fade === "Yes") { algo.tailfade = 1; } else if (_fade === "No") { algo.tailfade = 0; } }; algo.getFade = function() { if (algo.tailfade === 0) { return "No"; } else if (algo.tailfade === 1) { return "Yes"; } }; algo.setDirection = function(_direction) { if (_direction === "Right") { algo.direction = 0; } else if (_direction === "Left") { algo.direction = 1; } else if (_direction === "In") { algo.direction = 2; } else if (_direction === "Out") { algo.direction = 3; } }; algo.getDirection = function() { if (algo.direction === 0) { return "Right"; } else if (algo.direction === 1) { return "Left"; } else if (algo.direction === 2) { return "In"; } else if (algo.direction === 3) { return "Out"; } }; algo.setOrientation = function(_orientation) { if (_orientation === "Vertical") { algo.orientation = 1; } else if (_orientation === "Horizontal") { algo.orientation = 0; } }; algo.getOrientation = function() { if (algo.orientation === 1) { return "Vertical"; } else if (algo.orientation === 0) { return "Horizontal"; } }; var util = new Object; util.initialized = false; util.initialize = function() { // fixed size fade array util.fadeSteps = 100; var _step = (1 / util.fadeSteps); util.fadeObject = new Array(util.fadeSteps); util.fadeObject[0] = 1; for (var f = 1; f < util.fadeSteps; f++) { util.fadeObject[f] = (_step * (util.fadeSteps - f)); } util.initialized = true; }; algo.rgbMap = function(width, height, rgb, step) { if (util.initialized === false) { util.initialize(); } var span = ((algo.orientation === 0) ? width : height); var center = Math.floor((span + 1) / 2) - 1; var isEven = (span % 2 === 0); var tailSteps = Math.round(span * algo.taillength/100); if (tailSteps === 0) { tailSteps = 1; } var map = new Array(height); for (var y = 0; y < height; y++) { map[y] = new Array(); for (var x = 0; x < width; x++) { var pos = ((algo.orientation === 0) ? x : y); var fill = false; var stepPos = pos; // Create an index of the pixel relative the the direction switch (algo.direction) { case 0: /* Right */ stepPos = pos; break; case 1: /* Left */ stepPos = (span - 1 - pos); break; case 2: /* In */ if (pos <= center) { stepPos = pos; } else { stepPos = (span - 1 - pos); } break; case 3: /* Out */ if (pos <= center) { stepPos = (center - pos); } else { stepPos = (pos - center - (isEven ? 1 : 0)); } break; } // Decide whether or not to fill the pixel switch (algo.direction) { case 0: // Right - no break case 1: // Left fill = ((stepPos <= step) && (stepPos > (step - tailSteps))); break; case 2: // In - no break case 3: // Out if (stepPos <= center) { fill = ((stepPos <= step) && (stepPos > (step - tailSteps))); } else { fill = (((span - 1- stepPos) <= step) && ((span - 1 - stepPos) > (step - tailSteps))); } break; } // Determine the fade for this pixel var thisRgb = rgb; if (fill && (algo.tailfade === 1)) { var thisTailStep = Math.round(util.fadeSteps * (step - stepPos) / tailSteps); var r = Math.round(((rgb >> 16) & 0x00FF) * util.fadeObject[thisTailStep]); var g = Math.round(((rgb >> 8) & 0x00FF) * util.fadeObject[thisTailStep]); var b = Math.round((rgb & 0x00FF) * util.fadeObject[thisTailStep]); thisRgb = (r << 16) + (g << 8) + b; } // Populate the matrix map[y][x] = (fill ? thisRgb : 0); map[y][x] = (fill ? thisRgb : 0); } } return map; }; algo.rgbMapStepCount = function(width, height) { var span = parseInt((algo.orientation === 0) ? width : height); var isEven = (span % 2 === 0); var tailSteps = Math.round(span * algo.taillength/100); if (tailSteps === 0) { tailSteps = 1; } var mult = (1 + (algo.taillength/100)); if ((algo.direction === 0) || (algo.direction === 1)) { return (span + tailSteps - (isEven ? 0 : 1)); } else if ((algo.direction === 2) || (algo.direction === 3)) { return Math.round(Math.floor((span + 1) / 2) + tailSteps - 1); } }; // Development tool access testAlgo = algo; return algo; } )();
javascript
# Copyright (c) 2015 Uber Technologies, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import subprocess import textwrap from mock import MagicMock, patch, ANY import json import os import psutil import pytest from tornado import gen from tchannel import TChannel, Request, Response, schemes, errors, thrift from tchannel.errors import AlreadyListeningError, TimeoutError from tchannel.event import EventHook from tchannel.response import TransportHeaders # TODO - need integration tests for timeout and retries, use testing.vcr @pytest.mark.call def test_should_have_default_schemes(): tchannel = TChannel(name='test') for f in schemes.DEFAULT_SCHEMES: scheme = getattr(tchannel, f.NAME) assert scheme, "default scheme not found" assert isinstance(scheme, f) @pytest.mark.gen_test @pytest.mark.call def test_call_should_get_response(): # Given this test server: server = TChannel(name='server') @server.register(scheme=schemes.RAW) def endpoint(request): assert isinstance(request, Request) assert request.headers == 'req headers' assert request.body == 'req body' return Response('resp body', 'resp headers') server.listen() # Make a call: tchannel = TChannel(name='client') resp = yield tchannel.call( scheme=schemes.RAW, service='server', arg1='endpoint', arg2='req headers', arg3='req body', hostport=server.hostport, ) # verify response assert isinstance(resp, Response) assert resp.headers == 'resp headers' assert resp.body == 'resp body' # verify response transport headers assert isinstance(resp.transport, TransportHeaders) assert resp.transport.scheme == schemes.RAW assert resp.transport.failure_domain is None @pytest.mark.gen_test @pytest.mark.call def test_timeout_should_raise_timeout_error(): # Given this test server: server = TChannel(name='server') @server.register(scheme=schemes.RAW) @gen.coroutine def endpoint(request): yield gen.sleep(0.05) raise gen.Return('hello') server.listen() # Make a call: tchannel = TChannel(name='client') # timeout is less than server, should timeout with pytest.raises(TimeoutError): yield tchannel.call( scheme=schemes.RAW, service='server', arg1='endpoint', hostport=server.hostport, timeout=0.02, ) # timeout is more than server, should not timeout yield tchannel.raw( service='server', endpoint='endpoint', hostport=server.hostport, timeout=0.1, ) def test_uninitialized_tchannel_is_fork_safe(): """TChannel('foo') should not schedule any work on the io loop.""" process = psutil.Popen( [ 'python', '-c', textwrap.dedent( """ import os from tchannel import TChannel t = TChannel("app") os.fork() t.listen() """ ), ], stderr=subprocess.PIPE, ) try: stderr = process.stderr.read() ret = process.wait() assert ret == 0 and not stderr, stderr finally: if process.is_running(): process.kill() @pytest.mark.gen_test @pytest.mark.call def test_headers_and_body_should_be_optional(): # Given this test server: server = TChannel(name='server') @server.register(scheme=schemes.RAW) def endpoint(request): # assert request.headers is None # TODO uncomment # assert request.body is None # TODO uncomment pass server.listen() # Make a call: tchannel = TChannel(name='client') resp = yield tchannel.call( scheme=schemes.RAW, service='server', arg1='endpoint', hostport=server.hostport, ) # verify response assert isinstance(resp, Response) assert resp.headers == '' # TODO should be None to match server assert resp.body == '' # TODO should be None to match server @pytest.mark.gen_test @pytest.mark.call def test_endpoint_can_return_just_body(): # Given this test server: server = TChannel(name='server') @server.register(scheme=schemes.RAW) def endpoint(request): return 'resp body' server.listen() # Make a call: tchannel = TChannel(name='client') resp = yield tchannel.call( scheme=schemes.RAW, service='server', arg1='endpoint', hostport=server.hostport, ) # verify response assert isinstance(resp, Response) assert resp.headers == '' # TODO should be is None to match server assert resp.body == 'resp body' # TODO - verify register programmatic use cases @pytest.mark.gen_test @pytest.mark.call def test_endpoint_can_be_called_as_a_pure_func(): # Given this test server: server = TChannel(name='server') @server.register(scheme=schemes.RAW) def endpoint(request): assert isinstance(request, Request) assert request.body == 'req body' assert request.headers == 'req headers' return Response('resp body', headers='resp headers') server.listen() # Able to call over TChannel tchannel = TChannel(name='client') resp = yield tchannel.call( scheme=schemes.RAW, service='server', arg1='endpoint', arg2='req headers', arg3='req body', hostport=server.hostport, ) assert isinstance(resp, Response) assert resp.headers == 'resp headers' assert resp.body == 'resp body' # Able to call as function resp = endpoint(Request('req body', headers='req headers')) assert isinstance(resp, Response) assert resp.headers == 'resp headers' assert resp.body == 'resp body' @pytest.mark.gen_test @pytest.mark.call def test_endpoint_not_found_with_raw_request(): server = TChannel(name='server') server.listen() tchannel = TChannel(name='client') with pytest.raises(errors.BadRequestError) as e: yield tchannel.raw( service='server', hostport=server.hostport, endpoint='foo', ) assert "Endpoint 'foo' is not defined" in e.value @pytest.mark.gen_test @pytest.mark.call def test_endpoint_not_found_with_json_request(): server = TChannel(name='server') server.listen() tchannel = TChannel(name='client') with pytest.raises(errors.BadRequestError) as e: yield tchannel.json( service='server', hostport=server.hostport, endpoint='foo', ) assert "Endpoint 'foo' is not defined" in e.value def test_event_hook_register(): server = TChannel(name='server') mock_hook = MagicMock(spec=EventHook) with ( patch( 'tchannel.event.EventRegistrar.register', autospec=True, ) ) as mock_register: server.hooks.register(mock_hook) mock_register.called @pytest.mark.gen_test def test_advertise_should_take_a_router_file(): host_path = os.path.join( os.path.dirname(os.path.realpath(__file__)), 'data/hosts.json', ) tchannel = TChannel(name='client') with open(host_path, 'r') as json_data: routers = json.load(json_data) with ( patch( 'tchannel.tornado.TChannel.advertise', autospec=True, ) ) as mock_advertise: f = gen.Future() mock_advertise.return_value = f f.set_result(Response()) tchannel.advertise(router_file=host_path) mock_advertise.assert_called_once_with(ANY, routers=routers, name=ANY, timeout=ANY) @pytest.mark.gen_test def test_advertise_should_raise_on_invalid_router_file(): tchannel = TChannel(name='client') with pytest.raises(IOError): yield tchannel.advertise(router_file='?~~lala') with pytest.raises(ValueError): yield tchannel.advertise(routers='lala', router_file='?~~lala') def test_listen_different_ports(): server = TChannel(name='test_server') server.listen() port = int(server.hostport.rsplit(":")[1]) with pytest.raises(AlreadyListeningError): server.listen(port + 1) def test_listen_duplicate_ports(): server = TChannel(name='test_server') server.listen() server.listen() port = int(server.hostport.rsplit(":")[1]) server.listen(port) server.listen() @pytest.mark.gen_test def test_forwarding(tmpdir): from tornado import gen path = tmpdir.join('keyvalue.thrift') path.write(''' exception ItemDoesNotExist { 1: optional string key } service KeyValue { string getItem(1: string key) throws (1: ItemDoesNotExist doesNotExist) } ''') kv = thrift.load(str(path), service='keyvalue') real_server = TChannel(name='real_server') real_server.listen() items = {} @real_server.thrift.register(kv.KeyValue) def getItem(request): assert request.service == 'keyvalue' key = request.body.key if key in items: assert request.headers == {'expect': 'success'} return items[key] else: assert request.headers == {'expect': 'failure'} raise kv.ItemDoesNotExist(key) @real_server.json.register('putItem') def json_put_item(request): assert request.service == 'keyvalue' assert request.timeout == 0.5 key = request.body['key'] value = request.body['value'] items[key] = value return {'success': True} proxy_server = TChannel(name='proxy_server') proxy_server.listen() # The client that the proxy uses to make requests should be a different # TChannel. That's because TChannel treats all peers (incoming and # outgoing) as the same. So, if the server receives a request and then # uses the same channel to make the request, there's a chance that it gets # forwarded back to the peer that originally made the request. # # This is desirable behavior because we do want to treat all Hyperbahn # nodes as equal. proxy_server_client = TChannel( name='proxy-client', known_peers=[real_server.hostport], ) @proxy_server.register(TChannel.FALLBACK) @gen.coroutine def handler(request): response = yield proxy_server_client.call( scheme=request.transport.scheme, service=request.service, arg1=request.endpoint, arg2=request.headers, arg3=request.body, timeout=request.timeout / 2, retry_on=request.transport.retry_flags, retry_limit=0, shard_key=request.transport.shard_key, routing_delegate=request.transport.routing_delegate, ) raise gen.Return(response) client = TChannel(name='client', known_peers=[proxy_server.hostport]) with pytest.raises(kv.ItemDoesNotExist): response = yield client.thrift( kv.KeyValue.getItem('foo'), headers={'expect': 'failure'}, ) json_response = yield client.json('keyvalue', 'putItem', { 'key': 'hello', 'value': 'world', }, timeout=1.0) assert json_response.body == {'success': True} response = yield client.thrift( kv.KeyValue.getItem('hello'), headers={'expect': 'success'}, ) assert response.body == 'world'
python
--- id: 2177 title: Как установить тему и сменить оформление в Windows 7? date: 2011-04-09T12:46:18+00:00 author: serEga layout: page guid: http://artslab.info/?page_id=2177 permalink: /ustanovka_tem_windows7/ prosmotr: - 210 dsq_thread_id: - 1788464538 --- 1. Во-первых необходимо установить этот патч <a href="http://deepxw.blogspot.com/2008/11/universal-theme-patcher.html" rel="nofollow">Universal Theme Patcher</a> и после этого перезагрузить систему. 2. Теперь нужно перенести скачанные файлы темы (***.theme**) в папку C:\Windows\Resources\Themes <center> <a href="{{site.img_cdn}}/ustanovka_tem_dlya_win7.jpg"><img src="{{site.img_cdn}}/ustanovka_tem_dlya_win7-300x184.jpg" alt="как установить тему в win 7" title="ustanovka_tem_dlya_win7" width="300" height="184" class="alignnone size-medium wp-image-1227" srcset="{{site.img_cdn}}/ustanovka_tem_dlya_win7-300x184.jpg 300w, {{site.img_cdn}}/ustanovka_tem_dlya_win7.jpg 780w" sizes="(max-width: 300px) 100vw, 300px" /></a> </center> 3. Тема установлена, осталось только выбрать её. Для этого кликаем правой кнопокой мышки по рабочему столу и выбираем в контекстном меню пункт &#8220;Персонализация&#8221;. <center> <a href="{{site.img_cdn}}/ustanovka_tem_win_7.png"><img src="{{site.img_cdn}}/ustanovka_tem_win_7-251x300.png" alt="Как установить тему для виндовс" title="ustanovka_tem_win_7" width="251" height="300" class="alignnone size-medium wp-image-1228" srcset="{{site.img_cdn}}/ustanovka_tem_win_7-251x300.png 251w, {{site.img_cdn}}/ustanovka_tem_win_7.png 289w" sizes="(max-width: 251px) 100vw, 251px" /></a> </center> В открывшемся окне, пролистав чуть ниже, вы уведите список установленных тем. <center> <a href="{{site.img_cdn}}/ustanovka_tem_dlya_win7_2.jpg"><img src="{{site.img_cdn}}/ustanovka_tem_dlya_win7_2-300x179.jpg" alt="темы для win 7" title="ustanovka_tem_dlya_win7_2" width="300" height="179" class="alignnone size-medium wp-image-1229" srcset="{{site.img_cdn}}/ustanovka_tem_dlya_win7_2-300x179.jpg 300w, {{site.img_cdn}}/ustanovka_tem_dlya_win7_2-1024x613.jpg 1024w, {{site.img_cdn}}/ustanovka_tem_dlya_win7_2.jpg 1044w" sizes="(max-width: 300px) 100vw, 300px" /></a> </center> Выберите из списка новую тему и подтвердите выбор. * * * Сегодняшний спонсор, это городская интернет служба с самыми выгодными [ценами на услуги collocation в москве](http://www.di-net.ru/collocation/colocation/).
markdown
Realising quickly that his decision to cut the pay cheques of the government employees citing Corona crisis as a pretext was boomeranging, Telangana CM KCR has quickly made amends. He has now exempted some services from the pay cut. The employees of the health, medical departments and the police would now be paid full salaries. KCR has realised that his decision to cut the pay did not go well with the people at large and the employees in particular. He also found that the people began questioning his oft-repeated claims that he has created a Bangaru Telangana. If the state's financial position is so strong, why should there be a pay cut, the people began asking Also, neighbouring AP, whose financial position is much worse, has decided to pay the whole salary, al beit in two instalments. In Maharashtra, the Class IV employees were exempted from the pay cut Seeing that the people are comparing his government with the other two governments, KCR has quickly revised the decision. Now, the government would also take a decision on paying incentives to the employees, besides paying their salaries. The employees of these two front line departments would now get full salary.
english
ISLAMABAD: Chief Justice of Pakistan Saqib Nisar said on Friday he wanted to know the National Accountability Bureau’s criteria for accountability, asking if everyone is a thief except for the probe body. The CJP had summoned NAB Chairman Justice (retd) Javed Iqbal in his chambers in relation to a case on the construction of a hospital in the capital. “Is there a standard for the NAB’s investigation process or not?” said the CJP. Justice Nisar said that NAB starts inquiry in every matter, stalling progress in any system. “What if we start issuing warrants of the NAB people and see how it impacts their reputation” said the top judge. Justice Mian Saqib Nisar on Friday, while hearing a case pertaining to the construction of a hospital in the federal capital, censured NAB chairman Justice (retd) Javed Iqbal and summoned him in his chambers. A three-judge bench headed by the chief justice heard a case pertaining to the construction of a hospital in Islamabad. “They initiate an inquiry against anyone who shows up and hurt the dignity of those a single petition is a filed against,” the top judge remarked. There’s a woman in NAB Lahore who is blackmailing people and misusing her authority, Justice Nisar continued. Justice Nisar then summoned the NAB chairman and prosecutor in his chambers.
english
{"id_8428":{"title":"Odysseus","language":"German","totaltime":"07:47:00","url_librivox":"http://librivox.org/odysseus-by-karl-friedrich-becker/","url_iarchive":"http://archive.org/details/odysseus_1404_librivox","readers":["5055"],"authors":"10247","genres":"Classics (Antiquity)"}}
json
{"id":"2bede629-30b5-471b-b4e1-27d377acefe9","name":"St Silas C of E Primary School","code":"2","address":{"addressLine1":"St Silas Road","addressLine2":"Blackburn","postcode":"BB2 6JP"},"organisation":{"id":"cd761c54-aba9-4b6f-a46e-ff357c80f655","code":"1UC","name":"Blackburn Team Alliance"}}
json
After recovering from COVID-19, some people have been experiencing hair fall. Recently, actor Malaika Arora also shared her struggle with hair loss post-recovering from COVID-19. “Besides my immense weakness, I also experienced quite a bit of hair loss. While I have consulted doctors and my vitamins are on, I am going back to a hair care remedy that I have been doing for years. It just needs one ingredient,” she shared. Take a look. Here’s how you can use onion juice. *Grate an onion and squeeze the juice. How to apply? *Divide your hair into sections. With the help of a cotton ball, apply the juice on the scalp. Leave it for 30-45 minutes. Wash with a paraben-free, mild shampoo. “You will see results in about two weeks,” mentioned Arora. How does onion juice help? Onion juice provides extra sulfur to the scalp which helps make the roots stronger. This prevents hair loss and promotes new growth. It is also said that anti-bacterial properties of onion keep scalp infections at bay and keep the hair healthy and strong.
english
‘Mumbai ki Rani’ finally speaks out. Just as the dust seemed to have settled on the controversy surrounding Red FM Radio Jockey Malishka, she released an official video statement (above). She was responding to the heavy brickbats (and praise) she received for her parody roasting Mumbai’s civic authorities over the condition of the roads in the city. In a passionate statement, she talked about her journey so far, linked closely with the monsoon, from her first radio show in 2005 to being branded “Mumbai ki Raani” by her fans. Mumbaikars have loved and supported her for always being candid and speaking her mind, she said, and for actively engaging listeners and the administration to make Mumbai a better place to live in. She emphasised that she often appreciated the work done by the authorities, while also pulling them up when they didn’t. The only difference this time, she said, was that the song went viral, and the situation thus spun out of control. Why did Sonu Song Pothole Mix With Malishka (below), with around 7 million views and counting, go viral? It had touched her listeners in a way nothing had ever before, she believed. “There’s no city better than Mumbai, there are no citizens better than Mumbaikars,” she said, before thanking the city and the country for the support she has received during this entire fiasco.
english
void f(int n) { if(n==0) return; cout<<n<<" "; f(n-1); } //print n to 1 void f(int n) { if(n==0) return; f(n-1); cout<<n<<" "; } //print 1 to n tail recursive - when recursive call comes at end of function. eg above : n to 1 function. eg : quick sort. thats why quick sort is faster than merge sort. convert into tail recursive: void f(int n) { f(n-1); cout<<n; } void f(int n, int k=1) { cout<<n; f(n-1,k+1); }
cpp
Remember Acer's 'Ezel' hinge-toting Aspire R7 Ultrabook that was unveiled back in May? The company has announced that it's been refreshed with Intel's fourth generation Haswell processors (i5 and i7) and now comes with a digitiser for doodling Windows 8 gestures. Acer claims that the bundled "Acer Active Pen" uses electromagnetic induction technology to respond to varying degrees of pressure sensitivity "like an actual pen" to make writing feel more natural. The new model, which will sport the version number R7572, will also ship with Windows 8.1 installed out of the box. It can be fitted with up to 12GB of memory, up to a 1TB hard drive (or 256GB SSD) and features a full-sized backlit chiclet keyboard. Acer has kept the trackpad above the board, which we thought was something of a revolutionary move when we put the machine through its paces back in May. The new model is set to roll out to European shores before the end of the year at €999 (around £1185). The Taiwanese computer maker has also announced an upgrade to its Aspire E1 notebook series, which can now be fitted with a 10-point multi-touch display. It's available in 15.6-inch and 14-inch variations, and the larger model can be equipped with an Nvidia GT720M, GT740M or an AMD Radeon HD 8000M discrete graphics card. Its smaller cousin is available with an Nvidia GT720M graphics card, and both models let you blow up the screen's contents using an onboard HDMI port. The updated Aspire E1 will be available from mid October for around €399 (around £338). Sign up to the TechRadar Pro newsletter to get all the top news, opinion, features and guidance your business needs to succeed!
english
{"nft":{"id":"1935","name":"PixelFreak #01935","description":"They call us ugly, and misfits, but we prefer to call ourselves freaks","image":"ipfs://QmRq33BqZoAXk2JEbtjyBADbz3HhncWacjYBTQss7dJJ6m","attributes":[{"trait_type":"pet","value":"None"},{"trait_type":"body","value":"Naked D"},{"trait_type":"eyes","value":"Confused"},{"trait_type":"head","value":"Aro"},{"trait_type":"nose","value":"Nasum"},{"trait_type":"extra","value":"Zaleplon"},{"trait_type":"mouth","value":"Talkie"},{"trait_type":"background","value":"RandomColor"},{"trait_type":"Trait Count","value":"8"}]},"attributeRarities":[{"trait_type":"pet","value":"None","count":9511,"ratio":0.9511,"ratioScore":1.0514141520344864},{"trait_type":"body","value":"Naked D","count":201,"ratio":0.0201,"ratioScore":49.75124378109453},{"trait_type":"eyes","value":"Confused","count":310,"ratio":0.031,"ratioScore":32.25806451612903},{"trait_type":"head","value":"Aro","count":772,"ratio":0.0772,"ratioScore":12.953367875647668},{"trait_type":"nose","value":"Nasum","count":1067,"ratio":0.1067,"ratioScore":9.37207122774133},{"trait_type":"extra","value":"Zaleplon","count":414,"ratio":0.0414,"ratioScore":24.154589371980677},{"trait_type":"mouth","value":"Talkie","count":459,"ratio":0.0459,"ratioScore":21.78649237472767},{"trait_type":"background","value":"RandomColor","count":9595,"ratio":0.9595,"ratioScore":1.0422094841063054},{"trait_type":"Trait Count","value":"8","count":10000,"ratio":1,"ratioScore":1}],"rarityScore":153.3694527834617,"rank":7865}
json
.minimap-crop-frame { position: absolute; border: 2px solid gold; z-index: 100; box-sizing: border-box; -moz-box-sizing: border-box; cursor: pointer; }
css
You Searched For "AmazonPrime" It is expected that Gold will find an apt audience on the mini screens. Priyamani played the leading role in this film. Kantara fame Kishore will be seen in the role of an investigation officer. ‘Kantara’ released in Kannada on 30 September and was a blockbuster. Soon, it was dubbed in all languages and was released in October.
english
Jaman (Dɔysh, we dɛn kin kɔl [dɔʏtʃ] (lisin)), ɔ fɔ tɔk mɔ bɔt Ay Jaman, na Wɛst Jaman langwej we dɛn kin tɔk mɔ na Wɛstin Yurop ɛn Sɛntral Yurop. Na di langwej we bɔku pipul dɛn de tɔk ɛn ɔfishal ɔ kɔ-ɔfishal langwej na Jamani, Ɔstria, Swizaland, Lichtenstein, ɛn di Itali provins we nem Sawt Tayrol. Na kɔ-ɔfishal langwej bak na Laksambɔg ɛn Bɛljiɔm, ɛn na nashɔnal langwej we dɛn no na Namibia. Apat frɔm Jamani, na Jamani kɔmyuniti dɛn bak na Frans (Bas-Rhin), Chɛk Ripɔblik (Nɔt Bohemia), Polan (Ɔpa Silesia), Slovakia (Bratislava Rijɔn), ɛn Ɔŋgaria (Sopron). Jaman langwej tan lɛk ɔda langwej dɛn we de insay di Wɛst Jaman langwej branch, lɛk Afrikaans, Dɔch, Inglish, di Frisian langwej dɛn, Lɔ Jaman, Laksambɔg, Skɔt, ɛn Yiddish. I gɛt bak di wɔd dɛn we fiba sɔm langwej dɛn we de na di Nɔt Jaman grup, lɛk Danish, Nɔwe, ɛn Swidish. Jaman na di sɛkɔn Jaman langwej we pipul dɛn de tɔk pas ɔl afta Inglish, we na Wɛst Jaman langwej bak. Jaman na wan pan di men langwej dɛn na di wɔl. Na di langwej we dɛn de tɔk pas ɔlman insay di Yuropian Yuniɔn. Bɔku pipul dɛn de tich Jaman langwej bak as fɔrina langwej, mɔ na kɔntinɛntal Yurop, usay na di tɔd fɔrin langwej we dɛn de tich pas ɔl (afta Inglish ɛn Frɛnch), ɛn Amɛrika. Di langwej dɔn rili ɛp pipul dɛn we gɛt sɛns, tioloji, sayɛns, ɛn tɛknɔlɔji. Na di sɛkɔn langwej we pipul dɛn kin yuz fɔ tɔk bɔt sayɛns ɛn i de pan di langwej dɛn we pipul dɛn kin yuz pas ɔl na wɛbsayt dɛn. Di kɔntri dɛn we de tɔk Jaman de na di nɔmba fayv ples we dɛn de pul nyu buk dɛn ɛvri ia, ɛn wan pat pan tɛn pan ɔl di buk dɛn (inklud di e-buk dɛn) na di wɔl we dɛn de pul insay Jaman. Jaman na langwej we dɛn kin chenj, wit 4 kes fɔ nɔun, pronɔm, ɛn adjektif (nominativ, akusativ, jenitiv, dativ); tri jɛnɛral (man, uman, nyut); ɛn tu nɔmba dɛn (singul, plɛnti). I gɛt strɔng ɛn wik verb dɛn. Bɔku pan in wɔd dɛn kɔmɔt frɔm di ol Jaman branch na di Indo-Yuropian langwej famili, we smɔl pat pan am kɔmɔt frɔm Latin ɛn Grik, wit smɔl wɔd dɛn we dɛn borrow frɔm Frɛnch ɛn Mɔdan Inglish. Jaman na langwej we de tɔk bɔku pipul dɛn; di tri standad we dɛn kin yuz na Jamani, Ɔstrian, ɛn Swis Stɛndad Ay Jaman. I notis bak fɔ in bɔku bɔku langwej dɛn, wit bɔku difrɛn difrɛn langwej dɛn we de na Yurop ɛn ɔda pat dɛn na di wɔl. Sɔm pan dɛn nɔ-standad vayriet ya dɔn bi pipul dɛn we di rijinal ɔ nashɔnal gɔvmɛnt dɛn dɔn no ɛn protɛkt dɛn. Frɔm 2004, di edman dɛm fɔ di kɔntri dɛm we de tɔk Jamani dɔn de mit ɛvri ia[4] ɛn di Kaɔnsil fɔ Jaman Ɔtografi na di men intanashɔnal bɔdi we de rigul Jaman ɔtograf.
english
<reponame>Xuanwo/go-bufferpool package bufferpool import ( "strconv" "time" "unicode/utf8" ) type Buffer struct { bs []byte pool *Pool } // AppendBool will append a bool into buffer. // // true => "true" // false => "false" func (b *Buffer) AppendBool(v bool) { b.bs = strconv.AppendBool(b.bs, v) } // AppendByte will append a byte into buffer. func (b *Buffer) AppendByte(v byte) { b.bs = append(b.bs, v) } // AppendBytes will append an bytes slice into buffer. func (b *Buffer) AppendBytes(v []byte) { b.bs = append(b.bs, v...) } // AppendFloat will append a float64 into buffer. func (b *Buffer) AppendFloat(f float64) { b.bs = strconv.AppendFloat(b.bs, f, 'f', -1, 64) } // AppendInt will append an int64 into buffer. func (b *Buffer) AppendInt(i int64) { b.bs = strconv.AppendInt(b.bs, i, 10) } // AppendString will append a string into buffer. func (b *Buffer) AppendString(s string) { b.bs = append(b.bs, s...) } // AppendTime will append time with input layout. func (b *Buffer) AppendTime(t time.Time, layout string) { b.bs = t.AppendFormat(b.bs, layout) } // AppendUint will append a uint64 into buffer. func (b *Buffer) AppendUint(i uint64) { b.bs = strconv.AppendUint(b.bs, i, 10) } // AppendRune will append a rune into buffer. func (b *Buffer) AppendRune(r rune) { rs := make([]byte, 4) size := utf8.EncodeRune(rs, r) b.bs = append(b.bs, rs[:size]...) } // Bytes will return underlying bytes. func (b *Buffer) Bytes() []byte { return b.bs } // BytesCopy will return copied underlying bytes. func (b *Buffer) BytesCopy() []byte { bs := make([]byte, len(b.bs)) copy(bs, b.bs) return bs } // String will convert underlying bytes to string and return. func (b *Buffer) String() string { return string(b.bs) } // Free will free underlying bytes and put into pool. // // After free, this buffer should not be touched anymore. func (b *Buffer) Free() { b.Reset() b.pool.p.Put(b) } // Reset will reset underlying buffer. func (b *Buffer) Reset() { b.bs = b.bs[:0] } // Write implements io.Writer to support write into buffer. func (b *Buffer) Write(bs []byte) (int, error) { b.bs = append(b.bs, bs...) return len(bs), nil }
go
package mymath import ( "math" "testing" ) func TestSqurt(t *testing.T) { var tests = []struct { num float64 want float64 }{ {1.0, 1.0}, {2.0, 1.4142135}, {3.0, 1.7320508}, {4.0, 2.0}, {5.0, 2.2360679}, } for _, test := range tests { got := Squrt(test.num) if math.Abs(got-test.want) > 0.0000001 { t.Errorf("Squrt(%1.8f) returned %1.8f, want %1.8f", test.num, got, test.want) } } }
go