/dpt/ - Daily Programming Thread

Previous thread: What are you working on, Sup Forums?

Other urls found in this thread:

linux-pam.org/Linux-PAM-html/Linux-PAM_ADG.html
opengl.org/wiki/Pixel_Buffer_Object
twitter.com/SFWRedditGifs

First for D

Pick a vertex, any vertex

ocaml as replacement for c?

Doesn't it use a GC?

No politics edition. :)

EMPLOYEDFAGS HOW MANY NIGGER PROGRAMMERS ARE THERE IN YOUR WORKPLACE AND HOW MANY FEMALE PROGRAMMERS AND HOW MANY FEMALE NIGGER PROGRAMMERS

James Watson is my negra.

2, 10, 0

communism > capitalism
capitalism breeds corruption
communism makes us all equal.

Equally poor.

why wouldn't they label the vertices a, b, c, etc?

communism is bad and you should feel bad

Equally equal, while capitalism makes only few rich

I got a bunch of Indians, and also a bunch of qts on what I'm assuming is Sales
>commies feel the need to derail the thread yet again

I want to write my own screen locker, but it seems that I can't even test if a given password is valid for a user, because the shadow file can only be accessed by root.
Is there any other way to do this?

>muh lambdas

Windows and Linux provide syscalls that allow you to do that

Both are Jewish schemes to neuter and enslave the people. There is only one system that enables individual to achieve their highest potential - national socialism.

run the screen locker as root
idiot

capitalism > communism
communism breeds corruption
capitalism makes us all equal.

yeah that's what I thought too

>he hasn't read animal farm
go to bed kiddo

So only root should be able to look his screen?

>literally paid by the US govt to make people think "for themselves" that communism is bad

>I got a bunch of Indians

brown =/= nigger though

Like getspnam(), which gives a permission error when not run as root?

No, any user should be able to look at the screen.

Animal Farm was written by a commie. That's the supreme irony of it all.

Orwell was a good writer, though.

This is a programming thread.

every thread is a Sup Forums thread
it's time to migrate from Sup Forums

Its all that propaganda. American dream! America is best! America america america,. Is america best in education? No. Healthcare? No. Equality? no. Longevity? No.Crime rate among civilized world? Yes. Military spending? Yes Economy? Yes. There you go america is best, capitalism is best you damn pinkos

I don't get it. how can any user lock his screen when the screen locker must be run as root?

>a book by a british socialist written during wwii, when the us and ussr were allies, was paid for by the us govt

It should have something to do with policy kit, im not sure tho

...

>all these people unaware of the JQ discussing false dichotomies built upon unfounded premises

oh fuck wrong one

>>>wsg/1239848

>What are you working on, Sup Forums?
Form validation.

Javascript is such a disgusting language.
How the fuck did it become the defacto standard for writing website backends?

Biologically innate differences in intelligence among human beings has not been proven, and there is evidence against it as well.
As it stands, human psychology is nurture over nature, so finding out why so many african americans are poor or uneducated remains somewhat of a game of statistics, and we all know that statistics hide more than they reveal.

Sometimes a great alternative.

Monarchy (distributist) > communism > capitalism

Join me, user, and write your backends in lua.

>being triggered by the existence of opinions about important things

>neppu eats pizza.jpg
indeed

But statistics is certain about one thing: tripfags are faggots, no exceptions.

on Sup Forums there was like a dozen links to studies showing that intelligence is mostly genetic

>humans have been evolving independently
Just because some of us are hairier than others and some us can see in water better than others and some of us are more accustomed to the sun's cancerous rays than others doesn't mean some of us have bigger, more "evolved' or 'developed' brains, humans haven't been living long enough for evolution on that scale to take place, and trying to claim white superiority after succeeding in dismembering blacks as a people and a culture is pretty fucking retarded but ive know white people to believe and parrot some really stupid shit so whatev

>Biologically innate differences in intelligence among human beings has not been proven, and there is evidence against it as well.

I'm the Queen's butler.

>"important" things
lel

How's atom user? I tried using it before but its sluggish speed turned me off from it

Not very sluggish for me, I'm not sure where that meme comes from. I like all the addons it has. A lot of the themes can make it feel comfy.

lad, there is intermixing with neanderthals and other primitive people, east asians and whites have the most neanderthal dna and they just happen to be the most intelligent people, and africans have zero neanderthal dna and they happen to be the least intelligent people. also if you look at something like dick size, why do you think dick size can vary so much but brain power can't vary?

you're running an independent chromium instance with your text editor.

A text editor has no business eating up 500MB of ram.

im fairly sure there is no linux syscall to do user authentication, but there certainly is an authentication API. it's probably got to do with PAM: linux-pam.org/Linux-PAM-html/Linux-PAM_ADG.html

There's tons of reasons and evidence explaining issues of poverty and lack of education amongst blacks

The problem is that once u try and start telling whites, they lose interest or might get bitter so they feel guilt or they're just too stupid to pay attention and just parrot "eh niggers gon nig" and call it a day

It's not like issues of poverty and low education don't affect whites as well, who do you think is supporting trump the most? Harvard grads?

Honestly I don't care. I have 10GB of RAM, and unused RAM is wasted RAM.

it's called Lambda calculus

What's the most fun thing you've programmed?

Did you learn anything?

What are you talking about? You can breed humans with smaller brains in less than 200 years.

See: United States of America

>after succeeding in dismembering blacks as a people and a culture
there was never a "black culture". black is a broad label that covers many different people and cultures just because their skin is over an arbitrary brownness threshhold.

tell a nazi that a frenchman is different from a german and they will agree

compare a nigerian and a somalian and they'll ask which drugs you are on and whether or not you know how degenerate anything but reichstag approved bier is

also btw screen lockers are one of those things that are deceptively hard to do right and they aren't particularly enlightening to write either. i would pick a different project

Problem is you develop intelligence, if you were raises by retarded slimes you would be more likely to be stpid as well. So nigger stupidity might be part of culture

Call me a stupid faggot but I don't think about dicks that much
>Muh Sup Forums starter kit argument and pics circa. 2008
It's time to grow up

chown root:root yourfile
chmod +s yourfile
Now it'll always run as root, no matter which user starts it.
Doesn't work with scripts.

lol ok keep denying the overwhelming majority of the scientific literature on the subject

Never mind. I just looked at the permissions for the binary of my current screen locker. It has the suid bit set. This is probably the way to go.

also, le "500MB of RAM" meme

You forgot the background processes

only another 70MB. Nowhere near 500 for sure.

Thanks, I just found that out myself, too.

>leer reviewed scientific literature
>uncited images you found on Sup Forums
Pick one and only one

Just because I'm generalizing blacks in the aftermath doesn't mean they didn't have cultures of their own that were lost and wiped out in the midst of the Atlantic slave trade

You're talking a lot of stupidity with an air of arrogance, lemmeguessurwhite
>inb4 no im black lel

Delete this thread and make a new one with an anime image

mine's using 100MB just for the main thread alone

You sure are winning this fight.
Next we should have calculators that use the Unity 3D engine

Do those permissions carry or every user has to run those?

>Keep denying shit science and biased arguments and faulty evidence
I will, as will the majority of humanity
GG

It'll work for all users, only need to do it once per file.

On Sup Forums there was also a dozen pics of black men fucking white women at one time

>tfw ordered a copy of Mythical Man-Month

I thinking about making a simple video player and I'm not sure how to proceed. To render a video on a screen, I need to do two things:

1. Parse a video file to determine the pixels that need to be displayed for each frame.

2. Render those pixels on the screen.

How would I do part 2? Can I just use OpenGL to send the pixels to some buffer?

Maybe you just have a shitton of addons. Not sure what's wrong with yours, I don't have this problem.

If it's a really good calculator, sure, why the fuck not? I don't care how much resources atom is using because
1) I have enough RAM, not half is being used total right now on my system
2) It's a good text editor in my opinion.

I'd switch to vim, but I'd never be able to put the time in to learn it. ADHD's a bitch. I'd try to learn some shortcuts for 10 minutes and then I'd be doing something else.

What prevents me from running that on other linux machine and send passwd data to my server? Something obviously does

It will be done for you by another library.

>Maybe you just have a shitton of addons
this is the default installation from the .deb on the website

it's shit, i just uninstalled it anyway

finally finished the cross challenge
cross d
= let hx = zipWith (\x y -> replicate x ' ' ++ y) [0..] $ make (n-2) ++ ["*"]
in hx ++ reverse (init hx)
where n = if even d then succ d else d
make 1 = ["* *"]
make k = concat ["*",replicate k ' ',"*"] : make (k-2)

putCross = mapM_ putStrLn . cross


> putCross 17
* *
* *
* *
* *
* *
* *
* *
* *
*
* *
* *
* *
* *
* *
* *
* *
* *

>MB
>(+70MB)

Yes but sources are everything, and it would have to be some very rigorous stuff.
I know that if there was any serious literature suggesting innate differences in intelligence between whites and blacks, then I would probably not understand it, and neither would anybody on Sup Forums.

trying to parse the shadow file yourself fails as soon as someone is using 2 factor auth etc. PAM is the way to go

opengl.org/wiki/Pixel_Buffer_Object

Get with the times, gramps. 100MB of RAM isn't that much anymore. Most systems have 4, if not 8, GB of RAM installed.

rate my meme cross!
void cross(int n)
{
n = (n < 0) ? -n : n; /* abs */
n += (n % 2); /* force even n */
int i, j;
for (i = 0, j = n - 1; i < (float) n / 2; i++, j--)
{
int z; /* top */
for (z = 0; z < i; z++)
putchar(' ');
putchar('*');
for (z = 0; z < j - i; z++)
putchar(' ');
putchar('*');
putchar('\n');
}
for (i = 0; i < (float) n / 2; i++)
putchar(' '); /* middle */
putchar('*');
putchar('\n');
while (i-- != 0 && j++ != n)
{
int z; /* bottom */
for (z = 0; z < i; z++)
putchar(' ');
putchar('*');
for (z = 0; z < j - i; z++)
putchar(' ');
putchar('*');
putchar('\n');
}
}

* *
* *
* *
* *
* *
*
* *
* *
* *
* *
* *

captcha "LOL C"

someone recommended i learn C a few days ago and i've started learning

just want to thank you for convincing me. i have 1000 pages left of this book, but i'm having a good time.

so james watson's opinion doesn't matter to you since it's not what you want to hear

it's not "LOL C" it's "LOL 3GLs compared to 4GLs" you fucking moron.

>eh niggers gon nig

Despite how much I love black women (the most), that is factually true.

I don't feel guilty or bitter, either, because I had nothing to do with slavery or the restriction on civil rights, it's just that I'm not going to take the blame for it.

I only had "LOL C"
Definitely no 3

what

lamo, thats hard to read

I like how the code is split and documented
honest 10/10 for an imperative code

>hard to read
Because you don't know Haskell, idiot.
Although of course the second one is hard to read.

>>>>>an imperative code