This is /dpt/, the best subreddit of /g/
Gay shit edition
In this thread:
r/programming
r/compsci
r/ReverseEngineering
r/softwaredevelopment
code of conduct:
no racism
no insult
no sexual harassment
no gender discrimination
wat r u working on, anon-chan ?
can someone tell me why notfify-send only works if I run it with sudo/as root?
if I run it as a normal user, it runs without complaint but it doesn't actually show a notification.
>>51722583
oops meant to post this in sqt
sorry /r/dpt
>>51722583
Is the DISPLAY variable set correctly in the script/shell you're running?
Help. I'm working with loops.
My output goes like this-1
0
1
2
3
4
5
...
Whereas it should be constantly 0.
Tips on how to fix this? I had this happen to me once about a year ago but I can't remember how to fix this.
>>51722678
Post your code first.
Reminder than Go blows every other language out of the water.
/dst/
DAILY SHEMALE THREAD
reminder there is a shortage of traps, we need to encourage young boys to be traps to service gays like OP
http://www.nambla.org/
>>51722713
Fucking this.
Go is absolutely revolutionary, everything else is garbage.
>>51722627
I'm a greenhorn when it comes to this stuff, so bear with me.
Calling $DISPLAY in my terminal as normal and root both return :0
>>51722731
echo $DISPLAY
>>51722704for (int i = 1; i <= SIZE; i++) {
for (int j = 1; j <= SIZE; j++) {
gotoxy(i, j);
switch (level[i-1][j-1]){
case '0': cout << ' '; break;
case '1': cout << '#'; break;
case '2': cout << '@'; break;
case '3': cout << '&'; break;
default: cout << 'X'; break;
}
}
}
Here is the output.
>>51722713
>>51722730
So sad, trying to reply to your own posts in order to shill and then fucking it up completely.
Tripfags, everyone.
>>51722767
Oh also that S is intended, I cut out some cases that I'm not using yet, and I forgot I added this one already.
been a while, do we not do Nagato anymore?
>>51722800
She's up occasionally, but OP is a fucking faggot who can't even get the thread title right.
>>51722767
>>51722792
nevermind, I got it working.
>>51722767
>>51722855
go sounds faggy
>>51722881
Stop pretending, GTP.
>>51722881
well, /g/ will surely love it, then
>>51722912
/g/ follows classic PHP, C++
Don't know why I'm excited over this but I am
(see top left)
>>51722897
I don't even know who GTP is.
I'm actually serious, Go sounds faggy.
>>51722713
>>51722730
10/10
>>51722932
top right*
>>51722777
I think that was the point of his joke.
>inb4 I'm him
>>51722967
we are all him
go is still faggy though
>>51722777
>>51722942
it's not even OSGTP's tripcode dumbasses
What hashing algorithm does 4chan use for tripcodes?
Is programming C in Windows any worth? I still want to play my gaymes.
>>51723086
dual boot or VM
>>51723086
VM Linux
>>51723099
Well, what would you reccomend? I might just do Gentoo or Debian again.
>>51723099
>>51723123
why would you need linux to program in C?
>>51722495
D is best language desu senpai
>>51723128
distro doesn't matter lol, you can install i3 on any of them
>>51723132
You don't, but it makes it a lot easier
>>51723128
Not them, but I've always felt that gcc is easier to use in Linux. You have to go through a few more hoops to get it to work on Windows. Not that installing Linux to program in C isn't a hoop, but using Linux does allow for easier expansion I feel so it's well worth it.
But I would say just go for Debian if you're wanting a more instant gratification distro.
OP fucked up
>>51723185
Getting GCC to work on Windows can be done with a simple installer.
Getting Unix shit to work on Windows does require jumping through hoops. As long as you recognize that unistd.h and all of the sys/whatever.h shit is not a part of C, then you should have no problem with GCC on Windows.
Real thread here.
>>51722977
>>51723319
fuck off, you're ruining it for everyone. not that i support a gay shit edition but we don't need duplicate threads
what's better? Java or Lua?
>>51722731
What font is that?
>>51724968
java definitely
>>51725866
dubs don't lie
>>51722475
i used to be trolled but i found out a way to stop it. i do all kinds of stupid and gay shit. they cant troll you if you dress up as a girl and kiss them. i dont like doing it but it works
Is anyone good with Bison/Yacc that can help me? Can't figure out my issue here.
rev1.l%{
#include <stdio.h>
#include "rev1.tab.h"
%}
%%
[0-9]+ {yylval.val = atoi(yytext); return NUMBER;};
[ \t] ;
\n return 0;
. return yytext[0];
%%
rev1.y%{
#include <stdio.h>
#include "rev1.tab.h"
%}
%union {
double val;
}
%token <val> NUMBER
%type <val> expression
%%
statement: expression '\n' {printf("= %f\n", $1);};
expression: expression '+' NUMBER { $$ = $1 + $3; }
| expression '-' NUMBER { $$ = $1 - $3; }
| NUMBER { $$ = $1;}
;
%%
when I enter in any numbers, nothing happens though