--- Log opened Fri May 03 00:00:04 2013 |
00:05 | | Reiver [quassel@Nightstar-3762b576.co.uk] has quit [Z-Lined: Your IP range has been attempting to connect too many times in too short a duration. Wait a while, and you will be able to connect.] |
--- Log closed Fri May 03 00:05:45 2013 |
--- Log opened Fri May 03 00:10:48 2013 |
00:10 | | TheWatcher[zZzZ] [chris@Nightstar-3762b576.co.uk] has joined #code |
00:10 | | Irssi: #code: Total of 38 nicks [15 ops, 0 halfops, 0 voices, 23 normal] |
00:10 | | mode/#code [+o TheWatcher[zZzZ]] by ChanServ |
00:11 | | Irssi: Join to #code was synced in 35 secs |
00:22 | | himi-cat [fow035@D741F1.243F35.CADC30.81D435] has joined #code |
00:45 | <&Derakon> | Argh, git, why are you not letting me restore these files to their unmodified state? |
00:45 | <&Derakon> | "git checkout - filename" is supposed to undo any uncommitted modifications, right? But it does nothing in this case. |
00:45 | <&McMartin> | You need two dashes. |
00:45 | <&McMartin> | Presumably because SVN does not~ |
00:45 | <&Derakon> | Heh. |
00:46 | <&Derakon> | Sadly that doesn't work either. |
00:46 | <&McMartin> | Hrm. |
00:46 | <&McMartin> | That is unusual. |
00:46 | <&McMartin> | Has it been git add'd, but not committed? |
00:46 | <&McMartin> | You may need to reset it instead. |
00:46 | <&Derakon> | I tried "git reset HEAD filename" and that didn't work either. |
00:47 | <&McMartin> | How about resetting with --hard? |
00:47 | <&Derakon> | "Cannot do hard reset with paths" even though I specified each filename fully. |
00:48 | <&Derakon> | Oh wait, I have to do it to the entire repo, I guess. |
00:48 | <&Derakon> | Okay, that worked. Sheesh! |
00:48 | < RichyB> | "git checkout - filename" will certainly not do what you want. |
00:48 | <&Derakon> | All I wanted to do was pull the remote down, but since I had modified files locally it wouldn't let me. |
00:49 | < RichyB> | You had (as well as the fact that git checkout's syntax is a bit off) a shell grammar misconception |
00:49 | <&Derakon> | git's everything syntax is a bit off. |
00:49 | < RichyB> | Commands with getopt()-style argument parsing (almost every Unix command that doesn't suck) use "--" to specify "this is where the list of options ends and arguments may follow" |
00:49 | < RichyB> | e.g |
00:50 | < RichyB> | /bin/foo -v -x ./blah # sets the "-v" flag, the "-x" flag and passes the arguments list ["./blah"] |
00:50 | <&Derakon> | Right, thanks. |
00:50 | < RichyB> | /bin/foo -v -- -x ./blah # sets the "-v" flag and passes the arguments list, ["-x", "./blah"] (but doesn't set the "-x" flag) |
00:50 | <&Derakon> | It's not something I use at all often outside of wanting to undo changes that I haven't committed yet in git repositories. |
00:51 | <&Derakon> | (In Mercurial this would just be "hg revert filenames" but git uses "revert" for something entirely different that is also different from how revert is used in every other program in existence~) |
00:51 | < RichyB> | git revert is the same thing as darcs rollback. |
00:51 | < RichyB> | Creates a patch that is the inverse of some other commit. |
00:52 | <&Derakon> | I had not heard of darcs before. |
00:52 | <&Derakon> | But if you want to invert a commit you could just do e.g. in mercurial "hg diff -r commit1 -r commit2", IIRC. |
00:53 | < RichyB> | Sweet. http://www.unrealengine.com/html5/ |
00:53 | <&Derakon> | I mean, creating patches is not something I would expect the "revert" command to do; it feels like they created that mnemonic specifically so they could have revert be useless instead of doing what normal users without prior git experience would expect. ?.? |
00:54 | | Turaiel[Offline] is now known as Turaiel |
01:45 | | VirusJTG_ [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has joined #code |
01:48 | | VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has quit [Ping timeout: 121 seconds] |
01:48 | | Pandemic [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has joined #code |
01:48 | | mode/#code [+o Pandemic] by ChanServ |
02:23 | | * McMartin eyes the NT error codes. |
02:23 | <&McMartin> | 0xC0000156 STATUS_TOO_MANY_SECRETS |
02:34 | | Turaiel [Brandon@Nightstar-27972c27.resnet.mtu.edu] has quit [[NS] Quit: ZNC - http://znc.in] |
02:36 | <&Derakon> | Hee. |
02:39 | <&McMartin> | re: git revert: That one isn't *purely* spite the way checkout is~ |
02:40 | <&McMartin> | Viz. svn revert only does anything permanently when you commit that reversion. |
02:40 | <&McMartin> | Also, "reverting creates commits" is less nonsensical when you instead treat git as a purely functional data structure~ |
02:46 | <&Derakon> | Well, my gripe with revert is that in every other program I'm familiar with, revert is "discard my changes and return to the state as of my last save". |
02:46 | <&Derakon> | git is the only program I've used that has it mean something different. |
03:29 | | VirusJTG_ [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has quit [[NS] Quit: Program Shutting down] |
03:47 | | sykslep [the@Nightstar-02983f30.iinet.net.au] has quit [Ping timeout: 121 seconds] |
03:49 | <&McMartin> | Mmmm |
03:49 | <&McMartin> | Oh, right |
03:49 | <&McMartin> | git revert is svn merge -r |
03:49 | <&McMartin> | Guess what the "r" stands for~ |
03:49 | <&McMartin> | Hint: not "recursive" |
03:50 | | Turaiel[Offline] [Brandon@Nightstar-949d7402.resnet.mtu.edu] has joined #code |
03:52 | | Turaiel[Offline] is now known as Turaiel |
04:03 | | Kindamoody[zZz] is now known as Kindamoody |
04:23 | | * ToxicFrog_ upreads |
04:23 | | ToxicFrog_ is now known as ToxicFrog |
04:23 | | mode/#code [+ao ToxicFrog ToxicFrog] by ChanServ |
04:23 | <&ToxicFrog> | The -- is a general linux command line thing, actually, it's hardly git specific |
04:23 | <&ToxicFrog> | "git checkout HEAD -- <paths>" will reset those paths, or you can use git gui and press ctrl-J |
04:24 | <&ToxicFrog> | Or "git reset --hard HEAD" to throw away everything rather than just specific paths. |
04:25 | <&ToxicFrog> | (also, git revert owns owns owns, the only valid criticism of it is that it's called revert rather than rollback) |
04:26 | <&Derakon> | (That's the criticism I'm leveling, yes) |
04:26 | <&Derakon> | (In general git's mnemonics are horrible. |
04:26 | <&Derakon> | ) |
04:27 | <&ToxicFrog> | (yeah, as much as I love git's semantics, its UI desperately needs a rework) |
04:28 | <&ToxicFrog> | (checkout does like six different things, half the commands are collisions with different commands from other VCSes that didn't need to be, and there's no consistency with argument conventions so you have e.g. branch -d vs. remote rm) |
04:29 | <@froztbyte> | ToxicFrog: this is also my main complaint about git |
04:29 | <@froztbyte> | and I expect gigantic hilarity if the UI is ever fixed |
04:29 | <&ToxicFrog> | Make it a configuration option~ |
04:29 | <@froztbyte> | because the internet is littered with posts of "how do I X with git?" |
04:30 | <&ToxicFrog> | git config --global core.nonsensicalui false |
04:30 | <&ToxicFrog> | And all of those posts would now be wrong, yeah |
04:30 | <&ToxicFrog> | It'll never happen, because it would break all the things |
04:30 | <@froztbyte> | sounds like a perfect reason to do it |
04:31 | <&ToxicFrog> | But seriously, copy checkout's "copy individual paths from the repo" functionality into revert, rename what is now revert rollback, standardize on an argument convention for the various commands, and you're most of the way there, I think. |
04:40 | <&McMartin> | s/that didn't need to be/explicitly for spite as part of the design criteria/ |
04:59 | <@celticminstrel> | Clearly what they need to do if they redo the UI is to give it a new name. |
06:21 | | AverageJoe [evil1@Nightstar-4b668a07.ph.cox.net] has joined #code |
06:25 | | Turaiel is now known as Turaiel[Offline] |
06:39 | | Derakon is now known as Derakon[AFK] |
06:43 | | ErikMesoy|sleep is now known as ErikMesoy |
06:44 | | celticminstrel [celticminst@Nightstar-e83b3651.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!] |
07:02 | | AverageJoe [evil1@Nightstar-4b668a07.ph.cox.net] has quit [[NS] Quit: Leaving] |
07:36 | | himi-cat [fow035@D741F1.243F35.CADC30.81D435] has quit [Ping timeout: 121 seconds] |
08:05 | | Syka [the@Nightstar-07fb952f.iinet.net.au] has joined #code |
08:29 | | Syka_ [the@Nightstar-aa741e4f.iinet.net.au] has joined #code |
08:31 | | Syka [the@Nightstar-07fb952f.iinet.net.au] has quit [Ping timeout: 121 seconds] |
08:33 | | You're now known as TheWatcher |
08:36 | | Kindamoody is now known as Kindamoody|out |
09:38 | | himi-cat [fow035@Nightstar-5d05bada.internode.on.net] has joined #code |
10:04 | | RichyB [richardb@Nightstar-86656b6c.cable.virginmedia.com] has quit [Ping timeout: 121 seconds] |
10:31 | | Syka_ is now known as Syk |
10:59 | | RichyB [richardb@58734C.5279B7.EA7DF8.107330] has joined #code |
11:38 | | VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has joined #code |
13:03 | | Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [Operation timed out] |
14:08 | | RichyB [richardb@58734C.5279B7.EA7DF8.107330] has quit [Ping timeout: 121 seconds] |
14:25 | | RichyB [richardb@58734C.5279B7.EA7DF8.107330] has joined #code |
14:25 | | celticminstrel [celticminst@Nightstar-e83b3651.cable.rogers.com] has joined #code |
14:25 | | mode/#code [+o celticminstrel] by ChanServ |
14:33 | | Alek [omegaboot@Nightstar-56dbba0f.in.comcast.net] has quit [Ping timeout: 121 seconds] |
14:36 | | celticminstrel [celticminst@Nightstar-e83b3651.cable.rogers.com] has left #code [] |
14:36 | | celticminstrel [celticminst@Nightstar-e83b3651.cable.rogers.com] has joined #code |
14:36 | | mode/#code [+o celticminstrel] by ChanServ |
14:37 | | Alek [omegaboot@Nightstar-56dbba0f.in.comcast.net] has joined #code |
14:37 | | mode/#code [+o Alek] by ChanServ |
15:28 | | RichyB [richardb@58734C.5279B7.EA7DF8.107330] has quit [Ping timeout: 121 seconds] |
15:30 | | ToxicFrog is now known as ToxicFrog|W`rkn |
15:46 | | RichyB [richardb@58734C.5279B7.EA7DF8.107330] has joined #code |
16:12 | <@iospace> | ... my database teacher showed what we have to do for our next assignment. One of the example people in the database? Gordon Freeman |
16:12 | <@iospace> | who works at Black Mesa Clinic |
16:13 | <@Tamber> | :D |
16:30 | <@gnolam> | Does that mean that you have to add ON RESONANCE CASCADE rules? |
16:35 | < Syk> | hee |
16:40 | | Syk is now known as syksleep |
17:02 | | Derakon [Derakon@Nightstar-a3b183ae.ca.comcast.net] has joined #code |
17:02 | | mode/#code [+ao Derakon Derakon] by ChanServ |
17:05 | | Derakon[AFK] [Derakon@Nightstar-a3b183ae.ca.comcast.net] has quit [Ping timeout: 121 seconds] |
17:17 | | You're now known as TheWatcher[afk] |
17:21 | | Turaiel[Offline] [Brandon@Nightstar-949d7402.resnet.mtu.edu] has quit [[NS] Quit: ZNC - http://znc.in] |
17:28 | < RichyB> | gnolam: the Black Mesa Incident was actually a complicated INSERT statement that caused a TRIGGER to fire which performed a self-triggering insert, causing the universe to run out of disk space so that The Great DBA With Many Tentacles panicked and issues an overenthusiastic DELETE statement, leaving behind a hole in the universe through which aliens invaded? |
17:51 | < [R]> | > NaN == NaN |
17:51 | < [R]> | false |
17:51 | < [R]> | WTF JS |
17:51 | <@Tamber> | "JS is TRWTF" |
17:51 | < RichyB> | Wrong. |
17:51 | < RichyB> | [R]: that's JS doing exactly the right thing. |
17:52 | < RichyB> | That's what the IEEE754 spec says the result should be. |
17:52 | < ErikMesoy> | It's perfectly reasonable. |
17:52 | <@Tamber> | "IEEE754 is TRWTF"? |
17:52 | < RichyB> | (NaN == NaN) also evaluates to either 0 or False in: |
17:52 | < ErikMesoy> | "NaN" is, as the name suggests, not a number. |
17:52 | < RichyB> | C, Python, Haskell, JS, Java... |
17:52 | <@Tamber> | Screw it; I'll just go straight to the root of the problem. "Computers are TRWTF" :D |
17:52 | < [R]> | One would expect NaN to equal itself |
17:52 | < ErikMesoy> | But there is no "itself". |
17:53 | | * [R] can't figgure out how to check to see if he's got NaN from a result or not now. |
17:53 | < [R]> | Which is a fucking stupid problem to have. |
17:53 | < ErikMesoy> | NaN is the catch-all of "not X, not Y, not Z, not something else that can be sanely represented". |
17:53 | < RichyB> | The IEEE754 spec says that it should not and every practical computer language on the planet goes with the IEEE754 spec. |
17:53 | < RichyB> | Don't blame JS for it. |
17:53 | < RichyB> | ErikMesoy: right. |
17:53 | < ErikMesoy> | Think of it as seeing two strangers, identifying them both as "Not a relative". |
17:53 | < ErikMesoy> | This doesn't mean they're the same person. |
17:54 | < RichyB> | asin(2) is a NaN. 0 / 0 is a NaN. There's no way to know whether they're the same thing, so an equality test returns false. |
17:54 | <@Tamber> | Ia! Ia! NaN fthagn! |
17:54 | <@Tamber> | (...fthNaN?) |
17:55 | < [R]> | There's an isNaN function... which isn't part of Number. |
17:55 | < [R]> | Eitherway, I'm good now |
17:56 | < [R]> | Still stupid |
17:57 | < ErikMesoy> | Is it less stupid if you think of NaN as a basin for everything that isn't a value, rather than a value in itself? |
17:57 | | Hermit is now known as Wires |
17:58 | < [R]> | It's a result that certain functions return as an error, not being able to check for said error /in an intuitive way/ is stupid. |
17:59 | < [R]> | By your logic null === null should also be false. Since null is nothing. |
18:01 | < RichyB> | Er... |
18:01 | < RichyB> | In SQL, (null = null) returns null rather than false. :) |
18:01 | < ErikMesoy> | But NaN isn't nothing. |
18:02 | < ErikMesoy> | NaN is "something that I don't understand". I can't tell whether two things I don't understand are the same thing. |
18:02 | < RichyB> | There are historical things here too. |
18:02 | < RichyB> | In a modern programming language, if you try to do anything with null then you get something called a NullPointerException. |
18:03 | < RichyB> | In a supercomputer from 1985 (which is when the IEEE754 spec was written), there is no good way to have a synchronous exception be thrown as soon as some ALU tries to add a NaN to another number. |
18:03 | < RichyB> | Arguably it's problematic for a supercomputer from 2013 too. :) |
18:03 | < [R]> | > [null == null, null === null, NaN == NaN, NaN === NaN] |
18:03 | < [R]> | [ true, true, false, false ] |
18:03 | < [R]> | I would expect the fourth to be true at the very least. |
18:04 | < ErikMesoy> | What's === in the language at hand? |
18:04 | < [R]> | IIRC they're equal without type-boxing. |
18:05 | < [R]> | Because even if it's "incorrect" it's at least intuitive. |
18:05 | < ErikMesoy> | Not familiar with that. |
18:05 | < [R]> | PHP and JS both have it. |
18:06 | < [R]> | I know in PHP it's "equal without automatic type mutation", JS I'm unsure of |
18:25 | <&ToxicFrog|W`rkn> | ===, in languages that have it, is generally exact equality without coercion. 1 === "1" is false even if 1 == "1" is true. |
18:26 | <&ToxicFrog|W`rkn> | re NaNchat - there's also a lot of different ways to represent NaN, which makes efficiently comparing it for equality problematic unless you normalize it first every time, which no-one wants to do. |
18:34 | <&ToxicFrog|W`rkn> | (also, the IEEE 754 spec does allow "noisy" NaNs that raise FPE when interacted with. No-one uses them.) |
18:38 | | VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has quit [Client closed the connection] |
18:39 | | VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has joined #code |
18:45 | < RichyB> | Signalling NaNs. |
18:45 | < RichyB> | I don't know how to turn them on. |
18:52 | <&ToxicFrog|W`rkn> | RichyB: set the high bit and at least one other bit of the mantissa. |
18:52 | <&ToxicFrog|W`rkn> | Er |
18:52 | <&ToxicFrog|W`rkn> | unset the high bit and set at least one other bit, rather. |
18:54 | <&ToxicFrog|W`rkn> | I have no idea how you actually implement sNaN signal handling, though. |
18:54 | <&ToxicFrog|W`rkn> | It's probably horrible. |
18:56 | | RichyB [richardb@58734C.5279B7.EA7DF8.107330] has quit [Ping timeout: 121 seconds] |
19:29 | | Kindamoody|out is now known as Kindamoody |
20:22 | | Kindamoody is now known as Kindamoody[zZz] |
20:47 | | Derakon [Derakon@Nightstar-a3b183ae.ca.comcast.net] has quit [Ping timeout: 121 seconds] |
20:48 | | Derakon [Derakon@Nightstar-a3b183ae.ca.comcast.net] has joined #code |
20:48 | | mode/#code [+ao Derakon Derakon] by ChanServ |
20:49 | | Orthia [orthianz@3CF3A5.E1CD01.B089B9.1E14D1] has quit [Ping timeout: 121 seconds] |
21:01 | | Orthia [orthianz@3CF3A5.E1CD01.B089B9.1E14D1] has joined #code |
21:01 | | mode/#code [+o Orthia] by ChanServ |
21:37 | | Rhamphoryncus [rhamph@Nightstar-948421b4.abhsia.telus.net] has joined #code |
21:37 | | mode/#code [+o Rhamphoryncus] by ChanServ |
21:40 | | Orthia [orthianz@3CF3A5.E1CD01.B089B9.1E14D1] has quit [Ping timeout: 121 seconds] |
21:40 | | syksleep [the@Nightstar-aa741e4f.iinet.net.au] has quit [Ping timeout: 121 seconds] |
22:08 | | Wires is now known as AnnoDomini |
23:33 | | himi-cat [fow035@Nightstar-5d05bada.internode.on.net] has quit [Connection closed] |
23:44 | | ErikMesoy is now known as ErikMesoy|sleep |
23:45 | <@celticminstrel> | Hm... wonder if what I want is even possible... |
23:46 | | * celticminstrel wants to negate a subexpression of a regex. |
23:46 | <@celticminstrel> | So that if the subexpression matches, the whole match fails. |
23:47 | <@celticminstrel> | I suppose I could use (?!)... |
23:55 | | himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code |
23:55 | | mode/#code [+o himi] by ChanServ |
23:56 | | celticminstrel [celticminst@Nightstar-e83b3651.cable.rogers.com] has quit [[NS] Quit: KABOOM! It seems that I have exploded. Please wait while I reinstall the universe.] |
23:56 | | celticminstrel [celticminst@Nightstar-e83b3651.cable.rogers.com] has joined #code |
23:56 | | mode/#code [+o celticminstrel] by ChanServ |
--- Log closed Sat May 04 00:00:18 2013 |