Jump to content

Spev

Member
  • Posts

    1,749
  • Joined

  • Last visited

Everything posted by Spev

  1. Sigh...of course after searching Google for 20 minutes and not finding an answer, then typing up a forum post, I found it 1 minute later myself. You have to go to the "performance" tab to change the color manually of both of those particular buttons. (Why??...I certainly can't tell you why you couldn't change with the rest of the buttons...) Maybe if someone else has the issue this will help them as well.
  2. So through the iCue software which I've only recently downloaded after owning a Corsair keyboard for 2+ years now (got bored of the static red) I wanted to change it to blue or something. (Yeah I'm pretty boring) Anyways, it's all good except I can't seem to find anyway to change the color of the brightness or windows store button up at the top right: I can't left or right click on either of those buttons. Anyone have a Corsair keyboard and can give it a shot to see if it can be done? There doesn't seem to be a way to change it for me at all, even though they appear as if you could click on them like any of the other buttons.
  3. In general certifications are far less impact for programmers (as a resume booster) compared to IT folks (IMO). However, that still doesn't mean you can't learn a lot from them and doesn't mean they aren't useful at all. As someone above mentioned there are some great, challenging, and respected certs out there, for example in networking, CCNA, for example. Although that cert is a lot of router config and stuff like that, you prove a solid understanding of IP and networking concepts throughout, which could help you potentially if that's relevant for you at work as a software engineer. I'm personally interested in some of the cloud certs, like for AWS, although I've found that learning AWS on my own hasn't been too bad. Amazon has a decent amount of documentation, even if you have to supplement it with other research findings.
  4. Before worrying about your Discord implementation, I would work on testing out web scraping in Python with images. A module like BeautifulSoup might be helpful, although there are others as well. Personally that would be the approach I would take. After figuring out how to get the images I want with Python successfully, then You could move on to your discord implementation.
  5. Your code isn't spaghetti and follows PEP8 style guidelines pretty well. The only thing I can think of is to add a little bit of error catching for invalid input to avoid run time errors in your program...but that's pretty darn nit picky especially since this is probably just something you're using for yourself...anyways that's the only change I made, I didn't change your function at all. import math if __name__ == "__main__": def basel(percision): basel_result = 0 basel_term = 0 basel_total = 0 while basel_total <= (math.pi - percision): basel_term = basel_term + 1 basel_result = 1/(basel_term**2) base_list.append(basel_result) basel_total = math.sqrt((sum(base_list)) * 6) return(basel_total, basel_term) try: percision = float(input("Enter the percision for the calculation: ")) pi = float(math.pi) base_list = [] except ValueError as error: # Something not convertable to float was entered, like a string for example print(error) else: print(basel(percision))
  6. I'm not sure there's a setting to do this so that every PowerShell instance will drop the contents of its session history automatically... However, you can do this manually. Your PowerShell history is actually stored in a text file. You can find the location of your text file by entering this: (Get-PSReadlineOption).HistorySavePath You can simply use the Remove-Item cmdlet to delete the file. (Or just do it in the file explorer) Remove-Item (Get-PSReadlineOption).HistorySavePath After entering this command, the history file is delete, and the next command entered in PowerShell will be saved to that file (If you deleted it with that command then a new file is created). This is just an ordinary text file with each line being a PowerShell command entered. You can go through and pick and choose and delete certain commands and then save the file (I guess if you wanted to be malicious and hide that you ran some command, but still have the rest of the history show up). You can even just go ahead and enter a new line of random text and save the file. In your next PowerShell instance you can Up Arrow and it will display the text you entered in the text file even if it was never entered in PowerShell, since all it does is parse through the lines of that file. Anyways, maybe some of this info was helpful to you, but I could not find anyway (like a setting) to drop all history changes upon exiting PowerShell automatically. However, if you just want to delete some, or all, of your history, it can be done as shown.
  7. @Yellow_ Why not just write a short helper function? if __name__ == "__main__": def comb(string): if string == "" or len(string) == 1: return list(string) elif len(string) > 1: scperm = [] for i in range(len(string)): spt = string[:i] + string[i + 1:] for n in comb(spt): scperm.append(string[i] + n) return scperm def combContainer(string): # Get result of comb function result = comb(string) # Using list comprehension, convert each string permutation to a list of characters return [list(item) for item in result] print(combContainer("Hi")) print(combContainer("abc")) Output: [['H', 'i'], ['i', 'H']] [['a', 'b', 'c'], ['a', 'c', 'b'], ['b', 'a', 'c'], ['b', 'c', 'a'], ['c', 'a', 'b'], ['c', 'b', 'a']]
  8. I think coding a small single-page website from scratch in HTML/CSS/JS is a good start. This will kinda give you an initial idea how some of the main languages that go into web development work. Once you feel comfortable you could explore some frameworks like React.
  9. What in the heck is AutoIT? I had to google the .au3 file extension. This looks like Visual Basic but even more atrocious. I'm shook.
  10. There's many differences between Java and C++. Here's just a few of the biggies: Memory management: C++, most memory management is done by the programmer manually Java, has a garbage collector which will deal with a lot of things for you Pass arguments into functions by value or reference: C++ you can pass objects into functions as pass by value or pass by reference. Java passes arguments by value and not by reference. Inheritance: C++ supports multiple inheritance. Can cause classic problems such as the diamond problem. Java does not support multiple inheritance. Interfaces can be used to deal with this, similar to C#. Java is a very popular programming language still today. It's commonly used in web applications, web services, and Android apps for starters. Although alternatives exist for mobile app development like Kotlin, Java was and is a huge part of Android development. I think exploring the differences between Java and C++ would be useful to you as a programmer even if you don't plan on developing much in Java. Like most programming languages, the choice of a languages for a project is heavily influenced by what the project is and what kind of tool set would benefit it most. Are you working with embedded systems? Probably want C/C++. Going to implement a web service? Probably a web framework along with Java. I think overall if you're just trying to learn programming C++ is better. Since you do a lot more things manually than you would in Java it's a good experience for learning, especially regarding memory management.
  11. Hi @Br3tt96 , the following Python code should achieve your desired result: if __name__ == "__main__": L1 = [1, 3, 4, 5, 8, 9, 1, 1] L2 = [0, 3, 9, 1, 2, 1] def print_output(list, multiple): """ Function to print a list of numbers and return a new line every X amount of printed values. Parameter 1 (list): Desired list to enumerate over and process. Parameter 2 (multiple): After printing X values where X=multiple, a newline will be printed. """ # Enumerates over out list, while keeping track of an index, which starts at value 1, not 0. for index, item in enumerate(list, start=1): # Print the current value with a space. end="" ensures no newline will be printed. print(str(item) + " ", end="") # We want to return every X amount of lines, where X=multiple. # The modulus result will only be equal to 0 when our index % multiple has no remainder. if index % multiple == 0: # Here we just print a newline print() # Lets try out our function with the input lists you provided. # I pass the appropriate multiple in based on your desired output. print("First list:") print_output(L1, 2) print("Second list:") print_output(L2, 3) As opposed to example C++ posts above, instead of writing the desired code multiple times in slightly different formatted loops, we create a function to reuse code. The function accepts 2 parameters, the first being the list you want to process, and the second being a multiple. The multiple is an integer value which determines how often the printing function will return a new line. So if you want to produce a new line every 2 lines, pass in a multiple of 2. Here is the result of running the above Python code. First list: 1 3 4 5 8 9 1 1 Second list: 0 3 9 1 2 1 The reason your code isn't producing expected output in one of your follow up posts above: It's most likely an off by 1 error. For example, in my code if you change "start=1" to "start=0" in the for loop, you'll produce a similar incorrect output. I would check your code for off by 1 errors by debugging and stepping through your code. Hopefully this post helped.
  12. I just got a new 4k monitor. Seeing as it's only 60hz I wanted to make it the best it could be for gaming (although that's not the primary purpose I bought it for). It has a "fast" and "normal" response settings. I put it on fast and it's quite a bit better. I've seen monitors in the past with a "slow", "medium", and "fast" setting... It just donned upon me...why are there even "slow" settings? Why not just have the monitor on the highest response setting? Unless you're sacrificing some image quality or something by going with the fastest setting, I'm pretty perplexed why the slower settings even exist.
  13. LOL I'm late to the party on this one but this post is so silly. "Why did they do this". As if graphics card manufacturers are going to base their decisions on the tiny minority of people who attach water blocks to their video cards.
  14. How is it when just doing stuff on your computer? (Non gaming related) Some people say the text is really grainy for a monitor at that size with a lower resolution. I'd love to just pay $300 bucks for a new monitor, but a little worried about that resolution.
  15. As a programmer and light gamer now days, I'm looking to upgrade my current monitor setup with more of an emphasis on productivity rather than gaming. I'm really interested in an ultrawide monitor, but considering a 32 inch 16:9 main display landscape with a 2nd portrait monitor. Dilemma: I've been researching monitors for a couple weeks now and really struggling coming to any concrete decision. All of the 34 inch curved ultrawides seemed to be plagued with backlight bleed (I haven't seen any exceptions), this seems to be ALL curved models. There are some flat models (which seems to be less effected by backlight bleed) but most are at 2560x1080 resolution, which some claim is okay for productivity and others claim is God awful and only suitable for gaming. Cost is also a factor, and I'm struggling to shell out $550ish dollars for monitors clearly plagued with reliability problems and backlight bleed. (Lastly, there are about 300 LG models of ultrawides on the market. Their website 'compare' feature yields blank results on almost every model, making comparing these a nightmare.) Below are the models I've been looking at the hardest but I'm still not sold on any of them. If you have any thoughts or concerns, or OTHER suggestions, please let me know. Thanks! Models I've been looking at: LG 34UM69G-B: https://www.amazon.com/LG-34UM69G-B-34-Inch-UltraWide-Reduction/dp/B06XFXX5JH/ref=sr_1_3?ie=UTF8&amp;qid=1550735096&amp;sr=8-3&amp;keywords=LG+34UM69G-B%3A Positives: Mostly good reviews $300 nice price tag Probably okay for gaming even though not very high refresh rate Negatives: 2560x1080 resolution, might be bad for productivity purposes Dell UltraSharp U3415W https://www.amazon.com/Dell-UltraSharp-34-Inch-LED-Lit-Monitor/dp/B00PXYRMPE/ref=sr_1_1?ie=UTF8&amp;qid=1550735049&amp;sr=8-1&amp;keywords=Dell+UltraSharp+U3415W Positives: Great looking screen (seen it in person once) Slight curve 3 year warranty 3440 x 1440 resolution Negatives: Consensus is this model is plagued with backlight bleed really bad. Most reviews mention it Pricey $550 LG 34UC80-B https://www.amazon.com/LG-34UC80-B-34-Inch-21-UltraWide/dp/B074JKT894/ref=sr_1_1_sspa?ie=UTF8&amp;qid=1550735072&amp;sr=8-1-spons&amp;keywords=LG+34UC80-B&amp;psc=1 Positives: Mostly positive reviews Curved According to reviewer, uses same panel as Dell model above 3440 x 1440 resolution Negatives: Could be plagued with same backlight issues as Dell if same panel Pricey $550 Samsung LS34J550WQNXZA https://www.amazon.com/Samsung-S34J55W-34-Inch-Ultrawide-LS34J550WQNXZA/dp/B07FBS36W2/ref=sr_1_1?ie=UTF8&amp;qid=1550735110&amp;sr=8-1&amp;keywords=Samsung LS34J550WQNXZA Positives: Slightly cheaper than other WQHD monitors ($450) 3440 x 1440 resolution Looks sleek Negatives: Low amounts of reviews (a couple even looked planted, same review on Samsung site) Flat panel (at 34 inch wide might need at least a slight curve?)
  16. So it turns out this was a DHCP issue as predicted by noticing APIPA address. For some reason even though my DHCP server was setup correctly the server had not yet been "authorized" in active directory so couldn't assign IPs....
  17. I'm working on a home lab and building a reference image. I'm following something almost exactly like this guide: https://docs.microsoft.com/en-us/windows/deployment/deploy-windows-mdt/create-a-windows-10-reference-image Skip down to the "build the windows 10 reference image" section. Everything prior is setup. However, I get the following error: I have verified that the credentials in the bootstrap.ini file are valid, I even tried resetting them to be sure. Then I tried pushing F8 to see if I could even ping the server which hosts the deployment share, as I read even though it says connection okay this could be a network issue, here are the results: Not only did the ping fail to the server, but I realize my PC I'm trying to image has an APIPA address. My network setup is slightly different than the article. These are all Hyper-V VMs, and they are all on an internal virtual switch. This includes the MDT server and this machine as well. They get internet from another VM acting as a virtual router which gets them actual access to internet. There is a DC on the internal network running DHCP and DNS. I'm thinking that is maybe the issue since this PC doesn't seem to be getting assigned an IP? Therefore it's unable to access the deployment share. Any ideas of how to fix this, or any other ideas as to the problem?
  18. Hey all, Searching for a new motherboard to pair with my i7 8700k. Finally replacing my good 'ol i7 4790k since I snagged the i7 8700k for $299 on Amazon today. I've really been struggling to find a motherboard for this CPU that I'm comfortable buying. The reviews for almost all the motherboards are pretty trash it seems with numerous problems. I've done multiple hours of research so far. I'm looking for solid recommendations. Here are my general guidelines: Wants: -Reliability -Good I/O options -M.2 2880 support -Great feature set Things I don't need: -Super uber cool RBG lighting -Unnecessary gamery things to add to the price tag
  19. Sweet test! I dragged the windows across to my other 60hz monitor and it updated right away. Looks like I'm getting 75hz then.
  20. I just bought a LG 29UM68-P monitor, 1080p ultrawide. My graphics card is the GTX 1070. The monitor supports up to 75hz. So I got it all setup and had a hell of a time trying to figure out why I couldn't select 75hz for this monitor even thought it's supported (after all drivers updated). Cable was not an issue as I'm using a brand new DisplayPort cable. Turns out I had to go into the monitor settings and turn FreeSync to the "ON" setting. So turns out you have to enable FreeSync in order to get 75hz on this monitor, otherwise its 60hz. Then I was able to go into my display adapter settings in windows and my NVIDIA settings and select 75hz. So my question is am I really getting 75hz? I know FreeSync is like GSYNC for AMD cards...I have never really used either. So my question is while using GTX1070 with this monitor, am I really getting 75hz? I don't really know how to test this, but in my display adapter settings and NVIDIA control panel settings it shows 75hz now. So is everything okay?
  21. So I run the find and fix windows update issues tool (for probably the 10th time at least) and it now finds some random issue? Man this is actually ****. I'm gonna try an update now that it actually seems to have found an issue even though it didn't find this the previous 10 time I ran this tool.
  22. So I checked my BIOS version and I have the most updated BIOS version available for my motherboard...
  23. My motherboard is the Asus Z97-A, maybe I should check and see if it has a BIOS update? Maybe if one exists it might help the windows update issue?
  24. I could really use some help. So the latest update which I believe is the fall creators update is causing me major issues and always fails. First off, every time I turn on my PC "windows update assistant" automatically begins downloading the patch. It pops up and will minimize anything I'm doing at the time (most annoying if I am playing a game online) & hogs my network while downloading. I uploaded a pic of it for ya'll to see. I even try disabling "windows update" in services, which apparently is separate somehow from "windows update assistant". So here's the kicker...it does this every time I restart my PC because the update ALWAYS fails. It freezes during some portion of the installation & then proceeds to restore a previous version of windows. THEN THE CYCLE REPEATS. Turn on PC, windows update assistant automatically starts downloading update, then turn off PC, then turn on PC, windows starts automatically applying update, fails update, restores previous version of windows, then repeat process indefinitely.... I have tried "find and fix windows update problems" which I had to run during the last big patch because of a similar experience. Last time it found issues and then the patch finally worked. This time it can't seem to find any issues. Basically I don't have regular access to my PC right now. Because if I let it download every time I turn on my PC I have to wait 20 minutes for it to attempt to patch then fail and restore. The only work around is waiting till some arbitrary time after during on my PC when the update assistant launches and going into task manager and ending it. PLEASE HELP.
×