« first day (1615 days earlier)      last day (3341 days later) » 

6:00 AM
If LDL is a form of fat transfer and you kill it, you can have them develop a fat-related problem.
bye Blob.
 
I never said remove it
 
You said reduce it.
 
@Blob Seems like it. A quick Google search turns up: cholesterol-and-health.com/Vitamin-D.html
 
Reduction can be bad. It is in the body for a reason.
 
@JerryCoffin is it feasible? lol
 
6:00 AM
and too much of it is the issue
 
@JerryCoffin But WHICH chelestrol?
 
i doubt my teacher will be impressed
 
so reduction is the goal
 
"go out in the sun"
and then you face skin cancer
 
how long did you have for this assignment?
 
6:01 AM
@MichaelMitchell realistically, one night. technically 2 weeks.
 
Either 1 reduce the amount of fat that needs to be delivered or 2 reduce LDL through a method.
 
yeah
you barely had enough time
 
2 can involve either natural or artificial methods.
Use nano-bots if you so desire.
 
and guys, let me go for like 15 mins ;_;
 
6:02 AM
gonna go on wikipedia hunt
 
@Blob Like I said, to be original you'd need to include something like an artificial replacement that helped that conversion similarly, but (preferably) with minimal chance of skin cancer and such.
 
WE ARE HELPING
 
@Blob Free yourself. We are words on a page.
 
and dings in your ear
so ldl is consumed to make vitamin d?
what are the other components to the reaction besides sun?
 
@MichaelMitchell We're a C++ page, not a genetic chatroom.
 
6:04 AM
T________T
 
Create a file with this content:
This sudoku grid
is stored at
http://en.wikipedia.org/wiki/Sudoku_solving_algorithms

{12X,45X,78X}
{4X6,7X9,1X3}
{78X,12X,45X}

{X34,X67,X91}
{5X7,8X1,2X4}
{89X,23X,56X}

{X45,X78,X12}
{6X8,9X2,3X5}
{91X,34X,67X}
I must create a parser for this.
 
ok
scanf?
 
@MichaelMitchell This is C++.
 
Plus scanf is not very good.
It's too raw.
 
6:06 AM
it is good for specific formats
 
> Also keep in mind that LDL particles carry many fat molecules (typically 3,000 to 6,000 fat molecules per LDL particle); this includes cholesterol, triglycerides, phospholipids and others.
i was wrong earlier
 
@Blob Why don't you ask reddit?
 
so it does bind to fats
 
@Cinch "hey reddit, how do i cure a disease?"
-.-
 
6:06 AM
have you tried dickbutt?
har har har
 
@Blob Ask for methods of eliminating LDL or a ELI5 of LDL.
 
meh
i still have like 3-4 hours
until i need to do "wake up" stuff
like preparing to go to school
 
ok, so from what I read, VLDL is converted into LDL in the bloodstream.
what if we find something to bind to the VLDL first
 
why are you guys to eager to do my hw
if this was a c++ question i'd get kicked
 
HA
problems are fun to solve
oh
I have a friend working on his phd in biotech or something lame
imma try and get him here
 
6:11 AM
really
-.-
i think i should probably do this myself.. it is a hw
 
hes prolly gonna be like
no
then do it
 
i'm not at the desperate point yet. that's 4 AM
i am..
 
also, you have involved us so much that it is now your responsibility to inform us of the outcome of your assignment
 
@MichaelMitchell i'll have to work on this until near the end of may
but this specific paper will be returned hopefully in a couple of weeks
 
my friend says that getting a drug through the FDA costs 1.8 billion USD, you should give up
 
6:18 AM
@MichaelMitchell lol
 
here is one
my friend said prevent that person from having offspring so the gene cannot be passed any further
 
@MichaelMitchell is your friend hitler?
 
literally
I mean, it works, right?
did they specify if the cure has to be for an individual or a population?
because that could be important.
also, does the setting for the 'cure' now know as the 'final cure' have to be set in a democratic society such as the USA?
 
6:36 AM
^ Everybody gets this wrong.
 
dat insert
 
std::string constructor requires count first then character.
but it still compiles if you mix them up
 
oh lol
the insert is valid?
 
The insert looks wrong too.
I should check.
 
yeah I don't think you can insert a vector as the first value
 
6:38 AM
Yeah, insert always takes an iterator as first argument.
 
all kinds of derp
 
@StackedCrooked I know I do.
It was actually the source of one of my bugs a while back.
 
It helps to imagine that vector and string were designed to behave like array.
int n[10]; vector<int> v(10); string s(10); // length of 10
Anything extra comes after that.
 
@StackedCrooked Yeah, I have to look the order of the arguments each and every time again. :)
 
6:43 AM
basic_string(size_type count,  CharT ch);
basic_string(const CharT* s, size_type count);
// ^ evil
 
Xeo
mornin
 
morning
 
7:14 AM
BEHOLD!
Sudoku file parser!
(Is my code bad?)
 
holy nesting batman
 
Is it bad?
 
why do you not skip ws?
check file fail before close
maybe not actually
I am not sure about the behavior in that case...
 
@Cinch At least IMO, it's not particularly great. First of all, I would not pass a file path to a constructor, and have that read the file (yes, at one time I did that too, but it was a long time ago, and I've learned better since). I'd have the constructor do exactly that: construct an object. operator>> should extract an object from a stream.
 
@JerryCoffin Uh wha.
I'll repost the new code:
 
7:22 AM
Other points: i and j aren't good names for variables that have quite a large scope like these do. I'm pretty sure you can come up with more meaningful names for them.
 
@JerryCoffin row and column.
easy.
 
@Cinch Yes, those would be much better.
 
I already split the constructor.
 
@Cinch Better, but I'd still prefer the loading in an operator>> (though others clearly disagree about that). Personally, I'd probably do it by writing a custom ctype facet, but if somebody's going to grade this as homework, that's likely to confuse the hell out of them.
 
@JerryCoffin I also have group members, btw.
And I refuse to use C in this case.
 
7:30 AM
@Cinch Not sure what you mean by that. Do you mean other people you're working with?
 
@JerryCoffin Yes and they know nothing about fstream and probably are extremely rusty at File I/O
I'm in a C++ beginner's class.
For Comp. E and our final project is to create some sort of thing:
I chose the sudoku solver.
 
@Cinch Hardly matters--even your teacher probably doesn't know about writing custom ctype facets.
 
@JerryCoffin I just googled this. I can't use this.
I don't even know how.
 
With that ruled out, the next choice would be to code it up a finite state machine as a table.
 
@JerryCoffin Why would you use a finite state machine?
All I need is a file to load and a solver.
I already made the parser.
 
7:34 AM
@Cinch Because nearly every parser is really an FSM in disguise--but by removing the disguise you frequently make the parsing considerably cleaner. You also learn a technique and approach to such problems that'll be extremely valuable when you run into more complex versions of the same basic idea.
@Cinch You wrote it, but (IMO) it's open to some improvement.
 
@JerryCoffin True that...
Actually, a Finite State Machine makes much more sense now that I think about it.
Separates functionality into modes...
The only problem is what happens when I end up with too many.
Plus it's a very simple parser that only really have two states.
Reading a row or not.
(Okay more than two if we consider errors in syntax and other types)
But it's simple enough to fit into one CC file and one H file.
 
@Cinch I'd encode it as more states than that. For example, within a row you have at least three states: before you read the {, you just skip characters (e.g., at least as I read things, with input like 1{, the 1 should not be stored. When you read the { you transition to a state where you read digits+'x' and store them (and other "stuff" you ignore). You expect 9 of those, then a }. After that, you're back to skipping again.
 
@JerryCoffin Yeah, that's how it works already.
Minus the state
 
7:50 AM
Anyone reading this: This is a very good and comprehensive feedback which solved my issue. Hats off for helping and showing how to properly ask a question. Thanks — Dev Dev 11 mins ago
W00t mini-victories
> Any topic that you propose and I approve.
Choose "World domination"
 
what is this std::runtime_error
And holy shit this is much better design than mine.
 
@Cinch Just a generic exception class. I don't usually print out error messages directly at the point I find the error--throw an exception and let a higher level figure out whether to log it, display it, both, neither, or what.
 
@JerryCoffin Hm. Interesting. is it part of the exception system?
Also what happened to try and catch?
 
@Cinch Oops--mucked up the braces though. coliru.stacked-crooked.com/a/45c4ce712be9c022
@Cinch Those would be at a higher level (probably in main()).
 
8:01 AM
@JerryCoffin so confused but okay.
Is it usable on mobile?
 
@Cinch Can't think of any reason it shouldn't be.
@Cinch Another possibility here would be to have the function return a bool, and for this case just return false to indicate the input was bad.
 
@sehe yeah
 
@JerryCoffin That's what I have right now.
 
@Cinch In this case, probably a better idea than throwing an exception, truth to tell.
But, as I said, this was just a quick sketch--I just typed in what seemed easiest to me at the time, and didn't go back and try to clean it up, think much about how it was supposed to work, or any of that you'd normally do with real code.
 
@JerryCoffin optional<Result> anyone
 
8:07 AM
@BartekBanachewicz That would work too.
Another possibility would be to just return the data you did read, and have a higher level that looked at that and assured that it was 9x9.
 
user1804599
hi
 
btwahahahaha
 
user1804599
Exceptions are awesome.
 
Is there a better way to rollback in git to a specific commit besides copy-pasta git reset?
 
8:23 AM
@Cinch git checkout commit
 
that doesn't work
 
maybe it doesn't work for you
 
I hope you didn't type git checkout commit as is
 
Isn't there a way to tag versions?
Or should I just branch?
 
git tag --help
 
8:25 AM
git tag v0.1
git push --tags
 
Dude, the git man pages are well written, go through them first
 
Yeah, like the docs are SO easy to read...
 
@Cinch well, they are. There's also ton of resources available
 
user1804599
Exceptions in Perl 6 are interesting.
 
and there's on SO
 
8:26 AM
yeah ik i'm just being bitchy.
 
user1804599
You can return them with fail, and they'll throw when you don't use them at the call site.
 
If you think git's doc is cryptic, you'll have a bad time
 
@Rerito No, git's doc is pretty good.
I'm just a noob (or boob).
 
user1804599
So sub f { fail "fuck" }; f will throw but sub f { fail "fuck" }; say f will print the exception.
 
@Cinch You could also take a look at Pro Git (there's a free -and legal- pdf version of it)
 
8:31 AM
WOO IM DONE
WITH MY FUCKING PAPER
4 FUCKING SINGLE SPACED PAGES. YEAHHH
 
@Blob: Throw it in the toilet.
 
and 2 ways to cure; one not yet possible, other possible.
@wilx once i hand it in
which is tomorrow, aka 1.5 hours
 
@Blob Nice.
 
ima go get my 1.5 hrs sleep
bye
 
lol
@Blob Do not forget to wake up.
 
8:33 AM
Also git is cool.
How's mercurial?
 
8:44 AM
very similar
 
Fuck.
I can't access or push to my own github repo
 
user1804599
9:02 AM
similiar
 
@Cinch It can be solid, but in the gaseous planets that only happens at the core, I suppose similar
 
user1804599
Mercurial, not Mercury.
 
> We see this with users all the time when it comes to SSL warnings in the browser. They become desensitized to them over time and happily click through them. Another reason why no-one should be using self-signed certificates.
@райтфолд thanks bubba
> A)bort? R)etry? I)gnore?
I'm still not sure how I should have responded to that one. If it polymorphed, I'm sure my head would explode.
Nice. And:
> Isn't this the Aunt Tillie and CUPS configuration discussion? "If Aunt Tillie can't [understand your security warning], scolding her for being a brainless luser buys you exactly nothing."
 
user1804599
Amazing: say('fizz' x !($_ % 3) . 'buzz' x !($_ % 5) || $_) for 1..100;.
 
This is a very entertaining read. Kept me up until 2 am last night.
 
9:09 AM
So you went to bed early
 
Yes, I usually go to bed around 10 pm.
 
user1804599
lol
 
@FredOverflow wut
 
@BartekBanachewicz What does "wut" mean as a reply to an amazon book link?
 
// There's probably a better way to do this but I'll find it later.
// Did not have much luck finding a better way.
 
9:23 AM
I see //TODO: Fix this bug (2010-02-28) way too often.
 
just comparing the starred comments in Lounge<C++> and JavaScript...
 
uh putting dates in code
 
@TheForestAndTheTrees Only from 2010? That does not sound too bad. :)
 
hm, interesting. system_clock's epoch is 1970-01-01T00:00, and high_resolution_clock's epoch seems to be the last time you booted from a full shutdown...(with 2015's stdlib)
 
@melak47 That sounds reasonable.
 
9:28 AM
@wilx but how does the high_resolution-ness persist between sleep/hibernation? :D
 
@melak47 Interesting question. No idea.
 
Hmm, MSBuild is on github now
at least that makes it easier to profile it when it's being slow as shit
 
@edition what about it?
 
for those people interested in software freedom, they should pursue projects unhindered of any corporate influence.
 
@edition I... don't see how that is at all relevant
For those people interested in giraffes or sea lions, they should pursue projects in zoology. So what?
 
I guess Microsoft needs to put bread on the table...
will I get sued for saying this?
 
@edition For what? You appear to be rambling on about something completely unrelated to everything I said
 
9:52 AM
nevermind. its late.
 
I'd like to point out that I said nothing about software freedom and nothing about bread or tables. And I don't see how the observation I made is at all affected by a link to Microsoft's openness policy. Whatever point you're making seems to be pretty much orthogonal to what I was talking about
 
ah, ok.
 
I was just observing that having the source code available makes certain things easier for users of MSBuild :)
 
it would be nice if the source code for the MSVC compiler was available.
 
@edition by the way, github.com/Microsoft/msbuild/blob/master/LICENSE - at least I can't complain abotu the license they chose :)
true
I'm inclined to say it'd be nice if they burned the source code to the MSVC compiler and adopted something sane, but... On the other hand, there is something to be said for having lots of different compilers available. A Clang monoculture might not be the healthiest in the long run
(that said, I'm skeptical that MSVC, open source or not, can be made a competitive compiler in finite time)
 
10:00 AM
Chandler said the same thing.
That's why we have 3 compilers really.
Two good ones and one bad one.
There's also how they interpret the standard and how they can use that to reflect on updated wordings.
You get questions like that semi-frequently on SO ("Which compiler is right?")
 
yeah
 
The lounge should start a C++ compiler project :P
 
Let's implement Hell++.
 
We can do that "smaller language that is trying to get out" :)
 
Remember this?
 
10:05 AM
right
 
I even did the first assignment.
 
> On the other hand, Wilson says that even janitors and security guards at the Googleplex are entitled to the awesome cafeterias and beanbag chairs, but the yellow badges aren't, and aren't even allowed to talk to anyone else. This seems weird, if nothing else.
 
10:25 AM
On linux, I can type gcc -o program program.cpp. On windows...
 
@Rapptz yes
Is there some news about it? (other than "the site is still up")
 
Xeo
@jalf They have made great advances for a while now.
 
I am fucked up
 
there is something very wrong with C++ programmers...
 
@Rapptz why are you discounting the others? Or do you mean, we use them at work?
@edition you must be new here
 
10:35 AM
Google's going to start penalising sites that aren't "mobile optimised" with huge fonts and lots of whitespace :(
 
@MichaelMitchell generators are more interesting. Although it always depends on the constraints :)
 
fucking wank
 
I heard they wanted to even stop indexing them
 
> them
 
oh, wait a minute
> Note that the mobile-friendly update only affects mobile search results
now that wasn't admitted in our internal Bugzilla entry
 
10:37 AM
:D
 
I earned the tumbleweed badge.
@LightnessRacesinOrbit, is your avatar, yours?
 
@LightnessRacesinOrbit you should post the description of your avatar as a room title.
 
@edition Hint: google image does wonders
 
@edition cl program.cpp?
 
thanks jalf. I learned something new today.
 
10:40 AM
@edition Yes.
@khajvah No.
 
@Rerito fuck i am on mobile. Google doesbt work as it is supposed to.
 
so, you are, a girl?
 
@edition Sure.
 
Although pornhub has mobile version
 
@khajvah Neither does chat -.
@khajvah lol rly
 
10:43 AM
@edition who, me?
 
Xeo
No, TrolliO
 
we are all girls
2
 
Let me check
 
@Rapptz oh god
 
@BartekBanachewicz Aw, you beat me to it
o hey, infinite recursion!
 
10:46 AM
7
Q: What is the etiquette for thesis acknowledgements that thank God?

Thomas LeeI saw that some theses acknowledgements thanks God, so are there any rules or suggestions about that? Is it ok to do it for believers or just don't mention your religious affiliation in a scientific work?

@Xeo haha
 
That'll teach me not to attempt to fix bugs :p
 
the forums on C++ grandmaster lead to 502
 
I hate this part of our code base so much
 
@Rapptz I'd deliberately forgotten it.
@BartekBanachewicz that's probably fortunate
 
SO logged me out without warning!
 
10:49 AM
Jan 31 '13 at 21:48, by DeadMG
https://groups.google.com/a/isocpp.org/d/topic/std-discussion/kLpIT5Q5pcU/discussion
there's the first reference
 
wtf
 
@caps I found you in -x^3 form.
 
Xeo
lol
 
Ffs why can't programmers proofread their log messages? I seriously can't decipher what this one is even supposed to mean
 
10:57 AM
@jalf why would you assume that makes any difference :S
 
@jalf "small fixes"!
 
"misc", "wip" or "lunch"
 

« first day (1615 days earlier)      last day (3341 days later) »