« first day (1598 days earlier)      last day (3576 days later) » 

14:00
@ThePhD If it's not dynamically allocated, then you can't.
user3010322
Titterbiscuits.
user3010322
Guess I'll use my own struct hack then.
you mean to ask how to return an array in general?
@Jefffrey with/for who/what?
@ThePhD Wait, you are writing in C? Why?
That song is a lie.
user3010322
14:01
typedef struct c_array_ { char array[1000]; } c_array;
@thecoshman Bartek
@orlp would have the move there...
@Jefffrey you need serious help man!
lol
@ThePhD Why are you doing this?
Are you being threatened?
Do you want us to call 911?
user3010322
@Jefffrey Yes. If I don't write C code I'll fail.
user3010322
And my Professor will serially murder me.
14:03
OMG that's terrible
@ThePhD You mean from head to toe?
Omg Trine 3
user3010322
@bluefog Yes, he'll recursively descendingly parse me into tiny meat chunks.
@ThePhD can you embed a C++ compiler into C?
@ThePhD As a last wish ask him to write C code for that which doesn't fail.. You live!
user3010322
14:05
@ParkYoung-Bae Trine 3?
/cc @ScottW @BartekBanachewicz @LightnessRacesinOrbit
user3010322
@thecoshman I was actually thinking of writing a C++ to C transpiler.
Now we have trans compilers too?
What the heck is wrong with the world?
$ git stash
.gitmodules: needs merge
.gitmodules: needs merge
.gitmodules: unmerged (2546a8d3d70e2d5b92e39e80e7a1efb0de44ec95)
.gitmodules: unmerged (9c76147bf07afc6e389eb8e358cf331626e8b73b)
.gitmodules: unmerged (76f2eba342db81aaa7141928cd8fddbade1e423b)
fatal: git-write-tree: error building trees
Cannot save the current index state
$
Might have broken something.
@ParkYoung-Bae oooooh
shiny
do want
@Jefffrey I dunno, I don't feel my lounge-shit-o-meter is that high to take a leave again
it's good that you're back being Jefff again though
14:10
yay
I almost felt like biting your fucking neck off at one point
like a zergling
That's... wow...
that's how we roll in bartekland
user3010322
If there's an LLVM IR to C compiler,
user3010322
I can just do clang++ -> LLVM IR -> C code.
14:11
@ThePhD what if someone made a compiler from C++ to LLVM IR!
And then I need help? @thecoshman
@ThePhD you can, but what for?
you're XYing
user3010322
It's for an embedded machine.
@BartekBanachewicz jeffrey likes to go to poundtown in bartekland
@ThePhD then write C code
user3010322
14:12
I'd rather chop my fingers off.
@ThePhD then write C code
@ThePhD if I could write Perl you can write C
@ThePhD You can chop off your fingers and shoot your foot just fine in C.
user3010322
I know how to write C, I just don't want to.
user3010322
I was hoping I could glue together some form of compilers to do C++ -> { STUFF } -> C
@ThePhD that's not writing C
let's start at the beginning
what target is that?
14:14
@ThePhD Don't submit generated code as an assignment.
user3010322
@R.MartinhoFernandes I'm not doing this for an assignment: this is different from that!
Keybase keeps annoying me about having 9 invites. HELP.
user3010322
I have a Beagle Board and I know how to get stuff on it using a C compiler.
user3010322
Buuut, I wanted to not program in C because fuck that.
14:15
@R.MartinhoFernandes well, invite more friends!
user3010322
So I was hoping I could find a solution where I could write Not-C and have it compile to C.
@R.MartinhoFernandes I have only three two :0
@ThePhD this approach has mostly faded in the dark ages
@ThePhD Er. Compile with a C++ compiler?
What do we think of questions that are tagged as , but the answer is true for as well?
@FilipRoséen-refp No one cares.
Then it's just
Beagle Board is absurdly big, running C++ on it natively sounds perfectly reasonable
It's something you can't fix so just leave it.
@ThePhD what features from C++ do you need? Is this a freestanding program?
14:17
@sehe if answer answer includes standardese, shall one quote the C++11 or C++14 standard? or should one just edit the question (remove c++11), and quote the latter?
nonnormative
No one cares really.
Just state which you are quoting from.
@FilipRoséen-refp IMHO the most recent at the time of writing unless explicitely required and qualified otherwise
still a good idea to qualify which one is it, yes
@BartekBanachewicz pretty much what I thought about the matter, thanks
@FilipRoséen-refp So it's valid from C++11 onwards?
Then it's just
14:19
@Jefffrey indeed, thanks.
BTW @sehe have I sent you this before? spotify:track:3ZmFWxemjXeEirbWw9gPXU
sorry, I sight read pretty well, but not from this gibberish
@sehe I thought those are better because you can use them both in the web and desktop iface
user1804599
Guys!
14:33
@BartekBanachewicz no clue, have to manually copy/paste o.O
Xeo
Xeo
@BartekBanachewicz lolz, black out of stock, white in stock
20 years ago this week, Newsweek published the wrongest column ever. http://bit.ly/1E0iK6P #NewsweekRewind http://t.co/8LHAKpw4rE
user1804599
I had this wonderful idea.
@райтфолд It seems you're full of wonderful ideas lately.
@райтфолд
14:37
Hi, I'm working with "Eclipse" on a mac. When I change my c++ .cpp-file, and I save & compile & run again, then still: the old version of my .cpp-file gets executed. Does anyone know what I'm doing wrong? Thanks.
user1804599
@CatPlusPlus I call it "duplicate code elimination."
user1804599
The check was already implemented in the callee. Don't implement it again.
user1804599
Anyway, my wonderful idea this time.
user1804599
Say you have a web app with some dashboard.
user1804599
But some users are allowed to see only some stats.
user1804599
14:39
And since my other wonderful idea was to load all data through AJAX and to build the UI fully client-side.
user1804599
The idea was to attempt to load stats until you have enough to fill the dashboard or run out of stats. An attempt fails if you have a permission error.
user1804599
@VincentVerheyen What you're doing wrong is using Eclipse.
@райтфолд - What would you suggest as a compiler then? ||| I have to use it for an exam on Linux's Eclipse in july.
@райтфолд I don't get it
user1804599
clang or GCC
user1804599
14:41
But which compiler you use is unrelated to which editor you use.
What's the idea?
@Jefffrey The idea is to reword permission-filtered datasets in such a vague way no one could possibly implement it from the specification alone.
@райтфолд - Ow, ok, so Eclipse is an editor? Then what editor to use? ||| Are the apps you provided command-line-only?
@Jefffrey with which what?
user1804599
@Jefffrey this:
user1804599
14:42
while (!enoughStats() && !noStatsLeft()) {
    try {
        stats.push(loadNextStat());
    } catch (PermissionError) { /* next */ }
}
@райтфолд Then you can show stats about the number of loaded stats.
user1804599
Yes! :D
33 mins ago, by Bartek Banachewicz
I almost felt like biting your fucking neck off at one point
user1804599
I'm gonna try it out. I've got some stuff working with immutable virtual DOM and lenses lately.
Maybe I was just expecting something more unique I guess
user1804599
14:44
It'\s a very nice way to maek web UIs.
Guys I have a new way to iterate over arrays!
user3010322
UI reminds me that I want to make my own UI framework one day.
@Jefffrey o_0 what ever
handled = []
while len(handled) != len(array):
    r = random.randrange(len(array))
    handled.push_back(r)
    iterate(array(r))
>.<
@VincentVerheyen Even when you're doing a full rebuild?
14:47
@VincentVerheyen are you on windows? what can happen on windows is that you still have the application open, blocking the compiler from overwriting your .exe
@FredOverflow - You mean "the hammer"-build in Eclipse? Yes. It sais "build debug for project".
@orlp I'm not on windows, it's Mac. Eclipse always stays open for me.
maybe I should've became a sound engineer instead of a programmer
@VincentVerheyen The only reason I can think of is that your executable is still running when you compile.
14:49
this stuff is way more interesting that dealing with bullshit XML UIs anyway
@FredOverflow How would I shut the executable down then? ||| In the "problems"-section, i e.g. get warnings about OTHER PROJECTS than the projects I would like to run and build ...
I'm afraid nobody here is using Eclipse with C++, sorry.
I'm afraid nobody here is using C++, sorry
I bet more people here are using C++ than Eclipse.
14:50
I'm afraid everybody here is afraid and sorry. :)
I'm afraid nobody is here, sorry.
I'm nobody. Sorry is afraid here.
Here is afraid! Nobody is sorry.
2
Stahp
Is afraid here? Sorry, is nobody.
15:04
@BartekBanachewicz I knew this was how you were meant to hold them, didn't know why.
user1804599
I had this wonderful idea.
I wonder, what if the case drops in CS GO and TF2 aren't random
what if each case opening triggers something like
item = GetNextItemThatMakesTheMarketBeLikeWeWantItTo();
and it just looks random
~revelations~
@райтфолд That's SFW
@AlexM. that's prolly how it's done
15:12
bye
> Black magic specialist Sangoma Mathabo Mofokeng said that no one would be able to separate the couple, who were reportedly taken to hospital, until the woman's husband comes back.
user3010322
@R.MartinhoFernandes Lelwat.
that guy better come and smack both of them
with a club
in the head
knowing that whatever suffering he went through, they went through a greater one
user3010322
Wow.
user3010322
They were actually stuck.
user3010322
15:16
That's... uh.
user3010322
Hah. Hahahah.
user3010322
Well, sucks to be the wife I guess.
@райтфолд Why the FUCK do they give out the names?
user3010322
@ParkYoung-Bae Because WHY NOT?! :D
Oh it's a fake
user3010322
15:20
@ParkYoung-Bae Aww, but why? It's not even April 1st. ;~;
@ThePhD Because lying to get attention is a common tactic, April 1st or not.
April 1st is the only time in the year when you can do it without being called an asshole.
You have liar immunity on that day.
limited* liar immunity
@SamDeHaan You just need to go with the rock solid defense "Aww man, it was only a joke!" and you're fine!
@EtiennedeMartel that works 100% of the time every time (April fools!)
@ThePhD if it makes you feel better
the phenomenon exists
so while the story may be fake
the thing still happens
15:31
StackExchange science:
14
Q: What is the correlation between answer quality and score?

Chris WhiteThere has been a general sense among a number of users, myself included, that simplistic, almost throwaway answers can get very high scores, while thoroughly researched, high-level answers can languish with few to no votes. See the discussion here for example. To what extent is this backed by da...

I wonder what this would turn up on the various SO "big topics" like C++, C#, etc.
15:45
> Black magic specialist Sangoma Mathabo Mofokeng said that no one would be able to separate the couple, who were reportedly taken to hospital, until the woman's husband comes back.
Seems legit
@ParkYoung-Bae Because it's all true!
@sehe Specialists are always right when dealing with their area of expertise.
That's why they're specialists.
16:05
I should donate to Stacked again, I've been using coliru quite often lately
hmm
or should I buy pizza
Send pizza.
DECISIONS
Wait, another koala? Or is that the same?
nah this is another guy
16:07
@EtiennedeMartel nah xD
I know it's a public domain picture, but still.
is there any way to convert int array into int variable? FOr example I have this array[0]=1 , array[1]=2 , array[2]=4 .How Can i convert it into x=124 in C++?
@EtiennedeMartel I use this pic everywhere not just a random pic
We have another koala?
@YourFriend reverse radix
@YourFriend You can of course create a function that will output 124 for the input {1, 2, 4}, but what should happen for integers bigger than 9, and what do you want to have this functionality for?
16:09
also ^
@jPlatte user inputs an integer for example 1234, I store it into array. Now I have divide them and store it in another array like this array[0]=12, array[1]=34
I'd definitely appreciate it if OurFriend changed his avatar a bit
it's confusing
@YourFriend You mean a user inputs that as text (e.g. from stdin using cin ) and you just want to convert that text into a number?
@AlexM. nooble isn't here right now xD
that's not the point
16:13
@jPlatte no he sends it as an integer
@AlexM. Seriously, who is the other koala?
Then where does that array come from?
@rubenvb Nooble
he's been here for a while
2 months I think?
Huh.
Must have missed his presence.
As in, never noticed it above the noise.
Anyhoo, I got another paper accepted! YAY FOR ME!
@jPlatte I divide it something like this int%10 in a loop and store it in array
@rubenvb what kind of paper?
16:14
@YourFriend Physics peer-reviewed shizzle.
Completely non-programming related.
I did cite TikZ, NumPy and Matplotlib dudes. That made me feel good :D
@rubenvb I don't like physics especially the vectors thing
 if (!(std::cin >> m)) {
        std::cout << "Invalid entry\n";
@YourFriend Okay, I don't get why you would do that, but if you know your arrays size and know it's not got any members < 0 or > 9, you can just do
int sum = 0, mult = 1;
for(int i = arraySize - 1; i >= 0; i--, mult *= 10)
sum += array[i] * mult;
@rubenvb

PhD Student in Relativistic Quantum Mechanics at the University of Antwerp
aRe yOU KidIng???
what does it mean ?
16:18
what does it?
@YourFriend no.
@rubenvb that's some einstein related stuff ^_^
@AlexM. If cin is not m then the output will be "Invalid entry
@jPlatte I would try it, thanks for your input
@YourFriend lol vectors are really just kidd physics. Most of physics deals with arbitrarily more difficult concepts.
And the Relativistic might be a bit of an overstatement.
16:19
@Theorem the correct answer would have been "what does?"
@rubenvb whatever, I still hate it xD
but thank you for trying
I started doing some of that, but as it wasn't interesting in the current setting, settled on normal QM.
@AlexM. huh I don't know what it does .
@YourFriend You can also move the mult declaration into the for loop head, for ultimate weirdness :D
I guess it would make sense because it isn't used outside the loop.
16:20
@rubenvb LOL, I was kindda partial to Nano Technology
@jPlatte it kindda boring in C++, it does not provide so many functions
like converting array to int etc
WHAT:
ideone.com/82EXtM can someone tell me why if statement is necessary
@YourFriend Please don't tell me any language / standard library of a language supports something like this.
@jPlatte You have to make separate logic for everything
@jPlatte I am restricted to simple C++, no standard libraries
I recommend you to quit that job immediately :D
16:23
@YourFriend simple C++... no standard libraries. The Standard Library is C++. If it's not part of what you can use, well, you're not writing C++.
@jPlatte lol that's not a job, just a home assignment
@rubenvb man I am writing something like this #include<iostream> #include<conio.h> using namespace std; main(){ cout<<"Hellow WOrld"<<endl; getch(); }
Damn, that feels good.
The whole question is quite amusing.
(Guh, I split the infinitive.)
@YourFriend Sounds more like the policy of a company doing low-level stuff thinking the C++ standard library can never be performant ^^
Hint: I work at a company where that seems to have been the opinion of the people who worked on what I work on now, and if it turns out that I can't change that I WILL quit that job <:
@LightnessRacesinOrbit Ugh, misuse of "ad hominem" spotted.
@jPlatte so you mean what I am using is quite low level? what standard c++ library you are using?
16:32
@YourFriend There is only one standard c++ library...
Or do you mean which version of the C++ standard?
alright , so what I am using is not any standard library
@YourFriend So you never using cout, cin, the string class or anything like that?
(using namespace std; or std::cout, std::cin, std::string)?
seriously that's what they did
@jPlatte alright, so there is nothing other than standard library in C++
@YourFriend I don't know what you mean again. Of course there are other libraries... But there is only one standard library (with multiple implementation of course, but you shouldn't have to care about that)
16:39
@jplatte we use that std thing like namespace std so it is about standard library?
Yes
I would recommend you to not use "using namespace std;"
@sth This is just another example of people not understanding what "ad hominem" means. Not every insult or personal attack is an "ad hominem" (only when they are falsely used to prop up an argument!), and the comments weren't even those. — Lightness Races in Orbit 5 hours ago
:D
Especially if you're about to learn the language
@jPlatte so I should keep writing std:: on every line manually?
Yes. In header files you have to anyway if you don't want to horribly break things.
But in source files, it's probably a good idea (for learning at least) too, so you know what's actually part of the language and what's part of the standard library.
16:45
Write not using namespace std;
And I'm pretty sure that there are other reasons for not "using namespace std;", as some people get very annoyed of reading it ^^
@Jplatte so
string test="qeqwe"; belongs to library while cout is part of language ?
no
auto test = "qeqwe";

would work without the standard library,

string test = "qeqwe";

wouldn't.
Because the string class is part of the standard library
what about cout?
In the former case, the type of test would be const char*, so you could also write
const char* test = "qeqwe";
cout is also part of the standard library
Though it is a global object, not a class
16:51
I still don't get why I should write std:: in every line instead of just writing it once in the start
?
Anything with a name that isn't a keyword is from the library, speaking generally.
user784668
hi
683
Q: Why is "using namespace std;" considered bad practice?

akbiggsI've been told by others on numerous occasions that my teacher was wrong in saying that we should use using namespace std; in our programs. Hence, we should use std::cout and std::cin and these are more proper. However, they did not even make it clear ever why this is a bad practice. Why is usin...

@LightnessRacesinOrbit Hm, I didn't know the builtin types were keywords.
@jPlatte They're not, but their names are.
16:53
@LightnessRacesinOrbit ... wasn't it pretty obvious that I meant that?
Or would it technically be possible for the actual types to be keywords?
@jPlatte No, I was just being fussy for fun.
@jPlatte Yes. :)
user784668
@LightnessRacesinOrbit Stop being such a @LightnessRacesinOrbit
Nothing wrong with teaching a little rigour
Sorry but I'm used to taking everything without emojis serious :D
@jPlatte That's really sad :(
Dry, emoticonless wit is the best kind of wit.
user784668
16:57
@LightnessRacesinOrbit It's not.
user784668
@LightnessRacesinOrbit Prove it.
@Fanael No.
y so srs
should be laughing at himself for questions like this:
-4
Q: How to Create Repeater and Datalist Control in Php Like Asp.net

Priyank PatelI want to Create Repeater and Datalist Control function for every time use like asp.net but how to create. Please Give me some idea and Demo links. I am creating Gridview in Php but now i want create Repeater and Datalist.


« first day (1598 days earlier)      last day (3576 days later) »