text:
OIF/OEF Casualty Update 20 Jul 2004 [PDF]
SOLDIERS KILLED IN ACTION IN AL ANBAR PROVINCE
MARINE KILLED IN ACTION IN AL ANBAR PROVINCE
Iraq: Assailants Shoot Down Regional Council Member In Al-Basrah RFE/RL 20 Jul 2004 -- Unknown assailants -- presumably insurgents opposed to the U.S.-backed interim government -- shot and killed a member of the regional council in Iraq's southern city of Al-Basrah today. It was the latest in what appears to be a systematic series of targeted attacks against figures in the new administration.
Next group of Airman-Soldiers set to move into Iraq Air Force Link 20 Jul 2004 -- More than 150 Airmen completed the final stages of live-fire convoy training here July 16 before deploying north to Mosul as part of the 494th Air Expeditionary Force Truck Company.
Afghan Militia Leaders Shifted from Army Positions to Civilian Roles VOA News 20 Jul 2004 -- Afghanistan's President Hamid Karzai has shifted three powerful militia leaders from army to civilian positions in what is being seen as an attempt to ensure the country's October presidential election is safe and fair.
Enterprise Heads for Home After Final Summer Pulse Exercise Navy Newsstand 20 Jul 2004 -- USS Enterprise (CVN 65) (Big E) is heading home after successfully completing the multinational maritime exercise MEDSHARK/Majestic Eagle '04 (MS/ME04) July 16, ending the carrier's final major exercise of Summer Pulse '04.
WATC 2004 Gets Underway Navy Newsstand 20 Jul 2004 -- More than 60 Reserve members of Naval Reserve Unit Fleet Hospital, Fort Dix and other U.S. Navy personnel met their Senegalese counterparts July 19 at a ceremony to kick off the West African Training Cruise (WATC) 2004, a Medical Humanitarian Assistance Program.
UNITAS Task Force Completes Full Speed Work-Up Phase Navy Newsstand 20 Jul 2004 -- A 22-ship multinational task force completed 105 training events during the first week of at sea operations for UNITAS 45-04 Pacific Phase in July.
Congress Examines Special Ops Retention Issues AFPS 20 Jul 2004 -- Retaining special operations personnel is crucial to the global war on terrorism, special operations senior enlisted advisers told Congress today.
Military Health Officials Make Survey Data Available to Researchers AFPS 20 Jul 2004 -- Defense Department health officials are making anonymous data taken from surveys of active duty service members available to government researchers.
Special Ops Workload 'Difficult, but Manageable' AFPS 20 Jul 2004 -- Special operations forces are deployed worldwide, but changes have made the operations tempo for those forces "difficult, but manageable," officials said before Congress today.
Kitty Hawk Departs During Summer Pulse '04 Navy Newsstand 20 Jul 2004 -- Carrier Air Wing (CVW) 5 and USS Kitty Hawk (CV 63) Sailors again joined forces and departed July 19 for Summer Pulse '04 after a two-month in port period.
Sailors, Marines Simulate Embassy Evacuation Navy Newsstand 20 Jul 2004 -- USS Tarawa (LHA 1) and Marines comprising the Special Marine Air Ground Task Force (SPMAGTF) simulated a Non-Combatant Evacuation Operation (NEO) during exercise Rim of the Pacific (RIMPAC) 2004 in July 14.
Russia: Putin Dismisses Head of General Staff In Military Shake-Up RFE/RL 20 Jul 2004 -- Russian President Vladimir Putin yesterday fired the head of the General Staff, General Anatolii Kvashnin, along with three other top military commanders. The move appears to be part of the Kremlin's long-term effort to reorganize Russia's military into an effective 21st-century force.
State Department Noon Briefing, July 20 Washington File 20 Jul 2004 -- U.S. Pledges $230 Million for Haiti's Reconstruction, Iraq, Zimbabwe, Bangladesh/Nepal, Lebanon/Israel, Israel/Palestinians, Japan, Afghanistan, Iraq, Philippines/Iraq, Iran/Iraq, Japan, Sudan/Chad, Israel/Palestinians
White House Daily Briefing, July 20 Washington File 20 Jul 2004 -- President's schedule, Sandy Berger, Iran/ Halliburton/al Qaeda, Jenna and Barbara Bush, Campaigning standpoint, 9/11 Commission report/ president briefing with Kean and Hamilton, CIA director nomination
BAE SYSTEMS Demonstrates Its Wireless Data Link System At FI2004 BAE Systems 20 Jul 2004 -- BAE Systems Avionics Group has begun demonstrating its wireless data link system at Farnborough International 2004. The system is displayed inside the Companys pavilion, and is also installed on its Mil Mi-24 helicopter, positioned outside in BAE Systems corporate livery. It is the first time that the System has been connected to an aircraft at an exhibition and marks the beginning of the run-up to its launch next month.
Boeing Develops Joint Helmet-Mounted Cueing System Simulation Capability Boeing 20 Jul 2004 -- The Boeing Company [NYSE: BA] has developed and fielded the capability to simulate the Joint Helmet Mounted Cueing System (JHMCS) for the U.S. Air Force F-15C aircraft.
EADS adapts missile warning system to protect fighter aircraft EADS 20 Jul 2004 -- EADS Defence Electronics is adapting its MILDS® missile warning system to a new configuration MILDS® F, accommodating the demanding requirements of fighter aircraft such as the F-16 "Fighting Falcon". The Royal Danish Air Force awarded EADS Defence Electronics a contract to deliver 30 systems in cooperation with the Danish company TERMA A/S which is responsible for integrating them into the RDAF F-16.
EADS welcomes VT Group into the AirTanker Consortium EADS 20 Jul 2004 -- EADS welcomes VT Group as full shareholders in AirTanker, the consortium currently in exclusive negotiations with the UK Ministry of Defence to provide air refuelling and air transport services to the RAF. EADS is the largest shareholder in the consortium with a 40 percent holding. Other shareholders are Rolls-Royce, Cobham (both with 20 percent), Thales and VT (both with 10 percent).
Lockheed Martin F-16 Delivering, Defending, Defining a New Generation Lockheed Martin 20 Jul 2004 -- Lockheed Martin's [NYSE: LMT] F-16 Fighting Falcon thrives in an impressive era of evolution, delivering more than 100 aircraft since Farnborough 2002 and stretching the protective breadth of the F-16 to new limits, said John Bean, Lockheed Martin vice president for F-16 programs.
F/A-22 Raptor Program Operations Accelerating Toward High-Rate Production Lockheed Martin 20 Jul 2004 -- The F/A-22 Raptor air dominance fighter program - led by Lockheed Martin [NYSE: LMT] - is producing aircraft at an ever increasing rate and is on track for 2004.
Raytheon Developing New Variant of Joint Standoff Weapon Raytheon 20 Jul 2004 -- Raytheon Company is developing a new variant of the Joint Standoff Weapon (JSOW) that will significantly lower unit cost and offer an additional payload option.
Jordan Expands Helicopter Fleet with UH-60L BLACK HAWKS Sikorsky 20 Jul 2004 -- Sikorsky Aircraft and the U.S. Government have signed an agreement to build eight UH-60L BLACK HAWK helicopters for the Royal Jordanian Air Force (RJAF), bringing to 13 the number of BLACK HAWKs with the RJAF.
Thales introduces innovative helicopter avionics system based on advanced glass cockpit Thales 20 Jul 2004 -- - On demonstration on Thales booth B4 - Hall 3 -
Thales wins contract to develop demonstrator for RBE2 combat radar with active array antenna Thales 20 Jul 2004 -- The French defence procurement agency (DGA) has renewed its confidence in Thales by awarding a new contract, worth 85 million euros, to develop a second demonstrator for the RBE2 electronic scanning radar with active array antenna* for the Rafale combat aircraft.
CACI Corrects Public Information About Its Services Contract for U.S. Army Interrogation Support in Iraq CACI 20 Jul 2004 -- CACI International Inc (NYSE:CAI) today issued the following statement:
First Upgraded Northrop Grumman-Built Global Hawk UAV Achieves First Flight Northrop Grumman 20 Jul 2004 -- The first air vehicle in a new production lot of upgraded RQ-4A Global Hawk unmanned aerial reconnaissance vehicles made its maiden flight on July 1. Designated AF-3, the newest Global Hawk flew from Northrop Grumman Corporation's (NYSE:NOC) manufacturing facility in Palmdale, Calif., to the Flight Test Center at Edwards Air Force Base.
Lockheed Martin and EADS Exploring Partnership on Global Missile Defense Initiative EADS 20 Jul 2004 -- Lockheed Martin (NYSE: LM) and EADS (Frankfurt, Paris and Madrid stock exchanges quote "EAD"), announced on Tuesday that they have signed a Memorandum of Understanding (MOU) to explore partnership opportunities on missile defense programs in the United States, Europe and around the world.
Newest Lockheed Martin-Built GPS Satellite Begins Service For Navigation Users Worldwide Lockheed Martin 20 Jul 2004 -- Lockheed Martin [NYSE: LMT] and the U.S. Air Force have completed on-orbit checkout of the upgraded Global Positioning System (GPS) satellite launched successfully June 23 from Cape Canaveral. The spacecraft has been declared fully operational for military and civilian navigation users around the globe.
Lockheed Martin Partners With Finmeccanica On Global Missile Defense And Protection Initiatives Lockheed Martin 20 Jul 2004 -- Lockheed Martin (NYSE:LMT) and Finmeccanica (SIFI.MI) today signed a Memorandum of Understanding (MOU) to explore partnership opportunities on missile defense programs in the United States, Europe and around the world.
Lockheed Martin And Eads Exploring Partnership On Global Missile Defense Initiatives Lockheed Martin 20 Jul 2004 -- Lockheed Martin (NYSE: LM) and EADS (Frankfurt, Paris and Madrid stock exchanges quote "EAD"), announced today that they have signed a Memorandum of Understanding (MOU) to explore partnership opportunities on missile defense programs in the United States, Europe and around the world.
DAILY PRESS BRIEFING BY THE OFFICE OF THE SPOKESMAN FOR THE SECRETARY-GENERAL United Nations 20 Jul 2004
Powell Says US 'Completely Dissatisfied' With Darfur Security Situation VOA News 20 Jul 2004 -- Secretary of State Colin Powell said Tuesday Sudanese authorities are not doing enough to improve security for refugees in the western Darfur region. He says he will consult with U.N. Secretary-General Kofi Annan this week on possible action by the Security Council.
Israeli Warplanes Fly Over Beirut VOA News 20 Jul 2004 -- Israeli warplanes have flown over the Lebanese capital, following a day of clashes between the Israeli army and Hezbollah guerrillas inside south Lebanon.
ISRAEL / LEBANON VOA 20 Jul 2004 -- Hezbollah snipers in southern Lebanon killed two Israelis soldiers at a military post along the border. Israel responded by firing into Lebanon at suspected Hezbollah bases and one Hezbollah fighter was reported killed.
SAF/BURUNDI TALKS VOA 20 Jul 2004 -- Talks on the Burundi peace process have dragged through a third day in the South African capital, Pretoria. South African President Thabo Mbeki, who is mediating the talks, says progress has been good, but he has also indicated that the timetable for elections could be altered. There are signs that the talks could go into a fourth day.
PALESTINIANS/POLITICS VOA 20 Jul 2004 -- Palestinian Prime Minister Ahmed Qureia has withdrawn his resignation, and agreed to stay on in his post at the urging of Palestinian President Yasser Arafat. The decision appears to signal an easing of the political crisis within the Palestinian Authority.
THAILAND - VIOLENCE VOA 20 Jul 2004 -- Thailand has opened informal talks with leaders of Muslim separatist groups aimed at ending months of violence in the country's south. But divisions have appeared within the government over the meeting.
SHAPE News Morning Update SHAPE 20 Jul 2004 -- NATO's military committee visits Kosovo / NATO chief says does not know if Mladic in Serbia / Slovak civil defense unit on duty during Olympics¨ Athens ups police presence as Olympics near / Putin fires armed forces chief of staff, other brass after attack near Chechnya / UN General Assembly to try again for vote on Israeli security barrier
SHAPE News Summary & Analysis SHAPE 20 Jul 2004 -- NATO team to work in Iraq / Hand over war crimes suspects, NATO chief tells Serbia-Montenegro / Polish PM calls on NATO troops to step up military presence in Afghanistan / Russia's President Putin signs law adopting European arms treaty
EAST TIMOR PROTEST VOA 20 Jul 2004 -- Police in Southeast Asia's newest state, East Timor, used tear gas to break up a demonstration by former members of the guerrilla movement that helped liberate the region from Indonesian rule in 1999. Some East Timorese are unhappy with the way the country has developed since independence.
PRESS CONFERENCE BY PRIME MINISTER OF ROMANIA United Nations 20 Jul 2004
PRESS CONFERENCE BY PRESIDENT OF CHILE United Nations 20 Jul 2004
PRESS BRIEFING BY SPECIAL ADVISER ON AFRICA United Nations 20 Jul 2004


text:
BLACK MAJESTY – EARACHE / LIMB
In TESTIMONIALS & FAMOUS STUDENTS on August 06, 2020 - 23:31
Black Majesty was formed by Vox Singing Academy student and vocal virtuoso John 'Gio' Cavaliere, Cory Betts on bass guitar (ex-Pegazus), Steve Janevski on guitar (ex-Cyclone Tracy) and Hanny Mohammed on guitar (ex-Catwitch). After the release of a three track sampler album they signed a five-album contract with German-based label, LMP Records.
The Sands of Time album was recorded in 2002 and prefaced by a three-track promo disc that gained them a five-album contract with German label LMP. The album's sound was a mixture of progressive metal and power metal drawing influence from Queensrÿche and Jag Panzer. Reviews of the album were extremely positive, and in several online polls it won "Album of the Year" honors. Bass tracks were recorded by both Betts and Evan Harris, and Cavaliere duetted with Silvio Massaro from Vanishing Point and cousin Danny Cecati from Eyefear on two tracks.
During this time period guitarist Hanny Mohammed played bass at infrequent live shows with fellow Australian power metal band Pegazus, although by the end of 2002 Mohammed fully focused on his work in Black Majesty.
Bassists Mark Kelson of Melbourne doom band The Eternal and Harris have featured as touring members, Harris contributing to the band's next release also, 2005's Silent Company. The album's sound slightly changed from Sands of Time, the band dropping their small progressive touches and going for a more straightforward melodic sound. For the recording of "Silent Company" recorded his drum tracks in Germany with Piet Sielck of Iron Savior whilst the remainder of the band recorded their tracks at Palm Studios in Melbourne with producer Endel Rivers. The album's release was preceded by an extensive tour of Europe, where the band gained exposure to their primary market by playing solo shows and gaining spots on festivals featuring bands such as HammerFall and Edguy. On the band's return to Australia they launched the album with additional solo dates before touring with British band DragonForce and American metal group Nevermore. The band then began writing songs for their next album while sporadically performing live shows, focusing on the writing and recording of their third studio effort.
Black Majesty's third album Tomorrowland was released on 1 June 2007. The album was launched by another European tour which featured slots at festivals such as Masters of Rock, Benatska Noc, and Europe's biggest heavy metal festival, Wacken Open Air, along with a few solo club dates. Bass duties were filled by Richard Filak. Upon Black Majesty's return to Australia, they launched Tomorrowland with various shows around Melbourne. In the following months Black Majesty continued to display their prominence on the Australian Power Metal scene playing solo shows along with supporting Helloween in February. They recently supported Saxon on their April tour of Australia.
Black Majesty started work on its fourth album in February 2009 for Limb Music Products. Roland Grapow will mix the album. The group supported former Iron Maiden singer Paul Dianno on two of his Australian shows on 30 May at the Hifi Bar & Ballroom in Melbourne, and on 6 June at the Manning Bar in Sydney. In November that year they appeared at Screamfest in Sydney. Black Majesty will play a one off concert in Jakarta, Indonesia as part of the Jak Sound, Jakarta Sound & Music Expo on 6 February 2010. Black Majesty released their fourth album, In Your Honour, in 2010. The release was promoted with several shows around Australia as well as a headlining slot at Indonesia's Bla Bla Bla Festival. The band announced a European tour to support the album's release.
The group released their fifth studio album, Stargazer, in July 2012 critical acclaim.

redpajama_set_name: RedPajamaCommonCrawl


text:
The Tokyo 2020 Summer Olympics is right around the corner and their official Twi…
The Tokyo 2020 Summer Olympics is right around the corner and their official Twitter is on overdrive highlighting what's happening behind the scenes at the sporting world's most celebrated event.
In their post on 22 July, Malaysia's very own Pandelela Rinong was featured with a short video of the two-time Olympic medalist training hard with a caption by the committee saying her workout is "no joke" followed by the flushed face and flexed muscle emojis.
The post has garnered tremendous support from Malaysians, with many commenting about how proud they are of her and giving her words of encouragement to bring home the medals.
Pandelela became the first Malaysian female athlete to win an Olympics medal, and the first Malaysian athlete to win an Olympics medal in a sport besides badminton with a Bronze medal in the 10m Platform at the 2012 Summer Olympics in London.
She also won the Silver medal in the 10 m synchronised platform with Cheong Jun Hoong in the 2016 Summer Olympics in Rio, Brazil.
PrevFoto² di dalam D-Arena utk semua
NextTiktok Challenge Sarawak Gemilang untuk Semua!


text:
Tehran welcomes Qatar's call for dialogue between the Gulf states and Iran
2.5 kg Of Gold Seized With A Passenger Departing From Najaf Airport
UAE Leaders Congratulate Biden on Inauguration as US President
MOFAIC: showcasing the UAE and safeguarding the interests of Emirati citizens abroad during one of the most challenging global crisis
July 11, 2020 July 12, 2020 Web Desk
The UAE pursued its pioneering humanitarian initiatives to curb the spread of the novel coronavirus (COVID-19) pandemic, an embodiment of its mission that seeks to uphold the values of solidarity and synergy around the world to overcome the repercussions of this crisis.
Since the beginning of the COVID-19 outbreak around the world, the Ministry of Foreign Affairs and International Cooperation (MoFAIC) established a diplomatic approach long-adopted by the UAE, cooperating with all countries around the world and lending a helping hand communities in need support and assistance, to enhance and strengthen international and multilateral cooperation under extraordinary circumstances.
This global context has shed the light on the Ministry's key role in coordinating with international organizations and external parties in various countries to secure vital assistance to tackle the crisis induced by the global pandemic, adopting the UAE's long-standing approach towards enhancing cooperation between the various parties to overcome current challenges.
Throughout the crisis, the Ministry joined efforts with all the concerned authorities in the UAE, in cooperation with the National Emergency, Crisis and Disaster Management Authority (NCEMA) and the Ministry of Health and Community Protection (MoHAP), towards nationwide coordination between federal and local government agencies concerned and the implementation of master plans to ensure business continuity.
The UAE diplomatic corps: protecting Emirati citizens overseas
The Ministry of Foreign Affairs and International Cooperation, in coordination with the National Emergency, Crisis and Disaster Management Authority, led the response plan since the onset of the crisis of the new Coronavirus outbreak, initiating the repatriation of Emirati citizens from a number of affected countries. The Ministry urged Emiratis overseas to follow health and safety instructions and abide by preventive measures, to register in Twajudi and contact embassies in their country of residence or the ministry's call center when necessary.
UAE embassies and representative missions abroad played a pivotal awareness role and UAE missions in countries most affected by the pandemic advised UAE citizens to avoid infected places and areas and follow official directives.
The Ministry maintained continuous contact with Emirati students studying abroad, as embassies and representative mission stressed the necessity to follow health instructions and preventive measures, to register in Twajudi and contact embassies in their country of residence or the ministry's call center when necessary.
In line with directives issued by the country's top leadership under its close follow-up, the Ministry of Foreign Affairs and International Cooperation (MoFAIC) has taken all necessary measures to evacuate Emirati citizens and their companions abroad, in coordination with UAE embassies and representative missions abroad. MoFAIC and UAE missions have reached out to Emiratis abroad to check on them and facilitate all procedures to bring them and their companions back to the homeland safely, following the decision to suspend all incoming and outgoing flights in a number of countries around the world amid the COVID-19 outbreak around the world.
The UAE leadership closely followed all measures taken the country's embassies and missions abroad and was in contact with ambassadors and heads of missions through phone calls and a series of internal briefings, to support them and secure all practical and medical requirements to facilitate their work.
In this context, the Ministry of Foreign Affairs and International Cooperation announced the launch of "We're here for you", a service for members of the country's diplomatic missions abroad. Launched during a teleconference, the service aims to preserve their health and safety, through the work of a dedicated team to ensure coordination and implement precautionary and preventive measures to slow the spread of coronavirus, COVID-19.
During the meeting, H.H. Sheikh Abdullah bin Zayed Al Nahyan, Minister of Foreign Affairs and International Cooperation, said, "Ensuring the health and safety of all members of our diplomatic missions abroad and their families, as well as all cadres working in embassies and consulates, is a top priority. The ministry is keen to support and assist them and secure their various needs, whether preventive, health or otherwise." Sheikh Abdullah thanked the members of the diplomatic corps for serving the country, stating, "Due to all their efforts, the UAE will be able to overcome this challenge."
He praised the Ministry of Foreign Affairs and International Cooperation's operational efforts that supervised and ensured communication with citizens overseas and coordinated their safe return back to the UAE.
In this context, following the decision to suspend all incoming and departing flights in a number of countries around the world due to COVID-19 outbreak, the Ministry and UAE missions overseas reached out to UAE citizens abroad to check on their situation and facilitate all procedures for their safe repatriation.
H.E. Khaled Abdullah Belhoul, Undersecretary of MoFAIC, confirmed the completion of 166 air and ground repatriations from 61 countries, involving 4,043 Emiratis and their companions.
H.E. highlighted teams at the Ministry worked comprehensively to ensure Emiratis abroad a safe return to the homeland and facilitate the necessary procedures for the same. He highlighted the continuous cooperation with the National Authority for Crisis, Emergency and Disaster Management (NCEMA), and with all the concerned authorities in the UAE and abroad, to monitor any development in the situation, repatriate Emiratis and ensure their safe return.
Repatriations included several Emiratis receiving medical treatment, some fit for travels and others unfit for travel. They returned safely to the UAE and continue to receive medical treatment in the country, in light of the global outbreak.
Operations were carried out with the joint efforts of the MoFAIC Call Center, Operations Department, and the Citizens Affairs Department, which teams worked around the clock to respond to citizens' inquiries and to coordinate with UAE embassies and representative missions abroad that mobilized all their resources to secure the repatriation of citizens and their companions.
Facilitating the return of foreign residents. The UAE: a unique model of coexistence
In a clear expression of UAE's humanitarian stance in supporting all those residing on its territory and of the country's keenness on joint cooperation and coordination with countries around the world to curb the spread of the novel coronavirus, the UAE's humanitarian initiatives throughout the COVID-`9 pandemic included several residents who were abroad upon the announcement of the suspension of flights to and from the UAE.
In this context, MoFAIC took all necessary measures, coordinating with embassies and consulates accredited to the UAE and facilitating the repatriation of citizens from brotherly and friendly countries unable to return to their homes following the suspension of all flights to and from the UAE, through a program launched by the Federal Authority for Identity and Citizenship for holders of valid UAE residencies to facilitate their safe return to the UAE in emergency situations.
The UAE was one of the first countries to declare its readiness to stand alongside China to tackle the repercussions of the COVID-19 pandemic, and proceeded with the evacuation of several nationals of friendly and brotherly countries from China's Hubei Province, the epicenter of the novel coronavirus outbreak, at the request of their governments. They were transferred UAE Humanitarian City in Abu Dhabi.
The Ministry of Foreign Affairs and International Cooperation held also held several e-briefings, 2020 during which ambassadors and consuls accredited to the UAE were briefed on latest COVID-19 developments and precautionary measures rolled out in the UAE and processes in place for the repatriation of Emiratis, residents and visitors amid the global outbreak.
In April 2020, the UAE Ministry of Foreign Affairs and International Cooperation (MoFAIC) and the United Kingdom's Foreign and Commonwealth Office signed a Memorandum of Understanding (MoU) on transit flights for British nationals during the COVID-19 emergency period. The MoU contributed to facilitating the repatriation of British nationals to their homeland, by allowing flights that carry them to transit through UAE airports en route to the United Kingdom, and providing the necessary services and facilities to them, while maintaining precautionary and preventive measures to prevent the spread of COVID-19 in the UAE.
The Department of Foreign Nationals Affairs at the Ministry and competent authorities nationwide intensified efforts and coordinated with embassies and consulates accredited to the UAE to tackle all the challenges resulting from the COVID-19 pandemic, to maintain national security and public safety and curb the spread of the virus. The department contributed to the repatriation of inmates in punitive and correctional institutions who had served their sentence and were sentenced to deportation, in addition to people whose employment had come to term or those who wished to take early leaves from their work, as well as tourists visiting the UAE.
The Ministry also had a key role in establishing direct communication with foreign ambassadors and consuls accredited to the UAE through meetings held at MoFAIC headquarters or through teleconferencing, to coordinate the return of their nationals to their homeland and reunite them with their families, whereas embassies submitted repatriation requests to the Ministry of Foreign Affairs and International Cooperation.
More than 1,300 flights to these countries, and some 320,860 residents and visitors of various nationalities to date, and flight permits obtained for national and foreign carriers to operate repatriation flights for their nationals from the UAE as part of the country's efforts to mitigate the impact of the pandemic on UAE residents.
The Ministry also took part in several national committees on repatriation, which meetings were held daily, including: the NCEMA Committee for the Repatriation of Foreign Nationals, the Committee for the Return of UAE Residents from Abroad at the Federal Authority for Identity and Citizenship, the Committee for the Monetization of Bank Guarantees of the Emirate of Abu Dhabi. The Director of the Department of Foreign Nationals Affairs led the task force, which contributed to the development of a set of rules and guidelines to implement a mechanism to deal with the requests of foreign missions accredited to the UAE, especially with regard to visits members of foreign missions to their nationals in labor camps, and requests for visits by medical staff from various countries to provide treatment to all USE residents, and finally requests for aid to foreign nationals in the country.
After negotiating with all foreign missions in the UAE and in coordination with the competent authorities nationwide, the department tackled the safe repatriation of bodies of foreign nationals at the morgues of the criminal laboratory and hospitals in all emirates to their homeland or their burial in the UAE.
With regard to the return of UAE residents from abroad, the Ministry, through its participation in the National Committee, was able grant the permission to reenter the country to over 40 thousand UAE residents wishing to return. MoFAIC also worked with competent authorities in the UAE to formulate policies regarding the return of residents, and facilitate entry procedures for GCC citizens through the establishment of mechanism rolled out since the beginning of the flight suspensions, whereas the total number of GCC citizens who entered the country ever since exceeded 10,000.
MoFAIC's Department of Foreign Nationals Affairs has also had a clear impact in the humanitarian field, where an operational mechanism was rolled out to implement the nationwide program "Together We Are Good" (Maan), initiated by the Executive Council of the Emirate of Abu Dhabi, represented by the Community Contributions Authority, in support of the government's efforts to overcome the current global challenges, and in coordination and follow-up with the UAE Red Crescent Authority. The program led to the provision of food aid to its beneficiaries, offered online education support to foreign communities in the country, provided adequate housing for migrant workers and covered flight costs for those unable to afford them.
UAE: The Home of Humanity
Since the onset of the global COVID-19 pandemic, the UAE adopted a swift response to assist countries in implementing preventive measures and procedures to contain the virus and curb its spread, by providing the needful medical supplies and flying them to countries affected by the pandemic. The UAE has thus delivered more than 1,000 metric tons of medical supplies to over 70 countries in need, assisting more than 1 million medical workers worldwide in the fight against the COVID-19 pandemic, a clear demonstration of the considerable potential and capabilities of the UAE aid sector, enabling it to reach over a third of the countries in the world despite difficulties and challenges suffered by most shipping and storage sectors globally.
The humanitarian role of UAE aid sector went beyond sending aid to countries in need; it featured coordination at the highest levels with relevant international organizations and specialized bodies, particularly the World Health Organization, and the World Food Programme and its assistance in delivering medical and food supplies to some countries, strengthening the capacity of these organizations to reach the largest international beneficiary group in all parts of the world and contributing to the provision of the necessary medical supplies.
In this regard, the UAE has become the main artery of logistics operations for international organizations that have established strategic warehouses located in the International Humanitarian City in Dubai, and the first responder to global crises, particularly COVID-19 aid.
In a letter to David Beasley, WFP Executive Director, H.H. Sheikh Abdullah bin Zayed Al Nahyan, Minister of Foreign Affairs and International Cooperation expressed the UAE's commitment to supporting the UN World Food Programme in its efforts to tackle the COVID-19 pandemic. H.H. Sheikh Abdullah expressed the country's deep appreciation of the joint UAE-WFP airbridge established in recent days to ensure supply chain continuity for essential medical and humanitarian cargo and services needed across Europe, Asia, and Africa, as part of an agreement to provide USD 10 million worth of PCR COVID-19 testing kits.
"The agreement forms a key part of the UAE's commitment to global solidarity in addressing the COVID-19 pandemic. We believe that multilateral cooperation will be essential to both stopping the virus' spread and managing recovery in close coordination with bilateral efforts," H.H. remarked.
Sheikh Abdullah highlighted the UAE's contributions to the global response to COVID-19, outlining the country's support for the COVID-19 Strategic Preparedness and Response Plan and regular contributions to World Health Organisation operations in China, Somalia, and Ethiopia, among others.
Emphasizing the UAE's coordination with international organizations to facilitate the delivery of humanitarian cargo, H.H. referenced Dubai's International Humanitarian City, IHC, which has processed more than 132 shipments of aid to 98 countries. Moreover, he said, more than 80 percent of the World Health Organisation's distribution of personal protective equipment worldwide has transited through the IHC.
H.H. also noted the UAE's in-kind donation of lifesaving medical and food aid to countries in need. To date, the UAE has provided more than 1,000 tons of aid to over 70 countries, boosting the efforts of nearly 1 million medical professionals in the process.
Sheikh Abdullah concluded by reinforcing the UAE's pledge to continue strengthening cooperation with the WFP and other international organizations in order to alleviate humanitarian suffering and bolster the efforts of fragile communities to combat COVID-19.
The UAE has thus succeeded in delivering series of pivotal messages to the world in tackling these novel circumstances, a clear reflection of the pillars the UAE was founded upon in all walks of life, foremost the principles of giving and serving all humanity.
Business Continuity through Smart Services
In line with the UAE leadership's directives and visionary stance, the Ministry of Foreign Affairs and International Cooperation, proactively invested in state-of-the-art technologies and established an advanced digital infrastructure to provide its customers with a range of electronic and smart services.
Since the beginning of the crisis, the Ministry of Foreign Affairs and International Cooperation has worked to ensure the safety of all its employees in the country and its diplomatic and consular staff abroad, and the safety of customers, through the adoption of comprehensive precautionary and preventive measures. These measures included remote working and closing customer happiness centers temporarily to curb the spread of the novel coronavirus, as of Sunday March 29, 2020 until further notice and in line with government directives in this situation, stressing business continuity in all circumstances and providing all services through smart channels to facilitate procedures.
The Ministry of Foreign Affairs and International Cooperation adopted digital technologies to ensure work continuity, meet the daily requirements of the public, in order to ensure public safety and contribute to the diligent management of the COVID-19 crisis by addressing implications while ensuring the continuity of business with efficacy.
The Ministry also confirmed the provision of all its services electronically, particularly smart attestations, which can be applied for through the ministry's website www.mofaic.gov.aev and UAEMOFAIC smartphone application.
MoFAIC also activated the "Twajudi", one of the best services provided by the UAE to its citizens abroad, to follow up on their situation, provide support services to help them face any circumstances, and organize their return to the UAE through direct communication with them, providing them with all necessary in terms of social, material, technical and logistical support.
Since the beginning of the COVID-19 pandemic around the world, the Ministry and UAE embassies and missions abroad, have received and processed 100% of applications for UAE Citizens services for attestation services certification via online and smart channels.
His Excellency Faisal Issa Lotfi, Advisor to the Consular Services Department at the Ministry of Foreign Affairs and International Cooperation, stated that "there has been a marked increase in the number of transactions through the website and smart application following the activation of a process to complete transactions through e-services and the addition of a delivery service that secures the receipt and delivery of documents at the customer's location in cooperation with Emirates Post".
His Excellency stressed that "since the beginning of the novel Coronavirus outbreak, the ministry has swiftly took all necessary measures to maintain the safety of customers and reduce its risk of spreading, while ensuring business continuity in all circumstances and providing services through smart channels to facilitate procedures" .
The Ministry of Foreign Affairs and International Cooperation had recently launched its Smart Attestation service that allows customers to swiftly and easily authenticate various types of official documents, certificates and invoices, a service which ensures the authenticity of a seal and signature on documents and papers issued in the UAE or abroad.
Diplomacy: Between a New Reality and a Vision for the Future
The COVID-19 crisis imposed the need to adapt to a new reality in all areas, and thus a qualitative shift in the field of diplomacy and a review of future diplomacy.
The Ministry of Foreign Affairs and International Cooperation adopted the latest methods of online communication within the framework of public and cultural diplomacy, hosting a number of ministers, officials, state ambassadors, foreign ambassadors and specialists during the Online Cultural Marathon Symposium, through a series of teleseminars broadcast on the Ministry's various social media channels.
The cultural marathon saw a series of weekly sessions on various topics from "Space Diplomacy" to "A Focused View of Latin America", "Lessons in Cultural Diplomacy from Nigeria", "UAE and Saudi Arabia, Cultural Unity and a Shared Destiny", as well as "UAE and Japan, Joint Efforts to Tackle Crises", "The Role of Embassies in the Future", as well as "Covid-19": How the crisis helped foster a culture of solidarity.
State embassies and missions abroad also held online cultural talks, including the virtual dialogue on the documentary series "The History of the UAE", hosted by the UAE Embassy to the United Kingdom.
In this context, the Youth Council of the Ministry of Foreign Affairs and International Cooperation, in cooperation with the Diplomatic Youth Council of the Ministry of Foreign Affairs of the Russian Federation, held a youth workshop entitled "The Future of Diplomacy Post-Covid-19" on June 8, 2020, via video-telecommunication technology. The seminar was hosted by H.E. Ma'ad Hareb Al Khaili, Uae Ambassador to the Federal Republic of Russia, and His Excellency Sergei Kuznetsov, Ambassador of the Russian Republic to the State, in the presence of more than 110 members of the two councils and young people affiliated with the foreign ministries of the two countries. During the talk, young diplomats from both countries discussed views and ideas on the impact of the Covid-19 crisis on future diplomatic work, emphasizing the importance of young people's role in preparing for the future of diplomacy, and the need to increase the use of virtual tools and modern technology in diplomacy, based on lessons learned from this crisis.
MOFAIC: safeguarding Emiratis overseas
The Ministry of Foreign Affairs and International Cooperation continues to watch out for its citizens overseas around the clock and to be the link between them and the visionary leadership through all its departments, embassies and representative missions around the world in an effort to strengthen the bonds of friendship and cooperation with other countries, and to foster economic and cultural development, and peace in the world.
Source: UAE Ministry Foreign Affairs
Previous Previous post: علاج أول مرضى الشريان التاجي في العالم باستخدام الدعامات المحملة بالعقاقير المعتمدة من إدارة الغذاء والدواء
Next Next post: UAE leaders congratulate President of Mongolia on National Day
The National Human Rights…
UAE supports humanitarian aid…
Reem bint Ibrahim Al…
UAE Reaffirms Support for…
Categories Select Category Arts & Culture Business Education General Health Key Issues Legal Rights Legal-Judicial Press Release Sports Uncategorized
H.H. Sheikh Abdullah bin Zayed chairs meeting of Education and Human Resources Council
Iraqi Army Ranked Seventh In An Int'l Classification Of Most Powerful Armies In Middle East
Zaki Nusseibeh elected member of prestigious American Academy of Arts and Sciences.
Monumental Sports & Entertainment, UAE Announce Global Esports Partnership.
Qatar beach volleyball team advance in FIVB World Ranking
Baghdad, The customs authority announced that more than (2.5) kilograms of gold were seized with...
Archives Select Month January 2021 December 2020 November 2020 October 2020 September 2020 August 2020 July 2020 June 2020 May 2020 April 2020 March 2020 February 2020 January 2020 December 2019 November 2019 October 2019 September 2019 August 2019 July 2019 June 2019 May 2019 April 2019 March 2019 February 2019 January 2019 December 2018 November 2018 October 2018 September 2018 August 2018 July 2018 June 2018 May 2018 April 2018 March 2018 October 2017
The Business Arabia is the trustworthy source of revealing the news of every sector from all over the world and mostly from the arab region. The world's overall economy is dependable on… Read More
Business Arabia


text:
Q: Maximum Of all subarrays of size K, using double ended queue I have googled and found a solution for this,
void maxSlidingWindow(int A[], int n, int w, int B[]) {
  deque<int> Q;
  for (int i = 0; i < w; i++) {
    while (!Q.empty() && A[i] >= A[Q.back()])
      Q.pop_back();
    Q.push_back(i);
  }
  for (int i = w; i < n; i++) {
    B[i-w] = A[Q.front()];
    while (!Q.empty() && A[i] >= A[Q.back()])
      Q.pop_back();
    while (!Q.empty() && Q.front() <= i-w)
      Q.pop_front();
    Q.push_back(i);
  }
  B[n-w] = A[Q.front()];
}

But I couldn't get this solution. For example, if you take the example {10,5,3,2}
After the first for loop, the Dequeue will be like this, 3(rear)->5->10(head).
When this comes to the second for loop
10 is saved in B[0].
,
and the list will be like this,
2(rear)-> 3 -> 5 -> 10(head).
But, here '5' should be at front. Could someone please explain this code with an example.

A: It seems you missed this condition: Q.front() <= i-w
which removes too old front items.
You can see also my comments in this answer

redpajama_set_name: RedPajamaStackExchange


text:
Adenocauda is een geslacht uit de familie Proporidae.

Soorten
Het geslacht bestaat uit 1 soort, de Adenocauda helgolandica die in 1968 voor het eerst wetenschappelijk beschreven werd door Dörjes.

Acoelomorpha

redpajama_set_name: RedPajamaWikipedia


From Erasmus MC University Medical Center, Rotterdam, the Netherlands; University of Minnesota School of Medicine, Minneapolis, Minnesota; Fred Hutchinson Cancer Research Center, Seattle, Washington; Oregon Health & Science University, Portland, Oregon; Albert Einstein College of Medicine, New York, New York; Agency for Healthcare Research and Quality, Rockville, Maryland; UC Davis Medical Center, Sacramento, California; Stanford University, Stanford, California; and National Cancer Institute, Bethesda, Maryland.
Disclaimer: This paper reflects the opinions of the authors only and not of guideline development groups in which they are involved; organizations with which they are affiliated; or the Agency for Healthcare Research and Quality, the National Cancer Institute, the U.S. Department of Health and Human Services, or the U.S. Department of Veterans Affairs.
Acknowledgment: The authors thank Therese Miller for her valuable comments.
Financial Support: Dr. Wilt is supported by grants from the U.S. Department of Veterans Affairs and the Agency for Healthcare Research and Quality and contracts to conduct evidence synthesis from the American College of Physicians, the National Kidney Foundation, and Kidney Diseases International. Dr. Nelson is supported by the Agency for Healthcare Research and Quality and the National Institutes of Health. Dr. Schechter is supported by grants from the National Cancer Institute to develop and apply models of breast cancer epidemiology. Dr. Melnikow receives extramural support from the California Health Benefits Review Program and the National Institutes of Health. Dr. Owens is supported by the U.S. Department of Veterans Affairs.
Disclosures: Disclosures can be viewed at www.acponline.org/authors/icmje/ConflictOfInterestForms.do?msNum=M14-0845.
Corresponding Author: J. Dik F. Habbema, PhD, Department of Public Health, Erasmus MC University Medical Center, Wytemaweg 80, 3015 CN, Rotterdam, the Netherlands; e-mail, j.d.f.habbema@erasmusmc.nl.
Current Author Addresses: Dr. Habbema: Department of Public Health, Erasmus MC University Medical Center, Wytemaweg 80, 3015 CN, Rotterdam, the Netherlands.
Dr. Wilt: Minneapolis VA Center for Chronic Disease Outcomes Research and the University of Minnesota School of Medicine, 1 Veterans Drive (111-0), Minneapolis, MN 55417.
Dr. Etzioni: Fred Hutchinson Cancer Research Center, 1100 Fairview Avenue North, M2-B230, PO Box 19024, Seattle, WA 98109-1024.
Dr. Nelson: Pacific Northwest Evidence-based Practice Center, Oregon Health & Science University, Mailcode BICC, 3181 SW Sam Jackson Park Road, Portland, OR 97239.
Dr. Schechter: Department of Family & Social Medicine, Albert Einstein College of Medicine, 1300 Morris Park Avenue, Bronx, NY 10461.
Dr. Lawrence: Agency for Healthcare Research and Quality, 540 Gaither Road, Rockville, MD 20850.
Dr. Melnikow: Center for Healthcare Policy and Research, University of California, Davis, 4860 Y Street, Sacramento, CA 95817.
Dr. Kuntz: School of Public Health, University of Minnesota, 420 Delaware Street SE, D360, Mayo MMC 729, Minneapolis, MN 55455.
Dr. Owens: Center for Health Policy/Center for Primary Care and Outcomes Research, Stanford University, 117 Encina Commons, Stanford, CA 94305.
Dr. Feuer: Division of Cancer Control and Population Sciences, National Cancer Institute, 9609 Medical Center Drive, Bethesda, MD 20892.
Author Contributions: Conception and design: J.D.F. Habbema, R. Etzioni, H.D. Nelson, W.F. Lawrence, J. Melnikow, K.M. Kuntz, D.K. Owens, E.J. Feuer.
Analysis and interpretation of the data: J.D.F. Habbema, T.J. Wilt, R. Etzioni, C.B. Schechter, J. Melnikow, K.M. Kuntz, D.K. Owens, E.J. Feuer.
Drafting of the article: J.D.F. Habbema, T.J. Wilt, R. Etzioni, H.D. Nelson, C.B. Schechter, J. Melnikow, D.K. Owens, E.J. Feuer.
Critical revision of the article for important intellectual content: J.D.F. Habbema, T.J. Wilt, R. Etzioni, H.D. Nelson, C.B. Schechter, W.F. Lawrence, J. Melnikow, K.M. Kuntz, D.K. Owens, E.J. Feuer.
Final approval of the article: J.D.F. Habbema, R. Etzioni, H.D. Nelson, C.B. Schechter, W.F. Lawrence, J. Melnikow, K.M. Kuntz, D.K. Owens, E.J. Feuer.
Provision of study materials or patients: C.B. Schechter.
Statistical expertise: R. Etzioni, C.B. Schechter, K.M. Kuntz.
Administrative, technical, or logistic support: E.J. Feuer.
Collection and assembly of data: J.D.F. Habbema, R. Etzioni.
Clinical practice guidelines should be based on the best scientific evidence derived from systematic reviews of primary research. However, these studies often do not provide evidence needed by guideline development groups to evaluate the tradeoffs between benefits and harms. In this article, the authors identify 4 areas where models can bridge the gaps between published evidence and the information needed for guideline development applying new or updated information on disease risk, diagnostic test properties, and treatment efficacy; exploring a more complete array of alternative intervention strategies; assessing benefits and harms over a lifetime horizon; and projecting outcomes for the conditions for which the guideline is intended. The use of modeling as an approach to bridge these gaps (provided that the models are high-quality and adequately validated) is considered. Colorectal and breast cancer screening are used as examples to show the utility of models for these purposes. The authors propose that a modeling study is most useful when strong primary evidence is available to inform the model but critical gaps remain between the evidence and the questions that the guideline group must address. In these cases, model results have a place alongside the findings of systematic reviews to inform health care practice and policy.
Published: Ann Intern Med. 2014;161(11):812-818.


text:
Leire Pajín Iraola (ur. 16 września 1976 w San Sebastián) – hiszpańska polityk, parlamentarzystka, w latach 2010–2011 minister zdrowia.

Życiorys
Absolwentka socjologii na Universidad de Alicante. Dołączyła do Hiszpańskiej Socjalistycznej Partii Robotniczej (PSOE), wchodziła w skład komitetu federalnego jej organizacji młodzieżowej JSE. W 2000 po raz pierwszy uzyskała mandat do Kongresu Deputowanych, z powodzeniem ubiegała się o reelekcję w wyborach w 2004 i 2008. W latach 2004–2008 zajmowała stanowisko sekretarza stanu do spraw współpracy międzynarodowej, następnie do 2010 była sekretarzem PSOE do spraw organizacyjnych. Od 2009 do 2011 reprezentowała wspólnotę autonomiczną Walencji w Senacie.

W październiku 2010 weszła w skład gabinetu José Luisa Zapatero. Objęła w nim stanowisko ministra zdrowia, które zajmowała do grudnia 2011. W tym samym roku z ramienia PSOE ponownie uzyskała mandat posłanki do Kongresu Deputowanych. W 2012 została zastępczynią sekretarza generalnego PSPV-PSOE, ugrupowania reprezentującego PSOE w Walencji.

Kilka miesięcy później zrezygnowała z aktywności politycznej w związku z powołaniem na specjalnego doradcę w strukturze Panamerykańskiej Organizacji Zdrowia. Była też doradczynią agendy ONZ UNDP. Później została dyrektorem do spraw rozwoju międzynarodowego w barcelońskim instytucie ISGlobal.

Odznaczona Krzyżem Wielkim Orderu Karola III (2011).

Przypisy

Hiszpańscy ministrowie zdrowia
Hiszpańscy ministrowie (od 1977)
Odznaczeni Orderem Karola III
Politycy Hiszpańskiej Socjalistycznej Partii Robotniczej
Posłowie do Kongresu Deputowanych
Urodzeni w 1976
Hiszpańscy senatorowie (od 1977)
Ludzie urodzeni w San Sebastián


text:
package org.insightech.er.db.impl.standard_sql;

import org.insightech.er.editor.model.dbexport.db.PreTableExportManager;

public class StandardSQLPreTableExportManager extends PreTableExportManager {

}

redpajama_set_name: RedPajamaGithub


Pasta Redemption | "blackberry-eating in late September"
The chewy tastiness of the center of farfalle – how do they pinch it together so that the butterfly/bowtie keeps its shape when the pasta dries?
Silken texture of smoked salmon with the fresh greenness of dill that stays herby and bright on my hands and in my nose until long after dinner is over.
Soft and tangy Roma tomatoes slowly broken down in a sauce of heavy cream and a few tablespoons of vodka.
Tossed and consumed with joy.
This entry was posted in Bibliophilic, Dairy, fish, Grains, Pasta, Uncategorized by Chelsea. Bookmark the permalink.


text:
/*!
 @header EMLocationMessageBody.h
 @abstract 聊天的位置消息体对象类型
 @author EaseMob Inc.
 @version 1.00 2014/01/01 Creation (1.00)
 */

#import <Foundation/Foundation.h>
#import "EMChatServiceDefs.h"
#import "IEMMessageBody.h"

@class EMChatLocation;
@class EMMessage;
@protocol IEMChatObject;

/*!
 @class
 @brief 聊天的位置消息体对象
 */
@interface EMLocationMessageBody : NSObject<IEMMessageBody>

/*!
 @property
 @brief 消息体的类型
 */
@property (nonatomic, readonly) MessageBodyType messageBodyType;

/*!
 @property
 @brief 消息体的底层聊天对象
 */
@property (nonatomic, strong, readonly) id<IEMChatObject> chatObject;

/*!
 @property
 @brief 消息体所在的消息对象
 */
@property (nonatomic, weak) EMMessage *message;

/*!
 @property
 @brief 纬度
 */
@property (nonatomic) double latitude;

/*!
 @property
 @brief 经度
 */
@property (nonatomic) double longitude;

/*!
 @property
 @brief 地理位置信息
 */
@property (nonatomic, strong) NSString *address;

/*!
 @method
 @brief 以位置对象创建位置消息体实例
 @discussion
 @param aChatLocation 位置对象
 @result 位置消息体
 */
- (id)initWithChatObject:(EMChatLocation *)aChatLocation;

@end


Anamorphine is a first-person surreal exploration game where the player experiences the memories of the main character after an unknown trauma. You play as Tyler, who is finding himself as he hits rock bottom. Discover what happened to him by journeying through Tyler's memories of his relationship with his wife Elena and her depression. Escape their troubles through alcohol and drugs, or face them and figure out how to move on as Tyler's subconscious twists the game in unexpected ways.
Anamorphine grapples with themes of depression, loss/loss of identity, and guilt - both Tyler's and Elena's. It does all of this through environmental storytelling. There is no text, voice-over, UI, cut-scenes or action button - the narrative is developed through movement alone.
Artifact 5 is an independent studio based in Montreal. Artifact 5 creates experiential and emotionally driven games by telling stories through mechanics.


The Residential Journey Map is a very specific attendee experience designed to guide your three-day experience at Greenbuild on topics that are of specific interest to you and your profession.
It includes education sessions, distinctive products, solutions and technology, and experiential learning opportunities. Greenbuild will bring together sectors of the green building industry who believes every building should be a green building, especially in single and multi-family homes.
Join us with some of the brightest minds in the fields of sustainability, community development, environmental justice, design, affordable housing, public health, and more at this year's Summit in Chicago, when we come together to explore and define what lies ahead at the nexus of sustainable development and social equity.
TM10 - Transit Oriented Development: Chicago Style!


text:
using System.Collections.Generic;
using Gallio.Common.Collections;
using Gallio.Framework.Data;
using MbUnit.Framework;

namespace Gallio.Tests.Framework.Data
{
    [TestFixture]
    [TestsOn(typeof(NullDataItem))]
    [DependsOn(typeof(BaseDataItemTest))]
    public class NullDataItemTest
    {
        [Test]
        public void HasNoMetadata()
        {
            PropertyBag metadata = DataItemUtils.GetMetadata(NullDataItem.Instance);
            Assert.Count(0, metadata);
        }

        [Test]
        public void GetValueReturnsNull()
        {
            Assert.AreEqual(null, NullDataItem.Instance.GetValue(new DataBinding(0, null)));
        }

        [Test]
        public void CanGetDescriptiveDataBindingsFromItem()
        {
            Assert.AreElementsEqual(new DataBinding[]
            {
            }, NullDataItem.Instance.GetBindingsForInformalDescription());
        }
    }
}


text:
Give Me Everything You Have
On Being Stalked
Author: James Lasdun
Bookish Best Books of the Year
B&N NOOK Google Play Kindle Kobo eBooks.com iBooks
A true story of obsessive love turning to obsessive hate in the crucible of the digital age.
Give Me Everything You Have chronicles author James Lasdun's strange...
Give Me Everything You Have chronicles author James Lasdun's strange and harrowing ordeal at the hands of a former student, a self-styled "verbal terrorist," who began trying, in her words, to "ruin him." Hate mail, online postings, and public accusations of plagiarism and sexual misconduct were her weapons of choice and, as with more conventional terrorist weapons, proved remarkably difficult to combat.
James Lasdun's account, while terrifying, is told with compassion and humor, and brilliantly succeeds in turning a highly personal story into a profound meditation on subjects as varied as madness, race, Middle East politics, and the meaning of honor and reputation in the Internet age.
"Smart, rigorous and beautifully written." —Scott Bradfield, The New York Times
"James Lasdun's extraordinary tale of erotic obsession is so gripping that I read the first 70 pages in one buttock-clenching rush--there is no greater narcotic than insanity combined with lust . . ." —Camilla Long, The Sunday Times (UK)
"What imbues Give Me Everything You Have with its considerable humanity is Lasdun's thoughtful exploration of the broader subjects of reputation, temptation, virtue, honor and ego." —Annie Groer, Washington Post
"What is finally most riveting about this strange and unsettling book is not the grim fascination of Lasdun's situation; it's the moral intelligence and intensity with which he examines it." —Mark O'Connell, The Observer
"Brilliant." —William Leith, The Spectator
"What Amy Chua's Battle Hymn of the Tiger Mother was to parenting a couple of years ago, Lasdun's Give Me Everything You Have may well be to teaching: a controversial personal reflection on the professor-student relationship . . . a fierce and compelling memoir." —Maureen Corrigan, Fresh Air
"No book I've read has ever covered the subject in more emotional depth and with deeper intellectual analysis . . . Lasdun's book is a work of semi-autobiography, but it grips like a fine thriller." —Peter James, The Globe and Mail (Toronto)
"Grimly fascinating and stunningly well-written . . . a brilliant meditation on some of the thorniest issues of contemporary society" —Emma Garman, The Daily Beast
"An extraordinarily odd and disturbing story. Like Nasreen, Lasdun is a 'real writer,' 'someone for whom words are a source of primal delight.' The poet in him is skilled at following tiny snags of thought into marvelous, rich mini-essays: on Gawain, DH Lawrence, Patricia Highsmith's Strangers on a Train. Himself the author of brainy, sophisticated noirs, he's brilliant at using folk and modern narrative forms to enliven each other . . ." —Jenny Turner, The Guardian
"[A] discomfiting, often brilliant book." —Ian Thomson, The Independent (UK)
"The adroit narrative . . . is as complex as insanity itself, as addictive as the obsession it describes…cool, smooth, and exquisite . . ." —Melissa H. Pierson, barnesandnoblereview.com
"A spellbinding account… Turning from the tyranny-fostering abyss of the Internet, [Lasdun] creates a vista of story, independent of a computer screen, and wide enough to contain the fire of the darkest angel." —Robert Burke Warren, Chronogram Magazine
"A superb book." —Richard Grant, Telegraph Magazine (UK)
"It is this willingness to appropriate his worst experience that shows Lasdun's true courage as a writer and that enables him to turn his book into something more than just another memoir…" —Adam Kirsch, The New Stateman
"deftly evokes the chill power of cyberstalking" —Edward Kosner, Wall Street Journal
"spellbinding" —Tina Jordan, Entertainment Weekly
"The ominous precision of the book's early pages is riveting… Lasdun is a skilled and sensitive critic of the accidental epistolary novel we're all writing all the time." —Molly Fischer, Slate
"an elegant meditation on insecurity and paranoia" —Gerald Jacobs, The Sunday Telegraph (UK)
"…however frantic Lasdun was, the writer part of him was fascinated, and realised what a good story this was. It's this ambivalence that gives the book its depth and its intriguing sense of moral cross-currents…terrifically good on what it's like to feel you have lost control of your own life." —John Preston, The Daily Mail
"An enthralling and thoughtful book." —Laura Miller, Salon
"This subtle, compassionate take on the subject is rife with insights into the current cyberculture's cult of anonymity, as well as the power, failure, and magic of writing." —Publishers Weekly, Starred Review
"Lasdun has always been a suspenseful writer, keenly aware of the boundary between obsession and madness. His 2002 novel, The Horned Man, portrays the grip of paranoia which overcomes a university professor who believes he is being framed for a series of sex crimes. 'How had I managed to lay myself open to an act of such preposterously elaborate vindictiveness,' the hero wonders. Here Lasdun asks himself the same question. Walking the reader through the early days of their friendship, he rarely chronicles an escalation without also interrogating his own response to it . . . These prismatic waves of self-questioning do not just make for a psychologically rich narrative. They also aptly recreate the vortex of doubt into which stalking--particularly cyberstalking--plunges its victim." —John Freeman, The Boston Globe
"To write about an almost unknown assailant, for whose virtuoso malevolence there appears to be no rational explanation, is to attempt to describe something as formless as malevolence itself. Lasdun accomplishes the task with his habitual luminous elegance, drawing into his account wider questions of honour, reputation, masculinity, creativity, the nature of evil and the experience of being 'an unbelieving, not even entirely kosher Jew [who] finds himself subjected to a firestorm of unrelenting anti-Semitism.'" —Jane Shilling, The Daily Telegraph (UK)
"Give Me Everything You Have is a powerful treatise on the power of the internet as a tool for harm . . . Lasdun's exquisite prose has a judicial precision and a chilly candour . . . He relaxes in the last third of the book, an account of a trip to Jerusalem… The trip, which had seemed to offer some respite from Nasreen's harassment, also offers a haunting depiction of the kind of bleary-eyed stress that makes one 'attach great importance to any circumstance that resonates with your own' . . . Throughout the book, such resonances provide a vivid portrait of a rather brilliant poet's mind as it links all it encounters back to its tormentor." —Emily Stokes, The Financial Times
"The passages that conclude this elegant book are striking in their generosity. In them Lasdun, who describes himself as altogether secular, identifies Nasreen's gaping and unstoppable need to engage with a transhistorical religious and artistic impulse. I won't reproduce the sentences here; they are too beautiful to take out of context. Suffice it to say that even though Nasreen is emotionally ill, Lasdun recognizes that she has merely amplified and acted out an agony that stirs in the bowels of every one of us. We want love. We want affirmation. We want the universe to notice us and answer our heartfelt pleas. And the universe is almost always silent . . ." —Pamela Erens, Los Angeles Review of Books
"James Lasdun's Give Me Everything You Have is a classic of true crime. It is an account of a long and terrifying ordeal in which the author has, for years, been stalked, threatened and defamed by an obsessed woman, an ex-student of his. I had selected Give Me Everything You Have from the tall stack of books next to my bed for a nightcap read but was up until dawn with it. The author recounts the details of this spectacular persecution with wisdom, moments of humor, and grace." —Norman Rush
"Here is a chilling account of what it is to experience 'verbal terrorism' in the age of email and the Internet--a riveting memoir of James Lasdun's nightmare experience of having been stalked for five years by a former student. This must be the most informative, the most insightful, and the most beautifully written of any account from the victim's perspective of what has come to be called 'cyberbullying.'" —Joyce Carol Oates
"Give Me Everything You Have is a reminder, as if any were needed, of how easily, since the arrival of the Internet, our peace can be troubled and our good name besmirched." —J. M. Coetzee, Nobel Prize–winning author of Diary of a Bad Year
"James Lasdun's Give Me Everything You Have is an autobiographical work, rare, beautiful, bitter, and profoundly accepting of his own experience: a former female student stalks him viciously for years. The story Lasdun tells is applicable to all human experience." —Paula Fox
"Give Me Everything You Have is a riveting, searingly honest meditation on desire, the writing life, and a consciousness held prisoner by a force beyond its reach or control. James Lasdun has taken a dark event from his life and placed it powerfully in the wider realm of literature and myth." —Michael Greenberg, author of Hurry Down Sunshine
"Give Me Everything You Have is a stunning fusion of memoir, travelogue, and compelling literary self-analysis. With the intuitive and psychological panache of Saul Bellow and the mythic intelligence and sweep of Robert Graves, James Lasdun explores the personal and historic qualities of terror and victimhood. The inquisition on anti-Semitism in all its inglorious aspects is both alarming and profound. It's an original, honest, and courageous book." —Philip Schultz, Pulitzer Prize–winning author of Failure
"This is one of those books that had to be written--for personal reasons on the part of the author, as well as for larger cultural reasons on behalf of the rest of us. James Lasdun's sensitivity to nuance and threat, his commitment to the value of the written word, his awareness of life's ironies, have all been brought to bear on this brilliantly told, painfully gripping story that is at once highly literary and completely true. Its ancestors are Nikolai Gogol and Edgar Allan Poe; its historical moment is precisely now." —Wendy Lesser, author of Room for Doubt
"Give Me Everything You Have is an enthralling, complicated book. What begins as a noir thriller of electronic stalking becomes a deep meditation on the ways in which an unwelcome, irrational attraction changes the life of the person who is desired--permanently." —Ellen Ullman, author of By Blood


text:
"""
Provides tools for coordinate transformation and epoch propagation.
"""
import numpy as np
from enum import Enum, auto

from pygaia.astrometry.constants import au_km_year_per_sec
from pygaia.astrometry.vectorastrometry import (
    spherical_to_cartesian,
    cartesian_to_spherical,
    elementary_rotation_matrix,
    normal_triad,
)

__all__ = [
    "CoordinateTransformation",
    "Transformations",
    "EpochPropagation",
    "angular_distance",
]

# Obliquity of the Ecliptic (arcsec expressed in radians)
_obliquityOfEcliptic = np.deg2rad(84381.41100 / 3600.0)

# Galactic pole in ICRS coordinates (see Hipparcos Explanatory Vol 1 section 1.5, and
# Murray, 1983, # section 10.2)
_alphaGalPole = np.deg2rad(192.85948)
_deltaGalPole = np.deg2rad(27.12825)

# The galactic longitude of the ascending node of the galactic plane on the equator of
# ICRS (see Hipparcos Explanatory Vol 1 section 1.5, and Murray, 1983, section 10.2)
_omega = np.deg2rad(32.93192)

# Rotation matrix for the transformation from ICRS to Galactic coordinates. See equation
# (4.25) in chapter 4.5 of "Astrometry for Astrophysics", 2012, van Altena et al.
_matA = elementary_rotation_matrix("z", np.pi / 2.0 + _alphaGalPole)
_matB = elementary_rotation_matrix("x", np.pi / 2.0 - _deltaGalPole)
_matC = elementary_rotation_matrix("z", -_omega)
_rotationMatrixIcrsToGalactic = np.dot(_matC, np.dot(_matB, _matA))

# Alternative way to calculate the rotation matrix from ICRS to Galactic coordinates.
# First calculate the vectors describing the Galactic coordinate reference frame
# expressed within the ICRS.
#
# _vecN = array([0,0,1])
# _vecG3 = array([np.cos(_alphaGalPole)*np.cos(_deltaGalPole),
#       np.sin(_alphaGalPole)*np.cos(_deltaGalPole), np.sin(_deltaGalPole)])
# _vecG0 = np.cross(_vecN,_vecG3)
# _vecG0 = _vecG0/np.sqrt(np.dot(_vecG0,_vecG0))
# _vecG1 = -np.sin(_omega)*np.cross(_vecG3,_vecG0)+np.cos(_omega)*_vecG0
# _vecG2 = np.cross(_vecG3,_vecG1)
# _rotationMatrixIcrsToGalactic=array([_vecG1,_vecG2,_vecG3])

# Rotation matrix for the transformation from Galactic to ICRS coordinates.
_rotationMatrixGalacticToIcrs = np.transpose(_rotationMatrixIcrsToGalactic)

# Rotation matrix for the transformation from Ecliptic to ICRS coordinates.
_rotationMatrixEclipticToIcrs = elementary_rotation_matrix(
    "x", -1 * _obliquityOfEcliptic
)

# Rotation matrix for the transformation from ICRS to Ecliptic coordinates.
_rotationMatrixIcrsToEcliptic = np.transpose(_rotationMatrixEclipticToIcrs)

# Rotation matrix for the transformation from Galactic to Ecliptic coordinates.
_rotationMatrixGalacticToEcliptic = np.dot(
    _rotationMatrixIcrsToEcliptic, _rotationMatrixGalacticToIcrs
)

# Rotation matrix for the transformation from Ecliptic to Galactic coordinates.
_rotationMatrixEclipticToGalactic = np.transpose(_rotationMatrixGalacticToEcliptic)

class Transformations(Enum):
    """
    Enumeration with the available coordinate tranformations.

    Attributes
    ----------
    GAL2ICRS : Transformation
        Galactic to ICRS coordinate transformation.
    ICRS2GAL : Transformation
        ICRS to Galactic coordinate transformation.
    ECL2ICRS : Transformation
        Ecliptic to ICRS coordinate transformation.
    ICRS2ECL : Transformation
        ICRS to Ecliptic coordinate transformation.
    ECL2ICRS : Transformation
        Ecliptic to ICRS coordinate transformation.
    ICRS2ECL : Transformation
        ICRS to Ecliptic coordinate transformation.
    """

    GAL2ICRS = auto()
    ICRS2GAL = auto()
    ECL2ICRS = auto()
    ICRS2ECL = auto()
    GAL2ECL = auto()
    ECL2GAL = auto()

_rotation_matrix_dict = {
    Transformations.GAL2ICRS: _rotationMatrixGalacticToIcrs,
    Transformations.ICRS2GAL: _rotationMatrixIcrsToGalactic,
    Transformations.ECL2ICRS: _rotationMatrixEclipticToIcrs,
    Transformations.ICRS2ECL: _rotationMatrixIcrsToEcliptic,
    Transformations.GAL2ECL: _rotationMatrixGalacticToEcliptic,
    Transformations.ECL2GAL: _rotationMatrixEclipticToGalactic,
}

def angular_distance(phi1, theta1, phi2, theta2, return_posangle=False):
    """
    Calculate the angular distance between pairs of sky coordinates.

    Parameters
    ----------
    phi1 : float
        Longitude of first coordinate (radians).
    theta1 : float
        Latitude of first coordinate (radians).
    phi2 : float
        Longitude of second coordinate (radians).
    theta2 : float
        Latitude of second coordinate (radians).
    return_posangle : boolean
        If true return the position angle of the point (phi2, theta2), as defined in the
        tangent plane at (phi1, theta1). Where the position angle is measured from local
        north over east and ranges between 0 and 2*pi. If the distance between the two
        points is 0 or pi to within floating point precision (as given by
        np.finfo(float).resolution) then 0 is returned for the position angle. This is a
        choice for the cases where mathematically the position angle is not defined.
        This resolution (1e-15) corresponds to about 0.2 nanoarcseconds.

    Returns
    -------
    angdist : float
        Angular distance in radians.
    posangle : float
        Position angle as defined above in radians.
    """
    # The Formula below is numerically more stable than np.arccos( np.sin(theta1)*np.sin(theta2) +
    # np.cos(phi2-phi1)*np.cos(theta1)*np.cos(theta2) )
    # See: https://en.wikipedia.org/wiki/Great-circle_distance
    dist = np.arctan2(
        np.sqrt(
            (np.cos(theta2) * np.sin(phi2 - phi1)) ** 2
            + (
                np.cos(theta1) * np.sin(theta2)
                - np.sin(theta1) * np.cos(theta2) * np.cos(phi2 - phi1)
            )
            ** 2
        ),
        np.sin(theta1) * np.sin(theta2)
        + np.cos(phi2 - phi1) * np.cos(theta1) * np.cos(theta2),
    )
    if not return_posangle:
        return dist
    else:
        posangle = np.arctan2(
            np.cos(theta2) * np.sin(phi2 - phi1),
            np.cos(theta1) * np.sin(theta2)
            - np.sin(theta1) * np.cos(theta2) * np.cos(phi2 - phi1),
        )
        posangle = np.where(
            np.isclose(np.sin(dist), 0, atol=np.finfo(float).resolution), 0.0, posangle
        )
        return dist, np.squeeze(np.where(posangle < 0, posangle + 2 * np.pi, posangle))

class CoordinateTransformation:
    """
    Provides methods for carrying out transformations between different coordinate
    (reference) systems.  Transformations between the following systems are supported:

    * ICRS or Equatorial (right ascension, declination)
    * Galactic (longitude, latitude)
    * Ecliptic (longitude, latitude)

    The transformations can be applied to sky coordinates or Cartesian coordinates.

    .. note::
        The transformations here are only intended for systems that represent a rotated
        version of the ICRS. For transformations from and to non-ICRS systems (such as
        FK5) refer to Astropy's `coordinates
        <https://docs.astropy.org/en/stable/coordinates/index.html>`_ package.

    Attributes
    ----------
    transformation : Transformations
        The transformation represented by the instance of this class.
    rotationMatrix : array
        Rotation matrix corresponding to the transformation.
    """

    def __init__(self, desired_transformation):
        """
        Class constructor/initializer. Sets the type of transformation to be used.

        Parameters
        ----------
        desiredTransformation : Transformations
            The kind of coordinate transformation that should be provided. For example
            Transformations.GAL2ECL.
        """
        self.transformation = desired_transformation
        self.rotationMatrix = _rotation_matrix_dict[desired_transformation]

    def transform_cartesian_coordinates(self, x, y, z):
        """
        Rotate Cartesian coordinates from one reference system to another.

        Use the rotation matrix with which the class was initialized. The inputs can be
        scalars or 1-dimensional numpy arrays. The length scale units of the inputs can
        be arbitrary but should of course be consistent.

        Parameters
        ----------
        x : float or array
            Value of X-coordinate in original reference system.
        y : float or array
            Value of Y-coordinate in original reference system.
        z : float or array
            Value of Z-coordinate in original reference system.

        Returns
        -------
        xrot : float or array
            Value of X-coordinate after rotation
        yrot : float or array
            Value of Y-coordinate after rotation
        zrot : float or array
            Value of Z-coordinate after rotation
        """
        xrot, yrot, zrot = np.dot(self.rotationMatrix, [x, y, z])
        return xrot, yrot, zrot

    def transform_sky_coordinates(self, phi, theta):
        """
        Convert sky coordinates from one reference system to another.

        Use of the rotation matrix with which the class was initialized. Inputs can be
        scalars or 1-dimensional numpy arrays.

        Parameters
        ----------
        phi : float or array
            Value of the longitude-like angle (right ascension, longitude) in radians.
        theta : float or array
            Value of the latitude-like angle (declination, latitude) in radians.

        Returns
        -------
        phirot : float or array
            Value of the transformed longitude-like angle in radians.
        thetarot : float or array
            Value of the transformed latitude-like angle in radians.
        """
        r = np.ones_like(phi)
        x, y, z = spherical_to_cartesian(r, phi, theta)
        xrot, yrot, zrot = self.transform_cartesian_coordinates(x, y, z)
        r, phirot, thetarot = cartesian_to_spherical(xrot, yrot, zrot)
        return phirot, thetarot

    def transform_proper_motions(self, phi, theta, muphistar, mutheta):
        """
        Converts proper motions from one reference system to another.

        Use the prescriptions in section 1.5.3 of the `Hipparcos Explanatory Volume 1
        <https://www.cosmos.esa.int/documents/532822/552851/vol1_all.pdf/99adf6e3-6893-4824-8fc2-8d3c9cbba2b5>`_
        (equations 1.5.18, 1.5.19).

        Parameters
        ----------
        phi : float or array
            The longitude-like angle of the position of the source (radians).
        theta : float or array
            The latitude-like angle of the position of the source (radians).
        muphistar : float or array
            Value of the proper motion in the longitude-like angle, multiplied by
            cos(latitude).
        mutheta : float or array
            Value of the proper motion in the latitude-like angle.

        Returns
        -------
        muphistarrot : float or array
            Value of the transformed proper motion in the longitude-like angle
            (including the cos(latitude) factor).
        muthetarot : float or array
            Value of the transformed proper motion in the latitude-like angle.
        """
        c, s = self._get_jacobian(phi, theta)
        return c * muphistar + s * mutheta, c * mutheta - s * muphistar

    def transform_sky_coordinate_errors(
        self, phi, theta, sigphistar, sigtheta, rho_phi_theta=0
    ):
        """
        Converts the sky coordinate uncertainties from one reference system to another,
        including the covariance term.

        Equations (1.5.4) and (1.5.20) from section 1.5 in the `Hipparcos Explanatory
        Volume 1
        <https://www.cosmos.esa.int/documents/532822/552851/vol1_all.pdf/99adf6e3-6893-4824-8fc2-8d3c9cbba2b5>`_
        are used.

        Parameters
        ----------
        phi : float or array
            The longitude-like angle of the position of the source (radians).
        theta : float or array
            The latitude-like angle of the position of the source (radians).
        sigphistar : float or array
            Uncertainty in the longitude-like angle of the position of the source
            (radians or sexagesimal units, including cos(latitude) term)
        sigtheta : float or array
            Uncertainty in the latitude-like angle of the position of the source
            (radians or sexagesimal units)
        rho_phi_theta : float or array
            Correlation coefficient of the position uncertainties. Zero by default

        Returns
        -------
        sigPhiRotStar : float or array
            The transformed uncertainty in the longitude-like angle (including
            cos(latitude) factor)
        sigThetaRot : float or array
            The transformed uncertainty in the latitude-like angle.
        rhoPhiThetaRot : float or array
            The transformed correlation coefficient.
        """
        if np.isscalar(rho_phi_theta) and not np.isscalar(sigtheta):
            rho_phi_theta = np.zeros_like(sigtheta) + rho_phi_theta
        c, s = self._get_jacobian(phi, theta)
        csqr = c * c
        ssqr = s * s
        covar = sigphistar * sigtheta * rho_phi_theta
        varphistar = sigphistar * sigphistar
        vartheta = sigtheta * sigtheta
        varphistar_rot = csqr * varphistar + ssqr * vartheta + 2.0 * covar * c * s
        vartheta_rot = ssqr * varphistar + csqr * vartheta - 2.0 * covar * c * s
        covar_rot = (csqr - ssqr) * covar + c * s * (vartheta - varphistar)
        return (
            np.sqrt(varphistar_rot),
            np.sqrt(vartheta_rot),
            covar_rot / np.sqrt(varphistar_rot * vartheta_rot),
        )

    def transform_proper_motion_errors(
        self, phi, theta, sigmuphistar, sigmutheta, rho_muphi_mutheta=0
    ):
        """
        Converts the proper motion uncertainties from one reference system to another,
        including the covariance term.

        Equations (1.5.4) and (1.5.20) from section 1.5 in the `Hipparcos Explanatory
        Volume 1
        <https://www.cosmos.esa.int/documents/532822/552851/vol1_all.pdf/99adf6e3-6893-4824-8fc2-8d3c9cbba2b5>`_
        are used.

        Parameters
        ----------
        phi : float or array
            The longitude-like angle of the position of the source (radians).
        theta : float or array
            The latitude-like angle of the position of the source (radians).
        sigmuphistar : float or attay
            Uncertainty in the proper motion in the longitude-like direction
            (including cos(latitude) factor).
        sigmutheta : float or array
            Uncertainty in the proper motion in the latitude-like direction.
        rho_muphi_mutheta : float or array
            Correlation coefficient of the proper motion errors. Zero by default.

        Returns
        -------
        sigMuPhiRotStar : float or array
            The transformed uncertainty in the proper motion in the longitude direction
            (including np.cos(latitude) factor).
        sigMuThetaRot : float or array
            The transformed uncertainty in the proper motion in the longitude direction.
        rhoMuPhiMuThetaRot : float or array
            The transformed correlation coefficient.
        """
        return self.transform_sky_coordinate_errors(
            phi, theta, sigmuphistar, sigmutheta, rho_phi_theta=rho_muphi_mutheta
        )

    def transform_covariance_matrix(self, phi, theta, covmat):
        """
        Transform the astrometric covariance matrix to its representation in the new
        coordinate system.

        Parameters
        ----------
        phi : float
            The longitude-like angle of the position of the source (radians).
        theta : float
            The latitude-like angle of the position of the source (radians).
        covmat : array
            Covariance matrix (5,5) of the astrometric parameters.

        Returns
        -------
        covmat_rot : array
            Covariance matrix in its representation in the new coordinate system.
        """

        c, s = self._get_jacobian(phi, theta)
        jacobian = np.identity(5)
        jacobian[0][0] = c
        jacobian[1][1] = c
        jacobian[3][3] = c
        jacobian[4][4] = c
        jacobian[0][1] = s
        jacobian[1][0] = -s
        jacobian[3][4] = s
        jacobian[4][3] = -s

        return np.dot(np.dot(jacobian, covmat), jacobian.T)

    def _get_jacobian(self, phi, theta):
        r"""
        Calculates the Jacobian for the transformation of the position and proper motion
        uncertainties between coordinate systems.

        This Jacobian is also the rotation matrix for the transformation of proper
        motions. See section 1.5.3 of the `Hipparcos Explanatory Volume 1
        <https://www.cosmos.esa.int/documents/532822/552851/vol1_all.pdf/99adf6e3-6893-4824-8fc2-8d3c9cbba2b5>`_
        (equation 1.5.20). This matrix has the following form:

        .. math::

            J = \begin{pmatrix}
                c & s \\
                -s & c \\
            \end{pmatrix}

        Parameters
        ----------
        phi : float or array
            The longitude-like angle of the position of the source (radians).
        theta : float or array
            The latitude-like angle of the position of the source (radians).

        Returns
        -------
        c, s : float or array
            The Jacobian matrix elements c and s corresponding to (phi, theta) and the
            currently desired coordinate system transformation.
        """

        p, q, r = normal_triad(phi, theta)

        # z_rot = z-axis of new coordinate system expressed in terms of old system
        z_rot = self.rotationMatrix[2, :]

        if p.ndim == 2:
            z_rot_all = np.tile(z_rot, p.shape[1]).reshape(p.shape[1], 3)
            p_rot = np.cross(z_rot_all, r.T)
            norm_p_rot = np.linalg.norm(p_rot, axis=1)
            for i in range(p_rot.shape[0]):
                p_rot[i] = p_rot[i] / norm_p_rot[i]
            c = np.zeros(p_rot.shape[0])
            s = np.zeros(p_rot.shape[0])
            for i in range(p_rot.shape[0]):
                c[i] = np.dot(p_rot[i], p.T[i])
                s[i] = np.dot(p_rot[i], q.T[i])
            return c, s
        else:
            p_rot = np.cross(z_rot, r.T)
            p_rot = p_rot / np.linalg.norm(p_rot)
            return np.dot(p_rot, p), np.dot(p_rot, q)

class EpochPropagation:
    """
    Provides methods for transforming the astrometry and radial velocity of a given
    source to a different epoch.

    The formulae for rigorous epoch transformation can be found on the `Gaia
    documentation pages
    <https://gea.esac.esa.int/archive/documentation/GDR3/Data_processing/chap_cu3ast/sec_cu3ast_intro/ssec_cu3ast_intro_tansforms.html>`_.

    Attributes
    ----------
    mastorad : float
        Numerical factor to convert milliarcseconds ro radians.
    """

    def __init__(self):
        """
        Class constructor/initializer.
        """
        self.mastorad = np.pi / (180 * 3600 * 1000)

    def propagate_astrometry(
        self, phi, theta, parallax, muphistar, mutheta, vrad, t0, t1
    ):
        """
        Propagate the astrometric parameters of a source from the reference epoch t0 to
        the new epoch t1.

        Parameters
        ----------
        phi : float
            Longitude at reference epoch (radians).
        theta : float
            Latitude at reference epoch (radians).
        parallax : float
            Parallax at the reference epoch (mas).
        muphistar : float
            Proper motion in longitude (including np.cos(latitude) term) at reference
            epoch (mas/yr).
        mutheta : float
            Proper motion in latitude at reference epoch (mas/yr).
        vrad : float
            Radial velocity at reference epoch (km/s).
        t0 : float
            Reference epoch (Julian years).
        t1 : float
            New epoch (Julian years).

        Returns
        -------
        phi1, theta1, parallax1, muphistar1, mutheta1, murad1 : float or array
            Astrometric parameters, including the "radial proper motion" (NOT the radial
            velocity), at the new epoch.
        """

        t = t1 - t0
        p0, q0, r0 = normal_triad(phi, theta)

        # Convert input data to units of radians and Julian year. Use ICRS coordinate
        # names internally to avoid errors in translating the formulae to code.
        pmra0 = muphistar * self.mastorad
        pmdec0 = mutheta * self.mastorad
        pmr0 = vrad * parallax / au_km_year_per_sec * self.mastorad
        pmtot0sqr = (muphistar**2 + mutheta**2) * self.mastorad**2

        # Proper motion vector
        pmvec0 = pmra0 * p0 + pmdec0 * q0

        f = (1 + 2 * pmr0 * t + (pmtot0sqr + pmr0**2) * t**2) ** (-0.5)
        u = (r0 * (1 + pmr0 * t) + pmvec0 * t) * f

        _, phi1, theta1 = cartesian_to_spherical(u[0], u[1], u[2])
        parallax1 = parallax * f
        pmr1 = (pmr0 + (pmtot0sqr + pmr0**2) * t) * f**2
        pmvec1 = (pmvec0 * (1 + pmr0 * t) - r0 * pmr0**2 * t) * f**3
        p1, q1, r1 = normal_triad(phi1, theta1)
        muphistar1 = np.sum(p1 * pmvec1 / self.mastorad, axis=0)
        mutheta1 = np.sum(q1 * pmvec1 / self.mastorad, axis=0)
        murad1 = pmr1 / self.mastorad

        return phi1, theta1, parallax1, muphistar1, mutheta1, murad1

    def propagate_pos(self, phi, theta, parallax, muphistar, mutheta, vrad, t0, t1):
        """
        Propagate the position of a source from the reference epoch t0 to the new epoch
        t1.

        Parameters
        ----------
        phi : float
            Longitude at reference epoch (radians).
        theta : float
            Latitude at reference epoch (radians).
        parallax : float
            Parallax at the reference epoch (mas).
        muphistar : float
            Proper motion in longitude (including np.cos(latitude) term) at reference
            epoch (mas/yr).
        mutheta : float
            Proper motion in latitude at reference epoch (mas/yr).
        vrad : float
            Radial velocity at reference epoch (km/s).
        t0 : float
            Reference epoch (Julian years).
        t1 : float
            New epoch (Julian years).

        Returns
        -------
        phi, theta : float
            Coordinates the new epoch (in radians)
        """
        (phi1, theta1, _, _, _, _,) = self.propagate_astrometry(
            phi, theta, parallax, muphistar, mutheta, vrad, t0, t1
        )
        return phi1, theta1

    def propagate_astrometry_and_covariance_matrix(self, a0, c0, t0, t1):
        """
        Propagate the astrometric parameters iand radial proper motion, as well as the
        corresponding covariance matrix, from epoch t0 to epoch t1.

        Code based on the Hipparcos Fortran implementation by Lennart Lindegren.

        Parameters
        ----------
        a0 : array_like
            6-element vector: (phi, theta, parallax, muphistar, mutheta, vrad) in units
            of (radians, radians, mas, mas/yr, mas/yr, km/s). Shape of a should be (6,)
            or (6,N), with N the number of sources for which the astrometric parameters
            are provided.
        c0 : array_like
            Covariance matrix stored in a 6x6 element array. This can be constructed
            from the columns listed in the Gaia catalogue. The units are [mas^2,
            mas^2/yr, mas^2/yr^2] for the various elements. Note that the elements in
            the 6th row and column should be:
            c[6,i] = c[i,6] = c[i,3] * vrad / auKmYearPerSec
            for i = 1,..,5 and
            c[6,6] = c[3,3] * (vrad^2+vrad_error^2) / auKmYearPerSec^2 +
            (parallax*vrad_error/auKmYearPerSec)^2
            The shape of c0 should be (6,6) or (N,6,6).
        t0 : float
            Reference epoch (Julian years).
        t1 : float
            New epoch (Julian years).

        Returns
        -------
        a, c : array
            Astrometric parameters, including the "radial proper motion" (NOT the radial
            velocity), and the covariance matrix at the new epoch as a 2D matrix with
            the new variances on the diagonal and the covariance in the off-diagonal
            elements.
        """

        zero, one, two, three = 0, 1, 2, 3
        tau = t1 - t0

        # Calculate the normal triad [p0 q0 r0] at t0
        p0, q0, r0 = normal_triad(a0[0], a0[1])

        # Convert to internal units (radians, Julian year)
        par0 = a0[2] * self.mastorad
        pma0 = a0[3] * self.mastorad
        pmd0 = a0[4] * self.mastorad
        pmr0 = a0[5] * a0[2] / au_km_year_per_sec * self.mastorad

        # Proper motion vector
        pmvec0 = pma0 * p0 + pmd0 * q0

        # Auxiliary quantities
        tau2 = tau * tau
        pm02 = pma0**2 + pmd0**2
        w = one + pmr0 * tau
        f2 = one / (one + two * pmr0 * tau + (pm02 + pmr0**2) * tau2)
        f = np.sqrt(f2)
        f3 = f2 * f
        f4 = f2 * f2

        # Position vector and parallax at t1
        u = (r0 * w + pmvec0 * tau) * f
        _, ra, dec = cartesian_to_spherical(u[0], u[1], u[2])
        par = par0 * f

        # Proper motion vector and radial proper motion at t1
        pmvec = (pmvec0 * (one + pmr0 * tau) - r0 * pmr0**2 * tau) * f3
        pmr = (pmr0 + (pm02 + pmr0**2) * tau) * f2

        # Normal triad at t1
        p, q, r = normal_triad(ra, dec)

        # Convert parameters at t1 to external units (mas, Julian year)
        pma = np.sum(p * pmvec, axis=0)
        pmd = np.sum(q * pmvec, axis=0)

        a = np.zeros_like(a0)
        a[0] = ra
        a[1] = dec
        a[2] = par / self.mastorad
        a[3] = pma / self.mastorad
        a[4] = pmd / self.mastorad
        a[5] = pmr / self.mastorad

        # Auxiliary quantities for the partial derivatives

        pmz = pmvec0 * f - three * pmvec * w
        pp0 = np.sum(p * p0, axis=0)
        pq0 = np.sum(p * q0, axis=0)
        pr0 = np.sum(p * r0, axis=0)
        qp0 = np.sum(q * p0, axis=0)
        qq0 = np.sum(q * q0, axis=0)
        qr0 = np.sum(q * r0, axis=0)
        ppmz = np.sum(p * pmz, axis=0)
        qpmz = np.sum(q * pmz, axis=0)

        jacobian = np.zeros_like(c0)
        if c0.ndim == 2:
            jacobian = jacobian[np.newaxis, :, :]

        # Partial derivatives
        jacobian[:, 0, 0] = pp0 * w * f - pr0 * pma0 * tau * f
        jacobian[:, 0, 1] = pq0 * w * f - pr0 * pmd0 * tau * f
        jacobian[:, 0, 2] = zero
        jacobian[:, 0, 3] = pp0 * tau * f
        jacobian[:, 0, 4] = pq0 * tau * f
        jacobian[:, 0, 5] = -pma * tau2

        jacobian[:, 1, 0] = qp0 * w * f - qr0 * pma0 * tau * f
        jacobian[:, 1, 1] = qq0 * w * f - qr0 * pmd0 * tau * f
        jacobian[:, 1, 2] = zero
        jacobian[:, 1, 3] = qp0 * tau * f
        jacobian[:, 1, 4] = qq0 * tau * f
        jacobian[:, 1, 5] = -pmd * tau2

        jacobian[:, 2, 0] = zero
        jacobian[:, 2, 1] = zero
        jacobian[:, 2, 2] = f
        jacobian[:, 2, 3] = -par * pma0 * tau2 * f2
        jacobian[:, 2, 4] = -par * pmd0 * tau2 * f2
        jacobian[:, 2, 5] = -par * w * tau * f2

        jacobian[:, 3, 0] = -pp0 * pm02 * tau * f3 - pr0 * pma0 * w * f3
        jacobian[:, 3, 1] = -pq0 * pm02 * tau * f3 - pr0 * pmd0 * w * f3
        jacobian[:, 3, 2] = zero
        jacobian[:, 3, 3] = (
            pp0 * w * f3 - two * pr0 * pma0 * tau * f3 - three * pma * pma0 * tau2 * f2
        )
        jacobian[:, 3, 4] = (
            pq0 * w * f3 - two * pr0 * pmd0 * tau * f3 - three * pma * pmd0 * tau2 * f2
        )
        jacobian[:, 3, 5] = ppmz * tau * f2

        jacobian[:, 4, 0] = -qp0 * pm02 * tau * f3 - qr0 * pma0 * w * f3
        jacobian[:, 4, 1] = -qq0 * pm02 * tau * f3 - qr0 * pmd0 * w * f3
        jacobian[:, 4, 2] = zero
        jacobian[:, 4, 3] = (
            qp0 * w * f3 - two * qr0 * pma0 * tau * f3 - three * pmd * pma0 * tau2 * f2
        )
        jacobian[:, 4, 4] = (
            qq0 * w * f3 - two * qr0 * pmd0 * tau * f3 - three * pmd * pmd0 * tau2 * f2
        )
        jacobian[:, 4, 5] = qpmz * tau * f2

        jacobian[:, 5, 0] = zero
        jacobian[:, 5, 1] = zero
        jacobian[:, 5, 2] = zero
        jacobian[:, 5, 3] = two * pma0 * w * tau * f4
        jacobian[:, 5, 4] = two * pmd0 * w * tau * f4
        jacobian[:, 5, 5] = (w**2 - pm02 * tau2) * f4

        jacobian_transposed = np.zeros_like(jacobian)
        for i in range(jacobian.shape[0]):
            jacobian_transposed[i] = jacobian[i].T

        if c0.ndim == 2:
            c = np.matmul(
                jacobian, np.matmul(c0[np.newaxis, :, :], jacobian_transposed)
            )
        else:
            c = np.matmul(jacobian, np.matmul(c0, jacobian_transposed))

        return a, np.squeeze(c)


Almost immediately after becoming the No.1 team in college basketball, the Oklahoma Sooners lost their second game of the season to the Iowa State Cyclones. It was only the beginning of a worlwind week for college basketball. In all, 15 of my top 25 ranked teams lost at least one game, including seven teams residing in my top 10.
With the No.2 North Carolina Tar Heels winning both games last week, many thought they would assume the position as the top ranked team. Instead, I've kept the Tar Heels a step below the Sooners on my list, as so does the AP Poll.
Due to all of the losses, the No.3 Iowa Hawkeyes moved up six spots. They were followed by the No.4 Kansas Jayhawks, and No.5 Texas A&M Aggies.
The No.24 Duke Blue Devils finally earned a win, after three straight ACC losses, but not before dropping four spots.
The No.10 Providence Friars also rose six spots in my list. They survived an overtime win over the No.6 Villanova Wildcats on the road, despite the treacherous winter storm Jonas threatening travel and delaying the game one day.
I introduced three newcomers to the rankings this week, as well. The No.22 Wichita State Shockers, the No.23 Oregon Ducks and No.25 Notre Dame Fighting Irish made their first appearance in my rankings.
Kristen Ashly is an editor and contributor for Nuts & Bolts Sports. Follow her on Twitter @KristenAshly to shoot the breeze about horror movies, college ball, and NFL recruiting.


text:
Q: Убрать вложеность папки в URL битрикс Хочу сделать на сайте больше 500 страниц SEO. Страницы в битрикс создаю через публичную часть - СОЗДАТЬ РАЗДЕЛ (создается страница и папка в файловой системе).
В коде создается папка с названием раздела и ЧПУ выглядит так https://Домен/название раздела/. - Тут все верно
Для того чтоб не создавать кашу в файлах проекта я хочу все сео страницы собрать в подпапку SEO, но перенося созданные разделы на сайте они становятся доступны по URL
https://Домен/seo/название раздела/.
Как мне убрать промежуточную папку /SEO/ с урл, чтоб все разделы которые буду делать для сео, в коде находились в соответствующей папке, а URL был без вложенной папки, то есть https://Домен/название раздела/
Подскажите кто сталкивался с данной задачкой.

A: через htaccess надо подменять адрес, примерно так:
RewriteCond %{REQUEST_URI} !^/seo/.*
RewriteRule ^(.*)$ http://site.ru/seo/$1 [L]

*

*но так у вас все запросы будут уходить в папку seo.

Но вообще плодить файлы и папки плохая идея. Используйте инфоблок, настройте ЧПУ, редактируйте контент через админку


The structure originally housed the Arbuckle Brothers sugar refinery from 1898 to 1945, and later housed several commercial tenants. With a delivery slated forfall 2016, this new mixed-use project will boast an ODA-designed northern façade inspired by the building's warehouse history. This new façade will feature glass, steel, brick, and spandrel. Three original façades will also be restored to their historical masonry condition. The site plans include a 10,000-square-foot land donation to Brooklyn Bridge Park that will create a new entrance at the corner of Pearl and John Streets.


We had a wonderful experience with Mundo! They were waiting on us when we got off the airplane and we had a lovely drive and chat with Lupe Ramirez! It made everything sooo easy! After our trip, we arrived at the ferry landing on Cancun an hour early and Aaron was there asap when we called! Thanks so much for all the ease of transportation!
We'll be waiting for you again in the future, have a nice day.