--- Log opened Mon Sep 21 00:00:46 2009 |
00:03 | | Rhamphoryncus [rhamph@Nightstar-a62bd960.abhsia.telus.net] has quit [Client exited] |
00:43 | | You're now known as TheWatcher[T-2] |
00:47 | | You're now known as TheWatcher[zZzZ] |
01:16 | | McMartin [mcmartin@Nightstar-2b2c1a9b.pltn13.sbcglobal.net] has joined #code |
01:16 | | mode/#code [+o McMartin] by Reiver |
01:16 | <@McMartin> | Hm, not sure how I didn't end up in here |
01:17 | <@McMartin> | As it happens, I have a Python question. |
01:17 | <@McMartin> | I'm given to understand that the % operator on strings is deprecated in 3.x |
01:17 | <@McMartin> | I have a text processing project I'm starting up, and I figured I'd do it in 3.x for practice. |
01:17 | <@McMartin> | How are we supposed to format strings now? |
01:30 | | * McMartin digs around, finds what he thinks is the answer |
01:30 | <@McMartin> | The Python Docs are linking to the wrong piece. =P |
01:31 | <@Kazriko> | something like {1} and such. i'm not sure i like it. |
01:31 | <@Kazriko> | too used to the % operator. |
01:32 | <@Kazriko> | "blah {1}".format("blahblahblah") or something like that... |
01:32 | <@Kazriko> | I can't remember exactly though... |
01:32 | <@McMartin> | http://docs.python.org/3.1/library/string.html#template-strings |
01:32 | <@McMartin> | This is actually better for what I'm going to use it for, too, so that's a happy thing. |
01:32 | | * McMartin has one variable that needs to appear at multiple places |
01:32 | <@McMartin> | And so that's $varname inside the string. |
01:33 | <@Kazriko> | I think there's multiple ways then? hmm. |
01:33 | <@Kazriko> | just above that is the .format thing. |
01:33 | <@Kazriko> | "{name!r}" |
01:33 | <@Kazriko> | "{varname!s}" and such. |
01:34 | <@McMartin> | Oh hey |
01:34 | <@McMartin> | Actually, that's even better |
01:34 | <@McMartin> | Because I can also do "{self.fieldname}" |
01:34 | <@McMartin> | As part of __str__ |
01:34 | <@Kazriko> | yeah. |
01:35 | | * Kazriko does too much C coding at work, so is too used to % formatting. heh |
01:36 | | * Kazriko is doing DynamicC right now... |
01:36 | | gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code |
01:37 | | * Kazriko grumbles about porting from C++ to DynamicC... |
01:44 | <@Kazriko> | porting libraries, unit tests, and the whole program. Including rewriting the entire unit test framework and so forth... |
01:44 | <@Kazriko> | and rewriting the entire modbus database that the old hardware came with built in. |
01:47 | < gnolam> | DynamicC? |
01:47 | <@Kazriko> | custom c compiler for some 8-bit computers. |
01:48 | <@Kazriko> | it's not exactly ansi-c compatible... |
01:59 | < gnolam> | Ah. |
02:03 | | * gnolam stabs graphics cards manufacturers yet again. |
02:04 | < gnolam> | I fully understand why there isn't a rand() function in GLSL, but there /are/ noise[n]() functions - and _they should be implemented goddamnit_. |
02:05 | | * gnolam rolls his own 1D noise function. |
02:06 | | * Kazriko finishes all the unit tests for the first ported module. |
02:07 | <@Kazriko> | now to make sure I didn't forget to unittest any stray variables. heh |
02:11 | <@Kazriko> | only 7 variables. heh |
02:11 | < gnolam> | Whoa. You can make some seriously trippy effects with poor noise functions. |
03:17 | | Attilla [The.Attilla@FBC920.642D35.FA4C32.0AF6BA] has quit [[NS] Quit: ] |
05:06 | | Syloqs-AFH [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Connection reset by peer] |
06:00 | | Derakon is now known as Derakon[AFK] |
06:16 | | dmlandrum [dmlandrum__@Nightstar-15b281e2.sfldmi.ameritech.net] has quit [[NS] Quit: Leaving] |
06:45 | | Alek [omegaboot@Nightstar-ac83c982.emhril.sbcglobal.net] has quit [[NS] Quit: reboot] |
06:50 | < gnolam> | Apparently, insomnia is the way to actually get work done on your personal projects. :P |
06:50 | <@McMartin> | Ee-yep |
06:51 | <@McMartin> | (Guess who just finished his IFComp Review organization code) |
06:53 | | Alek [omegaboot@Nightstar-ac83c982.emhril.sbcglobal.net] has joined #code |
06:55 | < gnolam> | Hah. |
07:02 | | AnnoDomini [farkoff@Nightstar-229b5ffc.adsl.tpnet.pl] has joined #code |
07:02 | | mode/#code [+o AnnoDomini] by Reiver |
07:05 | | Alek [omegaboot@Nightstar-ac83c982.emhril.sbcglobal.net] has quit [[NS] Quit: ] |
07:06 | | * Vornicus does his best work at 3:30 AM |
07:10 | | Alek [omegaboot@Nightstar-ac83c982.emhril.sbcglobal.net] has joined #code |
07:13 | | Rhamphoryncus [rhamph@Nightstar-a62bd960.abhsia.telus.net] has joined #code |
07:22 | | Orthia is now known as Reivthia |
07:48 | | AnnoDomini [farkoff@Nightstar-229b5ffc.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds] |
07:55 | | AnnoDomini [farkoff@Nightstar-bab94f15.adsl.tpnet.pl] has joined #code |
07:56 | | mode/#code [+o AnnoDomini] by Reiver |
08:50 | < gnolam> | Why thank you Ticnet. You have just proven that there really is no limit to how awful an online ticket booking system can be. |
08:52 | < Reivthia> | gnolam: Of course not! |
08:53 | < Reivthia> | Why, with their next upgrade, they will personally deliver your tickets, along with a complementary (non-negotiable) non-consensual erotic rectal violation! |
08:54 | | You're now known as TheWatcher |
08:59 | | Rhamphoryncus [rhamph@Nightstar-a62bd960.abhsia.telus.net] has quit [Client exited] |
09:42 | | Vornicus is now known as Vornicus-Latens |
09:42 | < gnolam> | Something like that. |
10:22 | | Attilla [The.Attilla@FBC920.642D35.FA4C32.0AF6BA] has joined #code |
10:22 | | mode/#code [+o Attilla] by Reiver |
11:35 | | Attilla [The.Attilla@FBC920.642D35.FA4C32.0AF6BA] has quit [[NS] Quit: ] |
12:19 | | Reivthia [Orthianz@Nightstar-b8bda163.xnet.co.nz] has quit [Ping timeout: 121 seconds] |
12:19 | | Reiver [reaverta@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds] |
12:33 | | Reiver [reaverta@ServerAdministrator.Nightstar.Net] has joined #code |
12:33 | | mode/#code [+qo Reiver Reiver] by ChanServ |
13:14 | | Orthia [Orthianz@Nightstar-e3e16852.xnet.co.nz] has joined #code |
13:44 | | Vornicus-Latens [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: ] |
15:19 | | Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Client closed the connection] |
16:16 | < gnolam> | http://www.quirksmode.org/blog/archives/2009/09/the_html5_drag.html |
16:19 | | dmlandrum [dmlandrum__@Nightstar-15b281e2.sfldmi.ameritech.net] has joined #code |
16:22 | < gnolam> | Is it just me or has the entirety of HTML 5 been designed on a generous helping of crack? |
16:38 | | Syloqs-AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code |
16:38 | | mode/#code [+o Syloqs-AFH] by Reiver |
17:00 | < MyCatVerbs> | gnolam: At least it isn't XHTML? |
17:00 | | Rhamphoryncus [rhamph@Nightstar-a62bd960.abhsia.telus.net] has joined #code |
17:06 | < Alek> | I like XHTML. |
17:06 | < Alek> | what's wrong with it? |
17:09 | < gnolam> | What Alek said. |
17:11 | | Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code |
17:11 | | mode/#code [+o Vornicus] by Reiver |
17:15 | | Alek [omegaboot@Nightstar-ac83c982.emhril.sbcglobal.net] has quit [[NS] Quit: beroot: be back soon] |
17:32 | | Alek [omegaboot@Nightstar-ac83c982.emhril.sbcglobal.net] has joined #code |
17:47 | | SmithKurosaki [Smith@Nightstar-82ad4434.dsl.teksavvy.com] has quit [[NS] Quit: Leaving] |
17:47 | | Attilla [The.Attilla@FBC920.642D35.FA4C32.0AF6BA] has joined #code |
17:47 | | mode/#code [+o Attilla] by Reiver |
17:49 | | SmithKurosaki [Smith@Nightstar-82ad4434.dsl.teksavvy.com] has joined #code |
18:15 | | Derakon[work] [Derakon@Nightstar-d44d635e.ucsf.edu] has joined #code |
18:15 | < Derakon[work]> | Came in to work today ready to work on that crash...and the damn thing stopped happening! |
19:25 | < Rhamphoryncus> | heh |
19:41 | | Finale [c0cb88fe@Nightstar-14e5d099.mibbit.com] has joined #code |
19:45 | | Derakon[work] [Derakon@Nightstar-d44d635e.ucsf.edu] has quit [Ping timeout: 121 seconds] |
19:55 | < gnolam> | Hmm. Brain damage. |
19:56 | < Finale> | what happened to the XHTML discussion, anyway? |
19:58 | < gnolam> | There's a homework assignment on the physics portion of the course where you get a bunch of kinematics formulae for a particle thrown in your face, and the assignment is basically "pick starting variables, plot the result, tell us what kind of motion the particle experiences". |
19:59 | < gnolam> | I read the first two lines of the combined formulae/pseudocode block and went "Ah, ballistic trajectory with drag". |
20:00 | < gnolam> | Coding is bad for your mental health. |
20:01 | < Finale> | what's wrong with it? |
20:03 | < gnolam> | The fact that I was supposed to read the next 6 lines, turn it into something plottable, and then plot it with a couple of different starting variables before saying what it was? :) |
20:03 | < Finale> | hehe. |
20:04 | | Irssi: #code: Total of 24 nicks [11 ops, 0 halfops, 0 voices, 13 normal] |
20:04 | | * TheWatcher eyes his session code |
20:05 | <@TheWatcher> | Stuff for creating sessions? Check. Validating session cookies/ids? Check. Updating sessions? Check. Now, what am I forgetting... oh, yeah, they need to be deleted sometimes! >.< |
20:06 | | * TheWatcher facepalms vaguely, starts coding... |
20:17 | | AnnoDomini [farkoff@Nightstar-bab94f15.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds] |
20:18 | | AnnoDomini [farkoff@Nightstar-b65467f5.adsl.tpnet.pl] has joined #code |
20:18 | | mode/#code [+o AnnoDomini] by Reiver |
21:12 | < Finale> | <@RaptorIIC> Error: Too many arguments when calling GirlFriend(); |
21:19 | < Rhamphoryncus> | TypeError: girlfriend() takes no arguments (100 given) |
21:32 | < dmlandrum> | Invalid Argument: 99Problems(): Bitch not allowed. |
21:33 | < dmlandrum> | Wish I had thought of that one when the Song in Code meme was still on Twitter. |
21:34 | < Finale> | pfft |
22:01 | < Finale> | win http://bash.org/?5836 |
22:20 | | AnnoDomini [farkoff@Nightstar-b65467f5.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds] |
22:26 | | AnnoDomini [farkoff@Nightstar-5cc36bc3.adsl.tpnet.pl] has joined #code |
22:26 | | mode/#code [+o AnnoDomini] by Reiver |
22:42 | | Orthia [Orthianz@Nightstar-e3e16852.xnet.co.nz] has quit [Connection reset by peer] |
22:50 | | Orthia [Orthianz@Nightstar-e3e16852.xnet.co.nz] has joined #code |
23:20 | | Attilla [The.Attilla@FBC920.642D35.FA4C32.0AF6BA] has quit [Ping timeout: 121 seconds] |
23:25 | | Attilla [The.Attilla@FBC920.81F6E9.FB62CC.7FFC39] has joined #code |
23:25 | | mode/#code [+o Attilla] by Reiver |
23:33 | | gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [[NS] Quit: Z?] |
23:38 | | Derakon[work] [Derakon@Nightstar-d44d635e.ucsf.edu] has joined #code |
23:38 | < Derakon[work]> | Well, I've made my first noticeable improvement to the UI of the microscope software. |
23:39 | < Derakon[work]> | To wit: I added a dialogue box that performs an action that you used to have to invoke via Python. |
23:42 | | Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code |
23:42 | <@Vornicus> | Wootburger |
23:42 | < Derakon[work]> | I've also gone through and cleaned up some of the text in another dialogue box. |
23:43 | < Derakon[work]> | Things like " ===> experiments use ALL connected cameras !!! <===" and "advanced settings -- you no change !!!" |
23:44 | <@Vornicus> | I like it. |
23:45 | < Derakon[work]> | It's amazing how much more professional things look when you use, say, capital letters. |
23:45 | < Finale> | wonder if that's why people talk in all caps. <_< |
--- Log closed Tue Sep 22 00:00:00 2009 |