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

This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

Tuesday, 1 January 2019

Microsoft said it would start giving app developers an 85%-95% cut for non-game apps, up from 70%, in 2018, but the new pricing hasn't been implemented yet (Brad Sams/Petri)

Brad Sams / Petri:
Microsoft said it would start giving app developers an 85%-95% cut for non-game apps, up from 70%, in 2018, but the new pricing hasn't been implemented yet  —  Back in the spring of 2018, Microsoft published a blog post saying that the company would soon be more generous with its revenue share in the Microsoft store.



from Techmeme http://bit.ly/2s1Pn4l
Share:

Tesla CEO Elon Musk’s year in one chart

Three point eight.

From the first day of trading in 2018 to the last, that was the final percentage difference in Tesla’s share price. Taken on its own, the number is a modest and positive gain — and far more fruitful than automakers Ford, GM and Fiat Chrysler. It’s a number that suggests a consistent year of upwards momentum for Tesla, steady and diligent like a tugboat, even keeled and untouched from stormy market seas.

Those two bookends of the stock market calendar — January 2 and December 31 — and the 3.8% gain they produced obfuscates what really happened to Tesla and CEO Elon Musk in 2018.

It wasn’t quiet. It wasn’t calm. It wasn’t constant or consistent. Tesla wasn’t a tugboat in 2018; it was a whipsaw.

The year was a dizzying ride that took Tesla shareholders and fans, critics, car owners, and employees, the media and Musk himself to extreme highs and troubling lows — sometimes flip-flopping twice or more in a few days time.

And it was exhausting because so much of it seemed self-inflicted and avoidable.

 

The chart illustrates the ups and downs of Tesla’s share price along with specific highlights. But there were so many more.

As Tesla floundered early in the year, hamstrung by production hell of its Model 3, Musk’s company SpaceX made history when it completed a test of its Falcon Heavy rocket, the heavy-lift orbital vehicle that can carry twice the weight of its closest competition in active operation. 

As production hell dragged on through the first quarter and into the second, Musk locked in a performance-based package that granted him $2.6 billion in stock options over 10 years. Moody’s would downgrade Tesla’s credit rating to negative from stable and Musk would make an untimely April Fool’s Day joke that the company was “bankwupt.”   

It turns out those jokes weren’t so far off.

Tesla was burning through millions of dollars a day as the company tried to solve production bottlenecks in its factory.

“Tesla really faced a severe threat of death due to the Model 3 production ramp,” Musk said in an interview with Axios in November. The company was within “single-digit weeks” of dying, he added.

Other problems emerged as Musk and his employees scrambled to solve that very real and impending existential threat to Tesla. There was the unfortunate unhinged analyst call and a spat with the National Transportation Safety Board over a fatal crash and investigation into the automaker’s semi-autonomous Autopilot system.

And then it happened. Tesla, which appeared to be in a death spiral, produced 5,000 vehicles in a week. It was a triumph. The naysayers were proven wrong; the critics were silenced; the shorts would convert!

And it was only July 1.

The rest of the year played out much the same way the first half did, just with a few new characters and twists from the “pedo guy” episode that played out on Twitter and Musk’s “funding secured” tweet to pot-smoking, SEC investigations, and earning its first profit in two years.

The last quarter of the year was marked by advancements in its Autopilot system, lawsuits and subpoenas, a new Tesla chairman, two new board members Larry Ellison and Kathleen Wilson-Thompson, and further expansion into China.

Tesla’s rollercoaster ride of a year was stomach churning — or thrilling, depending on your point of view — without Musk engaging in Twitter. But his frequent use of the social media tool repeatedly pulled the company, or himself, back into an abyss of petty fights, distractions and at its worst, potential derailments to a company he has invested so much of his time, money and emotion in.

In 2019, with the Model 3 moving into new regions of the world and hints of other grander plans, Tesla deserves, and will need, a captain with both hands on the wheel. Elon, take the wheel.



from TechCrunch https://tcrn.ch/2LNSZju
Share:

Experts say Facebook's opaque approach towards flagging possible suicide threats to police around the world may not be accurate, effective, or safe (Natasha Singer/New York Times)

Natasha Singer / New York Times:
Experts say Facebook's opaque approach towards flagging possible suicide threats to police around the world may not be accurate, effective, or safe  —  A police officer on the late shift in an Ohio town recently received an unusual call from Facebook.  —  Earlier that day …



from Techmeme http://bit.ly/2AzXEkL
Share:

MetaTrader vs. cTrader: Forex Trading Platform Comparison

MetaTrader by Metaquotes has dominated the forex markets for quite a long period. Recently, it also launched its new version MetaTrader 5 (MT5). However, it is not the only software which you can use to trade the forex markets. A formidable contender is cTrader by Spotware.

Choosing the right software for forex trading can make the difference between profit and loss. You cannot compromise on the trading platform when it comes to forex trading. We will today compare both of these trading platforms to provide you with a clear perspective. We will compare the companies on uniform factors which will help you clearly understand which one is better.

  1. Charts and Indicators:

MetaTrader:

MetaTrader 5 offers 21 different chart timeframes. The number of charts which you can view is unlimited. It provides 38 trading indicators and 68 analytical tools. The number of indicators and analytical tools in MetaTrader 5 is much higher than its predecessor. You can trade in one click from the tick charts. Thus, when it comes to charts and indicators, it is a formidable contender.

cTrader:

cTrader comes with 70 indicators and 54 timeframes to choose as per your requirements. Thus, it is neck to neck when it comes to indicators and analytical tools with MetaTrader 5. It might even have a slight advantage, but MetaTrader 5 edges past it with one click trading in tick charts.

cTrader and MetaTrader are on an equal footing as far as charts and indicators are concerned. It’s a tie!

Score:

MetaTrader: 1

cTrader: 1

  1. Backtesting and automated testing:

MetaTrader has been able to dominate the forex industry for a very long time. The primary reason for that is it supports the use of EAs. Thus, automated trading to a certain extent is possible. With the launch of cTrader, the industry has an alternative.

MetaTrader:

MetaTrader 5 supports forex robot or Expert Advisors (EAs) and automated algorithms. These can be used to trade on your behalf as well as your clients. These algorithms help to conclude the entire trade easily. There is even an elaborate language in which you can write these automated trading algorithms. It is called MQL5. It is similar to C. The dedicated scripting language makes MetaTrader 5 much more potent as compared to the other trading platforms.

The scripting language, however, is not that easy to master. You will have to spend quite a few hours to learn the scripting language. It will help if you know C programming language. Nonetheless, it has a definite advantage. The only downside is that MetaTrader 4 worked on MQL4. MetaTrader 5 works on MQL5. If you have an algorithm to determine the older language, it is not compatible with MetaTrader 5. You will have to write the entire algorithm from scratch.

Since MetaTrader has been around for quite some time, there are quite a few tools which you can use to create algorithms and EAs without programming knowledge. There are pre-existing expert advisors and algorithms which you can buy directly off the market.

MetaTrader 5 allows you to backtest your algorithms as well as expert advisor. You can calculate the probability of your success by taking into account the past data.

cTrader:

cTrader also supports automatic trading and backtesting. The algorithms and the bots for cTrader are coded in C#. It is an object-oriented programming language. It is very common. As a result, writing bots is easier in cTrader.

The developer community for cTrader has also grown exponentially. Thus, you can take help from their bots. There are however no tools available for creating bots without programming knowledge in cTrader. There are a few tools however which allow you to convert MetaTrader EAs to work with cTrader. Automated trading is possible with the help of cTrader.

The backtesting feature of cTrader is very similar to that of MetaTrader. You can expand the historical data as per your requirement. You can backtest your algorithms and bots as per your requirement.

On the face of it, both MetaTrader and cTrader might offer same automated algorithm and backtesting features, but MetaTrader certainly has an edge. The edge is the vast developer community. The availability to create bots without programming knowledge is a definite advantage for MetaTrader. Thus, MetaTrader edges past cTrader in this regard.

 

Score:

MetaTrader: 2

cTrader: 1

  1. The depth of Market:

The futures market has made the depth of market feature famous. The popularity led to the advent of this feature in the forex markets. We will compare MetaTrader and cTrader on this below.

MetaTrader:

MetaTrader 5 is the first forex trading platform to introduce depth of market functionality. Earlier it was available but not as a default option. MetaTrader allowed you to view it using a third-party plug-in. The plug-in access was to be provided by the broker. MetaTrader 5 has made it a standard option. You can easily check the liquidity with the help of this feature. It will help you understand the market conditions.

cTrader:

cTrader has a definite advantage when it comes to depth of market feature. It is much more sophisticated in this regard. It provides you with the full details of executable prices. It allows you to view the VWAP which helps you execute the trade at a much faster pace. You can even gain an idea regarding the price at which the large orders will get executed. The elaborate data for the depth of market functionality works in favor of cTrader.

Thus, when it comes to depth of market functionality, cTrader has a definite advantage.

Score:

MetaTrader: 2

cTrader: 2

  1. Accessibility:

Ultimately, it is the accessibility of the software which will decide its usability. We will compare both of these trading platforms on this factor.

MetaTrader:

MetaTrader has a distinct advantage. MetaTrader 4 is almost the default trading platform offered by most of the forex brokers. MetaTrader 5 is also gaining wider acceptance at a fast pace. Most of the brokers offer either MetaTrader 4 or MetaTrader 5. Thus, availability and accessibility is not an issue when you are looking for MetaTrader. MetaTrader is available for Tablets, Windows, and Mac. It is available in the web-based version as well.

cTrader:

The number of brokerages offering cTrader is increasing. With that being said, it still lags behind MetaTrader on accessibility. It will take some time before it matches the accessibility and availability of MetaTrader.

cTrader is available for tablets along with Windows. It has a web-based version as well.

The availability of MetaTrader helps it score over cTrader in this regard.

Score:

MetaTrader: 3

cTrader: 2
Verdict: MetaTrader Wins!

Thus, head-to-head, MetaTrader scores over cTrader. The accessibility and availability of MetaTrader 4 and 5 help it edge past cTrader quite easily. Even with the elaborate depth of market functionality, cTrader still lags behind the MetaTrader trading platform in some aspects which we have highlighted above. According to us, MetaTrader 5 should be your weapon of choice in the forex markets.

The post MetaTrader vs. cTrader: Forex Trading Platform Comparison appeared first on TheTechNews.



from TheTechNews http://bit.ly/2SqOlu6
Share:

Curbs on A.I. Exports? Silicon Valley Fears Losing Its Edge


By CADE METZ from NYT Technology https://nyti.ms/2GQTb2F
Share:

The end of China’s ride-sharing gig

Over the last few years, millions of Chinese workers managed to earn extra money by being ride-hailing drivers. Many picked the gig because of its flexible schedule. For those who could not otherwise afford to own a car in China’s pricy metropolises, driving around is also a status symbol, even if they are paying off car loans every month.

Most drivers on Didi Chuxing — the startup that captured 90 percent of China’s e-hailing trips in 2017 per consulting firm Bain & Company — were part-time. That’s according to a report Didi put out in October 2017, which said half of its drivers worked less than two hours a day.

The report also hailed Didi as the epitome of China’s “sharing economy,” something that Beijing has been keen to promote to spur economic growth. The all-encompassing term, which includes shared platforms from mobility to elderly care services, raked in $764 billion in 2017, shows a report by China’s Sharing Economy Research Center of the State Information Center.

But gig work in China’s fledgling ride-hailing industry is coming to an end as new regulations make part-time driving overly expensive.

No more gigs

On January 1, ride-hailing apps in China start banning drivers who operate without the required “double licenses”: one for drivers and another for the cars they steer. Municipal governments across the country have nuanced stipulations for what these certificates entail, but in general, the fresh rules aim to more closely vet drivers transporting passengers around.

To obtain the ride-hailing driver’s permit in certain cities, drivers must own a local hukou, the residency permit that controls where people can legally work. A lot of ride-hailing drivers don’t have an urban hukou as they are migrant workers from rural parts of China, so they immediately become ineligible for ride-hailing apps.

The car license, on the other hand, requires the vehicle to operate as a commercial one, bringing additional costs to drivers who must absorb the costs of car insurance and maintenance, and scrap their vehicle after 8 years.

didi chuxing

All ride-hailing vehicles in China must possess the required license (circled in red) to be on the roads starting January 1, 2019. Photo credit: TechCrunch

Under the new legal framework, drivers can still work as independent contractors. But in effect, the policy shift is driving out casual workers. “No part-time drivers want to register their private car as a commercial one because of the high costs that come with it,” a Shenzhen-based Didi driver tells TechCrunch. “Being part-time doesn’t pay the bills anymore.”

Didi’s dilemma

Like a lot of China’s nascent industries, ride-hailing took off quickly in part thanks to relatively lax government oversight at the start. The first set of industry laws took effect in 2016 when the country officially legalized apps like Uber, which was later acquired by its local competitor Didi. Since then Chinese authorities have gradually rolled out more rules and the strictest regulations, including the rollout of the double licenses, came following the deaths of two passengers who used Didi last year.

The new policies have put a squeeze on driver and car numbers. In the Tier 2 city of Nanjing alone, Didi claims to have weeded out more than 160,000 illegal vehicles, local media reported. The sharp decline in cars available on the roads inevitably leads to longer wait time and user frustration, and the $56 billion giant will need to think of ways to maintain a constant supply of drivers.

Didi took off on account of generous subsidies for both users and drivers, but its staggering loss — which is said to stand at $585 million in the first half of 2018 — means it may not be offering cash-heavy incentives in the near term. To retain labor, Didi is offering test prep for drivers. It’s also lowered the barriers to entry by letting drivers rent licensed cars it sources from car rental and automaker partners. A catchphrase started to pop up on Didi’s mobile app for drivers in December: “You supply the manpower, we provide the car.”

Aside from regulatory hurdles, Didi also faces new challengers like BMW and Volkswagen’s China partner SAIC Motor, traditional carmakers that are entering the ride-hailing scene.

“Didi has educated China about what is ride-hailing. If it doesn’t react swiftly to changing dynamics, the billions of yuan it’s burned through will suffer from low returns,” Dong Feng, founder of a Chinese car rental startup suggests to TechCrunch.



from TechCrunch https://tcrn.ch/2F1KuQv
Share:

Big Tech May Look Troubled, but It’s Just Getting Started


By DAVID STREITFELD from NYT Technology https://nyti.ms/2F040g2
Share:

Researchers used a series of auctions to find that it would take on average $1,000+ to entice users to deactivate their Facebook accounts for a year (Jennifer Ouellette/Ars Technica)

Jennifer Ouellette / Ars Technica:
Researchers used a series of auctions to find that it would take on average $1,000+ to entice users to deactivate their Facebook accounts for a year  —  Some users required more than $1,000 to deactivate their account for one year. … A series of auctions revealed that Facebook users value …



from Techmeme http://bit.ly/2F0gWCz
Share:

Blog Archive

Definition List

Unordered List

Support