Jump to content

shadow_ray

Member
  • Posts

    398
  • Joined

Awards

This user doesn't have any awards

2 Followers

Profile Information

  • Location
    25544

Recent Profile Visitors

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

  1. This community's willingness to give relevant answers to questions is remarkable, even if the question does not make much sense. I don't think I ever heard criticism that was this neutral. Y'all must be really nice people IRL
  2. Just a side note. Not long ago i was browsing the VLC source code and ran into this: https://github.com/videolan/vlc/blob/f7bb59d9f51cc10b25ff86d34a3eff744e60c46e/include/vlc_arrays.h#L377 Might be interesting to you.
  3. Use Object.Keys() https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys You can do const object1 = { a: 'somestring', b: 42, c: false, }; for (let x of Object.keys(object1)) { console.log(x + " -> " + object1[x]); } Edit: Yeah, entries() should work as well. Try this: const object1 = { a: 'somestring', b: 42, c: { d: "d", e: "e" } }; for (const [key, value] of Object.entries(object1)) { console.log(`${key}: ${value}`); }
  4. holly... my believes in the word have collapsed
  5. Overclocking and undervolting can have that effect. The manufacturer will always put CPU-s into a range where it can run reliably, this practice is called binning.
  6. Have you tried something like this? https://code.visualstudio.com/blogs/2020/12/03/chromebook-get-started This is a 3 year old walk trough, might be partially outdated.
  7. Most people care more about Convenience than privacy. It would likely help if you can streamline the hosting process.
  8. that's probably going to be glsl any text editor will do just fine but pick one that supports syntax highlighting for glsl
  9. Yes. This code example shows the basic usage of file streams. int n; std::in >> n; std::fstream fs ("data", std::fstream::in); for (int i = 0; i < n; i++) { int tmp; fs >> tmp; std::out << tmp; } fs.close();
  10. In java, variables cannot change types, declare it as a JLabel. Can you show us the rest of the code? It's not obvious what's happening here. Are those variables object properties?
  11. This piece of software can almost do everything i wanted: https://github.com/zhongyang219/TrafficMonitor
  12. Blindly trusting chatgpt with anything is a bad idea. it doesn't know what it's saying, it just predicts what is likely to follow in a conversation. It's good to know that my job is safe... for now.
  13. Solve the problem in the brute force way first, then try to come up with better solutions. How would you do it by hand? Write some numbers on sticky notes then try to remove the duplicates. Spend as much time as you think is reasonable, there is noting wrong with looking at solutions, just make sure you understand what every line does and don't copy paste code.
×