« first day (1048 days earlier)      last day (3906 days later) » 

12:00 AM
Probably not a bad idea.
Now that I think about it, basically everything I draw is a square.
 
Like my tilemap is a single entity defined of four vertex points
 
@Rapptz, do you use OpenGL directly?
 
So you just do window.draw(map) instead of drawing every tile individually (obviously..)
Nop.
I mess with sf::ContextSettings sometimes
for anti-aliasing I guess
 
Are those vertex points offsets from the origin of the tile image?
No, wait.
I'm confused.
 
I think it is a combination of two things.
First, I never have really reached the point where I don't use primitive stuff.
 
12:03 AM
Aren't, tilemaps, images that you can split in subimages?
 
I use Tiled and an XML parser to load CSV data into an array and get the "subimages" from that data, then I update the vertices accordingly.
 
I am having controversial thoughts here. I seem to think I would rather have something make a bunch of draw calls for me, (basically never drawing a non-primitive). Not sure why.
 
@StackedCrooked did you build loadbalancing into Coliru? (I seem to half-remember that the webfront and the compiler queue were distributable?) I could chip in with my 1024Mb VPS instance that I tried to get Coliru running on for a while. Call me if you are interested in root access.
curl stacked-crooked.com/
curl: (7) couldn't connect to host
 
I should really be programming some C++
(for uni) lol, I would never pick C++ by myself
 
I probably shouldn't, but I do anyway.
What do you like to use?
 
12:06 AM
Ruby all the way. I would use Ruby even for game programming if I could.
Well actually you can, but it's a little bit slow.
 
lol
I can't get into game programming
I wish I could find something that wasn't so shitty but it's pretty hard.
Everyone uses managers and singletons and unnecessary pointers. I have almost never seen good game dev code so
 
With "game programming" (for me) I mean making a square that is controllable by WASD.
 
^
 
Never did much more.
 
I think that was the first thing I did with SFML, actually.
 
12:08 AM
That's pretty basic :v
 
Actually I did created also other squares that would follow you and collide with you correctly.
Then I just gave up.
 
Well, at the time, I could barely get SFML to link, so I think it was an accomplishment :D
 
lol, yeah
 
I'd like to make a game one day but I don't really know where to start and the basic advice is a bit underwhelming.
 
I had problems too.
 
12:10 AM
I feel like everything I make is made of squares...
 
Think in triangles.
 
^
 
Well, I did make asteroids, sort of, but I never finished it.
 
Actually I think that is a good suggestion for 3D, not much for 2D though.
 
12:11 AM
Did I ever show you my line particles from asteroids?
 
@sehe Heh. I look insane there.
 
@chris pars-pro-toto? /cc @LucDanton
 
lol, I don't agree much with using the ignore "feature"
 
I can parse that but I don't think I've ever heard the term in literature class. Not that I had a lot.
 
Mmm. I don't recall the fancy greek names from literature class :/
 
12:14 AM
I wonder who else has me ignored.
 
And on that light note, I'm off to bed. See you next time
 
If you want to ignore someone you just do it (mentally). You don't need a button to do that.
Also ignoring someone here makes you lose the point of some discussions (see above).
 
k, time to tackle sorting.
(Or, writing a random-access iterator wrapper to call std::sort with.)
 
No one in my ignore list even comes to chat anymore.
 
@sehe Well, I haven't heard that, but it seems to be about the same.
Good night.
 
12:17 AM
@Rapptz It works!
@chris Cheers
 
Doesn't work for you sehe
:P
 
Xeo
wheee, back in Berlin now with proper wifi. :)
 
(it's funny cos he can't see my posts)
inb4 someone quotes me
 
Apparently I suck at my own game.
Anyway, those are the line particles.
That was also the project where it took me four days to figure out why there is an atan2 function.
 
lol
It's a little too edgy.
 
12:20 AM
The shapes?
 
The triangle ship
Too stretched
 
Probably. It is a bit big. I was just showing you the line particles.
 
Yeah, they were nice...
...in the 80'
:P
 
Sarcasm? :D
Ah.
Well, considering I made them, I think that is impressive in itself :D
 
Yeah I was JK
 
12:23 AM
also, at the end of the only file in an ancient pong project:
user image
3
Glad I am not touching that again.
 
Awww dose sexy closing brackets
 
It is sad how many of my old projects don't run.
 
I'm bored.
 
Make a game :D
 
Wow, ThePhD made his steam account private.
Wonder what's up with him.
 
12:34 AM
Did he say anything before he left?
 
Some emotional stuff about being here too long.
 
He left? When?
Oh gawd, did he delete his SO account?
Fuck it! Too much drama these day. sehe, rightfold and now thephd. I'm out.
lol, jk. Night everybody.
 
what happened to rightfold?
 
I was wondering that myself. Unless it was the -not part.
 
He deleted his old 13K account IIRC
 
12:43 AM
Does the idea of starting fresh in games also apply to things like SO, or is it different?
I miss that dark theme. I should find one for VS, and give it a try.
 
@Pawnguy7 I think this is my worst: snag.gy/glbux.jpg
 
I was practically copying some code, just trying to get it to work and there were so many layers lol.
 
@chris How did you manage that in 100 lines?
 
@Pawnguy7 WMI
It could be refactored pretty easily tbh.
But it worked and it was only 100 lines.
It was for detecting when a flash drive was plugged in and logging some stuff.
 
12:50 AM
Mind if I use that picture in my blog? :D
@chris
 
@Pawnguy7 Go ahead.
 
Also, is that VS 2012?
 
@Pawnguy7 I opened it in 2013 Preview, but it was made in 2012 :p
 
Ah. I know how to edit the style, but I am not sure how to... import one. Do you?
 
@Pawnguy7 Can't say I have.
 
1:03 AM
Ah. I think I like dark styles more. I am not really good at making non-clashing things for everything though. Code::Blocks didn't have lots of them - say, for enums, or class names.
 
@Pawnguy7 Oh, that was C# and I think R# did that.
 
Ah.
Do you also prefer darker styles?
 
@Pawnguy7 Definitely.
 
Ah. Then again, I use Comic Sans :D I will have to look for a dark style.
 
Anyone ever use Piazza?
 
1:07 AM
Didn't know what it was before ten seconds ago.
 
I probably have to use it.
I have to say it's a lot better than what I had to use for my online programming course last year.
But I can't find any way to do markdown :(
There's Latex for Math, but no Markdown for CS :/
 
In case you guys haven't seen it:
HOLY MOTHER OF GOD http://www.reddit.com/r/PHP/comments/1l7baq/creating_a_user_from_the_web_problem/
 
@EtiennedeMartel Did you see the Github search?
Over 400 projects with the text shell_exec("sudo (or close to that).
7 hours ago, by Konrad Rudolph
… and of course he’s not the only one: https://github.com/search?q=shell_exec%28%22sudo+extension%3Aphp&type=Code&ref=s‌​earchresults
 
Probably because running stuff as super-user requires sudo
 
@AlecTeal The point is that there are over 400 projects on Github that don't sanitize inputs when the commands can completely destroy their system.
 
1:13 AM
@Rapptz In what sense is the effect 'opposite'?
 
@LucDanton Common fallacy (cum hoc ergo propter hoc)
 
Oh My Gawd
Ecipse Kepler will be "cloud based"
 
@StackedCrooked, Mind if Coliru gets "leaked" to my class at some point?
 
I REALLY HATE TECHNOLOGY THESE DAYS! I don't want my IDE to be "cloud powered!"
"By adding CSS to eclipse, we've noticeably decreased performance, made it look funny and increased memory usage, but now it uses CSS"
I had no idea it was phase 1 in their plan to create utter shit.
It's like my file browser (Caja, formally Nautilus) It's doing the same with more memory, WTF!?
Back in my day (god I feel old, 20 years here) when software was improved it was made somehow better, not the same but using more resources.
Will somebody agree with me please?
 
Link?
 
1:26 AM
Mmmh, are std::make_[un]signed ever useful?
 
If I wanted to google it, I would google it.
I assumed you were reading from a specific announcement somewhere.
 
The front page
 
@LucDanton Not as far as I am aware.
 
"code.everywhere=true;" syntax highlighted, with a cloud picture as a background
MY GOD THAT'S SO SHIT
 
1:29 AM
Well fuck. My range::sort don't sort no shit.
 
.....
If you command C++ as well as you do English @LucDanton, it's probably a syntax error.
 
Is somebody forcing you at gunpoint to use it or something?
 
@LucDanton I used it once.
 
Does SFML (the pre-builts, anyway) link to the VS library dynamically?
 
1:45 AM
Oh right, I'm feeding equal_to rather than less as a comparator. That's not going to sort well.
 
0
Q: How to read a decimal number in Spanish?(Only about natural language)

user1634805I'm generating a module which transform number into reading in Spanish. I found a similar question and read the answer, so I know 0,25 is read like below "cero coma veinticinco" Add, I got a tip about the role of comma(,) and dot(.) is switched when writing a number comparing with English Here...

 
Anybody here use VS 2012 and know how to distribute things?
 
2:12 AM
I'm exhausted, I can't debug this. Isn't std::sort supposed to do its shuffling via std::iter_swap or a moral equivalent?
 
yes
 
Eh, I don't get it. As far as I can tell the iterator (behind tons of indirection layers) does point to the actual container down the line. But my call to std::sort has no effect :v
friend bool operator!=(random_access_iterator_wrapper const& lhs, random_access_iterator_wrapper const& rhs)
{ return (lhs == rhs);
^lol
 
Apparently my mind blew up and I completely forgot how to store a bind result into an explicit std::function type for a moment.
 
2:29 AM
hi
can someone point me to ASM or Application Dissamble chat?
 
Good evening!
 
2:50 AM
Does it make sense to have a SoundPlayer and MusicPlayer?
 
Yes.
 
So no.
 
Do you pass music instances around everywhere?
My plan is this: make a central resource, that holds... well, any loaded resource, basically - in this example, audio files.
SoundPlayer would enumerate the sounds, and facilitate global volume (and potentially pitch, but I don't see needing that).
Make sense, or no?
 
Sounds like a ~~SoundManager~~
 
2:53 AM
I did consider that name :D
 
Bad design.
 
That is what I am afraid of.
Is the idea of a cache good? Basically a bunch of static instances.
 
Why is it static?
 
Mostly to go with the idea I had. You can imagine it isn't static in this example.
 
Question, how'd you learn C++?
 
2:56 AM
What is the intent behind the question?
 
Curiosity.
 
Um... I was using Game Maker at the time, and I wanted to see what low level was like, if memory serves. To do everything myself.
 
I see.
 
Does this help you learn something about why I like static so much?
 
no
The static keyword is pretty useless for non-template stuff from my pov.
 
2:58 AM
By template stuff, do you mean like std::vector<stuff>::iterator?
 
those are typedefs
 
Oh.
Got to go, night.
 
Night.
 
Geez, I try binding something and storing the result and I get a huge wall of errors.
 
What the shit man. humblebundle.com
Humble Comedy Bundle?
 
3:04 AM
After how long, I realize what I'm trying to bind didn't have the parameter I was binding something to >.>
 
3:14 AM
I've got an algorithm question that might be blatantly obvious to a CS person but something I'm curious about
Say I have a set of items, each item having an integer key associated with it.
The key of any item can change at any time.
What kind of data structure would I put these items in such that I can retrieve an item with the lowest key (for example)
The thing is that I wouldn't need to do the actual retrieve part all that often, compared to how often the keys change. So I wonder whether or not the effort of keeping the list sorted all the time as the keys change is worth the effort.
Let's see if Stack Overflow knows the answer to this question.
 
user425495
I'm not a CS person but a heap sounds like a good choice
 
@Insilico Perhaps an unordered_map and then use std::min_element when you need to?
 
user425495
I would agree to use std containers though rather than rolling anything on your own unless you absolutely need more performance
 
heh, I doubt you'll get performance benefits from rolling with your own.
 
user425495
looks like <algorithm> has std::make_heap
 
3:22 AM
To me I would use a heap (like justinls said) or a red-black tree, but I wonder if the fact that I wouldn't need to do the actual retrieval that often compared to how often the keys are modified could be used to my advantage.
 
user425495
do you have some idea on how large the key modifications are?
 
user425495
for example, if you did a heap, would keys high up need to bubble way down
 
@justinls The keys themselves are pretty small (small enough to fit in a byte). I think most of the time the keys would just be incremented or decremented, but I'm pretty sure there will be big key changes
That's why a heap comes to mind.
 
user425495
do the keys fill a continuous range [0, N] or are there gaps
 
user425495
well
 
user425495
3:29 AM
since you said the keys are small enough to fit in a byte
 
@justinls The possible set of keys is contiguous between 0 to 255. But I think in practice the actual set of keys "in-use" is a lot smaller.
 
@Borgleader A Nintendo 2DS? That's the first time I've seen the "version number" go backwards like that.
 
@Insilico Xbox One?
 
Touché
 
3:33 AM
Anyway the 2DS is shit. Not my cup of tea, good for kiddies I guess and people who can't afford the system. I guess there's nothing actually bad about it, aside from the fucking horrible design.
 
@Rapptz Oh right. I forgot about the whole Xbox One fiasco.
@Rapptz Is it actually cheaper?
 
Yeah, $130.
 
I just found it a little funny because, I could be wrong but the one big feature of the 3ds was well the 3d. That was the reason to get it and they removed it.
 
The only reason to buy a console is for the games.
 
I meant from a company stand point. They had to justify coming out with a new console. You can just say "hey we made a new handheld console, its just like the old one. Go on now, spend 150$ on it"
 
3:36 AM
@Rapptz Nintendo games are shit though. Except for a few like the ones with the Mario characters in them
 
@Insilico I don't feel like dealing with bait.
@Borgleader The Xbox and PlayStation seem to do just fine with that business model.
FTR, the 3DS is not just like the DS.
 
Although to be fair it's probably because Nintendo systems are very nontraditional in the way the player interacts with them (3D, that Wiimote thing, etc)
So people are still figuring out how to work with that.
 
@Rapptz That's why I said "I could be wrong." Also I don't agree with your previous statement.
but im not getting into that now. i should be going to bed soon. classes at 9h30 tomorrow so i have to be up at 7
 
@Borgleader The Xbox and PlayStation haven't done anything really ~new~ aside from raising the graphic capabilities of their console.
Feel free to disagree.
 
@Borgleader Do you have an insanely long commute route?
 
3:40 AM
1h30 yes
 
@Rapptz I wouldn't disagree.
 
That sucks.
 
@Borgleader Jeez how much do you pay for gas?
 
0$. Bus + Train + Subway.
 
@Borgleader Oh so that's why it takes an hour and a half.
 
3:42 AM
It wouldnt be much faster in a car due to a lot of traffic.
 
@Insilico I fail to see that logical conclusion
 
but it would actually cost me a lot more. and i cant code in a car
 
@Rapptz I keep forgetting that not everyone's public transportation is the same everywhere
 
Yeah US public transit sucks. I'm pretty jelly.
 
@Borgleader How long is the commute (in terms of miles/km/lightyears/whatever)?
 
3:46 AM
@Insilico 40km
 
Does anyone remember Stuff[,] lol does in C#?
I forgot.
two dimensional array?
yeah.. 2 dimensional array.
 
@Borgleader Goodness it takes 1.5 hours to travel 40 km where you go to school?
 
Public transport sucks. Traffic sucks.
 
1.5 hours for 40km is just a little bit faster than a marathon runner.
 
@Rapptz Speaking of marathons, 40 km (~24.8 mi) is around the length of a marathon (which is 26 mi, IIRC).
 
3:53 AM
Yup.. that's why I mentioned it.
 
Borgleader running to school everyday might be an interesting way to train for a marathon. :-P
 
A marathon is actually 42.195km
 
I'd have to take a shower once I get there though. And I couldn't really do that in the winter
According to google maps walking there would take around 7h20 min
 
lol
You'll probably hit the wall TBH so it's not worth running there.
 
lol I know that xD
 
3:55 AM
Maybe you'll leave with a bloody nipple.
 
lolwat
 
@Rapptz Can we please not one-box that? lol
 
It's a male nipple!
 
lol
 
3:59 AM
@Insilico Right-click. Inspect element. Double click link. Delete.
 
Not that I have a problem with it, but someone logging in seeing a bleeding nipple may not be what they want. :-P
@Borgleader You know, I keep forgetting I can screw around with webpages in place.
Is it possible to implement a heap using some kind of linked structure (as opposed to an array structure)? I've always seen heap constructed to using arrays.
I know that arrays lend themselves to an obvious implementation with heaps but I'm curious if you can have a heap via linked nodes.
 
I forgot Love2D existed
 
@Insilico If you could my guess is it would be a pain to implement and slower. I don't see the point.
@Mysticial Did SO finally get rid of the xdotool troll? I haven't seen him in a few days
 
@Borgleader dunno
I haven't been following up on it.
 
@Borgleader I'd imagine if you're in some kind of weird environment where it's not possible to allocate an array for your heap (but somehow be able to have linked nodes), it might help, but a RB tree might be better IMO
@Borgleader What's this xdotool user you speak of?
 
4:09 AM
@Insilico I have some links here there are related questions in the comments
Huh apparently the Wii U got a price cut
 
Yes, $299 for Deluxe Zelda Wii U + Hyrule Historia
 
:O
I might actually get that... but I just bought a Vita T_T My wallet is going to fucking hate me
I need to do some freelance work or something... problem is to be a freelancer you actually need skills >.>
 
4:24 AM
I just want Smash.
and Mario Kart 8 I guess.
I just realised the Nintendo 2DS will still outsell the Vita.
 
Hi, can someone point me to ASM or Dissabler chat?, please
 
Is there one?
 
IDk >.<
 
No
 
Well, I hope than here someone can help me >.<
 
4:30 AM
Nope.
 
@Rapptz thats possible. i like my vita though. first portable console i bought since my gameboy advance.
 
Why not? D;
 
Anyway, bed time for me.
 
Night.
 
4:31 AM
good night Borgleader
Hi Jerry
 
@Rapptz lol "Gameboy 2DS"
 
Come on man.
 
this addres 004018DC has a SP positive value
Thanks you
Where is bin chat?
 
bin is where we garbage posts
 
D;
Why to garbage? D;
 
@MarcosEusebi It's a mechanism by which room owners "moderate" the room (I use the term very loosely here)
 
I just want Smash.
and Mario Kart 8 I guess.

oh god, what is wrong?
Here someone was talking about mario
"Lounge<C++>" what is this then?
 
A lounge.
 
@Rapptz It's only the best chatroom on the Internet.
 
and what <C++> minds?
 
4:49 AM
A lounge.. to talk about stuff.. made up of what used to be primarily C++ developers.
 
@MarcosEusebi It's a chatroom of people talking about whatever takes our fancy. Most regulars just happen to have at least a passing knowledge of C++.
 
I'm trin to parse that ASSAMBLER language to Visual C++
 
@MarcosEusebi Stack Overflow
 
Thanks you
 
Did you read the newbie hints at all?
 
4:50 AM
Can I ask programming-related questions in the chat?

In theory, you can.
We even set up best practices at one point for how to properly ask
 
Did you read past the first sentence for your confirmation bias?
 
If you didn't see teh code, is really hard to explain and understand
At first we were happy to help
Is the morning >.>
Dear lord >.>
in stackoverflow.com maybe I will recive a response :S
cya
 
bb
 
What can we chat about?

This site is an extension of Stack Overflow, so discussion should more or less revolve around the same topics you'd find at Stack Overflow — but in an interactive, less strictly Q&A focused way. Do have fun, but please keep it professional and always be respectful of your fellow community members.
Really? >.>
 
Are you really doing this?
 
4:56 AM
Just showing you it
 
I've obviously already read it.
 
Take a look please >.>
 
Congratulations on your reading skills. Have a cookie.
Now go away.
 
I want dat cookie
keep in mind just to rename the chat room
 
@MarcosEusebi What in the world are we talking about?
 
4:59 AM
idk
 
room topic changed to Lounge<C++>: GARBAGE DAY??!!?! [c++] [c++11] [c++-faq] [no-questions]
 
Someone just moved my post to bin
when it was a programically question
 
The room owners change the name of this room all the time for humorous effect.
 
@MarcosEusebi All posts are fair game for binning.
 

« first day (1048 days earlier)      last day (3906 days later) »