All Questions

2
answers

Open ID Connect and OAuth 2

Last year searching a bit about authentication in API's REST I heard about OAuth and saw many recommendations regarding it. I read a bit about it, I liked it and I started to use it with ASP.NET Web API 2 . Now I've only r...
asked on 06.06.2015 / 22:12
1
answer

How to map a TIME-type column in Entity Framework 6?

I'm using this mapping for a DATETIME field of SQL Server: Property(X => X.DatNascimento).HasColumnName("DAT_NASCIMENTO").HasColumnType("datetime"); But I have another TIME field that I do not know how to configure: Property(X => X....
asked on 05.06.2015 / 15:45
1
answer

What are the advantages of using namespaces in Delphi?

From the 2009 release of Delphi (if I'm not mistaken) came the namespaces . I would like to know, in a simple example if possible that illustrates a case of advantage, what would be the advantages of namespaces in Delphi? Accou...
asked on 03.06.2015 / 15:02
1
answer

Explode in PHP returns Undefined offset: 1

function extrai($string) { $peca1 = explode('id="', $string); $peca2 = explode('">', $peca1[1]); return $peca2[0]; } The string is this: < ul class="artigo" id="artigo1"> < li> < p>Art. 1º Salvo dispo...
asked on 29.04.2015 / 05:43
1
answer

KEK (Key Encryption Key) what is it and how to use it correctly

I was reading "Cryptography and Security: The official guide to RSA" but I was limited to a few pages (if anyone has the PDF of this please share !!) and then I came across KEK and could not read more .. What is it and how do you use it corre...
asked on 06.05.2015 / 00:50
2
answers

AND operator in regex

I have the following date / time format: 25/01 / 2017a1111: 53: 37 And the following regex:    REGX_DATAHORA_DISTRIBUICAO = "(?<data>\d{1,2}\/\d{1,2}\/\d{4})|(?<hora>\d{1,2}:\d{1,2}:\d{1,2})" private OffsetDa...
asked on 09.10.2017 / 15:30
1
answer

Entity Framework Update Database

When I run the command Update-Database I get the following error    Could not load file or assembly 'Microsoft.Build.Framework,   Version = 15.1.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a 'or   one of its dependencies....
asked on 14.12.2017 / 12:03
2
answers

How to access the version of an .exe file with PHP?

I need to access the property called "version" in my file, and I know this is not possible in Javascript, but I do not know which language to use, or what to do to get to it. I thought about using PHP, but I do not have much knowledge in this ar...
asked on 19.09.2017 / 21:57
1
answer

Date Conversion

I have a date in this format "2017-10-13T18:15:41.143Z" And would like a date in this format 10/06/2017 01:42:34 PM (-0300) How can I do the conversion?     
asked on 13.10.2017 / 20:20
1
answer

How do sessions work at HTTP level?

I came across this question recently and did not find much about it in web . I'm used to working (and reading) about session in PHP , but I never stopped to think how they would be at HTTP level, someone would you know something about?...
asked on 20.11.2017 / 13:07