All Questions

1
answer

How to generate timestamp in milliseconds in PHP?

The time() function of PHP generates a UNIX timestamp in seconds, for example: echo time() // 1420996448 But I would like to generate a Unix timestamp also with milliseconds, how can I do this?     
asked on 11.01.2015 / 18:23
1
answer

About HREF and SRC, what are the differences in application?

As I've been reading, HREF is meant to point to something external (outside the page) that the user requests, or that the page containing it needs to use it (in the case of style sheets). That is, in the case of style sheets, when poin...
asked on 11.01.2015 / 02:50
1
answer

Pass values from a JSON to the html via Jquery

I'm trying to get the data from the JSON of the twitch and manipulate them in html, in case I wanted to put together a simple list with the online channels, using the alert it shows the channels but I thought to print the list in a ul, li withou...
asked on 06.01.2015 / 17:49
3
answers

Search MongoDB Array

I have these two documents in the mongo: /* 0 */ { "_id" : ObjectId("54f395ef7a5a5ea37af77398"), "HISTORICO" : [], "MOTIVO" : "", "RP_CANCELAMENTO" : "", "DATA_CANCELAMENTO" : null, "RP_FINALIZACAO" : "", "DATA_FINALIZACAO" : null, "STATUS_CH...
asked on 02.03.2015 / 00:53
2
answers

Does R have any similar commands to SAS IN?

Does R have some similar command to SAS IN? Here is an example in SAS code: IF variable1 IN (4,5,6,7) THEN variable2 = 1; That is, if variable1 assumes values from 4 to 7, variable2 is assigned a value of 1.     
asked on 12.01.2015 / 19:55
1
answer

How to send data from AngularJS to an ASP.NET MVC backend?

What would be the best and simplest alternative? I have the Web Api: using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using Generico.Dominio; using Generico.A...
asked on 04.01.2016 / 02:12
1
answer

Merge csv files into one

I have several csv data files that have a common column named "Data". If I read two files from this directory the reading is done correctly: > P1<-read.csv("02650019.csv", header = TRUE, sep = ";") > P2<-read.csv("02650032.csv", he...
asked on 30.01.2015 / 10:52
1
answer

Check if a div variant exists

I have several divs with the class prefix "webserver_ [..]" and I would like to check if any div with the prefix "webserver_ [..]" exists with jQuery only,     
asked on 11.01.2015 / 00:26
1
answer

How to see the value of a define or macro in gdb?

I have the following line of code: int a = MAX(b,c); How to check the definition of the MAX(b,c) macro? Sometimes the same macro is defined in several different ways in a code (for example, depending on the architecture). This would...
asked on 13.02.2015 / 15:27
3
answers

Prevent the system from crashing during a batch email

I'm developing a system that sends batch email to clients, but if the user who is operating the system clicks on any part of the window during the process, it appears that the system is not responding, interrupting the sending process . I wou...
asked on 21.01.2015 / 21:25