--- Log opened Thu Feb 03 00:00:19 2011 |
00:12 | | Kindamoody is now known as Kindamoody[zZz] |
00:13 | | RichardBarrell [mycatverbs@Nightstar-ac7cec9b.cable.virginmedia.com] has joined #code |
00:30 | < Reiv> | So, fun little puzzle |
00:30 | < Reiv> | I have a 1 hour .mp3 file. |
00:31 | < Reiv> | I also have a .cue file containing all its tracks. |
00:31 | < Reiv> | How the heck do I render these things into something useful? |
00:38 | <@ToxicFrog> | Um |
00:39 | <@ToxicFrog> | The easy answer is "re-rip from the original image that the cue file is linked to" |
00:39 | | * celticminstrel created a custom dict that binds to a database table. <_< |
00:39 | < Reiv> | See that's what I thought |
00:39 | < Reiv> | Except that the .mp3 is the image ;_; |
00:40 | | * Reiv needs to pay more attention to the contents of his files ?? |
00:44 | <@ToxicFrog> | ....how did that happen |
00:46 | | Rhamphoryncus [rhamph@Nightstar-473f8685.abhsia.telus.net] has joined #code |
01:13 | < gnolam> | Define "render into something useful". |
01:14 | < gnolam> | If it's splitting it you want, ffmpeg does the job nicely. |
01:17 | | cpux [chatzilla@Nightstar-c978de34.dyn.optonline.net] has quit [[NS] Quit: ChatZilla 0.9.86 [Firefox 3.6.13/20101203075014]] |
01:21 | | cpux [chatzilla@Nightstar-c978de34.dyn.optonline.net] has joined #code |
01:27 | < Reiv> | gnolam: Awesome, cheres |
01:32 | | cpux [chatzilla@Nightstar-c978de34.dyn.optonline.net] has quit [Ping timeout: 121 seconds] |
01:33 | | * Reiv eyes ffmpeg with the suspicious and ignorant eyes of a windows user. |
01:33 | | cpux [chatzilla@Nightstar-c978de34.dyn.optonline.net] has joined #code |
01:34 | | RichardBarrell [mycatverbs@Nightstar-ac7cec9b.cable.virginmedia.com] has quit [Ping timeout: 121 seconds] |
01:38 | < gnolam> | Reiv: ffmpeg -acodec copy -i [input filename] -ss hh:mm:ss[.xxx] -t hh:mm:ss[.xxx] [output filename] |
01:38 | < gnolam> | Where the -ss argument is the starting time and the -t argument the duration. |
01:39 | < Reiv> | Fascinating. |
01:39 | < Reiv> | Where am I typing that in?~ |
01:39 | < Reiv> | Also that seems to demand I do it manually. Which I guess I can do; I was just hoping there was something out there that would chop up an mp3 into bitesized bits based on a cue file. |
01:45 | <@ToxicFrog> | Should be shellscriptable, cue files are plaintext |
01:45 | <@ToxicFrog> | Oh wait |
01:45 | <@ToxicFrog> | Windows |
01:45 | <@McMartin> | batchfileable. |
01:47 | <@ToxicFrog> | What sort of text processing tools does windows come with? I was thinking of something like awk foo.cue | while read start end; ffmpeg |
01:47 | | cpux [chatzilla@Nightstar-c978de34.dyn.optonline.net] has quit [[NS] Quit: ChatZilla 0.9.86 [Firefox 3.6.13/20101203075014]] |
01:47 | < Reiv> | Well, windows 7 might do more than most |
01:48 | < Reiv> | But I can't really say beyond that >_> |
01:49 | | cpux [chatzilla@Nightstar-c978de34.dyn.optonline.net] has joined #code |
01:50 | | cpux [chatzilla@Nightstar-c978de34.dyn.optonline.net] has quit [[NS] Quit: ChatZilla 0.9.86 [Firefox 3.6.13/20101203075014]] |
01:52 | | cpux [chatzilla@Nightstar-c978de34.dyn.optonline.net] has joined #code |
02:08 | <@McMartin> | PowerShell is apparently insanely powerful, but I know nowt of it |
02:09 | <@McMartin> | That said, an awful lot of Windows prefab machines ship with Python these days, as it powers HP's shovelware |
02:45 | | gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [[NS] Quit: Z?] |
03:18 | | Orth[mini] [orthia@3CF3A5.E1CD01.36D449.95F5A5] has joined #code |
03:47 | | cpux is now known as shade_of_cpux |
04:15 | | Orth[mini] [orthia@3CF3A5.E1CD01.36D449.95F5A5] has quit [Ping timeout: 121 seconds] |
05:05 | | kwsn [kwsn@Nightstar-7426b23f.dyn.centurytel.net] has joined #code |
05:12 | <@ToxicFrog> | Oh dear. |
05:12 | | * ToxicFrog assigns a grade of 4/15 |
05:17 | < Vornicus> | Another of the 50-gate wonders? |
05:22 | <@ToxicFrog> | No, just someone who clearly Does Not Understand K-maps. |
05:22 | <@ToxicFrog> | Which is unfortunate since this assignment is entirely about them. |
05:25 | | celticminstrel [celticminst@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!] |
05:31 | | celticminstrel [celticminst@Nightstar-f8b608eb.cable.rogers.com] has joined #code |
05:48 | <@ToxicFrog> | So far I've handed out one 10, one 9, and everything else has been <=5. |
05:51 | <@ToxicFrog> | Conclusion: almost no-one in this course understands K-maps at all. |
05:52 | < Namegduf> | I remember studying those. |
05:54 | <@McMartin> | K-maps are pretty awesome |
05:54 | <@McMartin> | I've forgotten them, but I remember them being awesome. |
05:54 | <@ToxicFrog> | God. Even Alexandra, who kicked the shit out of the previous two assignments, is doing miserably. |
05:54 | <@ToxicFrog> | THEY'RE TOROIDALLY CONNECTED, PEOPLE |
05:54 | <@ToxicFrog> | AND IT'S OK FOR REGIONS TO OVERLAP |
05:55 | <@McMartin> | I blame videogames |
05:55 | <@McMartin> | Or, more specifically, the shift to heathenous 2D |
05:55 | <@McMartin> | Er |
05:55 | <@McMartin> | 3D |
05:55 | <@McMartin> | 2D being clasically toroidally connected and all |
05:56 | < Vornicus> | A great many 3d games are still toroidal |
05:56 | < celticminstrel> | "toroidally connected" didn't exactly pop into my head when he was talking about it. |
05:56 | < celticminstrel> | Definitely true though.. |
05:56 | < Vornicus> | ff7 etc have toroidal world maps, as does Populous: the Beginning, which was a hell of a mindfuck... |
05:58 | <@ToxicFrog> | I'm seeing three distinct failure modes here. |
05:58 | <@ToxicFrog> | (1) failure to realize regions can (and often should) overlap |
05:58 | <@ToxicFrog> | (2) failure to realize that the k-map is a torus |
05:58 | <@ToxicFrog> | (3) stupid mistakes mapping equations in CPOS and CSOP form resulting in transposed rows and columns |
06:03 | < Vornicus> | CPOS and CSOP? |
06:04 | < celticminstrel> | No idea what the C is, but product-of-sum and sum-of-product. I think. |
06:04 | <@ToxicFrog> | Canonical {product,sum} of {sums,products} |
06:09 | < Vornicus> | ah |
06:11 | <@ToxicFrog> | Specifically, what happens is that the layout of the k-map is 0 1 3 2 \\ 4 5 7 6 \\ 12 13 15 14 \\ 8 9 11 10 |
06:11 | <@ToxicFrog> | But people see something like E(0, 2, 4, 6, 7) and fill out the map as though it were 0 1 2 3 \\ 4 5 6 7 \\ 8 9 10 11 \\ 12 13 14 15 |
06:12 | < celticminstrel> | I have no idea what the E thing means. |
06:13 | <@ToxicFrog> | ? |
06:13 | < Vornicus> | hooray grey code |
06:13 | < Vornicus> | gray code? |
06:13 | | * Vornicus forgets the spelling for that one. |
06:16 | < celticminstrel> | Still have no idea what it means though... |
06:16 | < celticminstrel> | Oh wait. |
06:17 | < celticminstrel> | But not how the following map in any way follows from it. |
06:17 | <@ToxicFrog> | Greek capital sigma, otherwise known as the sum-of function. |
06:18 | | AnnoDomini [annodomini@Nightstar-fa530dd3.adsl.tpnet.pl] has joined #code |
06:18 | | mode/#code [+o AnnoDomini] by Reiver |
06:18 | <@ToxicFrog> | The indexes of the minterms in CSOP notation are the same as the indexes of the cells in the K-map that are 1. |
06:18 | <@ToxicFrog> | However, the cells in the K-map are arranged in Gray code order, not numeric order. |
06:20 | < Vornicus> | so correctly, that map would be filled out 1 0 0 1 / 1 0 1 1 / 0 0 0 0 / 0 0 0 0 |
06:20 | | * jerith <3 K-maps. |
06:20 | < Vornicus> | but they're doing 1 0 1 0 / 1 0 1 1 / 0 0 0 0 / 0 0 0 0 |
06:20 | < Vornicus> | Speaking of which whatever happened to Karnaugh? |
06:21 | <@jerith> | He still hangs out on Shadowfire. |
06:22 | < celticminstrel> | Ah, I didn't realize those numbers were indices. <_< |
06:24 | < Vornicus> | To be fair that one slips me up too -- for some reason though only in the y direction. |
06:25 | | celticminstrel [celticminst@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!] |
06:40 | | froztbyte [froztbyte@Nightstar-dc394964.za.net] has joined #code |
07:36 | | kwsn [kwsn@Nightstar-7426b23f.dyn.centurytel.net] has quit [[NS] Quit: ] |
07:42 | | You're now known as TheWatcher |
08:11 | <@TheWatcher> | Ohgods, I should know better than to read the backscroll in here first thing in the morning *shudders at the nightmares that were K-maps at uni* |
08:13 | | * Vornicus patpats TW |
08:16 | | Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has joined #code |
08:41 | | Kindamoody[zZz] is now known as Kindamoody |
08:44 | | Kindamoody is now known as Kindamoody|out |
08:51 | | You're now known as TheWatcher[afk] |
09:41 | | Maze is now known as EvilDarkLord |
09:58 | | Vornicus is now known as Vornicus-Latens |
10:06 | | AnnoDomini [annodomini@Nightstar-fa530dd3.adsl.tpnet.pl] has quit [[NS] Quit: leaving] |
10:41 | | AnnoDomini [annodomini@F67919.F326B3.98D923.BDA7B6] has joined #code |
10:41 | | mode/#code [+o AnnoDomini] by Reiver |
12:12 | | AnnoDomini [annodomini@F67919.F326B3.98D923.BDA7B6] has quit [[NS] Quit: leaving] |
12:12 | | AnnoDomini [annodomini@F67919.F326B3.98D923.BDA7B6] has joined #code |
12:12 | | mode/#code [+o AnnoDomini] by Reiver |
12:12 | | AnnoDomini [annodomini@F67919.F326B3.98D923.BDA7B6] has quit [[NS] Quit: leaving] |
12:42 | | Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has quit [Client closed the connection] |
12:42 | | AnnoDomini [annodomini@Nightstar-fa530dd3.adsl.tpnet.pl] has joined #code |
12:42 | | mode/#code [+o AnnoDomini] by Reiver |
13:29 | <@ToxicFrog> | TheWatcher[afk]: hey, k-maps are awesoe |
13:41 | | celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code |
14:25 | | gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code |
14:34 | < simon_> | hmm |
14:34 | < simon_> | an assignment asks me to implement some malloc/free strategies and benchmark them. |
14:34 | < simon_> | I'm a little confused about how my program asks the kernel about more heap memory for the freelist. |
14:35 | < simon_> | I suppose there are system calls for this for specific operating systems. |
14:35 | < simon_> | but the closest to the kernel I ever came were malloc/free, so I'm sure there must be something more low-level :) |
14:43 | < celticminstrel> | Assembly? |
14:55 | < simon_> | celticminstrel, how would I refer to the heap in C/inline assembler? |
14:56 | < celticminstrel> | By address? I dunno. |
14:57 | < celticminstrel> | Just for the record, I have no idea what the answer is to your, uh, dilemma. |
14:59 | < simon_> | well |
15:00 | < simon_> | if I have a pointer to the start of the heap, and the current size of the heap, my algorithm is good to go. if I can't get that using low-level calls, I could fake it by calling malloc(). but it seems stupid since *I'm* supposed to implement malloc. :P |
15:00 | < simon_> | so I suppose what I want is an address to the start of the heap and a system call that asks for more heap space (and assumes that the kernel can do some neat memory mapping, so I don't need to think about much.) |
15:01 | < celticminstrel> | Well, that seems good enough then. Maybe. |
15:01 | < celticminstrel> | Perhaps the size and location of the heap is supposed to be given? |
15:01 | < celticminstrel> | ie write an algorithm assuming you know that. |
15:01 | < celticminstrel> | Since it's low-level, it wouldn't surprise me... |
15:07 | | Reiv [orthianz@3CF3A5.E1CD01.36D449.95F5A5] has quit [Client closed the connection] |
15:07 | | Reiv [orthianz@3CF3A5.E1CD01.36D449.95F5A5] has joined #code |
15:17 | | Reiv [orthianz@3CF3A5.E1CD01.36D449.95F5A5] has quit [Client closed the connection] |
15:18 | | Reiv [orthianz@3CF3A5.E1CD01.36D449.95F5A5] has joined #code |
16:00 | | celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!] |
16:03 | | celticminstrel [celticminst@Nightstar-f8b608eb.cable.rogers.com] has joined #code |
16:19 | | celticminstrel [celticminst@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!] |
16:38 | | You're now known as TheWatcher |
17:25 | | Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has joined #code |
17:53 | | Kindamoody|out is now known as Kindamoody |
17:54 | | Rhamphoryncus [rhamph@Nightstar-473f8685.abhsia.telus.net] has quit [Client exited] |
18:20 | <@ToxicFrog> | simon_: sbrk(2)? |
18:22 | | Kindamoody is now known as Kimo|translation |
18:28 | | Syloqs-AFH [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds] |
18:30 | | Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has quit [Ping timeout: 121 seconds] |
18:31 | | Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has joined #code |
18:32 | | Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code |
18:33 | | Syloqs_AFH is now known as Syloqs-AFH |
18:35 | | jeroid [jerith@687AAB.5E3E50.4B1C26.7CA4B9] has joined #code |
19:03 | | Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code |
19:05 | | Syloqs-AFH [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds] |
19:18 | | Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has quit [[NS] Quit: Leaving] |
19:18 | | Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has joined #code |
19:18 | | Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has quit [Client closed the connection] |
19:46 | | AnnoDomini [annodomini@Nightstar-fa530dd3.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds] |
19:48 | | AnnoDomini [annodomini@Nightstar-4ab4bb7a.adsl.tpnet.pl] has joined #code |
19:48 | | mode/#code [+o AnnoDomini] by Reiver |
20:00 | | jeroid [jerith@687AAB.5E3E50.4B1C26.7CA4B9] has quit [[NS] Quit: Bye] |
21:41 | | SmithKurosaki [smith@Nightstar-7820a96a.dsl.teksavvy.com] has quit [Ping timeout: 121 seconds] |
21:51 | | RichardBarrell [mycatverbs@Nightstar-ac7cec9b.cable.virginmedia.com] has joined #code |
22:39 | | AnnoDomini [annodomini@Nightstar-4ab4bb7a.adsl.tpnet.pl] has quit [[NS] Quit: Sleep.] |
23:00 | <@ToxicFrog> | Someone recommend me a linux email client with threading, group-by-date, and contacts management. |
23:02 | <@TheWatcher> | Claws will do 1 and 3, but not 2 AFAIK... |
23:56 | | shade_of_cpux is now known as cpux |
23:57 | | celticminstrel [celticminst@Nightstar-f8b608eb.cable.rogers.com] has joined #code |
--- Log closed Fri Feb 04 00:00:20 2011 |