--- Log opened Wed Dec 07 00:00:15 2011 |
00:07 | | You're now known as TheWatcher[T-2] |
00:18 | | You're now known as TheWatcher[zZzZ] |
00:49 | | * Derakon starts coding, ends up in fairly short order with a 132-line Python script that can solve very simple Sudoku puzzles. |
00:50 | < Derakon> | The only way it can fill in blanks is if it can see that a specific cell is directly blocked from being anything except the target value. |
00:58 | <~Vornicus> My sudoku solver in Python is 50 lines long. (this being euler #96) |
01:01 | < Alek> | If you want to find a person's profession, ask them what the opposite of 1 is. |
01:01 | < Alek> | if they say "0", they're a programmer. |
01:01 | < Alek> | if they say "-1", they're an engineer. |
01:02 | <@Namegduf> | I have this theory I should say "1". |
01:02 | < Derakon> | Vorn: I could pretty well certainly do it in fewer lines if I allowed for guessing. |
01:02 | < Alek> | if they say "-i", a mathematician. |
01:02 | <@Namegduf> | Because it's the multiplicative identity. |
01:02 | < Alek> | if they say "the absence of 1", they're a quartermaster. |
01:02 | <~Vornicus> Der: mine sorts by the number of possibilities. |
01:02 | <~Vornicus> ANd then recurses down, retrying when it fails. |
01:03 | < Derakon> | I'm also not aiming for compactness, really. |
01:03 | | Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code |
01:03 | < Derakon> | Though I'll grant the overall design could be cleaner. |
01:03 | < Alek> | "My mother doesn't allow me to install more than 8 gigs of memory. I'm gonna go buy a new mother." |
01:10 | | Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [Ping timeout: 121 seconds] |
01:21 | | Attilla [Obsolete@Nightstar-31d6e227.as43234.net] has quit [Ping timeout: 121 seconds] |
--- Log closed Wed Dec 07 01:29:15 2011 |
--- Log opened Wed Dec 07 01:29:27 2011 |
01:29 | | TheWatcher[zZzZ] [chris@Nightstar-3762b576.co.uk] has joined #code |
01:29 | | Irssi: #code: Total of 27 nicks [5 ops, 0 halfops, 0 voices, 22 normal] |
01:30 | | Irssi: Join to #code was synced in 48 secs |
01:32 | | Vash is now known as Vash[SkywardSword] |
01:36 | < celticminstrel> | Nice one, Alek. |
01:36 | < celticminstrel> | Not the mother one, the other one. |
01:42 | < Alek> | :P |
01:45 | < celticminstrel> | Namegduf's add-on was pretty good too. |
01:49 | | * Derakon mutters at git. |
01:50 | < Derakon> | I want to view a file as it was in a previous revision. |
01:50 | < Derakon> | The Internet says to do "git checkout <insert revision identifier>". |
01:50 | < Derakon> | Git says "fatal: reference is not a tree: <insert revision identifier>" |
01:51 | < Derakon> | Which is a pretty obtuse error message. |
01:53 | < Derakon> | Every time I use git I come to the conclusion that while it may work fine if you know what you're doing, it's one hell of a lot less intuitive than Mercurial. |
01:53 | < celticminstrel> | Maybe "git checkout <branch> <revision identifier>"? |
01:53 | | * celticminstrel is just guessing here really. |
01:54 | < Derakon> | "git checkout master 85fb38fd76" -> "error: pathspec '85fb38fd76' did not match any file(s) known to git." |
01:55 | < Tamber> | "git checkout <file> <revision>", perhaps? |
01:55 | < Derakon> | No, same error. |
01:55 | < Tamber> | Hm |
02:00 | | gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has quit [[NS] Quit: Z?] |
02:12 | < ToxicFrog> | Derakon: git checkout revision -- path |
02:18 | | Kindamoody[zZz] is now known as Kindamoody |
02:27 | < Derakon> | "fatal: invalid reference: 85fb38fd76". |
02:27 | < Derakon> | Or if I try the commit tag (the giant hex string) I get "fatal: reference is not a tree: <giant hex string>" |
02:31 | < ToxicFrog> | Um |
02:31 | < ToxicFrog> | Are you sure you're passing in the path of a file that actually exists in that commit? |
02:31 | < ToxicFrog> | Also |
02:31 | < ToxicFrog> | If you just want "view" and don't care about "manipulate" |
02:32 | < Derakon> | That particular file has been around for years, so it had better exist in that commit. |
02:32 | < ToxicFrog> | Just use gitk. |
02:32 | < Derakon> | Hm, interesting... |
02:33 | < ToxicFrog> | Tick "tree" instead of "patch" and you can get the full contents of any file in any commit. |
02:34 | < ToxicFrog> | (try gitk --all if what you want is on some isolated branch that isn't showing up otherwise) |
02:35 | < Derakon> | Okay, found what I needed, finally. |
02:35 | < McMartin> | What was it? |
02:36 | < Derakon> | All I really want from git is the equivalent of "hg history -v", "oh, there's the commit I want to look at", "hg revert -r commit number filename". |
02:36 | < Derakon> | Comparing the specification for a monster to what it used to be, because it was kicking my ass all over the dungeon. |
02:36 | < ToxicFrog> | That said, it's weird that '$ git checkout c7aba1c46194fa2d12bf9b6d3a702d1e079e6109 -- client/init.lua' or similar is giving you 'invalid reference' if you know the commit ID and path are correct. |
02:37 | < ToxicFrog> | What does -v do? |
02:37 | < Derakon> | Verbose. |
02:37 | < ToxicFrog> | ...also, does revert resurrect an old file, edit history, or create a new commit that is the converse of an earlier one? |
02:38 | < Derakon> | Re: old files, you can pass it paths to files that no longer exist. |
02:38 | < McMartin> | I know Linus hates SVN, but I do question whether it was really necessary to use all the same keywords for commands, just redefined for maximum destruction. |
02:38 | < Derakon> | For the other two, dunno; what are they and why would I care? |
02:39 | < ToxicFrog> | Right, but if you say "hg revert someoldcommit foo.c", do you get an uncommitted change "added/edited foo.c", or a new commit "reversed the changes oldcommit made to foo.c"? |
02:40 | < Derakon> | You get a modified foo.c. |
02:40 | < Derakon> | No change is made to the history. |
02:40 | < ToxicFrog> | Ok. |
02:40 | < Derakon> | Not until you commit that modification, anyway. |
02:41 | < ToxicFrog> | In that case, the equivalent is git log -p <filenames> to get the commit ID followed by git checkout <commit-id> -- <filenames> |
02:42 | < Derakon> | That worked. |
02:42 | < Derakon> | I think what happened here is that the commit ID I was getting from the website was wrong somehow. |
02:43 | < ToxicFrog> | You can also replace git log with gitk -- <filenames> or just gitk, if you prefer a GUI. |
02:44 | < Derakon> | Generally I don't, since GUIs aren't greppable as easily. |
02:44 | | * Derakon now tries to remember how to tell git to revert the file back to its unmodified form, tries various likely-looking commands, fails every time. |
02:44 | < ToxicFrog> | Um |
02:45 | < ToxicFrog> | What do you mean by "unmodified form" here? |
02:45 | < ToxicFrog> | Because I can think of at least three possibilities |
02:45 | < Derakon> | I mean the form it had as of the most recent commit. |
02:45 | < ToxicFrog> | git checkout HEAD -- path |
02:45 | < Derakon> | (In Mercurial this would just be "hg revert path") |
02:45 | < Derakon> | Thanks. |
02:47 | < ToxicFrog> | (you use 'git checkout' to recall files (or entire commits) out of history, where "history" includes "the current commit"; 'git revert' is used to generate new commits that reverse the changes of old ones) |
02:48 | < ToxicFrog> | (there's also git reset --hard HEAD && git clean -fxd to reset the entire working copy to exactly as it was in HEAD, including deleting any unversioned files.) |
02:49 | < celticminstrel> | Huh, people are using underline. Interesting idea. |
03:21 | <~Vornicus> ...why... why would -i be the mathematician's answer? |
03:21 | | * Vornicus sat there and puzzled over it while playing Zelda and couldn't figure it out |
03:22 | <~Vornicus> I mean, it's orthogonal to 1, it's certainly not opposite. |
03:22 | < celticminstrel> | Heh. |
03:22 | < Derakon> | They're just being contrary. |
03:22 | < celticminstrel> | I definitely liked Namegduf's suggestion for that better. |
03:23 | <~Vornicus> pff |
03:28 | < Derakon> | (Which Zelda?) |
03:29 | | * Vash[SkywardSword] points to her nick |
03:29 | < Vash[SkywardSword]> | He was playing it, I was watching. |
03:30 | | Vash[SkywardSword] is now known as Vash |
03:31 | < Derakon> | Ah. |
03:31 | < Derakon> | How is? |
03:34 | <~Vornicus> Pretty good; however the sword-holding monsters in particular are somewhat frustrating, because I can't reliably sword them. THey, um. Defend too quickly? |
03:34 | < Derakon> | Do you have the enhanced motion control or just the basic wiimote? |
03:36 | < Vash> | I thought you had to play with motion sensor or it didn't work? |
03:36 | < Derakon> | Oh, you do? |
03:36 | < Derakon> | Bah. |
03:36 | < Vash> | (I bought the special edition skyward sword thing, comes with a motion sensor wiimote... GOLDEN wiimote with the hyrulian bird logo) |
03:37 | < Vash> | I think so |
03:37 | < Derakon> | Heh. |
03:37 | < Vash> | Vorn likes Zelda games |
03:37 | < Vash> | I'm the zelda fan/nerd |
03:37 | < Derakon> | Yes, I remember. |
03:38 | < Derakon> | Random: have you seen this? http://img202.imageshack.us/img202/7280/zeldamaps.jpg |
03:40 | < Vash> | Nope. |
03:41 | < Vash> | I noticed that the second map was zelda one, had to ask vorn what the first one was. >_> because I have not actually *gasp* played zelda two. It's like the 2nd game in the franchise I haven't played (not including the CD-i games) |
03:41 | < McMartin> | The CD-i games don't count |
03:41 | <~Vornicus> On the other hand: the "beetle" tool is ridiculously cool. |
03:41 | < Alek> | actually, wasn't zelda 2 the side-scroller? |
03:41 | < McMartin> | It was |
03:41 | <~Vornicus> What CD-i Games? |
03:41 | < Vash> | Well, I have it for the GC (the special edition thing) |
03:42 | < McMartin> | It's a very different sort of game |
03:42 | < Vash> | exactly |
03:42 | < McMartin> | But still a fairly good one |
03:42 | < Alek> | so the map there couldn't have been from Zelda 2. >_> |
03:42 | <~Vornicus> Zelda 2: 'top down' overworld vaguely like say Dragon Warrior |
03:42 | < Vash> | that's why I dont' really like playing it. it throws me off |
03:42 | <~Vornicus> THen when you get in a fight, it's side scrolling. |
03:42 | < Alek> | ah. hm. ok. |
03:42 | <~Vornicus> Well, fight, or town. |
03:43 | < Alek> | yeah, the top-down to side-scroll-battle only works for me with RPGs. otherwise it throws me off. |
03:43 | < Alek> | and actually, even action RPGs like the Tales games throw me off a little with that. |
03:43 | <~Vornicus> Zelda 2 also has experience. |
03:44 | < Vash> | actually, I think I was better with the few tales games I've played |
03:44 | < Alek> | it's why I've been unable to get far in any Tales game. |
03:44 | < Alek> | :/ |
03:44 | < Alek> | although I DO want to play them all eventually. |
03:44 | < Alek> | I have some of the PSX ones. |
03:45 | < Vash> | (only have played phantasia, symphonia 1 and 2, a bit of vesperia) |
03:45 | < Vash> | I wanted to play abyss, but never got it. I DID watch the anime, though. |
03:48 | < Alek> | are the tales games linked story-wise, or are they basically a FF-style thing? |
03:48 | < Alek> | ditto Star Ocean? |
03:49 | < Alek> | for that matter, ditto Seiken Densetsu? |
03:49 | < Vash> | same as those |
03:49 | < Vash> | except for symphonia 1 and 2 |
03:49 | < Vash> | >_> |
03:49 | < Vash> | they have similar healing things and stuffs, but story is different and stuff |
03:49 | < Vash> | like the others |
03:49 | | * Alek nods. |
03:49 | < Alek> | so like FF? |
03:50 | < Alek> | and the others are as well? |
03:50 | < Alek> | thanks. I'd been wondering. |
03:57 | < Derakon> | Yeah, to my knowledge all of the series you named are linked only by theme and game style. |
03:58 | < Derakon> | I do know that ToSymphonia is a distant prequel to ToPhantasia. |
03:58 | < Derakon> | But it's not like it matters in the slightest. |
04:04 | | Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has quit [Client closed the connection] |
04:04 | | Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has joined #code |
04:55 | | Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has quit [Ping timeout: 121 seconds] |
05:01 | | Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has joined #code |
05:55 | | Vash [Vash@Nightstar-8697fea9.wlfrct.sbcglobal.net] has quit [[NS] Quit: I <3Lovecraft<3 Vorn!] |
06:21 | | Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has quit [Operation timed out] |
06:34 | | Derakon is now known as Derakon[AFK] |
06:35 | | Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has joined #code |
06:45 | | Kindamoody is now known as Kindamoody|out |
06:54 | | Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has quit [Ping timeout: 121 seconds] |
07:07 | | Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has joined #code |
07:19 | | Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code |
07:35 | | Derakon[AFK] [Derakon@Nightstar-f68d7eb4.ca.comcast.net] has quit [Ping timeout: 121 seconds] |
07:52 | | Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [Ping timeout: 121 seconds] |
07:56 | | Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code |
08:01 | | Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [Ping timeout: 121 seconds] |
09:25 | | Attilla [Obsolete@Nightstar-31d6e227.as43234.net] has joined #code |
09:51 | | Stalker [Z@Nightstar-5aa18eaf.balk.dk] has joined #code |
10:06 | | Attilla [Obsolete@Nightstar-31d6e227.as43234.net] has quit [Ping timeout: 121 seconds] |
10:07 | | Attilla [Obsolete@Nightstar-31d6e227.as43234.net] has joined #code |
10:19 | | You're now known as TheWatcher[zZzZ |
10:19 | | You're now known as TheWatcher |
10:24 | < Tamber> | Morning, Watcher. |
10:32 | < TheWatcher> | Ullo |
13:13 | | gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has joined #code |
13:41 | | gnolam is now known as Headache |
13:41 | | Headache is now known as gnolam |
14:18 | | Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed] |
--- Log closed Wed Dec 07 14:43:58 2011 |
--- Log opened Wed Dec 07 14:44:11 2011 |
14:44 | | TheWatcher [chris@Nightstar-3762b576.co.uk] has joined #code |
14:44 | | Irssi: #code: Total of 26 nicks [5 ops, 0 halfops, 0 voices, 21 normal] |
14:44 | | Irssi: Join to #code was synced in 48 secs |
15:03 | | Kindamoody|out is now known as Kindamoody |
15:10 | | Derakon[AFK] [Derakon@Nightstar-f68d7eb4.ca.comcast.net] has joined #code |
15:12 | | Derakon[AFK] [Derakon@Nightstar-f68d7eb4.ca.comcast.net] has quit [Client closed the connection] |
--- Log closed Wed Dec 07 15:43:09 2011 |
--- Log opened Wed Dec 07 15:43:17 2011 |
15:43 | | TheWatcher [chris@Nightstar-3762b576.co.uk] has joined #code |
15:43 | | Irssi: #code: Total of 26 nicks [5 ops, 0 halfops, 0 voices, 21 normal] |
15:44 | | Irssi: Join to #code was synced in 49 secs |
18:06 | | Attilla [Obsolete@Nightstar-31d6e227.as43234.net] has quit [Ping timeout: 121 seconds] |
18:21 | | Kindamoody is now known as Kindamoody[zZz] |
19:03 | | AnnoDomini [annodomini@Nightstar-4ea39ceb.212.getinternet.no] has joined #code |
19:37 | | ahas [a@Nightstar-41786faa.static.zebra.lt] has joined #code |
19:37 | < ahas> | http://imagetwist.com/taa5yqql1lu0/image.jpg.html |
19:37 | | ahas [a@Nightstar-41786faa.static.zebra.lt] has quit [[NS] Quit: ] |
20:20 | | RichardBarrell [mycatverbs@Nightstar-3b2c2db2.bethere.co.uk] has joined #code |
20:30 | | Attilla [Obsolete@Nightstar-64f2dd03.as43234.net] has joined #code |
21:37 | | Attilla_ [Obsolete@Nightstar-64f2dd03.as43234.net] has joined #code |
21:38 | | Attilla [Obsolete@Nightstar-64f2dd03.as43234.net] has quit [Ping timeout: 121 seconds] |
21:40 | | Attilla_ is now known as Attilla |
23:14 | | AD[Shell] [abudhabi@Nightstar-27c18c44.adsl.inetia.pl] has quit [Operation timed out] |
23:57 | | AnnoDomini [annodomini@Nightstar-4ea39ceb.212.getinternet.no] has quit [[NS] Quit: leaving] |
--- Log closed Thu Dec 08 00:00:35 2011 |