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

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]

MQTT Dynamic Library Not Found on Mac OS X

Great article on how to fix your dynamic library linking:

http://qin.laya.com/tech_coding_help/dylib_linking.html

As it turns out, in OS X 10.0 – 10.2, you need the path to the library to show up in there — what you need is for the second line to show something like this:

@executable_path/../Frameworks/libbz2.1.0.2.dylib (compatibility version 1.0.0, current version 1.0.2)

This tells OS X that it should look in the place where the binary is, move up a directory and into the Framworks folder, and the library will be sitting there. Which it is. Indeed, if you run otool -L on the binary of some application in your /Applications folder that has a working frameworks or dylibs in the app package Frameworks folder (try one of the applications from Omni), you can see that this is the case — all of their binaries comtain the right path. But the compiler is not figuring things out right… In fact, as it is right now, you can place the dylib in the same folder that the .app package is in, and things will run properly. But that’s not what we want.

Well, the first thing you can try to do is to use install_name_tool. If you read the man page for install_name_tool, you can actually change the information inside of the executable so that it has the right location. Depending on how the application was compiled, this may or may not work correctly. More specifically, you’ll be able to change the location if there was extra space compiled into the binary to allow space for a longer pathname. Generally install_name_tool will work on binaries, but not libaries. So you can now do this:

% install_name_tool -change libbz2.1.0.2.dylib
 @executable_path/../Frameworks/libbz2.1.0.2.dylib MyFunBinary 

Now try to run the file. Voila! It should work.
However this is somewhat unacceptable, as whenever the binary gets changed — taht is, whenever you recompile your code, this binary is going to get the short end of the shaft and get replaced by a new binary. Now, you could actually set up a shell script that runs install_name_tool every time you build your program, but that’s somewhat of a hack. We might as well try to fix things at the origin of the problem.

Whole article linked here: http://qin.laya.com/tech_coding_help/dylib_linking.html

How To Browse Ionic AngularJS API Docs

Dash, API browser app

Dash is an API Documentation Browser and Code Snippet Manager. Dash stores snippets of code and instantly searches offline documentation sets for 150+ APIs (for a full list, see below). You can even generate your own docsets or request docsets to be included.

Dash comes with 150+ offline documentation sets. You can choose which documentation sets to download and Dash will take care of the rest, making sure they are kept up to date. You can also generate your own docsets, request docsets or download docsets from third-party sources.

https://kapeli.com/dash

How To Install Windows 10 for Free

You can still get Windows 10 for free if you say you use assistive technology ;)

Microsoft:

For the general public, the free upgrade offer for Windows 10 ends on July 29. However, if you use assistive technologies, you can still get the free upgrade offer even after the general public deadline expires as Microsoft continues our efforts to improve the Windows 10 experience for people who use these technologies.

With the Windows 10 Anniversary Update, we’ve taken a number of steps to improve the accessibility of Windows 10. To learn more, read our blog that details some of these improvements.

Before you upgrade, please check with your assistive technology provider(s) to learn more about their software compatibility with Windows 10.

If you want Windows 10 now and are ready to take advantage of the free upgrade offer, select the button below to get started.

Yes, I use assistive technologies and I am ready for my free upgrade to Windows 10. *