Jump to content

JacobFW

Member
  • Posts

    561
  • Joined

  • Last visited

Everything posted by JacobFW

  1. So I've had multiple times where I've gone from watching a video with relatively low volume to one of LTT's videos, only to get the absolute crap blasted out of my ear drums, because you guys keep starting off every freaking video with Linus at max effing volume. Audio has always been one of youtube creator's biggest problems, and crap like this really is just making it worse.
  2. If you can find the MiniTool Parition Wizard 10.2.1, you can use it to clone a disc for free. I've used it a lot over the years and it usually works well for me. You need to use that specific version though. All the ones after that they require you to pay. The only gotcha I've encountered with it is if the disc you're copying to is smaller than the current size of your partition. In that case you need to first shrink your partition, clone it, then expand it to it's full size. The tool says it will expand it for you, but that is the one situation where I see it some times fail.
  3. I feel like this could almost certainly be done using a subquery in your main select, but I'm not sure how you're schema is set up. How are your categories stored related to the product? Do you have a separate table with the product id and the category description/id, or is it just a text field in the product table that literally has "Accessory,Winter" as it's value?
  4. Just want to clarify that I'm not looking to start a discussion on the merits of RJ45/FIBER and/or the practicality of it's use for diyers at home. Just looking for info about products only. So a few weeks ago I discovered that there was in fact a new standard, Cat8, for RJ45 cables, rated at 40gbps (although yes, Cat6a and Cat7 are both capable of those speeds at much shorter distances). What I have not been able to find however, are any products that appear to actually be capable of using it. I saw one video of some dude in a data warehouse using something with an rj45 connector which claimed to be 40gbps, but I have not been able to find any pcie cards, or even qsfp+ transceivers. So I wanted to see if anyone knows if there actually are any publicly available products that use 40gbps rj45.
  5. I ran it through this javascript unobfuscator: https://www.dcode.fr/javascript-unobfuscator (see attached for the code or run it yourself) It's not perfect but it was able to decode a lot of the function names. Assuming the names are correct and weren't also changed to be even more deceptive, it looks like this is related to notifications, and possibly some other things to. It looks like there is also an encryption library that was included in the script, but that's not too out of the ordinary. For the sake of whoever developed this, I really hope they didn't have to do it in native JScript. It can be a real pain to use, especially if you're use to modern Javascript comforts. unobfuscated.txt
  6. I'll be honest I just feel like complaining about this because this has been driving me nuts for a while. Has Google Search just been a complete piece of s@#! for anyone else? It keeps getting super fixated on one word in your query and ignores everything else, and not just for one search result, but a good majority of them. Or where it instead decides to search for terms indirectly related to something I searched, like since I live in Dallas, there have been several times I've searched for something in or about Dallas, and usually I have several results show up on the first page where it searched for "County" instead of "Dallas", despite a) "County" wasn't something I typed, and b) the result it pulled up still had nothing to do with what I searched for and c) there were no other keywords for what I searched for on that page. It's cool and all that it can search for similar words/concepts but Christ it still needs to be used to return meaningful results. And yes, because I know someone is going to bring these up: I am using search operators to try to have it focus more on certain parts of my query I do have popular results disabled
  7. Something that always drives me nuts is when I'm using an interface, and go to click on some part of the menu, but I do it at roughly the same time the program decides to make some change to the interface, and so I end up clicking on some button, option, etc. It's always irritating, and depending on what the new item I can click on is, the results can be disastrous. What I've started doing on the sites I work on is to "pause" certain events when I make changes to the interface for a few hundred milliseconds, to give the user time to recognize that the interface has changed. The way I accomplish this is to attach an event listener to the document itself during the capturing phase (i.e. where the very first event listeners are called) and have it stop propagation and stop default. I then use setTimeout to remove the handler after a certain period of time. function disableEvent(event, time){ var h = function(e){ e.preventDefault(); e.stopPropagation(); return false; } var ref = document; ref.addEventListener(event, h, true); setTimeout(function(){ ref.removeEventListener(event, h, true); }, time); } //Example using it. Disable the click event for 800ms disableEvent('click', 800); Technically it doesn't fully prevent any action from taking place; if another event listener was added to the document before this one, which also used capturing, then it could still get executed, however this is extremely unlikely since a) most people don't attach event listeners to the document itself, and b) most people don't event listeners with capturing.
  8. I get the feeling there's a bit more to your question than you're saying.
  9. Slightly disappointed this wasn't title Epic Win, but hey, you win some you lose some This is great news, although I'm hoping this doesn't out to be like the new repair program from a few years ago, with one step forward and 3 steps back. No doubt apple's lawyers are going to be looking for a loophole (assuming they didn't already craft one when they wrote this new policy).
  10. Ok..... not sure what any of this has to with what I was saying but good to know. Ah, I see. You didn't read my entire post. Always nice to see. Reductio Ad Absurdum And/Or. I think there need to be more options, and yes, I'm glad the Cerberus X cases exists. There needs to be more options is what I'm saying. I mention size simply because I think that's the easiest first step for manufacturers to make, but I'd like to see shapes as well. Once again, as I mentioned in my original post, manufacturers have been making M-ITX and M-ATX cases for YEARS that don't have expansion slots because of integrated graphics, and shockingly those cases are still being sold and the manufacturers are still in business; who-da-thunk-it. Intel's had IG for years, and AMD is still catching up in that regard in terms of having all their cpus come with it; that's one area where they still have their heads shoved firmly up their colons because they don't want to interfere with their D-GPU sales.
  11. So I'm aware that there are occasionally representatives from manufacturers on the forum, so I would like to take a second to rant about an issue I've had with pc cases for several years now, and which does not seem to be getting any better. ATX Cases are f*@#ing BORING. Look at the variety of designs that are available for M-ITX and M-ATX cases, and I don't just mean in size (although yes, more slimmer atx cases would be nice; just look at the review for the Thermaltake Core G3 ATX Slim). You can get Tube cases Monitor stand cases Cases that mount on the back of monitors just to name a few. Meanwhile, if you want an ATX case, the manufacturer apparently assumes you're going to have a triple graphics card setup AND water cooling, under pain of death. Now I'm guess some of you reading this have already jumped to the comments to call me an idiot, and say, "well duh, why did you buy a full size ATX MB then you idiot???" Well, consider these for a second. What if: I already bought/built the pc a while back, and am still happy with the performance, but want a cooler case? What if I have some older parts I'd like to do something with, but I don't want or have room for a giant ass regular atx case? What if I'm on a budget and am buying older parts off of ebay, and the full size atx motherboards are the best deal? What if there is a brand new M-ITX/M-ATX mb I want, but it's either consistently out of stock or significantly more expensive than the ATX one? What if there's a f*@#ing pandemic going on affecting supply chains, and I'm just trying to make the best with what I have/can get? And again, I've had this problem for several years now, BEFORE the pandemic. I think the issue here is that these manufacturers seem to think they HAVE to design an ATX case that supports all or nearly all of the possible features, but that's true. Some of those weird M-ITX/M-ATX cases place huge restrictions on what you can build in them. Those motherboards all have at least one PCI-E slot, but many of the cases don't give you an expansion slot at all, and that's completely okay. Even the Thermaltake Core G3 I mentioned above, supports full size ATX mb, but only gives you enough room for one dual slot gpu, and *gasp*, not only has the world not come to an end, but it even has a 4.4/5 on Amazon. So again, to any case manufacturers out there, please start coming out with some more interesting designs for ATX motherboards. As new versions of Ryzen come out and more and more of the older generations go onto the 2nd hand market, that's also going to include many APU's as well, so I think that at bare minimum, there needs to be a slim case that takes an ATX mb, has no expansion slots, and takes an SFX or an external psu. Again, it doesn't have to support all the features, but at least give people with them more (and more interesting) options.
  12. So I am a bit confused here. Please remember we don't already know all the details about this project you do. I think the problem is there are two different issues here: The primary problem this database is being designed to solve How will it function with multiple users interacting with it, with some having different permissions Just so we on the same page, ignore problem 2 for a moment. Just pretend it's only going to be one person using this system. What are you using this database for? Yes, you said training, but can you just be a little more specific, and give a brief overview of what the user will be doing day to day?
  13. Well first off one thing you need to specify is if you're doing this in your browser (client side javascript), or on your local server (server side/node). As previously mentioned there are solutions available for node. There are likely dozens of libraries capable of doing this in the browser, however normally node solutions tend to infect search results when you're looking for client side javascript solutions. With that being said you might want to check out this post for a browser based solution (note: i haven't tested it myself). https://stackoverflow.com/questions/8238407/how-to-parse-excel-xls-file-in-javascript-html5 Another important thing to bear in mind is that there are several different excel formats. XLS and XLSX are NOT the same thing at all, and will likely require different solutions (though if you have a library that works for one format you might as well try the other). Additionally Excel itself can read a bunch of other file types and convert them to spreadsheets. CSV, TSV, and html tables are just a few examples. You can rename any of those file types to .XLS or XLSX and Excel will pretty much parse it without issue. The simplest solution on your end though would to be to just have the user convert the file to a csv before hand and upload that. At that point you're just working with a plain text file, which would be a lot easier.
  14. Just using the words "alignment" and "css" in the same sentence is giving me flashbacks. That crap has given me trauma.
  15. Question for LTT. In the last few years laptop manufacturers have adopted Apple's practice of riveting the effing keyboards to the laptop frame. So if anything happens to the keyboard (which are usually one of the first/easiest pieces of a laptop to be damaged) it becomes a freaking nightmare to replace, and usually just ends up with you having to get a brand new laptop. What used to be a $30, 15 minute fix you could do yourself now essentially totals your laptop. I would just really like to know why LTT has not been calling manufacturers out on this? Linus has spent years complaining (rightfully imo) in nearly laptop review about the atrocious webcams & microphones included in laptops, but I can't think of any reviews he's brought this up in.
  16. I agree with @tarfeef101 This is a good case of "Learn the rules before you break them" Speaking from experience though I will say this is a very, very good rule to follow. Because global variables can be modified by any other code, this can lead to some extremely infuriating intermittent errors that can be a nightmare to solve. So it is best to just go ahead and get in the habit of not using them, until you come across a situation where you need them.
  17. Best bet would be to find an introductory tutorial for node.js which shows you how to return a file based on an http request. This one may be of some help to you https://www.tutorialspoint.com/serving-html-pages-from-node-js
  18. So I think there's actually at least two different questions that need to be answered for this to make sense 1) How is the webpage you view and interact with generated, both initially and as you use it? 2) Is the DOM just a parsed version of the HTML text or is there more to it than that? 1) One thing you'll notice on most pages is that if you go into the Inspect Element viewer, and compare that to the HTML when you go to View Source, you'll see that while they may have a little in common, there's still usually vast differences between them (technically they could be the same, but that's fairly uncommon as we're about to see). When you request to go to a page, your browser will download the initial html (which is what you see under View Source). In that HTML however are usually script tags, which contains code the browser will execute. In many sites this code will then finalize the web page that you'll see and interact with, and setup handlers for what happens when you, the user, clicks on certain buttons, or interact with various parts of the pages. You have to remember that HTML doesn't really "do" anything. It's more of schematic, that describes how the page should be constructed (think back to old sites from the 90's/early 2000's). If you click on a button to go to a certain menu or submit an order, it's the script code that runs in the background on your browser, modifying the web page that you see to respond to your requests. When you click on Inspect Element, you're viewing all the changes to the web page that have taken place up to that point, starting with the browser downloading the initial source, running the initial scripts, and any other changes the scripts have made up to that point based on how you've interacted with the page. 2) The HTML (both what's loaded at the start and what the script code has modified as time has gone on) does govern the overall structure of the DOM, but there is more to it in that. First and foremost what you have to understand is the DOM is essentially a specialized database, which is designed both to aid the render engine as it creates what you see in the browser, and to allow script to interact with it quickly and easily. The data in the HTML is parsed and stored in the DOM's internal format, but then the DOM also has the ability to store extra data along with that. Additionally you can store handlers along with that data, so that if say, the user clicks on this element, it should execute a certain piece of code which the developer can specify, or if say the mouse hovers over a certain box or button, it should show a small tooltip which gives a description of what that's for. TBH I feel like this is a case where reading the theory/description of what is happening might just confuse you more. I would suggest reading some tutorials on Javascript & JQuery, and play around with it yourself. I think it will make a lot more sense once you see how it works when you use it yourself.
  19. Let's say you have a 10gb file you want to copy. Your program will initialize a certain number of threads (lets say 10 in this case). Essentially what we'll do is divide the file into fixed size chunks, and we'll assign a thread to copy each chunk. To be clear, we won't actually move data around to divide it, just give it different start and end bounds in the file. So the thread that copies the first chunk will get the bounds 0-99mb, thread 2 will get 100-199mb, thread 3 will get 200-299mb, etc. For Spinning Drives, a multithreaded copy is probably going to be slower due to it having to move the read head around, which is the slowest part of any read/write operation (could be wrong; if so please correct me). For SSDs however multithreaded copy can be very helpful. DMA does help to speed up this process but it isn't a substitute for multithreaded file copy. To see why let's take a high level look at copying data from one machine to another. Source Drive -> Local Memory -> Send over Network -> Remote Memory -> Remote Drive. Not at first glance you might think "okay, that's pretty straightforward, how are you actually improving on that?" Well the issue here is the local memory. When you do a read operation what you're basically doing is providing a memory buffer where you need the data, the file, and the number of bytes you want. Prior to DMA, when the data was first read from the drive into memory, it didn't get copied into that buffer. Instead it got copied into another buffer, then into another buffer, then another one, and possibly only then into the buffer you provided (but there could be more buffers). This same process would then happen in reverse if you were writing data, and pretty much the same thing would happen when sending data over the network (only difference is the data ends up in the NIC rather than the drive). All this copying of course makes the process much slower. DMA simply cuts out as many of those unnecessary copies and buffers as possible, and instead lets memory devices access the direct memory the calling program/device needs the data to end up in.
  20. Summary NASA has released the full video showing the descent and landing of Perseverance on Mars. Need I say more?
  21. Short answer is no. Source code is intentionally meant for people. The naming schemes, indentation, comments, etc. All are meant to make it easier for a developer to look at the code and have an idea of what problem the code is trying to solve. Machine code is meant to be easy for the cpu to execute, not for a person to read. Don't get me wrong; yeah, some sort of AI could absolutely guess at the source code looked like based on the machine code, but you're still not going to have the naming schemes, you're not going to have the comments, and no matter how good the AI is, it will always be a guess. And even assuming you had an AI that could recreate 90%+ of the source code, why the f*@# are you wasting an AI on something like that????? Modern Vintage Gamer has a great video on how the source code for Diablo was reconstructed. The only way they were able to do it was because of excess information left in the commercial versions.
  22. To each their own. Very true, but at the same time if you are going to have to learn a new language (especially from scratch like Lii said), then I would argue it's worth is to add just a little bit of additional work in learning, to give you such a wider range of programs you can make. And hell if he wants, there are a lot of tutorials out there for Python and other languages that get straight to the point, and will teach you how to do specific things in those languages, rather than taking a tutorial that teaches Python as a general purpose language.
  23. I'd recommend learning Python. Has some amazing numerical libraries these days, and since it's a general purpose language, you have a lot more flexibility in terms of what you can do. And it being free never hurts either.
  24. RIP Tyler. This year just keeps taking so much.
×