« first day (1292 days earlier)      last day (3882 days later) » 

00:22
@Mysticial hehe
night lounge
night
 
1 hour later…
01:41
Do you guys know how to fix can't open include file string.h, no such file or directory error in VC++ vs2013? I got this project from a friend but I get this error on compile. Isn't this library installed part of vs2013?
01:56
does it include "string.h" or <string.h>?
in either case, your friend is bad and you should feel bad :p
It has #include <string.h> // memcpy
Yes he said he doesn't get it :(
It's against the law to #include <string.h> actually.
Also I created a new c++ console app and added string h and it compiled, so not sure what's wrong. or which directories I have to include.
Oh what's the proper way?
Use C++ and not C obviously.
This is c++ code. Also have #include <stdlib.h> // standard libs
and #include <iomanip> // I/O manipulators
that returns same errors.
02:01
those are C libraries
Oh, sorry I meant the project is C++. So what should I change them too? Also I see that some of these h files are from somewhere else.
Like copyrighted code, so I guess he didn't touch them.
maybe your friend screwed up the default include paths in the project settings.
if it doesn't depend on third party stuff, just create a new project and dump the stuff in there :v
Are they in project > options > config properties > vc++ directories?
I think it might depend on them I am not sure since I never used his project before :(
those are the ones
there should be some ($VS_Something_or_other) paths in there
This is what I see
02:07
looks pretty normal
Nothing to do with the preprocessor definitions option in the preprocessor page?
I suppose
Do I need windows 7 sdk for these?
for string.h? no
Ok I checked I have it I think. It's also complaining about excpt.h
user3010322
03:02
bounds_iterator<2> arf( { 2, 2 }, { 1, 1 } ); <--- should that iterate from [1, 1] to (2, 2) -- a box of size 1?
user3010322
Or does that mean it's going to iterate from [0,0] to (2, 2) but start from {1, 1} ?
user3010322
There's like 1 paragraph about bounds_iterator.
user3010322
And how it's supposed to behave.
user3010322
They give no examples about bounds_iterator behaving if you just want it to iterator over a certain slice of space
user3010322
Rather than the whole array.
user3010322
03:07
Well, this is dumb.
What the hell is a bounds_iterator
user3010322
03:19
typedef void prefix_t;
typedef int postfix_t;

...

reference operator++ ( prefix_t ) {}
value_type operator++ ( postfix_t ) {}
3
user3010322
Ezpz.
04:01
what is your weird obsession with typedefs about
 
1 hour later…
05:08
Actually guys I checked but the header files I am looking for are not under C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include Is this normal? How can I install them? I already instead vs10.
@JoanVenge Use <cstring> instead.
05:33
Oh it's in the original files. I wanted to compile it before changing it as it's not my own project files. I need to work on a different part after compiling it.
05:45
Oh god... that flag...
sometimes, I don't know why you visit those childish places ...
@Mysticial Not particularly offensive.
At least to me lol
I don't find it offensive either. But it's different from your average chat flag.
@JoanVenge visual studio 10? I thought you said 2013 :p
Xeo
Xeo
06:32
... I don't need to leave for another hour, and I've been awake for 1.5h already...
good morning :p
Shit.
Anyone remember this?
uhh...nope
Not as good as the other one, though.
06:56
0
A: Question quality is dropping on Stack Overflow

jwentinghmm, bring back the homework tag, then automatically close and delete anything tagged as such 5 minutes after it's been posted. By that time the person asking the question will have gone away, planning to come back a few days later to harvest the solutions to his assignment only to find that ther...

^^ That's hilarious and brutal at the same time. :)
07:14
Holy fuck.
The scale is misleading though.
clearly, all questions worth asking on SO have been asked already :p
It only dropped from 95% -> 75%.
@Mysticial It's still a 10% drop.
07:17
@melak47 hahaha
the site could open for questions one day per year
(interpolate to best fit nurture-time)
@R.MartinhoFernandes 95 - 75 is 20!
@Rapptz (he was referring to the 'all' maybe?)
meh, now I saw mysticial explicitness on 95-75
2011-05-12: Question downvotes are "free" to the downvoter and will not be subject to a -1 rep penalty. Downvotes to answers are unaffected and still "cost" 1 reputation to cast. (SE features changelog) — gnat Apr 25 at 13:44
interesting
user1804599
@Mysticial aaaaaaahah
Hmm.. you know.
Would SO benefit from "Ask Question" leading to a "search" thing as a requirement for asking?
07:33
a google frame? That would be nice
well, sorta?
user1804599
My suggestion is to outright ban people who don't format their question right.
> hold on... maybe your question was already answered? {dump of related questions and google hits}
user1804599
It is offensive to the people who put time and effort into the preview.
user1804599
:P
07:34
There is already a window that pops when you are typing
@Kahler I suggest having a separate page
I don't see it
user1804599
When you type in the title, it shows a list of suggestions.
user1804599
But lazy idiots don't look at that so it doesn't help shit.
Oh I see it now.
user1804599
07:35
"Too localized" must be brought back and used way more often.
well, right off the bat the results are pretty shit :s
user1804599
As well as "requires a minimal understanding of the problem being solved."
here's a question that pops up every so often
@rightfold other"
yet the results are almost all negative lol and the proper duplicate doesn't show up (it has >900 votes)
07:36
lol
Hello.
user1804599
@Rapptz so, ban people who ask it again.
user1804599
vOv
@Rapptz Way to go SO!
do you guys ever needed to post a question in a rush?
07:37
Well, I was suggesting it being a two step process
i.e. search first, actual question second
user1804599
@Kahler no excuse.
I mean, would something like 'come back in 15 minutes to confirm your post' be really bad?
@Kahler Nope. I often need an answer in a rush, and searching is much faster than asking.
user1804599
@Kahler That would be nice.
Exactly
user1804599
07:38
With them being in the review queue immediately, though.
I really bealive would scary things like 'HOW DOEZ I INCREMENT A VARIABLEZ?"
user1804599
I suggest redirecting to lmgtfy upon clicking the submit button.
are you one of those "URGENT!!!" people? :D
@ScarletAmaranth sounds like a nice way to add to the quality filter, though
07:40
nah... I though a lot before asking my two questions
user1804599
Tomalak would outright ban people if they're from India.
12
lol
user1804599
0
Q: Other way to shorten the syntax of direct memory manipulation

mr5I happen to look at my friends code once (he's a game hacker/cracker and... nope I'm not!) because he's always complaining and confused by his own code too. He's programming strategy is very dirty although he always done the job right but most of the time, with lots of bugs. It's a very very st...

@rightfold that's racism. There are good programmers. And TBH, Americans in general suck just as much.
user1804599
07:41
dat code
except for better english (well, not really)
@rightfold holy mother
user1804599
Ctrl+Alt+V :3
"cause we're programming in almost same language C & C++" hehehehe no you're not
user1804599
When you are performing 11 casts to int* in the same statement, it's time to delete your code base, stop programming and rethink your life. — rightfold 14 secs ago
07:45
hahaha Yes.
Umm... mods don't like sarcasm on SO
yet so true
user1804599
It's not sarcasm.
user1804599
I'm serious.
I like the consecutive +0x0)+0x0) =p because... fun!
user1804599
07:48
% git pull bitbucket develop
From bitbucket.org:...
 * branch            develop    -> FETCH_HEAD
Already up-to-date.
user1804599
Huh? What's that develop -> FETCH_HEAD?
the name of the branch and the identifier of the commit (HEAD)?
@rightfold First time I see a 22 star programmer
user1804599
:D
08:03
@rightfold Holy shit
@rightfold It is a Git thing. It identifies the head of the branch you have just fetched from.
AFAIK.
user1804599
It doesn't always show that.
Sort of like tip on Mercurial, is it not?
Or similarly "meta".
user1804599
Sometimes it just says "Already up-to-date." and nothing else.
2
Q: How to improve programming skill for computation?

user1285136I'm physics student and write codes for simulation of electromagnetic waves.I post one of my codes here and my question is how can I improve my code.(not the speed ) #include <iostream> #include <vector> #include <math.h> #include <fstream> using namespace std; #define IE 100 #define JE 100 #de...

08:07
> double ***alloc3d
Aww... The puppy's "holy shit" commend got deleted.
user1804599
@mr5 I said "something similar to this" because your code was so unreadable and I wanted to protect my brain from melting. — rightfold 9 secs ago
user1804599
@Mysticial haha
user1804599
I remember that one.
The problem of matlab is its speed.c++ is very faster than it.and double ***gax=alloc3d(IE,JE,KE); is the only one way that I found for solving segmentation fault problem. — user1285136 Mar 30 '12 at 8:33
user1804599
08:12
lol
I see he "really afraid of segmentation fault problem"
@sehe ಠ_ಠ
Why are people so bad at programming.
user1804599
Because they don't love what they do.
2
A: Other way to clean the syntax of direct memory manipulation

n.m.ptr->a_field->another_field->yet_another_field->more->more->next->smthng = 0; That's what pointer chasing looks like since about 1969. Your friend may want to invest some of his time in learning about types and why they are important.

:D
@Griwes Because they are engineers, not programmers.
08:14
hi, i am having some problem in lambda-calculus, can anyone help? I can't understand this statement:- (λyz.z)((λx.xx)(λx.xx)) → λz.z, using outermost reduction
I think the expression must have been cut and paste from a debugger watch window after many navigation steps — sehe 27 secs ago
> I'm physics student and write codes for simulation of electromagnetic waves.
I'm engineer =(
@Chandan We're so sorry to hear that you can't.
@Jefffrey Ok, let me reformulate that. Why do people incapable of programming decide to program.
user1804599
08:15
@sehe I think OP doesn't know about debuggers.
Because they don't know that. Dunning/Kruger
@Rapptz But the impressive drop is from the start of the year. The steady decline since 2011 is clearly due to the question downvote changes.
user1804599
(If he did, he would write debuggable code.)
@Griwes That's just so much unhelpful nitpicking. On the "common" architectures (PCs) casting between ints and pointers has worked since the dawn of C. Yes, the spec says it's UB but that it works is most definitely NOT by accident. — Peter Schneider 24 secs ago
@Griwes Because that's a tool that they need to use solve their problems. And programmers cost.
08:15
@rightfold The OP doesn't, but his "game hacker" friend apparently does!
ಠ_ಠ
@rightfold He didn't write the undebuggable code
@sehe can you explain it?
"This UB accidentally works on this platform, so keep using it!"
user1804599
08:15
@sehe Right.
user1804599
@Chandan what do you not understand about it?
Looks to me he was just trying to impress/make fuzz with that crazy line
@rightfold shouldn't it be (λyz.z)((λx.xx)(λx.xx)) → λx.xx?
user1804599
No.
if it was real he would have asked his friend about
08:17
@Chandan No
user1804599
y is unused so (λyz.z)(anything) is equivalent to (λz.z).
And impress us, he did
@Kahler but his friend is also always confused about his own code! (Read the question)
so it's like... type at random!
Let's not mention Law Of Demeter for a second here :S — sehe 1 min ago
Someone is going to the reversal/revival/necromancer (what not) badge there
@sehe Violating the law is still far, far better than the original code.
@sehe One concept at a time please. — n.m. 1 min ago
:D
08:21
@sehe so if it was (λyz.z)(λx.xx)(λx.xx) it would be different?
Why are you even asking lambda calculus questions here.
i don't know where to ask
@Griwes ikr. What part of "Let's not mention" wasn't clear?
6 mins ago, by Jefffrey
Mathematics
@Chandan So, now you know where not to ask
08:22
@sehe But you did mention it!
user1804599
@Chandan Yes.
@Griwes BOOM!
user1804599
Then it would be (λx.xx).
user1804599
Heh, I found a nice use for PHP's @ operator.
I'm curious.
user1804599
08:24
@$json['highlighting'][$i]['title'] yields null instead of an error when any of those subscripting operations fails. :)
Rhetoricsâ„¢ Inc.
Confounding Humanity Ever Since Sophism
I've tried PHP once... once
It's NULL. But it doesn't matter much anyway.
Stack Overflow meet Mirror, Mirror this is Stack Overflow.
At least /this/ mirror seems to have some merit
Wow.
RTL interface done right.
08:32
lolwut 7khatcode.com/… (dat url, btw)
rofl
@R.MartinhoFernandes Right to left?
what else
@sehe hahahaha propaganda!
Just a little. Maybe
08:34
@sehe That's quite the watermark.
Reminds me of snagit
Xeo
Xeo
grml grml grml
that trip to the doc was a waste
I said, let's not mention it (while still mentioning it for the people who care about it enough to otherwise downvote this) :) — sehe 32 secs ago
@Xeo use another distro
@sehe What's special in the URL?
@R.MartinhoFernandes yeah, possibly nothing. I'm not used to seeing so many URL-encoded nibbles - but it might be required here :/
Xeo
Xeo
08:41
@sehe I'm not seeing anything URL-encoded
Oh wait, FF just decodes them for me in the preview
@sehe Any character outside of a certain subset of ASCII must be UTF-8 encoded and then the bytes percent encoded.
> The requested document is not available for language "en"

The following languages are available:
I'll just assume that means it's not written at all.
@Xeo :)
@R.MartinhoFernandes Yup
user1804599
Yay. Search form works.
09:03
They are generally equivalent, as computers and programming were created in America. — Prime624 yesterday
"They" being "American English" and "programmer English".
What a load of bullshit
> When speaking generally, "colour" vs "color" shouldn't matter, but when specifically coding it, it should.
INTERCAL names are unambiguous! () = wax/wane, [] = U turn/U turn back, {} = embrace/bracelet, <> = angle/right angle. Bonus: & = ampersand. — R. Martinho Fernandes 1 min ago
Best solution.
@RobertHarvey so what if he's a moderator, does this give him carte blanche to make remarks that are obviously going to antagonise (in this case English speakers from outside the UK). Aren't everyone's posts subject to editing, including those of the mods — Dónal 11 hours ago
:lol:
This person is not very smart
TIL Leicester is pronounced /ˈlɛstə/.
You don't need to know all the fancy IPA vowel distinctions to tell that is weird.
how else would it be pronounced?
lots of the British *cester names are all the same.
I used to live in a place called Towcester
09:14
Now you moved to Swampcester?
heh
> double click in scalp button crushes the program
09:34
cl not d cl!!!
user1804599
Fuck you Java and fuck you Debian.
user1804599
I can only start Solr as root.
user1804599
:V
The chown command (abbreviation for change owner) is used on Unix-like systems to change the owner of a file. Unprivileged (regular) users who wish to change the group of a file that they own may use chgrp. From the BSD man page for chown: For obvious security reasons, the ownership of a file may only be altered by a super-user. Similarly, only a member of a group can change a file's group ID to that group. Usage examples These examples illustrate typical syntax and use. Modifying permissions requires you are either root or have write access to the file. Changing owner requires root...
09:51
@rightfold blame debian, methinks. Of course, if you tweak the permissions on all resources used... But opening privileged network ports is always gonna be root-material.
How do you know that Solr doesn't drop the privileges or uses privsep?
user1804599
@sehe port 8983.
user1804599
So doesn't matter.
user1804599
The idiotic thing is that it cannot find a class when run as non-root.
user1804599
Whilst it can when run as root.
user1804599
And of course nobody else on the entire fucking planet has had this problem before.
10:05
@rightfold classpath. Perhaps the classpath is not readable to the Solr user. Or the environment (JAVA_HOME etc.) is wrong for that user
user1804599
Is there any way I can see the classpath?
user1804599
inb4 I have to write a Java program to do that.
user1804599
Class path is . for both users.
user1804599
JAVA_HOME is empty for both users.
Trapped in Middle Eastern Middle Ages history on wikipedia. Send help.
10:10
@rightfold and... is pwd the same too?
user1804599
Yes.
user1804599
(duh) :P
@rightfold what class is not being loaded anyways (duh) :P
user1804599
# su -c 'java -Djetty.host=127.0.0.1 -jar start.jar' solr
Error: Could not find or load main class org.eclipse.jetty.start.Main
# java -Djetty.host=127.0.0.1 -jar start.jar
1    [main] INFO  org.eclipse.jetty.server.Server  – jetty-8.1.10.v20130312
... // runs as normal
There's no -cp option
user1804599
10:12
Indeed, so it uses . as the classpath (which is the default).
Try (for funsies) sudo -E
user1804599
# sudo -E -u solr java -Djetty.host=127.0.0.1 -jar start.jar
Error: Could not find or load main class org.eclipse.jetty.start.Main
inb4 someone mentions std::valarray... :S — sehe 5 secs ago
@rightfold mmm. Interesting. -E should have inherited the environment, so it's not that. 0.10€ says it's permissions. Check directory traversal as well as file read
user1804599
I made solr:solr owner of all files in that directory recursively, but I'll check again.
user1804599
Maybe I have to move it from ~root/solr to ~solr/solr.
10:19
And what about the directories? Also, the owner might still not have execute (traversal) permissions on the directory(s)
user1804599
OMG IT WORKS.
@rightfold That's what I mean. If solr doesn't have +x on ~root...
user1804599
THANK YOU SEHE
user1804599
:gives blowjob:
8
Ahoy
10:27
I think I'll come back later.
:D
Does stack unwind when a SIGSEGV is raised ? My expectation is that it doesn't but a coworker of mine seems pretty sure that it does.
No, signals are asynchronous
standard C++ ignores system exceptions/signals
Yeah, makes sense.
10:36
I hate people.
6
I'm defending code that reinterpret_casts an integer to a pointer.
Why does this happen.
@R.MartinhoFernandes why do you? is memcpy not the saviour here?
Why can't people that are right in their conclusions have reached them through valid reasoning.
@R.MartinhoFernandes int? not ptrdiff_t?
@Abyx It would have to be intptr_t or uintptr_t, but it's a literal anyway.
@R.MartinhoFernandes literal? e.g. 0x401000?
well it's ok if you know what you do
@R.MartinhoFernandes so you mean, reinterpret pointer -> integer (integral type of sufficient capacity) -> pointer?
@ereOn I believe that some of the not ancient versions of GCC and Clang allow you to make signals throw exceptions.
@sehe No. Just integer -> pointer.
10:44
But by default no, SIGSEGV will generally just kill you (as it should).
user1804599
10:59
Thank you robot for teaching me C++.
@R.MartinhoFernandes well, the mapping is required to be unique for unique pointer values, I suppose, if that's the intent
user1804599
Hmm. Bee roll.
Strongly disagree that it should.
I prefer it just terminates my process
Xeo
Xeo
@rightfold Eh
I had the unfortunate experience of finding a bee inside of my baked good once.
Did you kill it with fire
11:10
With munging, obviously
You seem to be posting the same question quite a lot of times. Where are you stuck? Just repeating your question will not magically make someone write your program for you. — sehe 39 secs ago
I just found out I'm entitled to a massive tax return https://s3.amazonaws.com/images.dailyexpress.co.uk/img/covers/287x361front/2014-04-30.jpg
@DeadMG are things just getting so painful as of late ^ or am I only just becoming aware of it?
@sehe I'm entitled to a tax return too then?
Yes! Definitely. Form a mass, file a class action (? what's it called)
user1804599
11:30
Hmm.
user1804599
On one hand I don't like $GLOBALS['logger'] but OTOH I do.
user1804599
Meh, globals.
11:53
> Let some mysterious chunk of space debris puncture the roof and set me free.
I've changed permissions on a Google Docs spreadsheet and last edit owner changed to me (but not the date)
Google Docs is Very Good
Cat, you're being grandiose. You want ... the date changed to you too?!
@sehe You're probably only just noticing.
ITT Cat is a date.
user1804599
Caturday.
user1804599
12:11
TIL LiveScript has x `f` y syntax. :v
open link, copy link, share link ... there is no freaking cancel button
tiny buttons crammed together with no cancel option
12:23
no bonus this year. no payrise this year. cocks
user1804599
Better go work somewhere else.
> the inFORM is a surface that three-dimensionally changes shape, allowing users to not only interact with digital content in meatspace,
SEE?
I'm not the only one
Xeo
Xeo
This is cool (IndexedMonad)
@LightnessRacesinOrbit At least you get cocks.
user1804599
12:42
Oh btw @Bartek that time you got so angry at me because I used $scope instead of scope for that argument name.
user1804599
Angular uses that for DI. If you name the arguments differently, it won't work anymore.
Why does Firefox 29 look literally like Chrome
Like it's not even similar, it's identical
It's ridiculous.
Oh god where's the addon statusbar why is everything suddenly on top
@R.MartinhoFernandes ;p
@telkitty.exe Is that Bartek and Cat
@CatPlusPlus cos idiots
12:56
At least you can reenable the title bar
I so don't like this
Xeo
Xeo
... why is the "close Firefox" button a power-icon now :(
Why is anything

« first day (1292 days earlier)      last day (3882 days later) »