text:
Mooseheads goaltender puts world junior disappointment behind him
NHL.com @NHLdotcom
VANCOUVER - Zach Fucale isn't letting disappointment on the international stage get him down.
The Halifax Mooseheads goaltender has excelled in the Quebec Major Junior Hockey League since playing for the Canadian team that finished fourth at the world junior championships over the Christmas holidays.
Now, with the playoffs rapidly approaching, the Mooseheads are strong contenders to repeat as QMJHL and Memorial Cup champions.
"The guys were very supportive and they had some good words for me," said Fucale, recalling his return from Sweden. "They really supported me the whole way through, so that was really great. I'm really happy to have a great bunch of teammates like that. They helped me come back and do a good job."
Despite the heartbreaking finish in Malmo, when Canada lost to Russia in the bronze-medal game, Fucale tries to take the positives from his international experience.
"Obviously, we were very disappointed with our end result," he said. "But, for me and for the players that were there, we were really thankful for the opportunity. We did what we could. We worked hard and it was a chance to have a good experience. It can certainly help in the future and our careers."
So far, so good for Fucale, an 18-year-old Laval, Que., native who was chosen in the second round (36th overall) by his hometown Montreal Canadiens in the last summer's NHL draft.
He ranks as the league's top goaltender with a 2.35 goals-against average, 29-9-0-3 record, .905 save percentage and four shutouts.
"That just means that the team's been playing very well in front of me," said Fucale. "We've been playing a very good defensive game this year. For me and the rest of the team, that's a good sign, because in the playoffs we'll need to be one unit, and I think we're going in the right direction."
Despite his young age, Fucale sits fourth in all-time QMJHL goaltending wins with 106 and is expected to move to third by the end of the season. Fucale has already surpassed NHLer Jean-Sebastien Giguere's previous Halifax franchise records, and became the quickest goaltender to reach 100 victories in the league, accomplishing the feat in 150 games and surpassing Jacques Cloutier's record set three decades ago.
More pertinent to the present, Fucale has posted two shutouts in his past six games.
"I think I've been having good performances lately for my team and that's good," he said. "I just want to be as ready as I can for the playoffs."
Heading into Friday's game at Acadie-Bathurst, the Mooseheads sit third overall in the league with a 39-18-0-3 record. Halifax has won five consecutive games with Fucale in goal for four of them.
Thanks in large part to Fucale and snipers Jonathan Drouin (84 points) and Nikolaj Ehlers (83 points), the Mooseheads continue to thrive despite significant off-season changes, including the departure of 2013 first overall NHL draft choice Nathan MacKinnon to the Colorado Avalanche.
"It's certainly different," said Fucale. "This year, we're much younger. But we all know last year we had a very strong team. This year is different. We still have a lot of talent and a lot of leadership. We have to make sure we play well together and push in the right direction.
"We're on the right track. We have progressed a lot. We've gotten much better. Guys are maturing, getting better, getting stronger and, as a team, it's positive to see."
Fucale prepares himself through a constant self-improvement effort that includes the usual hard work and desire to get better in every practice. He also reviews goaltenders in solo video highlights and games, ranging from junior to Europe to the NHL.
"I don't try to copy anyone in the NHL," he said. "I just take little parts of everyone's game that work well. I could take a little part of (Henrik) Lundqvist's game, (Carey) Price's game, (Jonathan) Quick. Everyone in the NHL has something that they do extremely well. For me, as a young goalie, it's good for me to watch and learn from professionals. I can take out whatever I can from their game and insert it into mine."
Zucale also strives to make sure that he is mentally prepared by keeping up to date with trends in sports psychology.
"I read many books about that aspect," he said. "The mental side of the game is mostly with your goalie coach. It's important to have a good relationship with your goalie coach and make sure that you're on the same page and you can learn from him, since he's got experience. Eric Raymond, my goalie coach this year and the last two or three years, has been helping me a lot on the mental side as well as the physical. Eric has been helping me just to stay focused and stay consistent, and those are the keys in order to make it as a pro."
Fucale, who signed with the Canadiens last fall, has had contact with members of Montreal's hockey operations staff through post-game visits and phone calls. The Canadiens have the option of promoting him to the AHL or ECHL after this season.
In the meantime, he is drawing inspiration from the performance that Price delivered while backstopping Canada to a repeat Olympic gold medal in Sochi.
"It was great," said Fucale. "Everyone saw that he played amazing and it's pretty remarkable to have a great tournament. He did what he could in the net and Team Canada played an awesome tournament. The whole team, we were all watching every game. Obviously, all of Canada is very happy and proud of that gold medal."
With Price locked in as Montreal's starter for the foreseeable future, Fucale knows that it could take him a while to get to the NHL. But he is willing to bide his time as he strives for continuous improvement.
"We'll have a lot of time to talk about it when it comes," he said. "But, right now, I've still got a lot of work to do."


When product designers see how our foam components allow for assembly without screws; enable cooling and tube rounding through built-in channels; provide noise and vibration dampening; facilitate rapid prototyping with CNC tooling — they start thinking about the inside of the box in brand new ways.
Our appliances solutions prevent damage and reduce total cost as we help you get your products safely to their destination.
Our specialty foam components can be used for flotation, insulation, impact resistance and more.
Our engineering expertise, extensive manufacturing network and unique capabilities make us an excellent source for molded foam components for many different industries.
Specialty product applications include energy-absorbing components for automobiles, flotation components for recreational watercraft and insulation components for appliances.


text:
La temporada 1999-00 fue la 103.ª edición del Campeonato escocés de fútbol y la 2.ª edición como Premier League de Escocia, la división más importante del fútbol escocés. La competencia comenzó el 31 de julio de 1999 y concluyó con la conquista del Glasgow Rangers de su 49.º título de liga.

En esta temporada no se contemplaron descensos a la Primera División con el fin de aumentar el número de clubes de 10 a 12 para la próxima temporada.

Tabla de posiciones

 PJ = Partidos jugados; PG = Partidos ganados; PE = Partidos empatados; PP = Partidos perdidos;GF = Goles anotados; GC = Goles recibidos; DG = Diferencia de gol; PTS = Puntos
 (A) : Ascendido la temporada anterior.

</center>

Máximos Goleadores

Source: SPL official website

Primera División - First División

La Primera División 1999-2000 fue ganada por el Saint Mirren FC, que asciende a la Premier League junto al Dunfermline Athletic. Clydebank FC es relegado a la Segunda División.

Referencias

 scottish-football-historical-archive
 soccerway.com/scotland/premier-league/1999-2000
 statto.com/stats/scotland/premier-league/1999-2000

2000
Fútbol en 2000
Escocia en 1999
Escocia en 2000
Deporte en Reino Unido en 1999
Deporte en Reino Unido en 2000

redpajama_set_name: RedPajamaWikipedia


New Zealand captain Kane Williamson won his second successive toss and elected to bat first against Pakistan in the second One-Day global on Friday.
Imamul Haq was struck at the top of his helmet. Although, the Pakistan Cricket Board (PCB) later revealed that there was no damage seen in the scan reports but it is still unclear if he'll play the final game or not. Imam and Zaman were hardly troubled by New Zealand's pace until Ferguson's sharp rising delivery forced Imam to retire hurt on 16.
He was immediately sent to a hospital for CT scans and the team management said they would monitor him for the next 48 hours.
Ul-Haq before he slumps to the floor. "He joined the team and will remain under observation of Team Physio", the PCB tweeted.
Ross Taylor was the only form of resistance for the visitors, adding to his 80 from the opening ODI with an unbeaten 86 from 120 balls, but he didn't get the support required as only two other batsmen reached 20, neither in quick time.
With the win Pakistan broke a four-year losing streak of 12 consecutive ODIs against the Black Caps, starting with a 3-2 defeat in the UAE in 2014.
In his next over he deflected a straight drive to run out Kane Williamson (one) at the non-striker's end. The dazed Imam went off in the ambulance for a concussion check, but that only brought the prodigious Babar Azam to the wicket, and he teamed up with Fakhar Zaman to punish the Black Caps bowlers.
In his second spell Shaheen yorked Tom Latham for one while Mohammad Hafeez bowled George Worker for 28 to leave New Zealand struggling at 73-4.
Ferguson dismissed both batsmen in the 29th over when Zaman skied a catch to Ish Sodhi, and Zaman followed when his upper cut was caught well on the edge of the boundary line at third man. Nicholls was back in action at forward short leg when Shoaib Malik's hard pull ballooned off the fielder's left shoulder and Sodhi grabbed the diving catch.
Dez Bryant suffered an injury during practice Friday afternoon according to NFL Network and NFL.com reporter Tom Pelissero . Unfortunately, the top team in the NFC South just received horrendous news surrounding its newest acquisition.
Quinn, Medicine Woman, American Sniper , and The Love Bug , has most recently been used by the HBO series Westworld . HBO told The Wrap that no cast or crew was at the Paramount Ranch location when it burned down.
More importantly, self-aggrandizing harangues that turn the reporter into the story are not a legitimate form of journalism. She's gets publicity, and then she gets a pay raise and a contract with I think CNN .


text:
You are here: Home / Politics / Rep. Harris Votes Against "Purely Political Resolution Seeking to Tie the President's Hands" as He Responds to Terrorist Threats
Rep. Harris Votes Against "Purely Political Resolution Seeking to Tie the President's Hands" as He Responds to Terrorist Threats
January 9, 2020 By Dagger News Service 65 Comments
From Congressman Andy Harris:
Today Rep. Andy Harris, M.D. (MD-01) voted "no" on H. Con. Res. 83 – Directing the President pursuant to section 5(c) of the War Powers Resolution to terminate the use of United States Armed Forces to engage in hostilities in or against Iran.
Congressman Harris made the following statement:
"Today I voted against the Democrats' purely political resolution seeking to tie the President's hands as he responds to the terrorist threat posed by Iran, its proxies, and radical Islamic terrorists. I fully support the President's targeted and proportional actions that responded to the attacks orchestrated by General Soleimani. Soleimani was intimately involved in the planning of the raid on the American Embassy in Baghdad last week, and intelligence indicated he was actively planning further attacks on Americans. As the longtime leader of the Quds Forces within the Islamic Revolutionary Guards Corps (the first state military institution to earn the "terrorist organization" designation by a presidential administration), he was directly involved in the training of terrorists and the building and deploying of improvised explosive devices, which resulted in the death or brutal maiming of thousands of American troops in the Middle East.
Additionally, his organization supported and coordinated multiple Shiite terrorist militias which pose significant and ongoing threats to the U.S. and our allies. While the Iran apologists in Congress continue to attempt to politicize our national security, I support the President, and am confident that he will wisely evaluate all options in response to Iranian threats, including military action if Americans are at risk. We should not tie his hands in the fight to save Americans from radical Islamic terrorists."
Friend of Art says
I wish that there were more representatives like Andy in Maryland.
One Andy is way, way too much!
MissingReagan says
It's another attempt to set President Trump up. If Iran attacks, The President has no choice but to retaliate. When he dors the democRATS will cry foul and charge him with a violation.
Our President sets himself up for failure. He is by nature impulsive and unthinking. He is an existential threat to our Country.
Your momma says
Sure and terrorists aren't.. you win the dipshit of the day award.
Thank you, Your momma!. I appreciate the award. The only prize I want, is to be rid of you-know-who.
Bob's momma says
Please excuse my son Bob, he would rather see american solders killed and have us target and kill known terrorists onsite. I didn't raise him this way but he has grown more stupid with age.
Gordon Koerner says
Since 9/11 when has a terrorist hit the US. Only home grown like yourself have done the evil deed.
SoulCrusher says
Every attack in America that has been attributed to a link to Al Qaida or ISIS is a terrorist attack on the US. You're not thinking rationally….We have been attacked and are still being attacked, but you are trying to use issues like this for political motivation against the current President of the United States and a REAL American. It's sad.
The current president brings these words all on himself. He has the title but he is not presidential. Just remember, when Iran does another act against US, it is totally Trump fault. His actions of trying to make himself important he has shot himself in the foot.
Five Iron says
Article 1, Section 8, Clause 11 of the US Constitution. Learn it Andy or you are nothing but a toady. Amazing how his love of the "Freedom Caucus" and "Tea Party" are all but non-existent now that POTUS has blown through the federal deficit.
Yes Trump and Harris never learned math. Article 1 comes before Article 2. Congress have the first power and the president is second in line.
Yeah, but Article 3 Section 3 is what we should all be talking about because the idiots operating under Article 1 are in violation of Article 3 Section 3.
James Langer says
The articles are for war… We are not at war President Trump took out a terrorist.. That is solely within his power as commander in chief….
He took out a head of state of another country. That is not with in his power. We have laws against doing that since 1979. This lawless president is an 8 year old selfish imbecile.
He didn't take out a head of state for another country. He took out a terrorist who was engaged in terrorist activity against US and was planning more attacks. You have lost your mind. Can you say Trump Derangement Syndrome?
Iran has been causing us trouble since the 70's. We just happened to back the wrong side in a revolution and this fact is a perfect example of why we shouldn't interfere in foreign governments. However, the man targeted was a terrorist and the right call was made. Quite frankly, if any of the rest of that regime go to Iraq and try the same thing, I'd be happy if he terminates them too. Asta La Vista Baby!!!
LOL says
Backed the wrong side? we backed British Petroleum what side were they?
No, you're the idiot. We shouldn't have backed the Shah or the Ayatollah. We should've minded our own business instead of creating enemies because a bunch of useless politicians in DC thought we could instill our supposed values on other countries. Look, what have we learned about the Islamic Regimes? We have learned that the regimes are violent and brutal because the people of that region need a tyrant in order to control those bunch of lunatics. No promise of money or aid will ever make those nuts civilized and that's just the way it is….
It had nothing to do with regimes. it was about oil.
You idiot
I beg to differ…. The Iranian revolution was all about regimes and the changing of those regimes. You may be talking about why you think we sided with one or the other, but the truth is we shouldn't have chosen a side at all. If you think the Iranian Revolution was about American interests you're wrong. We interjected ourselves where it didn't belong and we created an enemy forever. That being said, we are and will be the enemies of Iran for as long as an Ayatollah is in power. The people of Iran didn't throw out the Shah because of oil. We should NOT interfere with the internal governance of any nation except for our own. That's just the way it is…DemoTraitor.
You could be poster boy for a propaganda campaign. You will believe absolutely anything without doing a bit of research.
Actually, you're the idiot and a poster boy for the Democratic treason you worship. End of story….
Trump caused the death of 176 citizens from many countries. It was Trumps actions that caused Iran to send missiles into Iraq which hit that Ukraine plane. Trump is a selfish ruthless person who thinks like an 8 year old. Iran if your listening don't harm average people and go after the jerk who who is causing another war.
That's the stupidest thing I've heard. You're going to blame Trump because an Iranian missal brought down a Ukrainian jet? Why not blame the Iranian who fired the thing? That would make too much sense wouldn't it? Now look back at the last 4 Presidents that came before Trump. They all had their own issues involving war, military strikes, terrorist strikes, economic fluctuations and the like. Considering the current environment of this world I think Trump's done pretty damn good. Blaming Trump for an Iranian shooting down a Ukrainian jet is just ridiculous….maybe Iran should train its military better.
Yes. Had Trump not done what he did with taking out a head of state there would not have been a missile attack. So TRUMP is entirely to blame for these killings.
Really? Since when is an Iranian General the HEAD of IRAN? Last time I checked, Iran has a President and the President is just a figure head for Sayyid Ali Hosseini Khamenei, whom is the SUPREME LEADER of Iran. Khamenei is a radical Islamic nut job who wants to kill Americans. End of discussion. Soleimani was a General and leader of the Iranian Quds forces, which has been designated a terrorist organization and was involved terrorist activity which recently led to the storming of our Embassy in Iraq, not Iran. Soleimani was on foreign soil conducting operations against us and now he is a grease spot. End of story. I fully support his termination and believe that Democrats claiming he was an ally or a good man are nothing but idiots whom are in full violation of Article 3 Section 3.
weethesheeple says
Now, I didn't get this from Faux News so it may be true. Trump had time to tell Lindsey and his club patrons but not Congress. He has a responsibility to notify Congress, it is not his decision. Congress has voted to limit his war powers because the imbecile threatened to destroy Iranian historical sites. just like the impeachment he left Congress with no choice. All toddlers need timeout or the become uncontrollable.
Congress didn't vote to do a damn thing because the resolution that was passed isn't binding. It is another partisan attack on the current President. That's all. Nothing else. On another note, why would Trump notify Congress of a strike against a terrorist when the traitors in the House of Treason would probably tip them off. You have scumbag traitors like T'laib and Omar that would probably notify their buddies in the Middle East if they had knowledge of this. Look, the historical site in Iran that should be targeted is where Sayyid Ali Hosseini Khamenei lays his head at night and I'm OK with that. There is ALWAYS a choice and that illegal and unconstitutional impeachment was a VERY bad move on Pelosi's part. That which is unconstitutional is illegal and just by testing the Constitution a government employee becomes a traitor. That's just the way it is.
It sure seems those who are nut jobs seem to always call others nut jobs.
If you are referring that Sayyid Ali Hosseini Khamenei isn't a radical Islamic nut job and an ally of the US then you are a traitor who deserves to be hung. When the truth has become forgotten and men whom speak the truth are considered nut jobs it is because a Democratic traitor like you brainwashed all those whom were listening….
Gordon's momma says
Congratulations Gordon, you win the dickhead of the day award for the dumbest thing posted to a message board.
James Allen Langer says
First of all. The president of the United States has full rights to take out a terrorist leader without giving Congress and notice just as Obama and Bush did. He only needs their approval to go to war (which we are not at war). What part of that do you people not understand?
Just the facts says
No they don't James, you idiot. Get a copy of the Constitution and have someone with a fourth grade education read it to you.
@Just the facts – No. You don't know what you're talking about because Congress only has the power to DECLARE war. Quite frankly, the war on terrorism is long standing and it is the idiots whom are now claiming foul that gave Presidents the power to carry out strikes like this against designated terrorists. If Obama had done it you'd have an orgasm. Trump does it and you want another Article of Impeachment drawn up. You're just a hypocrite.
From what I read the constitution says nothing about taking out a terrorist nor a head of state. In 1979 and 1984 laws were passed with making the assassination of a head of state a crime. Just like taking out religious sites which Trump said he was going to do, till he was notified it's a crime. Wether anyone thinks a general is a head of state, Iran and the people of Iran consider him a head of state. To us he is a terrorist, but to them the general is a national hero and head of state. By the way these laws were passed because this country took out Iran's heads of state in 1979. Thru Trump ignorance of our laws he is a criminal by the standards of US and the rest of the world.
A general is NOT a head of State in Iran and you are typing pure political garbage. It's not we think, it's a fact. Trump isn't a criminal and I don't care what you have to say. You are incapable of making any sense.
You sir need to go back to your safe space… That is just plain stupid.
MrMister says
It's sad to watch Gordon sink slowly into the clutches of insanity.
"The Soleimani Strike: One Person Decides"
https://www.lawfareblog.com/soleimani-strike-one-person-decides
"In short, our country has—through presidential aggrandizement accompanied by congressional authorization, delegation, and acquiescence—given one person, the president, a sprawling military and enormous discretion to use it in ways that can easily lead to a massive war. That is our system: One person decides."
Irrespective of who is President, one thing is very clear the Presidential War Power Authorities are in urgent need of review and reform. If not, we may we stumble into the abyss.
Can Spot'em says
"Irrespective of who is President," now, that's pretty funny there Bob. Are you going to even pretend you felt outrage and questioned Obama when he decided to let a SEAL team violate Pakistani airspace to take out Bin Laden? This is the type of hypocrisy that reeks. The Republicans did not slap war power resolutions on Obama… in fact, if my memory serves me correctly the Republicans showed full support for that action. The 'loyal' opposition is only opposed to Trump having any good news – part of that derangement syndrome I was talking about.
Avoiding war… laughable. The Iranians cannot afford to export terrorism like they did for a spell because the sanctions were drying up the treasury. I'm kind of surprised Trump played his cards as he did. I say that because it would be rather brilliant to bleed them broke and force their hands to do radical things – like down a drone, bomb oil fields in Saudi Arabia and attack our embassy. Then use that as a pretext to oust the mastermind of evil coming from Iran in a drone attack. My goodness, that would be smart. Knowing all along their retaliation would never amount to more than a few rockets in the sand… except for the airliner they took out. Yet, the derangement is even blaming that on Trump. Wow.
You see, Bob… I'm less worried about even four years of Trump in office than I am of low-info voters.
Can Spot'em, I believe you missed the point of the Lawfare article by Jack Goldsmith. Lawfare is a centrist site and the writer is a legal scholar, not some partisan political hack. I share his concern about the lack of Presidential War Powers constraints and the laissez-faire approach by Congress. I try not to look at it in terms of partisan politics. To me, it's all about a system of effective checks & balances, "Irrespective of who is President. I urge you to give his article another read.
BTW, even though The Boston Globe might be a little left of center for your taste. you might want to check out the below opinion piece from yesterday:
"Comparing Trump's assassination of Soleimani to Obama's killing of bin Laden"
https://www.bostonglobe.com/2020/01/09/opinion/comparing-trumps-assassination-soleimani-obamas-killing-bin-laden/
Enjoying freedom does not equate to centrist ideology. I tend to see that as the hawk and fox coming to agreement and compromise over watching the chicken house. To help you out on this… I prefer the type of freedom that allows the happily married gay couple the ability to protect their marijuana plants with automatic weapons without their paycheck being raided by a criminal enterprise disguised as a government. Yeah, nothing centrist in that.
Certain people write things they heard on Fox news which are lies. It's a proven fact Obama administration did notify Pakistan that they were going to use their airspace against Bin Laden. They also notified the gang of 8 as well. Something Trump did not do.
Nice try Gordon… I don't watch Fox… actually do not watch any of that silliness on any channel. The details of the raid were not shared, which is exactly why President Obama wanted a larger force to land, just in case a firefight broke out with local police and/or military.
Thank you, Representative Harris. We appreciate all you do.
? says
What happened to the deficit and the National debt Andy? When are you going to pay the bills you created?
So it comes out that as Trump is boasting how strong he is against Iran, he uses the back channel that Obama set up and pleads with Tehran not to escalate into a war. Total lying piece of dirt.
Religion has a way of drawing people and countries together. Like in the Middle East the population is about 336 million. 318 million are Muslim. So far we have had an all out war with Iraq. Killing or injuring around 1 million and displacing another million. We have active wars in Syria, Afghanistan, Lebanon, Lybia, as well as picking a war with Iran. Saudis are being attacked by Iran. There wars seem to be growing. Just when will the Middle East say that is enough and band together as a group and order us to leave the area or be thrown out. Pakistan is in that group and already have nuclear weapons.
The republicans are praising Harris and Trump allowing them to go to war at their pleasure. There are no kind words for anyone Republican or Democrat who votes to have one person make a decision to go to war. May some day the people wise up and make sure the entire house, senate white house hold debates and hearings before anyone can take us to war. So Andy Harris you should not be proud of your vote and praise yourself for stupidity.
No. Religion has a way of DIVIDING the people of this world and to say different is just totally insane. Religion has always divided people and so does politics. Have you not noticed that the Islamic sects will fight each other viciously when they are basically practicing the same religion but disagree over a few issues? Those same Islamic sects will also go after people who don't practice their religion at all. They will just go after anybody who isn't one of them because of their faith, that has been perverted by those teaching the false meaning of their religion. Not to mention decades of having generation after generation bombed to death by us in the west. Those people will never like or trust us and that's just the way it is….
Does religion unite or divide us? Now, that is a thought-provoking question.
Religion like many things (race, politics, country, language, etc.) both unites and divides us. A group's particular beliefs, especially regarding its deity concept, tend to be exclusive of other religions. It unites people of similar beliefs and tends to divide us from those with different beliefs. Therein lies the danger of religious intolerance.
Those doing all the killing quoted are the terrorist who kill people of any religion and blame it on religion. Check the history since the 1300s the Christian wars were against the Muslims then the Muslims went to war and took the land back from the Christian's. Fast forward to now. The Christian are at a hidden war against Muslims. My comment is about history repeating itself. The Muslims will join together and kick Christians out of the the middle East. One thing history does have it's way of repeating itself. Of course republicans will never understand this.
Mr. Koerner, you are very partisan. Substitute any racial group into your posts and see how hateful they sound. Not all Republicans think monolithically. You just hate all Republicans.
WTF does being a Republican have to do with this? Look, if you haven't figured out that the Muslims in the Middle East are completely whack-a-doodle by now, you never will. By the way, they'll kill you or I just because we're Americans. You'd think that would unite us on some sort of common ground, but I see it doesn't. You need to look beyond R & D and start using common sense. You're right, history does repeat itself and you historically have shown that you lack common sense. That's why you blame Trump for an Iranian shooting down a Ukrainian jet.
Harold Steel says
Like anybody cares what you think….
Thank God Gordon isn't a journalist says
Liberal news quote………."The Baltimore Ravens, a heavy favorite, lost to the Tennessee Titans at home in the playoff game. President Trump responsible."
It takes about a season for NFL defenses to figure out the newest willie beamen that appears ever few years or so.
For sure says
The Titans did their homework and figured out a strategy to contain Jackson. That coupled with a subpar performances by normally good players determined the outcome
I think 2 weeks of the starters not playing had something to do with it as well. They looked rusty. Don't count on the Ravens underachieving next year. Those guys want it. Especially Lamar Jackson. He'll be back….with a vengeance.
Loretta Uhrip says
When I see Representative Harris, I am reminded of Jimmy Stewart in "It's a Wonderful Life," standing his ground on the floor of the U.S. Senate. Representative Harris not only fights for his constituents on principle, but he is easily the most handsome elected official I have ever met. He is gorgeous, a towering figure in Maryland's storied history.

redpajama_set_name: RedPajamaCommonCrawl


text:
package org.apache.isis.core.metamodel.facets.properties;

import java.lang.reflect.Method;
import org.jmock.Expectations;
import org.apache.isis.applib.security.UserMemento;
import org.apache.isis.applib.services.i18n.TranslationService;
import org.apache.isis.core.metamodel.facetapi.Facet;
import org.apache.isis.core.metamodel.facets.AbstractFacetFactoryTest;
import org.apache.isis.core.metamodel.facets.FacetFactory.ProcessMethodContext;
import org.apache.isis.core.metamodel.facets.all.describedas.DescribedAsFacet;
import org.apache.isis.core.metamodel.facets.all.named.NamedFacet;
import org.apache.isis.core.metamodel.facets.members.describedas.staticmethod.DescribedAsFacetStaticMethod;
import org.apache.isis.core.metamodel.facets.members.describedas.staticmethod.DescribedAsFacetStaticMethodFactory;
import org.apache.isis.core.metamodel.facets.members.disabled.DisabledFacet;
import org.apache.isis.core.metamodel.facets.members.disabled.DisabledFacetAbstractAlwaysEverywhere;
import org.apache.isis.core.metamodel.facets.members.disabled.forsession.DisableForSessionFacet;
import org.apache.isis.core.metamodel.facets.members.disabled.forsession.DisableForSessionFacetViaMethod;
import org.apache.isis.core.metamodel.facets.members.disabled.forsession.DisableForSessionFacetViaMethodFactory;
import org.apache.isis.core.metamodel.facets.members.disabled.method.DisableForContextFacet;
import org.apache.isis.core.metamodel.facets.members.disabled.method.DisableForContextFacetViaMethod;
import org.apache.isis.core.metamodel.facets.members.disabled.method.DisableForContextFacetViaMethodFactory;
import org.apache.isis.core.metamodel.facets.members.disabled.staticmethod.DisabledFacetStaticMethodFacetFactory;
import org.apache.isis.core.metamodel.facets.members.hidden.forsession.HideForSessionFacet;
import org.apache.isis.core.metamodel.facets.members.hidden.forsession.HideForSessionFacetViaMethod;
import org.apache.isis.core.metamodel.facets.members.hidden.forsession.HideForSessionFacetViaMethodFactory;
import org.apache.isis.core.metamodel.facets.members.hidden.method.HideForContextFacet;
import org.apache.isis.core.metamodel.facets.members.hidden.method.HideForContextFacetViaMethod;
import org.apache.isis.core.metamodel.facets.members.hidden.method.HideForContextFacetViaMethodFactory;
import org.apache.isis.core.metamodel.facets.members.hidden.staticmethod.HiddenFacetOnStaticMethod;
import org.apache.isis.core.metamodel.facets.members.hidden.staticmethod.HiddenFacetStaticMethodFactory;
import org.apache.isis.core.metamodel.facets.members.named.staticmethod.NamedFacetStaticMethod;
import org.apache.isis.core.metamodel.facets.members.named.staticmethod.NamedFacetStaticMethodFactory;
import org.apache.isis.core.metamodel.facets.propcoll.accessor.PropertyOrCollectionAccessorFacet;
import org.apache.isis.core.metamodel.facets.propcoll.notpersisted.NotPersistedFacet;
import org.apache.isis.core.metamodel.facets.properties.accessor.PropertyAccessorFacetViaAccessor;
import org.apache.isis.core.metamodel.facets.properties.accessor.PropertyAccessorFacetViaAccessorFactory;
import org.apache.isis.core.metamodel.facets.properties.autocomplete.PropertyAutoCompleteFacet;
import org.apache.isis.core.metamodel.facets.properties.autocomplete.method.PropertyAutoCompleteFacetMethod;
import org.apache.isis.core.metamodel.facets.properties.autocomplete.method.PropertyAutoCompleteFacetMethodFactory;
import org.apache.isis.core.metamodel.facets.properties.choices.PropertyChoicesFacet;
import org.apache.isis.core.metamodel.facets.properties.choices.method.PropertyChoicesFacetViaMethod;
import org.apache.isis.core.metamodel.facets.properties.choices.method.PropertyChoicesFacetViaMethodFactory;
import org.apache.isis.core.metamodel.facets.properties.defaults.PropertyDefaultFacet;
import org.apache.isis.core.metamodel.facets.properties.defaults.method.PropertyDefaultFacetViaMethod;
import org.apache.isis.core.metamodel.facets.properties.defaults.method.PropertyDefaultFacetViaMethodFactory;
import org.apache.isis.core.metamodel.facets.properties.disabled.inferred.DisabledFacetOnPropertyInferredFactory;
import org.apache.isis.core.metamodel.facets.properties.update.NotPersistableFacetInferred;
import org.apache.isis.core.metamodel.facets.properties.update.PropertyModifyFacetFactory;
import org.apache.isis.core.metamodel.facets.properties.update.PropertySetAndClearFacetFactory;
import org.apache.isis.core.metamodel.facets.properties.update.clear.PropertyClearFacet;
import org.apache.isis.core.metamodel.facets.properties.update.clear.PropertyClearFacetViaClearMethod;
import org.apache.isis.core.metamodel.facets.properties.update.clear.PropertyClearFacetViaSetterMethod;
import org.apache.isis.core.metamodel.facets.properties.update.init.PropertyInitializationFacet;
import org.apache.isis.core.metamodel.facets.properties.update.init.PropertyInitializationFacetViaSetterMethod;
import org.apache.isis.core.metamodel.facets.properties.update.modify.PropertySetterFacet;
import org.apache.isis.core.metamodel.facets.properties.update.modify.PropertySetterFacetViaModifyMethod;
import org.apache.isis.core.metamodel.facets.properties.update.modify.PropertySetterFacetViaSetterMethod;
import org.apache.isis.core.metamodel.facets.properties.validating.PropertyValidateFacet;
import org.apache.isis.core.metamodel.facets.properties.validating.method.PropertyValidateFacetViaMethod;
import org.apache.isis.core.metamodel.facets.properties.validating.method.PropertyValidateFacetViaMethodFactory;
import org.apache.isis.core.metamodel.runtimecontext.ServicesInjector;
import org.apache.isis.core.unittestsupport.jmocking.JUnitRuleMockery2;

public class PropertyMethodsFacetFactoryTest extends AbstractFacetFactoryTest {

    private JUnitRuleMockery2 context = JUnitRuleMockery2.createFor(JUnitRuleMockery2.Mode.INTERFACES_AND_CLASSES);

    private ServicesInjector mockServicesInjector;
    private TranslationService mockTranslationService;

    public void setUp() throws Exception {
        super.setUp();
        mockServicesInjector = context.mock(ServicesInjector.class);
        mockTranslationService = context.mock(TranslationService.class);

        context.checking(new Expectations() {{
            allowing(mockServicesInjector).lookupService(TranslationService.class);
            will(returnValue(mockTranslationService));
        }});
    }

    public void testPropertyAccessorFacetIsInstalledAndMethodRemoved() {
        final PropertyAccessorFacetViaAccessorFactory facetFactory = new PropertyAccessorFacetViaAccessorFactory();
        facetFactory.setSpecificationLookup(programmableReflector);

        class Customer {
            @SuppressWarnings("unused")
            public String getFirstName() {
                return null;
            }
        }
        final Method propertyAccessorMethod = findMethod(Customer.class, "getFirstName");

        facetFactory.process(new ProcessMethodContext(CustomerStatic.class, null, null, propertyAccessorMethod, methodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(PropertyOrCollectionAccessorFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof PropertyAccessorFacetViaAccessor);
        final PropertyAccessorFacetViaAccessor propertyAccessorFacetViaAccessor = (PropertyAccessorFacetViaAccessor) facet;
        assertEquals(propertyAccessorMethod, propertyAccessorFacetViaAccessor.getMethods().get(0));

        assertTrue(methodRemover.getRemovedMethodMethodCalls().contains(propertyAccessorMethod));
    }

    public void testSetterFacetIsInstalledForSetterMethodAndMethodRemoved() {
        final PropertySetAndClearFacetFactory facetFactory = new PropertySetAndClearFacetFactory();
        facetFactory.setSpecificationLookup(programmableReflector);

        class Customer {
            @SuppressWarnings("unused")
            public String getFirstName() {
                return null;
            }

            @SuppressWarnings("unused")
            public void setFirstName(final String firstName) {
            }
        }
        final Method propertyAccessorMethod = findMethod(Customer.class, "getFirstName");
        final Method propertySetterMethod = findMethod(Customer.class, "setFirstName", new Class[] { String.class });

        facetFactory.process(new ProcessMethodContext(Customer.class, null, null, propertyAccessorMethod, methodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(PropertySetterFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof PropertySetterFacetViaSetterMethod);
        final PropertySetterFacetViaSetterMethod propertySetterFacet = (PropertySetterFacetViaSetterMethod) facet;
        assertEquals(propertySetterMethod, propertySetterFacet.getMethods().get(0));

        assertTrue(methodRemover.getRemovedMethodMethodCalls().contains(propertySetterMethod));
    }

    public void testInitializationFacetIsInstalledForSetterMethodAndMethodRemoved() {
        final PropertySetAndClearFacetFactory facetFactory = new PropertySetAndClearFacetFactory();
        facetFactory.setSpecificationLookup(programmableReflector);

        class Customer {
            @SuppressWarnings("unused")
            public String getFirstName() {
                return null;
            }

            @SuppressWarnings("unused")
            public void setFirstName(final String firstName) {
            }
        }
        final Method propertyAccessorMethod = findMethod(Customer.class, "getFirstName");
        final Method propertySetterMethod = findMethod(Customer.class, "setFirstName", new Class[] { String.class });

        facetFactory.process(new ProcessMethodContext(Customer.class, null, null, propertyAccessorMethod, methodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(PropertyInitializationFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof PropertyInitializationFacet);
        final PropertyInitializationFacetViaSetterMethod propertySetterFacet = (PropertyInitializationFacetViaSetterMethod) facet;
        assertEquals(propertySetterMethod, propertySetterFacet.getMethods().get(0));

        assertTrue(methodRemover.getRemovedMethodMethodCalls().contains(propertySetterMethod));
    }

    public void testSetterFacetIsInstalledMeansNoDisabledOrDerivedFacetsInstalled() {
        final PropertySetAndClearFacetFactory facetFactory = new PropertySetAndClearFacetFactory();
        facetFactory.setSpecificationLookup(programmableReflector);

        class Customer {
            @SuppressWarnings("unused")
            public String getFirstName() {
                return null;
            }

            @SuppressWarnings("unused")
            public void setFirstName(final String firstName) {
            }
        }
        final Method propertyAccessorMethod = findMethod(Customer.class, "getFirstName");

        facetFactory.process(new ProcessMethodContext(Customer.class, null, null, propertyAccessorMethod, methodRemover, facetedMethod));

        assertNull(facetedMethod.getFacet(NotPersistedFacet.class));
        assertNull(facetedMethod.getFacet(NotPersistedFacet.class));
    }

    public void testSetterFacetIsInstalledForModifyMethodAndMethodRemoved() {

        final PropertyModifyFacetFactory facetFactoryForModify = new PropertyModifyFacetFactory();
        facetFactoryForModify.setSpecificationLookup(programmableReflector);
        final PropertySetAndClearFacetFactory facetFactoryForSetter = new PropertySetAndClearFacetFactory();
        facetFactoryForSetter.setSpecificationLookup(programmableReflector);

        class Customer {
            @SuppressWarnings("unused")
            public String getFirstName() {
                return null;
            }

            @SuppressWarnings("unused")
            public void modifyFirstName(final String firstName) {
            }
        }
        final Method propertyAccessorMethod = findMethod(Customer.class, "getFirstName");
        final Method propertyModifyMethod = findMethod(Customer.class, "modifyFirstName", new Class[] { String.class });

        final ProcessMethodContext processMethodContext = new ProcessMethodContext(Customer.class, null, null, propertyAccessorMethod, methodRemover, facetedMethod);
        facetFactoryForModify.process(processMethodContext);
        facetFactoryForSetter.process(processMethodContext);

        final Facet facet = facetedMethod.getFacet(PropertySetterFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof PropertySetterFacetViaModifyMethod);
        final PropertySetterFacetViaModifyMethod propertySetterFacet = (PropertySetterFacetViaModifyMethod) facet;
        assertEquals(propertyModifyMethod, propertySetterFacet.getMethods().get(0));

        assertTrue(methodRemover.getRemovedMethodMethodCalls().contains(propertyModifyMethod));
    }

    public void testModifyMethodWithNoSetterInstallsNotPersistedFacetButDoesNotInstallADisabledFacets() {
        final PropertySetAndClearFacetFactory facetFactory = new PropertySetAndClearFacetFactory();
        facetFactory.setSpecificationLookup(programmableReflector);
        final PropertyModifyFacetFactory facetFactoryForModify = new PropertyModifyFacetFactory();
        facetFactoryForModify.setSpecificationLookup(programmableReflector);
        final DisabledFacetOnPropertyInferredFactory disabledFacetOnPropertyInferredFactory = new DisabledFacetOnPropertyInferredFactory();
        disabledFacetOnPropertyInferredFactory.setSpecificationLookup(programmableReflector);

        class Customer {
            @SuppressWarnings("unused")
            public String getFirstName() {
                return null;
            }

            @SuppressWarnings("unused")
            public void modifyFirstName(final String firstName) {
            }
        }
        final Method propertyAccessorMethod = findMethod(Customer.class, "getFirstName");

        final ProcessMethodContext processMethodContext = new ProcessMethodContext(Customer.class, null, null, propertyAccessorMethod, methodRemover, facetedMethod);
        facetFactory.process(processMethodContext);
        facetFactoryForModify.process(processMethodContext);
        disabledFacetOnPropertyInferredFactory.process(processMethodContext);

        Facet facet = facetedMethod.getFacet(NotPersistedFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof NotPersistableFacetInferred);

        facet = facetedMethod.getFacet(DisabledFacet.class);
        assertNull(facet);
    }

    public void testIfHaveSetterAndModifyFacetThenTheModifyFacetWinsOut() {
        final PropertySetAndClearFacetFactory facetFactory = new PropertySetAndClearFacetFactory();
        facetFactory.setSpecificationLookup(programmableReflector);
        final PropertyModifyFacetFactory facetFactoryForModify = new PropertyModifyFacetFactory();
        facetFactoryForModify.setSpecificationLookup(programmableReflector);

        class Customer {
            @SuppressWarnings("unused")
            public String getFirstName() {
                return null;
            }

            @SuppressWarnings("unused")
            public void setFirstName(final String firstName) {
            }

            @SuppressWarnings("unused")
            public void modifyFirstName(final String firstName) {
            }
        }
        final Method propertyAccessorMethod = findMethod(Customer.class, "getFirstName");
        final Method propertySetterMethod = findMethod(Customer.class, "setFirstName", new Class[] { String.class });
        final Method propertyModifyMethod = findMethod(Customer.class, "modifyFirstName", new Class[] { String.class });

        final ProcessMethodContext processMethodContext = new ProcessMethodContext(Customer.class, null, null, propertyAccessorMethod, methodRemover, facetedMethod);
        facetFactory.process(processMethodContext);
        facetFactoryForModify.process(processMethodContext);

        final Facet facet = facetedMethod.getFacet(PropertySetterFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof PropertySetterFacetViaModifyMethod);
        final PropertySetterFacetViaModifyMethod propertySetterFacet = (PropertySetterFacetViaModifyMethod) facet;
        assertEquals(propertyModifyMethod, propertySetterFacet.getMethods().get(0));

        assertTrue(methodRemover.getRemovedMethodMethodCalls().contains(propertySetterMethod));
        assertTrue(methodRemover.getRemovedMethodMethodCalls().contains(propertyModifyMethod));
    }

    public void testClearFacet() {
        final PropertySetAndClearFacetFactory facetFactory = new PropertySetAndClearFacetFactory();
        facetFactory.setSpecificationLookup(programmableReflector);

        class Customer {
            @SuppressWarnings("unused")
            public String getFirstName() {
                return null;
            }

            @SuppressWarnings("unused")
            public void clearFirstName() {
            }
        }
        final Method propertyAccessorMethod = findMethod(Customer.class, "getFirstName");
        final Method propertyClearMethod = findMethod(Customer.class, "clearFirstName");

        facetFactory.process(new ProcessMethodContext(Customer.class, null, null, propertyAccessorMethod, methodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(PropertyClearFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof PropertyClearFacetViaClearMethod);
        final PropertyClearFacetViaClearMethod propertyClearFacet = (PropertyClearFacetViaClearMethod) facet;
        assertEquals(propertyClearMethod, propertyClearFacet.getMethods().get(0));

        assertTrue(methodRemover.getRemovedMethodMethodCalls().contains(propertyClearMethod));
    }

    public void testClearFacetViaSetterIfNoExplicitClearMethod() {
        final PropertySetAndClearFacetFactory facetFactory = new PropertySetAndClearFacetFactory();
        facetFactory.setSpecificationLookup(programmableReflector);

        class Customer {
            @SuppressWarnings("unused")
            public String getFirstName() {
                return null;
            }

            @SuppressWarnings("unused")
            public void setFirstName(final String firstName) {
            }
        }
        final Method propertyAccessorMethod = findMethod(Customer.class, "getFirstName");
        final Method propertySetterMethod = findMethod(Customer.class, "setFirstName", new Class[] { String.class });

        facetFactory.process(new ProcessMethodContext(Customer.class, null, null, propertyAccessorMethod, methodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(PropertyClearFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof PropertyClearFacetViaSetterMethod);
        final PropertyClearFacetViaSetterMethod propertyClearFacet = (PropertyClearFacetViaSetterMethod) facet;
        assertEquals(propertySetterMethod, propertyClearFacet.getMethods().get(0));
    }

    public void testChoicesFacetFoundAndMethodRemoved() {
        final PropertyChoicesFacetViaMethodFactory facetFactory = new PropertyChoicesFacetViaMethodFactory();
        facetFactory.setSpecificationLookup(programmableReflector);

        class Customer {
            @SuppressWarnings("unused")
            public String getFirstName() {
                return null;
            }

            @SuppressWarnings("unused")
            public Object[] choicesFirstName() {
                return null;
            }
        }
        final Method propertyAccessorMethod = findMethod(Customer.class, "getFirstName");
        final Method propertyChoicesMethod = findMethod(Customer.class, "choicesFirstName");

        facetFactory.process(new ProcessMethodContext(Customer.class, null, null, propertyAccessorMethod, methodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(PropertyChoicesFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof PropertyChoicesFacetViaMethod);
        final PropertyChoicesFacetViaMethod propertyChoicesFacet = (PropertyChoicesFacetViaMethod) facet;
        assertEquals(propertyChoicesMethod, propertyChoicesFacet.getMethods().get(0));

        assertTrue(methodRemover.getRemovedMethodMethodCalls().contains(propertyChoicesMethod));
    }

    public void testAutoCompleteFacetFoundAndMethodRemoved() {
        final PropertyAutoCompleteFacetMethodFactory facetFactory = new PropertyAutoCompleteFacetMethodFactory();
        facetFactory.setSpecificationLookup(programmableReflector);

        class Customer {
            @SuppressWarnings("unused")
            public String getFirstName() {
                return null;
            }

            @SuppressWarnings("unused")
            public Object[] autoCompleteFirstName(String searchArg) {
                return null;
            }
        }
        final Method propertyAccessorMethod = findMethod(Customer.class, "getFirstName");
        final Method propertyAutoCompleteMethod = findMethod(Customer.class, "autoCompleteFirstName", new Class[]{String.class});

        facetFactory.process(new ProcessMethodContext(Customer.class, null, null, propertyAccessorMethod, methodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(PropertyAutoCompleteFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof PropertyAutoCompleteFacetMethod);
        final PropertyAutoCompleteFacetMethod propertyAutoCompleteFacet = (PropertyAutoCompleteFacetMethod) facet;
        assertEquals(propertyAutoCompleteMethod, propertyAutoCompleteFacet.getMethods().get(0));

        assertTrue(methodRemover.getRemovedMethodMethodCalls().contains(propertyAutoCompleteMethod));
    }

    public void testDefaultFacetFoundAndMethodRemoved() {
        final PropertyDefaultFacetViaMethodFactory facetFactory = new PropertyDefaultFacetViaMethodFactory();
        facetFactory.setSpecificationLookup(programmableReflector);

        class Customer {
            @SuppressWarnings("unused")
            public String getFirstName() {
                return null;
            }

            @SuppressWarnings("unused")
            public String defaultFirstName() {
                return null;
            }
        }
        final Method propertyAccessorMethod = findMethod(Customer.class, "getFirstName");
        final Method propertyDefaultMethod = findMethod(Customer.class, "defaultFirstName");

        facetFactory.process(new ProcessMethodContext(Customer.class, null, null, propertyAccessorMethod, methodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(PropertyDefaultFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof PropertyDefaultFacetViaMethod);
        final PropertyDefaultFacetViaMethod propertyDefaultFacet = (PropertyDefaultFacetViaMethod) facet;
        assertEquals(propertyDefaultMethod, propertyDefaultFacet.getMethods().get(0));

        assertTrue(methodRemover.getRemovedMethodMethodCalls().contains(propertyDefaultMethod));
    }

    public void testValidateFacetFoundAndMethodRemoved() {
        final PropertyValidateFacetViaMethodFactory facetFactory = new PropertyValidateFacetViaMethodFactory();
        facetFactory.setSpecificationLookup(programmableReflector);
        facetFactory.setServicesInjector(mockServicesInjector);

        class Customer {
            @SuppressWarnings("unused")
            public String getFirstName() {
                return null;
            }

            @SuppressWarnings("unused")
            public String validateFirstName(final String firstName) {
                return null;
            }
        }
        final Method propertyAccessorMethod = findMethod(Customer.class, "getFirstName");
        final Method propertyValidateMethod = findMethod(Customer.class, "validateFirstName", new Class[] { String.class });

        facetFactory.process(new ProcessMethodContext(Customer.class, null, null, propertyAccessorMethod, methodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(PropertyValidateFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof PropertyValidateFacetViaMethod);
        final PropertyValidateFacetViaMethod propertyValidateFacet = (PropertyValidateFacetViaMethod) facet;
        assertEquals(propertyValidateMethod, propertyValidateFacet.getMethods().get(0));

        assertTrue(methodRemover.getRemovedMethodMethodCalls().contains(propertyValidateMethod));
    }

    public void testDisableFacetFoundAndMethodRemoved() {
        final DisableForContextFacetViaMethodFactory facetFactory = new DisableForContextFacetViaMethodFactory();
        facetFactory.setSpecificationLookup(programmableReflector);
        facetFactory.setServicesInjector(mockServicesInjector);

        class Customer {
            @SuppressWarnings("unused")
            public String getFirstName() {
                return null;
            }

            @SuppressWarnings("unused")
            public String disableFirstName() {
                return "disabled";
            }
        }
        final Method propertyAccessorMethod = findMethod(Customer.class, "getFirstName");
        final Method propertyDisableMethod = findMethod(Customer.class, "disableFirstName", new Class[] {});

        facetFactory.process(new ProcessMethodContext(Customer.class, null, null, propertyAccessorMethod, methodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(DisableForContextFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof DisableForContextFacetViaMethod);
        final DisableForContextFacetViaMethod disableForContextFacet = (DisableForContextFacetViaMethod) facet;
        assertEquals(propertyDisableMethod, disableForContextFacet.getMethods().get(0));

        assertTrue(methodRemover.getRemovedMethodMethodCalls().contains(propertyDisableMethod));
    }

    public void testDisableFacetNoArgsFoundAndMethodRemoved() {
        final DisableForContextFacetViaMethodFactory facetFactory = new DisableForContextFacetViaMethodFactory();
        facetFactory.setSpecificationLookup(programmableReflector);
        facetFactory.setServicesInjector(mockServicesInjector);

        class Customer {
            @SuppressWarnings("unused")
            public String getFirstName() {
                return null;
            }

            @SuppressWarnings("unused")
            public String disableFirstName() {
                return "disabled";
            }
        }
        final Method propertyAccessorMethod = findMethod(Customer.class, "getFirstName");
        final Method propertyDisableMethod = findMethod(Customer.class, "disableFirstName");

        facetFactory.process(new ProcessMethodContext(Customer.class, null, null, propertyAccessorMethod, methodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(DisableForContextFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof DisableForContextFacetViaMethod);
        final DisableForContextFacetViaMethod disableForContextFacet = (DisableForContextFacetViaMethod) facet;
        assertEquals(propertyDisableMethod, disableForContextFacet.getMethods().get(0));

        assertTrue(methodRemover.getRemovedMethodMethodCalls().contains(propertyDisableMethod));
    }

    public void testHiddenFacetFoundAndMethodRemoved() {
        final HideForContextFacetViaMethodFactory facetFactory = new HideForContextFacetViaMethodFactory();
        facetFactory.setSpecificationLookup(programmableReflector);

        class Customer {
            @SuppressWarnings("unused")
            public String getFirstName() {
                return null;
            }

            @SuppressWarnings("unused")
            public boolean hideFirstName() {
                return true;
            }
        }
        final Method propertyAccessorMethod = findMethod(Customer.class, "getFirstName");
        final Method propertyHideMethod = findMethod(Customer.class, "hideFirstName", new Class[] {});

        facetFactory.process(new ProcessMethodContext(Customer.class, null, null, propertyAccessorMethod, methodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(HideForContextFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof HideForContextFacetViaMethod);
        final HideForContextFacetViaMethod hideForContextFacet = (HideForContextFacetViaMethod) facet;
        assertEquals(propertyHideMethod, hideForContextFacet.getMethods().get(0));

        assertTrue(methodRemover.getRemovedMethodMethodCalls().contains(propertyHideMethod));
    }

    public void testHiddenFacetWithNoArgFoundAndMethodRemoved() {
        final HideForContextFacetViaMethodFactory facetFactory = new HideForContextFacetViaMethodFactory();
        facetFactory.setSpecificationLookup(programmableReflector);

        class Customer {
            @SuppressWarnings("unused")
            public String getFirstName() {
                return null;
            }

            @SuppressWarnings("unused")
            public boolean hideFirstName() {
                return true;
            }
        }
        final Method propertyAccessorMethod = findMethod(Customer.class, "getFirstName");
        final Method propertyHideMethod = findMethod(Customer.class, "hideFirstName");

        facetFactory.process(new ProcessMethodContext(Customer.class, null, null, propertyAccessorMethod, methodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(HideForContextFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof HideForContextFacetViaMethod);
        final HideForContextFacetViaMethod hideForContextFacet = (HideForContextFacetViaMethod) facet;
        assertEquals(propertyHideMethod, hideForContextFacet.getMethods().get(0));

        assertTrue(methodRemover.getRemovedMethodMethodCalls().contains(propertyHideMethod));
    }

    public void testPropertyFoundOnSuperclass() {
        final PropertyAccessorFacetViaAccessorFactory facetFactory = new PropertyAccessorFacetViaAccessorFactory();
        facetFactory.setSpecificationLookup(programmableReflector);

        class Customer {
            @SuppressWarnings("unused")
            public String getFirstName() {
                return null;
            }
        }

        class CustomerEx extends Customer {
        }

        final Method propertyAccessorMethod = findMethod(Customer.class, "getFirstName");

        facetFactory.process(new ProcessMethodContext(CustomerEx.class, null, null, propertyAccessorMethod, methodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(PropertyOrCollectionAccessorFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof PropertyAccessorFacetViaAccessor);
        final PropertyAccessorFacetViaAccessor accessorFacet = (PropertyAccessorFacetViaAccessor) facet;
        assertEquals(propertyAccessorMethod, accessorFacet.getMethods().get(0));
    }

    public void testPropertyFoundOnSuperclassButHelperMethodFoundOnSubclass() {
        final PropertyAccessorFacetViaAccessorFactory facetFactory = new PropertyAccessorFacetViaAccessorFactory();
        facetFactory.setSpecificationLookup(programmableReflector);
        final HideForContextFacetViaMethodFactory facetFactoryForHide = new HideForContextFacetViaMethodFactory();
        facetFactoryForHide.setSpecificationLookup(programmableReflector);
        final DisableForContextFacetViaMethodFactory facetFactoryForDisable = new DisableForContextFacetViaMethodFactory();
        facetFactoryForDisable.setSpecificationLookup(programmableReflector);
        facetFactoryForDisable.setServicesInjector(mockServicesInjector);

        class Customer {
            @SuppressWarnings("unused")
            public String getFirstName() {
                return null;
            }
        }

        class CustomerEx extends Customer {
            @SuppressWarnings("unused")
            public boolean hideFirstName() {
                return true;
            }

            @SuppressWarnings("unused")
            public String disableFirstName() {
                return "disabled";
            }
        }

        final Method propertyAccessorMethod = findMethod(Customer.class, "getFirstName");
        final Method propertyHideMethod = findMethod(CustomerEx.class, "hideFirstName");
        final Method propertyDisableMethod = findMethod(CustomerEx.class, "disableFirstName");

        final ProcessMethodContext processMethodContext = new ProcessMethodContext(CustomerEx.class, null, null, propertyAccessorMethod, methodRemover, facetedMethod);
        facetFactory.process(processMethodContext);
        facetFactoryForHide.process(processMethodContext);
        facetFactoryForDisable.process(processMethodContext);

        final Facet facet = facetedMethod.getFacet(HideForContextFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof HideForContextFacetViaMethod);
        final HideForContextFacetViaMethod hideForContextFacet = (HideForContextFacetViaMethod) facet;
        assertEquals(propertyHideMethod, hideForContextFacet.getMethods().get(0));

        final Facet facet2 = facetedMethod.getFacet(DisableForContextFacet.class);
        assertNotNull(facet2);
        assertTrue(facet2 instanceof DisableForContextFacetViaMethod);
        final DisableForContextFacetViaMethod disableForContextFacet = (DisableForContextFacetViaMethod) facet2;
        assertEquals(propertyDisableMethod, disableForContextFacet.getMethods().get(0));
    }

    public static class CustomerStatic {
        public String getFirstName() {
            return null;
        }

        // required otherwise marked as DisabledFacetAlways
        public void setFirstName(final String firstName) {
        }

        public static String nameFirstName() {
            return "Given name";
        };

        public static String descriptionFirstName() {
            return "Some old description";
        }

        public static boolean alwaysHideFirstName() {
            return true;
        }

        public static boolean protectFirstName() {
            return true;
        }

        public static boolean hideFirstName(final UserMemento userMemento) {
            return true;
        }

        public static String disableFirstName(final UserMemento userMemento) {
            return "disabled for this user";
        }

        public String getLastName() {
            return null;
        }

        // required otherwise marked as DisabledFacetAlways
        public void setLastName(final String firstName) {
        }

        public static boolean alwaysHideLastName() {
            return false;
        }

        public static boolean protectLastName() {
            return false;
        }
    }

    public void testInstallsNamedFacetUsingNameMethodAndRemovesMethod() {
        final NamedFacetStaticMethodFactory facetFactory = new NamedFacetStaticMethodFactory();
        facetFactory.setSpecificationLookup(programmableReflector);

        final Method propertyAccessorMethod = findMethod(CustomerStatic.class, "getFirstName");
        final Method nameMethod = findMethod(CustomerStatic.class, "nameFirstName");

        facetFactory.process(new ProcessMethodContext(CustomerStatic.class, null, null, propertyAccessorMethod, methodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(NamedFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof NamedFacetStaticMethod);
        final NamedFacetStaticMethod namedFacet = (NamedFacetStaticMethod) facet;
        assertEquals("Given name", namedFacet.value());

        assertTrue(methodRemover.getRemovedMethodMethodCalls().contains(nameMethod));
    }

    public void testInstallsDescribedAsFacetUsingDescriptionAndRemovesMethod() {
        final DescribedAsFacetStaticMethodFactory facetFactory = new DescribedAsFacetStaticMethodFactory();
        facetFactory.setSpecificationLookup(programmableReflector);

        final Method propertyAccessorMethod = findMethod(CustomerStatic.class, "getFirstName");
        final Method descriptionMethod = findMethod(CustomerStatic.class, "descriptionFirstName");

        facetFactory.process(new ProcessMethodContext(CustomerStatic.class, null, null, propertyAccessorMethod, methodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(DescribedAsFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof DescribedAsFacetStaticMethod);
        final DescribedAsFacetStaticMethod describedAsFacet = (DescribedAsFacetStaticMethod) facet;
        assertEquals("Some old description", describedAsFacet.value());

        assertTrue(methodRemover.getRemovedMethodMethodCalls().contains(descriptionMethod));
    }

    public void testInstallsHiddenFacetUsingAlwaysHideAndRemovesMethod() {
        final HiddenFacetStaticMethodFactory facetFactory = new HiddenFacetStaticMethodFactory();
        facetFactory.setSpecificationLookup(programmableReflector);

        final Method propertyAccessorMethod = findMethod(CustomerStatic.class, "getFirstName");
        final Method propertyAlwaysHideMethod = findMethod(CustomerStatic.class, "alwaysHideFirstName");

        facetFactory.process(new ProcessMethodContext(CustomerStatic.class, null, null, propertyAccessorMethod, methodRemover, facetedMethod));

        final HiddenFacetOnStaticMethod facet = facetedMethod.getFacet(HiddenFacetOnStaticMethod.class);
        assertNotNull(facet);

        assertTrue(methodRemover.getRemovedMethodMethodCalls().contains(propertyAlwaysHideMethod));
    }

    public void testInstallsHiddenFacetUsingAlwaysHideWhenNotAndRemovesMethod() {
        final HiddenFacetStaticMethodFactory facetFactory = new HiddenFacetStaticMethodFactory();
        facetFactory.setSpecificationLookup(programmableReflector);

        final Method propertyAccessorMethod = findMethod(CustomerStatic.class, "getLastName");
        final Method propertyAlwaysHideMethod = findMethod(CustomerStatic.class, "alwaysHideLastName");

        facetFactory.process(new ProcessMethodContext(CustomerStatic.class, null, null, propertyAccessorMethod, methodRemover, facetedMethod));

        assertNull(facetedMethod.getFacet(HiddenFacetOnStaticMethod.class));

        assertTrue(methodRemover.getRemovedMethodMethodCalls().contains(propertyAlwaysHideMethod));
    }

    public void testInstallsDisabledFacetUsingProtectAndRemovesMethod() {
        final DisabledFacetStaticMethodFacetFactory facetFactory = new DisabledFacetStaticMethodFacetFactory();
        facetFactory.setSpecificationLookup(programmableReflector);

        final Method propertyAccessorMethod = findMethod(CustomerStatic.class, "getFirstName");
        final Method propertyProtectMethod = findMethod(CustomerStatic.class, "protectFirstName");

        facetFactory.process(new ProcessMethodContext(CustomerStatic.class, null, null, propertyAccessorMethod, methodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(DisabledFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof DisabledFacetAbstractAlwaysEverywhere);

        assertTrue(methodRemover.getRemovedMethodMethodCalls().contains(propertyProtectMethod));
    }

    public void testDoesNotInstallDisabledFacetUsingProtectWhenNotAndRemovesMethod() {
        final DisabledFacetStaticMethodFacetFactory facetFactory = new DisabledFacetStaticMethodFacetFactory();
        facetFactory.setSpecificationLookup(programmableReflector);

        final Method propertyAccessorMethod = findMethod(CustomerStatic.class, "getLastName");
        final Method propertyProtectMethod = findMethod(CustomerStatic.class, "protectLastName");

        facetFactory.process(new ProcessMethodContext(CustomerStatic.class, null, null, propertyAccessorMethod, methodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(DisabledFacet.class);
        assertNull(facet);

        assertTrue(methodRemover.getRemovedMethodMethodCalls().contains(propertyProtectMethod));
    }

    public void testInstallsHiddenForSessionFacetAndRemovesMethod() {
        final HideForSessionFacetViaMethodFactory facetFactory = new HideForSessionFacetViaMethodFactory();
        facetFactory.setSpecificationLookup(programmableReflector);

        final Method propertyAccessorMethod = findMethod(CustomerStatic.class, "getFirstName");
        final Method hideMethod = findMethod(CustomerStatic.class, "hideFirstName", new Class[] { UserMemento.class });

        facetFactory.process(new ProcessMethodContext(CustomerStatic.class, null, null, propertyAccessorMethod, methodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(HideForSessionFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof HideForSessionFacetViaMethod);
        final HideForSessionFacetViaMethod hideForSessionFacetViaMethod = (HideForSessionFacetViaMethod) facet;
        assertEquals(hideMethod, hideForSessionFacetViaMethod.getMethods().get(0));

        assertTrue(methodRemover.getRemovedMethodMethodCalls().contains(hideMethod));

    }

    public void testInstallsDisabledForSessionFacetAndRemovesMethod() {
        final DisableForSessionFacetViaMethodFactory facetFactory = new DisableForSessionFacetViaMethodFactory();
        facetFactory.setSpecificationLookup(programmableReflector);

        final Method propertyAccessorMethod = findMethod(CustomerStatic.class, "getFirstName");
        final Method disableMethod = findMethod(CustomerStatic.class, "disableFirstName", new Class[] { UserMemento.class });

        facetFactory.process(new ProcessMethodContext(CustomerStatic.class, null, null, propertyAccessorMethod, methodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(DisableForSessionFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof DisableForSessionFacetViaMethod);
        final DisableForSessionFacetViaMethod disableForSessionFacetViaMethod = (DisableForSessionFacetViaMethod) facet;
        assertEquals(disableMethod, disableForSessionFacetViaMethod.getMethods().get(0));

        assertTrue(methodRemover.getRemovedMethodMethodCalls().contains(disableMethod));
    }

}

redpajama_set_name: RedPajamaGithub


The 'Obscure' Double Buckle Strap boot with centre seam and pewter buckle straps in Black Calf, with silver nickel trims, on the new Manero last. With a black sole edge and new red leather sole embossed with the words of Friedrich Nietzsche: "Without music, life would be a mistake".
If you want to read more about our influences please see our Heroes page.


text:
About GEO600
GEO600 High-Tech
GEO Diary
Directions and visits
GEO High Frequency and Squeezing
GEO600 Astrowatch
Advanced LIGO
GEO600 Sensitivity Curves
Technical Principles
Press & Public Outreach
Recent Research News
Science for the public
A pulsar with a tremendous hiccup
Dr. Holger Pletsch
Independent Research Group Leader
Phone:+49 511 762 17171Fax:+49 511 762-2784
Email:holger.pletsch@...
Albert Einstein Institute Hannover
http://www.aei.mpg.de/
Prof. Dr. Bruce Allen
Phone:+49 511 762-17148Fax:+49 511 762-17182
Email:bruce.allen@...
Dr. Benjamin Knispel
Press Officer AEI Hannover
Email:benjamin.knispel@...
http://www.aei.mpg.de
This animation illustrates how analysis of Fermi data reveals new pulsars. Fermi's LAT records the precise time and position of the gamma rays it detects, but to identify a pulsar requires additional information -- its position in the sky, its pulse period, and the way the pulse changes over time. Additionally, even Fermi's sensitive LAT detects few gamma rays from these objects -- as few as one photon per 100,000 rotations. The Hannover team used new methods to execute a so-called blind search, using computers to check many different combinations of position and period against the 8,000 photons Fermi's LAT has collected during its three years in orbit. When photons from the pulses align in time, a new gamma-ray pulsar has been discovered.
© AEI/NASA Goddard Space Flight Center
Fermi Gamma-ray space telescope
Max Planck Institute for Radio Astronomy
Max Planck Institute for Nuclear Physics
The precise cause of the glitches observed in many young pulsars is unknown. Astronomers consider "star quakes" of the neutron star crust or interactions between the superfluid stellar interior and the crust to be possible explanations. "Detecting a large number of strong pulsar glitches makes it possible to learn more about the inner structure of these compact celestial bodies," says Lucas Guillemot from the Max Planck Institute for Radio Astronomy in Bonn, the second author of the study. "This is a good example of the collaboration of two Max Planck institutes with complementary research foci," says Michael Kramer, Director and Head of the Fundamental Physics in Radio Astronomy research group.
After the discovery in data from the Fermi satellite, the researchers pointed the radio telescope in Green Bank, West Virginia/USA at the celestial position of the gamma-ray pulsar. In an observation of almost two hours and by analysing a further, older, one-hour observation of the source they found no indications of pulsations in the radio range, indicating that J1838-0537 is a rare gamma-ray-only pulsar.
There were, however, noticeable overlays with observations of the High Energy Stereoscopic System (H.E.S.S.) in Namibia, which searches for very-high-energy gamma radiation from the depths of space. In a survey with H.E.S.S., astronomers found an extended source of this radiation near the now discovered pulsar, but have not yet been able to clarify its nature.
The discovery of the pulsar suggests that the H.E.S.S. source is a pulsar wind nebula. These are produced by particles moving at almost the speed of light, which the pulsar accelerates in its extremely strong magnetic field. Since the exact position of the pulsar is now known, H.E.S.S. can take this into account in the future and to make more precise measurements than before in this celestial region.
The ATLAS computer cluster of the Albert Einstein Institute has thus already assisted in the discovery of the tenth previously unknown gamma-ray pulsar; however, Allen's team has meanwhile mobilised further computing capacity. "Since August 2011, our search has also been running on the distributed computing project Einstein@Home, which has computing power a factor of ten greater than the ATLAS cluster. We are very optimistic about finding more unusual gamma-ray pulsars in the Fermi data," says Bruce Allen. One goal of the expanded search is to discover the first gamma-ray-only pulsar with a rotation period in the millisecond range.
These cosmic beacons are compact neutron stars, born in supernova explosions, which rotate rapidly and steadily about their axis. Their intense magnetic field causes them to emit radio waves and gamma radiation. Their rotation sweeps the emission regions through space like the beam from a lighthouse. If the neutron star points towards Earth, it is visible as a pulsar. Not all pulsars show up in multiple spectral ranges. In some cases, the scientists measure only the flashing as a radio pulsar; in other cases, only the periodic arrival times of gamma photons can be registered. The latter type of pulsar is called a gamma-ray-only pulsar. The most likely cause for the different pulsar types are the different orientations of the emission regions in the extremely strong magnetic field of the neutron star.
But pulsars are even more mysterious: when they are young, their steady rotation is irregular, and disturbed by sudden, jerky accelerations known as glitches. Only about five percent of the pulsars exhibit this behaviour. In such a glitch, the neutron star suddenly rotates faster, then slowly decelerates again and returns to the old rotation period a few weeks later. Astronomers do not yet know why this happens, but accurate measurements of these glitches provide insights into the structure of the compact celestial bodies.
To date, astronomers have found most pulsars in the radio wave range, but thanks to NASA's Fermi satellite they are finding more and more of these celestial bodies via their high-energy gamma radiation. Fermi has been observing the universe with its Large Area Telescope (LAT) in the gamma-rays since 2008. It has discovered hundreds of new sources, many of which are probably undiscovered pulsars.
Page«|1|2|3|»
© 2003-2020, Max-Planck-Gesellschaft, München
/1096560/A_pulsar_with_a_tremendous_hiccup


text:
Q: Unshift array of objects in React I have an array of objects (this array comes as a prop from the parent component) and the object.
I have to add the object at the begging of my array.
I've tried different things - nothing works.
const array = [
    {
        key1: 'a',
        key2: 'b',
        key3: 'c',
    },
    {
        key1: 'd',
        key2: 'e',
        key3: 'f',
    },
];

const myObj = {
    key1: '1',
    key2: '2',
    key3: '3',
};

The result I want to see:
const myArray = [
    {
        key1: '1',
        key2: '2',
        key3: '3',
    },
    {
        key1: 'a',
        key2: 'b',
        key3: 'c',
    },
    {
        key1: 'd',
        key2: 'e',
        key3: 'f',
    },
];

A: You can use the spread operator
const newArr = [newObj, ...array]

or
array.unshift(newObj)

redpajama_set_name: RedPajamaStackExchange


text:
EPISODE 4 Florence Fabricant
Aired: Wednesday, May 22nd 2013
HOSTED BY Caity Moseman Wadler Erin Fairbanks
Meet Florence Fabricant, known to some as "Flo Fab". Florence Fabricant is a nationally renowned food writer and columnist who contributes regularly and frequently to the New York Times dining section. She is the author of 11 cookbooks, including, most recently, a book written with The Society of Memorial Sloan Kettering Cancer Center (MSKCC). Florence's other books include The New York Restaurant Cookbook; The Great Potato Book; Venetian Taste; Florence Fabricant's Pleasures of the Table; New Home Cooking; The New York Times Dessert Cookbook; The New York Times Seafood Cookbook; and Elizabeth's Berry's Great Bean Book (with Elizabeth Berry). She is familiar to regular readers of the New York Times, who have come to look forward to her articles on food and the people who make it. She also contributes to the paper's wine column. Florence can make or break a food business in this city – and the country at large for that matter. On Evolutionaries, find out how she found food writing, how she maintains such high standards and why it's still hard to turn down a pitch even after all these years. This program was sponsored by Fairway Market.
documentary Evolutionaries Flo Fab Florence Fabricant Florence Fabricant's Pleasures of the Table food coumnist food writer New Home Cooking The Great Potato Book The New York Restaurant Cookbook The New York Times Venetian Taste
Episode 3 | Eric Ripert
Episode 5 | Rick Bayless
#hrn_evolutio_4
Eating Animals with Director Christopher Quinn
"Elitist Redneck Food" with Sam Sifton
The Dish on Original Dishes
HRN Interns Dish on Their Favorite Food Pieces of 2015
Jamie Oliver is a chef, restaurateur, cookbook author, and TV host. In the late 90s, he was a young restaurant…
Frances Moore Lappé is an iconic activist thinker on society and democracy: which she explores through the universal lens of…
David Kinch is a chef ahead of our time. Long before the farm-to-table trend, David found inspiration in the seasons,…
Peter Kaminksy wears many hats – writer, outdoorsman, journalist, cookbook author, television producer, the list goes on and on. He's…
Brooklyn-born writer Mimi Sheridan is one of the most acclaimed critics food has ever seen. Before becoming the first female…


text:
Q: AndroidEntryPoint not working with AbstractComposeView I am using DaggerHilt for dependency injection. In my AbstractComposeView, I need to access the ViewModel in a Composable function. To do that I have to annotate my AbstractComposeView with @AndroidEntryPoint, since my Composable is part of the AbstractComposeView (which is being used in a Service with @AndroidEntryPoint). but I am getting this error.
error: [Hilt]
  The base class, 'androidx.compose.ui.platform.AbstractComposeView', of the @AndroidEntryPoint,
'com.qwillio.vendi.keyboard.presentation.KeyboardView',
contains a constructor with default parameters.
This is currently not supported by the Gradle plugin. Either specify the
base class as described at https://dagger.dev/hilt/gradle-setup#why-use-the-plugin
or remove the default value declaration.
  [Hilt] Processing did not complete. See error above for details.
[Hilt]

This is my AbstractComposeView

@AndroidEntryPoint
class KeyboardView @JvmOverloads constructor(
    context: Context, attrs: AttributeSet? = null,
    defStyleAttr: Int = 0
) : AbstractComposeView(context, attrs, defStyleAttr) {

    private var keyboardActionListener: OnKeyboardActionListener? = null

    fun setOnKeyboardActionListener(keyboardActionListener: OnKeyboardActionListener) {
        this.keyboardActionListener = keyboardActionListener
    }

    @Composable
    override fun Content() {
        Vendiboard {
            keyboardActionListener?.onKeyboardAction(it)
        }
    }
}


text:
aarticles
La Muralla Roja
byiremuluisik
A project that was built about 50 years ago but still preserves its vitality. La muralla roja(red wall) is an apartmant complex designed by Spanish architect Ricardo Bofill in Spain's Calpe.
Colors, space construction and reference taking from an exotic culture make it so distinctive. Exotic Mediterranean architecture and especially the North African region inspired by this project. Mediterranean tradition of the Casbah (fortress) was reinterpreted by Bofill, and modular structures emerged as vertical silhouettes on the rocky cliff.
Taller de Arquitectura
At the same time, the spaces have been redefined and the aim was to break the post-Renaissance division between public and private spaces reinterpretating the Mediterranean tradition of the casbah. Examples of this are; On the roof terraces there are solariums, a swimming pool, and a sauna for resident's use.
Gregori Civera Photography
Dynamism, movement, and even fun forms appear. Each of the spaces that are waiting to be explored through labyrinth-like buildings is telling a different story.
The color of the sea turn into the color of the wall. Witnessing a moment where architecture and nature meet. Celebrate the coexistence of existing and done.
Both harmony and contrast between colors and the environment cause a perfect balance. Intensity of colors are effective to create an attractive atmosphere. Various tones of red and blue are majority and create the identity of the complex.
Jeanette Hagglund
According to architect Ricardo Bofill:
"The outside surfaces are painted in various tones of red, to accentuate the contrast with the landscape; patios an stairs, however, area treated with blue tones, such as sky-blue, indigo, violet, to produce a stronger or weaker contrast with the sky or, on the contrary, an optical effect of blending in with it. The intensity of the colours is also related to the light and shows how the combination of these elements can help create a greater illusion of space".
It is a project designed with principles such as continuity, integrity and contrast that are open to new space experiences with the environment, light and frames.
La Muralla Roja Arch
La Muralla Roja Architecture
iremuluisik
Recycling Valencia / Tomás A. Caeiro D.
Amazing Architectural Presentation Sheets #1
Best Novels Every Architect Should Read
byElif Ayse Fidanci
Fountainhead Fountainhead examines the life of an idealistic young architect named Howard Roark. Rather than succumbing to the…
Famous Museums with Impressive Architecture
Designing a museum is a kind of an architectural challenge. Museums are consisting of their own unique needs…
5 Mistakes to Avoid When You Create Your Portfolio
byTifa Studio
Our portfolio is a reflection of our character and skills, that is why we should be really careful…
5 Things to Consider Before Designing Your Portfolio
Before starting your portfolio, there are some considerations we should follow to make a great step into achieving…
Arch101
byBegüm Şardan
What do you think about being an architect? What an architect does? Do they only draw plans?
Bubble Diagram In Architecture
In architectural design, you can create a list categorizing all of the spaces and then sort the list…


text:
Q: Accessing a ServerFactory from the Service in Twisted I've been trying to come up with a decent design for multiple factories access each others information. For example, I have the following services: 1 management web service, a VirtualHost instance (multiple domains) and a built in DNS service. Going through the finger tutorial was very helpful but it lacks some key points. It never has a service accessing or executing a method of a factory. I have a hard time believing everyone is implementing 100% of all their logic inside of a single service, and just using the various factories to call those methods defined in the service. If I wanted to update my DNS records, how would my management service tell the DNS Factory, 'hey reload your authority files'?
Any hints on how everyone else is doing this sort of inter-factory inter-service communication?

A: Well, after some help from a friend. I figured it out. If you create a multiservice, you can just pass the multiservice object to all your child services (I pass it in the init). Then you do setName('servicename'). Then from another service you can just get the information like so: x = self.multiService.getServiceNamed('servicename') and access it that way. Works like a charm!
-omgpants


This program is established for the purpose of providing job-related training to students that require certification, in accordance with Chapter 943, Florida Statutes (F.S.) and Chapter 11B - 35, Florida Administrative Code (F.A.C.) as full-time or part-time Law Enforcement Officers.
The content includes, but is not limited to, knowledge of codes of ethics; laws, rules, and regulations of arrest; search and seizure; patrol procedures; traffic control and direction; law enforcement vehicle operations; investigation of traffic crashes; DUI enforcement techniques; crime scene investigation techniques; trial procedures and testimony; communications.
Days and times may vary depending on curriculum needs. Contact Criminal Justice Department (850-941-6200 ext 2152) for schedules.


text:
Q: How to define a list using a user-input string as its name (in python)? I want to define lists at running-time using strings input by the user as their names. Example:
User input        >> "Cars"
python should do  >> cars[]
so later i can do >> cars.append("BMW")

Thanks.


The wide sandy beach located in front of the East Riding village of Mappleton is ideal for dog walking. This section of North Sea coastline is known as Holderness and is situated around 3 miles (5 km) south of the seaside resort of Hornsea.
Whilst you won't find any of the traditional at seaside attractions seen up the coast at Mappleton there is a free car park at top of cliffs and tea rooms nearby.
Mappleton is a former MoD bombing range and as such there are signs warning of old armaments and the danger of picking up metal objects. However, this doesn't stop people enjoying the vast wide open spaces at low tide.
The Holderness coastline is home to the fastest eroding cliffs in Europe so steer clear of them! The sea here is reclaiming areas of land at a rate of nearly 10 metres (30ft) a year. This is good news for fossil hunters but has also been known to uncover the odd unexploded bomb.


text:
A$AP Bari Hit with Sexual Assault Lawsuit
An incident from over the summer where A$AP Bari roused a naked woman from a hotel bed and demanded she have sex with him has come back to haunt the Harlem rapper in a big way.
Bari, real name Jabari Shelton, is being sued for sexual assault by the woman in the video.
The woman, who filed the lawsuit anonymously as Jane Doe, says the incident went down July 9 at a London hotel where some members of the Mob were staying. According to the suit, Bari entered the room where the woman was sleeping and said to her, "You f**ked my assistant, now you are going to f**k me."
Bari next pulled the sheets off the woman to expose her naked body as she screamed no. She claims both Bari and his friend were filming the encounter on their cell phones.
As many will recall, the video shot by the friend briefly went viral and seems to strongly corroborate the woman's accusations.
The woman says she attempted to escape to the bathroom while Bari hounded her, saying "I'm going to f**k you, you are going to suck my d**k." She says she was terrified she was going to be raped. Instead, Bari eventually threw her out into the hotel hallway, completely naked.
She goes on to claim in the suit that she alerted hotel security and asked them to call the police, who after arriving deleted the video of the incident from Bari's phone.
Jane Doe is suing Bari for over $1 million.
Source: tmz.com


text:
Mike MacDonald
MacDonald has had many successful and well received live performances all over North America. In addition, he has appeared on numerous TV shows including Late Night with David Letterman, The Arsenio Hall Show, Just For Laughs, Showtime's Comedy Club All-Star Show, A&E's An Evening at the Improv, and Comedy Central's The A List. His popularity continues to soar in both the US and Canada. He has hosted both the Gemini Awards and the Just For Laughs 10th Anniversary Special for the CBC. MacDonald also holds the distinction of being the only comedian to perform at each and every Just For Laughs gala show.
MacDonald has starred in three well received specials for the CBC in Canada and for Showtime in the US. His first special, Mike MacDonald; On Target was the very first one hour prime time special by a stand-up comic in the history of the CBC. This success led to MacDonald's next special, "My House! My Rules!" This special won its prime time slot when it aired in Canada. It also was nominated for two Gemini Awards. The Showtime version of "My House! My Rules!" was nominated for two CableACE Awards, "Best Comedy Special" and "Best Writing in a Comedy Special". His third Showtime special, called "Happy As I Can Be", was originally slated as a half-hour show. When executives saw the footage, they immediately expanded it to an hour. "Happy As I Can Be" in its one hour format also achieved a number 1 rating when it aired in prime time in Canada on the CBC.