Posts by Intruso • 1,625 points
45 posts
-
5
votes1
answer106
viewsQ: Is an executable in imperative programming language smaller than an executable in object-oriented language?
Well, that is, usually object-oriented programs have several calls to small methods for passing messages, encapsulation is also a common consequence of the model, not to mention polymorphism and…
-
1
votes3
answers2862
viewsA: Changing data from a List<>
Um, simple question, but let’s try to make it fun :D A generic list is usually used to control a group of elements where we do not know the possible amount of these elements and so we have no way to…
-
0
votes2
answers118
viewsA: manipulation of some struct
The problem must be in another area of the code, apparently, you seem to be correctly defining the attribute. So I suppose your problem is something else, but to answer the question, just use the…
-
0
votes5
answers1530
viewsA: Do programs written in C# depend on the . NET Framework to run?
"Programs written in C# depend on the . NET Framework to run?" The question is half open, but generally speaking and using the standard architecture, Yes. To run the applications done in c#, you…
-
2
votes1
answer192
viewsA: Is it bad practice to do a lot of things inside a builder? Why?
"It’s bad to do a lot of things inside builders?" If too much is fast, no, define quick as a requirement of your application and the response time that is satisfactory for the object in question.…
-
0
votes1
answer588
viewsQ: Extract attributes from an XML in a SOAP message
I am building a Webservice that returns status of an object, so I get the data of the object to search in the base via SOAP message: <soapenv:Envelope…
-
3
votes4
answers4228
viewsA: How to perform query with some null values?
Just use UNION: UNION is used to combine the result from Multiple SELECT statements into a single result set. Taken from the Manual (link) This command combines two resultsets into one, but does not…
-
5
votes1
answer380
viewsA: Connectionstrings: Write to app.config or windows registry?
The fewer setup points you have, the less complex your code will be and the easier it will be to install and maintain the application. So you’ll probably have more stuff than the connection string…
-
2
votes1
answer515
viewsQ: Maintenance routine for cleaning log tables (sysssislog and sysdtslog90)
I have a SQL SERVER 2014 standard database and during the monitoring of the database, I realized that I have some SQL tables that are a little large and went to search about. The tables are…
-
2
votes3
answers223
views -
0
votes1
answer88
viewsA: Return from a Windowsservices via an ASP.NET application
Use the database to save the status of executions, it will serve not only to show the user what is happening, but also the execution history. Create a Table (something like Processoexecucaostatus)…
-
4
votes2
answers763
viewsA: Trigger in Mysql VS logic in PHP application?
In general, spreading business logic in different layers of the application is avoided. Imagine that other people will maintain the code, what will happen? The new programmer will have to roll a…
-
1
votes1
answer167
viewsA: How to get the "Base Address" of the main module of another process
Try this: Process[] processes = Process.GetProcessesByName("meuPrograma"); Process mProc = processes[0]; IntPtr hProc = mProc.Handle; int base_adr =…
-
0
votes2
answers57
viewsA: Create dynamic structures based on a text file
Yes, it is possible. You read the file char to memory and then cast it normally. The file is basically another type of memory.
-
3
votes2
answers1128
viewsA: What does an abstract class type variable mean?
A basic concept in object orientation is inheritance. Good parts of the project patterns are implemented based on these concepts, where one class is the basis for implementing other classes or even…
-
5
votes2
answers6768
viewsA: What is, and how it works, a Etag
In etag is basically an identifier for a response to a content negotiation. If the content varies, the Etag varies, not necessarily the address of the requested resource varies. When you make a…
-
3
votes1
answer420
viewsA: Multi Thread Socket Server and its Clients talking to each other
Good, you should think about the level of communication protocol and what data you really need to display on the screen and when you will receive data and this varies from the type of game. For…
-
4
votes2
answers161
viewsA: Protecting data in memory
As has already been said, a question about security is rarely simple. However, if you need to have the data in memory without it being visible, do not use any temporary/fixed variables for storage…
-
0
votes1
answer856
viewsA: Help with C Text Editor
Your problem lies in considering the visual representation of the text (file) part of the editing functions, thus having to manipulate the screen during actions that are not part of the editing…
-
7
votes1
answer756
viewsA: Denial of service with stress test
There are several concepts there and involve broad topics that do not have a very clear or common set of definitions. But, let’s try to elucidate the real problem that seems to me more of…
-
2
votes1
answer1168
viewsA: Lock keyboard and mouse in C#, but keeping the execution of a method
Separate the execution thread of the screen (from the form) from the execution thread of your method. The application hangs and looks as if it is not responding because by default the form thread is…
-
0
votes2
answers2566
viewsA: Redirect Internal/external ip page
Use DNS to solve the problem. The name-solving service in addition to providing a friendly name for the application (Ex.: http://meuapp.empresa.com.br) will solve the routing problem by providing…
-
1
votes0
answers95
viewsQ: See which user created or changed a Linked server
Sirs, How to audit the creation or modification of Linked Servers in SQL Server 2008 or higher? (See who created or changed a Linked server).
-
13
votes3
answers2023
viewsA: Is there a nomenclature standard for enums?
Yes, there are various patterns of nomenclature, in my view are still a choice of style. I particularly program more in c# and there is a great guide to standardize that I follow.…
-
6
votes1
answer118
viewsA: A strange case in the management of a project. What position to take?
In my view, there are simple and complicated answers, because the thing ta kinda subjective there. But, I will try to be objective. 1 - What you want in life, remains what you want independent of a…
-
1
votes2
answers188
viewsA: c# query with cycles
First, your question is not with C#, it is in the SQL database query language, as you are using SQL Server, T-SQL. The commands you mount in C# are only actions to access the database, execute a…
-
0
votes2
answers320
viewsA: Installation of Namespace
In fact, what is missing from your project is a reference to some library (dll). The namespace is only an organization structure and is available if the dll providing it is referenced correct in the…
-
3
votes2
answers1216
viewsA: Compare two strings with C accentuation
The answer to this dilemma will depend on the focus of the application, as well as every application that needs to deal with particularities of some kind of culture (date, time, language, zone,…
-
0
votes1
answer361
viewsA: How to change page title in external link
You cannot use an iframe? Take a look here: http://www.w3schools.com/tags/tag_iframe.asp
-
0
votes1
answer77
viewsA: Doubt about 'NUMA' (non Uniform memory access) in Microsoft SQL Server
This concept is not a concept of SQL Server, or Mysql, in fact it is a concept that comes from Hardware architecture and the database needs to have resources to support (or take better) these…
-
0
votes4
answers930
viewsA: Optimize loading of images
The use of the phrase may seem a cliché, but I will not fail to quote: There is no silver bullet. Every type of software, every technology and every particularity of design choices will influence…
-
5
votes1
answer6706
viewsA: Login system in Asp.net mvc
Most of the tools you used on Asp.net with Web Forms are available on Asp.net MVC, the Framework has evolved, but that doesn’t mean you no longer have the other tools. Therefore, you can implement…
-
3
votes1
answer256
viewsQ: Doubts about implementation of Lazy Load and Dependency Injection
The scenario is simple, it has a Personal Physical class that has linked to it a list of Contacts (instances of physical persons), Telephones (instances of an entity Telephone) and a list of…
-
12
votes3
answers5444
viewsA: How to calculate mathematical expressions in a string?
You need to build a appraiser of mathematical expressions. I did one in C, but it was for reverse polish notation (which I don’t know if it suits you). The TextBox will have to return a string which…
-
2
votes1
answer144
viewsA: Malicious Code in Online Judge
Foreseeing all the situations you will face is very difficult, the most practical is to create the code in a way that only allow certain situations and everything that is outside, can not be…
-
0
votes2
answers153
viewsA: Chosen-ciphertext Attack what’s it like?
CCA is an attack pattern, the way you can execute it usually depends on the scenario you are trying to protect (or attack). A video with basic concepts can be found here:…
cryptographyanswered Intruso 1,625 -
1
votes3
answers141
viewsA: Photo on the web with Windows 8.1 tablet
There is still no guaranteed way to make it happen in all situations because of the different Browsers scenarios and environment settings you can find. The most correct is to choose some more…
-
2
votes2
answers438
viewsA: How to give ALIAS with current "month/year"?
You can generate a text file with a standard tab and add the first row manually with the columns you want. Usually this type of query is for report, so if your scenario allows, you can import the…
-
0
votes2
answers691
viewsA: What is the best way to query SQL Server database using a list as input?
Sounds like a block execution to me. Often we have to process many records in a routine and several developers reuse the business layer (java or c#) for this, but, experience shows that you will end…
-
1
votes2
answers908
viewsA: Pass connection string to dataset via code
Be careful not to put the connection string in the code. Evaluate where your component will be used (type and application and find a correct method to store the configuration string. If your…
-
1
votes1
answer147
viewsA: Dilemma to the popular datalist
By clicking on a page (provoking a postback) you need to maintain the status of the filters you selected before since http does not maintain status. There are several ways to do this that involve…
-
3
votes3
answers13485
viewsA: Change the Datetime Timezone.
In addition to Maniero’s response, it’s important to remember to use Globalization to set your regional settings in case your code (and interface codes) need specific settings for pt_br. A simple…
-
1
votes3
answers1060
viewsA: Implementation of generic CRUD
The person class represents a Person and a "crud" represents its repository of people, they should not have a dependency based on inheritance as they represent distinct objects. One represents a…
-
1
votes2
answers191
views -
1
votes2
answers2442
viewsA: How to read and open files from a byte column in SQL Server?
If your array represents a complete file: File.WriteAllBytes(string path, byte[] bytes)