Jump to content

Person_125

Member
  • Posts

    81
  • Joined

  • Last visited

Everything posted by Person_125

  1. I have an index.js file that I want to load in the Node REPL to try some stuff, but when I use .load index.js in the REPL, it goes in an infinite loop and keeps repeating the first line in the file. const mongoose = require('mongoose'); I found an alternative solution which works in Ubuntu 20.04.5 in WSL2, which is to use the command node -i -e "$(< index.js)" in the terminal which loads the file perfectly fine and I can interact with its contents. But when I try the same command in PowerShell it gives me this error: < : The term '<' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:15 + node -i -e "$(< index.js)" + ~ + CategoryInfo : ObjectNotFound: (<:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException C:\Program Files\nodejs\node.exe: -e requires an argument The reason I'm asking about PowerShell "even though I use Ubuntu and things work there", is that I'm taking a web development course, and I provided the solution of using node -i -e "$(< index.js)" to people who were having the same issue, but other people can't get this to work in PowerShell, so I'm just trying to help. and I couldn't find any solution online to this .load issue, or to using an alternative to the node -i -e "$(< index.js)" command in PowerShell. index.js contents: const mongoose = require('mongoose'); mongoose.set('strictQuery', false); mongoose.connect('mongodb://localhost:27017/movieApp', { useNewUrlParser: true, useUnifiedTopology: true }) .then(() => { console.log("CONNECTION OPEN!!!") }) .catch(err => { console.log("OH NO ERROR!!!!") console.log(err) }) const movieSchema = new mongoose.Schema({ title: String, year: Number, score: Number, rating: String }); const Movie = mongoose.model('Movie', movieSchema); const amadeus = new Movie({ title: 'Amadeus', year: 1986, score: 9.2, rating: 'R' });
  2. I tried reinstalling the cable with the clip but no luck. I wanted to repaste it cause temps were reaching 97 98 on the cpu, but I realized when I opened it up that it had liquid metal on the cpu, but I still repasted it anyway for some stupid reason, idk why I did that tbh, and the arctic mx2 that I put on is definitely gonna perform worse than liquid metal, so I guess it's a major fuck up. Anyway, I opened it up in the first place because I wanted to clean the cpu fan because it started making a buzzing noise. And the cherry on top, my 1050Ti in my PC died along with an 8GB memory stick in the SAME DAY, I know it's irrelevant but I'm sharing for my own sanity. But thanks for replying.
  3. So I was reapplying thermal paste to my laptop, there's a metal clip that holds the battery cable in place and when I was connecting the battery cable the clip came off and and a spark happened on the ICs next to the battery, and when I plugged it in it didn't light up, and when I press the power button nothing happens. Is there any hope of fixing it, or is it gonna have to be a new motherboard that would cost almost as much as a whole new laptop. Specs (Asus Zephyrus G14 2021 GA401QM): Ryzen 9 5900HS RTX 3060 1TB SSD 16GB Ram 144Hz 1080p IPS
  4. Thanks for your answer, I just panned the headphones and speakers a little bit to the right in the hearing enhancements menu from accessibility settings, and it's working well now. I'm gonna keep it like that until I figure out which software is panning everything. I can't seem to find out what it is and I found nothing useful when I looked online, so, it'd be great if you know a way that I can find out.
  5. Hey, I got an S20+ Exynos model almost a year and a half ago, and recently I noticed that audio is always louder and has better quality on the left side of any headphones, wireless and wired earbuds I try, also and the upper speaker, the right side is always is not as loud as the left and kinda distorted. I noticed it first on my Audiotechnica M50X, I even thought that the headphones or the usb-c adapter were the problem, so I got a new adapter and sent the headphones to get fixed and they turned out to be working just fine, then I tried my Skullcandy smoking buds 2, Galaxy Buds+, Anker Soundcore Liberty Air 2 Pro and also the upper speaker all have the same issue. I tested all theses headphones/earbuds on my laptop and PC and they were working just fine. So, I wanted to know if that issue had happened to someone else before, cause I looked online and couldn't find anyone with the same issue, and if so how much is it approximately gonna take to get repaired? and if it can get fixed, does anyone have a rough idea of how much it's gonna cost?
  6. Thanks for your reply. I'll try reinstalling windows tomorrow cause I'm not home at the moment. About the sleep thing I looked in the bios and couldn't find anything related, but I found this FAQ on Modern Standby on Asus's website, so I switched to hibernate when I close the lid. so I think the sleep "issue" wasn't an issue after all.
  7. Operation System / Firmware or BIOS version : Windows 10 Home 64 bit, Version 21H1, Build 19043 ; Bios Version GA401QM.408 Hi, I got a new laptop on July 6th, ROG Zephyrus G14, R9 5900HS, RTX 3060, 16GB, 1TB SSD. some issue came up a while back after installing Nvidia Broadcast. Which is when I'm watching Netflix on Chrome, then I pause video playback for almost a minute, the screen freezes and the system becomes unresponsive. No blue screen whatsoever, and no error messages. I then uninstalled Nvidia Broadcast and the issue still happens, it happened like 6 or 7 times already. I updated the bios from GA401QM.407 to GA401QM.408, the problem stopped happening for a couple of days, but it happened again. I have the latest drivers, latest windows updates and everything, and there are no other issues while gaming. I also get audio stutters when working on audio production on battery. Another problem is when I close the lid the laptop doesn't go to sleep, and the fans keep spinning. I tried to solve this problem by unchecking the "allow device to wake this PC up" box in device manager to pretty much anything that had the power management tab, I also checked the "change what happens when I close the lid" from the power options in control panel and it's set to sleep, but it didn't work either. I'm also using a 2TB 3.5" Seagate Barracuda HDD as in external HDD using USB. Also the first day the laptop came in, there was some weird stuff going on with the GPU driver so I had to uninstall it using DDU, then reinstalled it again using GeForce Experience. I don't know if I should reinstall the GPU driver again, or if there is a problem with the laptop itself and I need to return it, I searched online but found nothing helpful.
  8. Budget (including currency): 30000 EGP Or 1900 USD Country: Egypt Games, programs or workloads that it will be used for: 1080P 144Hz Gaming, Video Editing, Music Production. So, I'm gonna buy a new PC in a week or so. My main question and the thing I'm concerned about is the GPU, I plan on getting a 5700XT and I heard all about the whole driver issues thing that happened last year, do these problems still exist? I searched online and stuff but couldn't find any recent posts talking about this. I'm gonna run Linux and Windows, I found that it runs just fine on Linux, but I'm not sure about windows and stuff. And is there anything I should change about the parts? or any comments or tips? Something I wanna point out is that I'm getting an AMD GPU cause I'll be running Linux as I mentioned, and I could go with a 2060 super, but from what I've heard and from my experience Nvidia drivers on Linux are total garbage. I know the case is expensive and I should've picked something else for a build in that price point, but keep in mind that I have limited options here in Egypt, and I already have a SATA SSD, and a hard drive, and I'm gonna be adding more storage down the line, so I need the storage space. I picked a 750W PSU for future proofing, cause I'm gonna be upgrading the CPU and GPU next year. And thanks in advance. GPU: Aorus 5700XT CPU: Ryzen 5 3600X Cooler: I already have an air cooler, FSP Windale 6 Motherboard: Aorus B550 Pro AX RAM: Corsair Vengeance 16GB 3200Mhz CL16 PSU: Seasonic 750W 80+ Gold Case: Corsair iCUE 465X SSD: Samsung 970 EVO Plus M.2 NVME 500GB HDD: WD Blue Or Seagate Barracuda 4TB Monitor: MSI 24 Inch Optix G241 IPS 144hz 1ms
  9. Oh sorry, I didn't see that you formatted the system, my bad. Maybe try posting your problem on Asus's forum, maybe some of the staff or moderators there might have a solution. It might be like he said, but ask on the Asus forum first and see what people have to say there. Hope you find a solution tho.
  10. Try uninstalling the graphics driver with DDU, here's the steps if you don't know how: - Install DDU. - Reboot into safe mode, ( check this out if you don't know how to ) - Launch DDU and uninstall the nvidia driver. - Reboot again. - Install the latest driver. Check this Youtube video to see more on how to do it.
  11. PCPartPicker Part List Type Item Price CPU AMD Ryzen 5 2600 3.4 GHz 6-Core Processor $194.99 @ Amazon Motherboard Gigabyte B450 AORUS M Micro ATX AM4 Motherboard $74.99 @ Newegg Memory Corsair Vengeance LPX 16 GB (2 x 8 GB) DDR4-3200 CL16 Memory $74.98 @ Amazon Storage Kingston A400 120 GB 2.5" Solid State Drive $19.98 @ Amazon Storage Western Digital Caviar Blue 1 TB 3.5" 7200RPM Internal Hard Drive $39.99 @ Amazon Video Card MSI GeForce GTX 1650 SUPER 4 GB GAMING X Video Card $230.81 @ Office Depot Case Phanteks Eclipse P350X ATX Mid Tower Case $54.99 @ Newegg Power Supply Corsair CXM 550 W 80+ Bronze Certified Semi-modular ATX Power Supply $79.98 @ Amazon Prices include shipping, taxes, rebates, and discounts Total (before mail-in rebates) $785.71 Mail-in rebates -$15.00 Total $770.71 Generated by PCPartPicker 2020-12-18 02:29 EST-0500 Ok, here's the list, the reason why I put a R5 2600 rather than a R5 3600 cause I didn't wanna go over budget too much, and B550 motherboards are a little more expensive than B450, and yes, you can go with a 3600, but you would need a bios update, and there's no bios flashback button in a board at this price point, so you would need a 2nd gen Ryzen CPU to update the bios, if you can somehow update the bios at a computer shop or something, go with a 3600 with a B450, and I don't know about parts availability in your country, so if you can't find a product (other than CPU, GPU and Memory) look for something at about the same price and check it's reviews.
  12. So, do you think I should go for it considering that price?
  13. Hi, so I'm gonna buy a new PC in a month or two, but idk which CPU I should go for, only because of the price where I live (Egypt). So the 5800x is about $545 USD or 8500 EGP, and the 3800x is about $385 USD or 6000 EGP. My main usage is gonna be gaming at 1440p 240hz (G7 Odyssey monitor, and RTX 3070 for the GPU which also overpriced here, it goes for $925 USD or 14500 EGP for a good triple fan card if I even find one, but anyway), and I'll also do some video editing, possibly streaming. So is that 15%~20% IPC improvement really worth it at that price point? I read some stuff online that it will make a difference in 1080p gaming, but I saw the difference in performance in productivity workloads and the 5800x is definitely better, so idk which one I should go for. Oh, and these prices are in your normal hardware stores here in Egypt (no scalpers here, but the prices are like you're buying from one). Thanks in advance. Parts I'm gonna be getting if anyone is interested: CPU: Ryzen 7 5800x, or Ryzen 7 3800x MB: Aorus B550 Pro AC GPU: MSI RTX 3070 Gaming X Trio or something in that level RAM: 2x16 32GB G.Skill TridentZ Neo 3600MHz CL16 PSU: 850W 80+ Gold Fully Modular. Case: Cooler Master H500 ARGB Cooling: Cooler Master ML240R / 1xCooler Master Sickle Flow 120mm ARGB fan Storage: 512GB Samsung 980 Pro M.2 NVMe Gen4, or any 512GB NVMe Gen4 SSD / 4TB Seagate Barracuda or 4TB WD Black Monitor: Samsung Odyssey G7 27" 1440p 240Hz
  14. Hi, I'm asking for a friend he has a Lenovo Ideapad L340 gaming with i7 9750H, GTX 1650 and 16GB of Ram, so the CPU was hitting 74 Degrees and the clock speed was 2.6 GHz when he ran heaven benchmark, then he turned off DPTF in bios, ran heaven benchmark again then the CPU ran at a higher speed between 3 to 4 GHz and the temps were between 80 and 95 degrees, but the GPU on the other hand was thermal throttling at 74 degrees and around 1650 to 1750 MHz, then it naturally down-clocked itself between 1300 to 1500 Mhz, so he went in the bios again and turned the system performance mode from quiet mode to high performance mode then he saved and exited, and the same issue still happens, so he went to check the performance mode again and it went back to quiet again. now the CPU is working properly but the temps are high, and the GPU throttles at 74 degrees, and he also couldn't increase the fan speed, he tried ArgusMonitor but the fan settings were locked for some reason and also tried Notebook FanControl but this specific laptop model wasn't there in the configurations, he also tried downloading FanSpeed but he couldn't find a download link anywhere. I don't know what to do, I searched a lot and the things mentioned are the only things I could find, Oh and also he tried undervolting the CPU with intelXTU to -0.130mV on core voltage offset and cache voltage offset and the thermals on the CPU didn't change that much just 2 degrees. Any help would be appreciated and thanks in advance.
  15. @Parideboy and @Argeddion Thank you guys everything is working just fine now
  16. Thank you! I flashed Magisk zip from TWRP and everything is working now.
  17. Thanks for the reply and sorry for replying so late. I did what you said and the nethunter ROM got installed properly but in order to use the nethunter apps I have to root the device. Thanks for the help.
  18. So today I bought a used Nexus 6P for the purpose of installing Kali Nethunter on it, and then after some searching I found out that I should root the device first, so I did following this guide using SuperSU, I installed the SuperSU from this website, the phone then hung on the Google logo for like 30 minutes, then I found out that the SuperSU project is dead, I said maybe because it's an older phone the root should work and then I entered recovery mode through TWRP and went to the terminal and I saw the # sign and to make sure I ran the command whoami and it gave me root, and then I read that if I'm stuck in a bootloop I should reflash the ROM that I already have installed, but I said it wouldn't make a difference if I flashed Nethunter, it's a new ROM anyway, and now it's been stuck on the Google logo for another 30 minutes. Any help would be appreciated, Thanks in advance.
  19. Thank you guys for your reply, and sorry for coming back to you so late, I think I found out what the issue is based on what you said and I think it's the ram voltage. When he got his PC I told him to up the memory frequency to 2933MHz cause it was 2666Mhz or 2133MHz in bios by default as far as I remember, but we didn't touch the voltage, so when he goes into bios he sees the ram voltage is 1.2V and I think that is not the optimal voltage for 2933MHz ram. And thanks in advance.
  20. Hi, so I'm asking this for a friend, any game he plays keep crashing for no apparent reason, he updated his drivers and the issue kept happening then he had a fresh install of windows. and we ran all possible test on hardware the CPU and GPU temps and clocks are just fine and we ran windows memory diagnostics and no errors came up, and the crashing kept happening then I told him to close any apps that have an overlay in game like msi afterburner and fraps, but the issue kept happening, and that happens in all games not a specific one, and he had a BSOD once after he installed windows while he was running a game and the error was "DRIVER_IRQL_NOT_LESS_OR_EQUAL" and I ran out of ideas and we both ran out of ideas and we don't know what's causing this, and I searched online a lot before asking here. Oh and the games are all running on ultra and there was no FPS drop or anything like that. specs: Ryzen 5 2600 Asus Dual RX 580 8GB 8GB Crucial Ballistix sport 3000MHz Asus ROG B450-F Gaming Thanks in advance.
  21. I solved it by sending a response in my index.js file like so: router.post("/home", (req, res) => { let { firstName, lastName, email, website, company, message } = req.body; console.log("Data: ", req.body); let mailOptions = { from: email, to: "myemail@email.com", subject: "No Subject", html: "<h3>First Name: " + firstName + "</h3>" + "<h3>Last Name: " + lastName + "</h3>" + "<h3>Email: " + email + "</h3>" + "<h3>Company: " + company + "</h3>" + "<h3>Website: " + website + "</h3>" + "<h3>Message: " + message + "</h3>" } smtpTransport.sendMail(mailOptions, (error, response) => { if (error) { console.log(error); res.status(500).send('false'); // <----- HERE } else { console.log("Successfully sent email."); res.send("OK"); // <------------- HERE } }) });
×