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

Trebblebob

Member
  • Content Count

    656
  • Joined

  • Last visited

Awards

This user doesn't have any awards

5 Followers

About Trebblebob

  • Title
    Member

Profile Information

  • Location
    Scotland
  • Gender
    Male
  • Occupation
    Student

System

  • CPU
    i7-4790K
  • Motherboard
    Asus Z97-P
  • RAM
    24GB HyperX Fury 1866MHz
  • GPU
    MSI GTX 970 4GD5T
  • Case
    NZXT H440
  • Storage
    500GB Samsung EVO 850
    1TB Seagate Barracuda
    3TB WD Caviar Green
  • Display(s)
    Dell U3219Q
  • Cooling
    Corsair H55
  • Keyboard
    Anne Pro 2 (Kailh Box Whites)
    Filco Majestouch 2 TKL (MX Blues)
    Corsair K70 LUX (MX Reds)
  • Mouse
    Matte Black Glorious Model O
    Razer Deathadder 2013
  • Sound
    Sony MDR-1000X
  • Operating System
    Windows 10 Pro
  • Laptop
    MacBook Pro 2016

Recent Profile Visitors

2,793 profile views
  1. Few things you might want to know: I believe the double clicking was an issue caused by the Omron switches they use in their mice, I think they've tried to rectify the issue in their latest batches of switches but it is too early to tell if it has been fixed (I'm not entirely sure if this is true though so take that with a pinch of salt). I've never had to deal with their support myself but some people claim that it can be a lost cause, but if you do manage to get a hold of them they'll probably just send you a replacement mouse if there is a problem. Logit
  2. Logitech leaked an even lighter version of the G Pro Wireless, you should maybe hold out.
  3. You've got it the wrong way around, they're just serving a normal page with an image on it. "/9e3a0083a37d03274c0f733fbcf389ba/tenor.gif" are just route parameters which are being added to an <img> element: I'm guessing media1.tenor.com points to an NGINX server which only serves static content.
  4. If you want to stick with Corsair, they offer low profile boards (but it's overpriced IMO). I've never had the chance to use an MX Keys but everyone seems to give it great reviews so it's worth a shot if you're still not keen on the low profile mechs.
  5. Most Xbox wheels have PC compatibility (as Xboxs run Windows 10), there is at least a 95% chance that it will work.
  6. I'm pretty sure Logitech recently fixed their double clicking issues.
  7. You can return two values in Python, for example: def split_name(name): name = name.split() return name[0], name[1] firstname, lastname = split_name("David Souffle") print(firstname) # David print(lastname) # Souffle And as the others have said, you should read up on scopes.
  8. locations = pickle.load(fh) This line is producing an EOFError. Use a debugger and it'll show you this. You can fix this by setting: locations = apps as its loading the same data Going to be honest here, your Execute() function is a bit of a shit show. Why can't you implement it like this? def Execute(action, app): action = action.lower() if action == "close": CloseApp(app) elif action == "open": OpenApp(app) elif action == "regist": GetAppsAndLocations(apps, locations) Also, the startfile() function is undefined. It seems like the Sync
  9. #include <stdio.h> int main(void) { int numbers[5]; int i; for(i = 0; i <= 4; i++) { printf("Enter number: "); scanf("%d", &numbers[i]); } for(i = 0; i <= 4; i++) { printf("%d\n", numbers[i]); if (numbers[i] == 0) break; // add this line } return(0); }
  10. You don't need to specify that it is a .py file, Python already knows this so you can just use otherfile without the .py. Yes, it works the same way. I'm not entirely sure if this will work the same way if you convert it to an executable. I see no reason why it wouldn't, but I also don't know why you want to turn it into an executable.
  11. main.py: from otherfile import hello print(hello) otherfile.py: hello = "world"
  12. You'll need to store it in a separate .json file. You should have your program.py file and a data.json file (you can name them what you want), you can store it where you want but I'd recommend just storing it alongside the program.py file. Really basic saving/storage: import json # load data with open('data.json', 'r') as file: data = json.load(file) # create new Key-Value pair data['discord'] = 'PATH_TO_DISCORD' # save data with open('data.json', 'w') as file: json.dump(data, file)
  13. Nope, just install the json package and you're good to go.
  14. Store it as a JSON object { "origin": "PATH_TO_ORIGIN", "steam": "PATH_TO_STEAM" } https://www.w3schools.com/python/python_json.asp
×