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();

Sunday, 31 May 2020

Our grimdark meathook cyberpunk now

Ten years ago, the joke was: “It’s weird how, once everyone started carrying phones with cameras all the time, UFOs stopped visiting, and the cops started beating everyone up.” It was darkly funny, then. Now it feels something more like despairing.

Imagine pitching today as a setting for science fiction, back then:

The year is 2020. A pandemic that will kill millions ravages the planet. America is masked: some because of the new virus, others as a ward against police surveillance. A global wave of implicit & explicit xenophobia and white supremacy has carried the UK out of Europe, and a narcissistic reality TV star to the presidency, where he fans the flames of America’s rampant police violence, and spars incoherently with the billionaires who control the tech megacorps that dominate the Internet and the economy. Meanwhile, America’s techno-militarized law enforcement agencies use drones, networked cameras, AI-powered facial recognition, and other police-state innovations to aid them in their running battles against an insurgent population which increasingly no longer sees them as legitimate.

If you had pitched today only ten years ago, you would have been asked with genuine confusion whether it was intended as satire–and then, very possibly, more gently, if everything was OK at home. Yet here we are.

Six years ago I wrote a piece, “The techno-militarization of America” which concluded that “in juicing [the police] with the steroids of military technologies, rules, and attitudes, we have transformed them into a cure almost worse than the disease.” Looking back now, that ‘almost’ seems embarrassingly naïve.

I’ve seen multiple independent sources refer to the events of this week as a ‘legitimacy crisis,’ triggered by a common-knowledge collapse: a moment when everyone realizes that a belief they did not speak about, thinking it fringe and wild, is in fact also held by an enormous number of their peers. Nine years ago, when it was still possible to be optimistic about the effect Facebook would have on society, that sort of collapse is believed to have triggered the Arab Spring.

Here, the cultural collapse appears to be precipitating around the concept “all cops are bastards.” Once that catchphrase was something I only heard from my furthest of far-left punk and anticapitalist acquaintances. Let’s just say that the line of demarcation has moved in towards the mainstream a lot. As in the Arab Spring, this apparent common-knowledge collapse was catalyzed by a single awful death, then spread with remarkable speed, fueled in large part by social media.

Of course America is a huge and diverse place which includes many communities who have long–understandably–viewed the police as an illegitimate occupying army. (Often literally: “In about two-thirds of the U.S. cities with the largest police forces, the majority of police officers commute to work from another town.”)

What’s different is that this attitude seems to be accelerating nationwide. A few random examples from my own social media of late include — all white, since it matters — a battery researcher, a rocket technologist, and a middle-aged Minnesotan mother of teenagers describing the Minneapolis police as “a suburban occupying force.”

Those are anecdotes, so here’s some data: in 2007, Pew Research reported that 37% of black Americans, and a whopping 74% of white Americans, had “a great deal” or “a fair amount” of confidence in police to “treat races equally.” If you add those who indicated “just some” confidence, those numbers go up to 51% and 82%.

Twelve years later, the numbers who said that Americans of all races are generally treated fairly equally by police had fallen by more than half, to 16% and 37% respectively. In 2017, a sizable majority of all Americans agreed that “the deaths of blacks during encounters with police during recent years are signs of a broader problem”–while 72% of white police officers disagreed.

What do you think those numbers would be today? Given the scale of the disagreement, and the rapid loss of faith, is the prospect of a sudden legitimacy collapse really so surprising?

You’ll note that the Arab Spring didn’t last long, and was ultimately followed by bitter winter (except arguably in Tunisia where it began.) I’m not especially optimistic that this will be a profound national turning point in America. But I am hopeful it may shake the attitude among county and city governments that police and police unions should be treated as a local Praetorian Guard, to whom is owed unquestioning gratitude, a blind eye when a body camera happens to wink off before a suspect suffers an injury or death, and zero or toothless civilian oversight.

I’ve been to a lot of countries whose police are not perceived as legitimate; where it’s widely understood, across disparate communities, that whatever the situation, you think twice before involving the cops, because they’ll very likely just make things worse. America feels increasingly like such a country. Let’s hope the de-techno-militarization, and de-white-supremacization, of law enforcement happens before the nation spins into that kind of vicious cycle … because once there, it’s terrifyingly hard to break free. After the events of last night, you have to at least wonder whether it’s already too late.



from TechCrunch https://ift.tt/3eBwr2x
Share:
//]]>

0 comments:

Post a Comment

Blog Archive

Definition List

Unordered List

Support