--- Log opened Wed May 04 00:00:49 2016 |
00:37 | | himi [fow035@Nightstar-dm0.2ni.203.150.IP] has joined #code |
00:37 | | mode/#code [+o himi] by ChanServ |
01:16 | <&McMartin> | Huh. https://github.com/cisco/chezscheme |
01:17 | <&McMartin> | After 31 years of dev, it's open-source now |
01:42 | < [R]> | 6 packets transmitted, 4 received, 33% packet loss, time 4999ms |
01:42 | < [R]> | WTF |
01:43 | <&McMartin> | Ouch |
01:47 | | Turaiel[Offline] is now known as Turaiel |
01:47 | < [R]> | Roomie doesn't seem to be torrenting |
01:47 | < [R]> | I'm not torrenting, but roomie's not here ATM. |
01:48 | < simon_> | is the router blinking like crazy? |
01:48 | <@celticminstrel> | It's possible to be torrenting while not physically present! |
01:48 | < simon_> | McMartin, a mature language. |
01:48 | < [R]> | The switch is |
01:48 | < simon_> | [R], unplug one and see what happens! |
01:48 | | Crossfire [Z@Nightstar-r9lk5l.cust.comxnet.dk] has quit [Ping timeout: 121 seconds] |
01:48 | < [R]> | celticminstrel: I actually went into his room and looked at his desktop. |
01:49 | <@celticminstrel> | Ah. |
01:50 | < [R]> | Disconnecting him from the switch fixes the issue |
01:50 | < [R]> | So I'll be talking to him when he gets back |
02:10 | | catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has left #code ["Leaving"] |
02:32 | | celticminstrel [celticminst@Nightstar-q0f7bb.dsl.bell.ca] has quit [Ping timeout: 121 seconds] |
02:35 | | celticminstrel [celticminst@Nightstar-q0f7bb.dsl.bell.ca] has joined #code |
02:36 | | mode/#code [+o celticminstrel] by ChanServ |
02:48 | | catadroid [catalyst@Nightstar-ip74kr.dab.02.net] has joined #code |
03:40 | <&McMartin> | Hrm. Possible zombification? |
03:40 | <&McMartin> | (Possible surprise Windows update?~) |
03:47 | < [R]> | He was downloading Overwatch |
03:48 | < [R]> | Didn't recognize battle.net as a torrent client |
03:48 | < [R]> | Which I probably should've given I knew that's how WoW passes its updates around |
03:49 | <&McMartin> | oh right |
04:20 | | gnolam_ [lenin@Nightstar-t1tbf0.cust.bahnhof.se] has joined #code |
04:23 | | abudhabi [abudhabi@Nightstar-7nkq9k.de] has quit [Ping timeout: 121 seconds] |
04:23 | | abudhabi [abudhabi@Nightstar-7nkq9k.de] has joined #code |
04:23 | | gnolam [lenin@Nightstar-t1tbf0.cust.bahnhof.se] has quit [Ping timeout: 121 seconds] |
04:57 | | Derakon is now known as Derakon[AFK] |
05:00 | | catadroid [catalyst@Nightstar-ip74kr.dab.02.net] has quit [Connection closed] |
05:03 | | catadroid [catalyst@Nightstar-ip74kr.dab.02.net] has joined #code |
05:30 | | Turaiel is now known as Turaiel[Offline] |
05:32 | | VirusJTG_ [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code |
05:34 | | VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [Ping timeout: 121 seconds] |
06:37 | | Kindamoody[zZz] is now known as Kindamoody |
06:54 | | celticminstrel [celticminst@Nightstar-q0f7bb.dsl.bell.ca] has quit [[NS] Quit: KABOOM! It seems that I have exploded. Please wait while I reinstall the universe.] |
07:22 | | Crossfire [Z@Nightstar-r9lk5l.cust.comxnet.dk] has joined #code |
07:22 | | mode/#code [+o Crossfire] by ChanServ |
07:58 | | Reiv [NSwebIRC@Nightstar-q8avec.kinect.net.nz] has quit [Ping timeout: 121 seconds] |
08:01 | | himi [fow035@Nightstar-dm0.2ni.203.150.IP] has quit [Ping timeout: 121 seconds] |
08:27 | | catadroid` [catalyst@Nightstar-q1uetv.dab.02.net] has joined #code |
08:30 | | catadroid [catalyst@Nightstar-ip74kr.dab.02.net] has quit [Ping timeout: 121 seconds] |
08:59 | | gnolam_ is now known as gnolam |
09:00 | | mode/#code [+o gnolam] by ChanServ |
09:08 | < abudhabi> | Can someone explain how python's lambdas work? |
09:09 | | Kindamoody is now known as Kindamoody|afk |
09:16 | <~Vornicus> | lambda foo, bar: blah --> def nameless_function(foo, bar): return blah |
09:17 | < abudhabi> | OK. |
09:18 | < abudhabi> | I was somewhat confused by the official doc's example. |
09:18 | < abudhabi> | Where it was referencing an outer variable... which wasn't explicitly defined. |
09:18 | < abudhabi> | https://docs.python.org/3.5/tutorial/controlflow.html#lambda-expressions |
09:19 | < abudhabi> | I mean, that's what it does - there's a variable called x out there, and the method increments it. |
09:19 | < abudhabi> | Right? |
09:20 | <~Vornicus> | Oh this is closures land |
09:22 | <~Vornicus> | Right so. you call incrementor and it actually creates a function (the lambda) which knows where it came from and keeps track of the space it was living in at the time. This space includes, specifically, the value that n had when the function was defined. |
09:26 | < abudhabi> | But where does x come from? |
09:27 | <~Vornicus> | note how it says lambda x: |
09:27 | < abudhabi> | Yes? |
09:27 | <~Vornicus> | That's where the x comes from. |
09:28 | <~Vornicus> | We name it as a parameter for the function |
09:28 | < abudhabi> | So make_incrementor(42) gives you a function with n as parameter, which is saved as f, and then f is called with a parameter, which is x? |
09:28 | <~Vornicus> | .... |
09:28 | <~Vornicus> | make_incrementor(42) sets n to 42, then defines a function with x as a parameter that when called adds x and 42. |
09:29 | < abudhabi> | f in this case is "def whatever(x): return x +42", right? |
09:30 | <~Vornicus> | yes |
09:33 | <~Vornicus> | (note: closures are more complicated than I've described. Doing this carelessly can lead to Problems. in particular: avoid loops, and avoid mutables, as things your closures think at, if you want them to behave nicely without having to befuddle over what the hell they're doing later) |
09:33 | | Alek [Alek@Nightstar-9qtiqv.il.comcast.net] has quit [Ping timeout: 121 seconds] |
09:37 | | Alek [Alek@Nightstar-9qtiqv.il.comcast.net] has joined #code |
09:37 | | mode/#code [+o Alek] by ChanServ |
09:47 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code |
09:47 | | mode/#code [+o himi] by ChanServ |
09:58 | | emmy-zZz is now known as emmy |
09:59 | | Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed] |
10:05 | | Reiv [NSwebIRC@Nightstar-g7fs0k.xtra.co.nz] has joined #code |
10:05 | | mode/#code [+o Reiv] by ChanServ |
10:16 | | Irssi: #code: Total of 40 nicks [24 ops, 0 halfops, 0 voices, 16 normal] |
10:47 | | VirusJTG_ [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [[NS] Quit: Leaving] |
10:47 | | VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code |
11:50 | | catadroid` is now known as catadroid |
12:14 | | ion [Owner@Nightstar-6grqph.vs.shawcable.net] has quit [Ping timeout: 121 seconds] |
12:16 | | ion [Owner@Nightstar-6grqph.vs.shawcable.net] has joined #code |
12:45 | < abudhabi> | What's the rule for when an interactive mode python command will return something? |
12:45 | < abudhabi> | Because if I do 'derp = "aoe"', I get nothing, but if I do '"aoe"', I get "'aoe'". |
12:49 | < pjdelport> | abudhabi: Statements get executed; expressions get printed if they're not None. |
12:50 | < pjdelport> | (so that you're not over-indundated with Nones) |
12:50 | < abudhabi> | Is None a string literal? A keyword? |
12:53 | < pjdelport> | It's a keyword and special type / object. |
12:53 | < pjdelport> | You conventionally test for it with "is None" or "is not None" |
12:59 | | Reiv [NSwebIRC@Nightstar-g7fs0k.xtra.co.nz] has quit [Ping timeout: 121 seconds] |
13:27 | < abudhabi> | weapon.strip() ?! |
13:28 | < abudhabi> | Oh, I see. They make joke. |
13:28 | < abudhabi> | [weapon.strip() for weapon in freshfruit] |
13:56 | | You're now known as TheWatcher[d00m] |
14:07 | < abudhabi> | How's garbage collection in Python? |
14:07 | < abudhabi> | I see a "del" keyword. |
14:16 | | celticminstrel [celticminst@Nightstar-q0f7bb.dsl.bell.ca] has joined #code |
14:16 | | mode/#code [+o celticminstrel] by ChanServ |
14:57 | | catadroid` [catalyst@Nightstar-3p4ekh.dab.02.net] has joined #code |
15:00 | | catadroid [catalyst@Nightstar-q1uetv.dab.02.net] has quit [Ping timeout: 121 seconds] |
15:04 | < pjdelport> | abudhabi: Like any other language, pretty. much. |
15:06 | < pjdelport> | abudhabi: The del keyword is used to unbind variables, or remove attributes and indexes/keys |
15:10 | | Alek [Alek@Nightstar-9qtiqv.il.comcast.net] has quit [Connection closed] |
15:14 | | Alek [Alek@Nightstar-9qtiqv.il.comcast.net] has joined #code |
15:14 | | mode/#code [+o Alek] by ChanServ |
15:14 | | catadroid` [catalyst@Nightstar-3p4ekh.dab.02.net] has quit [[NS] Quit: Bye] |
15:14 | | catadroid [catalyst@Nightstar-3p4ekh.dab.02.net] has joined #code |
15:23 | | You're now known as TheWatcher |
15:27 | <&ToxicFrog> | abudhabi: python uses refcounting (and immediately frees objects with a refcount of 0), with some additional generational stuff to handle reference cycles |
15:29 | <&ToxicFrog> | (or at least, CPython does. I don't know about other implementations.) |
15:39 | | Crossfire [Z@Nightstar-r9lk5l.cust.comxnet.dk] has quit [Ping timeout: 121 seconds] |
15:41 | | Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code |
15:41 | | mode/#code [+qo Vornicus Vornicus] by ChanServ |
15:54 | < pjdelport> | PyPy uses a tracing implementation (by default; the implementation is pluggable, and there are multiple GC backends IINM) |
15:57 | < simon_> | I'm writing a unit test that depends on timing; I'm testing that a BlockingDownloader doesn't time out on 404s, but rather fails fast. |
15:58 | < simon_> | when I run the positive test (that a 200 OK doesn't fail), the test takes about 82ms. I'd like to keep the maximum timeout low, but not so much that the test might fail if the build server is having a bad day. |
15:58 | < pjdelport> | simon_: Can you instrument the clock? |
15:59 | < simon_> | my co-workers seem to prefer that the total test suite doesn't explode. it currently takes like 20-30 minutes, which effectively is a bottleneck when deploying. |
15:59 | < pjdelport> | That's faster, and more reliable. |
15:59 | < simon_> | pjdelport, ahhh, mocking out the entire sleeping process. |
15:59 | < simon_> | pjdelport, I should be doing that, I admit. yeah. hm... |
16:16 | < simon_> | pjdelport, I'm hooking right into .NET's System.Threading.WaitHandle thingamabob... I think this is too low-priority to mock the thread code. gosh, one has to think of testing early on! |
16:36 | < abudhabi> | OK. Conversion of m4v file to mp4 under Linux. It's a large one (3.5 GB). What's the procedure? |
16:37 | <&ToxicFrog> | ffmpeg, or something else that uses it as a backend like mencoder. |
16:38 | <&ToxicFrog> | M4V is almost the same as MP4 -- it's an Apple-specific container format for the same data, with DRM attachment points -- so this should be a simple remux. |
16:39 | <&ToxicFrog> | (also, check it with "file" to see if it's already MP4 -- I've seen MP4 video files in the past given "m4v" extensions, presumably by analogy to m4a) |
16:39 | < abudhabi> | Hmm. OK. I'm not sure why it's so huge, maybe it's super-long. My boss indicated that it's not a big deal if quality is lost. |
16:39 | < abudhabi> | Maybe should convert it to some saner format? |
16:40 | <&ToxicFrog> | MP4 is already a sane format. |
16:40 | < abudhabi> | Is it compressed? |
16:40 | <&ToxicFrog> | It's a container format that can contain a wide variety of codecs, most of them compressed. |
16:40 | <&ToxicFrog> | try 'ffprobe foo.m4v' to see what's inside it. |
16:41 | < abudhabi> | Might not be compressed inside, then. |
16:41 | < abudhabi> | I'll check once I finish downloading it. |
16:42 | <&ToxicFrog> | To remux to mp4, you probably want something like 'ffmpeg -i foo.m4v -c copy -map 0 foo.mp4' |
16:42 | < abudhabi> | Thanks. |
16:42 | <&ToxicFrog> | To remux and recompress, you'll want to replace the '-c copy' with '-c:a <audio codec name> -c:v <video codec name>', and probably a bunch of other tuning options that depend on the codec. |
16:46 | | Alek [Alek@Nightstar-9qtiqv.il.comcast.net] has quit [Ping timeout: 121 seconds] |
16:50 | | Alek [Alek@Nightstar-9qtiqv.il.comcast.net] has joined #code |
16:50 | | mode/#code [+o Alek] by ChanServ |
17:12 | | emmy [M@Nightstar-9p7hb1.direct-adsl.nl] has quit [Ping timeout: 121 seconds] |
19:08 | | catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has joined #code |
19:16 | | catadroid [catalyst@Nightstar-3p4ekh.dab.02.net] has quit [[NS] Quit: Bye] |
21:29 | | Kindamoody|afk is now known as Kindamoody |
21:53 | | Kindamoody is now known as Kindamoody[zZz] |
22:51 | | gizmore [kvirc@Nightstar-lo4msf.dip0.t-ipconnect.de] has joined #code |
23:30 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds] |
--- Log closed Thu May 05 00:00:05 2016 |