Posts by Maurício Salin • 251 points
8 posts
-
0
votes1
answer42
viewsA: Error printing message inside condition
You must use else if instead of repeating the if correcting: #include <stdio.h> #include <conio.h> int main(){ int x, y; printf("Digite 2 valores: "); scanf("%d %d", &x, &y);…
-
0
votes2
answers158
viewsA: My shell script does not list all user processes
Try to use ps auxf instead of just ps aux The command ps auxf generally shows all users, including not being logged in as root If you want to search processes of a given user you can do the…
-
1
votes1
answer371
viewsA: How do I read a C sound file?
You can use include #include "wav.h" Follow the example: #include <stdio.h> #include "wav.h" main() { int16_t *samples = NULL; wavread("track.wav", &samples); printf("No. of channels:…
-
4
votes1
answer490
viewsQ: Regex in python Find() function
I need to use a regex in the function Find() in Python for example, if I use inside a loop : arq = open("arquivo.txt","rb") var = arq.readline() a = var.find("abc.*def") He will be looking at the…
-
4
votes2
answers58
viewsQ: Syntax error on another machine
I have a machine on which Python 2.6.6 is installed, in a certain part of a script I do the following command: with open('saida1.txt') as saida: for line in saida: if "]L" in saida: print line In…
pythonasked Maurício Salin 251 -
2
votes1
answer210
viewsQ: Trouble at startar Gulp serves
Good afternoon, I’m creating a portal in Angularjs and Node. After installing npm in the workbook npm install and Ben bower install The tutorial asks for the command to be done gulp serve, but this…
-
2
votes2
answers2275
viewsQ: Circular reference between two projects
I’m working with two projects in one Solution. To use a form of Projectoa in the Projectob I made reference to the Projectoa in the Projectob, from this I have access to the Projectoa. But what if I…
-
8
votes2
answers268
viewsQ: Shoot event only once
I’m doing an interface in Visual Studio 2015, how do I hold an event just once? For example: private void textBox5_Click(object sender, EventArgs e) { textBox5.ForeColor = Color.Black;…