Posts by joao paulo santos almeida • 486 points
31 posts
-
3
votes1
answer221
viewsQ: Scrapy cannot select a form using xpath
Hello, I am using the scrapy to make a Crawler to get to pick up questions of concuros and etc from the site gabarite.com.br, I can get the description of the question the correct alternative, but I…
-
0
votes1
answer143
viewsQ: Android & Firebase Async tasks
I have a class Java that I overwrote the method toString() within this method before returning I consult firebase and fill an object. My problem is the following return of toString() ends up being…
-
1
votes2
answers57
viewsQ: How to make a select that returns the expected result
Hello, I have 3 tables in Mysql Categorias,VideoContemCategoria and Videos I’m trying to make a select where I return all categories and together with each category return the last video that was…
-
2
votes1
answer59
viewsQ: Angular ui router plus PHP
Currently I have an array in php that I convert to JSON using json_encode json and generated smoothly. $array = array('a' => 'Olá mundo', 'b' => 'Olá Marte'); $array = json_encode(array);…
-
1
votes0
answers73
viewsQ: Sheetjs problem while keeping spreadsheet formulas while saving
The library sheet js. allows the creation and editing of spreadsheets of the type xlsx d Open office. Currently I have a spreadsheet that contains 3 pages as shown in the figure below. The page…
-
0
votes1
answer326
viewsA: Underscore JS, Group object array by more than 1 attribute contained in an object
The solution consists of the time to group create a comparison combination in my case needed to idProduto and of timeStamp var groups = _.groupBy(relatorioData.leituras, function(value){ //Aqui digo…
-
0
votes1
answer326
viewsQ: Underscore JS, Group object array by more than 1 attribute contained in an object
Hello I currently have an object of arrays that contains the following structure { "ID_Local_leitura": "2134236478dysa743242579f", "idO": "11342s36478dysa743242579", "timeStamp":…
-
2
votes4
answers7208
viewsQ: How to group an object array in javascript (Angular)
How to read an array of objects and returns only objects that contain the same value in several attributes? I made this object array as an example. var arrayDeObjetos = [ {"dia":1 ,…
-
2
votes1
answer75
viewsA: IONIC error dependences not found
The solution to this problem was in Android SDK Manager missing install the Android Support Repository after installed when using command ionic build android or the command ionic android run…
-
2
votes1
answer75
viewsQ: IONIC error dependences not found
Hello I’m having error in IONIC when using commands to compile for android. Make that mistake every time I try one of those commands on ionic run android --target meuDispositivo ionic build android…
-
0
votes1
answer147
viewsA: Javascript JSON.parse(jsonEmText) works on Linux but not on Windows. How to resolve?
Good for anyone with this problem the solution is to use the function eval of Avascript, good basically as the JSON that I am going through and very long in some cases the JSON.parse() may not work…
-
1
votes1
answer147
viewsQ: Javascript JSON.parse(jsonEmText) works on Linux but not on Windows. How to resolve?
Hello, everyone. I have an HTML page that uses Angularjs to display a JSON that is passed by using the encodeURI(). On Linux I can pass this JSON without problems, but when the same page function is…
-
4
votes1
answer451
viewsQ: How to adjust text around a 'div/image'?
I’m having trouble adjusting a text in a div who owns another div inside it, which sits at the top left. Below is an image that explains better what I am wanting to do, I hope you can help me. Thank…
-
2
votes5
answers7505
viewsQ: How to make the font size automatically fit the size of a div
Hi, I have a div of 300px for 300px, on it I leave a text that comes from a database, the problem is that there are times when the text inside the div exceeds the size of the same, leaving…
-
0
votes1
answer82
viewsA: Autocomplete with text from div
The Simplest Way to Do What You Need and Using Angular JS, Look For More About This Javascript Framework Browser. I leave an example below of how to do the function you need. <!DOCTYPE html>…
javascriptanswered joao paulo santos almeida 486 -
2
votes1
answer374
viewsA: How to order a table using Collections?
Here’s a small example of how you use Collection to sort. I hope from this you can solve your problem. List<SEUOBJETO> lista = new ArrayList<SEUOBJETO>(); Comparator<SEUOBJETO>…
-
0
votes1
answer34
viewsA: Vector gets values wrong way
Well, the solution was to use the function $watch angular. basically I did. $scope.$watch('vetorPrincipal['+cont+']', function() { // alert(JSON.stringify(likkkk)); console.log(cont); //…
-
0
votes1
answer34
viewsQ: Vector gets values wrong way
Hello, I’m using angular and pouchdb to insert value into an array. but currently with the code below when using the command console.log(vetorPrincipal); he returns like this The right thing would…
-
0
votes2
answers323
viewsA: Variable loses value after leaving Promisse
promisse is executed after the rest of the code, so the value returns Undefined. my solution was //Varivel que armazenda dados var salvaAqui; db.get('mydoc').then(function (doc) { salvaAqui = doc;…
-
1
votes2
answers323
viewsQ: Variable loses value after leaving Promisse
Hello, I’m having the following problem, I have a variable that should store the data coming from a promisse, so that this data can be used in other functions, But for some reason the variable keeps…
-
2
votes2
answers57
viewsQ: How to display the sum of an X value where you have the same name?
Hello, let’s assume I have an object that has the following values var json = [ {"nome":"Coisa A", qtd:2}, {"nome":"Coisa A", qtd:3}, {"nome":"Coisa B", qtd:5}, {"nome":"Coisa B", qtd:7} ] Well, I…
-
1
votes3
answers912
viewsQ: Angular Scope with apply no ng-init
Hello, I have the following problem, I have this function that receives data from an internal database and stores the information on $scope.dados, I can show the values of $scope.dados usually on…
angularjsasked joao paulo santos almeida 486 -
-1
votes1
answer89
viewsQ: Prevent object from replacing others in Arraylist
I have two loops that have the function of replacing texts with other values. The problem starts when I have an object added to a ArrayList, in the case the object clone. The addition is in the…
-
0
votes1
answer674
viewsA: How to add duplicate values of an object arrayList and keep only 1 of each duplicated object?
I create a new arrayList called novositems, I take the original formulas arrayList "this.tabela.getItem" and compare it to the formulas generated using the name as comparator. After done I save the…
-
1
votes1
answer70
viewsA: Array, delete value
I don’t know much about Assembly but it can be done like this: str1 Array 1,2,4,7,67,99,100,323,421,10 start: call Deletar call Crlf call Crlf call esperarMsg Deletar Proc mov esi, offset str1 mov…
-
0
votes1
answer674
viewsQ: How to add duplicate values of an object arrayList and keep only 1 of each duplicated object?
Hello I have the following problem and I’m having a lot of difficulty in solving it. I have a code that applies a mathematical formula. This formula ends up being applied several times. each time it…
-
2
votes1
answer3763
viewsQ: How to remove Duplicate Objects in an Arraylist?
Hello I have an arrayList of objects. however these objects end up repeating themselves, so I wanted a naneira to remove duplicates. I’ve tried using Hasset, but it doesn’t seem to work with…
-
0
votes1
answer401
viewsA: How to join two Arrays?
List tempA = new ArrayList(); for(Object l: lista){ String[] arrayA = new String[2]; String[] ArrayB = (String[]) l; int cont = 0; for(Object l2: lista){ String[] tw = (String[]) l2;…
-
0
votes1
answer401
viewsQ: How to join two Arrays?
Hello, I have the following problem I have an Arraylist that returns several small arrays of two positions String[] temp = new String[2]; and has the saved arrayList adds several "temp"; ArrayList…
-
3
votes1
answer293
viewsQ: "Too Many Connections" Java + Msql
Hello, I have following problem, I have a function that searches the database and returns an object. I have a "for" function that calls this method almost 300 times, due to this amount of calls…
-
1
votes0
answers33
viewsQ: How to make a formula that is saved in string be calculated?
The user can enter a formula in a String type String formula = (100+20+10)/50*1; What I need to do is take this formula and do the calculated code to issue a result. I thought to do with conditions…
javaasked joao paulo santos almeida 486