All Questions

1
answer

can not multiply sequence by non-int of type 'float'

   Error: can not multiply sequence by non-int of type 'float' I'm facing this error, I know it involves variable types, but I do not know how to make Entry get a value of type float #TRANSOFORMAÇÃO DE COORDENADAS GEODÉSICAS EM COORDENADAS...
asked on 11.01.2017 / 02:14
2
answers

How to return null if no result found with find_by?

I'm getting a return as array ( [] ) from a scope with find_by and I want the return to be empty ( null ). Here are some snippets of the code: class Dispute::Conference < ApplicationRecord ... belongs_to :dispute,...
asked on 25.01.2017 / 12:03
2
answers

Android Studio - No accent appears

Hello, I have a very strange error in Android Studio, suddenly it stopped accepting the accentuations in the string and comments, when I try to type for example "a" it only shows "a". I've tried everything in File Encoding and nothing. can anybod...
asked on 12.01.2017 / 15:06
1
answer

How to capture only the first part of a text that fits the regex?

<END>Av. Dr. Walter Belian, nº 2.230, Distrito Industrial, João Pessoa-PB, com CNPJ nº 07.526.557/0013-43 e Inscrição Estadual nº 16.218.7157; (NR) II - Sergipe, localizada na Rodovia BR-101, s/nº, km 133, Distrito Industrial, Estância-SE,...
asked on 22.01.2017 / 03:06
1
answer

Know the name of the object in JSON

I have a JSON and I need to know the name of my object and the values it has, for example: {"Pessoas" : [ {"Nome": "Welson Play", "Idade":19}, {"Nome": "Stephanie", "Idade":15}, {"Nome": "João P...
asked on 08.07.2015 / 13:11
1
answer

Export array inside a table?

I need to export data from an array inside an html table, the function is working but I do not know how to export with while inside a table, I made an analogy with the code below. function imprimir_Tbl($Id, $Nome){ $array = array(); for($i=0;...
asked on 10.01.2017 / 13:48
1
answer

How to group items in a list with a condition?

I have a list with a property called tamanho which can contain two values: "M" or "I". I need this list to be random, but with a grouping condition. "M" would be half page and "I" would be whole. That is, I need to always have 1 int...
asked on 28.07.2015 / 19:20
1
answer

Java Dictionary API

Hello, I'm looking for an API, from a dictionary, in Java to create the program in the following steps: User enters a string, in this case a word; Print on the screen invoking a method of this API; Which will return a sentence, with the...
asked on 25.07.2015 / 17:44
1
answer

Check for visible items inside a div

How to check if there is any visible element or vice versa within a <div> ? I can get around with jQuery and tried using el.is(':visible') but I could not because I need to check if everyone inside <div> is hid...
asked on 06.07.2015 / 03:48
2
answers

How to log in to FaceBook using an active session cookie in the DOM?

I'm studying security on web applications. For educational purposes, I logged into my facebook page and copied my active session cookie from document.cookie , then opened another browser, logged on to the facebook homepage (unlogged) an...
asked on 28.06.2015 / 07:08