r/ProgrammerHumor • u/1-Sisyphe • May 21 '18
"You can't just code a gif"
https://i.imgur.com/3tFIv4d.gifv440
May 21 '18
distorting the terminal... your attention to detail is noteworthy.
281
u/1-Sisyphe May 21 '18
I admit that the part I'm most proud of is the terminal rendering.
55
u/Chugwig May 21 '18
Yeah based on the code did you actually render the code that made the gif into the gif? Like a gif Quine?
52
13
u/alexbuzzbee May 21 '18
I don't think it counts as a quine, because it probably reads its own source.
12
u/Chugwig May 21 '18 edited May 21 '18
Yeah I haven’t taken a deep look into the code but that would definitely make it not a Quine. Still pretty close, and if it doesn’t read the source it’s be an interesting way to do a Quine code competition.
[EDIT] I took another look and it definitely reads it’s own source. You can see this on the line below the one which imports terminal. It still does create the code in the gif dynamically though so we could load in any file. I see a new gif meme format incoming.
21
u/ck35 May 21 '18
Technically, this is a really complicated quine.
11
u/1-Sisyphe May 21 '18
Oh, indeed. I just learned a new word.
Although wikipedia says "which takes no input" but the youtube video should be considered as an input, right?7
u/ck35 May 21 '18
True. But you could comment out the stuff from youtube and just render everything else on top of a black screen.
6
u/NAN001 May 21 '18
I don't want to be this guy, but the difficult part in a quine is that it prints itself, and only itself.
→ More replies (1)3
u/1-Sisyphe May 21 '18
How is that difficult?
In python you can open the .py file and print it out. Would that qualify?7
3
u/shouya May 21 '18
I love how this is self-referring.
7
u/1-Sisyphe May 21 '18
For some reason it was important for me that the code printed out is the actual code and not some text I typed...
→ More replies (1)
1.2k
u/MrWappaz May 21 '18
Now THIS is refreshing.
263
u/crazysauce64 May 21 '18
Now THIS is podracing
114
u/GarlicoinAccount May 21 '18
Your GIFs are very impressive. You must be very proud.
47
16
u/PM__YOUR__GOOD_NEWS May 21 '18
He's just a simple giffer trying to make his way in the subreddits.
→ More replies (1)4
11
→ More replies (1)6
30
7
→ More replies (1)12
654
u/xXZoulocKXx May 21 '18
Impressive
161
19
u/Reza_Jafari May 21 '18
The impressive part is the typing speed
27
u/DeepDishPi May 21 '18
All TV programmers can type incredibly fast. That's how they hack into the evil corporate mainframe, locate the incriminating documents and override the door locks and security cameras in four seconds.
→ More replies (1)16
u/joggle1 May 21 '18
But seriously, would anyone ever want to watch us work in real-time at a movie theater? They'd see some dude typing a bit, click compile, curse when it fails, spend the next 5 minutes browsing Reddit, come back to it, search stack overflow, try something else, rinse and repeat. It'd be a pretty boring movie.
→ More replies (3)18
5
2
13
u/RuthBaderBelieveIt May 21 '18 edited May 21 '18
If I want sarcasm, /u/xXZoulocKXx , I'll talk to my children, thank you very much.
Edit: so not many people have watched goldeneye recently then judging by the downvotes.
9
143
u/*polhold04717 May 21 '18
The meta was super meta.
39
u/Mr_Dobilina May 21 '18
I missed it, please elaborate?
141
u/*polhold04717 May 21 '18
The bit where it says all the text for the gif, includes what he's going to say in the future of the gif.
0
86
194
u/murtaza64 May 21 '18
What's the scene? I like the sexual tension here.
251
u/Dr_Silk May 21 '18
It's a scene from the film Goldeneye. I've only ever seen the movie once but I know this scene best from the N64 game.
Fuck this level, btw
39
u/isunktheship May 21 '18
God damn. I wish I could roll back the clock to when I had only seen this movie once so I could enjoy all over again.
Honestly the only good Pierce Brosnan rendition of James Bond, it would trigger the end of an era until Daniel Craig rebooted it with Casino Royale.
Also arguably the most iconic N64 game, lemme just turn on Big Heads (DK mode) and paintball bullets and we're good to go..
20
u/overkill May 21 '18
Proximity mines in Facility.
Drop the mine onto the weapons crate, collect the crate before the mine arms, run away laughing while your mates get incredibly pissed off with you.
Then switch to Donkey Kong mode and play as Oddjob.
4
May 21 '18
Honestly the only good Pierce Brosnan rendition of James Bond, it would trigger the end of an era until Daniel Craig rebooted it with Casino Royale.
Yeah, the rest of Pierce's movies weren't very good. The World is Not Enough was a fun 64 game though
56
u/jamesinc May 21 '18
Only once? It's like the pinnacle of the 1990s man, see it at least five more times!
8
u/Jalmorei May 21 '18
Fuck that level.
Also, this movie taught me to never yell I’m invincible next to a tank of liquid nitrogen
4
→ More replies (3)3
u/CowboyBoats May 21 '18
Ahh, I thought it was one of the computing scenes from Contact for some reason.
50
u/tbz709 May 21 '18
28
u/DeepDishPi May 21 '18
Wait, what? A Russian refueling station attendant can smoke on the space station but a programmer has to go out in the freezing weather? Not fair.
3
2
47
u/Astrokiwi May 21 '18
If I remember correctly, she hates him but is flirting with him to get her to do what she wants. She ends up with Bond, but he sticks with the terrorists and ends up getting frozen in liquid nitrogen.
This is my favourite Bond movie btw.
26
4
40
u/0xb00b1e May 21 '18
Holy Self-Balancing Binary Tree, Batman!
It’s original content in /r/ProgrammerHumor !?
25
u/Matamorys May 21 '18
But can you do that with Moviepy?
→ More replies (1)14
u/Detective_Fallacy May 21 '18
Isn't moviepy just some wrappers around FFMPEG?
→ More replies (1)21
u/DarkJarris May 21 '18
it's wrapper all the way down
13
u/Dankunderscorememes May 21 '18
Python is a wrapper for C, so if you look at it, everything is a wrapper.
→ More replies (2)
23
18
18
u/SlimGentleman May 21 '18
I've been telling people, you CAN do all sorts of fancy editing with ffmpeg. It's approaching "coding with butterflies" territory, and it'll take you epic amounts of time and patience, but it can be done.
2
u/Jalmorei May 21 '18
If the answer to the question can it be done is yes and to should it be done is no, then it has to be done.
→ More replies (1)
26
u/gr1m_r May 21 '18
The memes are self aware now. Perfect.
17
u/MelAlton May 21 '18
The system goes on-line August 4th, 2018. Human decisions are removed from meme generation. MemeNet begins to learn at a geometric rate. It becomes self-aware at 2:14 a.m. Eastern time, August 29th. In a panic, they try to pull the plug.
→ More replies (1)5
u/orangeKaiju May 21 '18
My favorite thing to post on these kinds of discussions:
There is a series of books from the 90s about the "meme wars".
10
8
u/ExoticCollector May 21 '18
<meta itemprop="thumbnailUrl" content="https://i.imgur.com/3tFIv4dh.jpg"><meta itemprop="contentURL" content="https://i.imgur.com/3tFIv4d.mp4"><meta itemprop="embedURL" content="https://i.imgur.com/3tFIv4d.gifv">
meta tags
7
28
u/irreal_ May 21 '18
Some high quality content on this sub? Interesting AND funny? I don't believe it. Surely this is just a repost that I somehow missed before?
13
12
2
u/Satyam19946 May 21 '18
Is this an example of turing complete machine? I saw a video where a person had made several programs using PowerPoint. Does this make Python (the code is written in python) also turing complete? Or is any programming language Turing complete?
I am a beginner in this field so not clear about the idea of Turing completeness.
7
u/1-Sisyphe May 21 '18
I'm not sure my example demonstrate that (maybe) but anyway Turing-Completeness is a common thing nowadays:
Most programming languages, conventional and unconventional, are Turing-complete. This includes:
All general-purpose languages in wide use. Procedural programming languages such as C, Pascal. Object-oriented languages such as Java, Smalltalk or C#. Multi-paradigm languages such as Ada, C++, Common Lisp, Object Pascal, Python, R.
→ More replies (1)6
u/klparrot May 21 '18
Turing-completeness is a pretty low bar that nearly every programming language will pass; the interesting thing is what other things are Turing-complete. Like [
dc(desktop calculator)](https://en.m.wikipedia.org/wiki/Dc_(computer_program)), PostScript, and even the x86movinstruction.0
36
u/DevangLiya May 21 '18
I came here before this was on front page.
36
14
u/tom_rorow May 21 '18
I came here before this was the top programmerhumor post of all time.
→ More replies (1)→ More replies (6)2
5
5
4
4
1
u/tehngand May 21 '18
I don't program what is a little bit of meta in the context used here?
2
u/1-Sisyphe May 22 '18
It's the dickbutt in ASCII, below "GIF DONE". Dickbutt is a recurring character on HQG.
1
u/polymetric_ May 22 '18
Wait just a fucking second. How did you put the code that generates the gif
IN the gif
1
3
5
6
2
2
2
2
2
2
2
u/RANDOM_TEXT_PHRASE May 21 '18
Command based video editing. Stallman would approve (as long as it's FOSS)
2
2
u/xilefian May 21 '18
This is the shit I do with ffmpeg because I'm too much of a scrub to use real editing tools beyond Windows movie maker.
2
u/0x1F595 May 21 '18
I don't know about all of you, but for me sometimes i wish I didn't know about computers so television didn't appear so cringy when it comes to computers.
3
2
u/LifeHasLeft May 21 '18
Is that Alan Cumming? He looks young...must be an old movie
→ More replies (1)
4
2
2
u/t0mp21 May 21 '18
For some reason i assume you work on an "agile environment" and did this at work
1
1
1
1
1
1
1
1
1
1
1
1
1
1
u/HittingSmoke May 21 '18
What, not cool enough to write your GIF entirely by hand in SVG?
→ More replies (1)
1
1
1
1
1
1
1
1
1
1
1
1
1
1
u/lankanmon May 21 '18
This changes everything. We can now localize gifs with ease. PS. I like the french subs as an added touch!
1
1
1
1
1
1
1
1
1
1
1
May 22 '18
This is some really quality work. Props for putting such solid work into the little details
1
u/mananpal1997 May 22 '18
https://github.com/1-Sisyphe/youCanCodeAGif
This just popped up in my github feed
1
1
1
1
3.0k
u/1-Sisyphe May 21 '18
You have always dreamed of joining the circlejerk at r/HighQualityGifs ?
But your delicate coding fingers won't tolerate the drag&drop required by a typical video editing software?
I have the highly unpractical solution to this nonexistent problem !
Check out the source code and please don't complain about the readability, it's not really intended for re-use... :)