Actress and comedian Rosie O'Donnell almost lost her life from a heart attack in 2012. Having struggled with weight issues for much of her life, the former The View co-host knew she needed to make a change if she wanted to watch her children and foster children grow up. That's why O'Donnell turned to one of the best in the business for weight loss surgery: Dr. Amit Trivedi of Advanced Laparoscopic Associates.
Dr. Trivedi performed a gastric sleeve procedure on O'Donnell. The gastric sleeve, also known as sleeve gastrectomy or vertical sleeve gastrectomy, has overtaken the gastric bypass procedure as the most popular weight loss surgery in the U.S.
The sleeve gastrectomy is a laparoscopic procedure, which means that the incisions and tools used are very small, and the surgeon sees what he or she is doing with the aid of a camera called a laparoscope attached to a video monitor.
First, the stomach is smaller, so it holds less food. This means the patient typically consumes fewer calories, leading to weight loss.
Second, the portion of the stomach that is removed contains most of the cells that produce a hormone called ghrelin. Ghrelin signals to your brain that you're hungry, so with the majority of the ghrelin-producing cells gone, the brain receives far fewer hunger signals.
"Without those hunger hormones, you don't get those cravings, you don't go looking for that large popcorn, and it makes diet and exercise work without a struggle," Dr. Trivedi told Dr. Mehmet Oz when he and O'Donnell appeared on The Dr. Oz Show in 2015.
Weight loss typically occurs quickly and lasts for years, according to the American Society for Metabolic and Bariatric Surgery. The procedure is minimally invasive, so recovery times are usually short. Combined with diet and exercise, a sleeve gastrectomy is an excellent solution for long-term weight loss and health enhancement. "It's not a magic pill at all; it's a tool that will help you," O'Donnell said to Dr. Oz.
If you are interested in a bariatric surgery procedure with surgeon-to-the-stars Dr. Trivedi or any of the equally talented surgical team at Advanced Laparoscopic Associates, sign up for our next free informational seminar. You'll learn how bariatric surgery can help you live your healthiest life.


text:
Q: How I can I Substring XAttribute Value from LINQ I have some ugly xml(if I could change I would) coming to me that I need to be able to process. I wanted to group by a specific attribute in the XML for further processing.  The problem is that some of the attributes have a type="A" and some have type="A1", type="A2", etc.  I want all of the elements that have an attribute type value that starts with "A" be grouped together.
This is not working and I don't know what to change to get it to work:
    var result = from ele in xdoc.Descendants(Namespace + "item")
                 let item= ele.Attribute("type").Value.Substring(1,1)
                 group ele by item into grp
                 select grp;

When I take off the substring it works fine, but obviously doesn't group how I want.
Error:
Error has been thrown by the target of an invocation

Example XML:
<items>
 <item type="A" position="0">
   <itemvalue>10</itemvalue>
 </item>
  <item type="A1" position="1">
    <itemvalue>20</itemvalue>
 </item>
  <item type="A2" position="2">
    <itemvalue>30</itemvalue>
 </item>
  <item type="B" position="0">
    <itemvalue>10</itemvalue>
  </item>
   <item type="B1" position="1">
     <itemvalue>20</itemvalue>
  </item>
   <item type="B2" position="2">
     <itemvalue>30</itemvalue>
 </item>
</items>

A: Without a compiler at my disposal and typing this on my mobile I would say that you should pass 0 as the first argument to Substring, i.e. Substring(0,1).

redpajama_set_name: RedPajamaStackExchange


Anya walked through Krestlin's grand hallway, descending down its wide ornate staircase to the palace's main floor. As she walked purposefully, she was not greeted as usual by any of the staff. Anya was unaware of her appearance or unconcerned, but all who noticed her, all who passed by her were shocked, by what they had seen. The normally gregarious and friendly young woman, who was always immaculately adorned, and who knew by name, most of the staff, whom she would without fail greet, even at times, converse with any who would engage her, seemed, like a stranger, as she passed by. Anya's eyes darkly circled, remained downcast as she walked. Her face was unusually pale, as were her lips, and she wore a cloak under which she tried to conceal herself. She looked as if she hadn't slept in days and the clothes she wore were disheveled and wrinkled. Her beautiful hair looked unkempt, or at least, it looked as if an attempt had been made to brush it flat with a hand. But Anya didn't know or at this moment she did not care. She had contacted Yutiro and asked him to meet her at the Palace library and that was her only concern.
Anya had hung on to the words of her father as if, her life depended on them. The Akadians had suspected that Wilhelm was trying to reach Knome, to be with her. Those words were like nourishment to her soul, and although her father dismissed it, to Anya it was everything. Wilhelm must have revealed the relationship he had had, with her, otherwise, why would they suspect that he had secured passage on the Corbellis for Knome to see her. These cyclical thoughts occupied her mind, she had to know.
She tried to contact May, but her access to anyone outside of Knome had been curtailed. Security reasons was the excuse she had been given by her father. She doubted that, she remembered the look on his face after he revealed the news that Wilhelm was missing. She sensed that he wanted to take back those words. He didn't want to discuss the subject further, and dismissed all her questions. She knew there was a reason for that. Had Wilhelm boarded the Corbellis, if so he would have been onboard at the same time she was a passenger. Were they that close? Anya's heart sank at the thought. Was he still missing, she wondered, and what did that mean. Had he somehow made it to Knome and was now trying to reach her. She tried to dismiss her pessimistic thoughts, that it was impossible, that it was a mistake and he had been found. She needed to know.
"I can't go through with it, I can't." she uttered as she passed by a staff member who, turned around thinking she was speaking to him. Her pessimistic thoughts had won out and she paused. She considered going back, returning to her room and facing her fate. If she were to rest her hope on an impossibility that turned out to be impossible, it would break her and she wouldn't survive. The thought of marrying anyone she did not love was repulsive to her. To wed someone she did not know, someone who was an enemy, for political convenience, there were no words to describe the gut reaction she felt. "I can't," she uttered to herself and continued on her way.
Yutiro had been waiting for some time in the Palace library in the Sciences section where he had agreed to meet Anya. The area was secluded and dimly lit. Yutiro was anxious to see her, he had been pulled from her personal staff after arriving back at Knome and had not seen her since, nor had he received a note from her, which had often been the case back in Akadia. Her call to him was strange, at first, he thought that the call was a joke. Anya sounded different, desperate, something he had never before seen in his mistress. The time away had fueled his imagination, he had kissed and married her countless numbers of time. Actually, he allowed himself to indulge in this fantasy because he thought that he would never see her again in any intimate way. And then she called, and he, felt ashamed of his thoughts. He loved her and deeply respected her and it felt indecent to him to even fantasize about her, implying feelings in her that she had not revealed. He tried hard to rid them from his mind.
"Anya?" Yutiro asked more to himself than to the approaching figure.
Yutiro was stunned, he looked around for Anya, unsure the voice came from the approaching person.
He now realized that the person approaching was, Anya. He wondered if she was trying to disguise her identity. But as she got closer to him, he could see that she was not well. He immediately felt concerned for her health.
He grabbed her arms near her shoulders.
"Anya, are you OK?" he asked genuinely concerned.
Still stunned by her appearance he missed her greeting entirely.
"My Lady, you don't look well" He added.
"Well, thank you," Anya replied sarcastically, a littler hurt by his assessment.
Anya's moxie was still present and it pulled Yutiro out of his overt concern for her health.
'Oh, my lady, I'm sorry, I didn't mean…" Yutiro tried to explain his comments, but Anya interrupted him with a familiar eye roll.
"Forget it, I don't have much time," she advised.
"I am, sorry," he added, which he meant and if he could have explained, he would have told her that even in her current state, she was the most beautiful woman he had ever seen.
"I need you to contact May for me. To give her a message and I need her reply.
"Can't you contact her?" Yutiro asked perplexed, May, was her personal secretary, surely, she would have access to her.
"Alright, I promise." Yutiro complied, deep concern showing on his face.
Anya paused, taking a deep breath. She looked around the library and walked deeper into the Sciences section where there was even less lighting.
The stunned look on Yutiro's face was confirmation that the secret held.
Anya's explanation crushed the small flickering hope Yutiro had, a hope that he might have a chance to win her love. He agreed that such a union would be impossible, he lived in Akadia and knew the people. Even among the diplomats, with whom he worked, such a union would be looked down on, if not protested. Yet, knowing this, did not raise his hopes. Anya was in love with someone else, deeply in love it seemed.
Yutiro felt sick for the part he played in her distress.
Anya was pleased to see the disgust on Yutiro's face, a feeling she shared. Yutiro was truly disgusted, to force Anya into a marriage, sounded archaic and wrong.
"What are you going to do, my lady," he asked.
"Yutiro, I can't do it. "She replied as her eyes misted.
Yutiro approached her, taking her hand, without a thought to protocol.
Yutiro wanted to help, but he wondered what he could possibly do in such a situation. His princess was powerless to change her circumstances, what could he do?
Joy and hope flooded Anya's eyes as she uttered the words.
Yutiro was moved by Anya's confession. He wished that he would one day know such love.
"Do you really think he would come here," Yutiro asked.
Yutiro paused, not because he hesitated to help her, he was so moved by the passion in Anya's voice, the passion in her demeanor, that he mourned that, that passion was not for him.
Yutiro started to do just that, but before he could leave he felt a tug on his arm. Anya pulled him around and embraced him. Yutiro couldn't help it he embraced her as tightly as she embraced him and for a brief moment, he was lost in her.
"Thank you, Yutiro, Thank you.
Thaingor forest was dense with huge massive trees of many sizes. The undergrowth was thick with nearly impenetrable thickets of brush, vines and foliage that covered the ground like a carpet. The natives who ran ahead of them dashed like rodents between the trees, leaping with each step, avoiding the tangles of vines and brush that seemed to ensnare Teric, Kore, Jasen and William as they tripped and stumbled along, being driven hard by the natives to their rear. The battle behind them was still going on and occasionally a laser bolt would make its way near them blasting into tree, splintering it, causing them all to go to the ground. But as they continued to be pushed deeper into the forest the sounds of the battle diminished as did the light due to the intertwining branches of the trees that acted as a canopy above them. Their pace was so relentless that Teric had no time to think as he nimbly avoided crashing into a tree or stumbling over a vine. The others weren't so fortunate. Wilhelm had fallen a number of times, twice crashing into a tree, but he had no time to consider his injury as a native forcefully stood him up pushing him forward.
Teric tried to look around to see who had his sword. He had let them take it as he entered the forest, figuring that it was better to escape a no-win situation, for one that was undetermined for the time being.Still, he wanted to know exactly where it was, just in case. The natives were warriors, tall and completely composed of muscles, it seemed. They were not clad in unison, but were distinctly mark by their clothing and facial markings. They were as graceful as Teric and his companions were not, as they ran through the trees. They held their weapons in the ready as they soared. The long weapons that they carried were a type of rifle, not an energized weapon, but one archaic to more advanced societies, but, from what Teric had witnessed, they were far deadlier. Crisscrossed around their chest and back were two animal skin belts that had pockets sewn into them which, carried the projectiles they loaded into their weapons. The sound that emitted from the discharge of their weapons was unlike the resonance of a blaster, it cracked, and gave off an almost imperceptible high tone as it pierced the air until it reached its target. One shot from those weapons pierced the armor and brought down the horde of black clad soldiers that stood between Teric, his companions and the forest.
The natives ahead had come to a stop and waited for the rest of the group to reach them. As they did, few words were spoken as a cloth was put over Teric and his companions head which caused Jasen and Kore to resist somewhat until Teric had urged them to submit. After they had been blindfolded they walked for sometime and then Teric sensed that he was being lowered into what felt like a hole in the ground. And then all of a sudden, the bottom dropped as he freefell for what seemed like an eternity. Teric tried desperately to reach out to grab something, anything that he could hold onto to prevent a disaster that he did not want to think about. He began to wonder if he had made a miscalculation. The decent began to slow as he now felt a surface under him which soon turned horizonal breaking his speed as he came to a complete stop. Teric was forcibly lifted to his feet and the blind fold was removed revealing, a large underground cavern filled with more native warriors. Wilhelm, Jasen and Kore were likewise manhandled by the natives as they were all brought together to stand before a group of natives who stepped back as one of their members approached them.
The Native member who approached them had an air about him which elicited a semblance of respect from the others. Teric concluded that he was their leader or commander. Teric quickly looked around but did not see his sword.
"Who are you?" the native asked, "Flyers?" he added.
Teric and Jasen glanced at each other, both of them not knowing how to answer since they did not know what he meant.
"Are you one of them flyers?" he asked demanding an answer in his voice.
After a long uncomfortable silence, the native leader snapped his fingers, prompting several warriors whom Teric recognized to come forward. The three men were carrying the weapons Teric and his companions had handed over. One of the natives dragged over Teric's sword, straining under the weight of it. Teric felt relieved seeing his sword. He had always sensed that it was near, so he never panicked when it was out of his sight. The native leader took the sword from his subordinate with both hands, and held it out as he wrestled with the weight of it, finally letting it drop to the ground.
"This sword belongs to you?" the native leader directed to Teric.
Teric slowly took a step forward and grasped the hilt under the native leader's hands. Then he lifted it up with one hand as a few in the chamber gasped and those closest to him stepped back.
The native leader's eyes widened in amazement.
He turned and began to walk away. The natives standing behind Jasen, Wilhelm and Kore, began to push them forward to get them walking. No one pushed Teric however, instead a native stood in front of him and gestured for him to follow.
Above ground, Thaingor forest and the nearby plains were littered with thousands of black cladded soldiers combing through the forest searching for the infiltrators and the natives who rescued them. The battle with the natives had abruptly ended when thousands of reinforcement troops had arrived. The natives quickly retreated deeper into to the forest pursued by the newly arrived soldiers, they disappeared into well hidden entrances to their underground lairs.
Hovering above the forest, reconnaissance ships were being employed in the search effort, scanning and imaging the surface for clues. Command positions had been set up at the forest's edge. Two soldiers approached the command post and were allowed in to the structure, met by two officers, they were escorted to the Operations Commander Izkan Doomaz.
"Sir, we searched the probable range, multiple times and were unable to track the targets to their escape route," the ranking soldier replied.
"Sargent, are you telling me they just disappeared," Izkan asked as he approached the soldier.
"The current range is already larger than anyone could cover on foot, Sir. We believe that they entered some hidden aperture within the current range." The ranking soldier replied.
"Of course." Izkan offered. "And our reconnaissance findings?" he asked.
Izkan walked around the soldiers several times as he considered his options.
"Sir?" one of the officer uttered surprised by the discussion.
"Call it off," Izkan added with finality. "That will be all!
The soldiers turn and walked away out of the command post as the officers remained.
"What now sir," one to the officers asked.


text:
Comment: Red Tractor must make sure its new standards work practically for growers
By Chloe Ryan August 9, 2021 3 Mins Read
By Aimee Mahony, NFU chief poultry advisor
The recent review of Red Tractor standards has been a hot topic of conversation for everyone in agriculture and following a lengthy consultation, scheme members will shortly be receiving version five of the standards which they will be assessed against from the 1 November 2021.
I'm always mindful that for most of our poultry meat members being accredited by Red Tractor is essentially a pre-requisite for getting their product into the market, so making sure the new standards are as practical and fit-for-purpose as possible is key.
NFU poultry board members who sit as representatives on the Red Tractor Technical Advisory Committee or Red Tractor poultry board have been involved in the standards review throughout the process and the NFU provided a comprehensive response to the consultation. I'm pleased that we've seen movement on a number of our suggestions, particularly clarification around how some of the requirements will be assessed, as I believe this will be beneficial for producers when it comes to meeting the standards.
For example, following member feedback we supported the strengthening of standards for Mycoplasma testing for breeder layers, the need for a heat stress policy to be implemented on farm and further alignment of the chicken standards for hatchery eggs with turkeys and ducks.
However, there will always be areas where there has to be compromise and despite NFU representation resisting the change, Red Tractor are upgrading the recommendation to have 3% windows to a full standard, making it a requirement for all broiler, poussin and free-range units by October 2023.
We strongly feel that Red Tractor needs to work very closely with growers on this area and understand how this works practically and viably for a business. For example, if you were planning to knock down your poultry shed in 2025 which currently has 1% windows and either replace it or stop producing chicken, it simply does not make business sense to put 3% windows in by 2023. We have indications that Red Tractor will be mindful to these sorts of challenges on a case-by-case basis and we continue to work with them to help communicate key messages to the poultry sector.
Speaking of challenges, we know that many of our members are currently affected by labour shortages. Whilst it may not be something you are directly experiencing on farm, a lack of workers throughout the supply chain is having a wide impact and we are working closely with government to highlight the issues being faced and ultimately working towards practical solutions for the businesses affected.
The recent announcement that some food workers can apply for exemptions for isolation was positive, particularly for those in processing and packing, but it's disappointing that the scheme doesn't cover the entire food chain and that farm businesses will miss out. We continue to raise the issues that labour shortages present to the sector and why it's important the whole food supply chain is covered in future announcements.
Previous ArticleComment: Rocketing fuel costs are pushing us towards solar
Next Article UK to declare AI-free status on 3 September
Comment: Falling into an avian flu protection zone is a constant worry
Comment: We are under attack on all fronts
Comment: Poultry producers are under acute pressure

redpajama_set_name: RedPajamaCommonCrawl


text:
Ep 99 – Party Like it's Series #9
Written by veritypodcast
It's always a party when we have all six Verities in the house! Join Deb, Erika, Katrina, Liz, Lynne, and Tansy as we squee and muse and generally chat about series 9. It's tons of fun and less chaotic than you might expect. And as always, we veer into thinky territory as we discuss whether this season really is the most feminist of new Who (or whether it's really feminist at all). There's lots to cover, and we enjoy the heck out of covering it.
What did you think of series 9? Where do you weigh in on the question of this series' feminism? What do you think of Clara's arc? The hybrid (or lack thereof)? Let us know in the comments!
And don't forget to enter our Big Finish giveaway!
^E
Download or listen now (runtime 1:27:50) http://traffic.libsyn.com/veritypodcast/verityep99.mp3
Ep 98 – Hell Bent out of Shape
Verity! Big Finish Giveaway!
Comments on: "Ep 99 – Party Like it's Series #9" (9)
Aussie Kat said:
This series was wonderful. They raised the bar, which I think was partially allowed by the later timeslot. I can't pick one favourite. And yes I even like Sleep No More.
I wonder if all the things, like female writers etc, was because of the change of time. Perhaps there are different bigwigs overseeing the evening timeslots in the BBC's bureaucracy. Or perhaps Stephen Moffat thought he might be leaving and burned though some internal political bridges to push his hiring choices through the many layers of bureaucracy.
The idea Deb raised of "Class" writers making it to "Dr Who" anytime soon was funny, in a sweet way. Deb, that's like saying someone who has only written an ep of "Power Rangers" can jump over everyone else in line to write for "The Good Wife".
Lyn, I agree completely -a good story with interesting characters who happen to have an assortment of genders is more important to me than pushing any agenda. (Except perhaps the 3 years minimum between River Song appearances agenda)
James said:
It's not intended or written for a later time slot. It's ended up shown later than Steven Moffat (and most Doctor Who fans) would prefer because of the scheduling of BBC and ITV celebrity/reality shows.
Julia (@mizzelle) said:
I use the Android version of the Big Finish app. You can view all your purchases and download/listen to them from your phone/tablet. What is irksome is when you exit from the app, it still keeps playing and there's no way to turn it off without a force stop. I do wish you could download partials, especially with the massive box sets. Otherwise they take up a LOT of space.
Sherry said:
One of my favorite Verity episodes. Thanks to all of you. It's super hard to decide on a favorite series 9 episode, but I recall being the most affected by The Woman Who Lived because of the emotional impact in some of the scenes combined with the humor of the highway man all mixed in with the interplay between the Doctor and Me.
Neil Ottenstein said:
Another nice episode with a full Lambert of Verities present. It's been a good year.
Re. Series Nine and Feminism – I agree with this podcast's assessment that this is probably the "most feminist" series of the show, in terms of representation and thematic content, and in a wonderfully explicit way in many cases. It's still very much a "Good work, now don't take your foot of the gas and maybe even do better next time" kind of thing (it really is a shame that we're celebrating having 2 female writers and 2 female directors as a high water mark, for example), but that's the case with pretty much all the stuff we call progressive media. And it really does deserve credit for the extent to which it has pushed the boat out – Rachel Talalay, Hettie MacDonald, Sarah Dollard, and Catherine Treganna were all so worth it, and it's been great to see such a diverse range of interesting female characters.
And from the thematic perspective, it has been great to see feminist themes (or just well handled and unusual gender politics) crop up repeatedly:
"I had a duty of care" – the ongoing critique of the Doctor's paternalism, which comes to a head in "Hell Bent".
Multiple female led science crews/ rescue crews/ military organisations, and from an intersectional perspective, a general push for more diversity in front of the camera.
The subtle awareness of how Ashildr would experience those 800 years of history in "The Woman Who Lived – losing children to the plague and not wanting any more, not wanting to be burnt at the stake, posing as a man at the battle of Agincourt (that's the battle, right?).
Clara, Ashildr, and Osgood's arcs each critique and subvert the "Woman in the Refrigerator" trope in their own way.
The subtle commentary through Anahson's character (the daughter from "Face the Raven"): she prefers to present as male for her own safety.
An even more explicit insistence that yes, gender changing regenerations can happen, as well as further retorts to the arguments that the Doctor can't be a woman.
A critique of the removal of Donna's agency in her departure.
"Clara Who?" – Clara gets to become Doctor like, and have her own series of adventures, refuting the idea that she "has to" die for being too like the Doctor, and asserting that she, as do all companions, deserves to be as important to the narrative as he is.
As for my favourite episode? Hell Bent – it brings everything I loved about this season's arc to a glorious head. Although I'm perfectly willing to recognise that Heaven Sent deserves its status as a consensus fan favourite/ instant classic – everything about it is astonishing.
sphinxvictorian said:
I very much enjoyed your podcast of the series 9 wrap up. Particularly interesting was your discussion of the slight increase in female writers and directors of Doctor Who. I actually watch a lot of British TV and I have noticed that more and more show-runners and writers of series, both historical and modern, are female, so I'm wondering if that increase is beginning to show up in Doctor Who. As Liz says, if a female writer is going to be hired to write a Doctor Who ep, she's got to have some experience writing for television. So here are these women coming up, like the ones who wrote the new Poldark series, or the ones who produced and wrote Last Tango in Halifax, etc.
All of that said, my favorite ep of series 9 is definitely Hell Bent. So many bits and pieces thrown together, so much female agency, so much excellent acting on all fronts. Just a little bit of heaven on my TV!
As to Peter Capaldi's performance, he just goes from strength to strength. He is a phenomenal actor, and his subtlety has been such a difference from the other doctors. I would say that he and Eccleston have been the best actors of nuWho, while I think that Peter Davison's Doctor was one of the better ones of Classic Who (I'm not prepared to fight over that, but I will hold it strongly!)
Over all, I much prefer series 9 to series 8. Capaldi began to let shine some of the warmth I've seen in some of his other characters (not the guy from the Thick of It!). I compare it rather with the beautiful gangly gorgeousnes of his portrayal of Danny in Local Hero, and his stunning portrayal of the minister in Torchwood's Children of Earth.
And my beautiful wonderful Clara, I am so happy with how her journey has ended/continued. The very human but strong way in which she has taken control of her own destiny makes me absolutely overjoyed. I wish her and Me well as they travel the galaxy, and I do hope they and Jane Austen have a wonderful time together! Jane Austen on the TARDIS! Oh, yeah!!
And thank you for helping to resurrect Stephen Moffat's reputation as a writer who deals well with women, on the whole. I have always been rather incredulous at the accusations leveled at him, when really I have found RTD to be much more hard on women. He was responsible for poor Donna's end, after all. I think that you hit it on the head when one of you said (was it you, Deb?) that really what Moffat is is an unblushing romantic at heart, and so that sometimes can result in a little bit of gender stereotyping, but as you say, also it seems to be sometimes directed at men, as well. As a long time Moffat fan, I can say that even with all the stereotyping that went on in Coupling, there were really very true moments of male/female interaction that superseded any gender nonsense, and went straight to the heart of the emotion brought up by relationships of any kind.
So, my dear Verity ladies, I shall look forward to your Christmas podcast and to enjoying hearing all the other fun things you come up with during the hiatus. Have a wonderful holiday, and to those of you who are also Sherlock fans, enjoy the ShSpesh!!!
mrcoxy said:
Seconded! This is a lovely post.
kelizard said:
As a newish and casual Doctor Who watcher, this is the series that made me a true fan. Matt Smith may always be "my" Doctor (with Ecceleston a very close second), but Capaldi is now pretty firmly etched in my mind as "the" Doctor. He has been simply brilliant throughout the series, bringing a gravitas to the role even in the sillier moments. I agree that this is the most feminist of the series, and the triad of major women characters – Clara, Missy and Me/Ashildr – has been delightful to watch develop as individuals and in their interactions with each other and with the Doctor.
This was also the series that made me a committed Verity! listener. I'm not generally a fan of podcasts, but I really appreciate the insights and humor you all bring to the table. I'm also grateful for the welcoming atmosphere for those of us who haven't watched Classic Who and/or may not be firmly rooted in the history and details of the show. I can often tell when there's an historical context that I'm missing as I watch an episode, and it's always fun and educational when I hear you touch on that context during your discussion. Thanks for everything!


buzzed and bumbled. this vacant parking garage. like sneaking popcorn in a theatre, my feet find section c3. no jangling car keys on this girl. sidewalk stepping, uber conversing, and throwing my converse in the wash. i smile at princess backpacked girls on the metro. i chat with the skateboard crew hitting rails on the block. i navigate buildings and strengthen my memory. on my way to a vegan burger and late night showing of "20th Century Women." in the meantime just a beaded cocktail dress filling the silent cement.


The River Tosca redifines the standard in cruising along the Nile River! For your Egypt adventure, board this exciting new ship and get ready to be amazed! The ship boasts French balconies, hotel-style beds, flat screen televisions, and so much more. Enjoy the lounge with its full-service bar, library and restaurant, or the sun deck with a swimming pool and cabanas! The ship also has a fully-equipped gym!
The River Tosca has many amenities that will make your cruise along the Nile comfortable and enjoyable! The sun deck has a swimming pool lined with cabanas, as well as a rooftop bar! There is a fully-equipped gym, a massage room, and even a cozy library for you to enjoy! There's also wireless Internet in all public areas!
The River Tosca has an elegant restaurant that showcases fine dining, delicious cuisine and impeccable service!
The River Tosca has a beautifully decorated lounge that features a full-service bar for you to enjoy late into the evenings!


Resolve tickets quickly and avoid losing your driver's license.
A traffic ticket can have significant consequences besides fines. These include demerit points on your driving record, higher insurance rates and even having your driver's license suspended. If you're charged with a moving violation we'll fight diligently to eliminate or reduce the ticket.
Our knowledge and experience save you time and money. We go to court for you. We negotiate with the judge. We take care of everything.


The Pro Pitching Institute is changing a coaching climate that's long overdue for an overhaul.
With our programs, you control how quickly you want to turn gravity from a disadvantage into your advantage .
Gravity is only thing stopping each pitch from doing what you expect. For $90 and for the next 12-months, you use Facebook Messenger tools to hold us accountable to resolve your gravity-driven command struggles.
Contact "Skip" to get started.
Looking for a Pitching Coach? This program is for you. For $75, for the next 4 months, we become your Pitching Coach. We use Facebook Messenger's video chat, voice call, and text tools to coach you to pitching excellence.
By choosing this option, for a $10 a month, you become eligible $10 outdoor ($20 indoor) semi-private pitching instruction in the Pitman, NJ area. You receive our effective digital instruction in a face-to-face setting.
For $30 a session, this option gives you 3 one-hour sessions for any and all Team Pitchers. This program shows Pitchers how to achieve their pitching dreams and promises to keep your Team close enough to win every game.
Other Coaches don't know how to improve an already excellent delivery ... WE CAN!!!
"After being moved to the bullpen in 2018, Beede revamped his pitch arsenal and it paid dividends on Friday night as the former Vanderbilt star struck out eight batters in four scoreless innings. It was the most strikeouts recorded by Beede since a June 7 outing back in 2017 at Raley Field against the Fresno Grizzlies."
Enroll in an Institute Program. You too can receive a personally tailored pitching plan and all the support you need to make your plan work for you!!!
The Pro Pitching Institute teaches you how to use gravity to challenge every hitter on every pitch.
Our "Performance Protection Plan" sets us apart from every other pitching program.
Within the first month, should you feel we're not capable of producing the incremental improvement you expect, you drop Skip an email, tell him where we failed you and, within 24 hours, he'll refund your enrollment!
With us, you measure our program by our ability to show you how to use gravity to deliver every pitch into your Catcher's target without his glove moving.
You can't afford not to enroll in the Institute and we can't afford not to make you successful!!!
We combine insanely simple formats with exceptional results.
Every enrollment, gets you …?
The peace of mind that you can cancel your enrollment at any time.
What makes the Pro Pitching Institute the Next Generation in Pitching Instruction?
You instantly see your worst pitches finishing closer to your target than ever.
Next, you'll realize your worst misses finish within your receiver's body.
Finally, you come to expect every pitch to travel directly into your target and your results to attract the attention of baseball people capable of furthering your baseball career.
Better yet, after an unacceptable result, you can expect your next pitch to finish where you want.
Don't let gravity use your throwing arm for balance. Instead, have gravity use your throwing arm to get back in balance. The choice is yours!!!


text:
Q: How to upload a Python script on github Suppose I have a Python script working on my windows computer. It reads a file at path 'E:/.../input' and gives output at path 'E:/.../output'. Is it possible to upload it on github, such that with appropriate shell commands other people just need to run the same script on their linux machine?
The question is motivated by
https://github.com/InsightDataScience/prediction-validation
However I do not have a Linux machine I can use to test my script. Hence the question.

A: It can be.
But since format of file path and structure of file system is OS-specific, you should modify your code to support cross-platform feature.
You can choose to do one of these:
1) If you use relative path for read from input or write to output, you can use code like os.path.join("input", "folder", "input.txt") to get the path of input file from the place of your source code. Since implementations of os.path.join in different operating systems are different with each other. So you don't need care about the different format of file path any more.
2) If you use absolute path for read and write, you can use program arguments to let user to specify the absolute path of the input/output file path. Like, in simplest case,
import sys
input = sys.argv[1]
output = sys.argv[2]
print(input, output)

When you run the code (if named with script.py) with:
python3 script.py E:\data\input.txt E:\data\output.txt

Then you will get the output
E:\data\input.txt E:\data\output.txt

So in this way, you give the freedom to users to choose the input and output path, no matter what operating system they are using.


Until the end of 2012 the Russian government approved the state program for the development of electronic and electronic industry in the Russian Federation. The state program is comprehensive and will be aimed at creating a modern technological base and to modernize the production of electronic components, according to "Rossiyskaya Gazeta".
Accepted for consideration of the document contains a list of measures to stimulate the development of electronic industry, which includes the use of instruments of customs tariff and tax regulations, the implementation of investment projects, support and comprehensive re-key the industry.
Oprichnina — saviors of the fatherland or the minions of the Antichrist?
Continue reading Oprichnina — saviors of the fatherland or the minions of the Antichrist?
March 19, 2013. The result of prolonged rainfall for the Brazilian city of Petropolis of the State of Rio de Janeiro was emergence mudslides that killed at least 16 people. Among the victims, one child and two members of the rescue services. Another 20 residents were injured. The gathering of the formation of the soil caused a spill flowing through the city center of the river, as regards the evacuation of more than 500 residents of Petropolis.
Thousands of flights canceled due to the hurricane Nemo in the U.S.
February 8, 2013. About four thousand international and domestic flights canceled on Friday due to bad weather in the Northeast United States, reports the Associated Press.
On the states of Massachusetts, Connecticut, New York, Illinois, on Thursday hit a cold cyclone, accompanied by heavy snowfalls. Major U.S. airlines, including United Airlines, American Airlines, Delta, Jet Blue, Southwest announced on the eve of the abolition of more two thousand flights, including international. On Friday because of bad weather canceled thousands of flights still 3.94.
Continue reading Thousands of flights canceled due to the hurricane Nemo in the U.S.
Tonight, residents of the town of Winston in the Australian state of Queensland have seen an unidentified flying object brightness in the "50,000 spotlights." Reportedly, the state governments are now trying to figure out what caused the unusual phenomenon.


text:
Q: dplyr mutate/replace several columns on a subset of rows I'm in the process of trying out a dplyr-based workflow (rather than using mostly data.table, which I'm used to), and I've come across a problem that I can't find an equivalent dplyr solution to. I commonly run into the scenario where I need to conditionally update/replace several columns based on a single condition. Here's some example code, with my data.table solution:
library(data.table)

# Create some sample data
set.seed(1)
dt <- data.table(site = sample(1:6, 50, replace=T),
                 space = sample(1:4, 50, replace=T),
                 measure = sample(c('cfl', 'led', 'linear', 'exit'), 50,
                               replace=T),
                 qty = round(runif(50) * 30),
                 qty.exit = 0,
                 delta.watts = sample(10.5:100.5, 50, replace=T),
                 cf = runif(50))

# Replace the values of several columns for rows where measure is "exit"
dt <- dt[measure == 'exit',
         `:=`(qty.exit = qty,
              cf = 0,
              delta.watts = 13)]

Is there a simple dplyr solution to this same problem? I'd like to avoid using ifelse because I don't want to have to type the condition multiple times - this is a simplified example, but there are sometimes many assignments based on a single condition.

A: These solutions (1) maintain the pipeline, (2) do not overwrite the input and (3) only require that the condition be specified once:
1a) mutate_cond Create a simple function for data frames or data tables that can be incorporated into pipelines.  This function is like mutate but only acts on the rows satisfying the condition:
mutate_cond <- function(.data, condition, ..., envir = parent.frame()) {
  condition <- eval(substitute(condition), .data, envir)
  .data[condition, ] <- .data[condition, ] %>% mutate(...)
  .data
}

DF %>% mutate_cond(measure == 'exit', qty.exit = qty, cf = 0, delta.watts = 13)

1b) mutate_last This is an alternative function for data frames or data tables which again is like mutate but is only used within group_by (as in the example below) and only operates on the last group rather than every group.  Note that TRUE > FALSE so if group_by specifies a condition then mutate_last will only operate on rows satisfying that condition.
mutate_last <- function(.data, ...) {
  n <- n_groups(.data)
  indices <- attr(.data, "indices")[[n]] + 1
  .data[indices, ] <- .data[indices, ] %>% mutate(...)
  .data
}

DF %>%
   group_by(is.exit = measure == 'exit') %>%
   mutate_last(qty.exit = qty, cf = 0, delta.watts = 13) %>%
   ungroup() %>%
   select(-is.exit)

2) factor out condition Factor out the condition by making it an extra column which is later removed.  Then use ifelse, replace or arithmetic with logicals as illustrated.  This also works for data tables.
library(dplyr)

DF %>% mutate(is.exit = measure == 'exit',
              qty.exit = ifelse(is.exit, qty, qty.exit),
              cf = (!is.exit) * cf,
              delta.watts = replace(delta.watts, is.exit, 13)) %>%
       select(-is.exit)

3) sqldf We could use SQL update via the sqldf package in the pipeline for data frames (but not data tables unless we convert them -- this may represent a bug in dplyr.  See dplyr issue 1579).  It may seem that we are undesirably modifying the input in this code due to the existence of the update but in fact the update is acting on a copy of the input in the temporarily generated database and not on the actual input.
library(sqldf)

DF %>%
   do(sqldf(c("update '.'
                 set 'qty.exit' = qty, cf = 0, 'delta.watts' = 13
                 where measure = 'exit'",
              "select * from '.'")))

4) row_case_when Also check out row_case_when defined in
Returning a tibble: how to vectorize with case_when? .  It uses a syntax similar to case_when but applies to rows.
library(dplyr)

DF %>%
  row_case_when(
    measure == "exit" ~ data.frame(qty.exit = qty, cf = 0, delta.watts = 13),
    TRUE ~ data.frame(qty.exit, cf, delta.watts)
  )

Note 1: We used this as DF
set.seed(1)
DF <- data.frame(site = sample(1:6, 50, replace=T),
                 space = sample(1:4, 50, replace=T),
                 measure = sample(c('cfl', 'led', 'linear', 'exit'), 50,
                               replace=T),
                 qty = round(runif(50) * 30),
                 qty.exit = 0,
                 delta.watts = sample(10.5:100.5, 50, replace=T),
                 cf = runif(50))

Note 2: The problem of how to easily specify updating a subset of rows is also discussed in dplyr issues 134, 631, 1518 and 1573 with 631 being the main thread and 1573 being a review of the answers here.

A: You could split the dataset and do a regular mutate call on the TRUE part.
the split can be done with either dplyr::group_split() or base::split(), I like the base version better here since it preserves names, see the discussion at https://github.com/tidyverse/dplyr/issues/4223 .
df1 <- data.frame(site = sample(1:6, 50, replace=T),
                  space = sample(1:4, 50, replace=T),
                  measure = sample(c('cfl', 'led', 'linear', 'exit'), 50,
                                   replace=T),
                  qty = round(runif(50) * 30),
                  qty.exit = 0,
                  delta.watts = sample(10.5:100.5, 50, replace=T),
                  cf = runif(50),
                  stringsAsFactors = F)

library(tidyverse)
df1 %>%
  group_split(measure == "exit", .keep = FALSE) %>%
  modify_at(2, ~mutate(.,qty.exit = qty, cf = 0, delta.watts = 13)) %>%
  bind_rows()
#> # A tibble: 50 × 7
#>     site space measure   qty qty.exit delta.watts    cf
#>    <int> <int> <chr>   <dbl>    <dbl>       <dbl> <dbl>
#>  1     5     1 linear     22        0       100.  0.126
#>  2     3     3 led        12        0        61.5 0.161
#>  3     6     1 led        26        0        25.5 0.307
#>  4     5     2 cfl        16        0        26.5 0.865
#>  5     6     3 linear     19        0        57.5 0.684
#>  6     1     4 led        12        0        14.5 0.802
#>  7     6     4 led         5        0        90.5 0.547
#>  8     5     4 linear     28        0        54.5 0.171
#>  9     1     2 linear      5        0        24.5 0.775
#> 10     1     2 cfl        24        0        96.5 0.144
#> # … with 40 more rows

df1 %>%
  split(~measure == "exit") %>%
  modify_at("TRUE", ~mutate(.,qty.exit = qty, cf = 0, delta.watts = 13)) %>%
  bind_rows()
#>    site space measure qty qty.exit delta.watts          cf
#> 1     5     1  linear  22        0       100.5 0.125646491
#> 2     3     3     led  12        0        61.5 0.160692291
#> 3     6     1     led  26        0        25.5 0.307239765
#> 4     5     2     cfl  16        0        26.5 0.864969074
#> 5     6     3  linear  19        0        57.5 0.683945200
#> 6     1     4     led  12        0        14.5 0.802398642
#> 7     6     4     led   5        0        90.5 0.547211378
#> 8     5     4  linear  28        0        54.5 0.170614207
#> 9     1     2  linear   5        0        24.5 0.774603932
#> 10    1     2     cfl  24        0        96.5 0.144310557
#> 11    3     4  linear  21        0        93.5 0.682622390
#> 12    4     4     led   2        0        48.5 0.941718646
#> 13    4     4     cfl   2        0       100.5 0.918448627
#> 14    5     2     led  11        0        63.5 0.998143780
#> 15    4     1     led  21        0        53.5 0.644740176
#> 16    1     3     cfl   5        0        28.5 0.110610285
#> 17    1     3  linear  24        0        41.5 0.538868200
#> 18    4     3     led  29        0        19.5 0.998474289
#> 19    2     3     cfl   4        0        22.5 0.008167536
#> 20    5     1     led  20        0        56.5 0.740833476
#> 21    3     2     led   5        0        44.5 0.223967706
#> 22    1     4     led  27        0        32.5 0.199850583
#> 23    3     4     cfl  17        0        61.5 0.104023080
#> 24    1     3     cfl  11        0        34.5 0.399036247
#> 25    2     3  linear  29        0        65.5 0.600678235
#> 26    2     4     cfl  23        0        29.5 0.291611352
#> 27    6     2  linear  13        0        37.5 0.225021614
#> 28    2     3     led  17        0        62.5 0.879606956
#> 29    2     4     led  29        0        51.5 0.301759669
#> 30    5     1     led  11        0        54.5 0.793816856
#> 31    2     3     led  20        0        29.5 0.514759195
#> 32    3     4  linear   6        0        68.5 0.475085443
#> 33    1     4     led  21        0        34.5 0.133207588
#> 34    2     4  linear  25        0        80.5 0.164279355
#> 35    5     3     led   7        0        73.5 0.252937836
#> 36    6     2     led  15        0        99.5 0.554864929
#> 37    3     2  linear   6        0        44.5 0.377257874
#> 38    4     4    exit  15       15        13.0 0.000000000
#> 39    3     3    exit  10       10        13.0 0.000000000
#> 40    5     1    exit  15       15        13.0 0.000000000
#> 41    4     2    exit   1        1        13.0 0.000000000
#> 42    5     3    exit  10       10        13.0 0.000000000
#> 43    1     3    exit  14       14        13.0 0.000000000
#> 44    5     2    exit  12       12        13.0 0.000000000
#> 45    2     2    exit  30       30        13.0 0.000000000
#> 46    6     3    exit  28       28        13.0 0.000000000
#> 47    1     1    exit  14       14        13.0 0.000000000
#> 48    3     3    exit  21       21        13.0 0.000000000
#> 49    4     2    exit  13       13        13.0 0.000000000
#> 50    4     3    exit  12       12        13.0 0.000000000

Created on 2022-10-07 by the reprex package (v2.0.1)

A: One concise solution would be to do the mutation on the filtered subset and then add back the non-exit rows of the table:
library(dplyr)

dt %>%
    filter(measure == 'exit') %>%
    mutate(qty.exit = qty, cf = 0, delta.watts = 13) %>%
    rbind(dt %>% filter(measure != 'exit'))

A: mutate_cond is a great function, but it gives an error if there is an NA in the column(s) used to create the condition. I feel that a conditional mutate should simply leave such rows alone. This matches the behavior of filter(), which returns rows when the condition is TRUE, but omits both rows with FALSE and NA.
With this small change the function works like a charm:
mutate_cond <- function(.data, condition, ..., envir = parent.frame()) {
    condition <- eval(substitute(condition), .data, envir)
    condition[is.na(condition)] = FALSE
    .data[condition, ] <- .data[condition, ] %>% mutate(...)
    .data
}

A: I don't actually see any changes to dplyr that would make this much easier. case_when is great for when there are multiple different conditions and outcomes for one column but it doesn't help for this case where you want to change multiple columns based on one condition. Similarly, recode saves typing if you are replacing multiple different values in one column but doesn't help with doing so in multiple columns at once. Finally, mutate_at etc. only apply conditions to the column names not the rows in the dataframe. You could potentially write a function for mutate_at that would do it but I can't figure out how you would make it behave differently for different columns.
That said here is how I would approach it using nest form tidyr and map from purrr.
library(data.table)
library(dplyr)
library(tidyr)
library(purrr)

# Create some sample data
set.seed(1)
dt <- data.table(site = sample(1:6, 50, replace=T),
                 space = sample(1:4, 50, replace=T),
                 measure = sample(c('cfl', 'led', 'linear', 'exit'), 50,
                                  replace=T),
                 qty = round(runif(50) * 30),
                 qty.exit = 0,
                 delta.watts = sample(10.5:100.5, 50, replace=T),
                 cf = runif(50))

dt2 <- dt %>%
  nest(-measure) %>%
  mutate(data = if_else(
    measure == "exit",
    map(data, function(x) mutate(x, qty.exit = qty, cf = 0, delta.watts = 13)),
    data
  )) %>%
  unnest()

A: With the creation of rlang, a slightly modified version of Grothendieck's 1a example is possible, eliminating the need for the envir argument, as enquo() captures the environment that .p is created in automatically.
mutate_rows <- function(.data, .p, ...) {
  .p <- rlang::enquo(.p)
  .p_lgl <- rlang::eval_tidy(.p, .data)
  .data[.p_lgl, ] <- .data[.p_lgl, ] %>% mutate(...)
  .data
}

dt %>% mutate_rows(measure == "exit", qty.exit = qty, cf = 0, delta.watts = 13)

A: You can do this with magrittr's two-way pipe %<>%:
library(dplyr)
library(magrittr)

dt[dt$measure=="exit",] %<>% mutate(qty.exit = qty,
                                    cf = 0,
                                    delta.watts = 13)

This reduces the amount of typing, but is still much slower than data.table.

A: Here's a solution I like:
mutate_when <- function(data, ...) {
  dots <- eval(substitute(alist(...)))
  for (i in seq(1, length(dots), by = 2)) {
    condition <- eval(dots[[i]], envir = data)
    mutations <- eval(dots[[i + 1]], envir = data[condition, , drop = FALSE])
    data[condition, names(mutations)] <- mutations
  }
  data
}

It lets you write things like e.g.
mtcars %>% mutate_when(
  mpg > 22,    list(cyl = 100),
  disp == 160, list(cyl = 200)
)

which is quite readable -- although it may not be as performant as it could be.

A: I think this answer has not been mentioned before. It runs almost as fast as the 'default' data.table-solution..
Use base::replace()
df %>% mutate( qty.exit = replace( qty.exit, measure == 'exit', qty[ measure == 'exit'] ),
                          cf = replace( cf, measure == 'exit', 0 ),
                          delta.watts = replace( delta.watts, measure == 'exit', 13 ) )

replace recycles the replacement value, so when you want the values of columns qty entered into colums qty.exit, you have to subset qty  as well... hence the qty[ measure == 'exit'] in the first replacement..
now, you will probably not want to retype the measure == 'exit' all the time... so you can create an index-vector containing that selection, and use it in the functions above.
#build an index-vector matching the condition
index.v <- which( df$measure == 'exit' )

df %>% mutate( qty.exit = replace( qty.exit, index.v, qty[ index.v] ),
               cf = replace( cf, index.v, 0 ),
               delta.watts = replace( delta.watts, index.v, 13 ) )

benchmarks
# Unit: milliseconds
#         expr      min       lq     mean   median       uq      max neval
# data.table   1.005018 1.053370 1.137456 1.112871 1.186228 1.690996   100
# wimpel       1.061052 1.079128 1.218183 1.105037 1.137272 7.390613   100
# wimpel.index 1.043881 1.064818 1.131675 1.085304 1.108502 4.192995   100

A: As eipi10 shows above, there's not a simple way to do a subset replacement in dplyr because DT uses pass-by-reference semantics vs dplyr using pass-by-value. dplyr requires the use of ifelse() on the whole vector, whereas DT will do the subset and update by reference (returning the whole DT). So, for this exercise, DT will be substantially faster.
You could alternatively subset first, then update, and  finally recombine:
dt.sub <- dt[dt$measure == "exit",] %>%
  mutate(qty.exit= qty, cf= 0, delta.watts= 13)

dt.new <- rbind(dt.sub, dt[dt$measure != "exit",])

But DT is gonna be substantially faster:
(editted to use eipi10's new answer)
library(data.table)
library(dplyr)
library(microbenchmark)
microbenchmark(dt= {dt <- dt[measure == 'exit',
                            `:=`(qty.exit = qty,
                                 cf = 0,
                                 delta.watts = 13)]},
               eipi10= {dt[dt$measure=="exit",] %<>% mutate(qty.exit = qty,
                                cf = 0,
                                delta.watts = 13)},
               alex= {dt.sub <- dt[dt$measure == "exit",] %>%
                 mutate(qty.exit= qty, cf= 0, delta.watts= 13)

               dt.new <- rbind(dt.sub, dt[dt$measure != "exit",])})

Unit: microseconds
expr      min        lq      mean   median       uq      max neval cld
     dt  591.480  672.2565  747.0771  743.341  780.973 1837.539   100  a
 eipi10 3481.212 3677.1685 4008.0314 3796.909 3936.796 6857.509   100   b
   alex 3412.029 3637.6350 3867.0649 3726.204 3936.985 5424.427   100   b

A: I just stumbled across this and really like mutate_cond() by @G. Grothendieck, but thought it might come in handy to also handle new variables. So, below has two additions:
Unrelated: Second last line made a bit more dplyr by using filter()
Three new lines at the beginning get variable names for use in mutate(), and initializes any new variables in the data frame before mutate() occurs. New variables are initialized for the remainder of the data.frame using new_init, which is set to missing (NA) as a default.
mutate_cond <- function(.data, condition, ..., new_init = NA, envir = parent.frame()) {
  # Initialize any new variables as new_init
  new_vars <- substitute(list(...))[-1]
  new_vars %<>% sapply(deparse) %>% names %>% setdiff(names(.data))
  .data[, new_vars] <- new_init

  condition <- eval(substitute(condition), .data, envir)
  .data[condition, ] <- .data %>% filter(condition) %>% mutate(...)
  .data
}

Here are some examples using the iris data:
Change Petal.Length to 88 where Species == "setosa". This will work in the original function as well as this new version.
iris %>% mutate_cond(Species == "setosa", Petal.Length = 88)

Same as above, but also create a new variable x (NA in rows not included in the condition). Not possible before.
iris %>% mutate_cond(Species == "setosa", Petal.Length = 88, x = TRUE)

Same as above, but rows not included in the condition for x are set to FALSE.
iris %>% mutate_cond(Species == "setosa", Petal.Length = 88, x = TRUE, new_init = FALSE)

This example shows how new_init can be set to a list to initialize multiple new variables with different values. Here, two new variables are created with excluded rows being initialized using different values (x initialised as FALSE, y as NA)
iris %>% mutate_cond(Species == "setosa" & Sepal.Length < 5,
                  x = TRUE, y = Sepal.Length ^ 2,
                  new_init = list(FALSE, NA))

A: At the expense of breaking with the usual dplyr syntax, you can use within from base:
dt %>% within(qty.exit[measure == 'exit'] <- qty[measure == 'exit'],
              delta.watts[measure == 'exit'] <- 13)

It seems to integrate well with the pipe, and you can do pretty much anything you want inside it.


text:
Softball Politics
Middle-of-the-road perspectives
The Impending Constitutional Crisis Between Obama And Congress
August 14, 2014 September 9, 2014 / softballpolitics
Sal Bommarito
The paralysis in Washington may result in dangerous constitutional confrontations in the coming months. Ever since the Democrats lost their filibuster-proof majority in the Senate (and then the majority in the House), Republicans have stymied most major initiatives by the president, a great source of frustration for him. The mid-term elections will only make the situation more stressful.
Our government has not been able to do its business in recent years. If the Senate falls to the Republicans, the schism between the warring political factions will become more contentious.
On a number of occasions, the president has said he will issue executive orders to achieve his agenda. In essence, the executive branch intends to move ahead without concurrence of Congress, if Congress is not able to pass any substantive laws.
An executive branch that usurps power and creates laws without legislative concurrence is an autocracy, a dictatorship if you will. The president's rationale for these moves is: if Congress cannot do the business of the people, he will go it alone.
The Constitution specifically mandates that Congress enact laws. There is "no specific provision that explicitly permits executive orders, in lieu of laws." However, presidents have used the following constitutional comment about the president: "take care that the Laws be faithfully executed" as the basis of issuing orders and bypassing Congress. Frequently, executive orders are issued in conjunction with laws enacted by Congress and in times of national distress, ie., wars, economic strife and the like. Very few of these orders have been contested.
If President Obama issues orders that are deemed unconstitutional by the Supreme Court and/or Congress, action by these entities is possible. The Supreme Court can rule that an executive order is unconstitutional. A more drastic step would be impeachment proceedings against the president by the House.
Two issues are creating significant distress in Congress, and with it talk of impeachment. The first one relates to acts of war, which may not be made without congressional approval. The Wall Street Journal reports that "limited airstrikes last week aimed at slowing the advance of militants from the Islamic State toward the Kurdish city of Erbil. . . [resulted in] complaints [from Congress] that [President Obama] had usurped the power to declare war that Congress claims as its own." Briefly, Congress wants the president to clear the use of troops with it . As an aside, Speaker John Boehner may sue the president over these "unilateral actions." The president indicated that he was acting properly based upon the 1973 War Powers Resolution, which requires the president to report the deployment of troops within 60 days. The ultimate hammer of Congress would be impeachment proceedings.
The other issue that has stoked impeachment talk relates to immigration, specifically the mass, illegal migration of aliens from Mexico and Central America into the U.S. If the president were to issue an executive order making all illegal aliens in the U.S. citizens, a truly outrageous and dubious move, it is highly likely that Congress would move to protect its power. However, a smaller order such as declaring all children who recently entered the U.S. citizens could evoke a congressional response.
The naysayers would argue that the Republicans would not risk another embarrassing impeachment because it would hurt them politically. Or, why impeach when the Senate will not convict? The response to these perspectives is that many congressmen and congresswomen would move to protect Congress from a "despotic" action that would minimize their power and responsibly. In other words, the institution's power and constitutional responsibilities may trump political affiliation.
Much of the above is speculation about how the executive and legislative branch might act on two important situations. Nevertheless, the opposing parties are pushing very hard, and they are endangering our Republic.
← The Clintons And The Obamas Fight For Control Of The Democratic Agenda
American Charity Worldwide- Is It Too Much? →
America After Trump
Give Your MOM A Hug
Holiday Gifts I Want From Joe
Biden Will Change Foreign Policies, Is This A Good Idea?
What If The Bidens Are Corrupt?
Are You Happy With What's Going On?
Who's In Charge Of Covid War?
The Education Conundrum
American Leadership
Biden Corruption
Campaign Finance Reform
City Land Grabs
College Admission Scandal
Deductabilty of Charitable Contributions
Filibusters
Iran Iraq Nuclear Proliferation
Kaepernick
Lying And Cheating In America
Lying Politicians
Moral obligations
Mueller's Investigation
Opening Statement
Race Relations In America
U.S. Involvement In the ISIS war
US Tennis Open


Hyde Park Acquisition Corp. II is a New York company, with head office located at 500 Fifth Avenue New York, New York 10110. In 2013 the company owned a total of 79.14 million USD worth of assets, including 388.94 thousand USD worth of current assets. 2012 was the year when the company amassed the most assets.


text:
6 Best Free Movie Apps for Android and iPhone
How To Choose The Best Water Softener System
Xbox Boss Responds To Sony's New Overall CEO About Cross-Play Statement
September 17, 2018 / Mino / 0 Comments
Kenichiro Yoshida, Sony's new overall CEO recently made some controversial comments on cross-play, and now an Xbox executive has responded via Twitter. Xbox engineering expert, Mike Ybarra said on Twitter that Sony is still not paying attention to gamers on the cross-playing issue. The Xbox executive believes that all games should be cross-played and progression with the right input flexibility and gamer options. Cross-play is the feature that allows players from different platforms to come together in unity and total pwnage. For example, a player with an Xbox console with cross-play function can play with gamers from another console who have the same game, like Nintendo Switch. While the number of games that can be cross-played is not big, there is a growing movement, a movement that Sony has decided not to support.
However, what is causing this controversy is not necessarily the fact that Sony is rejecting Cross-Play, it is that despite their promises of "paying attention to what gamers want," they are unashamedly ignoring the many requests from gamers to allow Cross-Play on PS4 with other consoles like Xbox One and the Switch. This controversy started off when Fortnite was accidentally cross-played between PS4 and Xbox One, and when Sony realized this, it shut it down. Their primary reason for the shutdown at that time was one of "security" instead of vanity.
However, that changed when Sony's CEO said that the company believed that the best place to play Fortnite is on PS4. So, this basically went from "we are doing this for your personal security and safety" to "if you want to play games the right way, you will have to do it on our systems." Needless to say, gamers were not happy with this.
Also Read- Uncharted: The Lost Legacy for PS4: Game Review
When a gamer pointed out to Ybarra that Sony's PS4 has been outselling the Xbox One for a long time, Ybarra pointed out that Microsoft operates in the Windows PC and console space which expands its gaming footprint considerably. He also suggested that what Sony is doing is a disservice to its users by failing to support cross-play.
Ybarra spoke at the IFA conference in Berlin recently, while referring to what Yoshida said, he suggested that Sony does not support cross-play since the Sony as a company believes that "the best place to play" is on PS4. Yoshida confirmed this in an interview with The Independent.
Yoshida stressed that Sony supports cross-play between PC and PS4, and that going forward the company will "decide based on what is good for the users." He added that he believes the competition between Nintendo and Xbox is "always good." Yoshida took up the CEO position at Sony earlier this year after its longtime CEO Kazuo Hirai stepped down.
Going back to Xbox and Ybarra, someone asked the exec to explain why Microsoft requires players to pay for Xbox Live Gold membership for some of the free-to-play betas and games while Sony does not. Ybarra never responded.
Games such as Minecraft, Fortnite, and Rocket League support cross-play between Nintendo Switch, Xbox One, but not PlayStation 4. A while back, Sony said that it was confident that it will find a solution to the cross-play issue so that it can satisfy all gamers and also meets its businesses considerations but that is yet to materialize.
Castlevania Characters Are Coming To Super Smash Bros Ultimate
AOC AGON AG241QX FreeSync Gaming Monitor Review


The Scotswood is a disused railway bridge crossing the River Tyne in Newcastle, spanning 212 meters although now it only transports gas and water. It is the fourth bridge on this site and was opened in 1871. In November 1982 it was permanently taken out of use when the King Edward VII bridge was opened and trains were re-routed through Dunston.
Although it doesn't seem it in the video, it was actually really windy so I didn't go to the other side because I was already loosing my balance and didn't want to end up in the Tyne. I will upload the rest of the pictures if I go back when it's less windy. There was a walk way along the left side of the bridge however it just crumbeled when I stood on it.
Your pics are pretty wonky, sure there's nothing wrong with your camera?


Our new Cycle Hub is a relaxed, chilled out and friendly hang out, based in the Staffordshire Moorlands in the South West Peak District near Leek and Buxton. Come and chat bikes, have a coffee and a cake, get your bike serviced or repaired, or if you are looking to buy a new bike we can help with that too.
We wanted to go away from your traditional bike shop and create a personalised service and bespoke way of purchasing your bike.
As such we operate by appointment only so we can give you the time you need to sit down with us, discuss your requirements and utilise our years of riding and racing experience to find you the perfect bike, e-bike or custom bike build.
Its hassle free, no waiting around in a shop being sold what is on the shop floor just fill in the appointment page or give us a ring as we might be out coaching or guiding!
Our main aim is to provide a top quality service and repair hub for all bike types. We are fully qualified Cytech mechanics but also with our experience of e-bikes full stop combined with our status as authorised Bosch, Yamaha and Shimano service centres we know how to find you the right bike and look after it. Not just that but we are certified bike nuts and actual bike riders, so know our way around bikes from years in the saddle.
As an Independent Hub, we have accounts with many leading suppliers of bikes and accessories including Lapierre, Haibike, Yeti, Mondraker and Kinesis so we are able to offer a greater range of brands for mountain bikes, e-bikes, road, gravel, commuter or kid's bikes, along with 100% clothing, and a wide range of parts and accessories and for most on next day delivery.
Parking can be sometimes difficult around the mill so the people at the Ye Olde Rock Inn have kindly allowed us to use their car park, its only a 3 min walk away.
See you at the Hub soon.


text:
NAME OF THE GAME – golf photographer honoured by naming tribute
30th October 2018 | Written by Yvonne Alexander
While Scotland reflects on an extraordinary year of golf, one of the sport's leading photographers has rounded off the season by receiving an unexpected honour. With a roster of work......
SKY'S THE LIMIT AS MONTROSE REVEALS HONORARY MEMBER
22nd October 2018 | Written by Yvonne Alexander
Montrose Golf Links has released details of the first TV personality to be granted honorary membership in its 450-year history. The announcement, which follows the unprecedented move earlier this year......
CARNOUSTIE COUNTRY DRIVES HOME SUMMER SUCCESS
An insight into the economic benefits of The 147th Open at Carnoustie has been revealed through a survey conducted by Angus Council who manage Carnoustie Country, the region's golf destination......
HISTORIC GOLF CLUBS TOAST A SUMMER TO SAVOUR
24th May 2018 | Written by Yvonne Alexander
During a spectacular summer of golf, a group of historic golf clubs will celebrate a number of important milestones that coincide with The Open and the Seniors Open returning to......
22nd May 2018 | Written by Yvonne Alexander
Montrose Golf Links has released details of its historic and unprecedented decision to rename the fifth oldest golf course in the world. The announcement includes timings for the name transfer......
SCOTLAND'S OLDEST GOLF CLUBS GATHER AT KINGSBARNS
Kingsbarns Golfing Society is celebrating after hosting a memorable grand match to mark its 225th anniversary. Played over the revered Kingsbarns Golf Links in Fife on a glorious spring day,......
CARNOUSTIE COUNTRY LAUNCHES LEGENDARY CAMPAIGN AND WEBSITE
25th April 2018 | Written by Yvonne Alexander
As anticipation grows for The 147th Open at Carnoustie, a new website has been unveiled by Carnoustie Country as an online hub for the region's 34 outstanding golf courses and......


Similarities exist between networks in communications, electric power, roads, natural gas distribution, water distribution and sewer networks. By the very nature of network economics, each industry exhibits economies of density and each reaches a point at which unsubsidized provision of service in low-density areas is not viable. The causes of higher costs in low-density areas are discussed in this paper using communications examples. In addition, the scope of low-density areas in the United States are considered.


text:
De oostelijke oliepijpleiding (Russisch: Восточный нефтепровод; Vostotsjny nefteprovod) of (oliepijpleiding) Oost-Siberië-Grote Oceaan (Восточная Сибирь — Тихий океан; ВСТО; Vostotsjnaja Sibir - Tichi okean; VSTO) is een 4700 kilometer lange oliepijpleiding tussen de olievelden van West- en Oost-Siberië en de haven van Kozmino (Russische kraj Primorje) voor de export van aardolie naar de afzetmarkten rond de Pacific Rim. Het 1115 kilometer lange deel van het Talakanolieveld naar Tajsjet kan de olie ook de andere richting op vervoeren om zo ook olie te kunnen leveren aan de petrochemische fabriek van Angarsk. De pijpleiding is aangelegd door het Russische staatsbedrijf Transneft.

Geschiedenis
De pijpleiding werd oorspronkelijk ontworpen in 1999 door Yukos tussen haar raffinaderij in Angarsk (oblast Irkoetsk) en de Noord-Chinese stad Daqing voor de export van aardolie. In dezelfde periode stelde Transneft een alternatief project voor om olie te vervoeren van Tajsjet (oblast Irkoetsk) naar de Verre-Oostelijke haven Nachodka. In mei 2003 besloot de Russische overheid beide pijpleidingen te combineren en dat Transneft de verantwoordelijkheid voor de pijpleiding zou dragen, terwijl Yukos de olie zou leveren.

De aanleg van de pijpleiding zelf startte in april 2006. Op 4 oktober 2008 werd het traject tussen Tajsjet en Talakan (oblast Amoer) opengesteld om olie te transporteren van het Talakanolieveld van Soergoetneftegaz.

In februari 2009 ondertekenden Rusland en China een verdrag waarin overeengekomen werd dat Rusland China elk jaar 15 miljoen ton olie (300.000 vaten per dag) zou leveren in de daaropvolgende 20 jaar in ruil voor een lening ter waarde van US$ 25 miljard aan de Russische bedrijven Transneft en Rosneft voor het ontwikkelen van pijpleidingen en olievelden.

Route
De pijpleiding volgt de route vanaf Tajsjet (oblast Irkoetsk) langs de plaatsen Kazatsjinskoje (oblast Irkoetsk), Skovorodino (oblast Amoer) en Perevoznaja (kraj Primorje) naar Kozmino.

De aanleg van de pijpleiding vond plaats in twee fasen. In de eerste fase werd het 2757 kilometer lange tracé tussen Tajsjet en Skovorodino aangelegd. Deze aanleg startte in april 2006 en was eind 2009 voltooid. Dit tracé werd aangelegd door de bedrijven Sistema SpekStroj, Krasnodarstrojtransgaz (in 2008 weggestuurd door Transneft), Vostok Stroj, Promstroj, Amerco Int. en IP Set Spb. De kosten van de aanleg van het eerste tracé waren berekend op US$US$ 12,27 miljard. De pijplijn had een initiële capaciteit van 30 miljoen ton op jaarbasis. Stapsgewijs is de capaciteit verhoogd, van 50 miljoen ton in 2012 naar 58 miljoen ton in 2014 en 73 miljoen ton per jaareinde 2017. In november 2019 werd het project afgesloten waarmee de capaciteit is verhoogd naar 80 miljoen ton op jaarbasis.

Bij Skovorodino splitst de pijplijn. Er is een 1115 kilometer lange aftakking naar de Chinese stad Daqing, waarvan 67 kilometer op Russisch en 960 kilometer op Chinees grondgebied. In november 2017 werd een investeringsprogramma afgerond. Door het bijplaatsen van extra pompstations is de capaciteit verhoogd naar 30 miljoen ton op jaarbasis.

Een tweede pijplijn, met een lengte van 2100 kilometer, ligt tussen Skovorodino naar de Grote Oceaan. De voltooiing hiervan werd in 2007 gepland op ergens tussen 2015 en 2017. Veel eerder dan verwacht, werd in december 2012 dit traject officieel in gebruik genomen waardoor het vervoer per spoor niet meer nodig is. De kosten van de exportterminal bij Kozmino aan de Pacifische kust werden geraamd op US$ 1,74 miljard. De capaciteit bij de aanleg was 30 miljoen ton per jaar, ook deze is verhoogd van 45 miljoen ton per jaareinde 2017. In november 2019 is een verdere toename tot 50 miljoen ton gerealiseerd. Halverwege de pijplijn is in 2018 een aftakking gemaakt voor een nieuwe raffinaderij Komsomolsk. Hier staat drie pompstations langs een 293 kilometer lange pijplijn met een capaciteit van 8 miljoen ton per jaar.

Baikalmeer
Na protesten van milieuorganisaties werd het tracé van de pijpleiding bij het Baikalmeer door de Russische regering verschoven naar 40 kilometer ten noorden van de noordoever, zodat deze nu niet door Boerjatië loopt (wat aanvankelijk de bedoeling was), maar door het noordelijker gelegen Jakoetië. Aanvankelijk was het de bedoeling dat de pijpleiding op meer dan 20 kilometer van de oever van het meer zou komen te liggen. De staatsdoema had hierover al twee lezingen gehouden en het voorstel hoefde alleen nog naar de Federatieraad van Rusland te worden gestuurd. Volgens tegenstanders kwam Transneft hierachter en zou deze achter de schermen overleg met Vladimir Poetin hebben gevoerd om ervoor te zorgen dat dit niet doorging, omdat dan meer kosten moesten worden gemaakt en de aanleg dan langer zou duren. Hierop werd aangedrongen op het schrappen van de beperkingen rond het meer en nam de staatsdoema op 12 april 2006 plotseling het besluit dat de pijpleiding vlak langs de oever van het meer mocht worden getrokken, door een drasgebied, waardoor het water en de kwetsbare leefmilieus van het meer mogelijk met olie zouden kunnen worden vervuild. Milieuactivisten demonstreerden daarop in meerdere Russische steden, de gouverneur van de oblast Irkoetsk Aleksandr Tisjanin en de presidentiële afgevaardigde van het federaal district Siberië Anatoli Kvasjin tekenden protest aan en lokale actiegroepen, inwoners van de kraj Krasnojarsk, Greenpeace en het WNF stapten naar de rechter, die hun argumenten echter afwees. Op 26 april 2006 bleken deze protesten toch resultaat te hebben, daar Poetin tijdens een bijeenkomst met Siberische leiders plotseling verklaarde dat de pijpleiding op minstens 40 kilometer van de oever zou moeten worden aangelegd.

Technische specificaties
De pijpleiding van het eerste tracé heeft een diameter van 1220 millimeter en een jaarlijkse capaciteit van 80 miljoen ton ruwe olie en het tweede tracé heeft een jaarlijkse capaciteit van 50 miljoen ton. De pijpleiding moet gaan bestaan uit 32 pompstations, waaronder 13 met olietanks met een totale capaciteit van 2,67 miljoen m³. De verbinding naar China moet een jaarlijkse capaciteit van 30 miljoen ton olie krijgen en het gedeelte op Russisch grondgebied zou US$ 600 miljoen moeten gaan kosten.

In de zomer van 2008 werden door Wärtsilä 16V32 ruwe olie-aangedreven motoren geleverd voor een geplande warmte-krachtcentrale van 35 MW bij de stad Oljokminsk in Jakoetië, die aan het eerste tracé van de pijpleiding is gekoppeld en moet gaan draaien op de ruwe olie van de oostelijke pijpleiding.

Bij Kozmino is een tankterminal (een terrein met olietanks) gebouwd met een capaciteit van 350.000 m³ en een overslagcapaciteit van 300.000 vaten per dag.

Aanvoer
De pijpleiding is erop gericht om olie te vervoeren van de olievelden van de West-Siberische deelgebieden oblast Tomsk en Chanto-Mansië. Deze olie zal via de bestaande Omsk-Irkoetskpijpleiding naar Tajsjet worden vervoerd, vanwaar het verder wordt getransporteerd via de oostelijke oliepijpleiding.

Oliepijpleiding
Energie in Rusland
Bouwwerk in Siberië

redpajama_set_name: RedPajamaWikipedia


text:
China tries to make nice with Big Tech as economic challenges mount
Leave a Comment / Business / By kondogbia
In a rare public display of support for the private sector, Vice Premier Liu He said Tuesday that the government would "properly manage" the relationship between the government and the market, and back tech companies to list in both domestic and foreign markets. Liu is a top economic adviser to President Xi Jinping.
He was speaking at a symposium with other officials and Chinese tech executives, including Robin Li, the CEO of internet search giant Baidu (BIDU), William Ding, CEO of gaming and content company NetEase (NTES), and Zhou Hongyi, CEO of internet security firm Qihoo 360 Technologies.
Chinese stocks on Wall Street surged after Liu's comments, but mostly declined Wednesday in Hong Kong. This suggests that the market is still deeply concerned about the growth prospects of China's big internet companies, and are looking for more specific commitments from the government.
Those concerns were reinforced Wednesday when Tencent (TCEHY) reported zero revenue growth in the first quarter, a worse outcome than expected.
Beijing's year-long regulatory crackdown has left deep scars on the huge tech sector. Coupled with a weakening economy, the campaign has wiped out more than $1 trillion off the market value of Chinese companies. Many tech firms have reported dismal earnings or cut tens of thousands of jobs to reduce operating costs.
The Chinese economy is likely to contract in the second quarter, as Covid lockdowns wreak havoc on activity. Consumer spending and factory output both shrank sharply last month, while unemployment surged to the highest level since the initial coronavirus outbreak in early 2020.
Looking at the fine print
Liu's comments were welcomed by tech executives at the symposium.
Zhou from Qihoo 360 said on Weibo that he felt "confidence and support" from the meeting. "At this moment, confidence and support are more precious than gold," he said.
The Nasdaq Golden Dragon China Index, a key index tracking Chinese companies listed on Wall Street, surged by more than 5% overnight following Liu's comments. Alibaba (BABA) soared more than 6% on the New York Stock Exchange. Baidu jumped 4.8%.
The broader US market also closed higher on Tuesday. The Dow Jones Industrial Average closed up 1.3%. The S&P 500 rose 2%, and the Nasdaq Composite gained 2.8%.
"While the [symposium] did not include much new context in our view, we do believe the meeting suggests another positive regulatory signal towards the platform economy and supportive attitude of internet companies seeking listing in overseas markets," said Citi analysts on Wednesday.
But the lack of detail from Liu weighed on Asian markets on Wednesday.
The Hang Seng Tech Index, a key index for Chinese tech firms listed in Hong Kong, dropped as much as 2.3% on Wednesday. It was last down 0.3%. The benchmark Hang Seng Index closed up 0.2% after choppy trading.
Alibaba (BABA) lost 0.6%. Tencent (TCEHY) dropped 0.8%. Kuaishou, a rival to TikTok in China, fell 2.5%.
The "Chinese government appears to be running out of policy tools to support growth," said Ken Cheung, chief Asian FX strategist at Mizuho Bank.
The escalating downside risks for growth might have prompted the leadership to end the tech crackdown quickly, Cheung said. But it may take more time to repair investors' confidence, he added.
Recent earnings show how much China's tech industry continues to struggle.
Online retail giant JD.com (JD) on Monday posted its slowest quarterly revenue growth since it went public in 2014.
Earlier this year, Alibaba and e-commerce firm Pinduoduo reported their slowest sales growth as public companies for the December quarter.
#China #nice #Big #Tech #economic #challenges #mount


text:
Q: Как выбрать все вхождения в регулярном выражении PHP Есть строка:

*

*Иванов Иван Иванович - оказываются услуги проживания (2-х местный двухкомнатный Люкс, Основное место), услуги питания (Заказное меню), медицинские услуги (Лечение), услуги, связанные с организацией туристического путешествия; 2. Петров Пётр Петрович - оказываются услуги проживания (2-х местный двухкомнатный Люкс, Дополнительное место), услуги питания (Заказное меню), услуги, связанные с организацией туристического путешествия (без оказания медицинских услуг); 3. Семенов Семён Семёнович - оказываются медицинские услуги (Лечение), услуги, связанные с организацией туристического путешествия (без оказания услуг проживания, услуг питания);

Нужно при помощи регулярного выражения на php убрать текст между ", услуги," и ";". То есть нужно получить строку вида:

*

*Иванов Иван Иванович - оказываются услуги проживания (2-х местный двухкомнатный Люкс, Основное место), услуги питания (Заказное меню), медицинские услуги (Лечение) 2. Петров Пётр Петрович - оказываются услуги проживания (2-х местный двухкомнатный Люкс, Дополнительное место), услуги питания (Заказное меню) 3. Семенов Семён Семёнович - оказываются медицинские услуги (Лечение)

Пишу вот эту регулярку, и выбирается только одно вхождение.
/, услуги,[^)]+;/

Как сделать, чтобы выбирались все случаи в строке?
Для удобства - ссылка на https://regex101.com/r/VYmAld/1

A: Я сделал так:
/, услуги,[^;]+;/

и включил флаг global на том сайте.
В PHP будет:
$str = '1. Иванов Иван Иванович - оказываются услуги проживания (2-х местный двухкомнатный Люкс, Основное место), услуги питания (Заказное меню), медицинские услуги (Лечение), услуги, связанные с организацией туристического путешествия; 2. Петров Пётр Петрович - оказываются услуги проживания (2-х местный двухкомнатный Люкс, Дополнительное место), услуги питания (Заказное меню), услуги, связанные с организацией туристического путешествия (без оказания медицинских услуг); 3. Семенов Семён Семёнович - оказываются медицинские услуги (Лечение), услуги, связанные с организацией туристического путешествия (без оказания услуг проживания, услуг питания);';

$result = preg_replace('/, услуги,[^;]+;/', '', $str);


On arrival at Delhi you will be received by our representative who will then help you in checking into the hotel booked for you.The capital of India has a lot of sights which will be at your perusal after you wake up to a new day.
Delhi - the capital of India, is a fascinating city with complexities and contradictions, beauty and dynamism, where the past co-exists with the present. Many dynasties ruled from here and the city is rich in the architecture of its monuments. Delhi is not only the present metropolis of India but also a Necropolis. Because of its location, being on the banks of the river Yamuna, many cities have risen and fallen over the last five millenniums. Overnight in Delhi.
Morning : Visit to the Old City of Delhi to see the historic Red Fort and the Jama Masjid, India's largest mosque from the outside. See the colourful bazaar of Chandni Chowk and take a cycle rickshaw ride through the back streets of Old Delhi to get a first hand experience of the hustle and bustle of this traditional city. This ride through the small by-lanes will be most fascinating.
Morning drive to Jaipur ( 280 kms/ 5 ½ hours ). Assistanc eon arrival and check in to the room.
Check into the hotel, rest of the afternoon at leisure for independent activities. Overnight in Jaipur.
Morning : excursion to Amber Fort with Elephant ride upto the Fort. Drive past Hawa Mahal, known popularly as the Palace of Winds, is a facade built for the Ladies of the Royal household in the 19th century. The Amber Fort, the capital of the erstwhile State of Jaipur until 1728 is perched on a hill. It has halls of Public and Private audience, a Sheesh Mahal (hall of mirrors) various marble palaces which are marvelous examples of ancient Rajput architecture. The Temple of Amba (Mother Goddess), the patron deity of the Royal family is at the entrance to the palace. Ride an elephant to ascend the hill on which the Fort is situated.
Afternoon : city tour visiting the City Palace - the former royal residence built in a blend of Rajasthani and Mughal styles which houses a museum with a superb collection of Rajasthani costumes and armoury of the Mughals and Rajputs, including swords of different shapes and sizes with ornate handles. It has an art gallery with an excellent collection of miniature paintings, carpets, royal paraphernalia and rare astronomical works in Arabic, Persian, Latin and Sanskrit. Also visit the Jantar Mantar - an astrological and astronomical observatory built by Maharaja Jai Singh in the 18th century, which is remarkable for its accuracy even in the present times. Overnight in Jaipur.
Morning drive for Ranthambore (166 kms/ 3 hours). On reaching Ranthambore you will be received by our representative and then made to check into the lodge there.
Ranthambore : With an area of 400 sq. km encompassing rocky hill crests which descend to open valleys between the Aravalli and Vindhya ranges, dotted with water pools and fruit trees, this park gets its name from the thousand year old fortress, which looms above the forest. Well known for the diurnal activity of tigers, Ranthambore is a very special and unusual area where a natural present meets a historical past. Sambar, cheetal, chinkara, nilgai and languor. The elusive leopard and tigers are found in this reserve with tourists standing a very good chance of seeing tigers during the day.
Lunch at the lodge following which will be a visit to the sanctuary on the jeep.The jeep safari is very exciting as it gives you a very close look at the animals and a chance to take a snap of these beauties.In the evening you will come back to the lodge after you finish your jeep safari.You dinner will be waiting for you.Overnight in Ranthambore.
Breakfast, Lunch and Dinner at the lodge. Morning and afternoon visit the sanctuary on Jeep with an English speaking Naturalist. Overnight in Ranthambore.
Morning and afternoon visit the sanctuary on Jeep with an English-speaking Naturalist. Overnight in Ranthambore.
Morning proceed on a tour of the city visiting Visit the Agra Fort, built by three Mughal Emperors starting from Akbar the Great in 1565 AD, which is a masterpiece of design and construction. Within the fort are a number of exquisite buildings including the Moti Masjid, Jahangir's Palace, Khas Mahal and the Sheesh Mahal, Diwane-i-Am, Diwane-i-Khas and Musamman Burj, where Emperor Shah Jahan, the fifth Mughal Emperor, died a prisoner. Visit the Taj Mahal - the inimitable poem in white marble. Built over a period of 22 years, by the Mughal Emperor Shah Jahan in 1630, for his Queen Mumtaz Mahal to enshrine her mortal remains, it is one of the seven modern wonders of the World.[The Taj is closed on Fridays.
Meeting on arrival and transfer to Bandhavgarh (32 kms/ 1 hours). On arrival, check in to the Tiger Den Resort.
The terrain is rocky, rising sharply from the swampy and densely forested valley. The finest of these hills is Bhadhavgarh which is bounded by great cliffs and eroded rocks. The Bandhavgarh Fort, believed to be 2000 years old, stands at the highest point. There is a temple at the fort that can be visited by jeeps. Scattered throughout the park, particularly around the fort, are numerous caves containing shrines with ancient Sanskrit inscriptions. The ramparts of the fort provide a home for vultures, blue rock thrushes and crag martins.
Lunch at the Lodge and then visit the sanctuary on Jeep/ elephant with an English speaking Naturalist. During the day, we will have the opportunity to see some of the Bird life in the environs and to visit the village. Overnight in Bandhavgarh.
Breakfast, Lunch and Dinner at the Lodge. Morning and afternoon visit the sanctuary on Jeep/ elephant with an English speaking Naturalist.
Breakfast, Lunch and Dinner at the Lodge. Morning and afternoon visit the sanctuary on Jeep/ elephant with an English speaking Naturalist.Take the overnite train from Umaria to New Delhi, leaves Umaria at 2015hrs to reach New Delhi at 1330hrs.
Meeting and assistance on arrival at Delhi railway station and transfer to the Hotel.


The territory of Arezzo includes part of the Appenines Tosco-Emiliano (Alpe della Luna, Alpe di Catenaia, Pratomagno) and of Chianti, higher Val Tiberina, Casentino, part of the Upper Valdarno and Val di Chiana: it is worth mentioning that these are some of the most flourishing territories for wine production, famous worldwide, as well as being areas of incomparable natural beauty, much loved by those who prefer a non wasted holiday, but an intelligent and aware or conscious one.
Already a permanent prehistoric seat belonging to the Dodecapoli Estrucan (Arrentium), then a Roman colony (1st Century BC), noted for the production of ceramics: from an evidential point of view, there is almost nothing from this ancient era, apart from that regarding the remains of the Roman Amphitheatre. A Free Council in the 11th Century, it reached noteworthy economic development at the beginning of the 14th Century: it was in this period when testimony can be found, in the form of the most important City monuments, like the Pieve di S. Maria, the Cathedral, S. Domenico, the Communal Building and the Case-Torri (Tower Houses).
Defeated by the Florentine Guelphs at Campaldino (1289), overwhelmed by the feuds of 1380 between the Ubertini and Tarlati, the City handed itself over to Carlo d'Angio, Duke of Durazzo, who then sold it on to Florence. Also in this period, Arezzo experienced a noteworthy artistic development: in fact, during the Renaissance era, architects like Giuliano da Sangallo and Giorgio Vasari were active in the City, and also the superb artist, Piero della Francesca.
The urban structure of the City is compact and well preserved, especially concerning the historical centre, and follows a semi-circular plan, sloping down towards the square, to the height of the Cathedral,. On the medieval system, by nature a little tortuous, the Renaissance presence is engraved in the form of larger, scenographical roads.
The hill of the Cathedral, almost like an old acropolis, dominates the City, embellished not only by architectonic monuments, but also by beautiful public gardens called Passeggio del Prato, dating back to the Medici period. The Cathedral (13th-14th Centuries) is a grandiose Gothic building, later completed during the 1500's (the façade, though, is a modern reconstruction, as well as the Clock Tower, which is from 1859); the interior is enriched with funerary monuments from the 1300's and by the presence of pictorial works; amongst which a fresco by Piero della Francesca.


text:
Berkshire Hathaway CEO Warren Buffett. Photo: Reuters
Warren Buffett: Berkshire more inclined on share buyback than dividend payments
2 min read . Updated: 26 Feb 2018, 08:02 PM IST Jennifer Ablan, Jonathan Stempel
The US corporate tax cut signed into law by US President Donald Trump is a 'huge tailwind' for US companies and that it is 'really good' for Berkshire Hathaway, says CEO Warren Buffett
Warren BuffettBerkshire Hathawayshare buybackdividend paymentWarren Buffett interviewCNBCUS tax cutDonald TrumpUS corporate taxBerkshire share priceUS markets
New York: Warren Buffett, chairman and CEO of Berkshire Hathaway Inc, said his conglomerate, which is sitting on $116 billion of cash, is "more inclined" to repurchase stock than pay dividends as a means to use excess cash.
Speaking on CNBC television on Monday, Buffett said the corporate income tax rate cut signed into law by US President Donald Trump in December is a "huge tailwind" for US companies and that it is "really good for Berkshire."
Berkshire attributed roughly $29.11 billion of its net income last year to the reduction of the corporate tax rate to 21% from 35%. Many US companies' reported results have been skewed by the law's impact.
In his annual letter to Berkshire shareholders on Saturday, Buffett lamented his inability to find big companies to buy and said his goal is to make "one or more huge acquisitions" of non-insurance businesses to bolster results at Berkshire.
Buffett said finding things to buy at a "sensible purchase price" has become a challenge and is a major reason Berkshire is awash with $116 billion of low-yielding cash and government bonds, whose average maturity was 88 days as of the end of 2017.
"I am fairly confident we will find ways to deploy" Berkshire's excess cash, Buffett said on CNBC. "The best chance to deploy money is when things are going down."
Buffett says he has confidence in Wells Fargo & Co. chief executive Tim Sloan, as he tried to move the third-largest US bank past scandals over how it treated customers including by creating unauthorized accounts.
Berkshire owns nearly 10% of Wells Fargo. Earlier this month, the Federal Reserve surprised many by imposing limits on the San Francisco-based bank's asset growth until it addresses problems.
Buffett likened the situation to when he was installed in 1991 as chairman of Salomon Brothers Inc. after a former chief executive failed to tell regulators that a trader was submitting fake bids at Treasury auctions.
"Digging your way out of it takes time," Buffett said. "He's got a lot to clean up."
Buffett raised red flags about ordinary investors using borrowed cash to buy stocks, or buying "on margin."
Buffett said it was "crazy" to borrow money to buy stocks and that "it is insane to risk something you have and need" for the sake of leveraging up on stocks. Buffett said investors might get a "euphoric surge" if they double their money in stocks, but would not be "happier." Reuters


text:
Sebestyén Jenő, született Stern Jenő (Kurd, 1881. november 26. – Budapest, 1949. április 30.) színész. Sebestyén Dezső, Mihály és Géza testvére.

Életútja

Stern Zsigmond és Wirth Gizella fia. Színész lett 1902. szeptember havában. 1906–08-ban Kecskeméten játszott, 1908–09-ben Mariházy Miklósnál szerepelt, 1910–11-ben pedig Miskolcon lépett színpadra. 1911 őszén Patek Béla társulatának tagja volt Győrött, mint táncos komikus. 1913. február havában Szegedre szerződött, azután ugyanazon év őszén Kolozsvárra ment. 1914–15-ben Pécsett láthatta a közönség, 1917. szeptember havában a Budai Színkör tagja volt. 1917–18-ban a Városi Színházban, 1921–22-ben Aradon, 1924–25-ben Szendrey Mihály erdélyi társulatában lépett színpadra. 1927-től 1930-ig a Városi Színház művésze volt, majd 1930 és 1935 között a Fővárosi Operettszínház foglalkoztatta. 1935 után nem rendelkezett állandó szerződéssel, de játszott a Városi Színházban illetve a Budai Színkörben. Zsidó származása míatt a második zsidótörvény és a harmadik zsidótörvény alapján 1940 és 1944 között csak az OMIKE Művészakció előadásain léphetett fel, zsidó közönség részére. 1945-től 1948-ig a Fővárosi Operettszínházban játszott. Halálát szívgyengeség, szívizom-elfajulás okozta.

Magánélete
1903. április 23-án Budapesten, az Erzsébetvárosban házasságot kötött Wertheimer Frida színésznővel. 1921-ben elvált feleségétől. Második felesége Wannai Erzsébet volt.

Fontosabb szerepei

 dr. Morfin Tádé, vallásalapító (Rényi A.: Vandergold kisasszony)
 Főportás (Komjáti K.: Bécsi tavasz)
 Vági patikus (Lajtai L.: Okos mama)

Jegyzetek

Források

 Magyar színházművészeti lexikon  Főszerk. Székely György. Budapest, Akadémiai Kiadó, 1994.
 Magyar Színművészeti Lexikon (1929-1931, szerk. Schöpflin Aladár)

Magyar színészek
1881-ben született személyek
1949-ben elhunyt személyek
Családi nevüket magyarosított személyek
Zsidó származású magyarok
Az OMIKE Művészakció résztvevői