All Questions

3
answers

Problem with click on input

I'm developing a hybrid application for mobile, using HTML5 and JS. I have the following problem: when I click, for example, in Nickname, it opens the Sex part. However, it is very strange behavior, it only happens when it is the first time the...
asked on 15.10.2015 / 14:47
2
answers

Reference loss in function call

Scenery: class ClassName { constructor(service, params) { this.service = service; this.params = params; this.save(params.id); } save(id) { const { service, onSuccess, onError } = this; re...
asked on 18.01.2017 / 14:08
2
answers

Make decorator override of Python mock

I have a class TestCase where all the tests, except one, need to do the same patch of an object. I'm using Python Mock , and I did the following: @mock.patch('metodo_alvo', mock.Mock(return_value=1)) class Tests(TestCase): @mock.p...
asked on 08.01.2014 / 23:19
2
answers

How to analyze malformed HTML syntactically?

As part of a procedure, I need to extract the contents of a table present on a page. I'm using cURL to get the raw HTML data and the Simple HTML DOM Parser to parse and render HTML. <?php // (...) require_once('simple_html_dom.php'); //...
asked on 29.01.2015 / 17:57
1
answer

How to use FreeTDS with MAMP on Mac OS?

I need to use the PHP mssql methods and I always did this using FreeTDS in the native Apache MAC OS >. What happens is that shortly after upgrading to OS X 10.9 (Mavericks) I started to use the MAMP package and not the native Apache...
asked on 17.12.2013 / 14:17
2
answers

Radio Stream with Phonegap

I'm developing an app and I have the function below and it's perfect for an online radio, I'd like to add others but I'm not sure how. Follow the function: // Radio Controller var radio = null; var isPlaying = false; app.controller('radioC...
asked on 10.07.2015 / 14:03
2
answers

How to do a regressive counter with javascript?

Hello folks I do not understand pretty much anything from Javascript, so for weeks I was trying to make a script that would do the following: 00:00:00 1st started a countdown of 20 minutes after clicking on...
asked on 17.05.2016 / 18:59
1
answer

Why does PHP allow you to create identifier names with special characters?

Normally in programming languages and databases, identifier names (variables, functions, classes, methods, tables, fields, etc.) must begin with a letter or underline , numbers can come in sequence and to avoid problems accented and special cha...
asked on 28.10.2014 / 21:30
1
answer

How to bring the total of each column in the FooterRow of a jqGrid?

I'm using the jqGrid (4.6.0) property with jQuery (1.11.0) , but I was only able to generate the total per column and not That's what I want, I'd like the grand total. The jqGrid contains the grouping property that contains the grou...
asked on 11.03.2014 / 19:37
1
answer

How to concatenate a SQL statement inside a MySQL Stored Procedure?

In the following example, we have an example already running in PHP. The scenario of the issue is the setting up of a "navigation link" based on a data structure. $node = '006002009'; // Esta informação é obtida dinamicamente. $segmentos = s...
asked on 16.03.2015 / 03:19