« first day (821 days earlier)      last day (4351 days later) » 

user142019
00:00
I have a file ./libuv/libuv.a and I have this in my wscript:
user142019
stlibpath=['./libuv'],
stlib=['uv'],
user142019
Why can't ld find the library?
Hi, I had a vim/replacement question. How can I change in my document all instances of \cite{something} to [@something]?
user142019
%s#\cite{something}#[@something]#
That's really basic.
user142019
00:02
That's really c#.
Ell
Ell
Ughh I feel like I'm going to deadmg all over the floor
user142019
Maybe %s#\cite{([a-z]+)}#[@$1]#? I'm not sure about this. :P
the "something" would vary
@user1027169 :%s/\\cite{\([^}]*\)}/[@\1]/g appears to work.
user142019
00:03
Oh \1.
@Ell what
@LucDanton thanks, i'll give it a shot
Ell
Ell
It means I feel like I'm gonna puke :P
user142019
FUUUUUUUUUUUUUUUUUUUCK
Ell
Ell
00:07
?
@StackedCrooked I don't think the two events are relatable.
user142019
Stupid terrible linker.
user142019
Why can't you find the damn library.
user142019
I gave you the name of the library and the directory it's in.
Ell
Ell
@zoid Have you checked in your inside pocket?
00:08
Unless that first 500k count is somewhat accurate I suppose?
Indeed.
The joke is about how the claimed number of participants is way too big.
@StackedCrooked I don't know how either of a 500k crowd or a 800k crowd looks.
Neither would I.
More relevant, but apparently the self-reported count goes as high as 1M.
00:11
Here in Belgium its reported as "tienduizenden" lol
user142019
How do I tell Waf to omit the -Wl,-Bdynamic and -Wl,-Bstatic flags?
What was? Copycat walks?
user142019
Stupid build systems with their terrible assumptions.
Ell
Ell
00:30
Would you rather specify paths to all libraries?
user142019
The funny thing is.
user142019
It works when I invoke clang directly and let clang handle the linking.
user142019
But when using Waf, it breaks.
user142019
$ clang++ src/**/*.cpp -std=c++11 -L./libuv -luv -I./libuv/include -I./include works fine.
@StackedCrooked What's JMJ?
00:32
I believe that's when the pope visited.
oh
user142019
$ clang++ src/uv/loop.cpp.1.o -o ~/sf/build/a.out -Wl,-Bstatic -Llibuv -luv -Wl,-Bdynamic does not work, and that's how Waf invokes it.
I don't think there's all the people in the second pic. There was more of them than that.
Ell
Ell
@zoid just do it manually then? Or batch file or whatever?
user142019
I can write a shell script to do it.
user142019
00:34
And I'll do that if I can't get it to work in ten minutes.
user142019
I already asked on SO.
Ell
Ell
Ugh need to learn chemistry by the morning
As well as critical path analysis
user142019
0
Q: ld can't find a library when using Waf, but it can when not using Waf

ZoidbergI'm trying to build my project. I have libuv already compiled in ./libuv as libuv.a (so the relative path to the library is ./libuv/libuv.a). When I use clang directly, it works: $ clang++ src/**/*.cpp -std=c++11 -L./libuv -luv -I./libuv/include -I./include However, when I build using Waf, I ...

user142019
</repwhore-mode> ugh :P
@StackedCrooked E32 - shooting up pain-killers so he can fight with a broken fist - rofl
00:42
:D
00:54
@StackedCrooked love it: Kansai vs Kanto is >ALWAYS< a blast! They're opposites in everything: side for going up/down stairs (stand left in Tokyo, stand right in Osaka), taste in food (salty in Tokyo vs natural in Osaka), mannerisms (more casual in Osaka), etc...
user142019
Let's try the -vvv superverbose flag.
I should really try to get more Rep.
There's a number of questions on Gamedev that would be piss-easy to answer, but...
Eh.
@kfmfe04 Cool, I didn't know that.
There's probably a lot in anime that I'm missing.
@StackedCrooked the list is endless - Kyoto (Kansai) vs Tokyo (Kanto) as the capital, Hanshin Tigers vs Yomiuri Giants (this one is heated - the games get very rowdy)... ...I only know the tip of the iceberg - if you ask a native there's a lot more - I can't recall exactly, but there was an incident in history where someone in Kansai betrayed their side - I think it resulted in a change in history (during Civil War) - not long afterwards, the capital was moved from Kyoto to Tokyo...
user142019
DAMN
user142019
01:00
FUCK
user142019
I fucking hate linkers.
user142019
Why do they always fail at everything. T_T
Ell
Ell
But nobody ever teaches how to use a linker
@StackedCrooked nice link ;^)
user142019
01:04
ld is a terrible program.
user142019
ld is doomed and from hell.
Guys, can you point me in the right direction, i can't seem to comprehend formula for standard noise deviation of image (very specific image, it's basicly contains noise itself and some edges). It's described in this document: citeseerx.ist.psu.edu/viewdoc/… on second page, formula (3). I've implemented it as such:
user142019
Somebody should write a linker that just works.
@Zoidberg Impossibru.
user142019
One that just searches your entire fucking file system for the files.
@Zoidberg Wouldn't that be fucking slow?
huh
they're sending out more SO swag
user142019
@Mysticial faster than having me find it after being confused by terrible error messages.
@DeadMG That was a few days ago. Did you just get the email?
I can't seem to find what this N thing does and why i keep getting such variative values for images with relativly same noise level.
01:07
@Mysticial With SSD perhaps not :)
I mean is this N really count of pixels in image or it's some magic constant...
@StackedCrooked I guess that would depend on how much shit is in the file system.
How 'bout a shitload of shit?
Which I guess isn't too bad for me since all my shit is on external drives.
Searching through 6 TB of anime to find source files. :3c
01:09
Maybe it will find something!
Linker attemps to link in Lucky Star.
pastebin.com/z48ybkf0 - forgot last line
And that, son, is how all the computers became infected.
user142019
Also, OS X's linking model is more fucked up than everything and designed by idiots. The libraries themselves contain the paths where they can be found. Like, you already need to have that fucking path in order to find it. It doesn't make sense. Oh and if you put the library somewhere else it won't link. You need to use some tool on it to fix the path.
@ThePhD That actually pretty fast. Since video files are big.
01:10
@ThePhD lol, I found that show to be unwatchable
user142019
Linkers and object files and libraries are terrible.
@StackedCrooked I haven't watched it yet, but a friend of mine keeps talking it up.
Like it's the greatest thing ever.
I only have about 11k files in both my Anime drives combined.
@StackedCrooked Same. I didn't get Lucky Star.
I tried to like it, alas.
I recently deleted a big bunch of anime again.
Life's tough if you only have 3TB.
I like Lucky Star - it's got tons of everyday (and super-geek) culture inside...
prolly the geekier you are, the more you'd enjoy it
01:13
@Mysticial I've been busy.
@DeadMG ah
@Zoidberg That's rpath and it's on other *nixes too
user142019
It's horrible.
Ell
Ell
Fuck im so screwed :( why do I have no will power? I'm not going to succeed in life!
It's there to get rid of the library search during dynamic linking
You can disable it
01:15
@Ell I also have no willpower, as do many of the people here.
@Zoidberg There are different possibilities. E.g. I believe it's possible to specify a path relative to the application bundle.
LD_LIBRARY_PATH
Ell
Ell
It's all the computers fault. if only I was computer illiterate
user142019
@StackedCrooked Indeed.
user142019
But it usually goes like this:
01:17
@Ell Simple fact: The digital world is way more fun and rewarding than the real world.
@DeadMG I dunno about that...
user142019
Program wants to link dynamically.
Linker finds the library file (which is provided by the executable).
It should be able to link since it found the file already.
Instead, it errors because rpath is incorrect.
T________T
user142019
That's like killing somebody because he didn't pay you, while he did pay you.
Ell
Ell
@deadmg yeah :( mostly. It's definately a lot easier and quicker results
@Zoidberg Not fast enough, obv.
01:18
@Ell It's less about that, and more about being able to proceed without being held back.
I mean, sure it would be nice if the people who authored Clang didn't suck horrifically
but nobody can ever make me worse off than I would be alone
whereas in the real world, everybody makes me worse off than I would be alone.
user142019
@ThePhD assuming in time and everything is correct.
@DeadMG Well, if it's worth much, I wouldn't make you feel worse! :D
@DeadMG You are too good for this world.
4
user142019
01:21
Finally got Waf to work. Linked was too dumb to find out the current working directory so I had to specify the absolute path.
Ell
Ell
I think my parents are going to be heavily dissapointed in me throughout this year
user142019
Parents of all over the world are constantly disappointed by their children not being me.
@Ell That's what happened to me, too.
after I realized that the "education" system I was enrolled in did way more harm to actual learning than good
user142019
I got skullfucked by the linker. github.com/daknok/SkullfuckDB :P
user142019
@DeadMG same here.
user142019
01:26
It's terrible.
I just completely lost any kind of interest or motivation
user142019
I haven't learned much till now, but I did learn one thing: I fucking hate working with complete damn noobs.
Ell
Ell
I lost motivation long ago, but managed to excel still at gcse but at a level now I suck
user142019
Who cannot indent code, who cannot read style guides, who can't write for loops, who don't understand recursion.
it's not like I have anything against noobs
I was a noob once too
user142019
01:28
TEACHERS WHO DON'T UNDERSTAND RECURSION
I just don't appreciate being forced to work with them
@Ell Same.
you want to know my A-level grades for Mathematics?
AAAADE
user142019
Teachers who think there are strict style guides regarding the syntax of pseudocode.
user142019
My teachers are terrible.
Ell
Ell
I'm still a noob, although a maturing one I like to think :3
user142019
They should be fired. All of them.
Ell
Ell
01:29
Woah
was even worse for my Law grades
We have a new colleague at work. So technically he's a noob. But he is a very fast learner. It's a bit frightening.
Ell
Ell
That is a dramatic drop off o.o
user142019
@StackedCrooked does he indent his code?
I don't know.
user142019
01:30
I hope for you he does.
He's currently working on a test platform.
@Ell Yeah.
the first four modules are January, May x2, then January, then May x2
Wish i had a work that compel me to professionally grow...
wait
July? more like May
@Zoidberg Oh, I misread your question. (I thought you asked how he indented his code.) In any case, yes he does indent.
user142019
01:31
@StackedCrooked Good.
user142019
It's so hilarious.
It would be weird to use no indentation at all.
user142019
People in my class have syntax errors because of mismatched braces.
Altrough i'm fairly free to implement and try anything i want unless it will break deadlines or do harm to the stability of existing "system"
user142019
They don't indent their code or they indent it wrongly.
user142019
01:31
Terrible shit like this I see all around when at school:
heh
I quibbled about indentation when I was 13
not since then
@Ivan0x32 That's good.
@Zoidberg you kidding right? i thought this shit is present only in our country...
user142019
    if (foo) {
        if (bar) {

    }
}
else {
    meh;
}
user142019
01:32
I mean.
user142019
What the fuck is wrong with people.
user142019
Use a decent editor at least. One that auto-indents and shit. Not Notepad.
user142019
If I had real claws, I'd have decapitated them already.
I have a new episode of One Piece and a new episode of Magi lined up. Which should I watch first?
user142019
01:35
@Zoidberg One Piece it is!
user142019
It's a real random number generator!
hmmm
user142019
Not that pseudoshit. :P
you know, I'm almost tempted to resume work trying to break SHA-2
user142019
01:36
Np.
I came up with a few new ideas
user142019
lol
user142019
I should continue working on Skullfuck.
I should continue watching One Piece.
user142019
I hope Skullfuck becomes popular when it's in production-ready state.
01:37
tbh are there any concurrency books called "World Hello"?
user142019
No.
hmm
YouTube is trying to advocate to me a cartoon called "Willy Bum Bum".
this is double-plus ungood
user142019
01:54
user142019
I should put those nice words on the web page of my database too!
@chris No -- but there is one named "W lHeoldrlo"
hmm
@Zoidberg You forgot webscale!
I wonder if it is possible to define AND in terms of XOR?
01:58
@JerryCoffin, Good enough :p
Cool if keep Ctrl-Z pressed in the input field then it iterates all my previous messages.
user142019
I'm terrible at typography. daknok.github.com/SkullfuckDB :P
user142019
There once was a question on Meta tagged .
user142019
C++ y u no namespace: access specifier.
02:13
@Zoidberg lol
user142019
@DeadMG only in terms of XOR?
@Zoidberg And NOT.
user142019
XOR is possible to define in terms of NAND.
user142019
I don't know about the reverse.
Everything is possible in terms of NAND.
user142019
02:16
And NOR. :P
Just NAND.
NOR works as an alternative, though.
user142019
@chris That's what I meant. :P
Well, I guess you should've said "xor NOR" then.
Though I guess it still is possible with both, just not the point.
SO just go down?
user142019
Yup.
02:19
fuck
this is almost the worst possible time for me
SO crashed?
Maybe one part of it is secretly PHP.
oh good it's back
user142019
x && y         ~= (x ^^ y) ^^ true
true && true   == (true ^^ true) ^^ true
true && false  == (true ^^ false) ^^ true
false && false != (false ^^ false) ^^ true
user142019
@DeadMG ^ almost :P
02:21
yeah
I had similar issues myself
user142019
No wait.
XNOR is quite close to AND
user142019
true && true   == (true ^^ true) ^^ true
true && false  == (true ^^ false) ^^ true
false && false == (false ^^ false) ^^ true
but eliminating the double-false case is tricky.
no.
user142019
false && false == false
02:22
false ^^ false ^^ true = true.
user142019
Oh yeah. xd
user142019
No.
user142019
Yes.
user142019
Damn.
user142019
I give up.
02:28
wtf is ^^?
user142019
XOR. In pseudocode.
user142019
I got it! a && b = (a == b && a == false) ? false : (a ^^ b ^^ true) :P
⊕, anyone?
user142019
(I know it's wrong, yes.)
user142019
In C++, logical XOR is !=.
user142019
02:29
(Assuming Booleans.)
user142019
true  != true  == false
true  != false == true
false != false == false
user142019
Hmm NXOR.
Magi's ep was better than One Piece's.
user142019
Damn.
user142019
I forgot to make <em>s italic.
user142019
02:42
I should also support weak references in SkullfuckDB.
user142019
Such that references to it are nulled.
02:59
Is meta down?
They are doing something right now.
nvm, it's back up
is SO down
it keeps redirecting me to stackoverflow.com/error?aspxerrorpath=
nvm fixed
they sure are fucking around today
user142019
When is static_cast<T*>(U*) not allowed while reinterpret_cast<T*>(U*) is?
Why?
I don't know the answer though.
user142019
::uv_close(reinterpret_cast<::uv_handle_t*>(tcp.get()), nullptr);
user142019
Where tcp.get() is a ::uv_tcp_t*. I tried static_cast first but it didn't work.
03:09
if (c.find("6011") != string::npos && c.find("6011") == 0)
I can only wonder.
@chris ? sounds redundant.
I left a comment saying that.
Weeeeee! Just got a Java update. And, oh, they do security fixes.
@chris link?
Oh good. I can go download that youtube video now. I was too lazy to find some other method of downloading it.
03:14
man that is.. :|
definitely not a nice answer
Just wondering. Isn't std::unordered_set<T> basically equivalent to std::unordered_map<T, T> ?
a set is a collection of keys, a map is a collection of a key and a value
@MarkGarcia Yay -- after only six months, they finally decided to fix something.
@Rapptz But in the hashed set, you need to have a separate "key" for the hashed value.
Thus, you need to store they hashed key and its value in a set, just like in a map whose key and value are "equal".
an unordered set is just a <Key,std::hash<Key>, ...> while the map is <Key, T, std::hash<Key>, ...> so I guess in a way it's similar?
user142019
03:25
TCP TCP::accept() {
    TCP client{loop};
    auto* serverStream = reinterpret_cast<::uv_stream_t*>(tcp.get());
    auto* clientStream =
        reinterpret_cast<::uv_stream_t*>(client.tcp.get());
    if (::uv_accept(serverStream, clientStream) != 0) {
        throw AcceptError{};
    }
    return client;
}
user142019
I don't understand why it tries to return client by copy instead of by move.
user142019
Oh. Dafuq.
user142019
I had to explicitly specify a move ctor.
user142019
C++ y u so weird and complicated.
@Zoidberg Yes. And a move assignment op.
03:30
@Rapptz A set stores <const KeyValue>, a map stores <const Key, Value>.
I see.
If you store a type with mutable bits in a set it's equivalent to storing the key and mutable bits separately in a map.
@LucDanton Does a set store key (hash value) - value pairs?
@MarkGarcia No pairs involved in a set.
@LucDanton Oh. Right. Conceptually, I mean.
03:32
I also meant that conceptually: I don't think there's a need to keep the hash around.
@LucDanton Wow! I'm enlightened! Thanks!
user142019
@MarkGarcia But why? Why are they sometimes implicit and sometimes not?
@MarkGarcia Enlightened? :)
user142019
TCP is uncopyable due to a non-static data member of type std::unique_ptr.
user142019
But why is it unmovable by default?
03:35
@StackedCrooked I'm trying to understand how those hash sets and maps works. Part of it just bewilders me.
user142019
Also I can't understand how people ever programmed in C++ without move semantics.
@Zoidberg they used pointers
user142019
Oh of course.
@Zoidberg Let's just say that move constructors and assignment operators are hideous beasts.
@StackedCrooked And before smart pointers, we leaked.
03:37
Smart pointers were always there
user142019
In C++03, you could never return a socket by-value, could you?
You just were too bad to use them
user142019
(You can't copy a socket.)
@CatPlusPlus std::smart_ptr is crappy.
user142019
03:37
TCP socket.
You can copy underlying descriptor
It's not deep copy
Does C++ even have a socket type?
But it's copy
user142019
03:38
Explicit move. :P
user142019
@StackedCrooked No, but C++17 should have networking if I'm not mistaken.
Then what are you talking about?
Which library?
@MarkGarcia auto_ptr isn't the only C++03 smart pointer
user142019
@StackedCrooked socket classes in general.
Also it works as well as it could
user142019
03:38
They should be non-copyable.
@CatPlusPlus TR1?
boost::scoped_ptr
scoped_ptr was my default smart pointer choice in C++03
user142019
I'm much exited for filesystem.
user142019
03:40
What is TM TS?
And Net? .NET?!!
@Zoidberg them trucks
user142019
Also I want std::bound_function. It would make wrapping libuv much easier. xD
Hey guys!
user142019
Hey guy!
03:43
Aliasing rules question: Are you allowed to read from a union { char storage[ sizeof T ]; T obj; }; and get the object representation from storage?
@Potatoswatter, AFAIK, it's UB to read from something you didn't write to last.
user142019
Also I want Ogonek to be standard. :P
@Potatoswatter No.
The only way to go from object representation -> object is by copying the bytes of a trivially copyable type. std::copy, std::memcpy and a hand-rolled loop are all fine for that.
@LucDanton So union is different from reinterpret_cast in this context… just to be sure I understand correctly
03:46
@Potatoswatter Yes.
I should mention I'd rather use static_cast than reinterpret_cast but I don't think there are many people that care about that.
@LucDanton I don't want to reconstitute the object, only to "use" the bytes, e.g. calculate a checksum.
@Potatoswatter Ah, so other way around of object -> object representation. My mistake.
@LucDanton You can static_cast any pointer type to char*?
Same deal, same requirements, but other way around then :)
@Potatoswatter You need to take a detour via void*.
@LucDanton Aha, bingo!
03:48
Cyclo-cross (sometimes cyclocross, CX, CCX, cyclo-X or 'cross') is a form of bicycle racing. Races typically take place in the autumn and winter (the international or "World Cup" season is October–February), and consist of many laps of a short (2.5–3.5  km or 1.5–2  mile) course featuring pavement, wooded trails, grass, steep hills and obstacles requiring the rider to quickly dismount, carry the bike while navigating the obstruction and remount. Races for senior categories are generally between 30 minutes and an hour long, with the distance varying depending on the gro...
^ Found it.
The wording of reinterpret_cast is a bit shoddy so it's not super clear what happens if you use it instead. Of course everyone knows what we want it to do and everyone knows what the implementations do and every implementation knows what is useful for their users.
user142019
template<class T, class U>
T* constexpr via_void_cast(U* x) {
    return static_cast<T*>(static_cast<void*>(x));
}
user142019
:P
Sounds a bit forceful :/
@LucDanton I want to do it inside a constant-expression, so reinterpret_cast is exactly what I'm working around.
03:55
damn it steam
what the fuck.
I still have 3 left over.. from the last batch ;_;

« first day (821 days earlier)      last day (4351 days later) »