Posts by sant0will • 1,233 points
47 posts
-
1
votes0
answers88
viewsQ: Difference in the number of event shoots between Android and iOS on Facebook SDK
I have Facebook SDK 7.0.0 installed in my application React Native 0.62.2 and although it is running equally, in Facebook manager Events, Android shots do not appear for certain standard events…
-
0
votes1
answer533
viewsA: React Native - text input does not lose focus
Your problem is recurring in React Native, it happens basically because the View can’t detect the onscreen touches. Alternatively, you can exchange your View master for a Scrollview configured to…
-
0
votes1
answer429
viewsA: React Native application performance built with Expo
The solution is for apps created with React-Native-cli and Expo Your question is really important! When the debug option is enabled in React-Native it can happen that the app gets a little slow…
-
0
votes1
answer256
viewsA: Bluetooth in emulator
Not possible with Genymotion and Android Studio! Genymotion does not have Bluetooth functionality in its desktop application, as shown in documentation. It is also not possible to emulate this…
-
0
votes2
answers2984
viewsA: How do View move when displaying keyboard (IOS and Android) in React-Native?
For this problem you should even use Keyboardavoidingview so that your message input view is visible with the keyboard open. Simply import the component: import { ... KeyboardAvoidingView, } from…
-
0
votes2
answers497
viewsA: Check Box is not unchecking when clicked again - React Native
First you are apparently using the Checkbox version of React-Native-Elements. Example: <CheckBox title="Titulo" checked={this.state.checked} onPress={() => this.setState({checked:…
-
0
votes1
answer485
viewsA: 400 Bad Resquest Error in React Native with Axios
To begin with, I would say that your code is messed up, in a way its functions are wrong since when clicking the button is called a function that will take the value of the input and then call the…
-
1
votes1
answer1583
viewsA: React Native: How to select the next Textinput after pressing the "next" button on the keyboard?
Just add a reference to the second input and focus it when the first input is "sent" through the property onSubmitEditing. Second input // Adicionar a referencia ao segundo input ref={(input) =>…
-
1
votes1
answer137
viewsA: I can’t load the image on the carousel
The solution to your problem is simple. Images without the width specification width and height height are not shown by React Native, that is, whenever the <Image/> we have to set your size.…
react-nativeanswered sant0will 1,233 -
0
votes1
answer565
viewsA: Error using React-Native-camera
Version 0.60 is very recent (07/03/2019) so there are many libraries available that are not yet updated the documentations. A new version back the auto link function of the libraries and support for…
-
2
votes1
answer89
viewsA: Difference between versions of the uuid Python package
According to the Python documentation if you want to create unique Ids you should probably use uuid1 or the uuid4 taking into account that the first option can compromise privacy by creating a UUID…
-
1
votes1
answer122
viewsA: Download Laravel dependencies via Composer in AWS EC2
The error that is actually returning in the console is the extension mbstring that is missing. To carry out the installation of a project laravel are needed some prerequisites on the server. In your…
-
1
votes1
answer1885
viewsA: Tkinter how to change color of text
Just add the parameter foreground in the creation of label which is used for bitmap text and Labels. Therefore you just change from: text1 = tk.Label(text='texto teste', background='black') To:…
-
2
votes1
answer111
viewsA: Slot recognition on the screen
Biblioteca-less iOS Safeareaview Applicable on devices with iOS above 11. Use of SafeAreaView if the phone has the notch it applies a layout adapted to the model. More information and how to use.…
react-nativeanswered sant0will 1,233 -
0
votes2
answers94
viewsA: How not to use onload on the body with this code?
You can use the property window onload. which performs a function as soon as all page content is loaded, getting as follows: <script> function startTime() { let dateString = new…
-
1
votes1
answer43
viewsA: How to identify the number that was drawn
It is simple, just receive in variables the random numbers before passing as index of the array. Instead of directly receiving random value as array index var nipeSorteado =…
-
1
votes1
answer766
viewsA: How to set up the android version in the React-Native app
It is possible to configure the minimum version of android that your application can be run by editing the build.Radle file, located in _pasta_do_app/android/build.gradle. We have to change the…
react-nativeanswered sant0will 1,233 -
0
votes3
answers4376
viewsA: Current date and time in time zone timestamp format
A possible solution to your problem is to use the method strftime() library datetime. The method formats date objects via input strings. There is a table with the specific formats to mount the…
-
1
votes1
answer990
viewsA: Laravel Combobox Autocomplete Select2 JS
Just remove the property tabindex="-1" of your modal div. Changing: <div id="modal" class="modal fade bd-example-modal-lg" tabindex="-1" role="dialog"> For: <div id="modal" class="modal…
-
1
votes2
answers43
viewsA: Remove gray squares from my Tkinter program (Python)
To the label that you added keep the full size is possible you use a property from the grid() calling for sticky that serves for you to "stick" your object(be it button, label and others) in the…
-
1
votes1
answer1516
viewsA: How to make dynamic chartjs chart with php
For you to feed Chart you need two information coming from your request and they must be mounted and two different arrays, one for the keys(names, bars) and one for the values. Once you receive the…
-
0
votes4
answers2332
viewsA: Print String vertically in Python
There are some ways to show a string vertical. To complement, it could be done very simply using a for, staying that way: print("-"*30) # Utilização com python versão 2.7 for x in str(input("Digite…
-
0
votes1
answer74
viewsA: Set colors in Google Geochart Laravel?
For testing was used the string(json) already with the values. The page will receive the string(json) of controller in the variable treated as $estados in the code. How do you get a json on the…
-
3
votes1
answer449
viewsA: matplotlib - Cut saved plot
When saving your chart just add one more parameter, called bbox_inches, its function savefig(). Altering: plt.savefig('C:\\caminho\\...\\ranking_members.png', dpi = 300) For:…
-
4
votes1
answer315
viewsA: Redirect unauthorized user Laravel
Inside your project on the way app/Http/Middleware there will be a file called Authenticate.php. In function redirectTo() you must change the return line of the function, with the route you want.…
-
3
votes1
answer67
viewsA: Activating event from checkbox
First of all you should call the function you created when there is change in the checkbox with the onchange="myFunction(this)". Second, with the this you pass the function parameter itself input…
javascriptanswered sant0will 1,233 -
4
votes2
answers179
viewsA: Why should we import Messagebox explicitly into Tkinter even if it matters with the asterisk?
Just like this reply from Soen, the import of from tkinter import messagebox is needed simply by the way the package is designed to work. The author of tkinter decided that importing "*" wouldn’t…
-
0
votes1
answer249
viewsA: Is there a command that shows how many commit was done on the branch ?
There is, I believe the command you want is as follows:: git rev-list --count <branch-name> rev-list list confirmation objects in reverse chronological order --count carries out the counting…
-
3
votes1
answer1531
viewsA: How to access an object in which the key is a number?
The answer to your problem is quite simple, just change the way you were doing: dados.1.TIPOPROCEDIMENTO For: dados['1']['TIPOPROCEDIMENTO'] See in practice: const dados = { "1": {…
-
2
votes3
answers1141
viewsA: Laravel - How to Page and Give Order By
To perform the search with the orderBy and the paginate just use the following syntax: ModeloVideo::orderBy('created_at', 'desc')->paginate(10); Just like this reply and that one in the Soen.…
-
2
votes3
answers5245
viewsA: Run a specific Migration on Laravel 5.6
After much research and head banging I came up with a solution to run one or several specific Migrations. First you need to create a temporary folder that will be used to run the Migrations you…
-
2
votes1
answer46
viewsA: How to make one class interfere with another with python
It will be necessary to identify that the variable c that you want to change is from the class A(). By using the way you did, you are changing the global variable created at the beginning of the…
-
2
votes3
answers5245
viewsQ: Run a specific Migration on Laravel 5.6
I’m in need of executing only one migration within my system laravel, not to affect the rest of it. Excerpt from the Migration: public function up() { Schema::create('notifications', function…
-
1
votes1
answer1164
viewsA: How to change the backgroundColor of a Tabnavigator in React-Native
You can use the property style within the tabBarOptions to set the backgroundColor to your tabBar, just as it shows the documentation of React-navigation. class TelaInicial extends Component {…
react-nativeanswered sant0will 1,233 -
1
votes2
answers859
viewsA: Undefined variable in Laravel 5.7
In your controller’s Edit function, change the variable name banners: $banners = Banner::findOrFail($id); To banner: $banner = Banner::findOrFail($id); Since the function compact used in its return…
-
4
votes3
answers241
viewsA: Remove elements from a Python Stop List
Using the enumerate it is possible to number a list making it easy to work with it. lista_8 = ['', '', 'Preco', '', 'Preco', '', '', 'Preco'] lista_n = ['positivo', 'positivo', 'negativo',…
-
1
votes1
answer3828
viewsA: How to move this.state from one screen to another screen with React Native
To pass data from one screen to another you can use the component React-Native-navigation achieving in a very simple way pass the values to the screen you want. Example of use for this case Using…
-
3
votes2
answers286
viewsA: Python: How to identify the root of the operating system?
Use the commands below: >>> import os >>> os.path.abspath(os.sep) '/' Results would be: Linux returns "/" Windows returns "C: " (or whatever the current disk is)…
-
2
votes1
answer972
viewsA: What is considered a failure in the Google Play Console
The word crash that you used is very relative, even because crash in English means failure. Anrs In the case of Anrs are those messages the user receives from App is not responding. An ANR will be…
-
1
votes1
answer79
viewsA: React-navigation v2 how to send Component by params
I believe what you need is: Component A this.props.navigation.navigate('ModalInput', { itemId: <Input />, }); Modalinput const params = this.props; const item = params.getParam('itemId',…
-
1
votes1
answer41
viewsA: Rails - Relationship BD
Try this way: belongs_to :user, optional: true
-
2
votes3
answers1982
viewsA: "for" with step "float": Typeerror: 'float' Object cannot be Interpreted as an integer
I’ve managed to do something that’s possibly what you need. from math import cos, radians for x in (x * 0.1 for x in range(0, 1000)): print(x) a = cos(radians(x)) print(a) Code would be something…
-
1
votes1
answer1251
viewsA: Convert PHP data to save to Mysql database
The PHP date function works as follows: string date ( string $format [, int $timestamp ] ) The format you can insert the way you need, using is TABLE , from the PHP documentation page. In your case…
-
0
votes1
answer40
viewsA: Capture Racket query return value
I was able to accomplish what I needed with the function Dict-ref passing the query and the identifier as parameters. Thus remaining: (define save_pergunta (lambda (tf_pergunta) (define…
-
1
votes1
answer40
viewsQ: Capture Racket query return value
Hello, I’m a beginner in Racket. I would like to capture the value Insert-id that returns in a flame struct simple-result of query which I execute. The return is as follows: (simple-result…
-
4
votes1
answer3152
viewsA: Error: The apk has Permissions that require a Privacy policy set for the app, e.g: android.permission.CAMERA
After performing application selection: Open the side menu has an option called Presence in the Lodge. Click on App Details. At the bottom of the App Details page you will find the location for…
-
1
votes2
answers651
viewsA: Laravel - How to configure project to open in XAMPP?
Check your Migration file if so: Schema::table('tabela1', function ($table) { // ... });´ To create new table should be used Schema::create Schema::create('tabela1', function ($table) { // ... });…