If you have an error like this:

Refused to load the image ‘data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAQAIBRAA7’ because it violates the following Content Security Policy directive: “default-src *”. Note that ‘img-src’ was not explicitly set, so ‘default-src’ is used as a fallback.

The problem is not setting the src, the problem is setting the src to a data: scheme URI.

Add data: to the list of things allowed by the content security policy. Either for the default-src or you could define a separate img-src.

In the example below, I have added img-src ‘self’ data:; to the start of the meta tag in the index.html file.

<meta http-equiv="Content-Security-Policy" content="img-src 'self' data:; default-src 'self' http://XX.XX.XX.XX:8084/mypp/">

This solutions it’s from: https://stackoverflow.com/a/32166921/2193452


Posteado por: edeortuzar | 30/06/2017

ng-class – differents expressions

If you want to use differents expressions to evaluate differents expressions and response differents class you must use a code like this:

            <tr ng-repeat="task in todos"
                ng-class="{'warning': task.status == 'Hold' , 'success': task.status == 'Completed',
              'active': task.status == 'Started', 'danger': task.status == 'Pending' } ">
                <td>{{$index + 1}}</td>


We are adding directive’s name as attribute in our img tag. In my case, after loading and depending on its dimensions, image have to change its class name from “horizontal” to “vertical” , so directive’s name will be “orientable” :

<img class="horizontal" />

And then we are creating simple directive like this:

var app = angular.module('myApp',[]);

app.directive('orientable', function () {       
    return {
        link: function(scope, element, attrs) {   

            element.bind("load" , function(e){ 

                // success, "onload" catched
                // now we can do specific stuff:

                if(this.naturalHeight &gt; this.naturalWidth){
                    this.className = "vertical";

This solutions it’s from: https://stackoverflow.com/a/17548090/2193452


Posteado por: edeortuzar | 30/06/2017

Ionic – Livereload on Genymotion

If you use Ionic and Genymotion, this command is a excelente option. You must running the genymotion device, after that run this command:

ionic run android -l -c -s

Ionic generate the apk and they will install on genymotion device, when you change the code, the apk reload on emulator device and you can test the change.


Posteado por: edeortuzar | 30/06/2017

The Best File Compression Software to Mac

I’m newest on Mac and I tested a lot of file compression software free. The best file compression software to Mac is:



Posteado por: edeortuzar | 24/05/2017

How can I find a component that has a specific id?

I maked this sql to find in the database where the field is uniqueidentifier and contain id:

select 'select '''+ table_name +''' from ' + a.table_name + ' where '+ column_name +' = ''b422f0ec-372c-e711-80dd-005056bd5340'';' from (
SELECT t.name AS table_name,
c.name AS column_name,
FROM sys.tables AS t
INNER JOIN sys.types ty ON c.user_type_id = ty.user_type_id
where c.name like '%id%' and ty.name = 'uniqueidentifier'
) as a

Hope this can help you

Posteado por: edeortuzar | 28/04/2017

DllRegisterServer – Error code: 0x80004005

If you have this error with Vista or 7, the solution is “Run as administrator” the following shortcut:

Home – Accessories – Command Prompt

To do this you have to go to Command Prompt and right-click and select the Run as admin option that has a shield.

That way, we can run regsvr32 without problems.

On a Windows 64bit, 32-bit modules must reside and register from c:\windows\syswow64

So you have to open a command console as an administrator, go to c:\windows\syswow64, copy the module there, and from that path run regsv32.

To clarify a bit the regsvr32 of \windows\system32 is the 64-bit, and the regsvr32 of \windows\syswow64 which is the 32-bit, confuse the directories but it is.

NOTE: On 64-bit systems, each time a 32-bit job is launched, the \windows\syswow64 folder is remapped internally as \windows\system32 and the actual system32 is not accessible.

They have more information about this mechanism, called “File System Redirector” at http://msdn2.microsoft.com/en-us/library/aa384187.aspx

If you have a DLL made from .NET to register it, as indicated in a comment Daniel Donoso , you should, for example for Framework 4.0 do:



If you have this problem, you can solution adding the next code:

$scope.$on('$ionicView.enter', function(e) {

You must add $ionicNavBarDelegate on the controller.


If you have this error, it is due to the new version of cordova-android@6.2.0 as you can see here:


If you are with Ionic, the solution is:

Ionic platform rm android
Ionic platform add android@6.1.2

Keep in mind that when doing the remove platform that delete the files like the keystore and necessary files to upload the app to the store if they do not have it automated.


Hi, I leave a link to a video that explains step by step and has the download links that work to install PlayStore in Genymotion.


I hope it serves them.


« Newer Posts - Older Posts »


A %d blogueros les gusta esto: