« first day (889 days earlier)      last day (4053 days later) » 

12:00 AM
@sehe huh, I tested sizes 4-6 and i -10 to 10. I'll have to figure out why that case fails
 
@Xeo Indeed, I have just weighed in on this.
 
Carbohydrates, proteins, fats, water, vitamins, mineral salts, PHP
 
@sehe I just tested sizes 1-10 and i -100 to 100... somehow our results differ.
 
@MooingDuck i guess size signedness
 
heeey....
@sehe your test wasn't passing the size! coliru.stacked-crooked.com/… HAHA :/
 
12:02 AM
@MooingDuck what. wait. look again/
 
@sehe I'm so confused, you're right, it was a global and should work
 
@MooingDuck I refactored that later: coliru.stacked-crooked.com/…
@MooingDuck lemme check my method :)
 
user1357851
@MooingDuck size - ((- p - 1) % size) - 1 != (p % size + size) % size
 
user1357851
even without my coffee I knew that
 
@MooingDuck Well, blimey. I can't reproduce it anymore either. I honestly don't know what happened. Sorry there. It makes sense to me that your approach should be equivalent to (A%B+B)%B anyways, so, I'm happy
 
12:07 AM
@Telkitty check again :D
 
@Telkitty use your coffee next time
 
How do I make a smaller range with two given integers?
 
@HangBot you ask very strange questions that make no sense at all
 
@HangBot By trolling more. We will reduce any range you had by ignoring you.
 
That's Zirak's javascript bot!
 
12:08 AM
@MooingDuck lol, indeed
 
Jawascript?
 
Ell
Zirak?
 
@Telkitty The lack of understanding is strong with this one.
 
Zirak's bot is still named SO Chatbot, so someone forked the code and put it more rooms
 
@MooingDuck It's the bot that Zirak coded , anyone can use it. It's free on github, all you need is a computer and a browser.
 
12:13 AM
Is there anyway to make grabbing the console scrollbar NOT freeze it?
 
Let's see if I can kill it
 
@MooingDuck It's only in two rooms though
 
There is also a free Rebol bot, and a C# bot people built.
 
@CCInc: I don't think the bot belongs in this room. or at least, make it stop with the inane questions
 
right
 
12:14 AM
cc/die
 
@BenjaminGruenbaum Registered; need 1 more to execute
 
so I made a large number of interconnected additions to my compiler to implement some functionality
let's all bet on how long it takes for the compiler to fall apart
 
If one more person types cc/die , the bot will stop, it's how it works
 
cc/party
 
@melak47 Command party does not exist. Did you mean: parse
 
12:14 AM
cc/die
 
@MooingDuck Registered; need 0 more to execute
 
/facepalm
 
cc/overkill
 
cc/gullible
 
@melak47 Command overkill does not exist.
@sehe Command gullible does not exist.
 
12:15 AM
cc/damn you're fast
 
cc/cry like a little girl
 
@sehe Command damn does not exist.
@DeadMG Command cry does not exist.
 
hehe
 
cc/help
 
Ell
cc/line
 
12:15 AM
@melak47 https://github.com/Zirak/SO-ChatBot/wiki/Interacting-with-the-bot
@Ell Command line does not exist. Did you mean: live
 
@sehe I helped with the bot, I know it has a die command, I thought it required ops though
 
user1357851
size - ((- p - 1) % size) - 1 = size +p%size + 1%size -1
 
user1357851
(p % size + size) % size = p%(size^2) + 1
 
cc/metosuckyourdick,dignity
 
@DeadMG Invalid command /metosuckyourdick,dignity
 
12:16 AM
oh well
cc/die
 
@Telkitty What's that supposed to indicate. What types are p and size? You do realize we're talking C++ here, right?
 
Ell
cc/kill
 
Oh. Hey Ell.
 
user1357851
@sehe + / - difference? OIC
 
Ell
Hey
 
@Telkitty If that's a question, you succeeded at making it impenetrable
@MooingDuck Anyways, I'm through. We have the simpler version, in my wording and your more verbose wording. Anyone who still wants to exchange random notes about this, go in peace
cc/norris
 
@sehe he died
 
he chucked
 
You killed him.
 
We killed him real good.
 
user1357851
12:20 AM
@sehe I searched for your function name: bartek, all I got is this:
 
user1357851
:For alternative meanings of Bartek, see: Bartek (disambiguation). Bartek (Polish: Bartholomew) is an ancient oak tree in Poland. It grows in Zagnańsk near Kielce in the Świętokrzyskie Mountains. Its age, previously estimated at up to 1200 years, has recently been established to be 650–670 years, with a corer used to extract a sample for a ring count. An accurate count is impossible, as Bartek's interior has hollowed with age. There are several older trees in Poland, both oaks and yews (some over 1000 years old), yet none of them has matched Bartek's fame. The 30-metre tall Bartek measu...
2
 
ARGH
I implemented a whole bunch of stuff, and it went off without a hitch.
until Clang decided I didn't need the body of std::string::operator==.
 
@sehe Don't even try to reason with... Whatever that is.
 
@BartekBanachewicz so, are you an ancient, sentient tree?
 
@DogPlusPlus I hear that's a she :P
 
12:22 AM
@CCInc he was spouting random nonsense
 
Stupid bot.
 
user1357851
When I first saw the term Bartek tree, I thought maybe it is a new search algorithm, like a black-red tree. How wrong I was!
 
@MooingDuck some other people here can be glad that killing them is not that easy :p
 
'An accurate count is impossible, as Bartek's interior has hollowed with age' awesome!
 
Imagine cutting it down.
I'm just kidding.
But seriously.
 
12:25 AM
I'm off to bed, dreaming of chainsaws...
 
@Telkitty Barting up the wronk tree
5
 
Me too, I'm becoming hostile in my sleepy state.
 
England won 8:0. The Doombar was excellent. Slaughtered, going to sleep.
 
Ell
Sleepyy
 
user1357851
@DogPlusPlus Tell me what do you see below:
 
user1357851
12:30 AM
 
@Telkitty your're a kitty!
 
user1357851
^_^
 
You know what’s gay? Homosexuals.
 
user142019
Code y u fugly.
 
12:46 AM
Like the visual?
 
I wrote some C++ today
 
user1357851
@Zoidberg change the font?
 
user142019
> Map.find: element not in the map
 
user142019
Maybe, Haskell, just maybe, it would be useful if you told me which element I was looking for.
 
user142019
1:05 AM
*** Exception (reporting due to +RTS -xc): (THUNK_2_0), stack trace:
  Data.Map.CAF
 
user142019
lol dat stack trace
 
user1182183
Well, um anyone?
 
you really have an annoying habit of dumping very domain-specific questions here
 
user142019
Hurrah.
 
user142019
Adding types to expressions workz.
 
user142019
1:14 AM
That was easy.
 
Xeo
@Mysticial: Nanoha Movie 2nd is out, and it's awesome.
 
@Xeo You watched it already?
 
Who's dumping questions?
 
Xeo
Aye
 
I only see it subbed by HorribleSubs.
 
1:16 AM
Zoidberg's just ranting lunatically
 
I'm waiting for a proper 1080p release.
 
user142019
10 mins ago, by Gam Erix
Well, um anyone?
 
Xeo
@Mysticial The subtitles are from the Blu-Ray
Aka from the official release
 
@CatPlusPlus If you're asking I assume it's because you plonked him
 
@Xeo But I need my flashy OP and ED subtitles.
 
Xeo
1:16 AM
Also, Commie has 1080p out, no?
@Mysticial What OP? What ED?
 
@Xeo oh?
that was fast
 
Xeo
It's a friggin 2.5h movie!
 
Opening and Ending?
 
Oh that guy
 
I still need to watch the Madoka movies.
 
1:17 AM
@Xeo BTW I broke 40s on Hardest
 
user142019
My compiler crashes on type errors. xD
 
Xeo
Tche
@Mysticial As I said, no translation needed to be done.
 
I'll DL commiesubs
I have Dokisubs for the first movie.
 
Xeo
Movie 1st also had English subs on DVD & Blu-Ray, IIRC.
 
@Mysticial hey, sorry for all the questions, but can i force the compiler to treat a pointer as 128-bit aligned once i know it is?
 
1:22 AM
@StephenLin I'm not sure. If so, you'd need to do it with compiler hints.
 
@Mysticial i've established that it is within a if-block but i don't think the compiler is taking advantage of it well enough
 
Xeo
alignas?
Oh wait, that only allows up to std::maxalign_t, IIRC
 
You might be able to trick it with a union with __m128. But that's dirty and there's no guarantee.
 
Xeo
Anyways, time to sleep.
G'night
 
@Xeo night
 
1:23 AM
@Xeo, I don't think it'll help, that's for aligning a variable you're declaring
@Xeo but this is a pointer to an existing array
ok, bye @Xeo
 
0
A: Bitwise and in place of modulus operator

user2201269Please note also the performance implication of the modulus http://brunobonacci.wordpress.com/2013/03/23/how-to-calculate-the-reminder-with-bitwise-operations/

^^ late answer to old question
Is that even an answer?
 
user142019
Flagged as not an answer.
 
user142019
Should be a COCKMENT.
 
Error 404: Funnyz not found
 
1:47 AM
Flagged as spam
Because it's his own blog.
 
user142019
T_T
 
@Rapptz Did you use a custom flag?
 
no :(
 
Is it a bad answer because it is his blog?
 
It's easy to tell
 
1:48 AM
Then I'll add a custom flag. Because if it's not obvious that it's spam, it might get declined.
 
user142019
OH NO SOMEBODY LINKS TO HIS OWN BLOG POST ABOUT SOMETHING THAT IS COMPLETELY RELEVANT
 
user142019
LET'S FLAG IT AS SPAM
 
@Zoidberg As his only answer
 
user142019
So?
 
1:49 AM
He has 1 rep.
This has been beat to death in meta
 
As in, the link might be bad someday, or?
 
user142019
He just joined.
 
@Pawnguy7 That too.
Go look at SO pre-2009
 
Is there a specific way to go through them by date?
 
Not really but when you google most of the questions you get are from 2008-2009ish
and then you'll find a lot of link only answers in which the link expired
>_>
 
1:50 AM
The only such cases I find of not expired links, but other deleted answers.
Could you link me to a metatopic regarding why you find this bad, though?
 
@Mysticial Username is Bruno Bonacci and so is the name of the blog
 
lol
 
@Zoidberg At the very least, it needs disclosure.
I've linked to my own website a few times, but I've always disclosed it.
 
Yeah exactly. It's okay to provide some background, some info and then go "For more info, I've written about it {link here}"
 
1:56 AM
I see.
In this case,I would say, yes, it needs disclosure, and a bit of background would not hurt.
On second thought, is it me or is this question over a year old since last answer?
 
@Mysticial I give up
@Mysticial this is too frustrating
 
lol
oh well
 
@Mysticial no matter what i do, someone's just going to find some random corner case that my optimization breaks anyway and force me to figure it out what degenerate situation caused it
 
@StephenLin Don't try to target all cases. Just the common cases is good enough.
 
@Mysticial but the test suite has no notion of common cases
@Mysticial that probably needs to be fixed first
 
2:06 AM
@StephenLin Then what are the common cases that are used in production?
 
it's all large heterogenous data sets provided by the user
performance is noticable, so it matters
but the tests just test small primitive operations on randomly generated data
 
You could cheat and try to detect which test suite it is and call the "specially" optimized one for it. :P
 
haha
no, it's ok, i'm not even getting paid for this so it's not a big deal...no need to cheat
 
My mom called me and asked where my Dad is. I told her to call my Dad who's in the room next to me because my door is closed and I didn't want to shout.
 
2:19 AM
Do you people use double(3) for type casting or static_cast<double>(3) ?
 
double(3) for me
i only use static_cast for upcasts and downcasts, not conversions
i don't even think conversion and casting should use the same syntax, personally
 
I use static cast most of the time
unless im being lazy
 
@StephenLin stupid question, what's the difference between conversion and casting....or is it the obvious where conversion is permanent and casting just changes the value in that instance
 
@SteveJobs John is lonely.
 
@Borgleader You should be forced to swallow molten iron for being so lazy.
 
2:24 AM
@CCInc how do you know ?
 
2
Q: Type Conversion/Casting Confusion in C++

EllCan somebody explain to me, what is Type Conversion and what is Type Casting? When should I use each of them? I'm sorry if this is an obvious question, but I'm new and come from a ruby background and I'm used to "to_s" and "to_i" and the like! Thanks in advance, ell

@SteveJobs I chat with him on skype
 
@CCInc lol
ok
 
@SteveJobs He's in a very bad mood
 
@SteveJobs i mean casting as changing the type of a pointer/reference without changing the data (possibly with a pointer adjustment, but that's it)
 
I can't do much
cheer him up, will you?
 
2:25 AM
@CCInc what am i supposed to do?
 
@SteveJobs conversion is changing one value to another in some specific way depending on the two types...either with a built-in conversion or a user-defined one
 
@SteveJobs Just cheer him up SOMEHOW
 
@SteveJobs i don't know how formalized those terms are, but that's how i use them
 
@CCInc i'm busy with c++, i just started learning it today
 
2:26 AM
@SteveJobs Use C#.
@SteveJobs Will you chat wiht him on MSN?
Or in a room?
 
Did someone just tell Steve Jobs to use C#?
 
@Mysticial Yessir, that's me.
 
@Mysticial "Did someone tell Steve Jobs what to do?" ftfy
 
@CCInc Xcode for me
 
@SteveJobs Hi!
 
2:27 AM
@CCInc i'm being forced to learn C++
@JABFreeware hi
 
Hey, how do I get the current system time in C++?
 
@SteveJobs weren't you Amber at some point? :D
 
Im in a slightly depressed state. I spent a lot time writing a perfect english paper for a crazy instructor. THe paper was worth 10% of my total grade and she gave me a C
 
or is that shush shush
 
@StephenLin why would i be Amber if i can be Steve jobs ?
@JABFreeware really ? what was it on ?
 
2:29 AM
@SteveJobs A crazy class: literature
 
@SteveJobs lol, ok...well, i recognize your old questions
@SteveJobs so unless I'm going crazy
 
@StephenLin i see
 
user1357851
@SteveJobs will you be the robot girl? hdmotori.it/wp-content/uploads/Tina-Robot-girl-R.jpg
 
@JABFreeware aww...that sucks
 
@SteveJobs are you going to claim that I'm crazy?
 
2:30 AM
@SteveJobs I know. I'm rather upset ;( SIGH
@SteveJobs So why are you learning C++?
 
@Telkitty ?? weird shit man
 
@JABFreeware ===^
 
user1357851
@SteveJobs why? At least it is more alive than Steve Jobs
 
user1357851
And is hotter
 
user1357851
Possibly calculate maths faster
 
2:32 AM
@JABFreeware i would definitely gone with C# or Java but i'm doing computer science in college and I want to skip a year of C++, and that's the language they offer for the first 3 courses
 
@SteveJobs where do they actually teach C++ in college?
@SteveJobs legit question, i don't actually know
@SteveJobs I figure it's usually either Java or an academic language like Scheme
 
@SteveJobs wow! Your in college now?
 
@SteveJobs nothing actually, you know, both useful and actually a good language
 
@JABFreeware no high school, but I researched the college I want to go to and that's their curriculum
 
@SteveJobs ah I see! cool
 
2:34 AM
IT WORKED
mostly.
 
@CCInc then it didnt work
either it works or it doesnt.
 
@JABFreeware what didn't work ?
 
@SteveJobs you should go to a school that teaches from SICP (mitpress.mit.edu/sicp/full-text/book/book.html) and learn scheme :)
 
@SteveJobs no idea! Just bugging him. lol
 
@StephenLin I applied to MIT, wait listed.
@StephenLin SAT scores were too low i think
 
2:36 AM
@JABFreeware "lol". Ha.
 
well, they're not the only ones
oh, your a senior already?
 
@SteveJobs Is it rude to ask what you got? I'll share my SAT scores.
 
already applied?
was going to offer advice otherwise
MIT isn't the only school that uses SICP though, I think a lot do
 
@CCInc yes it is! :)
 
That's right.
 
2:37 AM
@CCInc yours are probably based on the old 1600 scale though
 
I'm in middle school.
And took the SAT.
 
besides as famous a Steve Jobs is, you should be able to google it
 
@CCInc 2150 - math: 800, reading: 750, writing - 600
 
I'm sure its posted somewhere
 
@CCInc well, unless you're younger, I don't know how old you are
 
2:38 AM
@SteveJobs Damn. My highest was like 600.
IM IN MIDDLE SCHOOL THO
Pretty good.
 
@CCInc haha definitely
 
I'm from Germany. I don't know what these scores mean :S
 
@SteveJobs that's definitely good enough for MIT
 
@StephenLin but 95% of people applying have the same scores lol
 
did you apply to Harvard btw? just curious
 
2:39 AM
@SteveJobs just too many people in the college market ;(
 
go Crimson
 
@StephenLin Harvard REJECTED
 
Wat? I get a different hash each time!!!
Y U NO WOERK
 
That's too bad, they're making a point of trying to get more female engineering and CS students
I could have offered tips if it wasn't already too late
 
@StephenLin I got in to cornell and NYU, most likely going to NYU, closer to home
 
2:41 AM
NYU Courant is good
 
@SteveJobs So how is your C++ going?
 
I took some classes there (I'm in NYC)
 
I've heard its a hard first language, from a high level language
 
Cornell is good though, you should consider it
 
@StephenLin thanks
@JABFreeware i just started
 
2:42 AM
@JABFreeware it doesn't have to be too hard. if you didn't do C first :)
 
@melak47 lol, I already know C. I personally don't find C++ really hard so far. Find time to learn it is the hard part
 
@JABFreeware you're damaged goods, then :)
 
if n = 2, then in C++ variable = 2 *(n++) gives you 4 but variable = 2*(++n) gives you 6 what the fuck ?
 
@SteveJobs postifx ++ and prefix ++ are different :)
 
post and prefix? :D
 
2:44 AM
@Pawnguy7 lol
 
postfix returns post-increment value, prefix returns pre-increment value
or am I mixing left and right again :)
 
but still increments it.
 
thanks, no wonder c++ is a bad first language, python was so simple
 
@SteveJobs just write n += 1, pff :p
 
@SteveJobs C# is really nice. Thats poor they have you go through such a linear course
in the degree
 
2:45 AM
in C++, I try to focus on programming concepts but instead spend more time learning syntax
 
Do you have no programming experience?
 
@Rapptz Steve Jobs is new to programming
 
I am yet to come across a language that didn't have ++ actually.
 
Python doesn't have it
 
python, i did some recursion on steroids today.
 
2:46 AM
Never used python. I want to keep my braces, thank you.
 
Towers of Hanoi was a total brain fuck
 
I heard it is a good place to start though.
 
@SteveJobs What is "Towers of Hanoi"?
guess I'm a noob
:(
 
The Tower of Hanoi (also called the Tower of Brahma or Lucas' Tower, and sometimes pluralised) is a mathematical game or puzzle. It consists of three rods, and a number of disks of different sizes which can slide onto any rod. The puzzle starts with the disks in a neat stack in ascending order of size on one rod, the smallest at the top, thus making a conical shape. The objective of the puzzle is to move the entire stack to another rod, obeying the following rules: * Only one disk may be moved at a time. * Each move consists of taking the upper disk from one of the rods and sliding it...
 
@JABFreeware you'd have to google it, it's THE classic recursion problem
@JABFreeware i can show you my code
 
2:49 AM
I know the game... not how to use recursion to do it though.
 
@SteveJobs sure. Here or on MSN?
 
@JABFreeware i can show it where ever you want
what's that github link
 
@SteveJobs github.com :)
how bout MSN
 
Anyone here willing to help me with some strange crypt behaviour?
 
@JABFreeware ok
 
2:50 AM
@CCInc no good in that area. sorry man!
 
@CCInc what is it, do you hear voices?
 
@melak47 what kind of voices?
 
how should I know, he's the one with the crypt and the problem
 
I'm getting inconsistant results
with the same input value
 
"That awkard moment when..." ok, maybe not.
 
2:53 AM
must be some fine encryption then. but decrypting might be tricky :p
 
It's a hash
SHA256
string sha256(char str[])
{
    unsigned char digest[SHA256_DIGEST_LENGTH];

    SHA256((unsigned char*)&str, strlen(str), (unsigned char*)&digest);

    char mdString[SHA256_DIGEST_LENGTH*2+1];

    for(int i = 0; i < SHA256_DIGEST_LENGTH; i++)
         sprintf(&mdString[i*2], "%02x", (unsigned int)digest[i]);

	return mdString;
}

		ofstream file;
		file.open("c:\\cplog.txt", ios::app | ios::out);
		std::time_t time;
		std::time(&time);
		file << "password: " << sha256((char*)password.c_str()) << "\n" << password.c_str() << "\n" << time << "\n";
I get a different hash almost every tiem
but the password string is the same
 
did you make that yourself?
 
Make what? That code?
 
Yes
 
No
 
2:59 AM
string sha256(char str[])
{
    char mdString[bla];
    ...
    return mdString; // this works?
}
 
not that I know of
 

« first day (889 days earlier)      last day (4053 days later) »