Posts by J. Pedro A. • 381 points
20 posts
-
1
votes2
answers1147
viewsA: Color scale adjustment on R
Use ..count.. as parameter for function Fill attribute ggplot(), as the example below: ggplot(df) + geom_bar(aes(year,fill=..count..)) Source: https://stackoverflow.com/a/36827261/10328310…
-
0
votes1
answer52
viewsA: Kilometer
A simple solution would be to capture the user’s location every minute and check the distance traveled using the Android Location class, as shown in the code below. Location localizacaoA = new…
androidanswered J. Pedro A. 381 -
1
votes1
answer100
viewsA: How to implement an inputText for "Tags" or "keywords" in Android Studio?
One option is Materialchipsinput Documentation: https://android-arsenal.com/details/1/5584…
-
1
votes1
answer742
viewsA: What is the difference between defining a model as an interface or as a class in IONIC?
In the link below there is a more in-depth tutorial on the issue. https://showmethecode.com.br/typescript-classes-vs-interfaces/ But briefly, if you want a model that has only attributes and no…
-
0
votes3
answers70
viewsA: Error Code: 401() when sending FCM notification using a server
SOURCE: Translated from https://stackoverflow.com/a/14004418/10328310 You should take a look at the GCM documents where explains the GCM response:…
-
0
votes1
answer60
viewsA: Swap UTF8 enconding to SQL_ASCII Pgadmin
To change the encoding of your database: Create a new database with different encoding and name ex: new bank (ISO-8859-1) Create a dump from your current database Restore the dump to the new bank,…
-
0
votes2
answers72
viewsA: Clear Cell Content (A2) if the value of another cell(A1) is equal to a specific text
A simple solution would be to use an auxiliary column with a function IF and would serve for some kind of calculation.…
-
1
votes1
answer298
viewsA: How does it work to put dynamic content by making an Android app natively?
Making a small modification to your component, the data from the Flatlist, can become dynamic. Setting a variable in state of the component, it is possible to reference it in the method surrender(),…
-
1
votes1
answer199
viewsA: Touch/click and drag effect
There’s a very simple library that can help you with that, which is dragscroll. Just import into your HTML file. <script…
-
2
votes1
answer300
viewsA: ORA-00907: right parenthesis not found - Help
Make a small change in this section Fornecedor foreign key Fornecedor REFERENCES (codfornecedor)Fornecedor Change to that FornecedorID int FOREIGN KEY REFERENCES Fornecedor(codfornecedor) Supplier…
-
1
votes2
answers824
viewsA: Read a csv file and add your data into a dictionary
As the structure of the CSV has not been informed, I will assume that it is structured like this: Reading a file is always incremental, when csv.Reader() is called, the return is an iterator and not…
-
0
votes2
answers1020
viewsA: I can’t use Android Studio (Gradle Project Sync failed. Basic Functionality ... )
Go to your project folder, right-click access Estates and on the tab Security, check permission and allow all permissions.
-
0
votes1
answer544
viewsA: Simple Chained List
It is necessary to change the function condition removeFim, case next for null, then it is the last element, so it has to be removed void removeFim(Node anterior, Node atual) { if (atual.proximo ==…
-
1
votes1
answer396
viewsA: Simple search FIREBASE
As you can see best in this link (documentation), to work with the data returned by firebase it is necessary to use the function .on(), which receives an event and a function, which will be executed…
-
1
votes1
answer92
viewsA: Why doesn’t it work?
Apparently the file Gamesettings.json is not in the same file folder .Rb. Try to pass the full path to the file, as in the example: _ jogo (pasta) _ config (pasta) GameSettings.json (arquivo)…
-
1
votes1
answer406
viewsA: Django Forms.Checkboxselectmultiple emits: Select a Valid Choice. [''] is not one of the available Choices
What you can do is change the field Question class Student for Arrayfield. And in class Studentform change the field Question for Forms.Multiplechoicefield. So you can save all the options entered…
-
0
votes2
answers389
viewsA: Python, matrices/vectors and dictionaries
With the number drawn, present in the second row of the matrix numero_sorteado = 90 # Exemplo You will find the index of that number in the line in which it is present index_numero_sorteado =…
pythonanswered J. Pedro A. 381 -
1
votes2
answers45
viewsA: How to use data from another site via LINK/ID
It is possible yes, using PHP Simple HTML DOM Parser, a very simple example would be this: // Recuperando HTML da página com base na URL $html = file_get_html('http://www.google.com/'); // Buscando…
-
1
votes1
answer17
viewsA: How to recover values from an ngdialog?
First it is interesting not to pass the template by string, it makes it difficult to maintain and visualize the code, a more interesting example would be this: <script type="text/ng-template"…
angularjsanswered J. Pedro A. 381 -
0
votes2
answers104
viewsA: JSON Dynamic and Popular Datatable
Instead of creating a string and then turning it into arrray, create an array and add the items. var dataSet = []; for (var i = 0; i < dados.length - 1; i++){ var p = String(i+1); var d =…
jsonanswered J. Pedro A. 381