Posts by João silva • 79 points
9 posts
-
-2
votes2
answers60
viewsA: Encrypt a python string
You can use some library to do the encryption. It has several libraries such as the pycrypto, cryptocode etc. There are dozens of libraries out there. A simple example of this same program using the…
-
1
votes1
answer256
viewsA: Click the Follow Instagram button with Selenium C#
Changes class to an xpath that will definitely work. Example: IWebDriver webdriver = WebDriverFactory.CreateWebDriver(Browser.Chrome, @"ChromeDriver", true);…
-
1
votes1
answer94
viewsQ: Loop through the lines of a file and print parts of it in sequence
I have a text file that has several lines separated by two points. See for example: teste1:testee1 teste2:testee2 teste:testeeee Using a loop for, I’m trying to get the script to print on the screen…
-
1
votes1
answer44
viewsA: HELP ME If Condition in a Maskedtextbox
There are several ways to check whether or not a Maskedtextbox is empty. Follow the code below that checks without error. if (maskedTextBox1.Text.Trim().Equals(string.Empty)) {…
-
0
votes1
answer71
viewsQ: Download file setting the header
good afternoon. How can I download a file from a site in the URL by setting the header? For example, I have a file on a site and I want to download in python, just returns me a 403 error, so how do…
-
1
votes2
answers112
viewsQ: Generating a txt with random numbers repeats the numbers
The program has to generate 10 letters and then skip a line with 10 different letters. I used the Random() and I was able to generate 10 random letters, only then just the lines repeat. Like, it…
-
-2
votes1
answer71
viewsQ: Denied permission when creating folder
I was creating an application that needs to create a folder in System32 or in the windows folder itself, only it needs permission and error:'O acesso ao caminho 'C:\Windows\pasta' foi negado.' Does…
c#asked João silva 79 -
4
votes0
answers90
viewsQ: Create an executable in c#
I am developing an application and I would like to know if it is possible to create an "executable" as an external program, for example: when clicking a button, it uses Savefiledialog to save the…
c#asked João silva 79 -
-1
votes1
answer119
viewsQ: Error while sending email
I’m having a boring mistake, I can’t fix it a few days ago. I searched, but I couldn’t find anything on how to remove it. Error: The SMTP server requires a secure connection or the client was not…