Jump to content

Person_125

Member
  • Posts

    81
  • Joined

  • Last visited

Awards

This user doesn't have any awards

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  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.
×