Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Content Count

  • Joined

  • Last visited


This user doesn't have any awards

About bover21

  • Title

Contact Methods

  • Twitter

Profile Information

  • Gender
  • Location


  • CPU
    Intel core i7-4790k
  • Motherboard
  • RAM
    Corsair Dominator Platinum 8GB
  • GPU
    MSI GeForce GTX 1080 Gaming X 8G
  • Case
    NZXT H440
  • Storage
    WD Blue 1TB, Samsung 840 evo 250gb
  • PSU
    Coolermaster v750 semi modular
  • Display(s)
    LG 34UC79G, Acer G237HL
  • Cooling
    Corsair Hydro Series H100i
  • Keyboard
    Razer Blackwidow
  • Mouse
    Logitech G502 Proteus Spectrum
  • Sound
    Logitech G933 artemis spectrum wireless
  • Operating System
    Windows 10
  1. Like this? function test(func) { if (typeof func !== "function") { return; } for (let i = 0; i < 10; i++) { func(i); } } test(function(x) { console.log(x); }); It is really just what duncannah said, but with a small expansion. If this is not what you are looking for you should describe your problem more clearly. And also why you want to use it in this specific way.
  2. A fun challenge, And nice work, but your code can be improved in a number of ways. You also implemented your own search function for an array, nice practice but javascript already has a prototype for this .indexOf(). It is good you want to code and try new things, but it is also not needed to reinvent the weel. In your code you also use a lot of "magic numbers", you should always try to prevent that as much as possible, because if you look back at it after a while you don't know what all the numbers are and what they do. Also what numbers do you need to change if all of a sudden your alphabet changes. If the variable is a property of another object just use that like the array length in this case. I found it an interesting challenge so I had a go at it myself, I created a function for the shift of the characters, this allows you to uses this part of the projects in others if need be. It also allows you to easily expand it. In my case I made it so it can take any shift, positive or negative. The while loops allows for shifts larger than the length of the array. There are other/better ways to do this but I kinda forgot that it was an option to have larger numbers and this way I only needed to change out if for while. This code also solves the problem with spaces, because spaces aren't in the alphabet the function just returns the character. const Charset = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]; const CharShift = 13; function shift(input, shift) { let i = Charset.indexOf(input); if(i === -1) { return input; } let pos = i + shift; while(pos >= Charset.length) { pos -= Charset.length; } while(pos < 0) { pos += Charset.length; } return Charset[pos]; } function rot(str) { console.log(str); let output = ""; for (let i = 0; i < str.length; i++) { output += shift(str[i], CharShift); } console.log(output); } rot("SERR PBQR PNZC");
  3. It's a very common error I have had a lot of times aswell. There are a couple of fixes for this, press reset just before uploading. Or just spam the upload button in the arduino IDE. Another possible fix is to change the Erase Flash option "Tools > Erase Flash > All Flash Conents" But do keep in mind this might wipe eeprom. It is also possible that the ESP is just dead, if you toch it and it's really hot that is generally a good indication that it is dead. If it is none of the things above, try uploading your code without any wires conencted, some pins have special functions at startup and overriding the default values could make it so you are unable to upload code. I've listed the pins below. If you still have issues, it would help if you provided the ESP model you are using ESP-12/ESP-12E/ESP-32 etc. and if you are using a development board such as a nodeMCU.
  4. Either EDM, or some dramtical music with a lot of tension to keep my energy level high. But nothing with main vocals, those just distract me.
  5. I started with PHP, then Java then C, C# and C++. I also picked up javascript somewhere.
  6. Now I'm sure this comment is going to piss some people off but the basics of most programming languages are relatively the same. An if statement, while or for loop don’t really differ between the most popular programming languages. So an “easy” way of getting into programming is an Arduino, a regular starter kit should keep you going for a while. Then when you get the hang of that start thinking of your own projects to do with them. The internet is full of things people make with arduino’s. If you feel like you got the hang of Arduino step it up to like an esp8266 (they are like 3 bucks) and that opens up a whole new world. Most importantly you should start small, but it should be projects you want to do. If you don’t enjoy it then there is no point in making something. The advantages of an Arduino over writing desktop apps is that you can actually see things happening. While in the early stages of desktop programming not a whole lot happens in my opinion. But if you really want to get into desktop programming languages like C# and Java are easy to recommend. And you can just search on youtube for a tutorial on those languages. But like all things the first couple of things you make will not look like much but eventually you can make whatever you want. One of the nice things of being able to code.
  7. I don’t know the specifics of your camera's but I'm assuming that it is just regular IR. Building one is not super easy but not hard either. I would buy a regular solar light since it already has everything you need and this LINK on aliexpress. Maybe they have them on amazon aswell didn't check. And just use the solar light for parts, it is probably easier and cheaper to get the solar panel, battery and board from those things then the make it yourself. If you can solder them together it might work, you would need to check the voltages though.
  8. Good you are getting into arduino. It's generally recommended to always connect both RX and TX. TX --- RX RX --- TX Also make sure the 2 arduino's are connected via ground. GND --- GND I don't see an issue with your code, I usually don't use strings but I don't see why it wouldn't work. Here is a link to a guide on how to do serial communication between 2 arduino's - https://iotguider.in/arduino/serial-communication-between-two-arduino-boards/. This guide isn't perfect as it uses a set length for both sending and receiving but it's good enough to test your setup.
  9. Well those are weird issues. What is the error message do you get with the bluescreen? That could be of great help in trying to figure out what it is. I’ve been sitting for a while thinking about what it might be. It could be a recent windows update, I have personally had a lot of issues upgrading from 1709 to 1803. I also couldn’t find your motherboard as windows 10 compatible for some reason. Pretty sure they just forgot to add it as the entire list doesn’t have any Z270 chipset, list HERE. Anyway if you got them after upgrading windows it might be worth a shot downgrading to an older version, problem with that is that you have to reinstall everything that is on your boot drive. It’s the reason I haven’t downgraded because the issues I have with windows aren’t as annoying as having to reinstall everything again (yet). What I did notice about the games you described having problems with is that they all use a version of DirectX, while CS:GO uses OpenGL. So based on this I would remove the current display drivers with DDU and reinstall the drivers again. Ohh no I feel like microsoft support now. You could also try to use the "System File Checker" it fixes errors in your window version, it probably wouldn't fix your issues but it's worth a shot.Here is a link to an article by microsoft on how to do it https://support.microsoft.com/en-us/help/929833/use-the-system-file-checker-tool-to-repair-missing-or-corrupted-system. This is the best I could come up with. Maybe someone else has some better ideas. Try and write down the error code with your bluescreen that gives you a better idea of what causes the error to begin with. DDU - https://www.guru3d.com/files-details/display-driver-uninstaller-download.html
  10. Hey everyone, I thinking about getting a new monitor setup. Now I am kinda split between 2 choices. Both monitors are curved ultrawides. But there are some differences. I also need a new GPU to power the new setup. I was thinking a rx480, the 2nd monitor is nothing special, just a screen with discord on it and maybe a movie sometimes while I am gaming. These are the monitors I have trouble choosing between. BenQ XR3501, 2560 x 1080, 144hz. But no freesync, 2000r curve, 550 euro (35”) Or LG 34UC79G-B, 2560 x 1080, 144hz, freesync, 3800r curve, 600 euro (maybe 550 if I can get a good deal) (34”) I hope you guys can help me make choice between these 2 monitors. ~bover21
  11. I just wanted to say Thumps for the CES coverage this year. You guys really had your stuff together this year and the videos were way more like a regular LTT video. The shots of the products were all beautiful and sound quality was amazing. Overall amazing job. I hope others agree on this with me.