« first day (600 days earlier)      last day (4340 days later) » 

8:00 PM
I hope only sane people are reading this.
 
By that logic, n/m + int(bool(int(bool(n%m)))) is twice as self-documenting.
 
@CatPlusPlus Too LISPy.
 
what happened to the no silliness requirement?
 
@jalf Yeah!
 
n/m + (int)((bool)((int)((bool)n%m)))
 
8:01 PM
@CatPlusPlus those casts make me moist.
 
n/m + static_cast<int>(static_cast<bool>(static_cast<int>(static_cast<bool>(n%m))))
 
now you did it.
 
#define INT(x) static_cast<int>(x)
:D
 
Parens are superfluous.
 
#define, really?
 
8:02 PM
@RMartinhoFernandes Ah, I see. You have a keen eye.
 
@RMartinhoFernandes #define INT x static_cast<int>x
 
I mean, either (M+N-1)/N or ceil(static_cast<float>(M)/static_cast<float>(N)) depending on preference. All the others just seem stupidly contrived. ;)
 
I'm surprised that nobody's mentioned M != 0 yet.
 
@Pubby hehe.
 
You don't need to cast both.
 
8:03 PM
@jalf Oh, I personally do the former.
 
@DanielKamilKozar It's implicitly required by requiring that M > N.
 
I was being silly before. I hope that using string literals instead of comments made that clear.
 
@StackedCrooked and by requiring that M is a number of bytes... ;)
 
oh wait nm
 
8:04 PM
if M > N, then what's the point of this whole discussion? :P
 
was thinking M >= 0
 
That one probably too.
 
15 mins ago, by StackedCrooked
If the max payload size of a packet is N bytes and I want to sent a chunk of M bytes. Assuming M > N, how do I get the number of required packets? Without being clumsy?
 
@DanielKamilKozar Whichever the point I learned a few cool tricks!
 
--M/N+1
 
8:05 PM
oh.
I got N and M mixed up.
 
@StackedCrooked Admit it, string literals as comments is the coolest.
 
@RMartinhoFernandes Yes, it is the coolest.
 
I've seen people do something similar to add descriptions to asserts. `assert(x != y && "x should not equal y"); :)
 
That one example is silly.
 
That's common for standard assert.
Because standard assert is poor.
 
8:08 PM
true
but it's a funny trick. :)
 
assert(false && "go away");
 
At my first job failing asserts were shown as message box popups. It started being abused as a debug logging utility. E.g. assert(!"Need to fix this!); etc.
 
Nice, they added three more games to the HIB.
 
Three?
Oh, SMB too.
Oh gawd SMB.
 
What's HIB?
 
8:10 PM
Now I have two Super Meat Boy copies.
 
user457812
I have three copies of Super Meat Boy >_>
 
Humble Indie Bundle.
 
user457812
I'm in it for Lone Survivor and Bastion now.
 
@CatPlusPlus I played SMB, but with a keyboard. My first reaction was "Mega Man X had smoother controls".
 
8:11 PM
Not so Humble in the recent editions.
 
I mean, you really have to time those fucking wall jumps perfectly.
 
user457812
SMB's fine on a keyboard as far as I'm concerned
 
@EtiennedeMartel I play exclusively with keyboard.
I think I got to the half of SMB, though. After a while, it's just annoying.
 
I heard it's better with an Xbox 360 controller.
 
user457812
I just wish the Mac port was playable
 
8:12 PM
@nil Hmm?
 
@CatPlusPlus eka, wiz, czy ppt? (:
 
well, that explains everything.
 
I wish the extra copies could be Steam-giftable.
 
@RMartinhoFernandes At least Bastion is.
 
8:15 PM
@Zeta It is?
 
Too bad Bastion is fucking great.
 
@RMartinhoFernandes this. I already have most of the good games off of that list, wish I could buy and share the dupes.
 
I own "two copies" Bastion, but I can't gift it.
 
sbi
Does anyone of you happen to know about a cloud service where one can store 130GB (and counting) data (all photos) without having to be a millionaire?
 
Oh, wait.
I see what you mean.
 
8:15 PM
What's sad is that Cobalt's multiplayer requires controller shenanigans.
 
@Zeta I could just give someone the key directly!
 
@sbi Would probably be cheaper to host your own server.
 
@RMartinhoFernandes: Yes, you could :)
 
sbi
@EtiennedeMartel It's for a dummy.
 
8:15 PM
Thanks, why didn't I think of that.
Glad I wasn't stupid enough to redeem it directly for naught.
 
@StackedCrooked I saw it as soon as it came out with as far as I could tell a good fansub :)
 
@sbi Oh gawd, that's probably more photos than I'll ever take in my entire life. And I plan to live forever.
 
@ScarletAmaranth Haven't watched it yet. Just starting downloading.
 
@StackedCrooked It's not that mindblowing tho :(
@StackedCrooked Some jibberish about the energy pill.
 
Ah crap!
 
8:20 PM
@sbi Dropbox has 100GB plan, but I guess you could ask for a customised one.
 
sbi
@RMartinhoFernandes No comment from me about that.
The fact is that this person has 7 years of digital pictures, mostly of kids. She has managed to get some of them deleted from her HDD and from two external USB drives at the same time. I have saved the day (year, actually) by reviving them, and put them on a brand new external disk she had bought. That is now on my desk, because it fails intermediately. I am now copying the data onto another brand new disk, but I am afraid she will somehow manage to blow this one, too, sooner or later.
 
That's >199$/year.
 
I hear Google Drive is cheaper than Dropbox
 
sbi
@CatPlusPlus Oh. I don't think this is covered by her "I'd pay anything!" Sheepish grin.
@Cicada Say!
 
Google Drive gives 100GB+ of storage?
 
I don't think getting a server would be much cheaper, VPSes usually come with small amount of storage, and cheapest dedicated server will probably more than 199$/year.
 
@Cicada but takes total ownership of anything you upload, according to their TOS
 
I haven't read the TOS
 
sbi
@jalf And other do not do that?
 
8:23 PM
@CatPlusPlus I +1 this idea though
 
Also dedicated server requires some maintenance skills.
 
@jalf Wait, that means they can just take it out if they want? Or am I misunderstanding what ownership means?
 
sbi
@CatPlusPlus But I am not going to maintain such a beast for her.
 
@RMartinhoFernandes I don't know about that, but it does mean they can do pretty much whatever they want- use them in advertising, etc.
 
sbi
Here's another one: wuala.com/en/pricing That's €119/year/100GB.
 
8:24 PM
right. have fun using my assembly routines, Google.
 
@sbi I think you might find some helpful answers on superuser.
 
@sbi Dropbox is cheaper, then.
 
Megaupload had unlimited storage, right? ;)
 
sbi
@CatPlusPlus Wuala has the advantage that all your stuff is encrypted at the client side, before being copied to the server. They have no way to access your data.
@StackedCrooked Yeah, maybe.
 
You can encrypt data without paying twice as much for storage.
 
sbi
8:26 PM
@RMartinhoFernandes For single files, though, wasn't it?
 
@sbi Right. Dropbox and Microsoft's thingy (SkyDrive or something?) do not claim ownership of your data. Google does, saying in short that they can use it if and how they want
 
sbi
@CatPlusPlus Of course I can! She's a dummy, though.
 
@sbi No, you could store how many files you wanted.
 
Ell
@jalf do you happen to know about ubuntu one?
 
Setup TrueCrypt container, tell her to double click and enter password, and it works.
 
8:26 PM
WTF, I already have a SkyDrive?
how exactly did that happen?
 
@jalf That's probably bad for pics of kids. I wouldn't want my kid's face used in ads.
 
there was quite a stir about it when those services were launched. Of course Google said "but that's just standard wording in our TOS. We'll never actually do that"
 
Wording: "When you upload or otherwise submit content to our Services, you give Google (and those we work with) a worldwide license to use, host, store, reproduce, modify, create derivative works (such as those resulting from translations, adaptations or other changes we make so that your content works better with our Services), communicate, publish, publicly perform, publicly display and distribute such content."
 
Don't be evil, unless really profitable.
2
 
@DeadMG MSN/Windows Live/Whatever they call it now?
 
8:27 PM
@RMartinhoFernandes probably
 
"The rights you grant in this license are for the limited purpose of operating, promoting, and improving our Services, and to develop new ones."
 
ah, found it
 
sbi
@RMartinhoFernandes There was no way to group them in folders, though, I think.
 
8:28 PM
@RMartinhoFernandes: Yes. "...promoting... our Services"
 
@sbi Oh, that I don't know.
@Zeta Even "operating". They provide AdSense.
 
How would one get a degree symbol into a char array?
 
What if they start a "stock photo service"?
 
Encode it?
 
  std::ostringstream strs;
  strs << degrees << "\u2103";
  text->SetText(strs.str().c_str());
 
8:29 PM
A wild code appears!
 
SetText takes a const char*
 
Unicode in C++ is fail.
 
@Drise Get a proper Unicode container instead of a char array.
 
@DeadMG Its a library call, not my fault.
 
sbi
According to this comparison, SkyDrive is the cheapest for 100GB. (Did you say they do not claim ownership of what their users upload, @jalf?) ... Oh wait, that's in £, while the rest is in US$. Damn.
 
8:30 PM
@Drise If the library does not respect Unicode then there is nothing you can do.
 
According to google.com/intl/en/policies/terms "Some of our Services allow you to submit content. You retain ownership of any intellectual property rights that you hold in that content. In short, what belongs to you stays yours." (still reading)
 
@sbi Yep, they don't
 
Lol @Zeta
 
ah "When you upload or otherwise submit content to our Services, you give Google (and those we work with) a worldwide license to use, host, store, reproduce, modify, create derivative works (such as those resulting from translations, adaptations or other changes we make so that your content works better with our Services), communicate, publish, publicly perform, publicly display and distribute such content."
 
Drise uses Unicode, it's not very effective.
 
@sbi: here's a bit discussing the SkyDrive TOS: ghacks.net/2012/04/25/…
 
@sbi It's still cheaper.
 
> Except for material that we license to you, we don’t claim ownership of the content you provide on the service. Your content remains your content. We also don’t control, verify, or endorse the content that you and others make available on the service.
 
sbi
@RMartinhoFernandes What's the £/$ rate?
 
> You understand that Microsoft may need, and you hereby grant Microsoft the right, to use, modify, adapt, reproduce, distribute, and display content posted on the service solely to the extent necessary to provide the service.
the second part is a bit weaselly, but still better than Google, with the "solely to the extent necessary" bit
 
8:32 PM
WolframAlpha.
 
It's Google's 48€ vs M$'s 40€.
 
sbi
@jalf That sounds actually quite reasonable. Thanks.
 
@jalf That might be the cloud thing.
 
@sbi A tad above one and a half.
 
8:34 PM
@jalf google's explicitly says "The rights you grant in this license are for the limited purpose of operating, promoting, and improving our Services, and to develop new ones." :( I think they might have to address that
 
sbi
@RMartinhoFernandes Thx!
@jalf Ha, look what else they got: ghacks.net/2012/04/24/… I didn't even have amazon on my list.
 
[Window Title]
Microsoft Windows

[Main Instruction]
Your computer is low on memory

[Content]
To restore enough memory for programs to work correctly, save your files and then close or restart all open programs.

[OK]
 
I'm turning into a MEF expert. This is not intentional.
 
Chrome. shakes fist
 
@EtiennedeMartel AFAIR, MEF is cool.
 
8:35 PM
And I haven't even disabled the swap, only gave it 512MB instead of 3GB.
 
Woah major lag.
 
@CatPlusPlus You gave it only 512MB of page file?
 
Windows is supposed to operate where the page file is at least equivalent to physical RAM
 
Swapping out annoys me greatly and I prefer Chrome to crash and burn.
 
sbi
8:36 PM
@DeadMG When you have 24GB, then that's fine, innit?
 
I wondered why it got so quiet
 
@sbi lols
 
When I finally get that 16GB, I'll disable it completely and forever.
 
Reminds me of one of our PCs. It had a terrific need for log files, the kernel.log and sys.log were both about 240 GB...
 
@Zeta lolwot
 
8:38 PM
@DeadMG: Ubuntu 12.4 running on some new Dell PCs. But this PC was a little bit special :D
 
Everything works a lot faster since I lowered the page file size.
 
Does [Left a <- xs] create a list with every Left from xs?
 
@DeadMG It seems to rarely even use it now.
 
@sbi Ah, interesting
 
I hate list comprehension
 
8:39 PM
@RMartinhoFernandes Eh. I have a 1TB HDD so I just chucked 12GB of swapfile at it. Still got 700GB free so what do I care?
 
@CatPlusPlus you do know that Windows swaps like shit if you override its default pagefile setting ,right?
 
@Pubby Me too.
 
@DeadMG That you do have to wait for stuff to swap in?
 
Alright, google's Privacy Policy page says "We do not share personal information with companies, organizations and individuals outside of Google unless one of the following circumstances apply:" which seems more applicable to google drive than the other bit, which was presumably about things like youtube.
 
@jalf I only care about noticeable experience.
 
8:40 PM
No clue why, but it seems to go "oh, if you told me to use X GB of pagefile, it must be important. I AM NOW GOING TO PAGE OUT ALL THE THINGS, ALL THE TIME"
 
And it works faster.
 
@RMartinhoFernandes I do? Since when?
 
Auto had 3GB, I set 512MB.
 
whereas if you just leave it at default ("Let Windows manage..."), it only ever swaps anything out when it actually needs to (ie. never)
 
Not really.
 
sbi
8:40 PM
Wow, these guys give away 150GB for $4.95/month. But I had never heard of them before, and who knows whether they'll still be in business 5 years down the road?
 
In my experience, yes really
 
@DeadMG Well, the cat does. (I don't either, that's why I made that remark)
 
@sbi Is it known? No? Don't trust it.
 
@sbi More relevantly, who knows if they implement proper backup procedures? They probably just skimped on them to save cash.
@RMartinhoFernandes That's his fault for not going "LOLWOTEVER" and giving it as much page file as it wants
 
sbi
@DeadMG They will be much better than the woman who is going to use it. :)
 
8:42 PM
More swap space means more swapping out, and I do. not. want. it. to. swap. out.
 
@DeadMG When I had 2GB RAM I suffered from that too, with default page file settings.
 
It's really simple.
 
@CatPlusPlus No, it does not
 
sbi
@CatPlusPlus Yeah, that's my sentiment. If it was me, I'd know how to spread copies, but she would fail.
 
Windows always seemed eager to swap out anything I minimized.
 
8:42 PM
Yes, it does.
 
It means whatever Microsoft intended it to mean
 
@sbi en.wikipedia.org/wiki/I-drive makes them sound somewhat reliable
 
which is kind of complicated, and certainly not "more pagefile == more swapping"
 
I wouldn't be lowering swap space if it didn't.
I have to deal with half of the OS swapped out by one RAM hogger constantly.
 
sbi
@MooingDuck Wow, they've been in business for 15 years.
 
8:43 PM
@RMartinhoFernandes 2GB is pretty damn low these days.
 
I have 4GB and it doesn't work very well.
 
shrug I just know that if I let Windows manage it, my harddrive is actually spun down and suspended most of the time Occasionally, if I'm playing a game, it'll spin up to load a new level or such, but other than that, it's completely spun down and inactive
 
Especially with Chrome.
 
If I set it to any other value I've tried, it's regularly swapping
 
Never seen that happen.
 
8:44 PM
So as far as I'm concerned, it's not worth playing with that setting
 
@sbi: Are you sure? en.wikipedia.org/wiki/…?
 
Less swap means less virtual memory, and less virtual memory means overcommiting allocations fail faster.
 
Can we reopen this for having the possible duplicate not be a duplicate;
-1
Q: What's the real ”point” of pointers?

Brendan Possible Duplicate: What are the differences between pointer variable and reference variable in C++? I've programmed in Java quite a bit, and have dabbled in C++ before. I've read about pointers in various C++ books, and done the various examples in books. I understand the pointer ba...

 
@CatPlusPlus Uh, I'm pretty sure that the virtual memory address space is the same size no matter what swap you have.
 
Windows doesn't overcommit...
 
8:45 PM
Which means RAM hoggers die instead of killing performance of everything else.
 
Linux does, Windows doesn't
 
sbi
@Zeta Ouch! Good find.
 
(it's a stupid question that I've seen before, but the duplicate makes no sense)
 
@Zeta ooh, clever. That explains why the wiki doesn't mention anything after 2000.
 
@DeadMG Address space != available virtual memory.
 
8:45 PM
anyway, I'm heading to bed. Have fun!
 
@sbi: Though they could still be the same: idrive.com/online-backup-company.htm
 
Allocations don't fail on Win7 if you still have swap available.
That's overcommit.
 
@jalf nn
 
@Zeta "Certain assets were also acquired by Pro Softnet Corp which also offers services in the field of online storage. " It's a different company, just bought their stuff.
 
sbi
@Zeta Well, still. I have much more confidence that a major player might still give me access to my data in 5 years than some company nobody had ever heard about.
 
8:47 PM
@Pubby: Have a look at the last sentence: "I mean, in what situation would using pointers be more beneficial than just passing by reference (like in Java?)". This explains the duplicate.
 
@sbi the company that own's idrive.com has no wiki page
 
@Zeta Oh definitely, but it's not an 'exact duplicate'. I'm sure the answers would be different.
> Pointers are in the heap. References are on the stack.
 
if (x - y != 0) or if (x != y) or if (!(x - y))?
 
@Pubby Plus, I'm pretty sure that "reference" is C++ reference, whereas he means "reference" as in "Java reference"
@Drise Always !=.
 
If you want to say "if x is different than y", then just say it.
Everything else is silly.
 
8:50 PM
How is the best / fastest way?
 
@Pubby Gosh.
@Drise What are you trying to write?
It's impossible to give the best option if there are no goals.
 
Goal: if (x - y != 0)
 
That's not a goal.
 
"if x is different than y"?
 
2 mins ago, by Cat Plus Plus
If you want to say "if x is different than y", then just say it.
 
8:53 PM
Goal is to write that in the best manner
 
if (x != y) is the best manner.
Because it spells your intent.
Everything else is silly.
 
Twitter y u no OAuth 2.0.
 
And doesn't fail on corner cases.
 
Sorry folks, I'm lagging badly.
 

« first day (600 days earlier)      last day (4340 days later) »