Posts by Caio de Paula Silva • 1,189 points
30 posts
-
1
votes1
answer20
viewsA: Disable function in Datagridview
foreach (DataGridViewColumn column in dataGridView.Columns) { column.SortMode = DataGridViewColumnSortMode.NotSortable; }
c#answered Caio de Paula Silva 1,189 -
1
votes3
answers258
viewsA: Tkinter: Tk() not found
Make sure you have not named your file for something like tkinter.py. It is a common mistake, but you cannot name a file whose name is the same as a module you are importing, there will be collision…
-
0
votes1
answer3351
viewsA: Visual Studio Code Extension: "Code Runner" does not compile C
Create an environment variable in PATH with the way to the gcc. PATH is a system variable used by the operating system to locate executables that will be used by command line. Follow the…
-
1
votes1
answer318
viewsA: Multiplexer implemented with Nand ports
A multiplexer circuit is characterized by connecting multiples data streams on entry in only one output, so that it is possible "select them". Just like in the example you provided. It may be…
boolean-algebraanswered Caio de Paula Silva 1,189 -
6
votes1
answer141
viewsQ: How to determine a gap condition between records?
In the case of records containing date and/or time, how to determine that between the first record returned and the others there is always the same interval? Let’s take this example: Raw data:…
-
5
votes1
answer2019
viewsA: How to get the current file name in python
You actually have several options. Of these I present to you three: import os print(os.path.basename(__file__)) import sys print (sys.argv[0])] print (__file__) There is a discussion interesting in…
pythonanswered Caio de Paula Silva 1,189 -
2
votes1
answer40
viewsQ: How to implement dictionaries in the Multithreaded Singleton standard
The pattern Multithread Singleton serves me in order to enable the use of "global variables" in my application. Its use occurs through the resources of get and set, as it is possible to notice. How…
c#asked Caio de Paula Silva 1,189 -
2
votes1
answer93
viewsQ: Programmatically uninstall hidden devices
Uninstall hidden devices manually: Device Manager Doors (COM and LPT View Menu → Show Hidden Devices Uninstall device (The name is no longer reserved) As you can see, I know the steps necessary to…
-
2
votes1
answer1196
viewsA: GIT error: key does not contain a Section: user-mail
The correct command is git config --global user.email "[email protected]". you forgot the email 'e' and separated the words with a dash instead of a dot These three links should be…
gitanswered Caio de Paula Silva 1,189 -
3
votes2
answers2695
viewsA: How to select a Python file using Tkinter
from tkinter import Tk from tkinter.filedialog import askopenfilename Tk().withdraw() # Isto torna oculto a janela principal filename = askopenfilename() # Isto te permite selecionar um arquivo…
-
0
votes2
answers56
viewsA: Collect name of file used
You actually have several options. Of these I present to you three: import os print(os.path.basename(__file__)) import sys print (sys.argv[0])] print (__file__) There is a discussion interesting in…
python-3.xanswered Caio de Paula Silva 1,189 -
1
votes2
answers43
viewsA: Refer to duplicate values in the same table
I believe this should help. I would have been more specific if you had provided more information. Basically what you need is to determine a referential referring to the non-unique records you want…
mysqlanswered Caio de Paula Silva 1,189 -
0
votes1
answer59
viewsQ: How to hide files programmatically
A hidden file in a linux environment has a point (.) before its name, so that for example: .arquivo.c is hidden and arquivo.c isn’t. Knowing that, my question is, how to hide a number of files…
-
7
votes1
answer587
viewsQ: How to simulate LEAD and LAG functions? [Mysql]
I have recently been developing a query in which I came up with the need to compare rows of the same data set successively, I mean, from the same column, from the same table. I became aware of the…
mysqlasked Caio de Paula Silva 1,189 -
5
votes1
answer1094
viewsA: How to read stdin in python?
Solved. In order for me to be able to replicate the behavior that I got using the shell and be able to both read and respond to what was written on the port, I had to access it through two different…
-
1
votes1
answer88
viewsQ: Can sockets be multilingual?
Since sockets are a common choice for high-performance communication between applications of different platforms, my doubt is, that makes them also multilingual? Bringing the situation to my…
-
9
votes1
answer1094
viewsQ: How to read stdin in python?
Using the netcat to monitor a particular port on my device, using the shell command terminal, I can check the data received by it and send data back to the connected device, as for example, makes a…
-
13
votes3
answers680
viewsQ: How do I read the output of a loop-based process? [C#]
Everything happens correctly to start the process, but when trying to get some kind of return of its execution through any of the available redirectors, be it input, output or error, the application…
-
7
votes3
answers1297
viewsA: How to have more than one Edge in an Element with CSS
The estate box-shadow allows attaching one or more shadows to an element. The shadow style chosen for this demonstration is the inset, that refers to the idea of insertion. So the shadow is placed…
-
3
votes1
answer2907
viewsA: Error: System cannot find specified file [C#]
The solution was to create an environment variable for the process I’ve been trying to execute. In my case: C:\Program Files (x86)\com0com System → Config. Advanced of the System → Variables of…
-
1
votes1
answer2907
viewsQ: Error: System cannot find specified file [C#]
Win32exception (0x80004005): The system cannot find the file specified in System.Diagnostics.Process.Startwithcreateprocess(Processstartinfo startInfo) While trying to run a recently published…
-
3
votes1
answer279
viewsQ: Cannot use tskill in C#
The tskill command when used via C# (Visual Studio) returns this error: 'tskill' not recognized as an internal or external command, a operable program or a batch file However the same command when…
-
3
votes1
answer326
viewsQ: How to open an executable that requires elevation via C#?
The code provided below seeks to be able to open an executable file so that it is possible to pass arguments to it once it has been opened. For the code as it is displayed, error returned is:…
-
0
votes1
answer97
viewsA: purchase script, in txt file the name of the objects of the purchases, are not below each other
I made simple changes, no append I added the exhaust character for line break and on print within the repeating structure replaces the variable by shopping name. Follow the changed code:…
pythonanswered Caio de Paula Silva 1,189 -
4
votes1
answer44
viewsA: Select a list of values and from that list, select the lowest value
Being direct, it is possible to do this for example using a subquerie. SELECT min(id_relevo) FROM (SELECT id_relevo FROM relevo ORDER BY id_relevo DESC LIMIT 10) as minimo…
-
2
votes1
answer41
viewsA: How to recognize the selected entry
In order for the button to enter the value into the object, set its command so that: Button(command=lambda: entry.insert(END,'1')) If '1' is the value to be inserted. The process would be the same…
-
3
votes1
answer1541
viewsQ: Error: unrecognised exhaust sequence [C#]
For this code snippet in my program I receive the error warning that it considers that the command has an invalid exhaust sequence, that is, not recognized. string.Format("/c {0}", "cd .\Debug &…
-
4
votes1
answer1541
viewsA: Error: unrecognised exhaust sequence [C#]
The following link demonstrates how to ignore this: ERROR CS1009 Basically, in the case presented, it would be enough to place the character at@ in front of the command or if another backslash was…
-
1
votes1
answer990
viewsA: How to make the label background transparent ? python3 + Tkinter
I would need more details about your code to help you with greater certainty of success, but you can do something similar to this. Create a Canvas and apply the image inside it: self.canvas =…
-
11
votes2
answers2203
viewsA: What are the differences between the states of the git files (untracked, unmodified, modified, staged)?
Untracked is the state where the file has not yet been 'tracked'. Unmodified is the state where the file has not changed in relation to its reference. Modified is the state where the file has…
gitanswered Caio de Paula Silva 1,189