quarta-feira, 6 de abril de 2016

Adobe Photoshop CC - How to change language to english


I've installed the Adobe Photoshop CC on my PC, but it was in portuguese and some translations aren't so good, so I wanted to change the language to english.

It is very easy, just follow these steps:

- Quit Photoshop (if it is opened)
- Go to the installation directory and go to <installation folder>\Locales\<pt_BR or the other installed language>\Support Files
- Rename the file "tw10428.dat" to "tw10428.bak"
- Open the Photoshop again

That's it. Very simple.

Best regards,
Adriano Schmidt

domingo, 3 de abril de 2016

Ionic - Timeout

Hi, I will show here how to use the $timeout with Ionic:

Create a variable:
var myTimeout;

Start the timeout:
myTimeout = $timeout(timeIsOver, 10000);
The first parameter is a the function that will be executed after the time that you will set in the second parameter. In this case, 10000 milliseconds (10 seconds)

And do something when the time is over:
function timeIsOver(){

And if, before the time ends, you want to cancel the timeout for not executing the timeIsOver function, just do that:

Thats it :)

Best regards,
Adriano Schmidt

Ionic - How to scroll programatically?


If you are in a Ionic project and you want to move your screen (to scroll it) to the top or to the bottom, you just need to receive the $ionicScrollDelegate and call the methods scrollTop or scrollBottom:

angular.module('mymodule').controller('MyCtrl', function($scope, $ionicScrollDelegate) {



That's it :)

Best regards,
Adriano Schmidt

sexta-feira, 1 de abril de 2016

ionic build android does not update apk files

Hi there,

I ran the command "ionic build android" but the apk files at 'platforms/android/build/outputs/apk' folder were not updated

It started to happen after the crosswalk plugin installation

So, I ran the command "ionic state restore" to delete and fetch the plugins of my package.json and to add the platforms (android and/or ios) again.

After that, when I ran "ionic build android" the apk files were updated, but I realized that I should not use the "android-debug.apk" file like I was used to. Now I must use "android-armv7-debug.apk" or "android-x86-debug.apk" regarding the cell phone processor (ARM or x86).

If you don't know your cell phone processor, try one of the files and if it is the wrong file then a message will be showed to you, and you will close the app, uninstall it, and install it again but with the other file.

These are the commands I am using now:
ionic build android
adb.exe install -r platforms/android/build/outputs/apk/android-armv7-debug.apk

Best regards,
Adriano Schmidt