All Questions

1
answer

Problems with PHP regular expressions?

I'm picking up a .txt file and removing the letters and lines in white. Tá giving problem with the special character \t or \s it does not recognize. The code below: <?php function pass1() { $treat = fopen ("C:\U...
asked on 13.02.2017 / 19:03
1
answer

Is there any difference in using the Read () method of the SqlDataReader object?

I'm running the code snippet below, however, I was unsure about the Read() method of the SqlDataReader object. using (SqlDataReader reader = cmd.ExecuteReader()) { if (reader.HasRows) { if (reader.Read()) {...
asked on 08.02.2017 / 18:30
1
answer

Change cell color according to result?

I am a beginner in this universe, and I am caught up in my development in a simple function that I can not understand. This code below gets a value from the database, and I would like the background cell to change by value, for example if the fi...
asked on 16.01.2017 / 23:16
1
answer

Specialize only one class template method

I have 2 basic types of classes, ClasseA and ClasseB . ClassA has a method that generates an integer, and ClassB has a method that generates a ClassA. I would like the method of a ClassC , if the template is a ClassA (or daughters) return...
asked on 07.11.2016 / 14:05
1
answer

"Output" with special characters

I'm using the GCC version 5.3 compiler for the following program, written in Aptana: #include <stdio.h> void main(void) { int positivo = 32767; int negativo = -32768; printf("%d +1 é %d\n", positivo, positivo+1); printf...
asked on 05.12.2016 / 23:51
1
answer

time datetime.datetime.now ()

I'm doing a script where I measure the performance of a query in a database. The code is as follows: start = datetime.datetime.now() //CONSULTA AQUI end = datetime.datetime.now() print "Time taken: %s"%(end - start, ) The program returne...
asked on 12.01.2017 / 18:17
1
answer

Run a Laravel Schedule every minute?

I'm using Laravel 5.3 and would like to run a task every minute, within the task I'll put some checks, the question is to make it run every minute. I did the following in App \ Kernel: protected function schedule(Schedule $schedule...
asked on 23.11.2016 / 18:07
1
answer

How to get a JSON, from a URL?

I'm still studying AndroidStudio and it's time to get data by URL, in json format,    To do this I created an example page:   ( link ),       with the following content:   {"content": "hello world"} THEN I took the example here...
asked on 27.01.2017 / 02:02
1
answer

How to change chart when changing date

First of all I apologize for my ignorance of some concepts, I am new to the area. I recently started in a company where I have the following problem: I have Datepicker and when I select a date, I need the chart to change by the date se...
asked on 07.11.2016 / 16:58
1
answer

How to use parse () method in javascript?

I have the following implementation: minhaDataRetornada = "Dez 20, 2016"; minhaDataTratada = Date.parse(minhaDataRetornada); console.log(minhaDataTratada); Running the above code, my return is: NaN. If I change the word D...
asked on 20.12.2016 / 17:25