--- Log opened Sat Jan 21 00:00:07 2012 |
--- Day changed Sat Jan 21 2012 |
00:00 | <&McMartin> I kept having these 30-45 second startup times for evaluating *anything* |
00:00 | <@ToxicFrog> | Yeah, the VM overhead is sufficiently brutal that using it as a desk calculator or for small scripts is just brutal |
00:00 | <@ToxicFrog> | (so brutal I had to say it twice) |
00:02 | <&McMartin> OK |
00:02 | <&McMartin> I was wondering if I just had the wrong JVM hooked to it or something. |
00:04 | <@ToxicFrog> | If there's a way to make it start up faster I have yet to find it. |
00:04 | <@ToxicFrog> | 30-45 seconds sounds a bit high, but on the other hand I was typically using it on a quite beefy system, so |
00:05 | <&McMartin> This was on Iodine, which was at least good enough to run Portal in low-detail mod without stuttering |
00:05 | <&McMartin> And which was beefy enough to run straight Java stuff on 2G+ datasets without much complaint. |
00:07 | < maoranma> | ]18:46[ <@ToxicFrog> I will concede that if you're only on windows, and you only work in languages NP++ supports out of the box, it's better. <--- Python on Windows 7, so I win? |
00:08 | <&McMartin> It's got pretty good Python support, but be careful about your tab settings. |
00:14 | | * ToxicFrog snrks at a post in a discussion of why scalac is so much slower than javac |
00:15 | <@ToxicFrog> | * Naming conventions (a file XY.scala file need not contain a class called XY and may contain multiple top-level classes). The compiler may therefore have to search more source files to find a given class/trait/object identifier. |
00:15 | <@ToxicFrog> | * Implicits - heavy use of implicits means the compiler needs to search any in-scope implicit conversion for a given method and rank them to find the "right" one. (i.e. the compiler has a massively-increased search domain when locating a method.) |
00:15 | <@ToxicFrog> | * The type system - the scala type system is way more complicated than Java's and hence takes more CPU time. |
00:15 | <@ToxicFrog> | * Type inference - type inference is computationally expensive and a job that javac does not need to do at all |
00:15 | < maoranma> | Oh, I fixed those, got it set to 4 spaces per indent |
00:15 | <@ToxicFrog> | * scalac includes an 8-bit simulator of a fully armed and operational battle station, viewable using the magic key combination CTRL-ALT-F12 during the GenICode compilation phase. |
00:17 | <@TheWatcher> | ...pft |
00:37 | <@Alek> | wut |
00:46 | | Stalker [Z@Nightstar-5aa18eaf.balk.dk] has quit [Ping timeout: 121 seconds] |
00:49 | | You're now known as TheWatcher[T-2] |
00:57 | | You're now known as TheWatcher[zZzZ] |
00:58 | | * maoranma switches his np++ style to make his fruit salad even ANGRIER |
01:05 | | Derakon[AFK] is now known as Derakon |
01:12 | <&McMartin> FRUIT SALAD RAGE |
01:20 | < gnolam> | Fruit salad? |
01:21 | <~Vornicus> "angry fruit salad" is aggressively syntax-colored code |
01:23 | < maoranma> | Yea, it's beauuuuuuutiful |
01:25 | < Ling> | It's also the default theme for Win XP |
01:26 | < maoranma> | That too |
01:27 | < maoranma> | I always switched to olive :\ |
01:27 | < maoranma> | green was my favorite color for a while, since Vista sucked so hard |
01:27 | < Ling> | D: |
01:28 | | * Ling always disabled the XP-themes. |
01:30 | | Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code |
01:33 | < maoranma> | brb, computer is wonky |
01:35 | | maoranma [maoranma@Nightstar-1b3452f6.pools.spcsdns.net] has quit [[NS] Quit: ] |
01:40 | <~Vornicus> Hooray, refactoring |
01:48 | <~Vornicus> I like it when it's that easy. |
02:02 | | Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has quit [Ping timeout: 121 seconds] |
02:08 | | Derakon is now known as Derakon[AFK] |
02:10 | <~Vornicus> (splines have a lot of places where what you're doing is taking each pair ab bc cd etc and processing them, so now I have something that does that. |
02:16 | | Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has joined #code |
02:18 | | eckse_ [eckse@Nightstar-6c523e49.dsl.sentex.ca] has joined #code |
02:21 | | eckse [eckse@Nightstar-55f7bb2e.dsl.sentex.ca] has quit [Ping timeout: 121 seconds] |
02:52 | | gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has quit [[NS] Quit: Z?] |
02:57 | | eckse_ is now known as eckse |
02:58 | | Kindamoody[zZz] is now known as Kindamoody |
02:58 | | Janus [NSwebIRC@Nightstar-27138e8c.res.rr.com] has quit [[NS] Quit: Page closed] |
03:20 | | Vash [Vash@Nightstar-8697fea9.wlfrct.sbcglobal.net] has quit [[NS] Quit: I <3craft Vorn!] |
03:35 | | Attilla [Obsolete@Nightstar-7b84d1fa.as43234.net] has quit [Ping timeout: 121 seconds] |
03:36 | | maoranma [maoranma@Nightstar-1b3452f6.pools.spcsdns.net] has joined #code |
04:43 | | Derakon[AFK] [Derakon@Nightstar-a3b183ae.ca.comcast.net] has quit [Ping timeout: 121 seconds] |
04:46 | | Derakon[AFK] [Derakon@Nightstar-a3b183ae.ca.comcast.net] has joined #code |
04:49 | | io|HOCKEY is now known as iospace |
05:11 | | Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has quit [Client exited] |
05:13 | < maoranma> | Okay, so, here's my first attempt at playing with classes: http://pastebin.com/dCuHS7iC |
05:15 | < Ling> | Why not pass it a list/tuple? |
05:16 | < maoranma> | I should |
05:16 | < Ling> | IMO that'd be cleaner. |
05:17 | < maoranma> | Fixed that |
05:18 | < maoranma> | I should get used to doing that |
05:18 | < maoranma> | I'm so used to having to state exactly what variables I'm dealing with, hehe |
05:25 | < Ling> | ... |
05:25 | < Ling> | I dont' want to see your C or C++ code, ever. |
05:26 | < maoranma> | I haven't coded much in C/C++ |
05:26 | | himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code |
05:26 | | mode/#code [+o himi] by ChanServ |
05:26 | < maoranma> | This is the first OOPL that I'm learning fully |
05:32 | < maoranma> | {'name': self.name, 'sides': self.sides} |
05:32 | < maoranma> | This is a properly formated dict? |
05:38 | < maoranma> | Oh, wait, figured it out |
05:39 | < maoranma> | Seems like, if your only, purely returning a string with a method, you don't used the ()s on the end of it |
05:39 | < maoranma> | But if it's anything else, like a list, it has to have the ()s |
05:41 | < maoranma> | http://pastebin.com/MxkTvCDa |
05:41 | < maoranma> | There it is with a tuple passed to it, a different way of handling the info calling |
05:43 | < Ling> | You can do the print in one line |
05:43 | < Ling> | Also, why are you using Python 2? |
05:44 | < maoranma> | Oh I know, I just haven't played with formating too much yet |
05:44 | < maoranma> | And because... profit??? |
05:44 | < Ling> | Python 3 is out |
05:45 | < maoranma> | But then I have to upgraaade~ |
05:45 | < Ling> | d = dragon.info(); d.roll = dragon.roll(); print ''' |
05:45 | < Ling> | Name: %(name)s |
05:45 | < Ling> | Sides: %(sides)s |
05:45 | < Ling> | Crest Rolled: %(roll)s |
05:45 | < Ling> | ''' % d |
05:46 | < maoranma> | Woah |
05:46 | < maoranma> | What's with all the semicolons, lol |
05:47 | < Ling> | Do I *really* need to answer that? |
05:48 | < maoranma> | Did you make d into a dict? |
05:48 | < Ling> | ... |
05:49 | < Ling> | dragon.info() returns a dict, as such I didn't need to "make" it into one. |
05:49 | < maoranma> | right, then you added an entry do that with d.roll? |
05:49 | < Ling> | Yes |
05:50 | < maoranma> | Interesting, and I'm guessing the ;'s are eqivalent to being on it's own line? |
05:50 | < Ling> | Also there's a minor error: d['roll'] = dragon.roll() |
05:50 | < Ling> | Yes |
05:55 | < maoranma> | Strange, that's syntax error on d |
05:56 | < Ling> | Did you make the correction I pointed out? |
05:56 | < maoranma> | d['roll']? |
05:56 | < Ling> | Yes |
05:56 | < maoranma> | Yes, it's syntax on d = dragon.info() |
05:56 | < Ling> | O.o |
05:57 | < maoranma> | I know, weird |
05:58 | < Ling> | WFM |
05:59 | < Ling> | Do you have the correct indentation? |
05:59 | < maoranma> | Yes, second |
06:00 | < maoranma> | http://pastebin.com/hfjZ02KF |
06:01 | < Ling> | dragon.roll() |
06:01 | < maoranma> | Fixed that, still same error |
06:02 | < maoranma> | It's pointing to the d |
06:02 | < maoranma> | at the very beginning of that line |
06:03 | < Ling> | Where did you )) go? |
06:03 | < Ling> | your* |
06:03 | < maoranma> | d = dragon.info(); d['roll'] = dragon.roll(); print ''' |
06:03 | < maoranma> | Name: %(name)s |
06:03 | < maoranma> | Sides: %(sides)s |
06:03 | < maoranma> | Crest Rolled: %(roll)s |
06:03 | < maoranma> | ''' % d |
06:04 | < Ling> | Look at the line above |
06:04 | < maoranma> | Oh |
06:04 | < maoranma> | wtf |
06:04 | <@jerith> | 07:43 < Ling> Also, why are you using Python 2? |
06:04 | < maoranma> | How'd those get baleted |
06:05 | <@jerith> | Because Python 3 is a slightly different language and is not yet ready for prime time. |
06:05 | <@Tamber> | jerith, it could be worse; it could be Perl 6. :p |
06:06 | | * jerith strings Tamber up by his toenails. |
06:06 | <@Tamber> | Now what was /that/ for? |
06:07 | <@jerith> | Perl 6. ;_; |
06:07 | <@Tamber> | Ah, y'don't like being reminded that it's due shortly after the heat-death of the universe? |
06:08 | < maoranma> | are we sure that it itself the heat-death in question? |
06:08 | <@jerith> | Tamber: Perl 6 is even more SAN-eating than Perl 5. |
06:09 | <@Tamber> | maoranma, well, Wall does like to call the planning a series of Apocalypses... :p |
06:11 | <@jerith> | Python 3 is a nice language. |
06:12 | <@jerith> | But it's different enough to be a massive pain. |
06:12 | <@jerith> | And not enough stuff supports it yet. |
06:12 | < maoranma> | omg, they removed the % string operator? |
06:13 | < maoranma> | whyyyy! |
06:13 | <@jerith> | They replaced it with a better formatting thing. |
06:13 | < maoranma> | Define "better" |
06:13 | < Ling> | Python 3.2.1 (default, Jul 11 2011, 12:37:47) |
06:13 | < Ling> | >>> print("test %(foo)s" % {'foo': 'bar'}) |
06:13 | < Ling> | test bar |
06:14 | | * Ling has no idea WTF you're all talking about |
06:14 | < maoranma> | Hmm |
06:14 | < maoranma> | PEP 3101: A New Approach To String Formatting? |
06:14 | < maoranma> | A new system for built-in string formatting operations replaces the % string formatting operator. (However, the % operator is still supported; it will be deprecated in Python 3.1 and removed from the language at some later time.) Read PEP 3101 for the full scoop. |
06:14 | < maoranma> | I guess 3.2.1 isn't later enough |
06:15 | < Ling> | Clearly. Also note: "removed from the language *at a later time*" != "removed from the language *right now*" |
06:15 | < maoranma> | yea yea |
06:16 | < maoranma> | But it must be around the corner, after I just got used to using it, lol |
06:16 | <@jerith> | It's seldom a good idea to use deprecated stuff. |
06:17 | < Ling> | Like Python 2? |
06:18 | < maoranma> | Hmm, this looks like it's a bit closer to using dicts in the new way |
06:18 | < maoranma> | "The story of {0}, {1}, and {c}".format(a, b, c=d) |
06:20 | < Ling> | >>> print("test {foo}".format(**{'foo':'bar'})) |
06:20 | < Ling> | test bar |
06:21 | | * Ling doesn't see how that's better than the operator, it just looks noisier. |
06:21 | < maoranma> | I agree |
06:22 | < maoranma> | I suppose it's sorta like a method of print, or probably is, I dunno |
06:22 | < maoranma> | Since now print() is always a function |
06:24 | < Ling> | ... |
06:24 | < Ling> | It's a method of string. |
06:25 | < Ling> | Functions don't have methods in Python (last I checked) |
06:25 | < maoranma> | Oh, it is |
06:25 | < maoranma> | functionception |
06:26 | | eckse [eckse@Nightstar-6c523e49.dsl.sentex.ca] has quit [Client closed the connection] |
06:28 | < maoranma> | Guess I should get some sleep, got class in the morning |
06:33 | <@jerith> | Functions can have any attributes you like. |
06:50 | | Kindamoody is now known as Kindamoody|afk |
07:32 | < cpux> | Where have all the tomboys gone? |
07:46 | | Derakon[AFK] is now known as Derakon |
07:47 | | mode/#code [+ao Derakon Derakon] by ChanServ |
07:58 | | Derakon is now known as Derakon[AFK] |
09:37 | | mao42ranma [maoranma@490720.C448F4.780D30.40608C] has joined #code |
09:37 | | maoranma [maoranma@Nightstar-1b3452f6.pools.spcsdns.net] has quit [Ping timeout: 121 seconds] |
09:42 | | You're now known as TheWatcher |
09:54 | | Kindamoody|afk is now known as Kindamoody |
10:37 | | Attilla [Obsolete@Nightstar-7b84d1fa.as43234.net] has joined #code |
10:39 | | Kindamoody is now known as Kindamoody|out |
10:47 | | gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has joined #code |
11:21 | | Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [[NS] Quit: Into the hole again, we hurried along our way, into a once-glorious garden now seeped in dark decay.] |
12:14 | | mao42ranma [maoranma@490720.C448F4.780D30.40608C] has quit [Ping timeout: 121 seconds] |
13:29 | | RichardBarrell [mycatverbs@Nightstar-3b2c2db2.bethere.co.uk] has joined #code |
14:14 | <~Vornicus> Actually most functions have quite a few methods on them |
14:14 | | RichardBarrell [mycatverbs@Nightstar-3b2c2db2.bethere.co.uk] has quit [Client closed the connection] |
14:15 | <~Vornicus> Because they're objects; anything that they might need to act like an object, they have. |
14:17 | | celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has joined #code |
14:30 | | Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has joined #code |
14:37 | | Vash [Vash@Nightstar-8697fea9.wlfrct.sbcglobal.net] has joined #code |
14:37 | | mode/#code [+o Vash] by ChanServ |
14:55 | | * Vornicus finds himself poking at design for a space 4x. |
15:41 | | AnnoDomini [annodomini@Nightstar-f7eedefa.80-203-17.nextgentel.com] has joined #code |
15:41 | | mode/#code [+o AnnoDomini] by ChanServ |
16:15 | | * Vornicus fiddles with b-splines, is trying to figure out the various edge cases on knot insertion. |
16:27 | <~Vornicus> Yeah, confused. How do I handle it when the "affected points" have end points somewhere in the middle. |
16:33 | <~Vornicus> oh, wait |
16:33 | <~Vornicus> I can assume that the previous knot - the one before all the other knots - is -infinity |
16:34 | <~Vornicus> THis makes all the a's for that section 1, and so it would just be the starting point. |
16:35 | <~Vornicus> So really, the real thing I do is just kind of cut off the ends, and it should work. |
17:22 | | eckse [eckse@Nightstar-c5717e68.dsl.sentex.ca] has joined #code |
17:36 | <~Vornicus> ok. knot insertion makes sense now. |
17:51 | | Kindamoody|out is now known as Kindamoody |
18:09 | | maoranma [maoranma@Nightstar-5a567751.pools.spcsdns.net] has joined #code |
18:12 | < maoranma> | So, question. If I wanted an ASCII output, say like nethack or dwarf fortress, are there any good python libraries for that? |
18:15 | <@TheWatcher> | IIRC python has a curses module |
18:15 | <@ToxicFrog> | Hmm. Are there python bindings to curses? |
18:15 | <@TheWatcher> | http://docs.python.org/library/curses.html - looks like |
18:15 | <@ToxicFrog> | (that's for the nethack approach, where it is actually a terminal program) |
18:15 | <@ToxicFrog> | (for the Dwarf Fortress approach, where it's a graphical program but most of the tiles are letters, you want something like pygame) |
18:16 | <@TheWatcher> | (and note that, if you do use letters in a tiled graphical program, you will have my undying hatred~) |
18:17 | <~Vornicus> (well, to be clear: to use letters as proxies for things that could use graphics, causes undying hatred. |
18:18 | <~Vornicus> (using letters as letters is, um. SOmetimes people have to read.) |
18:19 | <@TheWatcher> | (indeed) |
18:22 | <@jerith> | Are you two talking lisp? |
18:23 | < maoranma> | Does pygame require me to make a PNG of character tiles? Because at that point I might as well just make tiles, I can gimp |
18:24 | < maoranma> | I just need something for a very basic interface but still relay a lot of information |
18:24 | <@jerith> | maoranma: If you have a tiled thing, you probably want something on top of pygame. |
18:24 | <@jerith> | I've used pgu in the past, but it's clunky. |
18:25 | < maoranma> | pgu? |
18:25 | <@jerith> | I wrote something else more recently, but it might be a bit tricky to extract from the rest of the game. |
18:26 | <@jerith> | maoranma: It's a tilegrid library built on pygame. |
18:26 | < maoranma> | Ahh |
18:26 | <@jerith> | But we had to modify it a bunch to get it to do what we wanted. |
18:27 | <@jerith> | And the event handling is somewhat non-obvious. (And leads to exciting bugs if you do it wrong.( |
18:27 | <@jerith> | )) |
18:28 | < maoranma> | Basically have to display a 13x19 arena of sorts |
18:29 | | * jerith tries to figure out where Mutable Mamba lives these days. |
18:29 | < maoranma> | Guess I'll have a look though the pygame cookbook, and add this statement so that it doesn't rhyme |
18:30 | <@jerith> | http://pyweek.org/e/mamba/ |
18:31 | <@jerith> | I'm not entirely sure where the repo is, and it might not allow public read access. |
18:53 | | Ling is now known as Anna |
18:53 | < Anna> | http://www.techdirt.com/articles/20120120/14472117492/mpaa-directly-publicly-thr eatens-politicians-who-arent-corrupt-enough-to-stay-bought.shtml |
18:55 | | Attilla [Obsolete@Nightstar-7b84d1fa.as43234.net] has quit [[NS] Quit: ] |
18:56 | < maoranma> | $iif( 1 = 1,on,off) |
18:57 | < Anna> | ... |
18:57 | <@AnnoDomini> | What. |
18:58 | < Anna> | Why are you creating an iif function? |
18:58 | < maoranma> | mIRC |
18:58 | < Anna> | Oh, alright |
18:59 | | Kindamoody is now known as Kindamoody[zZz] |
18:59 | | EvilDarkLord is now known as Aeron |
18:59 | <@AnnoDomini> | Anna: A better place for your link might be #politics. |
18:59 | | AnnoDomini is now known as Jasever |
19:00 | < Anna> | I don't normally care about politics because it's all a really depressing ego contest |
19:01 | < maoranma> | There we go. Now if I attempt to tab complete and it returns null, the treebar will turn on and off |
19:02 | < maoranma> | otherwise, it works as normal |
19:04 | | Attilla [Obsolete@Nightstar-7b84d1fa.as43234.net] has joined #code |
19:04 | < maoranma> | on *:TABCOMP:*: { if $1 == $null { if $treebar = 1 { .treebar off | halt } | if $treebar = 0 { .treebar on | halt } } } |
19:04 | < maoranma> | Gave up on the $iif, it wasn't behaving for some reason |
19:37 | <@ToxicFrog> | ...what language is this? |
19:37 | <@ToxicFrog> | Oh, mirc. |
19:38 | <@jerith> | Doesn't it have "else"? |
19:42 | <~Vornicus> I could have sworn it did |
19:46 | | Derakon[AFK] is now known as Derakon |
19:57 | | * Vornicus finally gets around to committing his latest bezier and b spline stuff. |
19:59 | <@jerith> | Vornicus: Where does this live? |
19:59 | | * jerith would like to tinker. |
20:03 | <~Vornicus> CUrrently, on my flash drive. |
20:11 | <~Vornicus> Once I get "inserting multiple knots" and then de Boor working I'll put it somewhere. |
20:11 | <@jerith> | Cool. |
20:11 | <@jerith> | hg? |
20:11 | <~Vornicus> hg |
20:12 | <@jerith> | bitbucket? |
20:13 | <~Vornicus> sure, if I could figure out how to tell it "I have a repository on my computer, come get it" |
20:15 | <@jerith> | You have to say "make me a new repo" and then push yours to it. |
20:15 | <@jerith> | Or something. |
20:15 | <@jerith> | I think. |
20:15 | <@jerith> | That's how it works with git, anyway. |
20:27 | < maoranma> | It does have an else |
20:27 | < maoranma> | But I was having trouble with it too |
20:28 | < maoranma> | Probably just getting my states mixed up |
20:34 | | PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds] |
20:36 | | * Vornicus finds instructions for git, but not for hg. |
20:39 | <@ToxicFrog> | Isn't bitbucket hg-only? |
20:40 | | PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has joined #code |
20:40 | | mode/#code [+o PinkFreud] by ChanServ |
20:40 | <@jerith> | ToxicFrog: They do git as well, now. |
20:42 | | * Vornicus hunts around for the button that lets him specify a URL in the hg workbench. |
20:44 | <@jerith> | http://confluence.atlassian.com/display/BITBUCKET/Importing+Code+into+a+Reposito ry |
20:44 | <@jerith> | Seen that? |
20:44 | <~Vornicus> Yeah. Stuff for git, stuff for getting it from another repository with a url... nothing for local hg |
20:47 | <@jerith> | Can't you just push to the new repo from your local one? |
20:47 | <~Vornicus> I can't find a way to tell it what url to push to. |
20:47 | <~Vornicus> Everything says "the specified url" but doesn't say where |
20:48 | < celticminstrel> | Is it not shown on the repository page? |
20:48 | <~Vornicus> I know what the url should be |
20:48 | <~Vornicus> I do not know where to put it. |
20:49 | < celticminstrel> | You mean like in "git push <url>"? |
20:50 | <@jerith> | ssh://hg@bitbucket.org/jerith/pypy |
20:50 | <@jerith> | That's the URL for my clone of the pypy repo. |
20:50 | <~Vornicus> RIght, /that/ I know |
20:50 | <@jerith> | You should be able to say "hg push <that>". |
20:50 | <~Vornicus> The problem is that I don't know where the crap to /put/ it for hg to recognize that this is the place I want to put this repo on the internet. |
20:51 | < celticminstrel> | So that you can just do "hg push"? |
20:51 | <~Vornicus> or at least be able to press the button in the workbench. |
20:52 | | PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds] |
20:53 | <~Vornicus> Well that's good. |
20:53 | <~Vornicus> remote: No supported authentication methods left to try! |
20:53 | <~Vornicus> abort: no suitable response from remote hg! |
20:54 | <@jerith> | hg push --remember <that> |
20:54 | <@jerith> | Or something. |
20:54 | <@ToxicFrog> | Did you do the SSH keypair setup thing already? |
20:54 | <~Vornicus> No, because it wasn't mentioned. |
20:55 | <@jerith> | That would probably help. |
20:55 | <~Vornicus> Not that I have any idea where the hell to put the ssh key. |
20:55 | <~Vornicus> Also I kind of assumed it would, you know, let me just type in my password. |
20:56 | <@ToxicFrog> | ...wow, the bitbucket documentation is kind of terribly organized |
20:57 | <~Vornicus> Just slightly! |
20:57 | <@ToxicFrog> | Anyways |
20:57 | <~Vornicus> I have no idea what I'm looking at or where. |
20:57 | <@jerith> | Bitbucket doesn't impress me much. |
20:57 | <@ToxicFrog> | What I'm getting here is that you should be able to use HTTPS |
20:57 | <@ToxicFrog> | (which uses username/password authentication) |
20:57 | <@ToxicFrog> | Or SSH (which uses keypair authentication, and is preferred, but requires more setup) |
20:57 | | PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has joined #code |
20:58 | | mode/#code [+o PinkFreud] by ChanServ |
20:58 | <@ToxicFrog> | I have no idea how you push using https or derive the https URL for your repository. |
20:58 | <@jerith> | Doing this stuff over HTTP means horrible protocol hacks. |
20:59 | <~Vornicus> Doing this at all requires some sense of how it's supposed to go, and I haven't gotten that. |
20:59 | <@ToxicFrog> | This is 20% the bitbucket documentation and 80% guesswork based on using github, to be honest |
20:59 | <@ToxicFrog> | But the documentation is at least clear that you can use either https or ssh |
21:00 | <@ToxicFrog> | It then ignores https completely and explains how to use ssh in the most convoluted and confusing way possible |
21:01 | <@jerith> | The HTTPS url is on the front page of the repo, in a link. |
21:01 | <@jerith> | hg clone https://jerith@bitbucket.org/jerith/ska |
21:02 | <@jerith> | Replace that clone with a push --remember and you should be good. |
21:03 | <~Vornicus> Okay that worked. |
21:03 | <@jerith> | \o/ |
21:03 | < maoranma> | I need to learn how to use a VCS, it just looks complicated :\ |
21:04 | <@jerith> | Using it for yourself is fairly straightforward. |
21:05 | <@ToxicFrog> | maoranma: if it's a modern VCS, using it personally is pretty simple; I mean, there's a lot of complicated stuff you can do, but you don't need to learn all of that up front. |
21:05 | <@jerith> | The problem here is using a third-party repo hosting service. |
21:05 | <@ToxicFrog> | I would say "it only gets slightly harder if you want to share your stuff" but this is evidently not universally the case >.< |
21:05 | < maoranma> | Hmm |
21:06 | <~Vornicus> Well, ideally, once I figure out how to tell it what to do, sharing stuff would be a one button action. |
21:06 | <@ToxicFrog> | (I use github for this purpose, which is much better documented than Bitbucket but only supports git, which Vorn is not using) |
21:06 | <@ToxicFrog> | Vornicus: if Hg works anything like Git here, now that it's remembering everything you should be able to just go "hg push" |
21:06 | <~Vornicus> https://bitbucket.org/Vornicus/depixeldrod/ |
21:08 | <~Vornicus> Yeah it hasn't remembered everything, --remember doesn't exist on the push command so I'm not sure what I'm doing. |
21:09 | <@jerith> | I may be misremembering the optionor something. |
21:09 | <@ToxicFrog> | I'm now totally out of my depth, sorry |
21:09 | <~Vornicus> there does not appear to be such an option on push |
21:09 | < maoranma> | I wonder which has a better portable system. |
21:09 | <@ToxicFrog> | maoranma: as in portableapps style, for windows? |
21:09 | < maoranma> | yes |
21:09 | <@ToxicFrog> | Almost certainly Hg; windows support for git is kind of janky. |
21:09 | <@ToxicFrog> | (unless you're already using cygwin, in which case you already have git installed) |
21:10 | < maoranma> | I'm not |
21:11 | <@ToxicFrog> | Your best bet is probably Hg, then. |
21:11 | < maoranma> | Can't hurt to try it |
21:11 | <@ToxicFrog> | There's a PortableGit (http://code.google.com/p/msysgit/), but last I looked Hg had actual shell integration on windows and whatnot |
21:11 | <@ToxicFrog> | (I prefer Git, but a large part of this is simply familiarity - and, of course, I don't develop on windows) |
21:22 | <~Vornicus> okay, there, got it. |
21:22 | | * Vornicus added the path to the hgrc. |
21:30 | <~Vornicus> aaaaanyway, let's see what I should do next. |
21:37 | | PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds] |
21:52 | | PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has joined #code |
21:52 | | mode/#code [+o PinkFreud] by ChanServ |
22:01 | <~Vornicus> I really should get back to working on my stuff as opposed to all this random stuff. |
22:07 | | Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code |
22:23 | <~Vornicus> Like for instance getting the graph working again with the new file formet. |
23:08 | | Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has quit [Client exited] |
23:14 | <~Vornicus> Gnah, hate this kind of situation. A tile object needs to know what's around it, but giving it explicit knowledge of those things makes that data show up twice. |
23:26 | < maoranma> | How do I unpack a dict into vars using the x, y = {'x': x, 'y': y} format? |
23:27 | < maoranma> | that is, what's the proper syntax |
23:30 | < maoranma> | Or can that only be done with tuples? |
23:34 | < gnolam> | How do you mean "into vars"? |
23:34 | < maoranma> | variables |
23:34 | < maoranma> | But I was overthinking it, nevermind |
23:35 | < gnolam> | Explain what you were thinking anyway. :) |
23:36 | < maoranma> | Well, I was trying to get at the values inside of a dict, and unpack them into variables that I can work with separately |
23:36 | < gnolam> | Well. You get the values with .values(). |
23:38 | < gnolam> | And unpacking works as long as the number of values to unpack matches the number of values returned. So in theory, you could do x, y = foo.values(), if foo had exactly two values. |
23:38 | < gnolam> | Needless (?) to say, though, you shouldn't. |
23:39 | < maoranma> | Yea, I'm going a different way with it, still working on it atm |
23:41 | <@ToxicFrog> | Also, wouldn't this work: x,y = dict.x,dict.y |
23:41 | <@ToxicFrog> | Or possibly x,y = dict["x"],dict["y"] |
23:41 | <@ToxicFrog> | I forget if python overloads . on dictionaries |
23:42 | < maoranma> | The latter I think |
23:42 | <~Vornicus> TF: it does not. |
23:42 | <~Vornicus> js and lua does though |
23:47 | | Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has quit [Ping timeout: 121 seconds] |
23:52 | < maoranma> | Yea, I was able to do x[y['z']] to get at the info I needed |
23:53 | < maoranma> | That is to say... the key z's value from dict y into variable x |
23:53 | < maoranma> | my head hurts |
23:55 | < maoranma> | Rather... I made a new dict |
23:56 | < maoranma> | http://pastebin.com/D0RQR8vE @ def throwDice(): |
--- Log closed Sun Jan 22 00:00:35 2012 |