sharepoint on prem – Error when opening Office documents from library through native client

We have a strange error on a Sharepoint 2013 farm since a few days. Opening documents using any native Office 2016 client (e.g. Word) does not work anymore. It shows the error below and they do not open at all. The documents can be opened in Web App mode however.

“There are network issues stopping us from opening your document. Please try again later.”

enter image description here

Any idea ?

sharedpreferences – React Native Async Storage

I am using Aysncstorge in my app to save a value. it was working fine. her is my code.

  const Authorize = dispatch => async () =>{
        console.log("calledddd")
            try{
              let islogin = await  AsyncStorage.getItem('islogin')
               console.log(islogin)
            }catch(error){
                console.log(error)
            }
       console.log("called last")
    }

I also tried it like this.

 AsyncStorage.getItem('islogin').then((islogin) => {
     console.log(islogin)
}).catch((error) => {
     console.log(error)
 })

address – Nbitcoin’s BitcoinPubKeyAddress not recognizing native segwit addresses

I’m trying to build a transaction using Nbitcoin. When I run this line there is an error parsing the address. It runs fine with segwit addresses starting with a 1, but not native segwit.

Using System;
Using System.Text;
Using NBitcoin;

static void Main(string() args) {

    var wallet = new BitcoinPubKeyAddress("bc1q....", Network.Main); //throws error
}

Error: System.FormatException: ‘Invalid base58 data’

Is there a way to use native segwit with Nbitcoin? Thanks

flutter – Consigo colocar mais de 2 imagens na Native Splash Screen?

Tenho um projeto onde uma imagem seria meu background, uma seria um logotipo centralizado na tela e uma outra que ficaria na parte de baixo da tela. Eu consigo fazer isso no Native Splash Screen ou teria outra forma de fazer isso? Consegui fazer a Splash Screen com as duas primeiras imagens com o Native porém não consigo adicionar a terceira imagem. Exemplo de como deve ficar:

Imagem de como deve ficar:

simplifying expressions – How to tell MMA to transform a number to a factorial,Is there a native function?

I came across the need to transform a number into a factorial n, with positive integer n, I have searched in the MMA information but I can’t find anything like that.

I imagine an input, which verifies that it is a factorial, and if it is, prints the number in its n-form!

if there is no native function any idea how to implement it?

for example

6402373705728000=18!

51090942171709420000 does not correspond to a factorial.

javascript – Button onPress not printing console log in react native

In Below code am unable to understand why onPress function is not getting called and thereby not printing anything on console.

import * as React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack'

import { Button, Text } from 'react-native'
const stack1 = createStackNavigator()
const stack2 = createStackNavigator()
function buttonPressed(){
  console.log("TarunD screen1")
}
const screen1 = () => {
  return (
    <>
      <Text>
        Hello Screen1
      </Text>
      <Button 
        title="screen1 button"
        onPress={buttonPressed}
      />
    </>
  )
}

const screen2 = ()=>{
  return (
    <Text>
      Hello Screen2
    </Text>
  )
}
const App = () => {
  console.log("Hello App")
  return (  
  <NavigationContainer>
    <stack1.Navigator>
      <stack1.Screen name="Screen1" component={screen1}/>
    </stack1.Navigator>
  </NavigationContainer>)

}

export default App

Basically defined onPress and a button.
Am just trying to print console logs in the button, do you see anything wrong?

javascript – Botão Estado react native

Galera, boa noite

eu tô tentando trocar a cor de background do meu botão após o clique em cima dele mais não tô conseguindo

Eu tenho uma array e o map


const array = [
 {
   id: "1",
   title: "ifb 01",
   backgroundColor: "blue"
 },
 },
 {
   id: "2",
   title: "Inf 03",
   backgroundColor: "red"
 },

Porém, não tô conseguindo mudar a cor do background dos botão ao clicar nele.

Tentei fazer algo tipo

matéria cursada = background Green |
matéria não cursada = background white|
matéria ofertada = background blue|

c++ – How to use to_string in a native android app

I am building a native C++ android app using:

  • Visual Studio 2019
  • AndroidSDK 25
  • microsoft_dist_openjdk_1.8.0.25

I want to use the ‘to_string’ functions for converting numbers to strings. but for some reason I cannot get my code to compile. I get:

Target Link:

   undefined reference to 'wcstoll'
   undefined reference to 'wcstoull'
   undefined reference to 'wcstof'

I am using a pch.h

#include <jni.h>
#include <errno.h>

#include <string.h>
#include <unistd.h>
#include <sys/resource.h>

#include <EGL/egl.h>
#include <GLES/gl.h>

#include <SLES/OpenSLES.h>
#include <SLES/OpenSLES_Android.h>
//#include <SLES/OpenSLES_AndroidConfiguration.h>

//#include <android/sensor.h>

#include <android/log.h>
#include "android_native_app_glue.h"

#include <zlib.h>

It only seems to be the to_string command that gives me a problem. My best guess is that I am missing some sort of lib reference. I can provide more details if necessary. Any help would be much appreciated, Thanks.

javascript – React Native Views inside Scrollview fit-content height

tudo bem? Estou tendo um probleminha e espero que possam me ajudar a responder.

Eu tenho o seguinte código:

   <View>
      <ScrollView style={styles.scroll} contentContainerStyle={styles.scroll_items} horizontal showsHorizontalScrollIndicator={false}>
        {planos.map(plano => (
          <View key={plano?.PlanoID} style={styles.card}>
            <View style={styles.plano_conteudos_wrapper}>
              <Text style={styles.nome_plano}>{ plano?.PlanoNome }</Text>

              <View style={styles.items_wrapper}>
                { plano?.Itens?.map(item => (
                  <Text key={item} style={styles.item_texto}>- { item }</Text>
                ))}
              </View>
            </View>

            <View style={styles.plano_valores_wrapper}>
              {plano?.Valores?.map(vigencia => (
                <View key={vigencia?.PlanoVigenciaID} style={styles.valor_wrapper}>
                  <Text style={styles.vigencia}>{ vigencia?.VigenciaDescricao }</Text>
                  <Text style={styles.valor}>{ vigencia?.VigenciaValor }</Text>
                </View>
              ))}
            </View>

            <TouchableOpacity style={styles.botao} onPress={() => {}}>
              <Text style={styles.botao_texto}>
                Adquirir
              </Text>
            </TouchableOpacity>
          </View>
        ))}
      </ScrollView>
    </View>

Style

card: {
    marginRight: 15,
    width: 350,
    marginTop: 20,
    marginHorizontal: 15,
    backgroundColor: '#FFF',
    borderRadius: 10,
    shadowColor: '#000',
    shadowOffset: {
      width: 0,
      height: 2,
    },
    shadowOpacity: 0.25,
    shadowRadius: 3.84,

    elevation: 6,
    
    justifyContent: 'space-between',
  },
  plano_conteudos_wrapper: {
    width: '100%',
    borderBottomWidth: 1,
    borderBottomColor: '#a3a3a3'
  },
  nome_plano: {
    fontSize: 22,
    fontFamily: 'Medium',
    padding: 15,
    textTransform: 'uppercase',
  },
  items_wrapper: {
    marginHorizontal: 40,
    marginBottom: 20
  },
  item_texto: {
    fontSize: 18,
    fontFamily: 'Regular'
  },
  plano_valores_wrapper: {
    width: '80%',
    marginVertical: 10,
    alignItems: 'center',
    alignSelf: 'center'
  },
  valor_wrapper: {
    marginVertical: 10,
    width: '100%',
    flexDirection: 'row',
    alignItems: 'center',
    justifyContent: 'space-between',
    paddingBottom: 5,
    borderBottomWidth: 1,
    borderBottomColor: '#c4c4c4'
  },
  vigencia: {
    fontSize: 18,
    textTransform: 'uppercase'
  },
  valor: {
    fontSize: 18,
    color: 'green'
  },
  botao: {
    maxWidth: '80%',
    minWidth: '50%',
    padding: 10,
    backgroundColor: '#652468',
    borderRadius: 5,
    alignSelf: 'center',
    alignItems: 'center',
    justifyContent: 'center',
    marginTop: 10,
    marginBottom: 20
  },
  botao_texto: {
    fontSize: 18,
    textTransform: 'uppercase',
    color: '#FFF'
  }
});

Isso imprime o seguinte resultado:

Screenshot 1

Screenshot 2

Qual o problema? O tamanho da Scrollview está respeitando o tamanho do maior card, porém por algum motivo, todos os outros cards estão com um height de 100% da Scrollview sendo que não quero isso, quero que cada Card tenha um height “fit-content” para cada card ter seu próprio tamanho e ocupar somente o que precisa.

Como fazer isso?