Posts by nmindz • 2,978 points
35 posts
-
1
votes1
answer180
viewsA: I used the "chmod 700 /usr" command, and now what?
If you have taken safety precautions when installing your operating system, you should have changed or created a password for the user root. Whereas it has done so, it should still be possible to…
-
5
votes3
answers117
viewsA: Generate a query number?
You tagged that question with the tags php and database. Although I didn’t use the mysql, I see in your example code you’re calling mysqli, then I hope you are using some version of Mysql. If you…
-
5
votes1
answer96
viewsQ: What are the criteria for failbit and badbit in a Std::istream?
In a C++ exercise, it is proposed to store a data (numeric, integer - eg.: 4 or -3650) entered by the user through the console. This is an exercise to deal with exceptions and "defensive…
-
2
votes1
answer280
viewsA: Dump from all banks to a specific user
I noticed you used the tag mysqldump. Since you have not informed the operating system you are using, I will assume that it is Linux - which is the most common - if it is not, you can use the…
-
0
votes1
answer99
views -
3
votes1
answer780
viewsQ: Where can I use GUI with . NET Core?
I’ve seen some questions about GUI as one in C and others similar, and I was curious about using a GUI with . NET Core on the various platforms. I know you accept UWP on Windows, but not WPF or…
-
29
votes1
answer916
viewsQ: Why was . NET Core created?
I already know what it is and how to use it, but wanted to understand the goal of Microsoft for its creation. I know I had problems in the . NET Framework, but I don’t really understand why they…
-
23
votes3
answers478
viewsQ: Can Garbage Collector language be used for games?
I started learning C# and even Java for interest in game development. But I know that many are developed with C++, mainly because I don’t have one Garbage Collector. Of course I know that several…
-
9
votes1
answer126
viewsQ: A property occupies space in the object?
I was reading a question about properties and saw that she is at the same time one or two methods. Do you have any additional cost in memory and processing in using it? If you don’t use the code you…
-
8
votes1
answer127
viewsQ: Static members are collected by GC when no longer needed?
In a class that has a static variable, it exists throughout the application. The linked object is collected at some point? Example: public class Exemplo { private static List<int> lista = new…
-
6
votes1
answer83
viewsQ: Is there any way to be notified that there will be a garbage pickup?
I’m studying about the Garbage Collector do . NET and wanted to know if there are any events that I can sign and be aware whenever a collection will be made.
-
8
votes1
answer122
views -
5
votes2
answers83
viewsQ: What is the syncblock?
I received a reply about a syncblock. Why is it necessary? I understand what I researched is about competition control. But why does every object need it if not everyone will have competition?…
-
3
votes1
answer66
viewsQ: How to find out in which generation of Garbage Telescope an object is allocated?
Considering my previous question on the generations of the CG, would like to understand if considering the "moment" through which an object is passing within its life cycle, brings some benefit or…
-
15
votes1
answer193
views -
8
votes2
answers300
viewsQ: Why does . NET’s Garbage ollector have several generations?
I understand why there is a Garbage Collector, but I wanted to know the advantages of making it have several generations. It seems something much more complicated, it needs to be very advantageous.…
-
13
votes3
answers569
views -
6
votes2
answers665
views -
26
votes5
answers1461
views -
8
votes1
answer125
viewsQ: What is the best way to get out of a C#app?
The most common way is to go out with a return in the Main(). But I saw that there is Environment.Exit() and the Application.Exit(). When should we use each?…
-
5
votes2
answers350
viewsQ: How to get the total memory occupied by the application?
I know there’s a GC.GetTotalMemory, but it only shows the consumption of managed memory. It has how to discover the full use of the application?…
-
9
votes1
answer242
viewsQ: What are the differences between BCL and FCL?
The Base Class Library (BCL) Framework Class Library (FCL) are components of the .NET. This defines what each one does? What goes into each one?
-
4
votes1
answer890
viewsQ: Is there a binary tree in . NET?
I don’t know if it’s hidden somewhere and I haven’t seen a binary tree structure on . NET. I searched the documentation of all Collection, including the sublevels and nothing. Don’t have it? Why…
-
19
votes4
answers1350
viewsQ: How to pass string by reference?
I passed a string as a parameter. As far as I know it is passed by reference, so if I change anything in it within the method, when it leaves it the value will continue to change. I took the test…
-
6
votes1
answer326
viewsQ: How to create a monolithic application executable. NET?
I wouldn’t want to do the deploy from the full DLL application, wanted something simple, no installer, wanted to generate only one executable file, but the . NET is all DLL-based. You can generate a…
-
3
votes0
answers69
viewsQ: Algorithmic predictability in random number generation
At the end of writing that one question, I realized that it was too wide. So I decided to break it into topics. There is a succinct way to observe the predictability of a random system? It would be…
random-numbersasked nmindz 2,978 -
12
votes1
answer605
viewsQ: What is required to achieve maximum entropy?
I’ve been studying a little bit about random numbers and hashes, Yet something somehow still confuses me. In several groups related to cryptography I read about people talking about the addiction of…
-
5
votes1
answer178
viewsQ: What is an Appdomain?
I read about it on the Microsoft website. It would be interesting to have a succinct answer here in Portuguese with a summary of what is? There’s something important that’s not in the documentation?…
-
6
votes3
answers284
viewsQ: What should I observe when creating a hash code?
Still talking about the reply about hash code it was not clear what should be observed to produce good hash codes. I understood that it needs to be a number that doesn’t generate a lot of…
-
4
votes1
answer488
viewsQ: Using Concat to concatenate array of strings
I was seeing about strings and that they are immutable and cannot be added to them in quantity otherwise they will be very slow. The recommendation is to use the StringBuilder. But I also saw that…
-
12
votes1
answer751
viewsQ: What is the method group?
Coding in C# I ended up making a mistake, perhaps by familiarity with other languages that I usually work, and forgot the parentheses. string.Concat(numero.ToString, "A") I got the following…
-
8
votes2
answers107
viewsQ: Why are some string methods static?
I am learning C# after already working with other languages, I noticed that some methods need to be called by the class string.Concat("123","456") I usually use in other languages this way…
-
4
votes1
answer1667
viewsA: ADB does not recognize Android device on Mac OS
It gets a little difficult to "guess" the factors we are dealing with in this situation, but I will try to help with the little experience I had with ADB + Mac OS. Below are some questions that may…
-
9
votes2
answers2114
viewsA: How to perform an action when reaching a certain scroll height?
The simplest way to solve this (if you want the event to be activated only once each time the user visits the page. ) would use a variable to check if the behavior has already occurred (or not). var…
-
8
votes1
answer291
viewsQ: How to apply ! Important to a property with multiple values
I’m having some difficulties with the precedence of CSS selectors to create a dynamic background (image transition.) in the first/div section presented on the site. I currently have the following…