« first day (640 days earlier)      last day (4294 days later) » 

8:00 AM
@jalf I'll try it out then
 
@FredOverflow bah, hardly looks like mine
 
Maybe it does when it's small?
 
If you've got a Q&A site with literally hundreds of thousands of users climbing over each others to answer questions, why do people to got a small irrelevant chat room with around 10 active users?
 
¬_¬ based on your lack of editing, I don't think this is going to end well for you
 
Because they want an answer now! :)
 
8:01 AM
@FredOverflow make it smaller then :P
 
Oh, are they climbing over each other, really?
 
yep
 
Where is Tony? :)
 
@FredOverflow Most questions get an answer now! on SO. Here, they typically have to wade through quite a lot of bickering and silly in-jokes first. ;)
 
I know, but they apparently don't.
 
8:01 AM
@jalf only when they are idiots
 
@jalf Why would not want that?! I mean, c'mon
 
had people come in here after like 8 minutes complaining that they haven't had any answers
impatient fuckers
 
@thecoshman hmmm, time to see if that's my case.
 
oh, but don't you know @DeadMG the internet is here to server them personally
 
I always downvote them
 
8:02 AM
2 mins ago, by thecoshman
¬_¬ based on your lack of editing, I don't think this is going to end well for you
 
and sometimes I end up vote to close too
 
@DeadMG bit of a dick move. Down vote because the question is bad, not because the OP is a dick. Although, usually the question is bad :P
 
@thecoshman I don't mind about endings
@thecoshman sometimes they just downvote because the OP is dick. Cause they got really mad at something the OP said
 
@thecoshman Eh. People care about votes and I like to hit them where it hurts when they do that shit. Technically, I can downvote for whatever reason I want to.
but also, moderator recommended it
 
8:04 AM
@thecoshman that happened to me
 
@DeadMG indeed you can, it's still a dick move
 
eh
funny though, because most people don't do it twice
 
I've yet to see a really annoying person with any sort of long term account, the only conclusion is that they either learn after one mistake, or just make new accounts all the time
 
@thecoshman Downvotes on questions have another effect. They get ignored much more and therefore stay unanswered, no matter how many accounts you create, it won't solve that.
 
0
A: Wrong outputs due to long double accuracy

Ajax AristodemosI am closing this question.......................................................................................................................................................................

^^ lol
 
8:11 AM
I wish I could vote close
 
It should be closed as "too localized". That contest is over.
 
@KillianDS which is a bad thing, if a question is valid, it should not be hidden away because the OP is a dick
 
@thecoshman I disagree, imho SO's major advantage is the community, not the Q&A database. I think downvoting a question to make someone behave in this community is a very legit reason.
 
@DeadMG what about that one: stackoverflow.com/questions/11380754/usiung-border-on-qwebview. Did I wait enought for an answer? Can I ask help in here now?
 
@KillianDS maybe...
@PatrickBassut you just did :P you don't need to copy the question here, such a link is sufficient, and yeah, it's more then a few days old
 
@PatrickBassut just random shot in the dark here, but do you not need to set something like border colour or border style?
 
@R.MartinhoFernandes how about a little less shopped:
 
@thecoshman Well, thank god there isn't a limit for questioning, right?
@thecoshman rs. But I already tried that. It just doesn't work
 
@PatrickBassut There is
 
@thecoshman In theory, yeah, makes perfectly sense. But in practice, the theory is another one.
 
8:21 AM
@PatrickBassut Isn't that in core a CSS question? You should tag it with that.
 
Could you perhaps provide a screen shot of exactly what you are seeing, maybe also provide a complete code listing for the screen shot. I suggest you do so by first reducing the code the as little as possible to see this problem — thecoshman 19 secs ago
 
@sehe It looks like a pokémon i've seen. haha
 
whatever the bleep that is. People keep talking about pokemons, freggles, pokemons as if they are real things
 
@KillianDS actually, it's a QT question. Since QT use a syntax that only look like css
@sehe I knew you would say that. I meant in the cartoons
 
@PatrickBassut Oh, okay, silly remark then, I was under the impression that a WebView widget would simply parse actual CSS, but I don't know QT that well.
 
8:24 AM
@PatrickBassut You knew? Blimey. Let me have your phone number. You're one hell of a psychic
 
@sehe I knew you would say that too! God, I think I am!
@sehe Or you're damn predictable. I guess is that one.
 
Plonk
 
@KillianDS guess they changed a bit of it so they won't say it's css, rs. But thanks, anyway
 
@Patrick are you sure the Qwebview can even have borders applied to it?
 
Well, if it doesnt, it really should. Cause in its normal looking, it look like a ugly frame.
 
8:32 AM
0
A: C++: Why can't I use float value as a template parameter?

refpTHE SIMPLE ANSWER The standard doesn't allow floating points as non-type template-arguments, which can be read about in the following section of the C++11 standard. 14.3.2/1      Template non-type arguments      [temp.arg.nontype] A template-argum...

 
well, I don't seem to be able to find anything on Google about how do this, though I did find one or two posts where people where starting to look at overloading the drawing functions to support this
 
I wrote that answer to a question that was flagged as duplicate of the above, what do you guys thing - am I (as usual) thinking in a matter which is "fucked up"?
I haven't slept in a few days (as always), and running a fever..
 
you clearly have provided the best answer to that question
 
9:07 AM
so much C++ magic to learn, so much Java in the way
 
> There is normally no need to subclass Application. In most situation, static singletons can provide the same functionality in a more modular way.
 
That's a very most situation then.
 
Official Android docs.
 
9:24 AM
Singleton was the first pattern taught to me at school.
kinda interesting how bullshit spreads :P
 
Ah refp. As I commented, you added useful information, but it's IMO not really necessary to add a new answer to an old and answered question.
Edits are fine.
 
@nightcracker should I completely edit the post in question, rewriting it from scratch? seems.. odd
 
Editing doesn't net rep or badgers.
 
that too, and I'm a rep-whore
that's a known fact
@yokks is an active user, so he/she might as well just change the accepted answer
 
Editing does net a few badges :)
 
9:34 AM
@nightcracker If you think you can write a better answer than the ones that exist, why shouldn't you do it? The age of the question is irrelevant
 
@CatPlusPlus :O
 
@jadlf Yeah you're probably right
 
I think the system even allows you to post multiple answers.
But I haven't used that yet.
Perhaps it can be used in case the question is something like: What is sqrt(16)?
 
9:51 AM
@StackedCrooked Yes, it does, but it discourages you with a nice pop-up to ask if you're really sure you want to do that
 
I wonder what drives people to share witty thoughts and kitten pix on social media, craving for attention. I am immune to that. Please RT.
LOL
 
I had to look up what RT means.
 
10:10 AM
Retweet I guess.
 
10:55 AM
Wow, just tried using an android phone for 5 minutes
People actually pay money for those things?
 
¬_¬ what phone?
 
@jalf Technically, no
 
er, a fairly new one, I think. Samsung Galaxy something something?
 
oh right, for a minute there I thought you complaining that a sub £50 phone doesn't compare to a over £400 Iphone
yeah, there not for everyone
 
I'm hardly an expert, but no, I think this is one of the relatively high end ones
@thecoshman The browser on my old Nokia n95 was easier to use
 
10:57 AM
@jalf Which cellphone do you use?
 
and that didn't even have a touch screen
@ManofOneWay iphone, as of a few months ago.
 
@jalf Nice, what do you think of it?
 
@ManofOneWay on the whole, it works well. I haven't had many nasty surprises or situations where it's painful to use
 
@jalf what's hard to use on the android browser?
 
@ManofOneWay its autocorrect is insanely clumsy, but other than that, I don't think I have any big complaints
 
11:00 AM
you can change you keyboard you know...
there is no one size fits all keybaord
I've got a HTC Tattoo anroid phone, it sucks ass. The aroind part of it is really nice, it's just it has a resistive touch screen, and they are utter shite
 
@KillianDS a button that was easy enough to hit on iphone (and even a Windows phone) was like a few pixels high in Android's chrome. For some reason I had to touch a bit above text fields to select them, and then it did something horrible where it didn't show what I typed. Spent literally 10 minutes trying to type a single url into that textbox before I gave up
I'm sure I'm just doing something wrong, but given that I tried an iphone for the first time 2 months ago, and I had no problems learning how to use its browser, the fact that I struggled so much with an Android browser kind of surprised me
 
@jalf wait... was it a small phone, Samsung Galaxy is a range of phones, going rather low end
 
oh, and the UI is perceptibly sluggish
@thecoshman No, a biig one. Screen was quite a bit bigger than my iphone
 
@thecoshman No, it is actually an issue with android browser, I encounter it often, form handling and such sucks. Regular browsing is very smooth, but I recognize the problem, it's why I have two browsers installed.
 
I've played around with Iphones, friends and families phones. There ok, but just too expensive
 
11:05 AM
@KillianDS It had Firefox as well, and I tried with that, but that seemed horribly slow, on top of still having really wonky form handling
 
I'm very happy about the usability of android as a whole, and as far as malfunctioning apps go, well, there's the market (or play or whatever it's called) to solve that
 
Although admittedly, by the time I tried Firefox, I'd already kind of lost patience. Might be biased by that
 
@jalf Firefox works pretty fine on my desire s, but it is mainly (like the desktop version) a memory hog, which is why I usually don't use it
 
@thecoshman Yeah, mine is paid for by my employer :)
 
The only thing that bothers me, but that is an HTC bug, is that I can't turn of my phone.
 
11:07 AM
haha
 
The C++11 solution is <ratio>, described by §20.10 as "Compile-time rational arithmetic". Which cuts right to your example. — Potatoswatter 30 mins ago
erhm, is there a method in the STL to turn a float into a std::ratio? afaik there isn't
 
Hey guys
Do you still need to check for NULL
if you've got swag?
 
11:24 AM
I'm just going to write one..
 
11:42 AM
Refp, floats and doubles have always been a pain point, inherited by C. So much of it is implementation dependent.
Also make sure to hande NaN, infinities, etc correctly, if existent.
 
@nightcracker this chat room has tab completion, just write "@re" and press <tab>. but to answer your inputs; I'm just going to write a very very simple implementation to give future readers something nice to think about
 
And finally, if your system has iee 754 doubles, you need a big integer implementation because the exponent can be up to 1000
Also tab completion is annoying, I'm on an ipad right now :)
@refp: ^
 
@nightcracker as said; a simple implementation just to add a PoC to the post
 
Refp: this might be a useful starting point for an implementation for IEE754, this does truncating but can be adapted for creating fractions as well : stackoverflow.com/questions/10250419/…
 
Potentially stupid nooby question
But when you declare a struct, is a struct keyword optional?
struct example {
  int x;
};
struct example an_example;
an_example.x = 33;
 
11:52 AM
Doesnt GCC already implements IEEE-754 128 bits double precision format ?
 
C i presume?
Leandro: you mean quadruple ;)
 
You are right , quadruple.
I thougth GCC already implemented that numeric format...
 
Klan: in C you usually use a typedef for that (I'd love to write an exampe, but it would take me an hour on this ipad)
Leandro: no idea, why?
 
@nightcracker I am just one of those guys who wonder why neither C++11 nor Java nor C# have implemented quadruple precision yet.
 
@LeandroArielPezzente Because not many people need it
besides, how much hw supports it natively?
 
12:00 PM
In computing, quadruple precision (also commonly shortened to quad precision) is a binary floating-point computer number format that occupies 16 bytes (128 bits) in computer memory. This 128 bit quadruple precision is designed not only for applications requiring results in higher than double precision , but also, as a primary function, to allow the computation of double precision results more reliably and accurately by minimising overflow and round-off errors in intermediate calculations and scratch variables: as William Kahan, primary architect of the original IEEE-754 floating point sta...
 
I thougth none precision was enough for scientific computing. Hmmmm ... I guess excluding GPUs and Intel Vex 256 .... not many hws ...
 
Have to go, speak you people later.
 
@KillianDS that's not a bug, it's a feature
 
Yeap I recalled correctly , and quoting "The quad-precision library is part of GCC since its 4.6"
 
@KianMayne in C you would have to use the struct keyword, in C++ it is optional. Not that you can also create instances of your object by putting a name for them after the '}' of the struct, but before the ';'
 
12:14 PM
@thecoshman Thanks man :)
 
> switching to Yoda Power probably isn’t worth the trouble - whatif.xkcd
 
Xeo
@thecoshman You really have trouble with the links, eh?
 
@KianMayne you can also use a typedef e.g. typedef struct example { ... } example
That's equivalent to struct example { ... }; typedef struct example example
 
@Xeo I used to have no problems at all, now I'm all retarded :(
 
12:30 PM
@LeandroArielPezzente gpu's just recently started adding double precision calculations, I doubt there are more than a few that support quadruple in hw.
 
12:46 PM
emplate<long N, long D>
void work_with_float () {
  std::cerr << N << "/" << D << " = " << N/(0.+D) << std::endl;
}

int
main (int argc, char *argv[])
{
  Obj constexpr F1 = _ (123.321);
  Obj constexpr F2 = _ (0.33333);
  Obj constexpr F3 = _ (199); /* <- prime */
  Obj constexpr F4 = _ (1.66666);

  work_with_float<F1.N,F1.D> ();
  work_with_float<F2.N,F2.D> ();
  work_with_float<F3.N,F3.D> ();
  work_with_float<F4.N,F4.D> ();
}

/****************************************/

9989/81 = 123.321
1/3 = 0.333333
 
Do I seriously need a conversion function to change from a char like '4' to the int 4? Surely there's a way to do this?
 
just need to clean up the code a bit, after that it's going straight to the post!
 
@KianMayne '0'-'9' are guaranteed contiguous by the standard.
 
emplate? ;)
 
and maybe change the algorithm somewhat, trying to turn large numbers will make the maximum recursive depth of the constexpr
@KianMayne '4'-'0' = 4
 
12:49 PM
So how come this code isn't working?
 
because you are doing something wrong.. now I gotta smoke
 
cout << square[choice] << ' ' <<  choice << '\n';

		if(square[choice] == choice) //Evaluates false even though the display above is the same
		{
			square[choice] = mark;
		}
 
Any Qt users here?
 
@Nils kinda
what's the prob
?
 
@KianMayne boos provides lexical cast, it will let you convert from strings to various numerical types, and backwards
 
12:52 PM
@Nils I'm cute
3
@thecoshman Erm, not just numerical types. I believe it uses IO streaming operations (as a fallback?)
 
@sehe I doubt so, try using a picture of ur dog.
 
@KianMayne ¬_¬ what are you trying to do?
 
@Nils I'm cute, but I don't like being drewled upon
@thecoshman cout << square[peg] << ' ' << round[hole] << '\n';
 
Well I load my UI from an ui file created with the designer. Then I load the Main Window using the uiLoader. Pointers to widgets are set up using findChild(..).
If I want to implement things like saving state when the main window is closed I need to create my own MainWindow class. Because I need to implement things like closeEvent(..)
How can I do that? Can I tell the uiloader to load a custom MainWindow class?
 
just redefine closeEvent in your qmainwindow?
 
12:57 PM
I load the main window from an ui file.
 
well, but you still got your mainwindow.cpp/hpp file?
 
No
I don't use code generation.
you can directly load ui files
 
but you have to load that from somewhere
 
yes from the ui file created with the designer.
 
your main.cpp has to create a widget
 
1:00 PM
There are two ways to get stuff from the designer into the app.
1.) Let the designer generate C++ code.
2.) Load the ui file and load widgets from there.
 
which loads your ui file in its constructor
 
yes
And it seems you can add user defined classes.
just not MainWindow :(
 
how did you create your project?
 
Full code: http://ideone.com/Olgrw
Ignore the screwy output and the CLS - Not mainly my code
 
visual studio
@bamboon That certainly has nothing to do with it.
 
1:10 PM
Is there a better alternative to system("CLS")?
 
@KianMayne when you do 'char == int' it will use the ascii value of the char, the ascii character for '1' is not numerical '1'. Look up an ascii table and you will see, I think ascii value '1' is escape, or something other white space. Also your arraw 'square' the first value is a letter 'o' and not a number '0' like I suspect you want
 
@Nils well, if you just created a Qt gui application and always clicked next, you will have a mainwindow, where you can reimplement closeEvent
 
@bamboon Just shut up you have no idea.
 
@Nils lawl
 
1:12 PM
@Nils Pardon your French. If you can't handle people helping you in other ways than you anticipated, please just ignore, or thank them politely.
 
@KianMayne I think you want to change the array 'square' to be of type int for that comparision to work, and further, you just want to make sure the user input is in the range [0->9], so just check that it choice >= 0 && choice <= 9
 
@KianMayne I just did that the other day: ideone.com/R1bWq see void cls(...)
 
oh wait, I see what you are using the array for... very strange
 
Jul 13 at 13:02, by sehe
@IntermediateHacker: see http://stackoverflow.com/questions/6486289/how-can-i-clear-console
 
@KianMayne yeah, you need to rethink your input validation. You have gone about it arse ways
 
1:18 PM
-5
Q: What are the language advantages of java over c++?

hirantha129What are the language advantages of java over c++ other than technological advancements like supporting business processes?

 
We nuked that fast.
 
There's a lot of "What are the advantages of <X> over <Y>?" lately
 
Maybe people deciding to learn new languages over summer.
And they always want to learn "the best language".
 
It depends on the problem
It's like asking what the best food is :P We talking breakfast, lunch, or dinner?
 
@thecoshman the relevant section of the standard + more information is available in my (newly posted) answer. — refp 3 hours ago
 
1:20 PM
@AgainstASicilian Breakfast food is the best food for breakfast, lunch and dinner. :-P
 
Hmmm, I knew my analogy had a hole somewhere
 
@thecoshman oh well fancy that, I would have dreamt of downvoting all answers that failed to give the detail you did and upvote your hard work :P @refp
 
Meh, what's this obsession with quoting the standard? Not all answers need to.
 
@R.MartinhoFernandes fairly sure it's a technique to get more upvotes
 
@R.MartinhoFernandes no, but if you are just going to say 'standard says no' it's nice to see what exactly the standard says.
 
1:22 PM
Quoting the standard?
 
Ell
hi guys
 
refp put a clearly better answer, much more comprehensive, took his time on it
 
@Ell Hi there
 
Ell
anyone done any 3d modelling before?
 
@AgainstASicilian Yes. There's a document somewhere that defines the C++ language
3
 
1:23 PM
@Ell yeah
 
@Ell Did some limited modeling in Blender 3D
 
Ell
One question... how? :P
 
@Insilico oh god he didn't did he? He can stay plonked :O
@Ell ಠ_ಠ
 
Said document is the ISO 14882.
 
you looking for some rage? what do you mean, 'how?'
 
Ell
1:23 PM
I want to make a model along the lines of link in zelda wind waker - you know, not exactly high poly or anything. just a little dude that can walk around.
@thecoshman that was just a remark expressing that I find it difficult
 
@Insilico I think quoting the standard, then, is simply safe because it's not prone to being "wrong"
 
Ell
I'm just curious as to how long it took you to get any good at it?
 
skeletal animation is a lot more work then just static model, there is more to think about
 
@AgainstASicilian Actually the standard can be wrong. That's why people file Defect Reports for it.
 
@thecoshman What?
 
1:25 PM
@Ell I spent about three years working fairly hard at it in spare time, never got that great
 
Ell
for a low poly character model, are we talking days, weeks, months, years of practise? I know everything takes time, but I was thinking of making 3d modelling my summer project:L
 
@Insilico normally that's just ambiguous, confusing or unintended consequences though
 
Ell
@thecoshman hmm okay. maybe buying some blender training dvds will help :L
 
@Flexo If a standard is ambiguous, confusing, or has unintended consequences, then the specification is wrong.
 
@Ell just grab a copy of blender, and work through as many small tutorials as you can find, it will take a long time to learn enough to be able to just make what you want
 
Ell
1:26 PM
yeah. I have been messing about with it for years, never really properly tried though
 
you will find your self very frustrated with how hard it can be to just make what you want
 
@Ell 3D modeling takes quite a bit of time to get it right. It's not at all like Photoshop or anything like that
 
and you don't just need to just make a 3D model, you need to skin it as well, and then through lighting into the mix
 
Ell
I can't wrap my head around UV mapping either (if you'll pardon the pun)
yeah, there is a lot to do :/
 
@Ell Do you know what a net of a 3D shape is?
 
1:27 PM
UV wrapping is a simple enough concept
 
Ell
I remember starting out with Anim8or when I was 11 years old :P
I understand the concept
 
@thecoshman What do you mean earlier?
 
Ell
I just don't know how to uv-unwrap complex objects, like faces
 
Anim8or was ok... I used lightwave for the most part. 3DS max is powerful enough too
Blender looks amazing for a free program
 
@Ell A face is fairly symmetrical, which makes it a bit easier
 
1:28 PM
@Ell with a tool :P
 
@thecoshman It's really quite good, but the docs are unfortunately not always up to speed
 
you don't manual make UV maps, well you might tweak them a bit
 
Ell
@thecoshman yeah have you seen any of the durian open movie projects made with it? They are incredibly high quality IMHO
 
@Insilico I got bored of 3D modelling before I got a chance to give it a go
 
The UI is a bit wonky, IMO, but now I keep using Blender keystrokes/mouseclicks in other 3D programs. XD
 
1:29 PM
@Ell no I've not
@Insilico UIs are always wonky :P
 
@thecoshman True, but the Blender UI completely changed in the latest release or something
 
Ell
@thecoshman youtube.com/watch?v=eRsGyueVLvQ its only 15 minutes long, even the first minute shows the quality
 
@Ell I would love to see someone try a bit of motion capture with Blender. It would probably be a separate tool, though.
 
Ell
yeah
 
@Insilico we have (now fairly old) motion capping hardware and the software is sort of orthogonal to blender
it focuses on point tracking and topology of objects with markers
 
Ell
1:34 PM
Is being a good 2d artist (sketching etc.) a prerequesite for being a good 3d one?
 
@Ell I wouldn't think so. I guess for things like UV mapping, sure.
But the 3D workflow is very different from 2D workflow.
 
Ell
Yeah. I'm just asking because I'm not an artist at all really :L
 
@thecoshman I know about that, and I thought it odd. So are you saying that I should split the display array into a display and a value array?
 
@Ell: 3D modeling, like programming, takes a lot of practice to get really good at it
 
Ell
@Insilico yeah
 
1:39 PM
There's a site where you can upload a Blender model and they'll make an actual part of that model
 
Ell
yeah I've seen that :) anyone here have a RepRap?
argh I deleted something now one of my objects is not showing any shading >.< Just pure white
 
@Ell RepCap?
 
Ell
@sehe reprap, the open source rapid prototyping machine
 
Today's TDWTF is yet another "oh, turns out phone 'numbers' are not actually numbers".
 
1:48 PM
@Insilico Bukake?
 
@sehe Damn you.
 
@R.MartinhoFernandes the real WTF is that they've run out of WTFs
 
Huh. You'll never run out of PHP
 
@Flexo it's a method of backing up your statements, not to get more votes..
 
@KianMayne I would keep the char squares array as it is, but when validating input, first check they entered a valid input (1-9) inclusive, then check that that square has not already been taken, not a O or X
 
1:55 PM
@refp I agree and was (mostly) joking. There does seem to be a correlation between standard quoting and upvotes, but I don't think it's a trivial causal relationship
 
@sehe First thing I learned in DB class: do not treat phone numbers as numbers.
 
@Flexo ¬_¬ of course there is a relation. People who quote the standard are providing a better quality if answers. Better answers get more upvotes. Seems fairly simple to me
 
You're being too simplistic.
If it were so, the standard wouldn't be considered hard to read by so many.
 
@thecoshman I think people upvote answers with Standard quotes mostly because they think "hey, if the standard is in there, it must be right!" without even reading the damn quote.
 
@R.MartinhoFernandes your not being simplistic enough
 
1:59 PM
@thecoshman Yeah-good plan
 
@thecoshman I think some people think "oooh quotes, it must be clever" and automatically upvote, but I agree that people who are inclined to turn to an authoritative source are also likely to give better answers. (I also suspect some people add quotes where it could equally be avoided to project a certain image and air of authority to appeal to the first sort of voters).
 
It's the GSQ game.
 

« first day (640 days earlier)      last day (4294 days later) »