« first day (1179 days earlier)      last day (3995 days later) » 

19:00
@R.MartinhoFernandes My cereal has a name instead of a number.
@Jefffrey Oh oh.
0
Q: how to use macro #define to change class name?

user2701639I have a class A{} But I want to use macro to replace the class name A with the following statement: #define SOMETHING A The definition of class A {} is in the same .cpp with the MACRO. Does it correct?

^^ hehe dangerous? :)
@BartekBanachewicz hey, you know about voronoi and stuff. do you have any idea why radomes often have voronoi cells or delauney triangulation patterns?
see:
I see balls
big balls
user3010322
Hm.
19:04
Why are people so terrible at computers?
user1804599
Because they are users.
@melak47 my guess would be to maximize the reception by singular receivers
<insert rant here>
user1804599
And users are losers.
but I am not an expert on electronics :F
I studied voronoi diagrams WRT image processing, not that :)
19:05
@BartekBanachewicz usually, they have a (rotatable) antenna inside this shell :E
wouldn't something like say, a regular subdivided polyhedron be simpler to build?
@melak47 show me a regular 200-hedron :)
sphere division is actually a very interesting topic
There must be something in those divisions that makes them interfere the least with the waves whilst keeping structural integrity
an icosahedron subdivides nicely
@melak47 that's not a lot of faces
dunno if that keeps being funky once you go and divide it more
@BartekBanachewicz so?
user3010322
Wooo!
user3010322
19:09
Transparency and all that jazz are working!
user3010322
@melak47 you want maximum possible uniformity, huh?
@BartekBanachewicz the OCD is not that strong in me. I was just wondering :p
@ThePhD but this is windows 8 :E
I thougt this was working already :E
user3010322
@melak47 I meant the drawing transparency.
user3010322
Notice how there are not ugly white boxes on the raster font letters. :D
19:13
oh :)
user3010322
Now I can draw a host of silly things on a completely transparent window
user3010322
And not have that fat ugly black box like League of Legends does. =_=
user3010322
Shit bothers the crap out of me.
@Xeo my code is pointing at stuff!
user3010322
Also, I need a new Power Supply.
19:14
@ThePhD ?
user3010322
Mine is overheating.
That was yummy.
Hello, Lounge!
user3010322
@melak47 When League of Legends first loads the transparent window it uses for displaying its logo, there's a big ugly black box around it. It gets even worse when a message box comes up.
paying attention to the cute barista...not my typing
19:14
@ThePhD that might be becasue of Air
@ThePhD I blame Adobe
what's adobe got to do with LoL
@melak47 They should paint the balls red:)
why? :p
Decontextify that!
Max
Max
19:19
And back again, stupid Driver BSOD.
user3010322
u.u
user3010322
@Borgleader How did you deal with all this OpenGLness.
Ariel uses her seal hop technique to cross all four balls.
Max
Max
19:21
Quick question: If I wanted to overlay 2D data (circles for starters..) on an OpenGL Rendering. Would I do it within OpenGL? If so, would I do it by rendering in two distinct FBOs (one 3D, one 2D overlay) and blending them together on refresh?
llol, er, llogl, pardon me
user3010322
@Borgleader u.u You're gonna make me use it, aren't you?
user3010322
AREN'T YOU?!
user3010322
Well!
@Max Wat
user3010322
19:22
... I guess it's okay. :c
Just render the 2d without depth test?
OMG this works
Max
Max
@Borgleader, I basically want to display labels over an 3D-Rendering (but settle for Circles in specific spots for the moment) -> How do I get Circles on top of a Rendering?
getQuestion = atTag "question" >>>
    proc q -> do
        description <- text <<< atTag "description" -< q
user3010322
Render the circles last. They're on top.
user3010322
19:24
If you need to make sure, disable the Depth Buffer.
seriously whoever invented that was crazy but genius
Max
Max
Ok, I'm confused. Can I switch Shaders in mid-rendering? o_O
@Max define mid-rendering
^ this
user3010322
@melak47 Psst. Pssssst.
Max
Max
19:25
@Bartek, for the circles specifically
I would need another shader
@Max that doesn't tell me nothing about what you mean by "mid-rendering"
user3010322
Yes.
Max
Max
I figured I just render two distinct frames (just 3d and just circles) and blend them
what the hell is frame for you
He means FBO
19:26
@Max I'm pretty sure you can redner stuff in OGL, bind a different shader program, then render more stuff before presenting/whatever it's called there
Max
Max
A single thingy that's on the screen after Render :P
@Max wtf is "Render"
what are you using.
user3010322
inb4 GLUT
inb4 some shitty binding/library
@Max (FTR the terms you use tend to have very defined meaning and not what you guess they are)
Max
Max
@Bartek, haha :P I'm in a Qt Widget Rendering Opengl 4.3 I believe (Version is not that important though). Every 50 ms or so I trigger a redraw <-- that's a frame for me
19:27
there. I win.
user3010322
Oh. Qt.
user3010322
Welp, I'm out.
user3010322
Have fun with that.
@Max Qt bindings tend to act weirdly just because they are Qt.
Max
Max
No no, I had my headaches with it, but I got it working. I'm pretty much in raw OpenGL now
19:28
don't ask me why
@Max orite, that sounds better. Tell me in short what's your desired goal
Max
Max
Basically I want to display circles on top of a rendering without loosing the already rendered image (by redrawing everything)
It's simple enough really, draw your scene, keep the 2d overlay stuff for last, disable depth tests and render those. And yes you can have a different shader for each "object" in your scene.
0
Q: Efficient intersection of sets?

MiloI'm wondering what the most efficient way of doing this is. I have points that I gather from 2 places. I am only interested in the points which are common to both places. My plan is to have 3 std::set<Point> . First I will add in the points from area A,into set A then points from B into set B...

Max
Max
But switching Shaders and drawing pure 2D sounds pretty good to me - hadn't thought of that!
Two identical bad answers that tell OP to construct a map containing the number of times a Point is present in those two sets.
Max
Max
19:30
@Borgleader thanks, I will try exactly that. Seems a lot simpler than my approach :)
@Max typical frame in a complicated game is drawn using dozens if not hundreds of different shader passes
I don't even
user3010322
@BartekBanachewicz IIRC Valve games clock at almost thousands, right?
@ThePhD they're valve :P
@ThePhD The point is, you can have more than one :P
19:31
heh yeah
user3010322
@R.MartinhoFernandes Plug into the wall and work while you charge!
so my xml parsing works
i can conquer the world
famous last words
seriously this software won't be worse than what people are using
19:34
@R.MartinhoFernandes So I got ogonek to compile on Ubuntu. Guess it was ninja being retarded on Windows and not me -.-;
Haskell is so beautiful
testLoop = do
    q <- pickRandomQuestion
    q' <- randomizeAnswers q
    a <- readAnswer
Ell
Ell
Hm
I don't see the beauty myself :P
@Ell because you don't know what do notation expands to, I guess
actually should be let bindings
Ell
Ell
<- is monadic something is it?
hehe @ monadic something
Xeo
Xeo
19:38
@BartekBanachewicz prepareQuestion = pickRandomQuestion >=> randomizeAnswers
@Xeo I've just realized randomizeAnswers is pure
let answerSet = randomizeAnswers q
@Xeo Is >=> a space rocket?
posted on January 07, 2014 by Eric Battalio

The MSDN Library is a rich source of information about Microsoft products and technologies including Visual Studio and Visual C++. This post calls out some of the great code debugging topics available for Visual C++ native code developers. The best...(read more)

Ell
Ell
@BartekBanachewicz aren't all functions pure?
Xeo
Xeo
@Griwes Kleisli composition
19:39
I would need to lift it
Xeo
Xeo
@Ell IO definitly isn't
@BartekBanachewicz fmap?
or just actually fmap
@Xeo Looks like a space rocket.
@Xeo there :)
user3010322
Hm.
19:41
@Griwes it's just a composition for monads
user3010322
Compile times went up again.
Xeo
Xeo
I've been wondering why there isn't a composition operator with pure functions
Arrows have that
@BartekBanachewicz I am still all for a space rocket.
@Xeo >>==? :D
I mean, c'mon, it looks like a space rocket!
Xeo
Xeo
19:42
@BartekBanachewicz Arrows have nothing to do with >=>
@Xeo that's why you can't force me to learn too many subjects at once. I got lost in arrows
@BartekBanachewicz Can you translate that sentence to C++? I don't speak functional.
:D
@Griwes function composition is a mathematical term
@BartekBanachewicz How's it in Polish? Splot?
@Griwes Złożenie.
user1804599
19:44
column "p.article_number" must appear in the GROUP BY clause or be used in an aggregate function
user1804599
This is bullshit, Postgres. :v
user1804599
I can also use p.id in a GROUP BY clause.
Alright, forgot about the simple possible way to turn two functions in a one.
Anyway, that's just half of the sentence translated from functional.
:D
Xeo
Xeo
@Griwes vector<T> f(...); vector<U> g(T); - how do you compose those (i.e., call g on the result of f(...))
I should learn what a monad is one day.
19:45
we can convert a 2d array to 1d using c*i+j. Now, in this case arr[0][5] i = 0, j = 5, c is what?
@R.MartinhoFernandes lol
Xeo
Xeo
@Luka column size
@Griwes A spacesuit!
ok, thanks
Xeo
Xeo
An overloadable semicolon!
user1804599
19:46
@Xeo I implemented variadic compose once.
user1804599
It accepted variadic number of functions and the last one could be variadic.
Xeo
Xeo
anything you want it to be!
user3010322
Oh!
user1804599
Nobody knows what the fuck monads are.
user3010322
@R.MartinhoFernandes So I got a basic implementation of the native_handle thing we talked about for DirectX a very long time ago.
user3010322
19:48
It's actually very good and extremely typesafe.
user3010322
It took a while to convert all the code but it's not only less to type but easier to deal with.
Xeo
Xeo
@ThePhD Proper building blocks are something great
user3010322
@Xeo I was sort of on the right track!
Xeo
Xeo
@rightfold pfff
user3010322
@EtiennedeMartel Reminds me of certain music near the end
user1804599
@Xeo I have never read any definitive definition of “monad” that didn’t involve some vague metaphors or comparisons.
user3010322
I can't believe I missed that teaser. It came out two months ago.
On the other hand, it means we won't get a Machinarium 2 soon.
Xeo
Xeo
@rightfold I guess the question shouldn't be "what is a monad" but "what is a monad in X"
user1804599
19:53
Some definitions were clear about that monads represent computations, but not about what computations are.
user1804599
foo x = x * 2 -- hey I’m computing x * 2 this is a computation!
Xeo
Xeo
I think they use the term "computation" to mean something different from just "function"
user1804599
foo = do { c <- readChar; print c } -- what am I “computing?”
I think whatever a monad can "represent", what it "is" is quite well formally defined.
user1804599
19:57
NEED MOAR JPEG
If it wouldn't suck 70% of my CPU I would listen to this for 24 hours a day
user1804599
I don’t like the music.
it's cheerful
@Jefffrey Just get more CPUs.
user1804599
Also, it only uses 3% CPU for me.
user1804599
20:03
You just have a terrible computer.
possible
user1804599
I only listen to Eluveitie, Evanescence and Tool these days.
@Borgleader I was just thinking that. Didn't know it already existed.
Me neither, I googled it ;)
20:04
lol
The funny part is that it might actually be possible if the thing you download overclocks the CPU.
user1804599
slutty confession:i have this fantasy about getting fucked by my boyfriend and his brother at the samee time.
overclocking is almost never a good idea
@Jefffrey Not if you're someone like me. :)
user1804599
Mysticial has no barbecue.
Ell
Ell
20:06
hmm what time for a flagset
@Mysticial you are not special :P
Ell
Ell
I want to say std::set<FontFlag> but idk
Back when I was in highschool i read a forum post about a guy who OCed his CPU left the stress test going, went to eat came back and his CPU was fried.
user1804599
@Ell just allow bitwise ORing.
user1804599
It’s easier to use and people are used to it.
Ell
Ell
20:07
Okay. I don't like it though
@Borgleader He was probably doing something stupid.
user1804599
const (
    Flag1 = 1 << iota
    Flag2
    Flag3
)
user1804599
Go ftw! :3
Back in my uni days, one of my techer told us that when they finally laid down the first internet cable from america to england (after at least 7 tries, thousands of money wasted and something like 30 years), one guy decided to overclock it and the cable broke.
20:09
overclock... the cable!?!?
overclock a cable? aha
who cares about technicalities, the story is funny
Max
Max
o_O? How..? I..? What?
unfunny pricks :(
I've heard of overclocking pacemakers. But definitely not transatlantic cables.
Max
Max
20:10
:]
user1804599
Mayhaps he was talking about the computer that was connected to the cable.
lemme check
Max
Max
Pacemakers seriously? Whoah
That sounds like an incredibly stupid idea
love is a natural heart overclock
not that stupid, eh?
Max
Max
Yeah, but isn't a pacemaker only active when the heart-mechanism fails to trigger?
20:12
@rightfold yeah that
I don't even know what overclocking means btw
Max
Max
Putting a clock on *top of something while waiting patiently for something to happen :]
user1804599
Overclocking is increasing the clock speed to above the recommendation of the vendor.
-2
Q: C++ pre and post incrementation overloading. How does 'it' know?

erasmus77#include <iostream> using namespace std; class person { public: int age; person(int v = 0) : age(v) {} friend const person & operator++(person &); //pref friend const person operator++(person &, int); //post }; const person& operator++(person& a) { a.age++; return a; } ...

Max
Max
Reason #1 why this is better than IRC: You can edit your messages. Color me impressed.
lol
maybe I haven't read the manual enough
20:14
I'm studying the MIPS pipeline
@Jefffrey overvolt. perhaps. And not the cable broke, but the "logical link". Because long cables need periodic rebuffering.
Anyways, those cables carry unusual amounts of current - so usual cabling experience don't apply. It's an art to carry a signal undistorted for long stretches
@AndyProwl Tell the OP to overclock the ++ operator.
@Mysticial He won't, it's not in the manual
fuck...
Xeo
Xeo
@AndyProwl wow what
user1804599
Better
user3010322
0xFEEEFF12
user1804599
Do you have integration tests?
user3010322
That's an invalid address, for sure.
Xeo
Xeo
@Mysticial Then it's still not a good idea - for the poor CPU :P
user3010322
20:16
But... there's nothing like it at that location. =[
@ThePhD dafuq
Xeo
Xeo
The CPU should detect whenever @Mysticial tries to overclock it and just reject him.
@ThePhD Looks like 0xFEEEFEEE with offset
user1804599
0xUB is a valid address.
Xeo
Xeo
Which means you're accessing deleted memory IIRC
0xFUCK also.
20:18
If you try to overclock the ++ operator, you get the +++++ operator. Ask about either on SO, and you get trampled.
user3010322
@Xeo Thats' what it looks like, apparently? The object has a valid address, but the vtable's all busted up (0xFEEEFEEE)
Xeo
Xeo
@ThePhD That's MSVC's "deleted stuff, go away" debug code
user3010322
Why isn't the actual object messed up, though?
user3010322
Why just the vtable?
20:20
er, the vtable pointer is a part of the actual object.
also, welcome to UB.
That guy was Edward Orange Wildman Whitehouse, the chief electrician of the Transatlantic Cable. In an attempt to boost the speed at which messages were transmitted (see, we've never been happy with how fast things run), Whitehouse boosted the voltage from 600V to 2000V, frying the insulation. It wasn't easy getting that cable successfully installed - it broke several times - and it wasn't easy replacing it, either. The replacement didn't arrive for more than six years.
3
user1804599
@DeadMG Welcome to UB? Welcome to ThePhD!
@maaronking As cv_and_he probably already knew (hence the commented line) this is a wellknown issue with modern compilers. Other libraries + changed defaults cause the breakage indirectly. See the linked duplicate for background and fix. — sehe 7 secs ago
^ can haz dupe votes?
@Jefffrey I called it! The overvolt. However, that's massive overvolting. NotVerySmart(TM)
@sehe dupe votes had
[1/2] C++ 'src/ducet_data.c++' hopefully it doesn't take 30 min >.>
Cheers
user1804599
20:22
I need durable message queue software with push functionality.
user1804599
I wonder whether PostgreSQL could do this. It has NOTIFY.
I’m not sure about how durable Redis is.
@sehe well, the teacher told us that was just a memorable example that we should keep in mind when over-thinghy things
over-thinghy?
@Jefffrey I wish my CPU would handle 600V.
that
@Mysticial It does
Ell
Ell
20:24
Hmm I need some bash wizardry
user1804599
s/ba/z/
Ell
Ell
Or a piping syntax reference
user1804599
a | b?
user1804599
There is not more to it.
Ell
Ell
grep Tags.yaml -inrew if | cut -c 80 tries to use if as the input file
but grep Tags.yaml -inrew if | less does as expected
20:25
@R.MartinhoFernandes I pasted my old code for the ducet stuff into the git clone i just did and changed the ninja file. It seems to compile reasonably fast. I'll now need to port the tool over to python and do some tests to see if everything works. Then I'll uh... make a pull request or whatever it is you fancy kids do these days ;)
@Borgleader over<insert whatever thing you are trying to overpower>
user1804599
@Ell bullshit.
Ell
Ell
@rightfold well it does something with No such file or directory displayed at the bottom
whereas I'd expect the usual output with only the first 80 columns
user1804599
Change if to "if".
Seal our borders, execute illegal immigrants, Tax corporations instead of subsidizing them. And quit sending OUR tax dollars and weapons to your muslim terrorist buddies. That would be a good start.
^ The above is a comment on Obama's Facebook page.
user1804599
20:30
If we have Ed, Edd and Eddie, do we also have Vi, Vim and Vimmie?
Ell
Ell
@rightfold It turns out I was using cut command wrong in the first place anyway, but still shouldn't have got file not found. Changed and sorta fixed anyway :)
user1804599
Use AWK.
user1804599
cut sucks. It’s for emos.
you were expecting stars, weren't you?
user1804599
Not really.
Ell
Ell
20:35
@rightfold idk how
hmm. I would rather like to retain colours also
too bad, it was star-worth
user1804599
@Ell grep Tags.yaml -inrew "if" | awk '{print substr($0, 80, 1)}'!
Ell
Ell
with the ! on the end?
unexpected newline or end of string :S
user1804599
@Ell Is the bang in monospace font? No.
Ell
Ell
I couldn't tell
user1804599
20:38
Inspect Element! XD
user1804599
:3
oh gee
user1804599
oh glee
no
not that
Ell
Ell
@rightfold this just splits it into single characters :S
user1804599
20:42
As does cut -c 80. vOv
My marriage is loveless. I've got 2 kids that I love dearly and know that I'll barely get to see if I divorce. My wife and I haven't had any intimate relations since April of last year. There's no love, only two people going through the motions. I stay because of my kids.
Marriage is the worst cage
Ell
Ell
@rightfold yeah, my bad :P
I meant -c 1-200
@Jefffrey At least he's sucking it for his kids.
I honestly doubt I would
Ell
Ell
@Jefffrey What does "intimate relations" mean? In frank talk
20:48
sex
user3010322
Cuddling
Ell
Ell
I thought so. I'm not used to adult euphemisms :P
user3010322
Talking
@Ell seriously? o.o
Ell
Ell
@Borgleader I didn't want to jump to conclusions :P
user3010322
20:48
Sharing anything remotely that would make you two close.
user3010322
It's not just sex.
this thread (from which the quote is taken) is pretty.. consolatory
@ThePhD But it mostly is.
user1804599
Ell
Ell
@ThePhD that's what I was checking really
20:52
@rightfold hehe
it's a shame there's no random shuffle in haskell stdlib
How can you have random in pure :/
user3010322
I don't see what you mean?
@sehe you always pass a seed
user1804599
@sehe you take a PRNG and return a new one.
user3010322
Ahhh, I found the issue.
user3010322
20:54
It wasn't UB afterall. Just derpz.
there's an implementation on haskell.org but it's terribly complicated
and I will have <4 elements to shuffle
so srsly
@BartekBanachewicz That's hardly random. But ok
@sehe so is rand()
@rightfold I didn't ask "how can you mutate state"
@BartekBanachewicz Ikr :)
are you implying I should've said "pseudorandom shuffle"?
w/e imma just put it in a separate file
20:55
I'm implying you're taking lot's of bait
user3010322
u.u
user3010322
I hate template code sometimes.
user3010322
Change one header, and BLAM. Gotta recompile EVEEERRYTHIIIING.
That's nothing. I hate it always
Is there a way to express 64bit integer literals compiler-independent (short of int64t(42l))? I mean, it's 42ll on MSVC, 42l on gcc. Grrr
pretty sure that long long has to be 64bit or bigger, so you could try 42LL.
user3010322
20:57
Isn't 42ll on GCC still 64 bits?
user3010322
Yeah, what @DeadMG said.
I'd have thought so, but GCC refuses to select a constructor for my variant. Lemme see whether I can reduce it quickly
-std=c++11?
@DeadMG Well. I don't think capitalizing the l means something different.
@DeadMG trololololol
@sehe It should work with LL.
20:59
@ThePhD yes C++ compilation model is amazing
user3010322
Haha.
user3010322
@BartekBanachewicz I'm still trying to think of a way to fix it, though.
user3010322
That still gives you all of the features the current compilation model has to offer.
@EtiennedeMartel It doesn't. Probably a shady edge-case with ambiguous variant elements
cppref says it's either ll or LL.

« first day (1179 days earlier)      last day (3995 days later) »