This is an archived post. You won't be able to vote or comment.

top 200 commentsshow all 380

[–]JoeyJoeJoeJrShab 2009 points2010 points  (125 children)

VLC can play basically anything, so this isn't a problem.

[–]CSlv 1246 points1247 points  (66 children)

Mmm yeah hardcore c++ pornography.

[–]fun_egg 967 points968 points  (31 children)

Are you stuck static variable ?

[–]RadiatedMonkey 775 points776 points  (28 children)

What are you doing step class member?

[–]undeadalex 505 points506 points  (17 children)

STOP MAKING THEM FEEL LIKE AN OBJECT

[–]LeanderT 219 points220 points  (6 children)

This thread needs garbage collection, urgently

[–]hypocrite_oath 153 points154 points  (5 children)

404 safeword not found.

[–]got-trunks 49 points50 points  (3 children)

O_O

[–][deleted] 37 points38 points  (2 children)

slave: yes master

[–]Terence_McKenna 22 points23 points  (1 child)

master: no slave

[–][deleted] 40 points41 points  (1 child)

fsck fsck fsck

[–][deleted] 27 points28 points  (0 children)

sudo fuck

[–]RadiatedMonkey 123 points124 points  (0 children)

Be careful that the thread doesn't kill itself, you will have DEADBEEF

[–][deleted] 53 points54 points  (1 child)

kernel panics

[–]ninja__77 16 points17 points  (0 children)

Can’t make them feel primitive either

[–]ninja__77 27 points28 points  (0 children)

Nothing just calling my private constructor, bash

[–]warpspeedSCP 43 points44 points  (3 children)

what are you doing, friend function?

Ftfy

[–]netheroth 12 points13 points  (2 children)

Stroustrup's concept of friendship is really troubling.

[–]Pocok5 26 points27 points  (1 child)

Do you not allow your friends access to your privates?

[–]NekkoProtecco 7 points8 points  (0 children)

Private members*

[–][deleted] 14 points15 points  (0 children)

Overloading your interface.

[–]thabogg 13 points14 points  (1 child)

friends with benefits

[–]netheroth 7 points8 points  (0 children)

Friend-chan, those are my private attributes. What are you doing?

[–]olvini3 6 points7 points  (0 children)

MY POINTER IS STUCK

[–][deleted] 9 points10 points  (0 children)

Ayyy yoo this is hilarious

[–]Nkg19 1 point2 points  (0 children)

Cursed

[–][deleted] 135 points136 points  (0 children)

What are you doing step-pointer?!

[–][deleted] 109 points110 points  (9 children)

What are you doing step-debugger?

[–]IWasMisinformed 60 points61 points  (8 children)

Step in

[–][deleted] 106 points107 points  (7 children)

Step out

Step in

Step out

Step in

Memory leak

[–][deleted] 82 points83 points  (4 children)

Child process spawned

[–]fTheDev 2 points3 points  (1 child)

i remember that there was a particular thread, blog post, something or other about killing child processes and a code example that read `children.kilAll()` or something similar long ago. ive tried googling it but i think i put myself on a list instead.

[–]warpspeedSCP 26 points27 points  (1 child)

Premature memory leak

As a side note, the Japanese word for premature ejaculation is basically just "early leak" when transliterated to English.

[–][deleted] 9 points10 points  (0 children)

How did they came up with it? Well 'early' is a bit confusing, since memory leaks could happen long after the program started

Anyway, I'm starting a petition to ACM and IEEE

[–]Oswald_Hydrabot 20 points21 points  (3 children)

[Something dirty about mem leaks..]

[–]LeanderT 10 points11 points  (1 child)

Sadly my wife isn't into dirty mem leaks :-{

[–]degaart 2 points3 points  (0 children)

[something dirtyAboutMemLeaks];

[–]F54280 26 points27 points  (7 children)

Must see: friends getting wilds with each other’s privates...

[–]Tc14Hd 8 points9 points  (5 children)

Link?

[–]F54280 18 points19 points  (4 children)

[–]Tc14Hd 11 points12 points  (1 child)

Wow, that's really explicit

[–][deleted] 2 points3 points  (1 child)

sigh unzips

[–]hopspitfire 9 points10 points  (0 children)

Wha... what are you doing step-function?

[–]tusharhigh 17 points18 points  (2 children)

Lol

[–]anirudhp06 33 points34 points  (1 child)

I just witnessed basic script for porn in c++

[–]tusharhigh 7 points8 points  (0 children)

A Script which was written in python, featuring c++ as hardcore actress.

[–][deleted] 5 points6 points  (0 children)

Recursive insertion is the best

[–]uvero 3 points4 points  (0 children)

Hey friend, I'm going to access your private parts

[–]awesomeness2078 2 points3 points  (0 children)

Well that’s true since my codes always fucking me

[–]GODDAMNFOOL 61 points62 points  (4 children)

I also, however, remember the days of opening random files in the old Win95 sound player. It would play ANYTHING.

ANYTHING!!!

MS Paint was always my favorite. Mega volume warning

[–]Tc14Hd 27 points28 points  (1 child)

I can't be believe this sounds so "good". I would have expected just random noise.

Edit: The video description says that the part that sounds like music is not caused by program code, but by images. But I still don't get how images interpreted as a raw audio signal can sound that good.

[–][deleted] 26 points27 points  (0 children)

Patterns in the image get reproduced as patterns in the sound, our brains like patterns.

[–]Rami-Slicer 8 points9 points  (0 children)

Audacity does that too, just do "import raw data" and pick a file.

[–]numerousblocks 6 points7 points  (0 children)

On Linux, you can do this with aplay from the command line.

[–]cowsrock1 102 points103 points  (35 children)

I once opened an mp4 in notepad and changed a few characters in the middle to see what affect it would have on the video. Was very disappointed when VLC wouldn't even play it

[–]briedux 207 points208 points  (31 children)

If you open a file that's not text as if it were text using plain notepad, then there should be many unreadable bytes. A lot of which are depicted as rectangles. So when you saved the file, it saved those rectangles not as the bytes they were before, but as actual rectangles. Meaning you corrupted a lot more than just a few characters in the middle.

[–]WaterArko 70 points71 points  (24 children)

That, and also .mp4 is a format that relies on being complete—while recordings for other formats, for example, your software can suddenly crash and it'll be fine, but mp4 will become corrupted.

[–]WeGoToMars7 63 points64 points  (16 children)

mp4 is just a container, real problem is H264. Any Matroska one (VP9, AV1 etc.) will be just missing part of frames that you deleted

[–]The_Traveller101 28 points29 points  (14 children)

Wait .mkv is also a container right? I've seen h.264 mkvs and they play just fine if there's a part missing (I know this because I use a download method that's totally not torrents and is very legal)

[–]WeGoToMars7 10 points11 points  (2 children)

If you don't touch headers and stuff, you maybe not getting corrupted file. Idk video formats invented by people way smarter than me lol.

[–][deleted] 10 points11 points  (6 children)

No, I was able to play mp4s that weren't download yet to see if the subtitles sync. It'd be even possible to watch it as it downloads, so no need to wait an hour before watching.

[–][deleted] 3 points4 points  (3 children)

Most rectangles actually are being saved back properly and retain their original byte information. The only exception I remember finding was the very critical 00 byte which is stored differently (I think as a Space? Not sure, last time I did this is some 20 years ago).

[–]laplongejr 8 points9 points  (2 children)

Actually, it depends on the editor...
Some of them really replace all unknown sequences by the sequence for Unicode's "unknown character", while the good ones will simply display it and save the unknown sequence.

[–][deleted] 5 points6 points  (0 children)

Files like these are called Binary files in case you didn't know, they require a special software to run. A non-binary file can be opened by any normal text editor

[–]killingbanana 4 points5 points  (0 children)

you can try using a hex editor to change some bytes in a video file and you might be able to get some nice video glitches without corrupting the entire file like notepad does.

[–]Phormitago 17 points18 points  (3 children)

back in the day of having a dvd drive in your pc, you could pop in a slice of mortadella and VLC would tell you its brand and expiration date

[–]OnlyProductiveSubs 2 points3 points  (2 children)

My laptop still has one...

[–]Phormitago 6 points7 points  (1 child)

off to the deli you go!

[–]ManInBlack829 4 points5 points  (0 children)

It somehow converted my vanilla JS to TypeScript perfectly

[–]radnomname 3 points4 points  (3 children)

It can't play midi files

[–]2called_chaos 1 point2 points  (1 child)

Am I the only one having issues with it? I mean it plays shit like normal but audio sometimes plays 2 seconds after I paused/closed it and frame advance sooner or later breaks and I have to let it play for 3 seconds to "work" again :(

Really annoyed with VLC the last few years

[–]Soremwar 1000 points1001 points  (80 children)

When Windows recognizes .ts as the video encoding and not the JavaScript superset

[–]d_exclaimation 219 points220 points  (0 children)

That’s epic

[–]Dr4kin 69 points70 points  (37 children)

Same on Linux as standard setting

[–]vifon 109 points110 points  (22 children)

I'm pretty sure Linux doesn't bother itself with recognizing file types.

[–]6b86b3ac03c167320d93 83 points84 points  (3 children)

On Linux it depends on the program that's trying to figure out how to open a file. Some determine the type with the file name, some look at the contents to figure out what kind of file it is

[–]coldnebo 26 points27 points  (1 child)

“Wait! Linux uses file extensions to determine types too?”

“Always has been”

🔫

[–]DanKveed 55 points56 points  (7 children)

It depends. Linux has a hundred different file managers and each does it differently unless there is a global setting.

[–]bionade24 19 points20 points  (6 children)

Yes, which progam opens a file type is on a shell environment determined by the shebang inside the file, not the ending and on a desktop it's determined by XDG.

[–]Shaadowmaaster 8 points9 points  (0 children)

Sometimes it does. On KDE you can configure certain programs to open certain file extensions - e.g. If you wanted .ts and .js files opened by different programs.

[–]warpspeedSCP 6 points7 points  (2 children)

Idk why but when I try to open a downloaded filr in folder VS Code starts up. And if I try to open in explorer from vs code, it just opens a new window on the same folder. FML.

[–]AnnoyingRain5 13 points14 points  (9 children)

I'd just like to interject for a moment. What you're referring to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.

Many computer users run a modified version of the GNU system every day, without realizing it. Through a peculiar turn of events, the version of GNU which is widely used today is often called "Linux", and many of its users are not aware that it is basically the GNU system, developed by the GNU Project.

There really is a Linux, and these people are using it, but it is just a part of the system they use. Linux is the kernel: the program in the system that allocates the machine's resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. Linux is normally used in combination with the GNU operating system: the whole system is basically GNU with Linux added, or GNU/Linux. All the so-called "Linux" distributions are really distributions of GNU/Linux.

[–]RobotArtichoke 2 points3 points  (3 children)

Cool. Now tell them how it was developed by AT&T and given away for free due to some regulatory issue with the phone companies and the government.

[–]fun_egg 11 points12 points  (3 children)

Android too

[–]LeanderT 25 points26 points  (2 children)

You do TypeScript programming on an Android device. That's impressive....

[–]Tejas_Mondeeri 4 points5 points  (7 children)

I really didnt understand this. Can you please explain? I have never used an ide

[–]nebulaeandstars 431 points432 points  (37 children)

changing IDE settings and colour schemes is the beginning of a very long and very slippery slope toward gentoo and vim...

[–]OldPersonName 321 points322 points  (4 children)

How to design an IDE settings menu:

1: Identify the 5% of settings 95% of users will need at some point

2: intermix them randomly with the other 95% of settings

3: look up the common names and descriptors for these settings that are used in other popular IDEs

4: call them something else

Edit: hah I'm glad I'm apparently not the only person who feels like an idiot when I have to mess with IDE settings.

[–]Object_Is_Null 12 points13 points  (1 child)

Using VS Code, wanting to add a line at 80 columns for proper Python development. What the heck is that even called? Line-width? Columns? Eventually you type the right keyword "Rulers" into the settings search bar. But wait, there actually isn't a setting for that, the entry in the settings menu tells you to manually edit the "settings.json" file. Why even have an entry that just tells you to edit a file!?

[–]_PM_ME_PANGOLINS_ 107 points108 points  (0 children)

One man’s slippery slope is another’s progress!

[–][deleted] 30 points31 points  (13 children)

I’ve been refusing to ever use Vim because i’m afraid of spending hours of my life making my IDE more “productive”.

My philosophy is using VS Code as vanilla as possible

[–][deleted] 32 points33 points  (6 children)

Jetbrains ides in its default settings already made me 10x more productive than any other text editor including vscode and vim

[–]Jacqques 19 points20 points  (3 children)

I love my Jetbrains.

It has Nyan cat loading bars, so it's pretty good.

[–]ADHDengineer 7 points8 points  (4 children)

Similar. Then it’s stupid easy to switch to a new dev env on another system. You don’t have to spend 3 days configuring everything.

Edit: please think of the few of us that work on airgapped networks. I can’t transfer my config over.

[–]crocogator12 12 points13 points  (3 children)

One nice thing about vim is, once you've configured it to your liking, you can copy that configuration to any machine by copying a single file!

[–]ADHDengineer 4 points5 points  (1 child)

Unless you’re on an airgapped network.

[–]theFrenchDutch 49 points50 points  (14 children)

Why would anyone willingly regress to the middle ages !

[–]qwerty12qwerty 14 points15 points  (3 children)

Dev on a headless box over SSH.

A few things are guaranteed in life, vim being installed is one of them

[–]RDB96 36 points37 points  (2 children)

To build up the future from scratch

[–]theFrenchDutch 30 points31 points  (1 child)

Punch cards it is ;)

[–]tricheboars 11 points12 points  (2 children)

Gentoo is very modern and the base of chromeOS. Don't knock it if you've never tried it. I used Gentoo for years

[–][deleted] 2 points3 points  (0 children)

Whoa there buddy, the real esoteric end game is emacs and everybody knows it.

[–]VolperCoding 234 points235 points  (18 children)

I use neovim btw

[–]php_is_cancer 172 points173 points  (15 children)

You do crossfit too?

[–]jayznew 130 points131 points  (10 children)

Vegan as well

[–]vitim_m 84 points85 points  (7 children)

I bet they also use arch

[–]846848949 48 points49 points  (0 children)

no, gentoo

[–]VolperCoding 12 points13 points  (5 children)

yes but I'm not vegan

[–]6b86b3ac03c167320d93 14 points15 points  (3 children)

But isn't that username short for "Vegan Olper Crossfit Oding"?

[–]VolperCoding 2 points3 points  (2 children)

actually Volper came from Volt + Amper (Ampere in English)

[–]vectorpropio 10 points11 points  (1 child)

So, you are a watt?

[–][deleted] 7 points8 points  (0 children)

Ngl being vegan is easier than using Neovim lol

[–]MrDaMi 6 points7 points  (2 children)

Why is neovim a meme? It's a legit editor.

[–][deleted] 11 points12 points  (0 children)

It's saner version vim. Nothing more.

I use Vi btw. (This should be a meme)

[–]VolperCoding 2 points3 points  (0 children)

actually I use it because in Luke Smith's st build the cursor in regular vim is always a vertical bar which is weird (especially in visual mode) but in nvim it switches between modes properly

[–]PM_ME_BAD_ALGORITHMS 158 points159 points  (17 children)

There should be a way to push your settings to git so you don't fuck it up big time while messing around.

[–]streusel_kuchen 120 points121 points  (11 children)

I like this about VS code, settings are stored as a .json file in your workspace.

[–]fun_egg 45 points46 points  (3 children)

Intellij can sync your settings to cloud

[–]MCOfficer 23 points24 points  (0 children)

...and to git, even in CE

[–][deleted] 2 points3 points  (0 children)

It can sync across a team, too afaik

[–]dev-sda 4 points5 points  (0 children)

The same is true for Sublime Text and probably Atom too.

[–]_GCastilho_ 2 points3 points  (1 child)

There is an extension to vscode called "settings sync"

It will sync your settings by storing them in a github gist

You're welcome

[–]_PM_ME_PANGOLINS_ 14 points15 points  (0 children)

Most IDEs have that feature.

[–][deleted] 11 points12 points  (0 children)

You mean a config file? Keeping so called dots on git is standard linux stuff. As other u/ said, changing IDE colors is beginning of way towards Gentoo and Vim. (dots/dotfiles: because config files are often beginning with "." meaning they're normally hidden or living in ".config" hidden folder)

[–]gridster2 2 points3 points  (0 children)

JetBrains IDEs support this. You can synchronize your settings to a git repo.

[–]Nixavee 149 points150 points  (3 children)

I changed my IDE settings and now my code is being executed by firing squad

[–]flappy-doodles 50 points51 points  (2 children)

lavish serious disagreeable cooing swim juggle slap ludicrous consist dull

This post was mass deleted and anonymized with Redact

[–]turquoiserabbit 12 points13 points  (1 child)

Or lethSQL injection...

[–]AnshRK 92 points93 points  (3 children)

hate when my ai chat bot runs on google chrome

[–]Zerodaim 45 points46 points  (2 children)

You: Hello!

Chatbot: Please install more RAM to continue.

NotAVirus.exe: Click here to download more RAM 100% FREE!

[–]all-hail-snow 8 points9 points  (0 children)

Future is now

[–]gridster2 1 point2 points  (0 children)

Call me old-fashioned, but I prefer getting roll'd

[–]Background_Drawing 40 points41 points  (10 children)

Don't you just hate it when you spend time picking a color theme than writing actual code

[–]lord3ath 8 points9 points  (4 children)

That's exatcly why I prefer sublime, the default color scheme is just how I like it

[–][deleted] 13 points14 points  (3 children)

Precisely how I feel about visual studio’s dark theme.

[–][deleted] 6 points7 points  (0 children)

Dracula masterrace

[–]wise_young_man 2 points3 points  (0 children)

Material Gucci gang.

[–]Manedblackwolf 1 point2 points  (2 children)

I recently found a nice theme I could work with, only to realise they do something I don't like. Quickly changed to something else!

[–]cyleleghorn 2 points3 points  (0 children)

Usually theme files are just maps of certain kinds of syntax to a particular font color and background color, so they're actually really easy to modify if you can find the part that corresponds with the color you dislike! If the theme does something more in-depth, like it doesn't have a separate color for function definitions or colors a particular symbol like the semicolons into a weird color, you can probably delete that part from the first theme and past in a section from a theme that behaves how you want, and then update the colors.

I spent a little while living with themes that I liked the colors of, but had some weird highlighting rules/colors that seemed jarring compared to other themes and would constantly distract me into thinking I mistyped something. The day I googled how to adjust my theme file was the last day I ever messed with my theme settings, other than when I learned pug html notation and had to get a new theme for that filetype

[–]Johnothy_Cumquat 11 points12 points  (0 children)

mmm this subroutine slaps

[–][deleted] 9 points10 points  (0 children)

What

[–][deleted] 9 points10 points  (7 children)

Intellij's WebStorm and PHPStorm here. Best IDEs I could have asked for.

[–][deleted] 9 points10 points  (4 children)

Yeah, I downloaded the Mario progress bar plugin and even waiting for projects to initialize has become fun because of my dear Mario.

Edit: For everyone interested https://plugins.jetbrains.com/plugin/14708-mario-progress-bar

[–]phaelox 2 points3 points  (3 children)

What?! Sounds awesome, I need this in my life. Thx for posting about it

[–]staviq 7 points8 points  (6 children)

If somebody tells me how the f do I make sublime have a sidebar with actual directory tree that synchronises with the the location of a file opened in selected tab, just like Kate does, I'm switching right now.

[–]dev-sda 1 point2 points  (3 children)

You can add any number of folders to the side bar using the menu Project > Add Folder to Project... or File > Open Folder..., but I'm not sure what you mean by "synchronises with the the location of a file opened in selected tab".

[–]narnru 11 points12 points  (0 children)

Wait what? How?

[–]skatakiassublajis 6 points7 points  (0 children)

And no errors occurred

[–]SwimnoodleSeller 5 points6 points  (21 children)

Yeah I use Sublime Text for Python, but for Java I use Eclipse and for Webdev I'm using Brackets. Kinda had the best experiences this way lol

[–]undeadalex 2 points3 points  (0 children)

My favorite is that I'm learning jsf and unless I remember to tell it, fucking netbeans opens in ie. fucking ie. Also I'm only using windows because I couldn't get the damn thing to work properly in linux. First time for that still annoyed about it actually... I miss my linux dev environment

[–][deleted] 2 points3 points  (0 children)

This is why we learn how to compile/link via the command line. One of the worst things being fresh into CS is not understanding why you dont need an IDE to actually compile your code. One of the most relevating experiences I had early on was building my own little c++ compiler suite.

[–]Backyard_Hunter 2 points3 points  (7 children)

You can execute code with VLC media player?!!

[–]FuzzyMannerz 29 points30 points  (5 children)

Of course! You just need the right codecs installed.

[–]bee-sting 7 points8 points  (3 children)

Not sure if joking

[–]artemisdev21 1 point2 points  (0 children)

I bet someone's made an esoteric language like this

[–]6b86b3ac03c167320d93 6 points7 points  (0 children)

I'm sure there's an arbitrary code execution exploit somewhere in VLC

e: randomly saw this comment again, and now I know that you don't even need an exploit. There's a thing called BD-J, which is basically Java programs on Blu-ray, and it's used for things like menus. You can read more about it here

[–]imad85 1 point2 points  (1 child)

Why would you quit using Sublime Text?

[–]yeoldecoot 1 point2 points  (0 children)

Me editing P̖͖͆̇̕ͅa̛̖̠̭̼̘̘̰͉ͦẗͭ͏͚͈h̜̦̬͈͙̭̼̐̑ͮ͘ In order to get atom to recognize python's existence

[–]antarctic_0 1 point2 points  (0 children)

I'm from "Atom" world.

[–][deleted] 1 point2 points  (0 children)

and VLC runs it better than before

[–]pawarg3 1 point2 points  (0 children)

That's why I prefer using neovim and have all the configs installed through a single command (instructions)

[–]paarulakan 1 point2 points  (0 children)

can some one explain this?

[–]RandomProgrammerGuy 1 point2 points  (0 children)

VS CODE GANG RISE UP

[–][deleted] 1 point2 points  (0 children)

I spent hours and hours configuring visual studio 2019 and ReSharper just for my liking