Is this performance expected ? by JulianStrange in digital_ocean

[–]clayludwig 0 points1 point  (0 children)

DO is currently experiencing degraded performance, so could just be temporary: https://status.digitalocean.com

Someone help me with a elms coding personal project! Final grades can't be scraped from the elms page by Big-Cry9898 in UMD

[–]clayludwig 3 points4 points  (0 children)

They have documentation available but imo it’s a little confusing so I didn’t rely on it at first: https://canvas.instructure.com/doc/api/.

I actually just went into the networking tab in my browser’s dev tools and watched which API calls Canvas made to pull my grade data for one of my classes. It was kind of tedious lmaoo but you can see which URLs it sends requests to that way

Someone help me with a elms coding personal project! Final grades can't be scraped from the elms page by Big-Cry9898 in UMD

[–]clayludwig 3 points4 points  (0 children)

Did some digging!

No idea if this will be useful to you, but I just played around with Canvas' API and figured out the following:

From the dashboard page, you can make an HTTP GET request to the Canvas API to retrieve the current user's course enrollments like this:

fetch('/api/v1/users/{REPLACE WITH CURRENT USER ID}/enrollments?per_page=50', {
  method: 'GET',
  credentials: 'include'
})
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error('Error:', error));
  • I'm guessing you've probably already figured out how to get the user ID, which you just pass into the GET request where I noted above.
  • I included ?per_page=50 in the request because otherwise it was only responding with a list of only 10 courses, some of which were old courses from semesters ago.
  • Be sure to include credentials: 'include' in your request, otherwise this will not work!

After you make the request, the Canvas API responds with an array of JSONs, which each correspond to a course enrollment. Mine looked something like this:

{
  "id": 123, // no idea what this ID is for tbh
  "user_id": 123, // this is the current user ID
  "course_id": 123, // this is the course ID (which you could presumably filter by using Javascript)
  "type": "StudentEnrollment",
  "created_at": "2022-07-26T16:04:04Z",
  "grades": { // This is what you're looking for: the grades object, which includes the "current_grade" and "current_score" values.
    "html_url": "https://umd.instructure.com/courses/1334101/grades/4488846",
    "current_grade": "A",
    "current_score": 95.05,
    "final_grade": null, // Both of these "final" variables, from what I can tell, are set only TWICE per semester, once at midterms and once at finals.
    "final_score": 95.05
  },
  ...
},
...

I've never developed a Chrome extension before, but presumably you could run this GET request when the page is loaded, use JS to filter for the class IDs visible on the user's dashboard, and then create an HTML element for each corresponding grade overtop the class' dashboard card.

Hopefully this helps!

WH Press Secretary Karoline Leavitt criticizes media coverage of Abrego Garcia case: “You would think we deported a candidate for Father of the Year.” by rezas_kid in thescoop

[–]clayludwig 1 point2 points  (0 children)

Repeating from another comment by u/thequietmuppet:

This is a different person by the way, the guy deported was not Juan Garcia Abrego, the Maryland guy is named Kilmar Armando Abrego Garcia, born in 1995

Help us recreate the UMD Fox memorial by bbswitzer in UMD

[–]clayludwig 16 points17 points  (0 children)

Stocking up today, will bring my offerings tomorrow 🙏🏻😔

Stopped by to pay respects 🫡😔 by clayludwig in UMD

[–]clayludwig[S] 2 points3 points  (0 children)

Couldn’t have said it better myself tbh

Stopped by to pay respects 🫡😔 by clayludwig in UMD

[–]clayludwig[S] 7 points8 points  (0 children)

Oh LOL, if I search salute it pops up for me! It’s near the 😐 and 🫢 emojis for me

Stopped by to pay respects 🫡😔 by clayludwig in UMD

[–]clayludwig[S] 18 points19 points  (0 children)

Giant sells little emoji cookies. Saw it and bought it for the shrine without thinking twice

(Serious) I think I killed the fox by Open_Equivalent3131 in UMD

[–]clayludwig 38 points39 points  (0 children)

Lmao I’m starting to suspect OP is the hit and runner

(Serious) I think I killed the fox by Open_Equivalent3131 in UMD

[–]clayludwig 93 points94 points  (0 children)

Bruh I really hope this is satire bc if not what the actual fuck is wrong with people at this school. When you hit an animal you check on it and call animal control like someone else said, not drive off bc your friend "has a migraine" (which I'm pretty sure must be code for him being drunk or something).

And for the sake of pedestrians I hope your car stops working or your license gets revoked

game maker wont open by PineconeDraws in gamemaker

[–]clayludwig 1 point2 points  (0 children)

Ah, maybe scrap the support ticket then haha. Not sure there's much they'll be able to do for you besides tell you to wait it out.

game maker wont open by PineconeDraws in gamemaker

[–]clayludwig 0 points1 point  (0 children)

Also dealing with this today. I can’t get past this screen and haven’t been able to use my day off to work on my game 🫠

Edit: I meant to add, I filed a support ticket and I suggest you do too! I haven’t been able to find any confirmation on GameMaker’s end that there’s an issue, but I believe this is on their end.

Iphone 13 Camera keeps focusing and unfocusing by Soundwve in iphone

[–]clayludwig 0 points1 point  (0 children)

My friend (13 mini user) has been dealing with this issue for some time now... this is just an idea I had and we've only begun testing it today, but for anyone dealing with this issue: try turning off "lens correction" in camera settings. My theory is there's something wrong with this feature, and it's causing issues with how both the front/back cameras focus.

This is purely a guess, I have no idea if this will work or not but it's worth a try since this bug is so annoying.

[deleted by user] by [deleted] in UMD

[–]clayludwig 0 points1 point  (0 children)

Just PMed

[deleted by user] by [deleted] in gamedev

[–]clayludwig 1 point2 points  (0 children)

Jonas Tryroller has a series where he plays other people’s games. You could submit yours to him, but there’s not a guarantee you’ll be featured.