« first day (1541 days earlier)      last day (3393 days later) » 

6:02 PM
lol Netflix is starting to ban VPNs
How dare you pay for content you filthy georestriction bypasser
5
Retarded beyond measure
 
another topic: we were speaking about space separator but it would have been cool to have a symbol to compose a tuple:
int a; double b;
auto n ¤ c = 2*a ¤ b*.5;
int ¤ double t = a ¤ b;
etc.
 
not bad
int a = 42, b = 50;
int n;
double c;
std::tie(n, c) = std::make_tuple(2*a, b*.5);
 
yeah i know it
 
hello
Someone knows 'x64' Intel assembly?
 
6:14 PM
I do
 
So please tell me the HEX of jmp qword ptr [memoraddress]
 
32-bit or 64-bit ?
 
REX.W + FF /5 JMP m16:64 D Valid N.E. Jump far, absolute indirect, address given in
m16:64.
This one
64bit
 
lol
 
6:15 PM
wtf is REX.W + FF /5 JMP in HEX?
can someone help me?
 
you asked for assembly, not for x86 machine code
 
REX.W is 0x48
then 0xFF
 
and FF /5?
 
@FISOCPP Get your processor manual and find out?
 
ok and what is '/5'?
It's not that easy
I just can't get it
wtf is 'FF /5'?
I know what 'FF' is
 
6:16 PM
it is encoded in r part of modrm
 
no idea what is this?
 
but do you have a hex chain to check ?
 
yes
 
give me
 
I just need hex vode
*code
48 FF
and then?
 
6:18 PM
i thought you have the hex and you want to check it is a jmp
modrm is a little complex to compute
 
No I want to make on
*one
 
so wait
 
ok
Thx men
 
in fact it depends on several things
what is memoraddress
 
x64 absolute
memory
x64 too
 
6:24 PM
well the issue is I don't think you can pass an absolute 64-bit address, it should be relative-RIP in a 32-bit offset vicinity
so you need to know the instruction address and the "target" address to make a difference and check it is in the 32-bit boundary
 
otherwise?
 
@Griwes Is Tumblr like the radfem home or what?
 
are you trying to emit hard-coded bytes ?
 
Yep
 
you didn't choose the easy road
 
6:27 PM
why do you think so?
 
@FISOCPP: Why don't you just write the instructions in assembler file, assemble it and then disassemble the resulting .o to see what it did?
Stop wasting people's time when you can do it yourself.
 
bcz it doesn't assemble
 
user1804599
It was totally fine.
 
0x2D
then 4 bytes encoding the 32-bit offset relative to the next instruction
0x48 0xFF 0x2D offset32
 
6:30 PM
can't be x64 address ?
 
nope
 
ok - thx
 
and offset32 is not an aboslute address
but i can help
0x48 0xFF 0x2D 0x00 0x00 0x00 0x00 : JUMPF [RIP+0]
0xSS 0xSS 0xTT 0xTT 0xTT 0xTT 0xTT 0xTT 0xTT 0xTT
where 0xSS is a byte of a 16-bit selector
and 0xTT is a byte of your absolute address (well relative to selector)
it will read selector and 64-bit address after the jump
to jump there
@FISOCPP but why do you need a selector!?
 
Oh well. I'm pretty surprised that you accepted this answer then, since the other answer does exactly the same, except it does accept and ignore "other" JSON content. Did you miss the update that defined extract_from? It uses exactly the same data structure - the one you suggested in the question. — sehe 2 hours ago
 
user1804599
@FISOCPP RTFM you lazy help vampire.
 
6:40 PM
that filthy help vampire
 
A lot of new people I see.
 
user1804599
TIL about script(1).
 
@MathiasSiigNørregaard it's only odd that you are impersonating programmer and say stuff happened for no reason :)
 
And by "a lot" I mean "2"
 
@Jefffrey some more. but yeah
 
6:41 PM
@sehe rabbit guy and FISOCPP, who else?
 
user1804599
I love Sonic Syndicate.
 
@FISOCPP, I mean you probably need a simple version with no selector like:
MOV RAX, 64-bit aboslute address
JMP RAX
 
@Jefffrey time to transcript up or stay curious
 
user1804599
@Jefffrey Asad Ali, Mathias Siig Nørregaard.
 
user1804599
@Jefffrey sehe
 
6:42 PM
lol
 
user1804599
There must be a better way to do this than parsing the output of ping.
 
@CatPlusPlus lel
 
user1804599
Why is ICMP restricted to root?
 
@rightføld rabid guy*
 
user1804599
RabbitShare
 
user1804599
6:45 PM
 
> Interestingly, this patch has been trimmed down from the version which is applied to Openwall kernels. In the full version, the ability to create ICMP sockets is restricted to a specific group, which can be set by way of a sysctl knob.
The ping binary is then installed setgid. In this way, full access to ICMP sockets is not given to unprivileged users, while ping only gets enough privilege to create such sockets. The group check was removed from the posted patch to make acceptance easier, but it seems likely to be added back before the next posting.
> For more information about the thinking behind this design, see this message from Solar Designer.
@LightnessRacesinOrbit I see yawns though
 
user1804599
@sehe Speaking of setuid, I seem to be able to use LLDB on ping as non-root. Isn't that dangerous?
 
Hello all
 
Fucking spiders
 
user1804599
Hmm wait, on OS X ping has no setuid bit set.
 
6:52 PM
I'm being invaded
 
user1804599
Weird. Maybe everyone can open raw sockets on OS X.
 
Assuming I have a class template that contains a member of size 1 byte and that class, for certain template arguments, can even do without that 1 byte member, would it be, memory wise, worth it to actually remove the member in those occasions?
Wouldn't the class still be of at least 1 byte in any case?
I can't think of a single case in which that would make any difference.
 
Was there a map of all loungers somewhere? As in, where in the World they reside?
 
We should have that. A table with country and timezone for each lounger.
 
if I recall well, there is no class with 0 data members which has its sizeof set to 0
 
7:03 PM
@hlide Exactly, because it still needs to be referenced (by a pointer for example).
 
more precisely it would be not less than 1 byte even without data members
 
@Jefffrey Will users derive from it?
 
@milleniumbug No.
But how would that be a problem in any case? The member in question is private, so it would be implementation defined anyway.
 
@Jefffrey In that case I wouldn't bother.
 
why do you need this one byte in first lieu?
 
7:08 PM
Otherwise they could benefit from empty base optimization.
 
@milleniumbug Oh, I see. Like they would be able to derive from that base and get only the size of the derived class, right?
 
That's right
 
yeah
 
Nice, thanks.
 
0
Q: How could I implement a vector of stack?

KoogleI am currently trying to implement a class with a vector of stacks. The class shall work as a stack to other objects but distribute the data to different stacks of a maximum size internally. If a stack is full a new one is created and pushed to the internal vector. Thanks. Sample Code: #include <

wut
 
7:28 PM
0
Q: Borland style __closure in gcc

İlhan ÇELİKI am new in programming with gnu C++. I have an application which I thought to be converted to cross platform and I began to use C::B about two months ago. I had many problems but I solved them keeping original code in #ifdef BCB ... #else ... #endif blocks for objects classes or structs. I am no...

 
Ell
@Jefffrey classes always have a size of at least 1
so there is no point in removing the only member if it's size 1 also
 
It's std::uint8_t, so I guess it takes 1 byte.
 
Ell
yah it does
but a class with no members will also take 1 byte
 
user1804599
Having the config file be a program is so tempting because it's so easy to implement.
 
Ell
just make it json
 
7:38 PM
Hi, in my C and C++ code I always use #ifdef DEBUG macro to print out some debug message and then remove them mannuly afterwords. This process is tedious, I am wondering if there is any automation tools I can use for this kind of task?
 
user1804599
@Ell lolno
 
user1804599
I'm writing the program in Clojure, might as well make it edn.
 
Ell
just make it yaml
 
@dorafmon Examine how does the standard assert macro does it.
 
@rightføld maybe or maybe it works because it's setgid (setgid!=setuid)
 
7:43 PM
1
Q: <pre> not working well with <iostream> for C++ Code

Rahul GuptaI want to show the text below #include <algorithm> #include <iostream> in my HTML file. I know that we have to use the HTML pre tag, but when I do so, I can only see #include. In fact, I am not able to include the code on Stack Overflow; it is showing me only #include. Please help me.

 
@dorafmon or, if you don't mind the performance hit, always call a real function or method that can print debug messages, but if DEBUG is not defined, compile that function to do nothing.
 
3 hours ago, by Ell
I'm trolling :P
 
thanks
 
Ell
just make it INI :P
@sehe I actually like yaml
 
Is there any tools that can automatically remove all code inside #ifdef DEBUG?
 
user1804599
7:44 PM
@Ell no
 
YAML stands for I Actually Like YAML
 
user1804599
 
@dorafmon C preprocessor
 
-UDEBUG
on the cmdline
 
Ell
7:44 PM
just make it XML
 
user1804599
I prefer edn over XML.
 
user1804599
If only because edn is Clojure data structure literals and I use Clojure.
 
At least sexprs can be easily processed programmatically
Fuck Ruby config DSL and other shit like that
 
user1804599
Yeah.
 
user1804599
7:50 PM
Reader macros are fun. java.time.Duration literals are very useful in my case.
 
^ a friend of mine did this tonight
apparently the driver called to ask full fat or semi-skimmed
 
Laziness redefined
 
grubhub came out with an antisocial commercial. "Order from us and you'll NEVER have to speak to another human being again"
 
Ell
I wonder if there's a way I can get banished to render to a resolution larger than the display connected to it supports
 
user1804599
fuck google
 
user1804599
8:04 PM
I search for "log to outputstream" and it finds how to redirect outputstreams to loggers.
 
user1804599
What the fuck is wrong with Google.
 
user1804599
That's the complete opposite of what I'm looking for.
 
@CatPlusPlus where wiki?
 
What wiki
 
lounge wiki
 
tar
 
Wanna make content, make a pull request (also needs layout and stuff)
 
why is that not everything?
 
What's not there
 
stuff re uncon 2.0
 
8:08 PM
Was there even anything on that page
 
yes, hence my wanting it
not much I grant you
 
I'll find it in the database dump when I have a moment
Unless you can just recreate it
 
I think I can do with out
 
user1804599
Fuck it, I'll just make the config file a Clojure program.
 
Ell
man
banished is difficult to get started in
I wish dwarf fortress was better
 
8:25 PM
still #10
 
People the time has come! Where will unconference 2.0 be held? (rsvp asap, by 18th at latest idealy)
12
pin plz
 
@rightføld entitlement much. think moar about how google works
 
didn't you use to be an owner?
hey it's not loading for me
 
user1804599
If Google's first result isn't the thing I'm looking for, Google is broken. Period.
 
ah there it is
@rightføld bullshit
don't be so entitled
wah wah everyone must do everything for me
 
8:31 PM
¬_¬ ffs @rightføld
 
what did he do
 
user1804599
What? I think it's quite a reasonable requirement.
 
@VáclavZeman not bad
 
user1804599
That's what they should strive for.
 
8:33 PM
@thecoshman Why can't I see the results once submitted my vote?
 
@thecoshman I'd go if it'd be in Russia
 
@rightføld no, your response you pleb
 
also I guess that the kitty would agree with Australia
 
@Jefffrey I'll post results at a later point
 
@LightnessRacesinOrbit Must be painful for RightnessFoldingInOrgy to realize he agreed with me when he's made to ogle the transcript
 
8:34 PM
@thecoshman Why?
 
@Abyx fill it out, don't tell me
 
Why can't we see them live?
 
@rightføld and that's what they do. Apparently, they're succeeding so well, that you stopped seeing the mechanics for the (marketing) lies. That's a sign of stupendous laziness, especially for techies
 
because as soon as they are posted, we then have to fight it out. it's like a will with money grabbing relatives. Best wait till everyone has said what they think
 
user1804599
@sehe they should strive harder.
 
8:35 PM
@thecoshman you have a few minutes?
@rightføld maybe you should pay them harder
 
@sehe yes...
 
user1804599
How? They don't charge me.
 
@thecoshman because there's a lot "what I think"
 
@sehe is his balls not enough
 
he's keeping them for himself. bastard
 
8:37 PM
@sehe ¬_¬ fill out the form
 
Nope
Dem newbies, they can tell you "that didn't help" but they gleefully "miss" your question:
 
user1804599
@thecoshman I submitted it!
 
Ell
I'm attempting DF again
 
Come on. Not even a reply? I thought RightnessFoldingInOrgy was a nice find
 
@rightføld twice ¬_¬
 
8:39 PM
@rightføld next, file bug reports to google
@thecoshman ultimate submission
 
Ell
> No fish
> No cave lobster
 
user1804599
@thecoshman Bullshit.
 
user1804599
I clicked the button only once.
 
user1804599
@sehe A reply from who to whom?
 
user1804599
@thecoshman Are the submissions public?
 
user1804599
8:42 PM
I want to see the others'.
 
I also feel like I should have asked people to put in some randomish word and ping me the same to help filter the spam...
@rightføld not yet
 
char *strchar = &str[0];
char *token = strtok(strchar, " ");

What this does is initialize a char pointer strchar that points to the address of the first character in the string. Then, I use that address and put it into the function strtok and it goes to the address next to the original address.

Is my inference correct?
 
will publish once most have said
 
user1804599
@DonLarynx Nobody knows, because nobody ever uses strtok.
 
user1804599
Except morons, but they are typically not here.
 
8:44 PM
What's better than strtok?
I just saw how dangerous it is
 
@DonLarynx strtok is punishable by death.
 
@rightføld aw
 
you've earned the right to stay
and eat the crumbs
 
user1804599
@Jefffrey hint: I was exaggerating.
 
8:45 PM
ow
 
I wasn't
 
user1804599
Ugh.
 
user1804599
I want to create a fucking logger given a file path.
 
@Jefffrey not even morons are stupid enough to use it
 
user1804599
Why does the manual only explain how to create loggers from XML configuration files?
 
8:47 PM
hard to do that seems
easier it is than you think
imagine it you must
> the manual
 
user1804599
Should I like write the XML configuration file programmatically?
 
Are you into log4net fetish now?
 
user1804599
No, SLF4J.
 
@rightføld nope. / depends
 
Hmm, already dead. It said "Why when i put something in the toilet and push the flush suddenly disappeared? What can i do?"
 
user1804599
8:48 PM
They call it the Simple Logging Facade but it appears to be everything but simple.
 
> Why when i put something in the toilet and push the flush suddenly disappeared? What can i do? Also my toilet running windows CE SP1
 
user1804599
It's a Silly Logging Faeced.
 
Just open a file and write to it
 
user1804599
Yeah that's probably better.
 
8:50 PM
@rightføld That is not SLF4J's job. That is a job for the underlying logging implementation that you have chosen.
E.g., log4j or logback, etc.
 
user1804599
Logback, manual has same webdesign.
 
user1804599
So I consider it SLF4J.
 
@rightføld it's simple as long as you do as you're told!
 
user1804599
I'm rightfold, not righttold.
 
right. told you so
 
8:52 PM
@rightføld Same author, IIRC.
@rightføld I am not sure about Logback specifically, but you should be able to just instantiate the necessary appenders manually, I think.
 
user1804599
Logback can die from AIDS. I'll just open a file stream in append mode.
 
user1804599
And my main function will just execute the configuration file as a Clojure program and that's it.
 
user1804599
Program as a Library™
 
user1804599
Config as a Program™
 
For daemons all the logging logic program needs is "write to stdout"
 
8:58 PM
@CatPlusPlus No syslog? Or Windows EventLog?
 
Maybe, depends on environment
 
user1804599
Config file can just start all services and connect channels with mult and tap.
 
No crazy file logging logic anyway
 
@rightføld: You are being too lazy! It can be done, it is not that hard.
You need to instantiate appender, add layout to it, and add the appender to the logger.
 
user1804599
No.
 
9:02 PM
@rightføld No what?
 
user1804599
(FileWriter. path true)
 
9:19 PM
@thecoshman What's wrong with it, again?
 
Everything
 
user1804599
For a start, it uses char* not std::string.
 
user1804599
Secondly, it's string-specific.
 
user1804599
It's also thread-unsafe lolglobals
 
user1804599
I want to learn Agda or F*.
 
user1804599
9:26 PM
Oh right Agda fails installing. F* it will be.
 
@rightføld You do not have enough patience for Ada. :)
 
Agda is not Ada
 
user1804599
That's why I want to learn Agda instead.
 
user1804599
Although I want to learn Ada as well.
 
@rightføld Of course, it's a C function.
 
user1804599
9:27 PM
lolC
 
It's literally impossible to use strtok in a safe manner
 
@Jefffrey I've no idea what it is, but it's using C 'strings', which is enough reason to not use it
 
@thecoshman I bet you like printf though.
 
user1804599
strtok is hitlerally litter.
 
@Jefffrey no
 
9:29 PM
@rightføld lol
 
strtok_r is slightly less terrible but still fundamentally fucked up
Don't use strtok
 
user1804599
Oh nice F* has a JS backend.
 
@CatPlusPlus I have no intention to.
Also why is it thread unsafe again?
 
Because a) it uses global state b) mutates the original string
 
@CatPlusPlus Not all Agda are Ada but all Ada are Agda?
 
9:32 PM
What global state?
 
AGDQ 2015 going on.
 
The string that's being modified
 
@CatPlusPlus So, it's the same as point b?
 
You call strtok(thing, whatever) and then all the subsequent calls are strtok(nullptr, whatever)
No
 
lolwat
 
user1804599
9:32 PM
@StackedCrooked sure:
 
user1804599
user=> (subset? (set "Ada") (set "Agda"))
true
 
It both mutates the string and keeps an internal pointer to that string so it can find it on subsequent calls
It's just broken
 
why
 
user1804599
Because it's shit.
 
It's part of libc
 
9:33 PM
Who voted for such a decision?
 
Possibly the worst C library in existence
 
I think I can implement it without global state.
 
Beating even OpenSSL
 
user1804599
@Jefffrey No need to. Boost already did.
 
It was made before anyone voted on anything
 
9:34 PM
jesus
 
This song is now 10 years old.
 
user1804599
> Note, unlike assertions in other languages, assert in F* has no runtime significance—assertions are always checked at compile time, and if the assertion cannot be proved by the typechecker, F* refuses to compile the program.
 
user1804599
cool
 
> static char *olds;
lol
 
9:39 PM
Thread locals are for chumps
 
@StackedCrooked OMG, the bodies! I have never seen this clip. :D
 
Ell
@StackedCrooked feels way older to me
also dat ass
 
@StackedCrooked I loved the one that did the "rice bucket" challenge because she misread it.
 
9:51 PM
 
Ell
> RIP headphone users
 
@Ell lol
 
@Griwes lol, nice.
 

« first day (1541 days earlier)      last day (3393 days later) »