« first day (772 days earlier)      last day (4169 days later) » 

7:11 AM
The smallest denormalized number will reciprocate to infinity.
Does that count?
 
lim x -> infinity of x/x ?
(that's 1)
wow I picked the worst example
 
oh wait... integer haha...
I would think it could fail as early as 3. Since 1/3 can't be exactly represented.
 
1/3 * 3 == 1 ?
 
1/3 won't be exact. So 1/3 * 3 won't be exactly 1 unless it happens to round towards 1.
 
yeah I tried with this and got false
obviously a bad way to test anyway..
but it is what he asked
zzz
 
7:23 AM
@sbi Who's the judas?! That's a nice voting pattern, (btw. I'm pretty sure I'd hardly ever notice: I don't frequent meta)
@Crowz Making progress mate! Already started freaking people out just a little bit less :)
@ScottW meow
> The controls are laggy, and controlling the vibrator by tilting the controller never really felt right to me. [...] I really had no idea where the project would go. srsly
 
Guys, what this @qualifier field for in function comment(documentation) block? I didn't found any example of usage.
 
@sbI I have found an image you can use to help expressive your self, linkski
4
 
7:51 AM
> It takes some care to use Blender for CAD, but I enjoy having such diverse functionality integrated into one package, and the price is right. -- (also there)
 
user1182183
Anyone knows the most 'unhackable' single player games (not only SP but they have to have SP), I tried many games and the mosth unhackable till now (with Cheat Engine) was Evochron Mercenary, but, after some playing around with it I found a way to gain experience points and money with CE.
 
> "Perl 6: the madn^H^H^H^Hmagic only goes so far" -- #perl6 IRC
 
8:18 AM
0
Q: How can I add two number with x86 assembly language?

user1363058I tried this code to add two numbers, A and B, and print the result to the screen. I'm using masm32. .586 .model flat,stdcall dseg segment A byte 5h B byte 16h RESULT word 0h BUFFER byte 10 dup (0) dseg ends cseg segment 'code' Main proc mov ax, A sub ax, B mov RE...

^^ temped to comment: "Use jQuery. It does great things."
 
hello
as there is no room for LINUX shell script ... so i m asking here :P
when we use Different shells like "bash" or "csh"
then we have diff commands or options ?
 
8:39 AM
@R.MartinhoFernandes oh, I asked my Russian friend what it means, turns out 'little flame' is the best literal translation, used to mean a small flame like you would have on a candle of a cigarette lighter, the latter example being what it has more or less come to mean. In Russian at least, you would say it sort of like 'aga-nyork', a very short 'r' sound. He thinks Polish would pronounce it more or less the same.
@DextOr yes and no. In theory they are different languages if you will, like Perl and C++, in practice though, it's more like C to C++, not much changed (At first). A lot of the programs you use, like 'ls' are system programs, so it is the same no matter what shell you use, but things like alias are dependent on the shell you are using
@GamErix what do you mean by cheating? editing the ram at run time to change how much XP you have? or just exploiting loop holes within the game itself?
morning all btw :P
 
ok @thecoshman which one is easy ? csh or bash ....
 
@Mysticial: I did an empirical test, and even though being contiguous introduces cache line contention, it turns out that killing the indirection and other effects still make the contiguous version faster.
 
@Omnifarious That's interesting. Did you test it on exact large powers-of-two?
 
@DextOr that's a very subjective thing. I personally prefer Bah. But they are all very much the same really. I think csh is slightly more widespread, but Bash is more or less standard now
 
ok thx @thecoshman :>
 
8:45 AM
Since @Luchian is right in that the OP's code is just begging for the same super-alignment issue.
 
@Mysticial I used the OPs exact code, which tests several powers of two sized matrices. I just ripped out his stuff for allocating and destroying the arrays and implemented a class that used multiplication to index a contiguous array internally.
BTW, this is a discussion about the line of comments attached to this answer: stackoverflow.com/a/13560583/167958
 
@Omnifarious Hmm... that's a tough call. Since the multiplication will in fact get in the way if the compiler isn't smart enough.
 
@Mysticial nod That's why I did the empirical testing. I used gcc-4.7.2
 
@Omnifarious use should use more then one compiler
 
@thecoshman I suppose so. I have clang on here too. :-)
 
8:49 AM
Got any assembly dumps to look at? :) I'm curious to see if the compiler is able to pull out the multiply. I have doubts that it can.
 
@Mysticial That's the assembly output for this code: pastebin.com/YvVYXhX3
 
@Omnifarious FYI: You are breaking the Rule of Three.
 
@StackedCrooked Oh, yeah. SquareMatrix needs a copy constructor. Oops. I should just mark it 'deleted'. Though 'move' would be trivial. :-)
 
@Omnifarious It look like GCC is able to optimize out the index multiply. But there's a lot of other junk in there I'm trying to sort out.
 
8:58 AM
@Omnifarious Or simply store your values in a vector.
 
Dammit, no good HD deals on Cyber Monday... fuck I need another sub-$100 3TB drive to finish upgrading my Anime box.
 
@StackedCrooked sheepish grin Oh, yeah, that'd work too. sigh
 
@TonyTheLion "Crack aims to provide the ease of development of a scripting language..." I read no further
 
I take that back... The inner loop looks pretty well optimized by GCC:
.L9:
        movl    %edx, %ecx
        movl    %edi, %r8d
        addl    $1, %edx
        movl    0(%rbp,%rcx,4), %ecx
        addl    %ebx, %edi
        imull   (%r12,%r8,4), %ecx
        addl    %ecx, %esi
        cmpl    %edx, %r10d
        movl    %esi, (%r9)
        jne     .L9
 
9:00 AM
I dunno what the deal with the first 2 movs are. But that shouldn't make a difference.
 
@Mysticial nod I don't know either. gcc does some very odd things with registers sometimes.
 
I just realized we have 3 anime representatives in the owner list.
That's good :P
 
chuckle I like my icon. But, of course, that's why I have it. :-)
Have fun all.
 
@StackedCrooked It needs more undead pirates
 
Well, it has an anime pirate :)
 
@StackedCrooked who :O
 
@Mysticial Bargin!
 
That'll save it for when they fix it.
@Xeo, if I'm awake in 4 hours. (either I manage to stay up, or I get up by then) Then it's a green light.
Ideally, I'd already be asleep right now, but that red-eye flight completely mess up my sleep schedule.
 
Xeo
Today might be bad for me :s I have some errands to do regarding my new flat and everything
 
9:25 AM
Then let's shoot for Wednesday or Thursday. I also have few things to do.
But don't get your hopes too high though. It's very likely that this question is gonna killed by the "this is stupid" sentiment.
 
ooh, would you look at that, I've crept onto the frequent user list :D
¬_¬ though I still have the tiniest amounts of rep
and my lord does the robot say a lot of messages
perhaps
I
should
start
talking
like
him
 
Xeo
@thecoshman He was actually manufactured as a spam bot.
 
@Xeo ah, explains why no one listens to him
 
Since I can't sleep yet, and I've finished shuffling my backups. Time to setup that new laptop...
So I'm probably gonna resume bitching about Windows 8.
fuck... where's the search bar in Win8?
 
Just realized that i'm beginning to rewrite my project from scratch on regular basis. It's some kind of way to improve it, only way it seems, because everytime i look at it my brain hurts because of massive amount of chaos that lives in its code.
Win-F?
It's terribly implemented though, as a fullscreen app, search shouldn't be implemented that way imo.
 
Xeo
9:38 AM
@Mysticial Why not nuke it and put Win7 on?
 
@Xeo Eventually, I'm gonna have to learn it.
 
Eventually you're gonna die.
 
I've been told you can just fall back to a win7 like desktop
 
Xeo
9:41 AM
@Mysticial Why?
 
You can skip it just like some people skipped Vista.
 
Xeo
@StackedCrooked "some"
The only reason I installed Vista on a friend's computer was that Win7 wouldn't let itself be installed on his drives as a fresh install, so we needed to use an upgrade-installation.
 
my work decided to upgrade to vista as win7 came out, it's a smart place
2
 
Xeo
lol
 
sup ladies
 
9:43 AM
Hi
 
Wait... why can't I remote desktop into Windows 8?
Don't tell me that I need a better version of Win8 to be able to remote desktop.
 
I think it starts with Pro. ICBWT
 
guys common Question Ahead ;;;;;;;;;
List any five standard control features those
should be implemented for user passwords.
^^^^what does this mean ?
 
@Cicada fella
 
@thecoshman you pervert!
 
9:48 AM
@Mysticial you mean you didn't buy 'Windows 8 Usable Edition'
 
@Cicada That's not cool... It was enabled in Win7 Premium.
 
like keep it of min 8 charat...... or include alfanumeric ..... <<<<are these control features
 
@Cicada your too old for that
 
@DextOr yes
 
ok thx @Cicada bye
 
9:49 AM
@Mysticial Hello Applesoft Corporation.
Can't you get a Win8 Pro from MSDNAA, though?
 
wait... I thought all versions of win 7 could RD to and from?
@Cicada my gold mine has run out now :(
 
Yeah, this sucks... Time to find a good Win8 Pro download...
 
> alfanumeric
 
And what the hell happened to aero in Win8?
 
^ The char set you don't want to argue against
 
9:53 AM
@Mysticial Removed because "glass effect is so 1980 and it eats CPU power"
That was their explanation (more or less).
 
Xeo
The CPU power part is true, but still. It looked awesome!
 
fucking hell, you get UCAS points for horse riding
 
Removed to be consistent with the RT version which has to run on shitty hardware probably
 
@Xeo lies
 
@Xeo The 1980 part is true too, but deformed. They said something more like "glass effect is too mainstream" or something like that.
 
9:55 AM
They hid "Computer Management" pretty damn well...
 
Xeo
Oh, I just noticed I have Aero deactivated here.
 
imo without it its actually looks better, atleast there's no this silly micro-stuttering thing.
 
@Mysticial Win+Break. Oh wait, Compmgmt.msc or something
 
@Ivan0x32 Micro stuttering? Where
 
@Cicada In. Your. Face. :)
 
9:56 AM
@sehe Why hello there sehe
 
Xeo
And activating it again, I can see why: My window border color is so close to black, that the transparency does close to nothing.
 
I used to have some minor micro-stuttering on Win 7, while moving windows
 
Now to figure out how to make my recover disks. Since I'm most likely gonna wipe the system to put Win8 pro on it.
 
@Cicada Moaning.
 
@sehe Mourning
 
9:57 AM
anyway it seems bit laggy to me
 
I'm grumpier now. I had my age register atomically incremented. All my cores are now slowly becoming painfully aware of that
 
@Mysticial Why in the name of Palpatine would you want win 8
 
@Cicada I figure I'm eventually gonna have to learn it. I bought the laptop for the laptop, not the OS. So I didn't care what the OS was that came with it.
 
@sehe I can only wish you a happy increment, and I hope you flushed your caches :)
 
Happy birthday :)
 
9:59 AM
@Mysticial Tied sales suck!
 
@Cicada By next year I'm sure all my cores have the updated values in their L1 cache
@Ivan0x32 It has been a while already. I just hadn't spoken with the ladybug yet
 
@sehe What does your age register contain now btw?
 
@Cicada Yeah they do... Which is why I build all my desktops.
 
@AlbertoBonsanto Not yet. They probably don't even know about stack overflow :)
@Mysticial You can get Windows 7 for 30€ at eBay now :)
 
10:15 AM
That's not really necessary.
 
Argh, I typoed "windows 8" and landed on a windows 98 page
 
@ScottW You're hungry?
 
Want my potatoes-and-salad leftovers?
 
So, you need to have an existing old windows on your machine to get the low-priced win8 installer ?
 
@kbok There's a low-priced installer?
 
10:21 AM
@Cicada 30e
The retail price is 60
 
Mi€ro$oft? :)
 
@kbok I thought that applied only to people who purchased PCs after july 2012 or something
@FredOverflow Appl€$oft Corporation.
 
> Offre valable du 26 octobre 2012 au 31 janvier 2013 et limitée à cinq licences de mise à jour par personne (mêmes nom, prénom et adresse). Pour installer Windows 8 Professionnel, les clients doivent exécuter Windows XP SP3, Windows Vista, Windows 7, Windows 8 Consumer Preview ou Windows 8 Release Preview.
 
@kbok Does the low-priced Windows 8 installer work with Windows 3.11 for Workgroups? I got that with my first PC. Don't have a 5.25" disk drive anymore, though...
 
@kbok sorie ai donte spike frènche
 
10:23 AM
@FredOverflow lol
 
@FredOverflow No, but you can upgrade to win95, then to win98, then to win2000, then to XP, then install the service packs, and then upgrade. Maybe.
 
@Cicada lol ptdr jparl pa francé lo!!
Note the "lol" merged with "!" for additional styling
 
@sehe I don't really understand what it does or how it works, but it looks really cool.
 
1
Q: Taking offset of a reference member (non PODs)

Prasoon SauravHere is the code snippet #include <iostream> struct Z { Z():x(0),y(0),z(x){} ~Z(){} int x; int y; int &z; // Reference member }; template <typename Type, typename C, typename M> size_t Offsetof (M C::* ptr_to_member) { Type type; return reinterpret_cast<cha...

Any ideas?
 
10:28 AM
@ScottW loooool, for a second I was wondering "ummmm... I've heard that name before... but where? It's not even a real french name..." and then it struck me :D
 
@kbok I recall seeing a video of someone doing that
 
mawning
 
@TheForestAndtheTrees Yup. And showing how his background color stayed pink from win 3.1 to win 8 thanks to retro compat :D
 
@PrasoonSaurav Y'know, I usually downvote people for dumping their question in the chat
 
How you deal with documenting declaration and implementation of functions? Do you write verbose documentation on method in header-file and just a <see> in implementation?
 
10:30 AM
@DeadMG Reference members do increase the size of the class iirc.
 
@DeadMG And why do you do that?
 
Because newb hents
 
@PrasoonSaurav Because it's really fucking annoying. If I wanted to answer questions, I'd be browsing the question list, not chatting in here.
 
Oh wtf... I can't even make the recovery media because the program is bugged.
As soon is it finishes the first disc, it keeps on ejecting the second one...
 
@Ivan0x32 I tend to write inline functions in header files, so there is no code duplication ;)
 
10:33 AM
@PrasoonSaurav Also see the rules. (Ctrl-F for them on this page if you don't find them.)
 
@Mysticial What laptop did you get?
@StackedCrooked The rules of three? ;)
 
@FredOverflow do you have public code repository?
 
Dell Inspiron 7720
 
@Mysticial What do you need a recovery medium for?
 
@R.MartinhoFernandes If for whatever reason, I want to roll it back to factory state.
 
10:36 AM
Ok.
 
@Ivan0x32 No, why would I want one?
 
Because when I install Win8 Pro on it (which just finished DL'ing btw...) I'll be wiping the HD clean - all partitions and everything.
 
I've used Clonezilla in the past to backup factory state.
 
@Mysticial You probably don't want that. There is always lots of unnecessary crap on laptops.
 
@thecoshman Oh, thanks.
 
10:37 AM
If I end up giving it to someone else (like my parents) they would prefer to have it running a legit OS.
 
6
Q: How to get the exact number of times that a function is executed in C++?

Aby Wang#include<iostream> using namespace std; void callMe() { int count=0; cout<<"I am called "<<++count<<" times!\n"; } int main() { callMe(); callMe(); callMe(); callMe(); return 0; } Here the output will be I am called 1 times! I am called 1 ...

the OP clearly states he doesn't want to use a global, and then every answer is "Use a global!".
 
Where does he state that?
 
Fuck, I can't find my 16GB flash drive to make the recovery disk... Guess I'll have to buy one tomorrow.
 
btw, this Meyers singleton, is it now thread-safe in C++11?
 
10:42 AM
@StackedCrooked Someone with 36 rep edited it out. Which means... SWLEKRhgkeahaeGH EKg vJ Fucking peer edit reviewers.
@Ivan0x32 Yes.
Oh wait.
That was the OP.
 
Wow, 10 votes for that ?
 
That's gonna top the multicollider pretty soon.
Don't be surprised if it ends up getting a hundred votes.
 
lol
I am jealous of all the imaginary points this guy is going to get.
 
Dammit, where did I put my friggen 16GB flash drive...
 
> auto callMe = [=] mutable {
lol
 
10:50 AM
Been using MSVC for a while now. Anyone wants to guess what C++11 feature I am missing the most?
 
@kbok They really need to change that multicollider algorithm. It too heavily favors open-ended questions.
 
@R.MartinhoFernandes constexpr? :P
 
@Mysticial That's RTFM
 
#define so auto
#define maybe mutable
so callMe = [=] maybe {
// Please don't shoot me for this
@TonyTheLion Nope.
 
lol
 
10:52 AM
@R.MartinhoFernandes we all knew you are a pop-lover ;)
 
@kbok Or rather, FGITW.
 
Does the combination of [=] and mutable creates a closure ?
 
Ah, cool
 
Though just [=] is enough for making a closure.
 
10:54 AM
Yeah, my question didn't make much sense, but you got it :)
 
Oh yeah, @ThePhD, no, lambda's operator() are not always const.
 
what's a closure?
 
Put simply, a lambda with captures.
 
You know, since I'm leaving, I was wondering if I should refactor/comment more some of my code
 
10:55 AM
(It's also a somewhat overloaded term)
 
0
Q: casting integer division into double in C

user1779429Why does the code double slope = (double)changeY/changeZ set slope to 0.0, when in the program I have, changeX = 20 and changeY = 10 (both ints)?

^^ How is the top answer correct?
Casting has precedence.
 
For instance since we don't have value_ptr I used a class with a shared_ptr in it where the copy constructor clones the pointees.
 
@Mysticial Dammit, "This is wrong." is one character short of the comment minimum.
This is not correct. — R. Martinho Fernandes 27 secs ago
 
Soon you will find yourself replacing "good" with "not incorrect"
 
Hehe, that question is a honey pot.
 

« first day (772 days earlier)      last day (4169 days later) »