-
Posts
136 -
Joined
-
Last visited
Awards
This user doesn't have any awards
About Igor Perrotta
- Birthday Jun 09, 1999
Profile Information
-
Gender
Male
-
Location
Brazil
-
Interests
Computer Science ,games all that stuff :P
-
Biography
I`m a programmer and a PC enthusiast, love games and anything tech related.
-
Occupation
Java developer
System
-
CPU
i7 4770K
-
Motherboard
GA-H87M-D3H
-
RAM
16gb XMS3 2000MHZ
-
GPU
RTX 2060
-
Case
Cooler Master Q300L
-
Storage
1 TB Seagate Barracuda , 120 GB Sandisk SSD
-
PSU
750W Seventeam 80 plus bronze
-
Display(s)
AOC Agon 32`
-
Keyboard
HyperX Alloy FPS
-
Mouse
Logitech g305
-
Sound
Edifier
-
Operating System
Win 10, Zorin OS
-
Laptop
Dell G3
Recent Profile Visitors
972 profile views
Igor Perrotta's Achievements
-
AsRock Polychrome weird error on bios
Igor Perrotta posted a topic in CPUs, Motherboards, and Memory
Hey there! AsRock polycrhome did not work for me, so i updated the bios and now it still does not work but shows this error: (attached) Is this a RMA case? Thanks a lot! -
Hey everyone, thanks for reading this! I'm doing some work and i'm needing to call an rest api(All operations; POST, PUT, GET) from a .net library. This .net library will be called in WinDev. I found many tutorials and all of them use a console application and i don't know if thats applicable to using methods, since they always run in the main class. Here is my api controller for reference: namespace APIDevelopers.Controllers { [Route("api/Developers")] [ApiController] public class DevelopersController : ControllerBase { private readonly IRepository _repository; private readonly IMapper _mapper; public DevelopersController(IRepository repository, IMapper mapper) { _repository = repository; _mapper = mapper; } [HttpGet] public ActionResult<IEnumerable<DeveloperDTO>> GetAllDevelopers() { var devReturn = _repository.GetAllDevelopers(); return Ok(_mapper.Map<IEnumerable<DeveloperDTO>>(devReturn)); } [Route("{id}", Name = "GetDeveloper")] [HttpGet] public ActionResult<DeveloperDTO> GetDeveloper(int id) { var devReturn = _repository.GetOneDeveloper(id); if (devReturn != null) { return Ok(_mapper.Map<DeveloperDTO>(devReturn)); } return NotFound(); } [HttpPost] public ActionResult<DeveloperDTO> postDeveloper(DeveloperDTO dev) { var devModel = _mapper.Map<Developer>(dev); _repository.addDeveloper(devModel); _repository.saveChanges(); return CreatedAtRoute(nameof(GetDeveloper), new { Id = devModel.id }, devModel); } [Route("{id}")] [HttpPut] public ActionResult putDeveloper(int id, DeveloperDTO dev) { var developerModel = _repository.GetOneDeveloper(id); if (developerModel == null) { return NotFound(); } _mapper.Map(dev, developerModel); _repository.putDeveloper(developerModel); _repository.saveChanges(); return NoContent(); } } } Thanks for the help!
-
Wow, it was the special characters, thank you! Now it works and i know in the future!
-
-
Hey guys, hope you all are having a great day! I`m not able to make octave open an image, i installed graphicsMagick and still nothing, i`m very new to this program. Sorry if this is a stupid question. this is the error: img = imread('water-drop.jpg'); error: Magick++ exception: Magick: Unable to open file (C:\Users\igorp\Documents\iniciação\water-drop.jpg) reported b y magick/blob.c:3080 (OpenBlob) error: called from __imread__ at line 80 column 10 imageIO at line 118 column 28 imread at line 106 column 33 I`m using windows 10 btw. Thanks for the help!
-
Hey, thanks for your reply. That's it. the audio does not need to play at the same time. I want the switch to be able to get audio from the speakers that are connected to my pc.
-
Hey guys, i need some help. I bougth this Gaming monitor with no speakers on it, i cant use hdmi and use the headphone port to connect the speakers on the monitor because i have a display port cable to get 144hz, which leaves the edifier speakers that i have connect to my pc and my switch which is connected to the same monitor without audio. Dos anyone know a way to get audio on both systems? It`s confusing to explain and english not being my primady language does not help. Thanks a lot guys
-
Hey guys, how are you guys doing? So, i was trying to install a flatpak and in the tutorial i was following it made me install the gnome store( i was able to remove that) and with it i think came cannonical livepatch, that for the love of god i can't unnistall. Can someone lend me a tip to remove this ? I tried to list my installed apps with snap and flatpak, but came no results
-
IF not picking up the correct condition -JAVA-
Igor Perrotta replied to Igor Perrotta's topic in Programming
Thanks for the replies guys, sorry for explaining badly what was going on, I was in a rush. but I was able to solve it, I was comparing a char with an int. I used Character.getNumericValue and the if was able to verify correctly!- 4 replies
-
- java
- programming
-
(and 3 more)
Tagged with:
-
Hey everyone, how are you guys today? I'm doing a round robin scheduler and i've come across this problem. The tempodeExecucao variable is in the correct amount and so does the cpu[0].vetordeIO as the screenshot shows. but it won't go into the if. i need the verification to work so i can send the process on the queue. thanks for the help! if (cpu[0].vetorDeIO.length != 0) { if (cpu[0].tempodeExecucao == cpu[0].vetorDeIO) { System.out.println("OPERACAO IO"); System.out.println("NOME E TEMPO DE EXECUCAO " + cpu[0].getNome() + cpu[0].tempodeExecucao); filaexecucao.enqueueProcess(cpu[0]); cpu[0] = filaexecucao.dequeueProcess(); break; } }
- 4 replies
-
- java
- programming
-
(and 3 more)
Tagged with:
-
-JAVA- Creating an array using a variable from another class
Igor Perrotta replied to Igor Perrotta's topic in Programming
Hey, sorry for taking so long to answer. First of all, thank you very much for taking the time to help me! your help was very valuable and I've been able to advance a lot in my code! I used inheritance as a desperate measure to see if it worked, lol. I'm rusty on programming (this semester has been mostly theoretical) and I've read a lot of about object-oriented programming to regain all the knowledge i forgot. Again, thank you -
-JAVA- Creating an array using a variable from another class
Igor Perrotta replied to Igor Perrotta's topic in Programming
I'm trying to use the value in numeroDeProcessos to set the numero in the ContadorDeProcessos class. the value is right in the leitor class, but when I try to set in the ContadorDeProcessos class, the value stays 0, not allowing me to create the right size array and throwing an exception. you can see in the code the multiples attempts i made, the only way it works is for me to set the array size anything more than the number i need, that in this case is 4. but i want something that can work in multiple cases -
-JAVA- Creating an array using a variable from another class
Igor Perrotta replied to Igor Perrotta's topic in Programming
Yes, i'm trying to acess a int variable and create an array using it. THis is the class im trying to take numeroDeProcessos and use in contadorDeProcessos, you can see multiple atempts and a very poorly organized code, that's the result of me almost giving up public class Leitor { int numeroDeProcessos = 0; int contadorDeprocesso = 0; Escalonador escalonador = new Escalonador(); public void analisarTamanho() throws Exception { ContadorDeProcessos contadorNUmero = new ContadorDeProcessos(); BufferedReader analisador = new BufferedReader(new FileReader("process.txt")); while (analisador.readLine() != null) { numeroDeProcessos++; } System.out.println("NUMERO DE PROCESSO" + numeroDeProcessos); contadorNUmero.setNumero(numeroDeProcessos); System.out.println("TESTE" + contadorNUmero.getNumero()); contadorNUmero.numero = numeroDeProcessos; analisador.close(); } =========== public class ContadorDeProcessos extends Leitor { Leitor leitor = new Leitor(); int numero = numeroDeProcessos; public int getNumero() { return numero; } public void setNumero(int numero) { this.numero = numero; } Processo filaDeProcesso[] = new Processo[numeroDeProcessos]; public void vernumero() { System.out.println(numero); } public void setProcessoNaFila(Processo process, int num) { filaDeProcesso[num] = process; } } -
Hey guys, how are you today? I have an assignment for my school that requires me to implement a round-robin process scheduler without using java collectibles, ArrayList or any other stuff really. I'm having this probably very stupid problem. I'm taking an int variable that is my number of processes that is in the class that reads a text file and trying to create a static array of processes in another class. This int value will set the array size. I tested to see if the right value is correct, and it is. the problem is attributing between classes. i tested with using setters, directly attributing and in the desired class the value is still 0.
-
Best way to upgrade a notebook Ram
Igor Perrotta replied to Igor Perrotta's topic in CPUs, Motherboards, and Memory
I already checked my ram is DDR3, 1333MHZ From an unknown OEM lol