« first day (888 days earlier)      last day (4054 days later) » 

12:01 AM
there's also great color scheme
in which you change background instead of foreground
and text is always black.
 
using template specilization with an enum to manage different texture types
I should have thought of that haha
 
After browsing related SO questions, it's not really clear to me what the runtime cost of using exceptions is (in case none are actually thrown). According to the GCC manual: GCC will generate frame unwind information for all functions, which can produce significant data size overhead, although it does not affect execution.. On the other hand size overhead can lead to runtime penalties.
 
@JustinMeiners feel free to use this class. I wrote it yesterday so probably it's buggy though. On my Github.
 
@BartekBanachewicz link
nvm
got it
 
@JustinMeiners damn you are lazy. github.com/bananu7/Minicraft
@StackedCrooked exceptions are very fast when they are not thrown - rule of thumb
 
12:06 AM
> You may think that exception handling takes no extra time as long as the error doesn't occur, but unfortunately this is not always true.
 
oh, that's new
well, the article has over a year now
 
@StackedCrooked The unwind tables are not in the call path, they are static data a million miles away.
the exact details vary, but some EH implementation models are literally free when there's no throw, and some have an extremely small cost.
 
Interesting.
Is there ever a reason to use noexcept for performance reasons?
 
yes
algorithms can run more efficiently if you can guarantee nothrow
for example, Standard containers can only use move semantics if move is guaranteed nothrow
 
I thought move was nothrow because a failed move leaves such a mess that terminate is the best option.
 
12:11 AM
@DeadMG so should move constructors use explicit nothrow?
 
> The best performance is obtained if the critical innermost loop of a program contains no calls to frame functions.
 
@StackedCrooked It's noexcept because if a move throws, there's no way to undo it, since you have irrevocably altered the original state.
 
that's why Standard containers can't move, if moving might throw, because there's no way to guarantee strong exception safety in that case
 
@BartekBanachewicz internet went out here. again. Also, bad news.
 
12:12 AM
I never have any problem with exceptions while moving.
 
@DeadMG Yeah, that's what I thought. Copy constructor can use copy-swap. But move doesn't have anything like that.
 
@Pawnguy7 ...
 
right
 
Somehow, sfml-window WORKS... but calling loadFromFile() on a texture gets undefined again...
 
strong exception safety requires knowing which operations can throw and which can't
 
12:13 AM
undefined what
 
I will double check, I switched projects a while back due to outage.
 
So basically it's not possible to make move exception-safe. Therefore it must be marked as noexcept.
 
a throwing move.
and yes, it's basically not gonna happen
swaps are the same story
 
@Pawnguy7 Where are you? Here, in UK midlands, interthings slowed almost to a stop for couple hours :(
 
I think it's reasonable to use noexcept on functions that may actually throw exceptions, but you aren't prepared to handle them. (bad_alloc for example)
 
12:15 AM
I agree.
 
@MartinJames Nowhere near you :D
 
many, many functions could be noexcept if not for bad_alloc.
 
@Pawnguy7 OK, so simultaneous notworks, but unrelated.
 
@DeadMG that seems unfortunate
 
What's the point of having exceptions if you're going to just dodge them?
 
12:17 AM
@BartekBanachewicz Also, never having used sound - is it required to link to the extlibs, or just have them with the rest next to .exe?
 
considering that most programs will never recover from such an event
then yes
 
@Pawnguy7 sound libs are exactly the same as others
 
@BartekBanachewicz As in, in dependencies I should list openal32.dll, and... sndlib-1.dll?
 
Does terminate triggered by noexcept guarantee stack unwinding?
@DeadMG Probably 99.9% of them.
 
No bananas????? — Mysticial 46 secs ago
 
12:21 AM
Error 2 error LNK2001: unresolved external symbol "public: static class sf::Texture Resource::redPaddleTexture" (?redPaddleTexture@Resource@@2VTexture@sf@@A)
 
@StackedCrooked Doubt it.
 
It is pecular. If I only use Main.cpp, loadFromFile throws no error. But if I call Resource::loadResources, it gives the error.
 
@Mysticial I laughed when I translated this flashcard which showed up in my Anki set: "There are seven bananas."
 
@Pawnguy7 .lib. Read sfml manual
 
@DeadMG Indeed. (See TestStackUnwinding in main.)
 
12:24 AM
posted on March 22, 2013 by Andy Rich

Hi, this is Andy Rich from the C++ QA team.  Previously, I showed you how you can use the C++ REST API to connect to Live services, but this is just one of many web services that you can use the REST API with.  In this blog post, I will walk you through creating a Windows 8 Store App that will log a user into Facebook and download and display their photo albums. Setting up a Facebook

 
@BartekBanachewicz Sorry, I don't follow what you mean.
 
@Feeds static facebook_client& instance(); // Singleton . Silly and unnecessary.
 
@Pawnguy7 read sfml manual
@StackedCrooked ... nice tutorial... my ass.
ref new Uri("https://www.facebook.com/connect/login_success.html")))
       .then([=](WebAuthenticationResult^ result) {
...
 
@BartekBanachewicz Been doing that a lot recently. A bit to much, I think. Which part, specifically?
 
@Pawnguy7 about the project settings, obviously
I don't remember if you need to link anything more
haven't used sound much
 
12:27 AM
@BartekBanachewicz It's all way too verbose.
 
Done that even more. I don't know what is left. sfml-graphics-d.lib is listed, as well as system.
 
@StackedCrooked it's simply bad
 
Not to mention, I tried adding, into dependencies, the extlibs - after adding another path for them. VS thinks the files are corrupt, apparently.
 
Let's make it as dependent on MS technology as possible!
 
said no developer outside MS ever
 
12:29 AM
I wonder if I should just use C::B for SFML projects.
 
@Pawnguy7 no.
 
Not only did it work, it linked STATICALLY. Sigh.
 
codeblocks suck.
 
user1357851
oh my ...
 
user1357851
0
Q: Function using string produced from another function C++

user2188311I had written a function , which is supposed to analyze and use the data (string to be specific) produced from another function and calculate the percentage of chars and print out the results. this function is of type int but the previous function is of type string. I was thinking of using point...

 
12:30 AM
Well, at least it worked with SFML :\
 
@Pawnguy7 I prefer C::C.
 
@Pawnguy7 VS works with SFML with no problems for me
you are just fucking something up
 
Who knows what...
 
If you just used the project I've sent you it would be no-op
 
What is C::C?
 
12:30 AM
a joke
 
@AmirSaniyan hi
 
Hm... well. How about this: If I add, to the dependencies, openal32.dll, I get:
Error 2 error LNK1107: invalid or corrupt file: cannot read at 0x2B0
 
you are trying to link .dll statically
:thumbsup:
 
A test, actually.
Apparently, you just leave it in the directory.
Anyway. Not sure why it does not work...
Because if I call .loadFromFile on a texture made in main, it works...
 
12:33 AM
3 mins ago, by Bartek Banachewicz
you are just fucking something up
open a teamviewer
I can give you 5 minutes of my time and fucking set it for you
 
Seriously. Perhaps using C::B on this one would be a good idea. No more problems for you, or for me :D
 
I've never seen someone have so many problems with libraries
 
because me and everyone is fucking tired already
 
it's mind blowing
 
12:34 AM
@BartekBanachewicz y u no plonk then? :P
 
@Borgleader because after all this time he still wants to do it
I appreciate that.
 
Well, I don't want to use SDL, of all things.
 
1 min ago, by Bartek Banachewicz
open a teamviewer
 
I have made SFML projects before, I can prove it.
 
Anyone used uTorrent, or any other torrent client, on Android?
 
12:35 AM
yeah we all know you have a ton of porn on the desktop
@MartinJames yes
 
@BartekBanachewicz I d/l the uTorrent client, but it 'Stopped working' first time I tried it.
 
@BartekBanachewicz are you on windows?
 
@MartinJames that's just android sucking as usual. it worked for me
@Pawnguy7 teamviewer is cross platform, but yes
 
@BartekBanachewicz OK, I'll persevere with it a bit more.
 
12:38 AM
My previous pong.
Theoretically works on windows, but only tested on this machine :D
Static, also.
Also, a warning if you try this - it is fullscreen.
 
it works
and launching fullscreen without asking is lame
 
I was new at the time :D
 
now
are you going to launch TV?
 
I don't think I have TV.
 
well install it :v:
what's the problem with that seriously
 
12:40 AM
Yeah - I use TeamViewer - good remote app.
 
I am a bit hesitant to use remote control, to be honest.
 
@Pawnguy7 what the fuck
have you ever used it?
 
Used TV or a form of remote control?
 
No.
 
12:45 AM
because ssh is a remote control and it's totally silent
when using TV you see my actions...
simple as fuck
 
Yeah - and the peer cannot access your machine unless you give permission.
 
I will try it.
Does nobody else have library problems? I don't get why it is always me :\
 
16 mins ago, by Bartek Banachewicz
you are just fucking something up
 
I don't know why I would have the abilty to do it so much so than others, though.
 
@Pawnguy7 Don't bet on it ;)
 
12:48 AM
Either that, or they never come here.
Hm.
@BartekBanachewicz would this be the meeting tab?
 
@Pawnguy7 in TV? just gimme numbers
 
numbers?
 
> Cutest little thing I've seen in a while dl.dropbox.com/u/49917/models/CrabAnim.gif (Seen here)
 
@Pawnguy7 ID and password
 
I would wish to avoid remote control.
 
user1357851
12:51 AM
Seriously Xcode/Eclipse should stop freezing my Mac/PC when I run apps on real devices. I hate to force restart my PC/Mac 10+ times a day
 
Would screen share of some sort be possible?
 
...
that's fucking it
just disable control
 
What would control and disablign control do?
 
open TV and I will show you lol.
seriously
I won't format your C drive
 
http://www.gametrailers.com/videos/6x0kkj/battlefield-4-engine-teaser
When that's your teaser. Don't even fucking bother.
 
12:52 AM
I have already spent too much time trying to help you :/
 
then stahp
 
Well, if you should not talk to strangers, I am pretty sure you should not let them access your computer :D
I can still use C::B, remember.
 
so you have 2 options
either you stop being paranoid fuck and lemme look at your project settings
or you keep fucking things up
 
user1357851
@Borgleader that can be uploaded by any random person - it is probably not the official trailer
 
except in case 2, I don't want to hear about it ever again
 
12:54 AM
Hello, World!
 
Hm... I think I will chose case 2. Sorry.
 
My mouth is zipped :D to C::B I go.
 
you'll regret it sooner or later
but w/e
 
user1357851
@Code-Guru I have noticed you have taken 'cruel' out of your greetings for a while :D
 
12:55 AM
Probably. Hopefully the next library I use, I can get to work with VS. If this happens with everything, we have a problem, though.
 
@Telkitty If it was uploaded by a random person it'd be in the "User Movies" section. It isnt so it was put there by a GT employee.
 
Also - you said fullscreen without asking is rude. I agree. However, in your opinion, is fullscreen or windowed better?
 
an option to choose, obviously
 
Yes.
Also for sound and music, separately from each other.
 
user1357851
@Borgleader looks like the clip was incomplete - maybe upload was disruped somehow and they didn't bother to check the video ... I don't know but that clip was pretty lame for a teaser
 
@Code-Guru what about it?
 
@Telkitty If the teaser was a game launch it'd be SimCity. Coincidentally both are from the same publisher.
 
@Telkitty It's not even a teaser, it's a trailer for a trailer.
the only reason they've done it is to promote their trailer launch later
 
@BartekBanachewicz I guess I'm behind the times. I didn't even know bliz had release another SC2 game. Looks pretty sweet from the trailer.
 
lolll
 
1:02 AM
@Code-Guru dude, that was ages ago
Not mentioning most people here bought it at launch
 
user1357851
@DeadMG By then people would have forgotten there was a trailer for a trailer
 
@Code-Guru Yeah, they've only been blathering on about nothing else for the last year.
 
@BartekBanachewicz nope...two weeks ago
 
also to be fair, it was a recent launch.
 
@BartekBanachewicz Does that count as "ages"?
 
1:03 AM
@Code-Guru yes.
 
@BartekBanachewicz I'm sure many of you did...like I said, I'm behind on my PC games right now...
 
@Code-Guru we ain't
 
good for you =p
so I'm sharing my ignorance =p
 
user1357851
Woah you guys still have time for games? I have stopped playing them a while ago
 
My condolences
 
1:06 AM
and I'm still catching up on some PS3 games.
 
user1357851
@Borgleader ?
 
user1357851
Ever since I start making my own games, I have stopped playing other peoples :p
 
user1357851
They remind me how bad my own game is :'(
 
user1357851
just joking
 
1:17 AM
@BartekBanachewicz Err... what's that stray 'w' char at the end of the first line?
 
@MartinJames typo :)
 
OK, I'll believe you :)
 
I haven't disabled controls yet
so it inputs into console and steers the camera at the same time
 
OK, not bad :)
 
k, changed to arrows
I have to create "console mode"
as in, it pops up and you can write to it
man, I can't wait until I add Lua to it
 
1:22 AM
I think 'console' is stretching the definition of the word to just about as much as it can bear without breaking, but hey, something works!
 
well how would you call it
 
Oh, I dunno.. a 'textBox' maybe.
 
it's not a textbox
it keeps a history
 
OK, memoBox?
 
I mean, you can write a line to it just like to normal std out
 
1:25 AM
ISP is really sucking today...
 
Maybe I'm just to GUIfied for this kind of stuff. Don't do consoles much.
 
Why was it red again @BartekBanachewicz?
 
@Pawnguy7 that's a posteffect
 
Heh - I was trying hard not to mention the 'Red Alert'
@Pawnguy7 Any other colour would mean changing the bulb.
 
Was it a test of if posteffects worked, or are you really trying to make it red?
@MartinJames Changing the bulb? What?
 
1:27 AM
@Pawnguy7 Red Dwarf..
 
@Pawnguy7 it's just a test obviously
I just disabled it
IOW I now multiply resulting color by (1,1,1,1)
 
I don't know the reference, apparently.
What kind of affects would these be?
 
Anyway, best wishes for you console/box/whatever. I need sleep now. Bye all!
 
I just got my first popular question badge: programmers.stackexchange.com/questions/165725/…! ... okay, so it's for a Programmers Q. Kindda strange that I only have 3 upvotes, though ;-(
 
1:33 AM
You know you like it.
 
@Pawnguy7, that's just... so 80s.
 
I wouldn't know.
 
Hi lads
 
I forgot where you went.
 
1:37 AM
Ooh!
-6
Q: Program on student staff feedback system. Getting a linker error

user2197401While compiling I'm not getting any errors..but while running the program its showing linker error as undefined symbol..what should I do? I wrote the program based in student staff feedback system. #include<fstream.h> #include<iomanip.h> #include<stdio.h> #include<...

 
I am guessing those are chunks. Why is their a bit of space between them?
 
OK, Barteks stuff is working well, I must stop Lounging!
 
@MartinJames what?
@Pawnguy7 I have created them with empty "border"
 
Ah. That is useful. Do they each have their own coordinate systems, or?
Not quite sure how you could fit in a space there :\
 
@Pawnguy7 lemme grab my iPad and I'll reply
 
1:43 AM
Ok. Oh, just remembered! I had an awesome idea. Well, I thought it was.
I was thinking of seeds. Specifically, minecraft seeds, but no matter. Anyway.
Around this time, I also had an idea for a game - "Console" was the working title. You would move on characters, basically.
I thought it would be cool, dynamically creating levels of text.
But, what if you could draw from the internet? You could use a URL as a seed.
Your game would gain content when the internet did.
 
@BartekBanachewicz what is that?
 
Wow, Corona labs launched their own cloud. Sweet
Multiplayer across iOS and android
 
Hello, any git users?
 
Never quite understood the cloud hype, but I only have one "device", so...
 
@LewsTherin I nearly trashed my repo today, so yes
 
1:51 AM
Mmn, a branch I used to create a new feature for some reason got overwritten after a commit and merge with the master
How can I revert to that commit?
 
@pawnguy7 you have to use it to really appreciate it
@Lews git reset?
@Jueecy Minicraft
 
@BartekBanachewicz Sounds logical to me. See my idea (or wall of text) up there?
 
scouting competition :)
 
Yes. Well, you can use anything to feed data, so...
 
@Pawnguy7 Hi, how's it going?
 
1:54 AM
That didn't work
 
I don't really get how using urls would be better than plain random
 
@BartekBanachewicz do you develop it? Also isn't minicraft a 2D game?
 
@Jueecy thats what I thought
the modern one isnt though
 
@JABFreeware Good, as long as it does not involve SFML or linkers.
 
@lews well read about reset
 
1:55 AM
@Pawnguy7 I meant in C#
 
@jueecy I named my Minecraft clone Minicraft
 
@JABFreeware Not much progress today, but somewhat: if you load some older messages, you can see a screenshot.
 
@JAB this is C++ room
 
@BartekBanachewicz lol
@BartekBanachewicz but it doesnt say other languages are not allowed
 
Considering C++ isn't really discussed... :D
 
1:56 AM
:)
 
@BartekBanachewicz, may i try it?
 
Have you read the rules?
@jueecy on my github
 
@BartekBanachewicz there are no rules in this room
 
Now look at the starboard @JAB
See? On the very top
 
Are you afraid he will ask a C# question?
 
1:58 AM
@BartekBanachewicz thats not official.
 
I am not a room owner so yes
I am afraid
 
has to be in the sub heading, and I'd bet a mod would support my argument :)
 
Ah. I don't believe that to be the case.
 
Moderators visit this room frequently
 
but just to be nice. I'll leave.
just wanted to see whats going on
the rooms all seem dead
 
1:59 AM
So you might consider these rules official
 
Why was it we replaced the rules, anyway?
 
is she?
 

« first day (888 days earlier)      last day (4054 days later) »