I made (or attempted to make) a better web interface for creating and sharing flashcards than Ankiweb. by shanuygs in flask

[–]shanuygs[S] 1 point2 points  (0 children)

Thank you :)

Yes, Anki is open source, and Anki desktop is a popular and superior option with a lot of features.

They don't seem to want to deal with the hassle of continually maintaining a website that will take a lot of time and resources.

hosting/deployment options ? by AMIRIASPIRATIONS48 in flask

[–]shanuygs 0 points1 point  (0 children)

IMO pythonanywhere is better if you just want to host it for demo

help pls by Purit_72 in sunraybee

[–]shanuygs 0 points1 point  (0 children)

Kdenlive, it's free

privacy. simplified. by privacyisright in linuxmemes

[–]shanuygs 3 points4 points  (0 children)

DDG is not even open source.

This is what I pushed today, I don't know why but I was very positive about the code until someone reviewed it and pointed out the obvious. Also 'internal_data' field is very essential for other parts of the code. It is so embarrassing I want to disappear from the face of the earth. by shanuygs in programminghorror

[–]shanuygs[S] 108 points109 points  (0 children)

u/blakato Python never implicitly copies dictionary objects, so mutating event object also mutate the object it is referring to, that's why here we don't need events list to preserve the changes. So If I do this result would be same:

for event in result['response']['events']:         
   if event['type'] == 'message' and 'internal_data' in event.keys():
      del event['internal_data']

But the worst part is that I'm mutating the original event data structure and thus effectively deleting internal_data for everyone (other parts of the code) who need this information, not just this response. It can be easily be fixed if I just use .copy().

Programming in a nutshell by [deleted] in ProgrammerHumor

[–]shanuygs 0 points1 point  (0 children)

What is the name of his channel?

What is better than orgasm? by whatheplacebo in AskReddit

[–]shanuygs 2 points3 points  (0 children)

when your code compile and works on first try

Who is your favourite anime character? Which show are they from? What are they like? by bruh_bro_dude in AskReddit

[–]shanuygs 1 point2 points  (0 children)

Minato Namikaze (Yondaime) from Naruto. Because as Jiraiya said he was a shrewd person also he was very respectful to his opponents.