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, 2 January 2022

EU drafts plan to label gas and nuclear investments as green

Image Credit: REUTERS/Benoit Tessier

After years of fighting between governments for truly climate-friendly investments, the European Union has drawn up plans to label some natural gas and nuclear power projects as "green" investments. 

The European Commission is expected to propose rules in January to decide whether nuclear and gas  projects are included in the EU's “sustainable finance taxonomy”. 

This is a list of the economic activities and  environmental criteria that must be met in order to be labeled as a green investment.

By restricting the “green” label to really climate-friendly projects, the system aims to make these investments more attractive for private equity and to  stop “greenwashing”, in which companies or investors exaggerate their eco-friendly credentials. 

Brussels has also taken steps to apply the system to some EU funds, which means the rules could decide which projects are eligible for specific public funding. 

A draft of the Commission's proposal, seen by Reuters, would label investments in nuclear power plants as green if the project has a plan, resources and location to  dispose of radioactive waste. 

In order to be considered green, new nuclear power plants must obtain a building permit before 2045.

Investments in natural gas power plants are also considered green if they emit less than 270 g of CO2 equivalent per kilowatt hour (kWh), replace a more environmentally harmful power plant with fossil fuels, receive a building permit by December 31, 2030 and it is planned to switch to low-carbon gases by the end of 2035. 

Gas and nuclear  generation would be labeled green as they are "transitional activities" defined as those that are not fully sustainable but  have emissions below the industry average and do not contain environmentally harmful assets. .

"Taking into account current scientific advice and  technological progress, as well as the different transition challenges between Member States, the Commission believes that natural gas and nuclear energy play a role in facilitating the transition to a predominantly renewable future,"  the European Commission said in a statement.

To help states with different energy backgrounds make the transition, "under certain conditions, solutions that don't look 'green' at first glance can make sense," a commission source told Reuters, adding that the solutions are investments in gas and nuclear power would be subject to "strict regulations". 

EU countries and a panel of experts will analyze the draft proposal, which could change, before it is  published at the end of January. 

Once published, most EU countries or the European Parliament could vetoed it .

The policy has been mired in lobbying from governments for more than a year and EU countries disagree on which fuels are truly sustainable.

 Natural gas emits around half of coal's CO2 emissions  when burned in power plants, but gas infrastructure has also been linked to methane leaks, a potent EU adviser had recommended that gas-fired power plants shouldn't be labeled as green investments unless they hit a lower emission limit of 100g CO2e / kWh based on  deep  cuts in deep emissions scientists say are needed to avoid disastrous climate change.

Nuclear power produces very low CO2 emissions but the Commission sought expert advice this year on whether the fuel should be deemed green given the potential environmental impact of radioactive waste disposal.

Some environmental campaigners and Green EU lawmakers criticised the leaked proposal on gas and nuclear.

“By including them… the Commission risks jeopardising the credibility of the EU’s role as a leading marketplace for sustainable finance,” Greens president Philippe Lamberts said.

Austria opposes nuclear power, alongside countries including Germany and Luxembourg. EU states including the Czech Republic, Finland and France, which gets around 70% of its power from the fuel, see nuclear as crucial to phasing out CO2-emitting coal fuel power.



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

0 comments:

Post a Comment

Blog Archive

Definition List

Unordered List

Support