json – React-Native – cannot be retrieved from the connected Android device to the localhost endpoint

I'm fairly new to React Native and I'm trying to make an application.
I have a JSON post request that works on Postman and Expo when I run it in the web browser (with http://127.0.0.1:8080). But when I try to run it on a connected Android device, my app doesn't really get the data.

As far as I can tell, there is a problem with the connection between my phone and my computer. But I can't find it.

Extra information:
– Both devices are connected to my internet
– Calls to the Firebase API work fine
– Changing "http: // localhost: 8080 / route" with the IPv4 address of my computer or 10.0.2.2:8080 does not work

Quickbooks Online – How can you change the "Standard" product / service category when a purchase receipt is retrieved from PayPal?

Stack Exchange network

The Stack Exchange network consists of 175 Q&A communities, including Stack Overflow, the largest and most trusted online community where developers can learn, share their knowledge, and build their careers.

Visit Stack Exchange

sharepoint online – Is there a way to get the JSON content from files that are retrieved via a CAML query?

const query =  `
          
        json 
     
`;
const xml = '' + query + '';  
const result = sp.web.lists.getByTitle('myassets').getItemsByCAMLQuery({'ViewXml':xml}).then((res:any).then((res:any) => { return res; })

Used the above CAML query to get files, but I can't get the JSON content of the files. I looked at the returned JSON and I see nothing regarding the content of the files. Is there a way to get the contents of multiple files through CAML? I know that there is a PnP method to get a single JSON, but I have to get the JSON of every file that gets at the same time.

mysql – When changing Mac profiles: General error: 13 Statistics cannot be retrieved (error code: 13 – authorization denied)

This happens every time I change the profile on my Mac and try to use MySQL under this separate profile.

It is as if the other profile takes ownership of MySQL. I can only run queries under this profile. Every other profile is damaged with the following errors:

SQLSTATE(HY000): General error: 13 Can't get stat of './somedb/sometable.TRG' (Errcode: 13 - Permission denied) (SQL: select * from `sometable` where `somecol` = someval limit 1)

I tried sudo chown -R mysql:mysql /usr/local/var/mysql but it doesn't matter.

Restarting MySQL with Brew does not work and the computer does not restart.

So far, the only solution has been to completely delete all databases and all traces of MySQL from my entire system and then reinstall MySQL completely using these instructions:

https://gist.github.com/vitorbritto/0555879fe4414d18569d

There must be a better way to use MySQL on multiple Mac user profiles.

android provider com.google.firebase.provider.FirebaseInitProvider cannot be retrieved

I am developing an app for Android and am already in the test phase. I tested the app with an emulator running API 29, even though the project is configured for minSdkVersion 23. However, the error with this title is displayed. Research on it and those who have it happen solve it by adding Multidex. However, you use minSdk version 20 or less, i.e. Multidex if required. As already mentioned, my project is minSdkVersion. According to the official Google Multidex documentation page, this is automatically activated if minSdk version is 21 or more. Because of this, I'm not sure what to do to make it work. The app runs perfectly in API 27 or higher, but from 26 it doesn't open on the devices I'm testing on.

This is the logcat message

2020-02-17 01:33:43.871 5975-5975/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.Interactive.textmefriends, PID: 5975
java.lang.RuntimeException: Unable to get provider com.google.firebase.provider.FirebaseInitProvider: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.provider.FirebaseInitProvider" on path: DexPathList((zip file "/data/app/com.Interactive.textmefriends-e44Txln6Z1Rx80v1hUODRQ==/base.apk"),nativeLibraryDirectories=(/data/app/com.Interactive.textmefriends-e44Txln6Z1Rx80v1hUODRQ==/lib/x86, /system/lib, /vendor/lib))
    at android.app.ActivityThread.installProvider(ActivityThread.java:6288)
    at android.app.ActivityThread.installContentProviders(ActivityThread.java:5851)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5772)
    at android.app.ActivityThread.-wrap1(Unknown Source:0)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1661)
    at android.os.Handler.dispatchMessage(Handler.java:105)
    at android.os.Looper.loop(Looper.java:164)
    at android.app.ActivityThread.main(ActivityThread.java:6541)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
 Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.provider.FirebaseInitProvider" on path: DexPathList((zip file "/data/app/com.Interactive.textmefriends-e44Txln6Z1Rx80v1hUODRQ==/base.apk"),nativeLibraryDirectories=(/data/app/com.Interactive.textmefriends-e44Txln6Z1Rx80v1hUODRQ==/lib/x86, /system/lib, /vendor/lib))
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
    at android.app.ActivityThread.installProvider(ActivityThread.java:6273)
    at android.app.ActivityThread.installContentProviders(ActivityThread.java:5851) 
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5772) 
    at android.app.ActivityThread.-wrap1(Unknown Source:0) 
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1661) 
    at android.os.Handler.dispatchMessage(Handler.java:105) 
    at android.os.Looper.loop(Looper.java:164) 
    at android.app.ActivityThread.main(ActivityThread.java:6541) 
    at java.lang.reflect.Method.invoke(Native Method) 
    at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) 
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767) 

This is the build.gradle module app

apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'

android {
    compileSdkVersion 29
    buildToolsVersion "29.0.2"
    defaultConfig {
        applicationId "com.Interactive.textmefriends"
        minSdkVersion 23
        targetSdkVersion 29
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ('*.jar'))
    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    implementation 'com.google.android.material:material:1.1.0'
    implementation 'com.google.firebase:firebase-analytics:17.2.2'

    implementation 'com.google.firebase:firebase-auth:19.2.0'
    implementation 'com.google.firebase:firebase-database:19.2.1'
    //implementation 'com.google.firebase:firebase-core:17.2.2'
    implementation 'androidx.cardview:cardview:1.0.0'
    implementation 'com.rengwuxian.materialedittext:library:2.1.4'
    implementation 'de.hdodenhof:circleimageview:3.1.0'
    implementation 'com.github.bumptech.glide:glide:4.11.0'

    implementation 'com.squareup.retrofit2:retrofit:2.7.1'
    implementation 'com.squareup.retrofit2:converter-gson:2.7.1'
    implementation 'com.google.firebase:firebase-messaging:20.1.0'

    implementation 'com.google.firebase:firebase-storage:19.1.1'
    implementation "androidx.fragment:fragment:1.2.1"
    implementation 'com.google.firebase:firebase-ads:18.3.0'

    implementation 'androidx.multidex:multidex:2.0.1'

    implementation 'com.google.firebase:firebase-firestore:21.4.0'
    testImplementation 'junit:junit:4.13'
    androidTestImplementation 'androidx.test.ext:junit:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}

Design Patterns – Should the Redux Store make sure that data is retrieved, updated and deleted from an API?

I'm not very familiar with Redux, but most resources on the subject recommend putting CRUD API calls over middlewares in Redux memory and using additional states, such as: FETCH_SUCCEEDED. FETCH_FAILEDetc. to save the result.

Is it really necessary?

Doesn't this violate the principle of sole responsibility?

What are the advantages of the boilerplate-ish approach above compared to simply calling your API client and then sending the result data to the store?

PHP – How do I implement a loop on retrieved data by grouping by clause in Laravel?

I am trying to implement a loop on fetch data, but there are errors that the property does not exist.

$SaleOrderProducts = SaleOrderProducts::where('sale_order_id', $id)->get()->groupBy('purchase_order_product.products.id');

I tried

foreach($SaleOrderProducts as $product)

{
  return $product->products->id;
}

If I just come back $products

foreach($SaleOrderProducts as $product)

{
  return $product;
}

Then data is returned in this format

({"id":6,"sale_order_id":2,"product_id":5,"purchase_order_product_id":5,"qty_taken":75,"created_at":"2020-01-31 19:04:05","updated_at":"2020-01-31 22:33:41","purchase_order_product":{"id":5,"purchase_order_id":1,"product_id":5,"measurement_unit":"Cartons","expiry_date":"2020-02-01","created_at":"2020-01-31 19:02:03","updated_at":"2020-01-31 22:33:41","status":1,"initial_qty":454,"on_hand_qty":454,"free_qty":389,"orignal_qty":454,"location":null,"products":{"id":5,"name":"Glass","customer_id":1,"product_type_id":1,"product_status_id":1,"code":"d23123","status":1,"description":"kkd","storage_charge_method":"Per Location","volume":4444554,"weight":545,"random_weight":"Yes","warning_threshold_duration":0,"expiry_threshold_duration":0,"low_stock_notification":"off","low_threshold_duration":null,"stock_selection_method":"Locaiton Efficiency Only","strict_stock_selection":"off","stock_sub_selection_method":"Minimise Storage"}}})

Azure ARM template – Can existing resource names be retrieved to be used as parameters or variables in the new ARM deployment?

My problem is related to Azure ARM

I want to populate the list of allowed parameters with values ​​from the current resource group.
To put it bluntly: I want to put a virtual machine on the subnet of the virtual network, but I don't want to enter the vNet name manually. I've already found a way to get the resource group ID, resource group name, and subscription ID, but apparently there's no way to get a list of objects here?

Javascript – "Expected expression, has & # 39; === & # 39;" while the contents of the file are being retrieved

I'm getting the contents of a text file on another server, but if the contents of the file are there, the file will run as Javascript and some errors will occur. I need to view the contents of the file instead of running the file.
This is the content of my text file:

======**(2020-01-27 14:14:05)**======
NOTICE: Server version has been read.
NOTICE: Local version has been read.
NOTICE: Local version:11,Server version:16.
NOTICE: New version has been found.
NOTICE: Downloading the zip file....
NOTICE: File name get successfully.
NOTICE: Zip archive instance generated.
NOTICE: Folders deleted.
NOTICE: Zip file extracted.
NOTICE: Index variables has been changes.
NOTICE: Everything done.

And this is my javascript code:

var settings = {
    'cache': false,
    'dataType': "jsonp",
    "async": true,
    "crossDomain": true,
    "url": "https://" + $(this).data("landing") + "/updater/err.log",
    "method": "GET",
    "headers": {
    "accept": "application/json",
    "Access-Control-Allow-Origin":"*"
    }
    }

    $.ajax(settings).done(function (response) {
    console.log(""+response+"");
    });

Sheet name is retrieved dynamically in Google Sheet

I have 2 google sheets called "Repository" and "Order". Repository files contain many sheets such as notes, books, stationery, etc. Each element has a unique code. I need to get the description and price of an item based on the code from "Repository" to "Order". I used vlookup and import range for this.

VLOOKUP (B2, IMPORTRANGE ("File URL", "Note! A2: D100"), 2, false)

VLOOKUP (B2, IMPORTRANGE ("File URL", "Books! A2: D100"), 2, false)

Is it possible to use a single formula for this by dynamically changing the sheet name so that the item is retrieved across all sheets in the "repository"?

I used named range with INDIRECT

VLOOKUP (B2, IMPORTRANGE ("File URL", "INDIRECT (" & # 39; "& SheetList &" & # 39 ;! "&" A2: D100 "), 2, false)

Sheetlist is a named area in & # 39; Repository & # 39; that would be Note, Book, etc.

I get #name?
Unknown area name & # 39; SheetList & # 39;

Am I doing it wrong? Is there a way to get sheet names dynamically?
Please help me get out of there. thank you in advance