« first day (913 days earlier)      last day (2943 days later) » 

00:01
@LegionMammal978 No wonder why.... You shouldn't be using numerical values for socket() params i.e. i0 = socket(2, 1, 0);.
@Kamiccolo lol, as I said, -46% maintainable
It should be i0 = socket(16, 1, 0);
Thanks for the support, though!
@LegionMammal978 please, don't use numerical values. The meaning might change. You have proper constants for that.
@Kamiccolo Oh fine, I'll end my challenge of using the most anti-patterns possible
heh :D I guess... You're not only one doing... anti-patterns here :D
My favorite line is const struct sockaddr ssa0 = { 16, { 74, 84, 127, 0, 0, 1 } };
(I guess I'll change 16 to AF_INET)
Yay, netstat reports the correct port now!
$ telnet localhost 19028
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
@Kamiccolo Question: On the serverside, should I use recv or just read?
00:17
@LegionMammal978 does not make much difference. I guess :}
Hmm...
Is it possible to get the TCP length argument?
I guess I can just read until it returns 0
@Kamiccolo Another question (sorry if bothering you): Does reading the client socket read all of the available data at once?
@LegionMammal978 I guess it supposed to have some internal buffer.
I'm not quite sure about inner working of sockets :/ It's been quite a long time since I did something with networking. Sorry.
It's okay, I'll see what happens
Background: I'm trying to make some JavaScript code interact with the outer OS
I'll be doing that through HTTP POST requests to localhost:19028
00:38
HTTP post requests?
There are.. better ways.. you know.
Message Queues, etc.
I don't think those are accessible from JavaScript
What platform are you running JavaScript on?
Browser? Node?
My web browser
00:40
ah
Specifically, I'm writing an interface that will tell the JavaScript program if a certain file exists in my filesystem
(It's literally a piece of code I paste into the browser console on another site, so I wouldn't want a repeated file-open dialog)
Oh, that's something you could just do with Nodejs.
@littlepootis Well, it also acts on the current page's DOM
(I tried messing with Firefox's SQLite cookie database, and it didn't end well)
No, I mean, write your listener in node, use fs.stat() to check for file existence, request from browser.
In Node, what you're trying to do is a few lines of code.
Oh well, it's a challenge for me
Considering it will be a few years until my programming skills have any practical use whatsoever
01:19
hi
hello world
helloc @JeffreyC :}
Hmm... so like malloc, but helloc?
01:39
What is your favourite web framework?
I am using Ember.js atm, but I dont really like it, so many restriction
I wonder if any in C?
@JeffreyC kore.io
@JeffreyC Ember sucks, yeah
Awesome!
@littlepootis why u said this =[
Well, most JS frameworks suck.
02:19
0
Q: Is it correct to call semget() followed by semop() without calling semctl()?

Lone LearnerI was going through the example program for semaphores in Beej's Guide to Unix IPC. The example program contains the following semaphore initialization code. I am only posting a snippet from it that is relevant to the question. To see the complete code, visit the link I have provided above. /* ...

02:38
Finally
(It's giving that error message because I didn't specify a POST body)
 
7 hours later…
09:35
@littlepootis I wonder how popular that is.. (it looks interestring btw)
(and when I say popular, I'm also wondering, how well tested/mature it is..)
10:21
@LegionMammal978 exactly: Conventional Greetings of This Room
 
1 hour later…
11:21
@PeterVaro btw, have You decided about VPN provider?
 
6 hours later…
16:53
@Kamiccolo I have, I will use what you've suggested, though I did not have enough time to focus on this issue right now :)
but that one seems promising, and has very nice discounts right now
 
1 hour later…
18:08
@PeterVaro aha, exactly what I wanted to tell :D

« first day (913 days earlier)      last day (2943 days later) »