Jump to content

babadoctor

Member
  • Posts

    4,199
  • Joined

  • Last visited

Reputation Activity

  1. Informative
    babadoctor reacted to keskparane in Prepaid Data Plan for cellphone   
    Well if you're ever in Australia use Aldi prepaid.
  2. Informative
    babadoctor reacted to Levisallanon in Prepaid Data Plan for cellphone   
    You might want to look into TheThingsNetwork which runs on LoRa.
    I think this article explains some of it
    https://www.thingforward.io/techblog/2017-09-27-getting-started-with-lorawan-thethingsnetwork-and-platformio.html
  3. Informative
    babadoctor reacted to jincio in Pick random image from folder in NodeJS?   
    You could use the native library 'fs'. and use a method of that library that is readdirSync()
    var fs = require('fs'); var files = fs.readdirSync('/path/to/dir/') /* now files is an Array of the name of the files in the folder and you can pick a random name inside of that array */ let chosenFile = files[Math.floor(Math.random() * files.length)] the discord part seems correct, only that you need to change the path to the image to
    '/path/to/image/' + chosenFile P.S. you could use the variable '__dirname' which is the path of the current module so for example if your .js is in '/home/user/Project/discord-bot/app.js' and you need the image in '/home/user/Project/discord-bot/images/image.jpg' you can just write __dirname + '/images/image.jpg'
  4. Informative
    babadoctor reacted to GalacticRuler in mouse and keyboard for games   
    PCPartPicker part list / Price breakdown by merchant
    Keyboard: Cooler Master - MasterKeys L Wired Gaming Keyboard  ($79.75 @ Amazon) 
    Mouse: Logitech - G502 Proteus Spectrum Wired Optical Mouse  ($52.00 @ Amazon) 
    Total: $131.75
    Prices include shipping, taxes, and discounts when available
    Generated by PCPartPicker 2018-07-28 14:01 EDT-0400
     
    Here's a relative idea of what you would be looking at.
  5. Informative
    babadoctor reacted to vorticalbox in Is javascript promise the same as an arraylist in java?   
    Promises are like callbacks, it means that part of the code will be executed only when the promise is resolved.
     
    Bare with me I'm on my phone, so say you were using nodeJs and making an api request
     
    const got = require('got'); const results = got.get('http://example.com/data/123'); console.log(results)  
    Because the got request is async it will fire of the get request then move on to the console.log and you'll get undefined.
     
    Now got returns a promise so
     
    const got = require('got'); got.get('http://example.com/data/123').then((results) =>{     console.log(results) })    
    This will cause the event loop to wait until the promise is resolved before doing the console.log
     
    What is great about promises is the  you can chain .then and what ever is returned from that function is passed to the next one.
  6. Informative
    babadoctor reacted to reniat in Is javascript promise the same as an arraylist in java?   
    Apples and oranges. a promise in JS seems to be a way to write asynchronous code (i've never written concurrent JS, so i could be wrong), while an arraylist in java is just an implementation of an abstract data type. The only semi-related aspect of arraylist is that there are concurrency concerns in that arraylists are not synchronized so you need to be careful if you have multiple threads operating on the same list.
  7. Agree
    babadoctor reacted to JohnMLTX in Second and third monitors has delayed input   
    that would do it. chrome is... weird.
  8. Funny
  9. Funny
    babadoctor got a reaction from Bazrat in Nintendo and Xbox throw Cross Play Shade at Sony   
  10. Funny
  11. Like
    babadoctor got a reaction from ngendo20 in Nintendo and Xbox throw Cross Play Shade at Sony   
  12. Funny
    babadoctor got a reaction from NTDaws in Nintendo and Xbox throw Cross Play Shade at Sony   
  13. Informative
    babadoctor reacted to vorticalbox in Capture 2.4ghz radio waves with wifi card?   
    Would it not be a better idea to try modify the controller to send signals on the antenna? 
  14. Informative
    babadoctor reacted to riklaunim in Capture 2.4ghz radio waves with wifi card?   
    You could use a software defined radio like HackRF One or in some cases much cheaper ones made based on some DVB-T receivers. That gives you access to raw radio signal and not what WiFi chip is processing to be WiFi channels.
  15. Informative
    babadoctor reacted to Unimportant in Capture 2.4ghz radio waves with wifi card?   
    More critically: It's highly unlikely that the system can in any way have direct access to the WiFi radio signal. Much more likely would be that the WiFi card's controller handles all the radio stuff and then just hands the decoded data to the system much like a normal, wired, NIC.
  16. Informative
    babadoctor reacted to Mira Yurizaki in Capture 2.4ghz radio waves with wifi card?   
    On another point, "2.4 GHz" usually means a range of frequencies that are close enough to 2.4 GHz (also known as the 2.4 GHz band). It doesn't actually mean these devices run at 2.4 GHz. For example, 802.11n channel 1 is at 2.412 GHz while channel 11 is at 2.462 GHz.
  17. Informative
    babadoctor reacted to kb5zue in Capture 2.4ghz radio waves with wifi card?   
    Don't forget the possiblities of phase shifting and frequency shifting.
  18. Informative
    babadoctor reacted to Enderman in Capture 2.4ghz radio waves with wifi card?   
    No, RC uses FHSS technologies and specific frequencies which wifi equipment can't receive.
    It is not as simple as 2.4GHz = 2.4GHz.
  19. Like
    babadoctor reacted to AskTJ in Create windows 7 usb repair disk from windows 10?   
    Do you have an .ISO file for Windows 7? If so, download Rufus online, and use an 8GB USB to burn the .ISO file onto the USB. Then install Windows 7 as you would. 
     
    Congratulations on 4000 posts by the way. @babadoctor
  20. Informative
    babadoctor reacted to Donut417 in Why does coaxial cable have a max speed of 100 megabits?   
    Docsis 3.1 can 10 Gbps down and 2 Gbps up on coax, Docsis 3.0 and above uses channel bonding. Where they take multiple frequencies/ channels to do download and upload, Which is why they can hit those fast speeds. . Moca 2.0 can do up to about 800 Mbps. The adapters you linked do not follow the Moca standard, which sucks, dont buy those. Moca can exist with cable and internet running thru the coax. Moca uses the higher frequencies on the line basically 1 Ghz to 1.5 Ghz, While the cable co uses 5 mhz to 950 Mhz on the line currently, though  Docsis 3.1 can use up to 1.2 Ghz, many cable co's do use up to that yet. 
  21. Informative
    babadoctor reacted to LogicWeasel in Why does coaxial cable have a max speed of 100 megabits?   
    It's more of a "how much signal can you cram down a pipe without dropping it" thing.  Not sure it has a law.  Somewhat like how Wifi is getting faster but there's only so much you can do with the 2.4Ghz channels.
  22. Informative
    babadoctor reacted to LogicWeasel in Why does coaxial cable have a max speed of 100 megabits?   
    Now that you've specifically stated what you were after I refer to my previous answer: there isn't an IEEE standard to allow us to do that (the Technology and standard have to exist to allow the wire to do that).  At least not in any way readily available to consumers.  I am aware of fiber solutions that do that very well that are far more available.  I think it's safe to say that if you really want to move files in a LAN above 10Gb in speed, you've hit single-mode fiber territory and need to get fiber NICs for your hosts, and a fiber network switch (possibly also an adapter or fiber termination for the router).

    Any business, scientific consortium, or datacenter who needs a similarly extreme tier of network throughput often resorts to a proprietary (freaking expensive) solution for their needs.  In an example I'm lightly familiar with, when Cray Research builds networks for their super computers, they don't use standard Base T copper protocols.  They built the Ares interconnect chip and started with copper (prior to 2015), and ended up with fiber in their modern proprietary network solution.  Anyone who can afford that kind of budget isn't worried about using coax or Cat 5e copper.  They build out and pay what they want to suit exactly the network they want.
  23. Informative
    babadoctor reacted to Mira Yurizaki in Why does coaxial cable have a max speed of 100 megabits?   
    With 40GBASE-T and Cat8 cables we could, but neither which really exist yet.
  24. Like
    babadoctor got a reaction from Mr Technician in Redirect links in chrome?   
    yeah my own browser i would like to redirect domains that begin with specific prefix
     
    i figured it out though
  25. Funny
×