text:
Scowcroft Endorses Clinton
A revered Republican foreign policy guru has endorsed the Democratic nominee for president.
James Joyner · Thursday, June 23, 2016 · 27 comments
Arguably the most respected Republican foreign policy expert has endorsed Democrat Hillary Clinton for president. POLITICO:
Brent Scowcroft, national security adviser under Republican presidents Gerald Ford and George H.W. Bush, endorsed Hillary Clinton for president on Wednesday.
"Secretary Clinton shares my belief that America must remain the world's indispensable leader," Scowcroft said in a statement, touting her experience as secretary of state. "She understands that our leadership and engagement beyond our borders makes the world, and therefore the United States, more secure and prosperous. She appreciates that it is essential to maintain our strong military advantage, but that force must only be used as a last resort."
Clinton, Scowcroft stated, "brings deep expertise in international affairs, and a sophisticated understanding of the world," qualities he described as "essential for the Commander-in-Chief."
"Her longstanding relationships with a wide array of world leaders, and their sense of her as a strong and reliable counterpart, make her uniquely prepared for the highest office in the land," he added.
Scowcroft's endorsement comes after his fellow foreign-policy realist Richard Armitage, deputy secretary of state under George W. Bush, told POLITICO last week that he would support Clinton over Donald Trump if he is the Republican nominee.
"I believe Hillary Clinton has the wisdom and experience to lead our country at this critical time," Scowcroft stated.
I'm a great admirer of Scowcroft. As I noted years ago in a post for the Atlantic Council, Scowcroft is one of the few people who, when he expresses a view contrary to the one I hold, my immediate instinct is to question what I'm missing in my analysis. In this case, I agree with his position but unpersuaded by his argument.
Given a choice between Clinton and Donald Trump at the helm of the ship of state, I reluctantly but easily chose Clinton. Trump simply lacks the maturity, decency, experience, judgment, and temperament to be president. And much of what Scowcroft says of Clinton is true: she has experience, expertise, and relationships that would be useful in running US foreign policy. Indeed, she's arguably the most qualified-by-resume presidential nominee since Scowcroft's former boss, George H.W. Bush.
That Clinton shares the foreign policy Establishment's conventional wisdom that American must remain the world's hegemon is certainly true. It's by no means clear, though, that she believes that "force must only be used as a last resort." Most notably, she was a driving force in persuading a reluctant President Obama into the Libya debacle. All indications point to her being a more aggressive version of her husband, who engaged in far too many do-gooder interventions of tangential relation to US national interests over his eight years in office.
For that matter, while she has "Secretary of State" as the top line on her resume, the list of accomplishments associated with that entry are sparse, indeed. Yes, she has the experience. But what did she actually do with four years in charge at Foggy Bottom? What did she learn that she'd put to good use?
Scowcroft is endorsing Clinton because the alternative is Trump. Putting his country over his party in this instance is why he's such a revered figure. But let's not guild the lily here and pretend she's an accomplished statesman.
FILED UNDER: Campaign 2016, National Security, US Politics
Jim Brown 32 says:
Thursday, 23 June 2016 at 11:46
Or better yet: " Former Right-center Neo-Con official endorses Left-center Neo-Con." Yawn
@Jim Brown 32: Scowcroft is in no sense a neocon; he's virtually the icon of classical Realist foreign policy wisdom. I'd argue that Clinton is a liberal interventionist rather than a neocon, because of her emphasis on international institutions vice American unilateralism, but there's certainly a significant overlap in the two schools.
Yup, I've always thought HRC was tougher than most, including Obama. Her pro-intervention position on Libya left me perplexed, and with such a sour, disappointing taste. I only hope she's learned some patience of thought since then. I think she could accomplish much to bring us out of this malaise we've been in for eight years. That is, if the GOP would grow up and not muck it up.
Kylopod says:
@James Joyner: In certain circles, "neocon" simply means "anyone who is more hawkish than I am." (In certain other circles, it's a code word for "Jew-controlled," or, simply, "Jew.")
Just 'nutha ig'rant cracker says:
@dennis: You're asking a lot of the Republicans. After all, her name is Clinton and you can see what happens at even the mention of the name from reading Dr. Joyner's post.
Stormy Dragon says:
@Jim Brown 32:
Brent Sowcroft was one of the big opponents of the Iraq war, so I don't see how he qualifies as a neocon:
http://www.wsj.com/articles/SB1029371773228069195
@Just 'nutha ig'rant cracker:
I know. Still, I hope: the emperor hasn't driven it fully from me …
DrDaveT says:
But what did she actually do with four years in charge at Foggy Bottom?
Prevent things from flaring up to the point that you would have become aware of them?
Guarneri says:
@James Joyner:
I'm not sure how debating the mechanisms or endorsers provides further illumination in the current election. HRC, evidenced by her vote on Iraq and the Libya fiasco, is an interventionist. Trump seems much more a self interest realist.
I do allow that it is only Thursday, and pending poll results tonight HRC may change her, ahem, convictions.
MarkedMan says:
Clinton's hawkish tendencies are definitely one of the few things that raise concerns IMHO.
OTH, I would argue that the pivot to Asia under Clinton's state department will be considered extremely important in the long run. I was living in China when, at the Pacific Conference (?), leader after leader stood up and defied China and demanded that geographical issues be negotiated together, rather than the one on one that China wanted to impose. China was completely blind-sided and to this day dislikes but respects Obama and Clinton because of it. In the subsequent years, all of those countries had moved away from China's orbit and back towards ours. Our recent thawing with Viet Nam is a direct result of that effort, as they feel we are a reliable backstop.
The Pivot to Asia is about the future, whereas the European and Middle-Eastern issues are about the past. It's not that they cannot go bad in a big way, but there is only downside there as those forces are basically spent. Asia is where the new economy is being created and the Obama/Clinton effort to focus our best and brightest there is exactly the right thing to do.
@DrDaveT:
There's no way to see the counterfactual case, obviously. I'd argue her biggest success was setting up the Iran sanctions that ultimately led to the deal under her successor. I tend to view TPP, which also culminated under Kerry, as a modest success although it's one she has disowned. The Russia Reset was a foreseeable and foreseen disaster.
The administration didn't exactly contain the spread of ISIS. Nor did they do much to capitalize on the Arab Spring. I don't think a McCain or Romney administration would necessarily have been better, mind you, although I think Bush Sr. and Scowcroft would have done much better in both cases.
Tony W says:
although I think Bush Sr. and Scowcroft would have done much better in both cases.
Based on Republican mastery of foreign policy in the past?
Need I remind you Bush Sr. went to war largely because his ambassador to Iraq signaled we didn't care about Kuwait? That doesn't really give me a lot of confidence in the man's state department.
Most notably, she was a driving force in persuading a reluctant President Obama into the Libya debacle.
Count me in as one of the defenders of the Libya intervention. Most people here seem to think that had Obama not intervened. Libya would be some sort of oasis of calm and stability now. Wishful thinking.
When the British, French, and America intervened., Libya was in a civil War. Qaddafi was driving on the rebel held Benghazi, threatening to massacre the inhabitants " like dogs.". So the humanitarian case for intervention was clear.
What also seems clear its that the conflict would not have subsided after intervention It is likely that the civil war would have continued , and Libya would have ended up like "Syria on the Mediterranean", with massive refugee flows heading for Italy instead of Greece, west into non-too-stable Algeria, and east into Egypt ('nuff said). IOW, you could have ended up with a worse Libya non-intervention.
Now if all that happened, I can imagine a whole set of critics saying "Well, why didn't Obama intervene? The case for intervention was so clear!"
Bottom line, in the Middle East , you often have two choices: a flustercuck and a bigger flustercuck. The Libya crisis was never going to have a nice, clean denouement either way, despite the fantasies of either interventionists or the non-interventionists. Max Fisher at VOX lays it out in more detail here:
Applied to the Libyan context, this means that we're not comparing Libya, during or after the intervention, with some imagined ideal of stable, functioning democracy. Rather, we would compare it with what we judge, to the best of our ability, the most likely alternative outcome would have been had the US not intervened.
Here's what we know: By March 19, 2011, when the NATO operation began, the death toll in Libya had risen rapidly to more than 1,000 in a relatively short amount of time, confirming Qaddafi's longstanding reputation as someone who was willing to kill his countrymen (as well as others) in large numbers if that's what his survival required.
There was no end in sight. After early rebel gains, Qaddafi had seized the advantage. Still, he was not in a position to deal a decisive blow to the opposition. (Nowhere in the Arab Spring era has one side in a military conflict been able to claim a clear victory, even with massive advantages in manpower, equipment, and regional backing.)
Any Libyan who had opted to take up arms was liable to be captured, arrested, or killed if Qaddafi "won," so the incentives to accept defeat were nonexistent, to say nothing of the understandable desire to not live under the rule of a brutal and maniacal strongman.
The most likely outcome, then, was a Syria-like situation of indefinite, intensifying violence. Even President Obama, who today seems unsure about the decision to intervene, acknowledged in an August 2014 interview with Thomas Friedman that "had we not intervened, it's likely that Libya would be Syria. … And so there would be more death, more disruption, more destruction."
Now I know this is an unpopular position here (downvote away if it makes you happy!) but there actually is a good realist case for intervention, and current Libya might well be the best Libya.
JohnMcC says:
Gen Scowcroft is much appreciated by Dr Larison at TAC and I regard him as Dr Joyner regards Scowcroft — if we disagree my first response is to look at what I believe.
Glanced at his bio upon reading this and I suppose it is completely off-topic but I discovered that he is Mormon. Hummm…. We've mentioned the suspiciously strong HRC standing in Utah polling, haven't we?
grumpy realist says:
@stonetools: You iz right. A lot of the bitching and complaintsI hear about our government's foreign policy decisions really boil down to "my ideal world didn't come into existence, which undoubtedly would have happened had we done 'X'" .
Sort of like the whining that has been made about the whole Iran negotiations. The assumption that if we were to hold back would have brought a more compliant Iran to the table has to be one of the biggest pieces of self-delusion I have ever run across. Had we balked, both Russia and China would immediately bolted from the coalition, period. So it was either going along with what we could get or….nothing.
Brent Scowcroft is a respected elder statesman in the foreign policy arena. This will cause alot of heads to turn in Washington.
I'm waiting for Donald Trump to call him a loser, who doesn't know what he's talking about, and try to brand him a failure. If he doesn't, it will be a; surprise, and a hint that Trump;s handlers are actually enforcing some discipline on the man.
We will see.
Pch101 says:
A service is being held for the death of the Eleventh Commandment. ("Thou shalt not speak ill of any fellow Republican." Apparently not.)
Gustopher says:
@stonetools: I'm not convinced that Libya would have been a bigger clusterfuck had we not intervened, but I strongly doubt it would have been a lesser clusterfuck. And, with the French and the British already intervening, we just made the intervention shorter.
As far as non-intervened Libya becoming "Syria on the Mediterranean" goes… Syria is on the Mediterranean. Also, Libya might not be done reaching peak clusterfuck.
If we stealthily got rid of Assad in Syria, I expect that Syria would become a "Libya on the Mediterranean" — which would actually make things easier, since we wouldn't be on different sides from the Russians.
@EddieInCA: Or it will be a hint that Trump has no idea who Brent Scowcroft is.
That seems more likely than moderation on Trump's part.
@Guarneri:
Trump seems much more a self interest realist.
This is the only good feature that Trump has to his credit, but he is so full of shirt that I don't find it credible to believe that he won't commit US troops to some woebegone adventure when he discovers that allies won't carry the water for us and Congress taunts him as a "do-nothing President."
On the other hand, I just realized that you might be thinking about his willingness to throw "the football." I hope not.
@James Joyner: You may be right about Arab Spring viz-a-viz Bush senior and Scowcroft, but that assumes that there was something to "do."
The SNL line where Bush Sr. repeatedly says "not gonna go there, wouldn't be prudent" has as its origins a comment he threw out while getting onto Marine One about deposing Saddam Hussein (IIRC) toward the end of the first Gulf War. I gravitate toward Arab Spring being analogous.
@stonetools: I see your point and raise that the same scenario (close enough i my view at least) plays out in Somalia, the Sudan, the Congo, and a bunch of other places. Why is the ME part of our national security interests? To play the race card for a minute, why are the lives of Arabs more important than the lives of other non-Arab Africans?
I agree that the Libya we have may be the best available–it may be the only Libya available either way. I'm not sure that intervention did what you believe it did. War, in general, is, indeed, good for "absolutely nothing."
Former Right-center Neo-Con official
Not sure where you got that idea. Scowcroft enjoys a great deal of respect in the foreign policy community, with good reason. He's bright, pragmatic, highly skilled, and not overly impressed with himself. A fine public servant who has had a long and distinguished career. And I say this as a liberal Democrat.
If GW had been willing to listen to Scowcroft, much pain could have been avoided.
steve s says:
Brent Scowcroft is an adult. Listen to what he says.
An Interested Party says:
Another one chewing on sour grapes, but if he could stop chewing for a moment, perhaps he could offer a reasonable argument as to why Donald Trump would be a better president than Hillary Clinton…
@An Interested Party: The only two arguments that I've heard so far from supporters are that
1) Donald Trump is God's man for the hour, and
2) He isn't Hillary Clinton.
That's all their is, sorry.
Dazedandconfused says:
Friday, 24 June 2016 at 05:15
What it appears she was doing was mostly promoting business. Where I am Boeing is big and it's clear Boeing is very, very fond of her. They say she worked her ass off to help them sell planes, and rumor has it anybody trying to sell stuff abroad found her willing to help if at all possible.
The Clinton's are true believers in the public/private partnership model. It's a very conservative position. It's the way we have mostly done things and certainly works for the Chinese. However the modern American public has been conditioned to view either "business" or "government" as evil, and if not one or the other, both.
I suppose the stuff doesn't fare well in focus groups so the campaign avoids it, and that is probably a mistake. It's a topic difficult to frame in single sentence questions to those who instantly think "corruption" whenever they hear about business and government working together.
Brent Scowcroft, 1925-2020
Republican Foreign Policy Establishment Worried About Romney?
In Which I Disagree with Brent Scowcroft
President George H.W. Bush Dies At 94
Scowcroft: 'Hard to Make Things Better if You Don't Talk'


The purpose of the present dissertation was to document and evaluate the consultant-workshop model commonly employed by OBM consultants. The consultation took place in a non-profit human service setting that delivers behavioral services to children diagnosed with autism and their families. Workshop attendees were 13 senior therapists each of whom oversaw 6 to 8 instructor therapists who provided behavioral services to clients and 3 clinical supervisors who oversaw senior therapists. The training took place in 2005 (i.e., three years prior to this evaluation) across five months and four workshop sessions. Participants learned to pinpoint, measure, diagnose, and intervene and then they presented their project at the last workshop. Study 1 documented these projects. Pinpoint types and impact as well as effect size were evaluated. When possible, follow-up information was gathered to determine the extent to which this approach facilitated maintenance and generalization. Results indicated that projects were, in general, very effective. At follow up some components of the projects remained in place, some evidence indicated that the performance improvements maintained but there was little evidence of generalization. Study 2 compared management practices (e.g., frequency of feedback) for individuals who took the workshop and for those who did not. Results indicated that the two groups were very similar on these measures. Based on the findings, recommendations for improving the workshop model are suggested.
Gravina, Nicole E., "An Evaluation of the Efficacy of the Consultant Workshop Model in a Human Service Setting" (2008). Dissertations. 773.


The advantage of a domestic adoption is the fact that the child becomes the legal child of the adoptive family just as if he or she was born to them in marriage, which also comes with all the rights and duties that a parent-child relationship involves. Domestic adoptions are more transparent than ever before and they are considered to be healthier choices for birth families as well as for adoptive families. Here are some quick facts about domestic adoption you may want to consider when deciding on the adoption type.
1. Couples adopting domestically are usually provided with a more detailed medical record and social history of the birth parents. When adopting internationally, parents may not have access to a child's medical history.
2. Information about birth parents in a domestic adoption can include OB/GYN pregnancy history, legal situation, and family history, as well as hobbies and interests. Every piece of information you can get about your baby's birth parents is important since it enables you to answer your child's questions easily.
3. It is a common misconception that domestic adoptions cost more than international adoptions. The reality is that the cost of adoption varies depending on a number of factors. All in all, the cost varies and it is calculated based on the arrangement between birth parents and adoptive parents.
4. Domestic adoption allows your child to get more information about his or her birth parents as well as a true picture about his or her background, eliminating the chance that they may create unrealistic and unhealthy fantasies about where they came from.
5. Couples pursuing a domestic adoption should be ready to travel in a location anywhere within the country. They should plan to visit the birthmother before birth when possible, and also stay wherever she lives until after the baby is born and released from the hospital.
6. Another misconception about domestic adoption is that it takes an incredibly long time. Some families do wait two years or more to adopt a baby, but the truth is that around 75% of families adopt a baby within two to twelve months. The waiting time depends on the adoption plan, which usually includes considerations of the race of the baby, whether the adoption is going to be closed or open, what the family's budget is, and many more.
7. Domestic adoption accounts for a significant portion of all adoptions. For example, in the United States nearly 45% of all adoptions are domestic adoptions.
Adopting a baby is a life-changing decision, so it is important to know everything there is to know about the domestic adoption process itself and the type of adoption option you choose.


text:
Top 3 Nintendo Switch Emulators Free To Download In 2022
When you open the .rar file you will be confronted with another .rar file inside the main file. This will allow it to be read by Dolphin and allow you to play it. If you wish to play more classical games on your computer, use RetroArch to download video emulators for other consoles. Once you have done this, you can save your settings by giving this configuration a name in the 'Profile' box, then clicking 'Save', this means you can easily recall your settings at any time. You should only have to set up your controller once, as the last saved configuration will be used as default.
Since then, he's been melting keycaps by typing 24/7, trying to spread The Word Of Tech to anyone interested enough to listen.
If need be, then you could either ask someone you know for assistance or check the proper forums to read about other users' PlayStation 1 experiences.
Remote Support for Business Remote assistance solution for customer support teams with shared screen, voice call, and remote control.
Persona 5 is a Sony PlayStation exclusive developed by Atlus for the PS3 and PS4.
The Nintendo Switch is the latest portable console released by Nintendo. This console saw the light of day in March 2017 and, to this day, it is one of the company's most successful consoles. Due to a series of security breaches, the Nintendo console released the company's best-kept secrets, which, in addition to prompting the creation of Custom Firmware , also opened the door for Switch emulators.
Richest Rappers Of All Time And Their Net Worth
You can also access the computer's task manager for Windows platforms. Simply press Ctrl + Shift + Esc to open the task manager. From the task manager, you can head to the processes tab and then from the list, you can choose and close the programs that are not needed, making sure to not kill any system process. Next, you can also edit and change some of the sound settings.
Download the latest android emulator apk from this website. The installation procedure will be prompted, and you can complete the installation process. It has a vast library of games with more than 3000 games, from which 2035 are playable. You'll use the host hardware features, so you won't be limited by the console hardware as its capacity varies according to its HDD size and region. These PS3 ROMs and PS3 iso are available in the market, but the PS3 ROMs and iso we provide on our website stand apart from other websites. As, we provide quality assurance along with tons of features mentioned below.
Best Mac Emulators Guide: Openemu
Won't Boot The game crashes when attempting to startup. Know how you can get some cool Discord animated icons through some simple steps. Presenting the latest tool to get animated PFP and logos instantly for Discord. Users can choose between dark, light, midnight blue, etc., themes for the user interface. Online multiplayer functionality has been disabled for now. Can Run Most popular and latest titles without any lag.
Is Stranger Of Paradise A Must Play Ff Game? Review
There are now many emulators for the DS, as well as the NES, SNES, Sega Master System, Sega Mega Drive, Neo-Geo Pocket, Neo-Geo MVS , and older handheld consoles like the Game Boy Color. One of the more common type of homebrew games for the Xbox are ports of PC games whose source has been publicly released or leaked. Many classic PC games have been released for Xbox, but most are created with the XDK which limits their availability. The only places to find these ports are through IRC or peer-to-peer browsers. The Sega Genesis has no physical lockout mechanism, making it easier to release software for the system. Rick Dangerous, Rick Dangerous 2, Pier Solar and the Great Architects, and a port of Teenage Queen were released as physical cartridges.

redpajama_set_name: RedPajamaCommonCrawl


text:
Home world COVID-19 Omicron Variant Resistant to Monoclonal Antibodies – But Neutralized by Vaccine...
COVID-19 Omicron Variant Resistant to Monoclonal Antibodies – But Neutralized by Vaccine Booster
3D visualization of mutations in the spike protein of the Omicron variant. Left: overhead view. Right: lateral view. Mutations are indicated in red. They occur all over the spike protein but particularly in the receptor binding domain (RBD) and in the region known as the N-terminal domain (NTD). Credit: © Institut Pasteur – Félix Rey
The Omicron variant was detected for the first time in South Africa in November 2021 and has since spread to many countries. It is expected to become the dominant variant within a few weeks or months. Initial epidemiological studies show that the Omicron variant is more transmissible than the currently dominant virus (the Delta variant). It is capable of spreading to individuals who have received two vaccine doses and to previously infected individuals. Scientists from the Institut Pasteur and the Vaccine Research Institute, in collaboration with KU Leuven (Leuven, Belgium), Orléans Regional Hospital, Hôpital Européen Georges Pompidou (AP-HP), Inserm and the CNRS, studied the sensitivity of the Omicron variant to monoclonal antibodies used in clinical practice to prevent severe forms of the disease in people at risk, as well as to antibodies in the blood of individuals previously infected with
The scientists used rapid neutralization assays, developed by the Institut Pasteur's Virus and Immunity Unit, on the isolated sample of the Omicron virus. This collaborative multidisciplinary effort also involved the Institut Pasteur's virologists and specialists in the analysis of viral evolution and protein structure, together with teams from Orléans Regional Hospital and Hôpital Européen Georges Pompidou in Paris.
The scientists began by testing nine monoclonal antibodies used in clinical practice or currently in preclinical development. Six antibodies lost all antiviral activity, and the other three were 3 to 80 times less effective against Omicron than against Delta. The antibodies Bamlanivimab/Etesevimab (a combination developed by Lilly), Casirivimab/Imdevimab (a combination developed by Roche and known as Ronapreve) and Regdanvimab (developed by Celtrion) no longer had any antiviral effect against Omicron. The Tixagevimab/Cilgavimab combination (developed by AstraZeneca under the name Evusheld) was 80 times less effective against Omicron than against Delta.
"We demonstrated that this highly transmissible variant has acquired significant resistance to antibodies. Most of the therapeutic monoclonal antibodies currently available against SARS-CoV-2 are inactive," comments Olivier Schwartz, co-last author of the study and Head of the Virus and Immunity Unit at the Institut Pasteur.
The scientists observed that the blood of patients previously infected with COVID-19, collected up to 12 months after symptoms, and that of individuals who had received two doses of the Pfizer or AstraZeneca vaccine, taken five months after vaccination, barely neutralized the Omicron variant. But the sera of individuals who had received a booster dose of Pfizer, analyzed one month after vaccination, remained effective against Omicron. Five to 31 times more antibodies were nevertheless required to neutralize Omicron, compared with Delta, in cell culture assays. These results help shed light on the continued efficacy of vaccines in protecting against severe forms of disease.
"We now need to study the length of protection of the booster dose. The vaccines probably become less effective in offering protection against contracting the virus, but they should continue to protect against severe forms," explains Olivier Schwartz.
"This study shows that the Omicron variant hampers the effectiveness of vaccines and monoclonal antibodies, but it also demonstrates the ability of European scientists to work together to identify challenges and potential solutions. While KU Leuven was able to describe the first case of Omicron infection in Europe using the Belgian genome surveillance system, our collaboration with the Institut Pasteur in Paris enabled us to carry out this study in record time. There is still a great deal of work to do, but thanks to the support of the European Union's Health Emergency Preparedness and Response Authority (HERA), we have clearly now reached a point where scientists from the best centers can work in synergy and move towards a better understanding and more effective management of the pandemic," comments Emmanuel André, co-last author of the study, a Professor of Medicine at KU Leuven (Katholieke Universiteit Leuven) and Head of the National Reference Laboratory and the genome surveillance network for COVID-19 in Belgium.
The scientists concluded that the many mutations in the spike protein of the Omicron variant enabled it to largely evade the immune response. Ongoing research is being conducted to determine why this variant is more transmissible from one individual to the next and to analyze the long-term effectiveness of a booster dose.
Reference: "Considerable escape of SARS-CoV-2 Omicron to antibody neutralization" by Delphine Planas, Nell Saunders, Piet Maes, Florence Guivel-Benhassine, Cyril Planchais, Julian Buchrieser, William-Henry Bolland, Françoise Porrot, Isabelle Staropoli, Frederic Lemoine, Hélène Péré, David Veyer, Julien Puech, Julien Rodary, Guy Baela, Simon Dellicour, Joren Raymenants, Sarah Gorissen, Caspar Geenen, Bert Vanmechelen, Tony Wawina-Bokalanga, Joan Martí-Carrerasi, Lize Cuypers, Aymeric Sève, Laurent Hocqueloux, Thierry Prazuck, Félix Rey, Etienne Simon-Lorrière, Timothée Bruel, Hugo Mouquet, Emmanuel André and Olivier Schwartz, 23 December 2021, Nature.
DOI: 10.1038/d41586-021-03827-2
bioRxiv
Previous articleWeek 1 in review: Galaxy S21 FE is here, CES 2022 in the books
Next articleIs Space Pixelated? The Quest for Quantum Gravity
Measuring Trust in Artificial Intelligence (AI)
Schrödinger's Bewilderment – Quantum Theory Needs Complex Numbers
T Cells From Common Colds Cross-Protect Against COVID-19 Infection


text:
Exclusive: Last Night in Soho Bonus Feature Clip With Edgar Wright & Krysty Wilson-Cairns
ComingSoon is excited to debut an exclusive bonus feature clip from the psychological horror drama Last Night in Soho ahead of its release on 4K UHD, Blu-ray, and DVD on January 18 from Universal Pictures Home Entertainment (pre-order here).
In this exclusive clip, writer/director Edgar Wright and writer Krysty Wilson-Cairns talk about how '60s music was used to great effect in creating the time-travel world of the film.
RELATED: Edgar Wright Talks Inspirations Behind Psychological Thriller Last Night in Soho
"In this psychological thriller, Eloise (Thomasin McKenzie, Jojo Rabbit, Old), an aspiring fashion designer, is mysteriously able to enter the 1960s, where she encounters a dazzling wannabe singer, Sandie (Anya Taylor-Joy, Emma, The Queen's Gambit)," reads the official synopsis. "But the glamour is not all it appears to be, and the dreams of the past start to crack and splinter into something far darker."
Check out the exclusive Last Night in Soho bonus feature clip below:
The movie also stars Matt Smith (The Crown, Doctor Who) and Michael Ajao (Attack the Block, Silent Witness).
RELATED: Interview: Thomasin McKenzie on Edgar Wright's Last Night in Soho
BONUS FEATURES ON 4K UHD, BLU-RAY, DVD, AND DIGITAL:
–MAKING OF FEATURETTES
MEET ELOISE – An in-depth look at the character of Eloise and the challenges that star Thomasin McKenzie faced while bringing her to life.
DREAMING OF SANDIE – A closer look at the characters of Sandie and Jack and why Anya Taylor-Joy and Matt Smith were the perfect actors to embody the essence of the time period.
SMOKE AND MIRRORS – The cast and crew break down how lighting, makeup, special effects, and creative camerawork came together to create a collision between the present day and 1960's time periods.
ON THE STREETS OF SOHO – The cast and crew discuss the importance of shooting on location in Soho and the complexity of transforming the city streets back in time.
TIME TRAVELLING – A look into how the music, costume design, and production design of the film work together to immerse the audience into the world of 1960's Soho.
FIRST DREAM
SHADOW MEN
FINAL CONFRONTATION
HAIR & MAKEUP TESTS**
LIGHTING & VFX TESTS**
WIDE ANGLE WITNESS CAM
ACTON TOWN HALL STEADICAM REHEARSAL**
–"DOWNTOWN" MUSIC VIDEO**
–TRAILERS**
–FEATURE COMMENTARY WITH DIRECTOR/CO-WRITER EDGAR WRIGHT, EDITOR PAUL MACHLISS AND COMPOSER STEVE PRICE
–FEATURE COMMENTARY WITH DIRECTOR/CO-WRITER EDGAR WRIGHT AND CO-WRITER KRISTY WILSON-CAIRNS
**available on 4K, BD, and Digital only
Previous "THE PROUD FAMILY: LOUDER AND PROUDER" DEBUTS FEBRUARY 23RD
Next Timothy Olyphant to Return as Raylan Givens in Justified: City Primeval Series
An overdue presser: Biden set to take reporters' questions in first formal news conference in months – CNN January 19, 2022
UK's Johnson, facing 'pork pie' plot to oust him, says he will not resign – Reuters UK


text:
The Rambler [by S. Johnson and others]., Volume 5
abilities. Interest and passion will hold out long against the closest siege of diagrams and syllogisms, but they are absolutely impregnable to imagery and fentiment; and will for ever bid defiance to the most powerful strains of Virgil or Homer, though they may give way in time to the batteries of Euclid or Archimedes.
In trusting therefore to the sentence of a critick, we are in danger not only from that vanity which exalts writers too often to the dignity of teaching what they are yet to learn, from that negligence which sometimes steals upon the most vigilant cau. tion, and that fallibility to which the condition of nature has subjected every human understanding ; but from a thousand extrinsick and accidental causes, from every thing which can excite kindness or malevo, lence, veneration or contempt.
Many of those who have determined with great boldness upon the various degrees of literary merit, may be justly suspected of having passed sentence, as Seneca remarks of Claudius,
Una tantum parte audita,
Sape et nulla,
without much knowledge of the cause before them : for it will not easily be imagined of Langbaine, Borrichius, or Rapin, that they had very accurately perused all the books which they praise or censure; or that, even if nature and learning had qualified them for judges, they could read for ever with the attention necessary to just criticism. Such performances, however, are not wholly without their use ; for they are commonly just echoes to the voice of fame, and
transmit the general fuffrage of mankind when they
have no particular motives to suppress it.
Criticks, like the rest of mankind, are very
fre. quently milled by interest. The bigotry with which editors regard the authors whom they illustrate or correct, has been generally remarked. Dryden was known to have written most of his critical differtations only to recommend the work upon which he then happened to be employed; and Addison is fuso pected to have denied the expediency of poetical justice, because his own Cato' was condemned to perish in a good cause.
There are prejudices which authors, not otherwise weak or corrupt, have indulged without scruple; and perhaps some of them are so complicated with our natural affections, that they cannot easily be disen, tangled from the heart,
Scarce any can hear with impartiality a comparison between the writers of his own and another country, and though it cannot, I think, be charged equally on all nations, that they are blinded with this literary patriotism, yet there are none that do not look upon their authors with the fondness of affinity, and esteem them as well for the place of their birth, as for their knowledge or their wit. There is, therefore, seldom much respect due to comparative criticism, when the competitors are of different countries, unless the judge is of a nation equally indifferent to both, The Italians could not for a long time believe, that there was any learning beyond the mountains; and the French seem generally persuaded, that there are no wits or reasoners equal to their own. I can scarcely conceive that if Scaliger had not considered himself as allied to Vir,
gil, by being born in the same country, he would have found his works so much superior to those of Homer, or have thought the controversy worthy of so much zeal, vehemence, and acrimony.
There is, indeed, one prejudice, and only one, by which it may be doubted whether it is any dishonour to be sometimes misguided. Criticism has so often given occasion to the envious and ill-natured of gratifying their malignity, that some have thought it necessary to recommend the virtue of candour with. out restriction, and to preclude all future liberty of censure. Writers possessed with this opinion are continually enforcing civility and decency, recommending to criticks the proper diffidence of themselves, and inculcating the veneration due to cele. brated cames.
I am not of opinion that these professed enemies of arrogance and severity have much more benevolence or modesty than the rest of mankind; or that they feel in their own hearts, any other intention than to distinguish themselves by their softness and delicacy. Some are modest because they are timorous, and some are lavila of praise because they hope to be repaid.
There is indeed some tenderness due to living writers, when they attack none of those truths which are of importance to the happiness of mankind, and have committed no other offence than that of betraying their own ignorance or dulness. I should think it cruelty to crush an insect who had provoked me only by buzzing in my ear; and would not will. ingly interrupt the dream of harmless stupidity, or destroy the jest which makes its author laugh. Yet I am far from thinking this tenderness universally necessary; for he that writes may be considered as a kind of general challenger, whom every one has a right to attack ; since he quits the common rank of life, steps forward beyond the lists, and offers his merit to the publick judgment. To commence author is to claim praise, and no man can justly afpire to honour, but at the hazard of disgrace.
But whatever be decided concerning contemporaries, whom he that knows the treachery of the human heart, and confiders how often we gratify our own pride or envy under the appearance of contendo ing for elegance and propriety, will find himself not much inclined to disturb; there can surely be no exemptions pleaded to secure them from criticism, who can no longer suffer by reproach, and of whom nothing now remains but their writings and their names. Upon these authors the critick is undoubtedly at full liberty to exercise the strictest severity, since he endangers only his own fame, and, like Æneas when he drew his sword in the infernal regions, encoun. ters phantoms which cannot be wounded. He
may indeed pay some regard to established reputation ; but he can by that shew of reverence consult only his own security, for all other motives are now at an end.
The faults of a writer of acknowledged excellence are more dangerous, because the influence of his exe ample is more extensive; and the interest of learning requires that they should be discovered and stigmatized, before they have the fanction of antiquity conferred upon them, and become precedents of ina disputable authority.
It has, indeed, been advanced by Addison, as one of the characteristicks of a true critick, that he points out beauties rather than faults. But it is rather na. tural to a man of learning and genius to apply himself chiefly to the study of writers who have more beauties than faults to be displayed: for the duty of criticism is neither to depreciate, nor dignify by partial representations, but to hold out the light of reason, whatever it may discover; and to promulgate the determinations of truth, whatever the shall dictate.
THE *HE resemblance of poetick numbers to the
fubject which they mention or describe, may be considered as general or particular; as consisting in the flow and structure of a whole passage taken together, or as comprised in the found of some emphatical and descriptive words, or in the cadence and harmony of single verses.
The general resemblance of the found to the sense is to be found in every language which admits of


Find and Book Campervan Rentals from across the UK.
1974 VW Late Bay Window Westfalia Camper.
Coast is a 2008 Brazilian Bay with a modern 1.4l water cooled engine and speed sensitive direct drive power steering.
Van'inho is our classic Type 2. Given the place of his berth (sorry birth…Brazil in 2012) Van'inho can often be found steering a path to the nearest sandy beach.
Poppy is our cool Californian 1965 LHD VW Splitscreen Camper, dressed elegantly in Chianti Red and Pastel White bodywork.
Elvis has an authentic 'Westfalia' interior (Elvis is a 'Devon' type model campervan) which has been restored.
Our beautiful Split Screen Vintage VW Campervan.
Kool Campers is here to help. Simply register for your free account and then add your van.


Gold IP Stainless Steel Necklace with Swarovski Clear Crystal Ball.
You can get any names hand stamped or any words.
The circle is 35mm and the Crystal Ball is 10mm.
Gold IP Stainless Steel chain is 45cm if you prefer longer or shorter please let me know the size you prefer.


text:
Q: CommonJS / RequireJS - Circular module dependencies I would like to ask what is the mechanism behind the commonjs/requirejs circular module dependency resovling.
Let me give you an example. Lets assume we have following module structure
 modulea
     index.js
     submodulea_a.js
     submodulea_b.js

moduleb
     index.js
     submoduleb_a.js
     submoduleb_b.js

where modulea/index.js and moduleb/index.js just reexports interesting functionality of sub modules. i.e.:
 var aa_class = require("./submodulea_a").aaclass;
 var ab_class = require("./submodulea_b").abclass;

 module.exports aa_class;
 module.exports ab_class;

also, lets assume that in aa submodule i'll do:
 var ba_class = require("moduleb").ba_class;

the same is valid for B but lets say that in submodule b I will do:
var aa_class = require("modulea").aa_class;

As you can see, there is no direct circular dependency of one class on another across modules but there is circular module dependency as modulea requires moduleb and moduleb requires modulea (better said, re-exports of something from submodules).
How this is resolved by the node commonjs or requirejs in order to avoid stack overflow? Is there something like "late binding" or whatever? I would say no as commonjs is synchronous as far as I know.
Thanks
EDIT:
So I did some research with module structure described and it seems it works similarly to the following process:

*

*Resolve module name (package.json, node_modules, relative paths...)

*Load the module code (.js file)

*Mark the current module it is being initialized (resolved)

*Prepare "empty" ( {} ) exports and publish it for the current module (other modules will use it for imports during require even if it is empty)

*Process loaded module (execute it) and if require is found, resolve the module in the same way as the current one

*Once the module execution is done, mark it as it is initialized (resolved)

if the module being initialized or initialized already is required to be loaded again, the cached version of its exports is used.
the problems which can't be resolved:
When circular module is about to be loaded it seems there is no way how to resolve:
var aa_class = require("modulea").aa_class;

inside of the module B as aa_class of the module A is not available at the time when it was required as initialization of module A handed over the execution to module B before the aa_class was exported from module A. So only the one thing available to module B is empty exports object from the module A. And I can't see any way to solve this what is bad because if I would like to extend the aa_class in bb_module I am lost.

A:
Is there something like "late binding" or whatever?

With RequireJS yes there is. You could call it "late binding" or "lazy loading".
The documentation on Circular Dependencies uses this example.
//Inside b.js:
define(["require", "a"],
    function(require, a) {
        //"a" in this case will be null if "a" also asked for "b",
        //a circular dependency.
        return function(title) {
            return require("a").doSomething();
        }
    }
);

A: So long as the modules aren't used on the top level of the file, you can import them after you export the current module:
a.js:
class A {
  getB() { return new B() }
}

module.exports = A
const B = require('./b.js')

b.js:
class B {
  getA() { return new A() }
}

module.exports = B
const A = require('./a.js')

redpajama_set_name: RedPajamaStackExchange


text:
Q: como colocar fecha por defecto en la fecha ion-datetime ionic tengo muchos problemas con ese formato de fecha de ion-datetime. Solo quiero pasarle el campo date que esta en formato '2017-01-01 04:39:00' a ion-datetime pero me sale error de formato. Llevo varias horas buscando como solucionar esto y no aparece nada

A: Declaramos la variable y en el constructor la igualamos

  myDate: any ;

  constructor(public navCtrl: NavController) {
    this.myDate = "2020-12-01";
  }

luego en el html
<ion-datetime displayFormat="YYYY-MM-DD" [(ngModel)]="myDate"></ion-datetime>

Resultado

el problema es cuando intestas una fecha asi
2020-12-01 03:25:00
es decir  yyyy-MM-dd hh:mm:ss
yo creería que la mejor opción es manejar las fecha y horas por se parado


lovely turn, sneza. i especially like the contradiction in the idea of taking risks but being restrained/constrained in a pre-established order. as to say taking a risk should also and could also happen while following boundaries constructed by someone else. a very nice twist occurs in the second line -- i like it.
thanks! this verse refers to harryette mullen and her "sleeping with the dictionary," so i'm following the rules for this renga. btw--hackers have deleted all the e-mails from my inbox and all the contacts from my address book. please send me and e-mail at szabic2@uic.edu or szabic2@gmail.com, so i can have your contact again.


text:
Free West Papua!
Socialist Alliance National Council
Protest for West Papua in Melbourne in September. Photo: Meghan Street/Green Left Weekly.
The recent uprising in West Papua was sparked by racist attacks on Papuan students in the Indonesian city of Surabaya. However, the West Papuan people have been struggling for more than 60 years against Indonesian occupation, human rights violations and for the right of self determination.
Indonesian occupation has led to human rights abuses, disappearances, kidnappings, extrajudicial killings, forced displacement and the deaths of an estimated 500,000 Papuans.
The Australian government is complicit in Indonesia's repression of Papuan demands for self-determination and has a long history of opposing West Papuan self determination, right back to the end of Dutch colonisation.
Australia has supplied military helicopters used to carry out attacks, including napalm bombings and (along with Britain and the United States) trains Indonesian troops.
In 2006, the Australian government signed the Lombok Treaty with Indonesia, a security agreement that recognises Indonesian sovereignty over West Papua and precludes Australia's involvement in West Papuan matters.
In 2013, then prime minister Tony Abbott said "the people of West Papua are much better off as part of a strong, dynamic and increasingly prosperous Indonesia".
In September, while protests were being violently repressed by Indonesian troops, the Australian government publicly reiterated its recognition of Indonesia's sovereignty over West Papua.
The ALP's position is no better. While a Labor spokesperson recently expressed "distress" and "concern" about the recent violence and affirmed Labor's support for the right to "peacefully express political views" in West Papua, they also made reference to Indonesian sovereignty over West Papua under the Lombok Treaty.
Since August, untold numbers of protesters (many of them students) have been killed, arrested or disappeared. The internet is still shut down and journalists not allowed in.
Human rights activist Surya Anta, spokesperson for the Indonesian People's Front for West Papua has been arrested. Human rights lawyers have been interrogated and activists charged with sedition.
Australian-based human rights lawyer Veronica Koman is now wanted by the Indonesian government for her work in exposing the arrests, killings and repression in West Papua.
We demand the immediate release of all political prisoners, including Surya Anta and the withdrawal of all military forces from West Papua.
We call on the Australian government to:
1. End its military training of repressive Indonesian forces;
2. Demand that Indonesia cease its violent repression of West Papuans, restore the internet and allow journalists inside West Papua;
3. Respect the right to self-determination of the Papuan people by calling for an internationally monitored referendum on independence; and
4. Grant human rights lawyer Veronica Koman protection and not hand her over to Indonesia.
[This resolution was adopted by the October 5–6 meeting of the Socialist Alliance National Council.]
Refugee and Immigrant Rights


text:
American Football Season In Portugal In Full Swing With A Shocking Early Upset!
Roger Kelly | Algarve Sharks	| 12/11/2015
The Portuguese American Football Federation (LPFA – Liga Paulista de Futebol Americano ) season is already fully underway, well before Christmas. A season which traditionally kicked off in early January in Portugal and finished in late May, has started slightly early this year.
And it has already offered up surprises with a major upset and power shift. The Lisboa Devils, in only their second season, have not only emerged as an early favorite but in the process they crushed their crosstown rivals and five-year defending champion Lisboa Navigators 51-8. The suddenness of this change has sent tremors through the league.
The Lisboa Navigators have dominated American football in Portugal since their inception in 2009. They have won the league title every year since then. They had not been beaten since 2013. This was a loss of epic proportions.
Malcolm Gasque
The reason for this sudden improvement? The Devils have signed three American imports, highly unusual in Portuguese American football. Quarterback Joey Bradley, ex NFL tight end Collin Franklin (Tampa Bay Buccaneers) and Malcolm Gasque. Meanwhile, Canadian Anthony Skinner has taken over much of the coaching duties, but with a twist. He works as a distance coach. Relying on Hudl and various other digital methods he helps the team from his home in Ottawa and then flies over a couple of times a year when his duties as an Ottawa City police officer allow him.
In fact, his impact was noticeable this past season when the Devils in their first year in the league advanced to the semi-finals and were ousted by the Navigators but by a narrow 34-29 score.
In the season opener on November 21, the Navigators and Lisbon Crusaders faced each other in a rematch of the league championship game with the Navigators coming out on top 15-7. On that same weekend the Paredes Lumberjacks beat the Black Knights ( new team in the league, a team from Braga ) 38-0. The Porto Mutts and Porto Renegades clashed and the Mutts won 35-6.
The following weekend, the Algarve Sharks played and won against the Crusaders 32-19 in the first real upset of the season. The Sharks have also signed imports for the first time including four Americans, three players from Serbia and a Brazilian (they speak Portuguese in Brazil). The Sharks are also making a statement as title contenders. With this defeat the Crusaders, finalists last year, have already lost two games in a row.
On that same weekend the Braga Warriors played and won 28-3 against the MAIA Mustangs.
The Lumberjacks played the Mustangs and won 20-10. Also the Warriors and Mutts played with the Mutts coming out on top 32-0.
So with 10 teams vying for the league title, it appears that a couple of favorites have already emerged as the Lisboa Devils and Algarve Sharks seem to have turned the league on its head. This will be a fascinating season for American football in Portugal. With the Devils competing in the IFAF Europe Champions League tournament in 2016, Portugal is poised to step up and join the rest of Europe.
This weekend, the Lisbon Crusaders, desperate to avoid a third straight defeat, face a tough test with the Sharks coming to town. Meanwhile, newcomers the Braga Black Knights will play away against the Porto Renegades.
League Standings (after two weeks of play)
Photo credits: Miguel Nawareth, Margarida Cautela
Roger Kelly
Roger Kelly is an editor and a writer for AFI. A former PR Director the B.C. Lions of the Canadian Football League for 7 years, he now lives in Sweden writing about and scouting American Football throughout the world.


Submitted by Taija on Thursday, February 1, 2018 - 02:58.
It's 7:15 in the morning. The numbers of the phone display look complainingly at her. She's been in bed for two hours. She is actually very tired but the thoughts and the tensions do not let her sleep. The days before that, she didn't sleep much either. It happens a lot.
She's thinking about what she wants to do and what she should do. She's thinking about what she can't do. She goes through all the scenarios in her head and makes a plan for everything. She can't help it. Control is all she has and the independence of her thoughts does not allow her to rest and the tensions grow.
So she's doing the only thing she can do. She gets up, walks into the bathroom and turns up the shower. The water is too hot, but she's getting under it anyway. It helps against tension and she likes the warmth. Everything's better than showering too cold.
She's been showering for a long time. She doesn't know how long. She has lost track of time and she is still thinking. She wants to stop the thoughts and tensions, but they don't.
She dresses and walks outside her front door. It's way too cold. "That's good.", she thinks to herself. Then she starts walk. She's freezing. She ignores it. She is moving fast. The legs start to hurt. "That's good, too.", she thinks to herself. She continues for a long time. She keeps moving until her legs shake and hurt terribly. Then she starts walking back. She's still trapped in thoughts.
When she arrives home, she is tired and exhausted. She puts her back to bed but still can't sleep. She lies there for a while and really tries it but the thoughts do not leave her.


Once shoppers register on the CapitaStar app, they can scan a QR code at a participating retailer's smart terminal, select the e-payment mode and the transaction will be processed. Smart terminals will be provided to participating retailers at no cost by the end of the year.
Ms Ooi Huey Tyng, managing director of GrabPay Singapore, Malaysia and the Philippines, said: "By integrating GrabPay and StarPay, we can reach more consumers and merchants, while enabling Grab users to pay conveniently via GrabPay at more locations."
StarPay will also let shoppers earn STAR$ reward points that can be exchanged for CapitaLand vouchers. These can be earned from purchases automatically without having to scan receipts, as long as the shopper spends a minimum of $1.
CapitaLand president and group chief executive Lim Ming Yan said: "Ultimately, we want to create a seamless experience, where it is easier for our shoppers to find what they want, pay for the item in any preferred mode of payment, be rewarded instantly with STAR$ and enjoy better customer service round the clock."
The firm noted that the data from the mobile all-in-one service can provide insights for retailers.
"For CapitaLand retailers, we strive to translate insights into business outcomes - whether that be increased productivity, improved sales or better customer service," Mr Lim added.
More e-payment modes can be expected to come on board by the end of the year, said CapitaLand.
Correction: This story has been updated for clarity.


Discover 2019s latest clothing trends from fashion's top designersand see how your favorite celebrities are wearing and pairing their perfectly selected fusion of accepted and perpetual clothes. acquire upon fashion's cutting-edge right now with our editors' picks for trendy bureau ideas and shop our curation of celebrity-approved dresses, jeans, shirts, skirts, sweaters and jackets that will become your own wardrobe staples.
Related Posts of "Cheap Brand Name Clothes – 2019 2017 African Fashion Design Suits Sets Women"


Rules for claiming an unrelated child on your taxes can be tricky.
1. What Is the Difference Between Gross Income & Adjusted Gross Income?
2. Can I Count Mileage When Itemizing Deductions?
The IRS allows you to take deductions for people who qualify as your dependents. There are two groups of people you can claim as dependents: qualifying children and qualifying relatives. Each of these groups has different rules for eligibility as defined by the IRS.
If an unrelated child meets the IRS definition of a "qualifying dependent," you will be able to claim him on your taxes.
The IRS rules for qualifying children state that the child must have lived with you for more than half the year and must not have earned more than half of his or her own support. The child can be your son or daughter, but other relationships are also allowed such as your stepchild, sibling, half sibling, step sibling or the descendant of any of these relationships. For IRS purposes, an adopted child is treated as your own child. A qualifying child can also be a foster child that was placed with you by a government agency or court order. Additional rules state that a qualifying child must be age 18 or younger, or under age 24 if a student.
The IRS does not allow the same child to be claimed as a dependent on more than one tax return. Taxpayers who don't follow the rules for qualifying children could be subject to IRS penalties for claiming false dependents. Children who live with you but do not meet the qualifying child rules may still be claimed as a qualifying relative if related to you by blood or marriage.
There are a couple of important exceptions related to the age of a qualifying child. A child who passes the relationship test and is permanently and totally disabled can be claimed as a tax dependent at any age. Persons who meet the qualifying child requirements but are older than the taxpayer or the taxpayer's spouse when filing jointly cannot be claimed as dependents.
There have been a number of changes to the tax law that will affect tax returns submitted in 2019 for the 2018 tax year, including new tax brackets and rates, but the definition of a qualifying dependent child has not changed. For the 2018 tax year, the standard deduction allowed for a dependent child is either $1,050 or the sum of the child's earned income plus $350, whichever is greater.
If you are filing late for the 2017 tax year, you are still subject to the same qualifying child rules for claiming dependents. You can claim a $4,050 deduction for each qualifying child, regardless of the child's income, as long as you paid for at least half of the child's support.
Liberty Tax: Who Qualifies as a Dependent on Taxes?
Can I Deduct Unreimbursed Medical Expenses for a Foster Child as Charity on My Taxes?


text:
Women's European Cups Preview
From the 20th until the 25th of August, three different European Cups are being played in Europe: the Women's European Premiere Cup (XLI) in Forli (Italy), the Women's European Winners Cup (XXVII) in Capelle a.d. IJssel (the Netherlands) and the Women's European Cup (XXV) in La Loggia (Italy).
During the Premiere Cup, National Champions from the top 10 (qualified) European countries compete for the title of the Club European Champion 2018. This year we have nine club teams, from eight different countries (Italy has two participants since they are the host country). Since the first tournament in 1978, the title has mostly gone to the Italian or Dutch teams except in 2009 and 2013 where they were won by an Austrian and Czech team. Since there are no newcomers this year, every team knows what the taste is like. Will last year's winner, Bussolengo (ITA), be able to defend their title or will one of the other teams go home with the gold medal?
To follow the games see the following links:
Livestream (all Olympia Haarlem and Forli games): Softbal Dino
Play-by-play and schedule: HERE
Facebook page: HERE
At the Winners Cup, National Cup winners compete for the European Cup. The number of teams is limited to one team per country (plus the defending champion and the host). This year's edition will have 12 teams from 11 different countries. Since the first tournament in 1992, the title has been traveling to several countries. The last two editions, it was Olympia Haarlem who took home the gold medal. Since they advanced to the Premiere Cup now, it's time for someone else to take the title again. This year, we may welcome two newcomers to this edition: Euro Stars (NED, organizer) and Titans (BOT).
Livestream (all evening games): ESF Youtube Channel
At the European Cup, National Champions not-qualified to the Premiere Cup are competing for the first place in the Women's European Cup to qualify for the Premiere Cup for the next season. This year's edition consists of nine teams from nine different countries. In the past 24 editions, the title has been traveling to a different team almost every year. Seven out of nine teams are participating for the first time in this edition, which will make it an interesting one: Witches Asko Linz (AUT), Amager Vikings (DEN), The Mix (GBR), La Loggia (ITA), ISA NZ (New Zealand), Hrabiny Wroclaw (POL) and Fenix Valencia (ESP).
- Romy Marinus -


HEALTH Minister Dr Duane Sands took the stand yesterday in former PLP Senator Frank Smith's criminal trial, but his testimony was cut short after the defence took exception to Dr Sands' revelation that there have been previous occasions where the minister of health approved contracts without the approval of the Public Hospitals Authority's board of directors.
Chief Magistrate Joyann Ferguson-Pratt granted the one day adjournment after Smith's lead attorney Keith Knight, QC, said his side was "embarrassed" by Dr Sands' claims that in 2014 and 2015, there were instances where the then-minister of health approved contracts that may or may not have been approved by the PHA board.
Dr Sands' revelation came a day after PHA Board Secretary and Legal Advisor Leslie Isaacs alleged during her testimony that there was a breach of standard PHA protocol through the approval of a $1.9m contract to Magic Touch Cleaning Company, the business owned by the virtual complainant in Smith's trial, Barbara Hanna, ahead of the board's approval.
This contract was approved about three months after Smith faced criminal charges.
Yesterday however, Mr Knight objected to Dr Sands' claims — which arose from a question put to him by lead Crown attorney Edward Jenkins, QC, arguing that the minister's claims were not contained in his original statement to police, and as such the defence was not privy to that information and unable to adequately address it.
Mr Knight further contended that Dr Sands' claims raised the issue of the health minister's knowledge at the time of PHA's protocols, how he came to be knowledgeable of what he claimed in court yesterday, as well as the capacity he served in at the time.
Furthermore, Mr Knight noted that Dr Sands made the claims during examination-in-chief as opposed to cross-examination or re-examination.
Giving his opinion on the issue, Chief Magistrate Ferguson-Pratt said that it would only be fair for Smith's legal team to be served with notice of any evidence the Crown intends to rely upon that is separate and apart from Dr Sands' original statement and/or its primary case against the accused.
Crown prosecutor Kendra Kelly, in seeking to defend the Crown's position on the matter, asserted that while she accepts that the Crown must disclose the evidence it intends to rely on, Dr Sands' original statement merely serves as a summary or "guideline" and may not cover everything the witness may say on the stand.
Chief Magistrate Ferguson-Pratt said she concurred with Ms Kelly's assertion that the Crown has a duty to disclose its case, but said that if the Crown intends to lead its evidence in summary fashion, it cannot then, in fairness to the defence, rely on "extraneous" issues which in turn go to the "crux and core" of the present case.
Mr Knight proposed that the Crown facilitate Dr Sands giving a further statement to police concerning Smith's case, which would in turn be disclosed to Smith's side and that the defence would in turn take no exception to it being served at such short notice.
Mr Jenkins indicated that he would be "more than happy" to oblige the defence's request, and that he had no intention of deviating from the rules of disclosure.
However, the English attorney indicated that he would not be rushed in doing so, and suggested that securing a fresh statement from Dr Sands could take longer than the allotted time for yesterday's proceedings.
Noting that the matter could not proceed any further in the circumstances, it was consequently adjourned to 10am today.
Smith pleaded not guilty to all the allegations during his arraignment last July.


text:
After last season Hurricane Redskin fans may have wondered what Steven Shine can do for an encore. The 6'4" 240 lb senior is out to show fans that they aint seen nothing yet.
Shine lead the Redskins with 7 sacks and 16 tackles for loss among his 58 stops in 2016, although he missed one game and part of another. When on the field he wrecked havoc on opposing offenses and raised fear in the hearts of quarterbacks across the state. In addition, during Hurricane's playoff win at University Steven returned a interception for a TD.
As he enters his senior season he knows the coaching staff will be counting on him in several ways. "I will be playing some Tight End and H-Back" Shine told us this evening. The thought of some of the smaller defensive backs having to deal with Steven baring down on them will create nightmares across the Kanawha Valley.
Shine picked up another responsibility over the summer. "Yeah I'm the long snapper!" When asked how that happened, he said, "I have not snapped the ball since midget league, but when coach asked if anyone could do it, I said I could, and I won the job."
Steven did not play during the Winfield game last season, so he has waited two years for his chance to line up against the Generals. "I cant wait, it will be a real battle, a blood bath," Shine offered with a smile. Although Steven was cautious as he feels that the Redskins did "not play too well," during their recent scrimmages, "but today we stepped it up and will be ready for Friday."
Shine is confident that he is well conditioned for any and all roles that lie ahead, "We run all practice, all day, we sprint on the field, we sprint off the field we never stop." As if anyone doubts him, on this day after a work out and a long practice, Shine put in some extra work on the sled after most of his teammates were long gone.
Besides the home opener, Shiine has another game he is looking forward to, "Spring Valley," he says. "I got hurt in the first half and they kinda wore our defense down. I like competing against them."
Shine is quick to to give credit to his teammates on the defensive side of the ball. "Our front line is really strong, our secondary has speed, especially if D-Will and Curon are out there, and J.T. and Lunsford in the middle are strong and fast." Add Steven to that mix and the Redskins are primed for success. Success that Steven hopes takes the Redskins to a state title in 2017.
It is a family affair for Steven this season, not only is his Dad, Steve, a Redskin assistant coach but also his brother Corbin is a freshman CB/Safety for the Skins. "Corbin is tough, after all he has had to put up with me for 15 years," Steven laughs, "but he is pretty good I think he will get some reps this season, that would be a blast." And having Dad as a coach? "It was kinda tough at first, but now I'm taking the advice he gives me at practice."
Our advice for Hurricane opponents? Watch THAT guy!
#Shine


text:
Latest data: Number of foreign PMETs continues to increase in Singapore
in Current Affairs, Labour
Last week, the Manpower Ministry (MOM) finally released its foreign workforce numbers.
The figures show that even though the number of foreign PMETs on Employment Pass (EP) decreased slightly in the last 2 years from 192,300 to 185,800, the total number of foreign PMETs (i.e, those on EP and S Pass) was increasing:
In particular, the number of foreign PMETs on EP and S Pass hit a total of 381,300 by the end of last year, with no sign of abating.
Comparing figures from 2017 to 2018, even though number of foreign PMETs on EP decreased by 1,900, the number of S Pass holders actually shot up by 11,100, hitting a new high at 195,500:
One of the reasons for the decrease in number of EP holders vs that of S Pass holders could be because of the lower salary requirement of $2,300 for foreign S Pass holders. For foreign EP holders, the minimum is now at least $3,600. Both require the foreign applicants to have suitable qualifications.
Companies try to apply Work Permit for foreign PMETs instead
In a new worrisome trend, some companies are now even applying Work Permits for their foreign PMETs, in an attempt to bring them in at below $2,300 or to circumvent the S-Pass quota. The Work Permit traditionally is meant for semi-skilled foreign workers to work in sectors like construction, manufacturing, marine shipyard, process and service industries.
Take for example, a foreign PMET recently posted on the Singapore Expat Forum revealing that he is trying to obtain a Work Permit to work in Singapore despite being a "skilled" IT personnel.
Apparently, he studied in some school in Singapore and graduated with a diploma in IT in December. Thereafter, he successfully applied for a, presumably, IT job here and was offered a salary of $2,400 a month by a company.
The company said that he would not be eligible for EP or S-Pass and is trying to employ him by applying for a Work Permit.
"I am so worried. How many chances that my work permit will be approved?" the foreigner asked.
Since the salary offered to the foreign applicant is above the $2,300 minimum for S Pass holders, one can only assume that perhaps the company has exceeded its S Pass quota allotment.
Under the quota stipulated by MOM, the number of S Pass holders a company can hire is capped at 15% of the company's total workforce in the services sector or 20% for the other sectors.
Meanwhile, many of the retrenched but highly qualified Singaporean PMETs are resorting to driving Grab or taxi to survive, like this Singaporean who was interviewed by Transitioning.org last year.
He used to earn $15,000 a month working for a pharma company as its regional Training, Sales and Marketing Manager before scaling down to $5,000 working for an Indian start-up. Finally, he ended up driving a cab, taking home $2,000 to $3,000 a month.
"After the retrenchment, was hired as Business Development Manager for a new Indian start-up company and after 6 months of showing all my contacts and connections, I was told to either resign or they would find a reason to fire me. Pay was around $5,000 a month," he told his story to Transitioning.org.
"Searching for a job has been difficult from using connections to head hunters to papers and online portals. Sent so many applications but no response. Went for a few interviews and in the end never get an offer. I have already given up on job hunting."


Come for a visit to Walker Island where you'll find stunning Pacific Northwest ocean views, men too intriguing to resist...and five beautiful, close-knit sisters who are each about to find their one true love. After four years on the Seattle mainland, when Hanna Walker returns to Walker Island to make a documentary about the infamous Walker-Peterson feud from the early 1950s, she's shocked to realize that passions still run high. Especially when it comes to Joel Peterson, the one man who is totally off-limits…but that she's never been able to stop dreaming about.
On the verge of losing her candy store, Callie Moore decides to blot out her troubles with a tall, dark, handsome stranger. Derek McNear isn't about to turn down a cute, curvy blonde at his best friend's wedding reception. But the next day, when Callie discovers that Derek is the consultant she has hired to save her store, they find it difficult to concentrate on business. Especially when giving and getting pleasure in each other's arms is so much more fun!
Come for a visit to Walker Island, where you'll find stunning Pacific Northwest ocean views, men too intriguing to resist...and five beautiful, close-knit sisters who are each about to find their one true love.
No Other Love is the second fun, sweet, and emotional contemporary romance in Lucy Kevin's Walker Island series. This will be Morgan Walker & Brian Russell's story.
Love the seties.lWish each book was longer.
The author did a great job acquainting the reader with Walker Island. I really enjoy this series I just wish each book was a little longer.


Hanna Instruments offers a variety of Photometers, both portable and bench top, for measuring aluminium. These Photometers cover applications ranging from laboratory and wastewater to boilers, cooling towers and paper mills. Click the icon above to learn more about our aluminium testing products.
Aluminum (or aluminium) is a chemical element with the symbol AI. It is the third most abundant element and the most abundant metal in the Earth's crust.
Aluminum is used in a wide variety of applications ranging from packaging and electronics to transportation amd construction.


Search the Internet for different juvenile probation programs, institutions, and aftercare programs. Write a paper on any two of your choice. Write your paper comparing and contrasting each program. Include the following elements in your paper: A detailed description of each program (including APA citation and references as to where you found the information) Goals, successes, and failures of each program. Your conclusion about which program you think would be most effective in treating and rehabilitating juvenile delinquents. Include in this summary what you might do to improve the program even more.
Juvenile Justice has been added in your library.


text:
Q: Get all of the nouns in a book (.txt file) in R and make a frequency table and wordcloud I am trying to find all of the nouns in a text file. Originally I converted a .epub to a .pdf file. Then I converted the .pdf to a .txt file successfully and I removed half of the text since I only need to find the nouns from the last half of the book. I want to do this so I can find the frequency of the nouns and then identify them for finals.
I can do the frequency tables normally with the original text files without any transformations and make a wordcloud etc but I cannot seem to filter only the nouns. Any ideas?
cname <- file.path(".","Desktop", "egypt", "pdf")
mytxtfiles <- list.files(path = cname, pattern = "txt",  full.names = TRUE)

#nouns2 and nouns doesnt seem to work :O -Ive tried both ways-
nouns2 <- regmatches(mytxtfiles, gregexpr("^([A-Z][a-z]+)+$", mytxtfiles, perl=TRUE))
nouns <- lapply(mytxtfiles, function(i) {
j <- paste0(scan(i, what = character()), collapse = " ")
regmatches(j, gregexpr("^([A-Z][a-z]+)+$", j, perl=TRUE))})

#transformation if nouns do not work
docs <- tm_map(docs[1], removeWords, stopwords("english"))

#working wordcloud and freq data
dtm <- DocumentTermMatrix(docs)
findFreqTerms(dtm, lowfreq=100)
findAssocs(dtm, "data", corlimit=0.6)
freq <- sort(colSums(as.matrix(dtm)), decreasing=TRUE)
wf <- data.frame(word=names(freq), freq=freq)
p <- ggplot(subset(wf, freq >500), aes(word, freq))
p <-p + geom_bar(stat ="identity")
p <- p + theme(axis.text.x=element_text(angle=45, hjust=1))
library(wordcloud)
wordcloud(names(freq),freq,min.freq=100, colors=brewer.pal(6,"Dark2"))

I have tried nouns2 and nouns but they return something like:
nouns2
[[1]]
character(0)
[[2]]
character(0)
[[3]]
character(0)

A: Here is a method to find all the nouns, using the qdap package.  You can go from here.
text <- "To further enhance our practice, the president was honored to have him join the firm, former commissioner and the first to institute patent reexaminations, bringing a wealth of experience and knowledge to the firm and our clients."

library(qdap)
pos.text <- pos(sentence) # tells the count and parts of speech in the text

vec.tagged <- as.vector(pos.text[[2]]) # retains only the tagged terms in a vector
vec.tagged.split <- str_split(vec.tagged$POStagged, "/") # breaks the vector apart at the "/"
all.nouns <- str_extract(vec.tagged.split[[1]], "^NN .+") # identifies the nouns
all.nouns <- str_replace(all.nouns, "NN\\s", "") # removes NN tag
all.nouns

 [1] NA               NA               NA               NA               NA               "novak"          "druce"
 [8] "was"            NA               NA               NA               NA               NA               NA
[15] NA               NA               NA               NA               NA               "commissioner"   "and"
[22] NA               NA               NA               NA               NA               "reexaminations" NA
[29] NA               NA               "of"             NA               "and"            NA               "to"
[36] NA               NA               "and"            NA               NA               NA


Keeping Zane's spirit with us in the best ways that we can.
The Fisher-Paulsons are as strange as it gets, so it came as no surprise that Aidan has the second sight. He tells me that late at night the ghost of Krypto pads through our bedrooms, tail wagging as he checks that each of the humans and the canines still dreams, this Ghost-of-Pekingese-Past.
We're accustomed to spirits in the outer, outer, outer, outer, Excelsior, mainly because of Nurse Vivian and Tim. In fact, I insisted on them. On one of those last nights that Tim was alive, I stayed the night at Davies Hospital, sitting up in one of those metal-framed plastic chairs so that I could fetch the nurse when it was time for more of the pain meds.
This gave Tim the license to ramble into any dream he felt like. No one flinches in the house when a floorboard creaks or a branch of the California lilac raps on the window. And it's pretty much established canon that when two pennies show up unexpectedly, Nurse Vivian is getting in her last two cents.
It's easier to believe in the dead than the living.
We get to talk to Zane twice a week, for 10 minutes only. As soon as the phone rings, I put it on speaker and place it in the middle of the dining room table, in the place where Brian and Aidan and I say grace.
These conversations are either too short or too long, as we cannot get to any meaning-of-life question in 600 seconds, but just try filling that same amount of time with amusing anecdotes.
I've picked up a bunch of joke books, and so I throw in a pun or two when the conversation lags. And I tell him that the Roof Cow has put away her football helmet and is busy decorating gargoyles.
The Texas high desert is like a lot of the continental United States, in that around about mid-autumn, there might actually be frost. It's yet another thing to get sad about. This will be the first real winter Zane experiences, and he's doing it without me.
You cannot map regret. It would be great if I knew which days I'd miss him most. Thought it would be his birthday, but instead it's the day we set up the Halloween Village or Happy Robot Day. Only when Aidan's school pictures arrived did I realize that Zane's would never come.
Or when the checkout woman at the Diamond Heights Safeway asks, "Where's your older son?" and I thought I'd told everyone, but I don't want to repeat the story, not in a grocery store.
Grief is invisible. No one knows what I carry around; as she scanned my Baked Lays, boxed wine, cookie dough ice cream and ground turkey, I reminded myself that she might be carrying around her own sorrow.
The last thing she rang up was a dozen St. Jude candles, and then she smiled and looked me in the eye. And neither of us had to say anything.
So we keep Zane's spirit with us in the best ways that we can. On Friday night we lit our own kind of Shabbat, a blessing to echo the flames of the sky above, the second star to the right, shining over both the outer, outer, outer, outer Excelsior and the farthest west of Texas.
Then I sit in the rocking chair and look for old jokes, the cornier the better, for the 600 seconds every three days that the family is awkwardly still whole.


text:
New space study shows a surprisingly large number of massive stars across the universe
Most of the stars in the night sky are red dwarfs. But a new U.K. study has discovered that there is also an astonishingly larger number of much bigger stars in certain parts of the universe. An article in Space.com stated that the existence of this many massive stars could explain the changes that galaxies undergo during their lifetimes.
For the study, the researchers tapped the Atacama Large Millimeter/submillimeter Array (ALMA) in the Atacama Desert of northern Chile. The massive astronomical interferometer could observe the birth of stars in a quartet of starburst galaxies far, far away.
Those regions are overflowing with stellar gas that encourages the rapid formation of stars. Experts believe the stars in those four galaxies are created at least 100 times faster than in the Milky Way galaxy.
The massive stars in those galaxies regularly release huge amounts of stellar matter. They also erupt into supernovas that eject even more energy and gas into outer space. The European Southern Observatory (ESO) remarked that this high level of stellar activity would greatly affect the interstellar region around those energetic celestial bodies. (Related: Astronomers: Life has a "fighting chance" in planets around Alpha Centauri A and B.)
Massive stars are brighter than the Sun, but burn out faster
The researchers evaluated the starburst galaxies according to the way they distributed their stellar mass. A recently developed technique, akin to radiocarbon dating, picked out the distinct signatures of disparate isotopes of carbon monoxide.
Larger and more massive stars have plenty of oxygen isotopes. The carbon isotopes that the researchers were looking for were linked with smaller stars of medium mass.
University of Edinburgh researcher Zhi-Yu Zhang stated that the combination of carbon and oxygen resulted in carbon dioxide. The larger the star, the more often it forms different kinds of carbon monoxide. This validated pattern made it easier for researchers to identify the mass of a star.
Stars with low mass have very long lifespans. The Sun, for example, is a middle-aged star that will continue to shine long after humans are gone.
Massive stars, on the other hand, have much shorter lifespans. Researcher Zhang stated that the distribution of various types of stars can reveal the age and state of a galaxy during a particular period of time. A larger number of massive stars would indicate a relatively young galaxy.
The universe and local galaxies have many more massive stars than predicted
Zhang and his colleagues reported that the starburst galaxies contained far more massive stars than earlier believed. They further stated that these results were similar to those of another study that covered the Tarantula Nebula of the Large Magellanic Cloud.
The Large Magellanic Cloud is a satellite galaxy of the Milky Way. It is one of the closest galaxies, being a mere 163,000 light-years away from the Milky Way.
Its Tarantula Nebula is rich with giant stars. Also called 30 Doradus, this interstellar cloud of space dust and gas is considered to be the brightest star-forming region in the Local Group that includes the Milky Way.
A different research team, this one from the University of Oxford, reported spotting incredibly huge stars that weighed anywhere from 30 to 300 times the weight of the Sun. There were also far more of these massive stars than expected.
"Our findings lead us to question our understanding of cosmic history," said Rob Ivison, the ESO's director for science and co-author of the new study. "Astronomers building models of the universe must now go back to the drawing board, with yet more sophistication required."
There are lots more articles about the stars at Cosmic.news.
ESO.org
Tagged Under: carbon monoxide, cosmic, cosmos, discoveries, Galaxies, galaxy, massive stars, Milky Way, research, Space, starburst galaxies, Stars, Universe
Ancient stone carvings depict a massive comet strike 13,000 years ago that nearly made humans extinct
08/16/2018 / By Rhonda Johansson
Giant black hole blasted out a jet of particles at 125 billion times the amount of energy the sun releases per year, confirms new study
Star Wars: Oil giants look to space in race for natural resources
Understanding massive black hole formation: Researchers believe supersonic gas streams from the Big Bang may provide the answer
Did you miss the lunar trifecta at the end of January? Catch the blood moon lunar eclipse re-run next year
Scientists believe the sun may enter a calm, slightly cooler period in the next few decades
Understanding the breathtaking power of solar wind
The mysterious glow in the Milky Way may be coming from clouds of DIAMONDS in space
Experts: More than 100 giant exoplanets may have potentially life-hosting moons
Is time slowing down? Scientists weigh in with bizarre new theory
08/05/2018 / By David Williams
Science HOAX? The Apocalypse could come in the form of malicious AI from aliens who shut down Earth's global power grid
Astronomers: Life has a "fighting chance" in planets around Alpha Centauri A and B
IAC researcher proposes a new technomarker to detect alien civilizations
New mathematical model shows what happens when a black hole devours a star
The answer to the Fermi paradox? Physicist says that humans might eradicate aliens unwittingly
NASA announcement of liquid water on Mars confirms what we've been reporting for years
The discovery of preserved organics on Mars calls for new tests targeting biosignatures, says scientist
Supernova, resurrected: Scientists are puzzled by "the star that wouldn't die"
07/19/2018 / By Russel Davis
David Wilcock leaving GAIA over "Luciferian" agenda divide


UN Secretary-general Ban Ki- moon is in Central Asia following recent unrest in the region to discuss empowerment of women and the UN's contribution to building stability and peace with regional leaders, UN spokesman Farhan Haq said here on Tuesday.
The secretary-general is currently in the Kazakh capital of Astana for the summit of the Organization for Security and Cooperation in Europe (OSCE), where he met with OSCE Secretary- general Marc Perrin de Brichambaut to discuss ongoing cooperation between the UN and the OSCE in reinforcing stability in Kyrgyzstan and the protection of human rights, among other topics, Haq said at a daily news briefing here.
Ban on Tuesday met with Kyrgyz president Roza Otunbayeva and congratulated her on the "peaceful" parliamentary elections in October and the "important progress in strengthening democratic institutions in the country that should include the swift formation of a coalition government," Haq said.
Otunbayeva and Ban also discussed the security situation in Kyrgyzstan and the importance of protecting the rights of refugees and reinforcing the rule of law for long-term stability, as well as the need for regional cooperation to fight terrorism, according to Haq.
The secretary-general on Tuesday also met with President Nursultan Nazarbayev of Kazakhstan, and he "highly commended" the president's cooperation and contribution to peace and stability in neighboring Kyrgyzstan, the spokesman said.
Ban also lauded the president's contribution to bringing peace and stability to Afghanistan and his visionary leadership in ensuring nuclear disarmament and non-proliferation.


text:
/*
 * ip4/ip_checksum.c: ip/tcp/udp checksums
 *
 * Copyright (c) 2008 Eliot Dresselhaus
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to
 * the following conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 *  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 *  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 *  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 *  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 *  WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */

#include <vnet/ip/ip.h>

static ip_csum_t
_ip_incremental_checksum (ip_csum_t sum, void *_data, uword n_bytes)
{
  uword data = pointer_to_uword (_data);
  ip_csum_t sum0, sum1;

  sum0 = 0;
  sum1 = sum;

  /*
   * Align pointer to 64 bits. The ip checksum is a 16-bit
   * one's complememt sum. It's impractical to optimize
   * the calculation if the incoming address is odd.
   */
#define _(t)					\
do {						\
  if (n_bytes >= sizeof (t)			\
      && sizeof (t) < sizeof (ip_csum_t)	\
      && (data % (2 * sizeof (t))) != 0)	\
    {						\
      sum0 += * uword_to_pointer (data, t *);	\
      data += sizeof (t);			\
      n_bytes -= sizeof (t);			\
    }						\
} while (0)

  if (PREDICT_TRUE ((data & 1) == 0))
    {
      _(u16);
      if (BITS (ip_csum_t) > 32)
	_(u32);
    }
#undef _

  {
    ip_csum_t *d = uword_to_pointer (data, ip_csum_t *);

    while (n_bytes >= 2 * sizeof (d[0]))
      {
	sum0 = ip_csum_with_carry (sum0, d[0]);
	sum1 = ip_csum_with_carry (sum1, d[1]);
	d += 2;
	n_bytes -= 2 * sizeof (d[0]);
      }

    data = pointer_to_uword (d);
  }

#define _(t)								\
do {									\
  if (n_bytes >= sizeof (t) && sizeof (t) <= sizeof (ip_csum_t))	\
    {									\
      sum0 = ip_csum_with_carry (sum0, * uword_to_pointer (data, t *));	\
      data += sizeof (t);						\
      n_bytes -= sizeof (t);						\
    }									\
} while (0)

  if (BITS (ip_csum_t) > 32)
    _(u64);
  _(u32);
  _(u16);
  _(u8);

#undef _

  /* Combine even and odd sums. */
  sum0 = ip_csum_with_carry (sum0, sum1);

  return sum0;
}

/*
 * Note: the tcp / udp checksum calculation is performance critical
 * [e.g. when NIC h/w offload is not available],
 * so it's worth producing architecture-dependent code.
 *
 * ip_incremental_checksum() is an always-inlined static
 * function which uses the function pointer we set up in
 * ip_checksum_init().
 */

ip_csum_t (*vnet_incremental_checksum_fp) (ip_csum_t, void *, uword);

clib_error_t *
ip_checksum_init (vlib_main_t *vm)
{
  vnet_incremental_checksum_fp = _ip_incremental_checksum;
  return 0;
}

VLIB_INIT_FUNCTION (ip_checksum_init);

#if CLIB_DEBUG > 0

static const char test_pkt[] = {
  0x45, 0x00, 0x00, 0x3c, 0x5d, 0x6f, 0x40, 0x00,
  0x40, 0x06, 0x3f, 0x6b, 0x0a, 0x76, 0x72, 0x44,
  0x0a, 0x56, 0x16, 0xd2,
};

static clib_error_t *
test_ip_checksum_fn (vlib_main_t * vm,
		     unformat_input_t * input, vlib_cli_command_t * cmd)
{
  u16 csum;
  ip4_header_t *hp;
  u8 *align_test = 0;
  int offset;

  vec_validate (align_test, ARRAY_LEN (test_pkt) + 7);

  for (offset = 0; offset < 8; offset++)
    {
      memcpy (align_test + offset, test_pkt, ARRAY_LEN (test_pkt));

      hp = (ip4_header_t *) (align_test + offset);
      csum = ip4_header_checksum (hp);

      vlib_cli_output (vm, "offset %d checksum %u expected result 27455",
		       offset, (u32) csum);
    }

  return 0;
}

/* *INDENT-OFF* */
VLIB_CLI_COMMAND (test_checksum, static) =
{
  .path = "test ip checksum",
  .short_help = "test ip checksum",
  .function = test_ip_checksum_fn,
};
/* *INDENT-ON* */

#endif /* CLIB_DEBUG */

/*
 * fd.io coding-style-patch-verification: ON
 *
 * Local Variables:
 * eval: (c-set-style "gnu")
 * End:
 */

redpajama_set_name: RedPajamaGithub