Posts by Daniel Santos • 1,217 points
24 posts
-
1
votes1
answer446
viewsA: What is HTTP/3? Will it replace HTTP/2?
Both HTTP 1.0 and 1.1 and HTTP/2 are high-level network protocols, which work on the lower-level TCP protocol. Imagine you’re talking to a person over the phone, HTTP would be the sounds you’re…
httpanswered Daniel Santos 1,217 -
9
votes3
answers2440
viewsA: Would the HTTP 418 "I’m a Teapot" response be valid?
The HTTP 418 code is part of a specification (RFC), which was published as a joke on April 1st (source). According to the specification, this code is valid if you have asked a coffee maker to make…
http-statusanswered Daniel Santos 1,217 -
0
votes1
answer285
viewsA: Webservice Registering dll
The Createcomobject(GUID: TGUID) function creates a new instance of a COM object. Before creating the instance, it needs to do the following: Load the . dll that contains the class that implements…
-
2
votes1
answer52
viewsA: Transfer value from one input to another
Just copy the value in the On Key Up event from the source Input: function transferirValor() { jQuery('#inputDestino').val(jQuery('#inputOrigem').val()); } <script…
-
1
votes2
answers97
viewsA: How to see the implementation of the Typescript code?
If the library (lib) you are using was written in Typescript, you can read its source code the same way you would with Java: accessing the repository of that library (if it is open-source or if you…
-
1
votes2
answers248
viewsA: Visual Studio - Managing Locally Registered Dll Publication of Homologation and Production Environment
In some cases, when you add a reference to a native code-compiled COM Dll (in the case of Itaucripto.dll), Visual Studio generates an intermediate Dll to speed up communication between your program…
-
0
votes1
answer133
viewsA: How to declare an image in the ASP.NET Core Model Class?
Just create a byte array type property: public byte[] Imagem { get; set; } However, this way, every time you upload a Person, the image will be loaded together, leaving the system heavier. It is…
-
0
votes3
answers1024
viewsA: Handling of sql temporary tables in Delphi
After filling in the parameters, but before consulting the data, you have to call the Execsql method for the system to run the INSERT in the database: // preenche os parâmetros…
-
7
votes2
answers116
viewsA: What happens when we assign the default value to objects?
Your variable points to the default value of object type variables (null). Default exists for 2 reasons: To make your intention easier to understand for those reading your code. So you don’t have to…
-
2
votes2
answers384
viewsA: Code Review at compilation time
You can use a static code analysis tool such as Pascal Expert/Pascal Analyzer of Peganza or the Fixinsight from TMS for example, to review your code before committing. These tools can also be…
-
2
votes1
answer349
viewsA: How Popular a Listview, and her Popular another Listview by Primary Key?
You can do a second search using the first search codes: using (DataClassesDataContext oDB = DataClassesDataContext()) { var busca = from p in oDB.DataBases_1 where…
-
1
votes1
answer147
viewsA: Make unhook after hookado
Try to make a memory backup before replacing the original call: //faz o backup ReadProcessMemory(INVALID_HANDLE_VALUE, CPA, @backup, sizeof(far_jmp), bytesBackup); //substitui a chamada(faz o hook)…
delphianswered Daniel Santos 1,217 -
2
votes1
answer70
viewsA: How to "truncate" table to restart from the smallest auto increment value
First we remove the records using DELETE FROM tabela WHERE id >= 30 Then we reset the auto increment counter using declare @ultimoID int SELECT @ultimoID = Coalesce(MAX(Id), 0) FROM tabela DBCC…
-
0
votes1
answer55
viewsA: ado.net version of iis
This Microsoft page contains several ways to check the . Net Framework version: How to determine which. NET Framework versions are installed For version 4.0 or later of . Net Framework suggests…
-
3
votes1
answer66
viewsA: What is the name of the resource/term that expands a code snippet between keys?
The name derives from the name of the feature that closes the code, but the name of this feature varies from IDE to IDE. Some names I’ve seen are: Code Unfold, when derived from Code Folding. Code…
ideanswered Daniel Santos 1,217 -
2
votes1
answer275
viewsA: Parameter-based query in SQL Server
You can do it this way: Select cod_pedido as PEDIDO, descricao as DESCRICAO From pedido Where @COD_PEDIDO is Null OR cod_pedido = @COD_PEDIDO If the parameter is null the condition will be true for…
-
2
votes5
answers1656
viewsA: Create objects within a list without for/foreach C#
In addition to the other responses, it is also possible to do using recursion: private List<Compra> CriarLista(int numComprasParaGerar) { var lstCompras = new List<Compra>();…
-
5
votes4
answers1247
viewsA: Function within another
You can declare functions within a method using lambda expressions: Func<int, string> convertIntParaString = (num1) => num1.ToString(); Action<string, int> doisParamsSemRetorno =…
-
22
votes2
answers1301
viewsA: How does the G1 (Garbage First Collector) work?
Classic garbage collectors (Garbage Collector) work more or less as follows: They paralyze the application execution; They scan all application memory, to identify which objects can no longer be…
-
1
votes1
answer525
viewsA: How to determine if a point of a swing component is visible on the screen?
I don’t know any solution using only Java, but I know that it is possible to do this using the Windows API, and I believe it is also possible to do this in several other toolkits (GTK+, Qt, KDE,…
-
2
votes2
answers177
viewsA: Should I take any action regarding Heartbleed?
The only action required is to test your (s) application(s) with the corrected version of the Openssl library to ensure that they work, so that webmasters and server administrators have no problems…
-
0
votes2
answers1259
viewsA: How to search within an SVN repository for a change in a file type?
Using the SVN Tortoise right click on the folder of your project and select the show log option, in the log window type .js in the search field above, select the show range option from the show…
svnanswered Daniel Santos 1,217 -
3
votes1
answer304
viewsA: Why does keybd_event not work in some contexts?
First you should only use the 0x0001 flag (KEYEVENTF_EXTENDEDKEY) when you want to specify that the pressed key was that of the numeric keyboard. Second there are two ways an application receives…
-
2
votes3
answers2241
viewsA: How to control tuition and access to the application?
To do this control it is necessary that you query the status of the boletos (whether it was paid or not, late, etc...) in the system of the bank, this query is done via text files exchange with the…
phpanswered Daniel Santos 1,217