• Activity
  • Votes
  • Comments
  • New
  • All activity
    1. Yarn, React, and Udemy. Help requested.

      My apologies if this kind of content is not allowed here. Mod(s) please feel free to delete it if it is not without any butthurt on my part. I'm new to React Testing, so I am taking an Udemy...

      My apologies if this kind of content is not allowed here. Mod(s) please feel free to delete it if it is not without any butthurt on my part.

      I'm new to React Testing, so I am taking an Udemy course on it. The Udemy course uses yarn, so I would like to stick with that though I do know yarn isn't the top accepted tool in the React community.

      I've posted this question elsewhere, I haven't gotten any responses, so I am posting it here ( costs nothing ).

      I am getting this error when executing yarn build:

      $ yarn build
      yarn run v1.22.22
      $ react-scripts build
      Creating an optimized production build...
      Failed to compile.
      
      TS2305: Module '"web-vitals"' has no exported member 'ReportHandler'.
        > 1 | import { ReportHandler } from 'web-vitals';
            |          ^^^^^^^^^^^^^
          2 |
          3 | const reportWebVitals = (onPerfEntry?: ReportHandler) => {   
          4 |   if (onPerfEntry && onPerfEntry instanceof Function) {      
      
      
      error Command failed with exit code 1.
      

      I've tried installing web-vitals over what is already in the modules section, but that hasn't helped.

      Any clues appreciated!


      Update: the tip about ReportHandler being deprecated helped. I ran create react app in a new folder, did NOT run yarn update as the instructor called for,moved my work over, and now everything runs fine.


      7 votes
    2. What programming/technical projects have you been working on?

      This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's...

      This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's interesting about it? Are you having trouble with anything?

      6 votes
    3. What programming/technical projects have you been working on?

      This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's...

      This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's interesting about it? Are you having trouble with anything?

      9 votes
    4. Framework 16: Additional hardware questions

      I'm looking to buy a Framework 16 in its most powerful Ryzen config. I'm looking at this being the last laptop I need to buy because of its modular design, so I don't mind the heavy initial...

      I'm looking to buy a Framework 16 in its most powerful Ryzen config. I'm looking at this being the last laptop I need to buy because of its modular design, so I don't mind the heavy initial investment.

      I'm looking to shave of $400-500 by buying parts externally, however. I wanted it to be 64GB RAM, with a 4TB OS drive to run Aurora on, and later on a second drive for another non-immutable LTS distro (probably Debian?).

      If I can source the same RAM/Storage, is there any reason to actually buy them from Framework? I'm a bit confused by the huge price difference, since I can get the same memory and storage hardware from Microcenter for about $400 less total.

      And if anybody has any experience with the Framework 16 as a daily driver, I'd be interested to hear any stories. I'm not getting the graphics module yet, but may down the road to see if it can replace my desktop fully. Drivers should not be an issue as Aurora has a Framework image that contains everything I'll need.

      10 votes
    5. How frequently does vscode save dirty files?

      trying to settle on a program where I can jot down stuff and have some degree of confidence that it will persist and I can't seem to find any actual documentation from vs code as to: How often...

      trying to settle on a program where I can jot down stuff and have some degree of confidence that it will persist and I can't seem to find any actual documentation from vs code as to:

      1. How often unsaved files are saved so that they can be restored when a session is reopened
      2. if that frequency of how often they are saved can be configured?

      Sidenote: I was going to ask this question on SO but apparently I am at risk of a question ban for not asking "good quality questions". Half my questions on there are from when I was a fresh developer and didn't really know how to articulate my questions well. Really changes my opinion of the openness of SO......

      5 votes
    6. What programming/technical projects have you been working on?

      This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's...

      This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's interesting about it? Are you having trouble with anything?

      20 votes
    7. Can I have some advice on the neural net I've been working on?

      Apologies if this isn't an appropriate place to post this. Inspired by a paper I found a while back (https://publications.lib.chalmers.se/records/fulltext/215545/local_215545.pdf), I tried my hand...

      Apologies if this isn't an appropriate place to post this.

      Inspired by a paper I found a while back (https://publications.lib.chalmers.se/records/fulltext/215545/local_215545.pdf), I tried my hand at implementing a program (in C#) to create ASCII art from an image. It works pretty well, but like they observed in the paper, it's pretty slow to compare every tile to 90-some glyphs. In the paper, they make a decision tree to replicate this process at a faster speed.

      Recently, I revisited this. I thought I'd try making a neural net, since I found the idea interesting. I've watched some videos on neural nets, and refreshed myself on my linear algebra, and I think I've gotten pretty close. That said, I feel like there's something I'm missing (especially given the fact that the loss isn't really decreasing). I think my problem is specifically during backpropagation.

      Here is a link to the TrainAsync method in GitHub: https://github.com/bendstein/ImageToASCII/blob/1c2e2260f5d4cfb45443fac8737566141f5eff6e/LibI2A/Converter/NNConverter.cs#L164C59-L164C69. The forward and backward propagation methods are below it.

      If anyone can give me any feedback or advice on what I might be missing, I'd really appreciate it.

      14 votes
    8. 3840x2160 120 Hz KVM

      Can someone recommend a KVM that works? I've been looking for a couple of years now. Requirements: 2-port, 1-monitor, DisplayPort 1.4 KVM Has a wired push button switch (and cable can be extended...

      Can someone recommend a KVM that works? I've been looking for a couple of years now.

      Requirements:

      • 2-port, 1-monitor, DisplayPort 1.4 KVM
      • Has a wired push button switch (and cable can be extended if needed)
      • Runs at 3840x2160 @ 120 Hz (or 60 Hz)
      • Works with HP docking station (HP USB-C Dock G5 for business)
      • Works with Classic 101 Black Buckling Spring USB keyboard
      • Works with Logitech TrackMan Marble Trackball
      • Works with HP laptop and custom desktop build (NVIDIA T1000 GPU)

      Anti-requirements:

      • Does not intercept keystrokes (or can be disabled)
      • Does not intercept mouse scrolling (or can be disabled)
      • Does not randomly repeat keys
      • Does not block certain keystrokes (e.g., ctrl+shift+t)
      • Does not let Windows laptop go to sleep
      • Does not require manually re-waking Windows laptop by pushing power button
      • Does not require switching back-and-forth to re-establish connectivity to both computers
      • Does not take more than 3 seconds to switch between computers
      • Does not randomly blank the screen for 1 second
      • Does not require unplugging and re-plugging the USB keyboard

      Here's the setup showing both computers and the push button switch:

      I have tried:

      • IOGEAR GCS62DP (almost perfect; kills keyboard after 60 swaps; RMA'd)
      • DiamondTiger KVM Switch EDID 8K@60Hz, 4K@144Hz, DP 1.4 (repeats keys, blanks screen, has screen tearing, and many other issues)
      • CanadaComputers iCAN HDMI USB KVM Switch 2x1 with Switch Extension 4K 60Hz (completely blocks certain keystrokes)

      Wendell's Level1Techs Store offers a highly recommended KVM, yet lacks a wired toggle button.

      What other KVM switches are available that "just work" and have a wired push button for switching?

      The next KVM I'm thinking about trying:

      ATEN also has a switch, which is on par with the IOGEAR (4K @ 60 Hz, no EDID):

      6 votes
    9. What programming/technical projects have you been working on?

      This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's...

      This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's interesting about it? Are you having trouble with anything?

      15 votes
    10. W11 Bluetooth won't pair but can see devices. BT works w/ Linux

      tldr; W11 bluetooth doesn't work with multiple cards. It will see devices but will not pair. Same hw pairs under Linux. hey folks. I posted this to /r/techsupport on reddit and for some reason...

      tldr; W11 bluetooth doesn't work with multiple cards. It will see devices but will not pair. Same hw pairs under Linux.


      hey folks. I posted this to /r/techsupport on reddit and for some reason they say they don't support Windows 11 Enterprise... and it took them a day to tell me instead of using automod. I thought this was both funny and the dumbest thing. Anyway, here's a fun little issue I'm trying to sort out.

      Windows 11 Enterprise 22h2 (22621.3810)

      About two weeks ago (after a year of having this system) my bluetooth decided not to pair with anything. It will see devices and try to pair, but it never goes through.

      I have tried:

      • a different wireless card / bt combo (PCIE)
      • removing the wireless / bt combo and using a bt dongle
      • removing all drivers (show hidden devices etc), rebooting clean, reinstalling
      • changing the USB connection to the mobo for the PCIE card
      • live boot of latest Ubuntu LTS -- successfully paired DS4 controller and Sony Headphones

      The event logs for Bluetooth Policy are all positive (e.g. A connection to a remote device 0xA4538553B7FD was successfully established) -- but nothing is paired.

      This happened on a day when I added two HDDs to the box and ran updates etc. I also tried everything above without the drives installed without any luck.

      Any ideas?

      notes:

      • I just finished with a W11 windows-to-go install off a super slow USB and I wasn't able to pair headphones or the DS4, but I did pair some sony TW earbuds. I'm sensing a fresh install in my future.
      12 votes
    11. What programming/technical projects have you been working on?

      This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's...

      This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's interesting about it? Are you having trouble with anything?

      17 votes
    12. What are some great time savers on CLI that you would recommend?

      I use these right now on Debian: ncdu ncdu (NCurses Disk Usage): A disk usage analyzer with an ncurses interface, providing a fast and easy-to-use overview of disk space utilization. Ideal for...

      I use these right now on Debian:

      ncdu

      ncdu (NCurses Disk Usage): A disk usage analyzer with an ncurses interface, providing a fast and easy-to-use overview of disk space utilization. Ideal for identifying large directories and files in a user-friendly terminal interface.

      duf

      duf (Disk Usage/Free): A modern disk usage/free utility with a beautiful interface written in Go. It provides a quick and easy way to check disk usage across various file systems with color-coded output.

      tldr

      tldr (Too Long; Didn't Read): Simplified and community-driven man pages. Provides practical examples for commands, making it easier to understand and use without wading through lengthy and detailed man pages.

      nala

      nala (Next-Generation APT Frontend): A modern frontend for the APT package manager, designed to provide a more readable and user-friendly output for package management tasks.

      Speedtest-cli

      Speedtest-cli: A command-line interface for testing internet bandwidth using speedtest.net. Allows you to quickly check your upload and download speeds directly from the terminal.

      htop

      htop: An interactive process viewer for Unix systems. It provides a real-time, color-coded display of system processes, making it easier to monitor and manage system resources.

      powertop

      powertop: A tool for diagnosing issues with power consumption and power management on Linux systems. It provides detailed information on power usage by various system components and applications.

      thinkfan

      thinkfan: A simple fan control program for ThinkPads. It helps manage the system's fan speed to balance cooling and noise levels based on the temperature sensors.

      tlp

      tlp (Linux Advanced Power Management): A power management tool for Linux. It provides various configurations and options to optimize battery life on laptops without requiring manual tweaks.

      flatpak

      Flatpak: A system for building, distributing, and running sandboxed desktop applications on Linux. It provides a universal app distribution system that works across various Linux distributions.

      neofetch

      Neofetch: A command-line system information tool written in bash. It displays an aesthetically pleasing summary of system information alongside your terminal prompt.

      iftop

      iftop: A real-time console-based network bandwidth monitoring tool. It shows a list of network connections from/to your system and the bandwidth usage for each connection.

      nano

      nano: A simple, user-friendly text editor for the command line. Known for its straightforward and easy-to-use interface, making it a go-to for quick text editing tasks.

      Edit
      Oh wow! Thank you all for your suggestions!

      I was looking around and found cheat; it's defined as a cheat that allows you to create and view interactive cheatsheets on the command line. Hopefully, someone else might find it helpful as well.

      38 votes
    13. How bad are Nvidia GPUs for Linux really?

      I've been interested in switching to Linux, or at least dual booting, for some time now as Windows has kept getting worse and Proton for Steam has been getting better. I'm particularly interested...

      I've been interested in switching to Linux, or at least dual booting, for some time now as Windows has kept getting worse and Proton for Steam has been getting better. I'm particularly interested in trying Mint Cinnamon.

      In every Linux thread on here or Lemmy, I always hear people complaining about Nvidia drivers for Linux or other hardware problems that they avoid by having AMD.

      I have an Intel CPU and Nvidia GPU. How big of a problem is that, really? Does it make it an unbearable experience? Does it make it a lot more work to get things working? Does it make certain things impossible to get working? What's your experience?

      Also for dual booting, I hear people have problems with Windows messing up their Linux install. Is that a common problem, or a few people having bad luck? Is that avoidable?

      30 votes
    14. Looking for a good, cheap VPS for a VPN in or around London

      I watch Countdown every day. For the last year I've had a t2.micro for free from AWS. Its been pretty good, but my year is coming up. I am looking for the cheapest VPN possible, which is often...

      I watch Countdown every day. For the last year I've had a t2.micro for free from AWS. Its been pretty good, but my year is coming up. I am looking for the cheapest VPN possible, which is often having my own VPS.

      Does anybody have any suggestions? Most are around $6, which isn't too bad, but I'd love to get something cheaper; either in a reliable lowend box or a proper provider.

      10 votes
    15. Web tech job sites?

      I'm looking for recommendations for good web tech job sites, ones which are most likely to lead to interviews. While I can always do a websearch myself, I haven't done a job search for many years,...

      I'm looking for recommendations for good web tech job sites, ones which are most likely to lead to interviews. While I can always do a websearch myself, I haven't done a job search for many years, so I don't know what job sites are trustworthy or not nowadays. Working remote is almost must-have, otherwise Canada would be the region of interest.

      9 votes
    16. Advice for hosting (and building) a personal website

      Hey all! I've been thinking about buying a domain and building a personal website for myself -- at this point just a personal website with links to my socials, my CV, maybe any interesting...

      Hey all! I've been thinking about buying a domain and building a personal website for myself -- at this point just a personal website with links to my socials, my CV, maybe any interesting projects I want to publicize. Maybe someday I'll decide I want to add a blog or build a webapp or something, but for now it'll be something simple and static.

      My programming experience is very much not in the frontend side of things (I'm a data scientist and mostly use python day-to-day). I played around with HTML messing with my Tumblr theme enough back in the day that I'm reasonably sure I can build something solidly web 1.0, and I've toyed with stuff like Jekyll in the past. But I was wondering if I could use this as an opportunity to build up some basic skills that I could put on my resume for the future. But I have no idea what's out there that would be useful and quick to learn but wouldn't be massive overkill for a project like this.

      I also have no idea how web-hosting works and who to go with if I want to build a personal website myself rather than relying on something like Wix or Wordpress. Most of the easily-Google-able advice is for different use-cases. Advice is either people who want something user-friendly with minimal coding like Wordpress or it's for something properly big and commercial, neither of which is me.

      Anyway, I know we've got a lot of suitably tech-y people here on Tildes, so I'm hoping people here have good advice for this sort of use case. Thanks!

      21 votes
    17. Need help BCCing entire Outlook autofill contact list

      Today is my last day at work and my boss wants me to BCC anyone I have ever sent an email to announce my departure. I have tried exporting all my sent messages and trimming the list by advanced...

      Today is my last day at work and my boss wants me to BCC anyone I have ever sent an email to announce my departure.

      I have tried exporting all my sent messages and trimming the list by advanced sorting out the duplicate email addresses in excel, but messages with multiple recipients are plentiful and need to have the emails separated into individual cells at the very least.

      I also tried the .NK2 file route. I downloaded the MFCMAPI program to find my hidden autofill contact file, but it can only be exported as an .xml or .msg file and I don't know how to handle those files properly to get the data I need.

      Does anyone here have a solution to automatically add every autofill contact on Outlook as BCC recipients for a final email?

      EDIT: I found a solution that worked for both of us. I emailed the clients I remember as the most important and set up an automated reply to handle those I forgot to message.

      11 votes
    18. What programming/technical projects have you been working on?

      This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's...

      This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's interesting about it? Are you having trouble with anything?

      7 votes
    19. UI/UX Design for web dev

      Does anyone have any good resources, books or otherwise, in regards do good design for web dev? I'm a self taught full stack dev who just can't really make things look "pretty". They are...

      Does anyone have any good resources, books or otherwise, in regards do good design for web dev? I'm a self taught full stack dev who just can't really make things look "pretty". They are functional, but..that's about it. I know CSS, but maybe I just don't have an eye for it?

      Any suggestions would be great, thanks.

      19 votes
    20. What programming/technical projects have you been working on?

      This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's...

      This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's interesting about it? Are you having trouble with anything?

      11 votes