--- Log opened Wed May 04 00:00:58 2011 |
00:16 | | celmin|supper is now known as celticminstrel |
00:32 | | You're now known as TheWatcher[T-2] |
00:36 | | You're now known as TheWatcher[zZzZ] |
00:58 | | Attilla [Some.Dude@Nightstar-92c9199f.cable.virginmedia.com] has quit [Ping timeout: 121 seconds] |
01:03 | | Vornicus-Latens is now known as Vornicus |
01:07 | | Rikushadow5 [DSD@971820.2006D3.DBC863.99F457] has quit [[NS] Quit: Shall return at a later time and date when I feel like it. Or my comp went boom. Pick one.] |
01:15 | | gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [[NS] Quit: Z?] |
01:57 | | Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds] |
04:16 | | BarbecuePhox is now known as Neophox |
04:34 | | Rhamphoryncus [rhamph@C06FE3.F5723C.BE3FEB.9D4666] has joined #code |
04:36 | | Kindamoody is now known as Kindamoody[zZz] |
05:15 | | Reiver [orthianz@9C034E.E649EA.3194C7.8381A3] has quit [Ping timeout: 121 seconds] |
05:19 | | Reiver [orthianz@9C034E.E649EA.3194C7.8381A3] has joined #code |
05:49 | | Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code |
05:58 | < Reiver> | PROGRAMMINGS |
05:58 | | * Reiver ponders how to wrestle Python to his will. |
05:58 | < Reiver> | Lists! How do I name shit? |
05:58 | < celticminstrel> | What? |
05:58 | < Reiver> | Do I end up naming every item in every row, or is there some way to cheatify a column header? |
05:59 | < celticminstrel> | I don't get what you're doing. |
05:59 | < Reiver> | Oh, right. |
06:00 | < Reiver> | I am importing a csv file full of data. I am then importing/posessing/haven'tworkeditoutyet another two sets of data, which I will be applying to the former. |
06:00 | < Reiver> | Fairly simple stuff: If column one states Large, then column 3 gets +4, column 4 gets -2, etc |
06:01 | < Reiver> | Thus lettin me output a full statfile that I can shove into a Office document via mailmerge, letting me output template-generated statblocks for D&D monsters. |
06:02 | | kwsn [kwsn@Nightstar-9d744862.dyn.centurytel.net] has joined #code |
06:03 | < celticminstrel> | Okay, so what's the trouble? |
06:03 | | * kwsn is awesome, she managed to make a program for a PIC that was using 44% of the code space take up 34% :D |
06:05 | < Reiver> | Mostly that I've never played with Python lists before, and am trying to figure out how to get the data to a point that I can manipulate data within rows by calling the columns by name. |
06:06 | < celticminstrel> | Sounds like you should "rotate" your table. |
06:06 | < celticminstrel> | Except I'm not sure how easy or hard that would be. |
06:08 | < Reiver> | Well, uh, I'm not sure that would help either. |
06:10 | < celticminstrel> | Well, if it were rotated somehow, you'd end up with a dictionary, the keys being the column names, and the values being the actual columns. I'm not sure if it would help though. |
06:11 | < celticminstrel> | Or you could just have a list of dictionaries all with the same keys. |
06:22 | | celticminstrel [celticminst@1526F6.37AB0D.97233B.788A64] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!] |
06:24 | | AnnoDomini [annodomini@D553D1.D82A92.86239C.382320] has joined #code |
06:48 | < Vornicus> | zip |
06:49 | < Vornicus> | zip takes a list of lists (or other iterables) and collates them. |
06:50 | < Vornicus> | Reiver: however, if you have a CSV full of data, with column headings at the top, the CSV system has a reader that creates dicts instead of lists. |
06:51 | < Vornicus> | And those dicts you can futz with. |
06:53 | < Vornicus> | On the /other/ hand if what you really want is a dictionary of objects because you've got, like, a table of planets and you want to search them by name, that will require more fiddling. |
07:06 | | You're now known as TheWatcher |
07:44 | | SmithKurosaki [smith@Nightstar-1e66ccde.dsl.teksavvy.com] has quit [Operation timed out] |
07:55 | | You're now known as TheWatcher[afk] |
08:30 | | kwsn is now known as kw\t-2 |
08:32 | | kw\t-2 [kwsn@Nightstar-9d744862.dyn.centurytel.net] has quit [[NS] Quit: moo] |
08:40 | | Kindamoody[zZz] is now known as Kindamoody |
08:41 | | Vornicus is now known as Vornicus-Latens |
08:52 | | Kindamoody is now known as Kindamoody|out |
09:24 | | You're now known as TheWatcher |
09:30 | | Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code |
09:55 | | gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code |
10:28 | | AnnoDomini [annodomini@D553D1.D82A92.86239C.382320] has quit [[NS] Quit: BRB.] |
10:28 | | AnnoDomini [annodomini@D553D1.D82A92.86239C.382320] has joined #code |
10:28 | | Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds] |
10:37 | | AnnoDomini [annodomini@D553D1.D82A92.86239C.382320] has quit [[NS] Quit: Ded.] |
10:37 | | AnnoDomini [annodomini@D553D1.D82A92.86239C.382320] has joined #code |
10:37 | | Attilla [Some.Dude@Nightstar-92c9199f.cable.virginmedia.com] has joined #code |
10:56 | < AnnoDomini> | I have become a living legend at my Uni wrt VHDL programming. |
10:57 | < AnnoDomini> | Today, when I was collecting signatures for my end-of-studies card, the dital tech teacher said that people still use my custom library. |
10:57 | < Tamber> | :) |
10:57 | < AnnoDomini> | Way back in the day that I attended the VHDL classes, we were told to make our own primitives as practice and then use them. |
10:58 | < AnnoDomini> | I wrote a little library with components and declarations, so I wouldn't have to paste everything into the main file of every project. |
10:58 | < EvilDarkLord> | Hah, congrats. |
10:59 | | * Tamber ...s, facepalms. |
10:59 | < AnnoDomini> | Nowadays, people turn in their homework with my library declared in the header. The teacher inevitably asks them "what does this do?" and they have no idea. They think it's some sort of arcane VHDL thing that needs to be there. |
10:59 | < Tamber> | So, I just found out why I couldn't get LUKS to work on my laptop last time I tried. Whaddya know, layer 8 issue once again. |
11:03 | | * Tamber makes a mental note to read the documentation now and again. |
11:06 | < gnolam> | AnnoDomini: Haha |
11:06 | < Tamber> | "AnnoDomini, the creator of Dark Magic(TM)"? :P |
11:54 | < froztbyte> | AnnoDomini: hahaha |
11:55 | < froztbyte> | AnnoDomini: nicely played |
12:01 | < AnnoDomini> | :) |
12:32 | | cpux is now known as shade_of_cpux |
12:50 | | Stalker [Z@26ECB6.A4B64C.298B52.D80DA0] has joined #code |
14:46 | | You're now known as TheWatcher[afk] |
16:44 | | SmithKurosaki [smith@4FC299.382CB9.EF1529.A5B039] has joined #code |
18:10 | | celticminstrel [celticminst@1526F6.37AB0D.97233B.788A64] has joined #code |
18:20 | | celticminstrel [celticminst@1526F6.37AB0D.97233B.788A64] has quit [Client exited] |
18:25 | | celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code |
20:02 | | Kindamoody|out is now known as Kindamoody |
20:30 | | Kindamoody [Kindamoody@Nightstar-4764665d.tbcn.telia.com] has quit [Connection closed] |
20:30 | | Kindamoody [Kindamoody@35E323.4A5F05.9893B9.A684A3] has joined #code |
20:34 | | Kindamoody is now known as Kindamoody|afk |
20:50 | | You're now known as TheWatcher |
21:03 | | Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed] |
21:23 | | Kindamoody|afk is now known as Kindamoody |
21:40 | | RichardBarrell [mycatverbs@Nightstar-f68eb197.cable.virginmedia.com] has joined #code |
22:17 | | Rhamphoryncus [rhamph@C06FE3.F5723C.BE3FEB.9D4666] has quit [Client exited] |
22:24 | | RichardBarrell [mycatverbs@Nightstar-f68eb197.cable.virginmedia.com] has quit [Client closed the connection] |
22:24 | | RichardBarrell [mycatverbs@F67919.628980.16FC78.24AEE3] has joined #code |
22:26 | | SmithKurosaki [smith@4FC299.382CB9.EF1529.A5B039] has quit [Ping timeout: 121 seconds] |
22:27 | | SmithKurosaki [smith@4FC299.382CB9.EF1529.A5B039] has joined #code |
22:45 | | AnnoDomini [annodomini@D553D1.D82A92.86239C.382320] has quit [Ping timeout: 121 seconds] |
22:47 | | AnnoDomini [annodomini@D553D1.41311B.78E477.308830] has joined #code |
23:32 | | You're now known as TheWatcher[T-2] |
23:34 | | You're now known as TheWatcher[zZzZ] |
23:43 | | AnnoDomini [annodomini@D553D1.41311B.78E477.308830] has quit [[NS] Quit: Zzz.] |
23:50 | | shade_of_cpux is now known as cpux |
23:51 | | SmithKurosaki [smith@4FC299.382CB9.EF1529.A5B039] has quit [Ping timeout: 121 seconds] |
--- Log closed Thu May 05 00:00:12 2011 |