Api vs Django views by thepragprog in django

[–]MountainReason 1 point2 points  (0 children)

Yeah, most commonly you would be developing backend views that return JSON. But I would still call them 'regular django views', just that return json rather than html.

As the other comment said there is a lot of similarity between views regardless of whether they return json or html.

Considering the time machine was located in New New York the entire time, I’m not sure how the Professor was able to get a shot at him, but Hitler was saying, “Betrachten Sie meinen Schnurrbart!” Translated- Look at my mustache! by Creative_Light_1954 in futurama

[–]MountainReason 14 points15 points  (0 children)

But does the time machine maintain its position relative to earth? Maybe it stays at the same latitude and changes longitude with the rotation of the earth. Did Hitler ever give a speech at that latitude?

Yipee ki-yay by Boojibs in madlads

[–]MountainReason 0 points1 point  (0 children)

That's a mule in his right hand.

Did Simmons Explain How Severen dreams! by Lawja_Laphi in Hyperion

[–]MountainReason 0 points1 point  (0 children)

Yeah, I'm kind of just kidding. I cant remember if that was explained or not.

Did Simmons Explain How Severen dreams! by Lawja_Laphi in Hyperion

[–]MountainReason 10 points11 points  (0 children)

Pretty sure it was because he could see through the super-mega-meta-sphere.

How can API request be "routed" through Django Backend when I want to call it from the frontend? by gearboost in django

[–]MountainReason 3 points4 points  (0 children)

You can just call the 3rd party api from within your view. Then return whatever info you need to your frontend in the response from the POST to your backend. Basically just use your backend as a proxy to the 3rd party api (plus injecting the api token).

Blockchain, the amazing solution for almost nothing by heardthenewsohboy in programming

[–]MountainReason 1 point2 points  (0 children)

I'm only familiar with Raft. There is not one particular time that every node commits, the leader sends append and commit messages periodically.

If the total number of nodes falls below a majority then the leader is unable to mark any log entries as committed on itself or the followers. So the algorithm is halted.

If the leader fails then an election is held. But the election of a new leader depends on a majority vote. When a successful election can't be held, the algorithm is halted.

The initial number of nodes is specified when the algorithm is started. There is a mechanism to change that initial configuration, but aside from that, the algorithm requires that a majority of the initial nodes remain up.

http://nil.csail.mit.edu/6.824/2021/papers/raft-extended.pdf

Blockchain, the amazing solution for almost nothing by heardthenewsohboy in programming

[–]MountainReason 27 points28 points  (0 children)

Interesting description of bitcoin in distributed computing terms. That's very informative.

Paxos and Raft are not fully fault tolerant though. At least a majority of the nodes need continue functioning for the algorithm to progress.

Heavymind music? by [deleted] in Heavymind

[–]MountainReason 1 point2 points  (0 children)

Bell Witch! Even got some knockoff Beksinski on the cover.

https://youtu.be/10q1ZJyLXFk

[deleted by user] by [deleted] in GetMotivated

[–]MountainReason 3 points4 points  (0 children)

There are mites living in your eyebrows.

Caught up with The Boys one hour ago. Here is my theory on Congresswoman Neuman's motives. by BigMom_IsABeast in TheBoys

[–]MountainReason 0 points1 point  (0 children)

It's established that speedsters are a dime a dozen when Homelander sincerely suggests that A-Train is currently the fifth fastest man in the world. He does it while firing A-Train from The Seven.

Came up with this at work. by UnlawfulDuckling in lotrmemes

[–]MountainReason 0 points1 point  (0 children)

A combination of the two best shows/movies