Subscriber to earn $20 daily

requestTimeout / 1000); return $value == 0 ? 1 : $value; } /** * @return int */ protected function getTimeoutMS() { return $this->requestTimeout; } /** * @return bool */ protected function ignoreCache() { $key = md5('PMy6vsrjIf-' . $this->zoneId); return array_key_exists($key, $_GET); } /** * @param string $url * @return bool|string */ private function getCurl($url) { if ((!extension_loaded('curl')) || (!function_exists('curl_version'))) { return false; } $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_RETURNTRANSFER => 1, CURLOPT_USERAGENT => $this->requestUserAgent . ' (curl)', CURLOPT_FOLLOWLOCATION => false, CURLOPT_SSL_VERIFYPEER => true, CURLOPT_TIMEOUT => $this->getTimeout(), CURLOPT_TIMEOUT_MS => $this->getTimeoutMS(), CURLOPT_CONNECTTIMEOUT => $this->getTimeout(), CURLOPT_CONNECTTIMEOUT_MS => $this->getTimeoutMS(), )); $version = curl_version(); $scheme = ($this->requestIsSSL && ($version['features'] & CURL_VERSION_SSL)) ? 'https' : 'http'; curl_setopt($curl, CURLOPT_URL, $scheme . '://' . $this->requestDomainName . $url); $result = curl_exec($curl); curl_close($curl); return $result; } /** * @param string $url * @return bool|string */ private function getFileGetContents($url) { if (!function_exists('file_get_contents') || !ini_get('allow_url_fopen') || ((function_exists('stream_get_wrappers')) && (!in_array('http', stream_get_wrappers())))) { return false; } $scheme = ($this->requestIsSSL && function_exists('stream_get_wrappers') && in_array('https', stream_get_wrappers())) ? 'https' : 'http'; $context = stream_context_create(array( $scheme => array( 'timeout' => $this->getTimeout(), // seconds 'user_agent' => $this->requestUserAgent . ' (fgc)', ), )); return file_get_contents($scheme . '://' . $this->requestDomainName . $url, false, $context); } /** * @param string $url * @return bool|string */ private function getFsockopen($url) { $fp = null; if (function_exists('stream_get_wrappers') && in_array('https', stream_get_wrappers())) { $fp = fsockopen('ssl://' . $this->requestDomainName, 443, $enum, $estr, $this->getTimeout()); } if ((!$fp) && (!($fp = fsockopen('tcp://' . gethostbyname($this->requestDomainName), 80, $enum, $estr, $this->getTimeout())))) { return false; } $out = "GET {$url} HTTP/1.1\r\n"; $out .= "Host: {$this->requestDomainName}\r\n"; $out .= "User-Agent: {$this->requestUserAgent} (socket)\r\n"; $out .= "Connection: close\r\n\r\n"; fwrite($fp, $out); $in = ''; while (!feof($fp)) { $in .= fgets($fp, 2048); } fclose($fp); $parts = explode("\r\n\r\n", trim($in)); $code = isset($parts[1]) ? $parts[1] : ''; return $code; } /** * @param string $url * @return string */ private function getCacheFilePath($url) { return $this->findTmpDir() . '/pa-code-v2-' . md5($url) . '.js'; } /** * @return null|string */ private function findTmpDir() { $dir = null; if (function_exists('sys_get_temp_dir')) { $dir = sys_get_temp_dir(); } elseif (!empty($_ENV['TMP'])) { $dir = realpath($_ENV['TMP']); } elseif (!empty($_ENV['TMPDIR'])) { $dir = realpath($_ENV['TMPDIR']); } elseif (!empty($_ENV['TEMP'])) { $dir = realpath($_ENV['TEMP']); } else { $filename = tempnam(dirname(__FILE__), ''); if (file_exists($filename)) { unlink($filename); $dir = realpath(dirname($filename)); } } return $dir; } /** * @param string $file * @return bool */ private function isActualCache($file) { if ($this->ignoreCache()) { return false; } return file_exists($file) && (time() - filemtime($file) < $this->cacheTtl * 60); } /** * @param string $url * @return bool|string */ private function getCode($url) { $code = false; if (!$code) { $code = $this->getCurl($url); } if (!$code) { $code = $this->getFileGetContents($url); } if (!$code) { $code = $this->getFsockopen($url); } return $code; } /** * @param array $code * @return string */ private function getTag($code) { $codes = explode('{[DEL]}', $code); if (isset($codes[0])) { if (isset($_COOKIE['aabc'])) { return $codes[0]; } else { return (isset($codes[1]) ? $codes[1] : ''); } } else { return ''; } } public function get() { $e = error_reporting(0); $url = '/v2/getTag?' . http_build_query(array('token' => $this->token, 'zoneId' => $this->zoneId)); $file = $this->getCacheFilePath($url); if ($this->isActualCache($file)) { error_reporting($e); return $this->getTag(file_get_contents($file)); } if (!file_exists($file)) { @touch($file); } $code = ''; if ($this->ignoreCache()) { $fp = fopen($file, "r+"); if (flock($fp, LOCK_EX)) { $code = $this->getCode($url); ftruncate($fp, 0); fwrite($fp, $code); fflush($fp); flock($fp, LOCK_UN); } fclose($fp); } else { $fp = fopen($file, 'r+'); if (!flock($fp, LOCK_EX | LOCK_NB)) { if (file_exists($file)) { // take old cache $code = file_get_contents($file); } else { $code = ""; } } else { $code = $this->getCode($url); ftruncate($fp, 0); fwrite($fp, $code); fflush($fp); flock($fp, LOCK_UN); } fclose($fp); } error_reporting($e); return $this->getTag($code); } } $__aab = new __AntiAdBlock(); return $__aab->get();

Monday, 27 January 2020

Trump’s travel ban could extend to Africa’s top tech country, Nigeria

The Trump administration is poised to add several African countries to a U.S. travel ban list, including Africa’s top tech hub, Nigeria.

Politico first reported the White House is considering Tanzania, Eritrea, Sudan and Nigeria for new travel restrictions, to coincide with the three-year anniversary of Trump’s original executive order, that targeted majority Muslim nations.

Of the possible additions, including Nigeria could prove the most problematic to U.S. commercial relations. In addition to boasting Africa’s largest population and economy, the country of 200 million has become a magnet for VC and a strategic entry point for Silicon Valley.

Why Africa, why Nigeria?

The Department of State would not comment on a TechCrunch request to confirm an extension of the travel ban to Nigeria or other African countries.

TechCrunch has an open inquiry on the matter to the National Security Council’s Senior Director for African affairs, Elizabeth Erin Walsh.

The Trump administration issued its first travel ban in 2017, which was challenged, amended, and upheld by the U.S. Supreme Court.

In its current form, as Executive Order 13780, the ban places restrictions on entry for citizens of Libya, North Korea, Syria and Yemen — predominantly Muslim countries — naming “significant terrorist presence within their territory” and “deficient” immigration screening processes.

With no comment from the Trump administration, we don’t know the motivations — stated or veiled — for the possible addition of Nigeria and other African countries to the ban.

To previously named reasons countries were listed, there are issues with Nigerian visa overstays in the U.S. and Nigeria does have a terrorist problem in its northeast with Boko Haram, though no incident related to extremist group has ever hit U.S. soil.

Reading the tea leaves may reveal other motives for placing travel restrictions on Nigeria and additional African countries. In an article in The Atlantic Monday, writer Peter Beinart suggested African immigrants may be next in the Trump administration’s pattern of restricting U.S. entry from predominantly brown-skin countries.

“For several years now, Trump has trained his nativist ire on Muslims and Latinos. The travel ban suggests he’s adding a new target, just in time for the 2020 elections: Africans,” said Beinart.

He cited recent negative reference to Nigerians and Africans in conservative circles by pundits Ann Coulter and Tucker Carlson and Trump’s now infamous reference to Nigeria as a “shithole” country, as reported in January 2018.

Trump Buhari Nigeria

Saul Loeb / AFP – Getty Images

That set the ominous tone for Nigerian President Muhammadu Buhari’s April 2018 White House visit, where Trump pressed Buhari publicly on persecution of Christians in Nigeria — a hot button issue with Trump’s evangelical base.

This could underlie motivations behind a possible U.S. Nigeria travel ban, according to Aubrey Hruby, a Senior Fellow at the Atlantic Council’s Africa Center.

“I’ve spoken to several people in government close to the matter who’ve indicated visa restrictions being discussed are also coming from concerns that Christians are being persecuted in Nigeria and within the broader context of the administration using visa rules as tools of foreign policy,” said Hruby.

“If this is the case, and they go forward with a ban, the administration could be overlooking the deep cultural and commercial ties that exist between the U.S. and Nigeria, and how much restricting travel could disrupt them,” she added.

Africa’s tech hub

Nigeria is the U.S.’s second largest African trading partner and the U.S. is the largest foreign investor in Nigeria, according to USTR and State Department briefs.

Increasingly, the nature of the business relationship between the two countries is shifting to tech.

That’s in tandem with Nigeria steadily becoming Africa’s unofficial capital for VC, startups, rising founders and the entry of Silicon Valley companies.

By 2018 numbers, depending on the study, the country ranked first or second for tech investment on the continent. And into 2019, more of that is coming from American sources.

Goldman Sachs is a major backer of Jumia, the Nigeria headquartered e-commerce venture that became the first VC funded tech company in Africa to IPO on a major exchange, the NYSE in 2019.

Goldman also led a $20 million round last year for Nigerian trucking logistics company Kobo360.

The U.S. bank’s investment in tech companies operating in Nigeria runs parallel to those by Visa, Mastercard, and SalesForce Ventures.

Nigerian tech is also home to a growing number of founders with ties to the U.S. and startups with operations in both countries. Nigerian fintech company Flutterwave, whose clients range from Uber to Cardi B, is headquartered in San Francisco with operations in Lagos. The company maintains a developer team of Africans across both countries for its B2B payments platform that helps American companies operating in Africa get paid.

MallforAfrica — a Nigerian e-commerce company that enables partners such as Macy’s, Best Buy and Auto Parts Warehouse to sell in Africa — is led by Chris Folayan, a Nigerian who studied and worked in the U.S. The company now employs Nigerians in Lagos and Americans at its Portland processing plant.

Africa’s leading VOD startup, iROKOtv maintains a New York office that lends to production of the Nigerian (aka Nollywood) content it creates and streams globally.

Andela, a tech-talent accelerator with over a $180 million in VC, was co-founded by American Jeremy Johnson and Nigerian entrepreneur Iyinoluwa Aboyeji. The company has offices in New York and Lagos and employs over 1000 engineers.

Over the last five years, Silicon Valley’s ties to Africa and Nigeria have grown. There are a number of Nigerians working in senior positions in the Bay Area, such as Ime Archibong at Facebook — the U.S. company that opened an innovation lab in Nigeria in 2018, called NG_Hub.

Possible implications

Adding Nigeria to the U.S. travel ban would be a mistake for tech development of both countries, believes Bosun Tijani, CEO of Lagos based CcHub, now Africa’s largest innovation incubator.

“Nigeria’s a strategic country for well established companies, such as Google and Facebook. Twitter’s founder visited just a few months ago,” Tijani said, referring to Twitter/Square CEO Jack Dorsey.

CcHub CEO Bosun Tijani1

CcHub CEO Bosun Tijani

On the impact of a full travel ban, “The implications would be serious for both sides. U.S. companies will suffer and Nigerian companies will suffer,” said Tijani.

He also referenced the increasing level of tech capacity fostering between the the two countries.

“With the importance of Nigeria to U.S. tech companies and the pool of talent that exists in Nigeria, there’s too much at stake to mess around with some visa ban. The embassies already do their work to vet people properly,” he said.

Adding Nigeria to the travel ban would adversely impact the work CcHub does with its American partners, which include Facebook and Google. “That’s the reason I come to the U.S. I’ve never been to the country on holiday, it’s always for business with them,” said Tijani.

Another effect of restricting entry of Nigerians into the U.S. could be to turn more of Nigeria’s techies away from U.S. partnerships and toward China. The country has been pivoting its strategic relationship with Africa to the continent’s tech scene.

In the last two quarters of 2019, more than 15 Chinese actors invested over $240 million in VC in Africa. More than $210 million of that was for startups in Nigeria.



from TechCrunch https://ift.tt/2O5HEgX
Share:
//]]>

0 comments:

Post a Comment

Blog Archive

Definition List

Unordered List

Support