How To Print Textarea With Javascript in Ionic

How To Print Textarea With Javascript?

$scope.printText = function(){

    // replace the printTextArea with your id
    childWindow = window.open('','childWindow','location=yes, menubar=yes, toolbar=yes');
    childWindow.document.open();
    childWindow.document.write('<html><head></head><body>');
    childWindow.document.write(document.getElementById('printTextArea').value.replace(/\n/gi,'<br>'));
    childWindow.document.write('</body></html>');
    childWindow.print();
    childWindow.document.close();
    childWindow.close();
}

Another stab at the autonomous vehicles, another waste of resources

Macrumors.com:

Audi and Nvidia have announced they are working together to bring a fully self-driving car to the consumer market by the year 2020.

The announcement came on Wednesday at the Consumer Electronics Show in Las Vegas, Nevada, as the two companies outlined their vision for a fully autonomous vehicle. German automaker Audi hopes to be one of the first automakers to achieve the feat, and is banking on U.S. graphics chipmaker Nvidia’s artificial intelligence car computing platform, which uses deep learning to negotiate complex real-road conditions.

I just think this is a bad use of resources. Unlike aviation where we have 2 big players working on complex problems here we have 30 tech and car companies working on their own solutions and duplicating all the work all the time. On top of that, there is no evidence that lawmakers will allow the final product.

Google Play Services Crashing On Amazon Fire Phone Fix

If your Google services are crashing then uninstall the following 4 APPs and reinstall them.

Make sure your Amazon Fire Phone has the latest OS first – 4.6.6.1

Install the following APPs in this particular order:

Google Services Framework, 4.4.4-1227136

Google Play Services, 10.0.84 (036-13749526)

Google Account Manager, 4.4.4-1227136

Google Play Store, 7.2.13.J-all [0] [PR] [138561921]

Will Snapchat’s new Spectacles be a bust?

The Verge on Snapchat’s new Spectacles product:

But for now, it’s time to play, experiment, and create new things. Adopting new technologies is easy when they’re actually fun to play with, and at $129.95 this technology should be fairly accessible for those who can find the vending machine robot.

In an area where trying too much has been the death knell for too many products, Snapchat is keeping things very simple and streamlined with Spectacles. The polish is in the details, but it’s all designed to create a fun, frictionless zone for people to do one very important thing: create and share.

Is there a market for 30 second low quality videos? Maybe. But at $130 they’re not that accessible, and even if they were much cheaper I still think they will be a big bust for Snapchat.