RSS

How to Fix App “is damaged and can’t be opened. You should move it to the Trash” Error on Mac

By: clcbio.com

Mac OS Sierra 10.12.x

The premise is the same as shown for Mac OS 10.9.2 through 10.11.x except that the steps to enable the “Anywhere” option are different.

If you view your security settings under System Preferences | Security & Privacy, you will see there is no Anywhere option.

To enable the “Anywhere” option, run the following command in a terminal:

sudo spctl --master-disable

If you go back to System Preferences | Security & Privacy, you will see the Anywhere option enabled. Unlock the edit option by clicking on the padlock icon at the bottom of the window to change to Anywhere option.

At this point, you should be able to install the software.

This security setting affects your whole system. To reinstate the earlier security policy, run the following after the software is installed:

sudo spctl --master-enable

and then check your security settings are as you expect.

Copy from: https://secure.clcbio.com/helpspot/index.php?pg=kb.page&id=323

 
Leave a comment

Posted by on April 19, 2019 in Mac

 

Compile-time Error: control may reach end of non-void function with Xcode 10.2

Copy from: https://github.com/realm/realm-js/issues/2305

 

temp solution :

add default: return "null"; between line 52 and 53,

template<>
inline const char *jsc::Value::typeof(JSContextRef ctx, const JSValueRef &value) {
    switch (JSValueGetType(ctx, value)) {
        case kJSTypeNull: return "null";
        case kJSTypeNumber: return "number";
        case kJSTypeObject: return "object";
        case kJSTypeString: return "string";
        case kJSTypeBoolean: return "boolean";
        case kJSTypeUndefined: return "undefined";
        default: return "null";
    }
    
}

this working for me, waiting for the official solution

 
Leave a comment

Posted by on April 11, 2019 in iOS, Mobile Development, React Native

 

Config SSH with Siteground

For Windows

https://www.siteground.com/tutorials/ssh/putty/

For MacOS

https://www.siteground.com/kb/how_to_enable_ssh_for_vps_on_mac_os/

 
Leave a comment

Posted by on February 8, 2019 in Control Version, SSH

 

Android – Launcher Icon Size

By:

 

683

I would create separate images for each one:

LDPI should be 36 x 36.

MDPI should be 48 x 48.

TVDPI should be 64 x 64.

HDPI should be 72 x 72.

XHDPI should be 96 x 96.

XXHDPI should be 144 x 144.

XXXHDPI should be 192 x 192.

Then just put each of them in the separate stalks of the drawable folder.

You are also required to give a large version of your icon when uploading your app onto the Google Play Store and this should be WEB 512 x 512. This is so large so that Google can rescale it to any size in order to advertise your app throughout the Google Play Store and not add pixelation to your logo.

Basically, all of the other icons should be in proportion to the ‘baseline’ icon, MDPI at 48 x 48.

LDPI is MDPI x 0.75.

TVDPI is MDPI x 1.33.

HDPI is MDPI x 1.5.

XHDPI is MDPI x 2.

XXHDPI is MDPI x 3.

XXXHDPI is MDPI x 4.

This is all explained on the Iconography page of the Android Developers website:http://developer.android.com/design/style/iconography.html

copy from: https://stackoverflow.com/questions/12768128/android-launcher-icon-size

 
Leave a comment

Posted by on February 2, 2019 in Android, Mobile Development

 

Change package name for Android in React Native

By:Cherniv

Then manually switched the old and new package ids:

In: android/app/src/main/java/MY/APP/NEW_ID/MainActivity.java:

package MY.APP.NEW_ID;

In android/app/src/main/java/MY/APP/NEW_ID/MainApplication.java:

package MY.APP.NEW_ID;

In android/app/src/main/AndroidManifest.xml:

package="MY.APP.NEW_ID"

And in android/app/build.gradle:

applicationId "MY.APP.NEW_ID"

(Optional) In android/app/BUCK:

android_build_config(
  package="MY.APP.NEW_ID"
)
android_resource(
  package="MY.APP.NEW_ID"
)

Gradle’ cleaning in the end (in /android folder):

./gradlew clean

 

Copy from: https://stackoverflow.com/questions/37389905/change-package-name-for-android-in-react-native

 
Leave a comment

Posted by on January 25, 2019 in Mobile Development, React Native

 

How to use sudo with Touch ID on your Mac

By: Cabel (Twitter: @cabel)

How to enable Touch ID for sudo commands on your MacBook Pro with Touch Bar

  1. In Safari, paste the following into the search bar: file:///etc/pam.d/sudo.

    Alternatively, you can edit the file within the Terminal app itself using command-line text editors like emacs or nano; if you choose to do this, go to step 8, and skip steps 10-12.

  2. Press Command-I with the sudo file highlighted to open up the information screen.

  3. Click on the Lock icon in the bottom right corner.
  4. Enter your authentication information (or use Touch ID).
  5. Change the privileges of all users to Read & Write.

  6. Download TextWrangler, a free plain text editor, or use the plain text editor of your choice.
  7. Open the sudo file in TextWrangler (or equivalent).
  8. Paste auth sufficient pam_tid.so on line 2 of the document (underneath the initial comment line)

    Note: If you get a note about the document being locked, go back to step 2-5 and make sure you’ve enabled Read & Write privileges on the document.

  9. Save the sudo file and close it.

  10. In Finder, press Command-I with the sudo file highlighted to open up the information screen.
  11. Change the privileges on all users to Read only.
  12. Click on the Lock icon in the bottom right corner.

Now, when you open Terminal and attempt a sudo command, you should be prompted with a Touch ID authentication in lieu of entering your administrator password.

Copy from: https://www.imore.com/how-use-sudo-your-mac-touch-id

 
Leave a comment

Posted by on September 24, 2018 in Mac

 

Install npm packages without sudo

By Tim Kamanin

1) Set yourself as an owner of ~/.npm directory, like this:

sudo chown -R $(whoami) ~/.npm

and if error persists, set yourself as an owner /usr/local/lib/node_modules directory too, like this:

sudo chown -R $(whoami) /usr/local/lib/node_modules

Now you can install npm packages without sudo.

 

Copy from https://timonweb.com/posts/install-npm-packages-without-sudo/

 

 
Leave a comment

Posted by on September 20, 2018 in NodeJs