noooit

u/noooit



r/MovieSuggestions•

Can anybody suggest me a film that falls down to that category?
I liked Eastern Promises, also Red Sparrow(not so much about the story or acting, but like the the Eastern European-ness I saw in the film.)
Also I liked 4 Months, 3 Weeks and 2 Days, a film about illegal abortion in Romania.

25

r/learnprogramming•

I am trying to write a program that gets a file path as the only allowed argument in haskell.
I came up with the following but the problem is that it crashes on 0 or more than 1 argument with Non-exhaustive patterns in lambda. What's the best way to handle this without using third party libraries?

main = getArgs >>=
    \ [args] -> doesFileExist args >>= \ x ->
        if x then
             openFile args ReadMode >>=
             \ fh -> handleFile fh >>
             hClose fh
        else
             putStrLn "File not found" >>
             exitWith (ExitFailure 1)
11

r/cprogramming•

I've recently used libyaml, coming from python, I've found it very difficult to use. It took a while until I convert yaml to equivalent struct.
I basically keep the depth of each field by counters and compare key name with the right depth and store value into my structure, which I'm not sure if it's the right way to use the library.
Apparently it's called SAX style parser? Is this just C programmers are used to instead of just loading it into the structure in one go? I heard expat does also something similar.

27

My impression is that most countries in Europe have loads of old buildings which look beautiful but not so good to live in with all the old parts that can't be replaced. Sometimes new buildings aren't that good with asbestos or due to some lousy job.
Are there countries or area in Europe where housing is good on average?

09

r/vim•

Does anybody successfully jump to the definition of the method that is inside a struct? I can only jump to the declaration, which is pretty useless in C when you are reading code. None of the IDE I tried can also do this. clangd + compile_commands.json isn't helping either.

423

r/MovieSuggestions•

I keep coming across awesome Australian films. Can you guys share yours? Any genre is appreciated. Preferably something modern as in not from the era when only black and white was the choice. Modern black and white films are ok.

119


r/linux4noobs•

Fedora has selinux enabled by default.
What is the benefit of enabling it on a desktop machine which I only install stuff from official repositories and a browser and IDE are the main apps I use?
Would it be so bad if I disable the selinux?

10