News for hackers. Stuff that matters.
Re:Linus Torvalds did not commit this by seba_dos1 on Tuesday August 04, 2015 @03:25PM (#10005628)
Kinda hard to not come up with it when setting up your credentials is the first thing git wants you to do before you can commit anything. BTW. You can also overwrite them by command line switches per commit instead of setting environment variables.

I guess it's worth noting here that you can sign your commits with GPG: https://git-scm.com/book/tr/v2/Git-Tools-Signing-Your-Work

Re:Linus Torvalds did not commit this by SilasX on Tuesday August 04, 2015 @03:44PM (#10005753)
Similarly, nothing stops you altering the time claimed in the commit. Or -- for that matter -- from taking someone's diff and claiming credit for it.

For that reason, I jokingly created `git-upstage`, which streamlines the process of abusing commit edits and plagiarizing code! It squashes a branch, backdates it 5 minutes, and claims you wrote it.

https://github.com/SilasX/git-upstage

Edit: Looks like my last commit left the important stuff commented out and can't fix it at the moment. Ah well, you're going to use the tool to rip it off anyway ;-)

Re:Linus Torvalds did not commit this by ultramancool on Tuesday August 04, 2015 @03:54PM (#10005823)
I love this. Had a project in college that was supposed to be time limited... based on repository times. Oops. Big mistake prof. We rolled back the times on our repo and laughed maniacally about our free 6 hour extension.
Re:Linus Torvalds did not commit this by WalterBright on Tuesday August 04, 2015 @04:58PM (#10006243)
Should professors really be spending their time locking down all the ways students may try to cheat? At Caltech, proctoring exams (for example) is not allowed by institute policy. A student's honor that he didn't cheat is considered good enough.
Re:Linus Torvalds did not commit this by cegev on Tuesday August 04, 2015 @08:16PM (#10007278)
That's not the whole story. The student's honor is considered good enough that we shouldn't spend time locking things down, but at least when I interacted more with undergraduates here, Caltech had an investigation process for undergraduate academic dishonesty that was student-run and utterly dysfunctional, apparently involving scenes that would bring to mind the Spanish Inquisition, complete with 2am interrogations and insistence on confessions.

I was told of severe disciplinary actions for accusations that were ridiculous when students would not confess, and an administration that stood behind the decisions of students who judged other students more on their opinions than anything else. One student, for example, was apparently expelled for an instance of claimed cheating that would have involved him running back and forth on campus at the speed of a competitive athlete. He quietly returned a short time later, and was also admitted here as a graduate student; there were rumors of legal threats and a settlement.

At least when I was hearing more about such things, essentially, Caltech placed tremendous trust in students who were well-liked by particular people, and treated those who were disliked very poorly.

Re:Linus Torvalds did not commit this by tgb on Tuesday August 04, 2015 @05:39PM (#10006460)
Why wouldn't you proctor exams? The time spent is small, less than 10 hours a semester, and the proctors can answer student questions or make corrections and clarifications to test questions. That it's a small disincentive to cheat is nice too, though in my experience only the most blatant of cheating would be caught. I say all this as someone who proctors exams.
Re:Linus Torvalds did not commit this by dragonwriter on Tuesday August 04, 2015 @07:48PM (#10007134)
> Why wouldn't you proctor exams? The time spent is small, less than 10 hours a semester, and the proctors can answer student questions or make corrections and clarifications to test questions.

Because Caltech faculty (and, for undergraduate student exams, grad students) have better things to do with their time than proctor exams (and, perhaps more to the point, because Caltech wants to attract faculty and grad students that feel that they have better uses for their time that baby-sitting exams.)

And, frankly, like many aspects of the trust extended to Caltech students, its a recruitment policy -- Caltech is an extremely selective, extremely small school that is competing with other elite institutions to attract the best students.

Re:Linus Torvalds did not commit this by WalterBright on Tuesday August 04, 2015 @08:08PM (#10007238)
There's more to it than that. For example, I didn't feel any need to lock my dorm room door when going down the hall to the bathroom, and often never bothered to even close it. I never had anything stolen, nor did anyone else. (Not totally true, there were a couple instances where an outsider came in the unlocked dormitory doors and tried to boost something, but the other students gave chase and caught them.)

It's just nicer to live that way.

A friend of mine at UT had his room sacked the first week.

Re:Linus Torvalds did not commit this by maxerickson on Tuesday August 04, 2015 @07:54PM (#10007173)
Honor codes and not proctoring exams (rather, the students doing it themselves) are a fairly common feature of engineering colleges, it isn't really something that contributes to Caltech standing out.
Re:Linus Torvalds did not commit this by dragonwriter on Tuesday August 04, 2015 @07:57PM (#10007189)
> Honor codes and not proctoring exams (rather, the students doing it themselves) are a fairly common feature of engineering colleges, it isn't really something that contributes to Caltech standing out.

> Honor codes and not proctoring exams (rather, the students doing it themselves) are a fairly common feature of engineering colleges, it isn't really something that contributes to Caltech standing out.

I'm not saying Caltech is unique in doing that, I'm saying that in the universe Caltech operates in it would conflict with their recruiting interests -- both for faculty and students -- to operate in a different way.

Re:Linus Torvalds did not commit this by timr on Tuesday August 04, 2015 @08:41PM (#10007370)
Having proctored my fair share of exams...you're there primarily to answer questions, not to enforce anything. The student who wants to cheat will find a way to cheat.
Re:Linus Torvalds did not commit this by WalterBright on Tuesday August 04, 2015 @05:50PM (#10006508)
The reason was to emphasize that the students were trusted. Sometimes a professor would sit outside in the hall to answer questions, but he would not go in the room.

Most of the exams were take-home anyway, and included instructions giving a time limit and what reference material was allowed to be used.

Re:Linus Torvalds did not commit this by ectoplasm on Tuesday August 04, 2015 @06:06PM (#10006575)
To me this sounds like admin trying to save money. I found some more discussion in a couple places:

http://blog.sethroberts.net/2014/02/17/cheating-at-caltech/

https://www.quora.com/Are-all-exams-at-Caltech-take-home-exa...

Re:Linus Torvalds did not commit this by WalterBright on Tuesday August 04, 2015 @06:33PM (#10006703)
That's the first I've heard that it had anything to do with saving money, and I spent 4 years there. It does, however, make life easier for professors and students when you can trust each other.

I don't know what Caltech is like today. I attended in 70's, and the honor system was considered sacred by the students. If there were cheaters, they never bragged about it, and I don't know of any. I know one who fell asleep during his takehome exam, woke up and finished it, and so exceeded the time limit. He noted this on the exam. The professor replied back that he was very sorry and was forced to give him an F. The student repeated the (required) class next year.

The number of students who did poorly on exams argues that cheating was not widespread.

If the culture has changed in the intervening years, that makes me very sad.

Re:Linus Torvalds did not commit this by gertef on Tuesday August 04, 2015 @07:36PM (#10007070)
> The professor replied back that he was very sorry and was forced to give him an F. The student repeated the (required) class next year.

Wow, way to prize process over people. Why not let the student drop the class and just re-take the test next time around?

Is Caltech designed to teach science, or train paper-pushers?

Re:Linus Torvalds did not commit this by grayclhn on Tuesday August 04, 2015 @08:53PM (#10007429)
I don't know about caltech, but many universities replace an F grade if you retake the class.
Re:Linus Torvalds did not commit this by SamLL on Tuesday August 04, 2015 @10:13PM (#10007690)
In my day (ca. 2000) there was no "forced to give an F" and in fact it was very common for exam-takers to draw a line, write "everything below this line I did after the time limit", and get partial credit for it.
Re:Linus Torvalds did not commit this by WalterBright on Wednesday August 05, 2015 @01:52AM (#10008207)
Not that I recall. I don't think it's quite fair to do that, as it then becomes an infinite time exam.

But also consider that the midterm and the final were the entire grade. No credit was given for homework, showing up for class, etc. The rules about the exams were pretty clear.

However, if you had a borderline exam grade, but had done the homework diligently, the prof would use that as a tie breaker.

His fellow students thought the F was a bit harsh, but he conceded that it was fair and took his lumps with equanimity. I quite admired him for it. In the end, it didn't hurt him because he graduated and went on to a very successful career.

Re:Linus Torvalds did not commit this by Pyxl101 on Tuesday August 04, 2015 @11:01PM (#10007817)
You could at least ask the student how much time they took actively working on the exam, less the part where they fell asleep, and compare that to the time limit.
Re:Linus Torvalds did not commit this by WalterBright on Wednesday August 05, 2015 @01:41AM (#10008187)
The awake time spent on the test was under the time limit. The wall time was a few hours over.
Re:Linus Torvalds did not commit this by dragonwriter on Tuesday August 04, 2015 @06:45PM (#10006773)
> I don't know what Caltech is like today. I attended in 70's, and the honor system was considered sacred by the students. If there were cheaters, they never bragged about it, and I don't know of any.

I (briefly) attended in the early 1990s, and it was the same.

Re:Linus Torvalds did not commit this by vacri on Tuesday August 04, 2015 @07:37PM (#10007071)
> A student's honor that he didn't cheat is considered good enough.

Individual students certainly can have this integrity, but the demographic as a whole is demonstrably susceptible to cheating.

It also offends basic scientific process, in that it suggests that you don't need to bother with trying to make sure your results are robust; instead it relies on someone's word. Why bother having exams, then? Just ask "Do you think you understand the course material properly"?

Re:Linus Torvalds did not commit this by WalterBright on Tuesday August 04, 2015 @07:55PM (#10007176)
Many times I honestly believed I understood the material, only to fall way short on the exam :-) Scientists can honestly believe their (wrong) results are correct, because it's easy to have unintended sources of error. This is why others try to replicate results, it's not necessarily about catching cheaters.

Think of it like running a marathon. Is there any satisfaction from thinking "I honestly believe I can complete a marathon!" ? I don't think so, but there's a heluva lot from actually completing one. Same for a tough degree program.

Re:Linus Torvalds did not commit this by vacri on Tuesday August 04, 2015 @08:34PM (#10007345)
I agree with you, but the analogue is not scientists having their work replicated, it's doing the work in the first place. We don't accept 'trust me on this' in a scientific paper.

Regarding marathons, some people do cheat them - they're more interested in the social rewards than the personal growth. Some people flat-out lie about doing them at all. Different folks have different motivations.

Re:Linus Torvalds did not commit this by dragonwriter on Tuesday August 04, 2015 @07:52PM (#10007161)
> Individual students certainly can have this integrity, but the demographic as a whole is demonstrably susceptible to cheating.

Certainly demonstrably true of a significant portion of the demographic of "college students".

Caltech would probably argue that Caltech students are not a representative sample of college students, and that generalization from the more general class to the more specific here is a textbook example of the fallacy of division.

Re:Linus Torvalds did not commit this by vacri on Tuesday August 04, 2015 @07:59PM (#10007204)
That's a 'begging the question' fallacy, where the conclusion ('Caltech students are more honourable than that') is used as the premise (ditto).

Even if we all agree that Caltech students are not representative of college students in general, it doesn't automatically follow that there is no significant degree of cheating.

Re:Linus Torvalds did not commit this by dragonwriter on Tuesday August 04, 2015 @08:06PM (#10007233)
> That's a 'begging the question' fallacy, where the conclusion ('Caltech students are more honourable than that') is used as the premise (ditto).

No, its not. Rejecting the validity of an argument for p is not the same as making an argument for not-p.

Re:Linus Torvalds did not commit this by vacri on Tuesday August 04, 2015 @08:22PM (#10007307)
But that's exactly how you presented their supposed argument: "Caltech students don't cheat because they're not representative of the general student population", with the vague assumption that Caltech students are more honour-bound.

Not being representative of a population doesn't give any information about the makeup of the subsample, unless you have more information to add.

Re:Linus Torvalds did not commit this by dragonwriter on Tuesday August 04, 2015 @10:18PM (#10007702)
> But that's exactly how you presented their supposed argument: "Caltech students don't cheat because they're not representative of the general student population"

No, its not, which is why you had to present a "quote" that isn't to advance that story.

I presented how they would reject an argument from the general population, not positive argument for the absence of cheating at Caltech.

Re:Linus Torvalds did not commit this by vacri on Wednesday August 05, 2015 @12:26AM (#10008015)
What are you talking about? You presented the argument as a potential rebuttal to the claim that students cheat. It's inherently implied that it's an argument for the absence of cheating at Caltech... otherwise it wouldn't be a rebuttal at all, and instead is a non-sequitur fallacy.

Yes, if you strip away the context of the literal words you said, you're correct. But in context, you're not.

Re:Linus Torvalds did not commit this by WalterBright on Tuesday August 04, 2015 @08:00PM (#10007208)
An interesting question is does Caltech's admissions process select (unwittingly or otherwise) people who are likely to follow the honor system, or do people tend to rise to an expectation of integrity? I suspect the latter is more likely.

I also suspect that a university with strong anti-cheating measures is expecting students to cheat, and students will naturally fulfill that expectation.

Re:Linus Torvalds did not commit this by dragonwriter on Tuesday August 04, 2015 @08:08PM (#10007240)
> An interesting question is does Caltech's admissions process select (unwittingly or otherwise) people who are likely to follow the honor system, or do people tend to rise to an expectation of integrity?

I think the latter is definitely true, the former is probably true, and perhaps more importantly, Caltech's admissions process selects for people who are likely to view a system where rules are enforced primarily by monitoring as a challenge, making the alternative to trust being an arms race that consumes resources on both sides that could be more productively employed.

Re:Linus Torvalds did not commit this by vacri on Tuesday August 04, 2015 @08:18PM (#10007293)
Even if it selects for that trait, it doesn't mean that there isn't a significant level of cheating. You can reduce the incidence of X and still have problematic levels of X.

Edit: An example: the US homicide rate has fallen in recent years. That's good news. But the US still has a serious problem with homicide, as its homicide rate is an outlier at 4-5 times that of all other first-world nations. Americans are getting less murderous, but murder is still a serious problem there.

Re:Linus Torvalds did not commit this by chrisfosterelli on Tuesday August 04, 2015 @07:51PM (#10007155)
At my school many, many students cheat. This devalues the education that I'm getting and is frustrating to students who actually put in the time to study.
Re:Linus Torvalds did not commit this by WalterBright on Tuesday August 04, 2015 @08:03PM (#10007221)
It devalues your degree, but not your education. Having the confidence that you actually mastered the material is worth a great deal. Stay strong, dude.
Re:Linus Torvalds did not commit this by chrisfosterelli on Tuesday August 04, 2015 @08:09PM (#10007244)
True. You're right, it only devalues the degree but that's a huge part of the reason that I go to school at all.

Much of my education is self taught, and hour-for-hour knowledge-wise I believe my time could be better spent in self-directed learning, but that degree does have value and people who cheat make it worth less to employers and myself. I think it makes sense to try and catch people who abuse that.

Re:Linus Torvalds did not commit this by WalterBright on Tuesday August 04, 2015 @08:17PM (#10007281)
I understand your feelings on this, but after you've been working for 3 years or so, nobody is going to give a damn about your degree or where you got it. They'll value what you can do, and that's where your education will pay off.
Re:Linus Torvalds did not commit this by chrisfosterelli on Tuesday August 04, 2015 @08:31PM (#10007334)
I'm actually working, and for almost 3 years :)

I definitely agree with what you're saying, especially in startups it really isn't that relevant (part of why I like the startup community so much). But I do spend a lot of time outside startups as well, and that glass ceiling is definitely present in large companies and academia (especially academia).

Re:Linus Torvalds did not commit this by WalterBright on Tuesday August 04, 2015 @08:46PM (#10007394)
I wasn't clear. Having a degree is important and not having one is often a blocker. For example, you can't get a mechanical engineering job without a degree. (There are legal reasons for that as well.) Where it is from does not matter, nor does your GPA.
Re:Linus Torvalds did not commit this by wfunction on Tuesday August 04, 2015 @05:05PM (#10006289)
Your comment basically reads, "I cheated and got away with it, and I'm proud of it too. I'm so awesome! Take that, stupid professor!"
[deleted]
Re:Linus Torvalds did not commit this by philh on Tuesday August 04, 2015 @06:14PM (#10006604)
Finding the exploit and taking advantage of it are different.

"I discovered that if you rip the tags out of a library book, you can just walk out with it and the alarm won't go off!"

For some people, that would be a significant "a-ha!" moment. That doesn't mean they should go around stealing library books.

Re:Linus Torvalds did not commit this by dingaling on Wednesday August 05, 2015 @02:31AM (#10008275)
> "I discovered that if you rip the tags out of a library book, you can just walk out with it and the alarm won't go off!"

I recently went on a tour of my former university's new library building.

One thing that surprised me was that all the upper floors are set about six feet back from the exterior windows ( leaving an internal building-height vertical gap all the way around, so you can look over the railing down to the ground floor ).

When I enquired about this, the response was that it was to prevent the throw-book-out-of-window-and-collect-it-later trick that was apparently common with the old building!

[deleted]
Re:Linus Torvalds did not commit this by philh on Tuesday August 04, 2015 @06:43PM (#10006760)
It hurts, to a small extent, the people who don't cheat. They have six fewer hours to work in, their work gets compared to work which was created under different (easier) conditions. Even if there's no curve, it increases your grade (in expectation), and that higher grade means slightly less (in expectation). It increases what's expected of people next year.

None of this is a large effect when a single person does it, but the same is true of taking notes into exams. Would you do that?

Zooming out slightly: if you think cheating doesn't hurt anyone, why do you think there are rules against it?

[deleted]
Re:Linus Torvalds did not commit this by oldmanjay on Tuesday August 04, 2015 @06:53PM (#10006834)
Society isn't a group of people trying to get over on each other, but the small minority who thinks like you have given cause to authoritarians to treat all of us like we are you. It's a real shame you have to destroy to be happy, but at least you're proud of the fact that you want the world to be a shithole. We all need our pride!
Re:Linus Torvalds did not commit this by philh on Tuesday August 04, 2015 @06:50PM (#10006810)
Zooming back in, do you disagree with the mechanism I described, by which your cheating hurts people?
[deleted]
Re:Linus Torvalds did not commit this by philh on Tuesday August 04, 2015 @06:59PM (#10006864)
If everyone drives a car, people on average are better off. If everyone cheats, people on average are worse off. That's a very different tradeoff.
[deleted]
Re:Linus Torvalds did not commit this by philh on Tuesday August 04, 2015 @07:15PM (#10006944)
In a ten-player game, (a) stealing one utilon from everyone else and getting 20 for yourself is one kind of selfish tradeoff; and (b) stealing one utilon from everyone else and getting 5 for yourself is another kind of selfish tradeoff; and (c) giving one utilon to everyone else while gaining 10 for yourself is also a kind of selfishness.

Cheating is (b), driving is (a). (You seem to be arguing that driving is (b) - I disagree, but it's beside the point.) Capitalism mostly tries to encourage (c). We put some selfishness to work, yes; but we harness the selfishness of Henry Ford, and we punish the selfishness of Bernie Madoff.

[deleted]
Re:Linus Torvalds did not commit this by philh on Tuesday August 04, 2015 @07:53PM (#10007166)
The quantity means that (a) makes the world worse off and (b) makes it better off. That seems like a pretty significant difference to me.

> I never said my actions were capitalistic at all.

I got that impression from one of your deleted comments. Perhaps it wasn't intentional.

> If that makes me into an asshole and the world into a shithole, so be it.

That's not a "so be it" outcome, that's an "oh crap, let's try to avoid that" outcome. As a society, we try to avoid that by punishing (a). You can do your part by not doing (a) even if you think you can get away with it.

It's bedtime, so I'm tapping out now.

Re:Linus Torvalds did not commit this by sergiotapia on Tuesday August 04, 2015 @05:17PM (#10006340)
Don't hate the programmer, hate the tools. ;)
Re:Linus Torvalds did not commit this by wfunction on Tuesday August 04, 2015 @05:28PM (#10006398)
Or how about: don't hate the tools; hate the cheaters?
Re:Linus Torvalds did not commit this by sergiotapia on Tuesday August 04, 2015 @09:24PM (#10007542)
~ oh you Sweet summer child.
Re:Linus Torvalds did not commit this by mikecmpbll on Tuesday August 04, 2015 @05:21PM (#10006366)
and what is wrong with that?
Re:Linus Torvalds did not commit this by brokentone on Tuesday August 04, 2015 @04:16PM (#10005984)
...then procrastinated for 6 hours. Or is that just me?
Re:Linus Torvalds did not commit this by uniformlyrandom on Tuesday August 04, 2015 @06:15PM (#10006612)
Oh, it appears that git 2.3.2 only allows to go back as far as Dec 2014.

That is a pity. I have already prepared a README.md claiming that I have created the internet, but then I failed while trying to backdate it to 1969 (PDT). I was this close to becoming very rich and very evil. Oh well.

Re:Linus Torvalds did not commit this by seba_dos1 on Tuesday August 04, 2015 @06:26PM (#10006681)
Don't give up so easily - you have the source code! ;)
Re:Linus Torvalds did not commit this by uniformlyrandom on Tuesday August 04, 2015 @10:09PM (#10007680)
I got to my linux workstation, cloned the git repo and dug into the code. Could not figure out how the limitation worked though. Turned out, it did not - the problem was specific to my mac's git. So yes, you can author files from 1970 - it is not a big deal. Thought it was kind of a weird limitation.
Re:Linus Torvalds did not commit this by nailer on Tuesday August 04, 2015 @03:27PM (#10005641)
I guess the real uptake is that commits should really be signed by default (eg, by encouraging signing in the tools & ecosystem).
Re:Linus Torvalds did not commit this by ultramancool on Tuesday August 04, 2015 @03:39PM (#10005723)
Really, this only becomes a problem when services like GitHub link the name up, making it look more legitimate than it is. If they enforced authentication as that user before providing the linking it would be better (perhaps allowing approval of the linking if posted by a different user). Currently it's trivial to make it look like any GitHub user is an actual committer to some sort of egregious or controversial project and users unaware of how GitHub maps this may easily be confused.

EDIT: This gets even more disturbing when you realize that GitHub is a site many people list on their resumes and if this association applies from their user page too this could get very bad.

Re:Linus Torvalds did not commit this by uxcn on Tuesday August 04, 2015 @04:30PM (#10006080)
The simple solution seems to be github just distinguishing between signed and non-signed commits.
Re:Linus Torvalds did not commit this by Maken on Tuesday August 04, 2015 @04:04PM (#10005903)
Apparently Github doesn't list those faked commits in your profile. Which is anyway a problem because you could be "committing" to who knows what project project without being notified.
Re:Linus Torvalds did not commit this by rakoo on Tuesday August 04, 2015 @05:52PM (#10006517)
I disagree, the real problem here is people thinking that somehow any github repository can be a trusted source. If you work on Linux, you know that the one and only source of truth is the repo that comes from Linus himself, not anything coming from github.
Re:Linus Torvalds did not commit this by icebraining on Tuesday August 04, 2015 @07:07PM (#10006902)
Linus doesn't distribute anything himself; you can either have the copy hosted by Github, or the one hosted by a Californian nonprofit called the Linux Kernel Organization, Inc.
Re:Linus Torvalds did not commit this by icebraining on Tuesday August 04, 2015 @03:58PM (#10005849)
It doesn't seem to link in reverse to the user page; at least, I can't find anything on Linus' page related to this repo.
Re:Linus Torvalds did not commit this by _delirium on Tuesday August 04, 2015 @04:29PM (#10006073)
There's a Github help page explaining when commits show up in your profile (though worded as an answer for people wondering why one didn't): https://help.github.com/articles/why-are-my-contributions-no...

The criteria not fulfilled for this one are that you have to have interacted with the repository on Github in some way. Any one of these criteria would suffice: you're a "collaborator" on the repository, you're a "member" of the organization the owns the repository, you have forked or starred the repository, you have opened a pull request or issue in the repository.

Re:Linus Torvalds did not commit this by sytse on Tuesday August 04, 2015 @04:58PM (#10006240)
We would love support for signed commits in GitLab itself so you can check the signature from the web-interface http://feedback.gitlab.com/forums/176466-general/suggestions...
Re:Linus Torvalds did not commit this by micampe on Tuesday August 04, 2015 @04:47PM (#10006182)
Signing my commits doesn’t prove that I didn’t do an unsigned one.