--- Log opened Sat Nov 08 00:00:37 2014 |
00:01 | | Thalass|afk [thalass@Nightstar-cdvd7b.bigpond.net.au] has quit [Ping timeout: 121 seconds] |
00:33 | <@Tarinaky_> | "I'll wait a week, then tell him the token must be somewhere in the ethernet." |
00:35 | | gizmore [kvirc@Nightstar-ic1o9q.pools.vodafone-ip.de] has quit [[NS] Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/] |
00:39 | | gizmore [kvirc@Nightstar-ic1o9q.pools.vodafone-ip.de] has joined #code |
00:45 | | Tarinaky1 [tarinaky@Nightstar-e99cts.net] has quit [[NS] Quit: leaving] |
00:46 | | Tarinaky_ is now known as Tarinaky |
02:16 | | himi [fow035@Nightstar-jk1.d49.129.1.IP] has joined #code |
02:16 | | mode/#code [+o himi] by ChanServ |
02:41 | | Thalass|afk [thalass@Nightstar-cdvd7b.bigpond.net.au] has joined #code |
03:12 | | himi [fow035@Nightstar-jk1.d49.129.1.IP] has quit [Ping timeout: 121 seconds] |
03:31 | | Netsplit *.net <-> *.split quits: @McMartin, @PinkFreud |
03:42 | | McMartin [mcmartin@Nightstar-rpcdbf.sntcca.sbcglobal.net] has joined #code |
03:42 | | ServerMode/#code [+ao McMartin McMartin] by *.Nightstar.Net |
03:42 | | PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has joined #code |
03:42 | | mode/#code [+o PinkFreud] by ChanServ |
03:55 | | VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [[NS] Quit: Program Shutting down] |
05:00 | | Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: Leaving] |
05:03 | | Red_Queen [Z@Nightstar-ro94ms.balk.dk] has quit [Ping timeout: 121 seconds] |
06:21 | | Kindamoody[zZz] is now known as Kindamoody |
06:27 | | celticminstrel [celticminst@Nightstar-l2rg83.dsl.bell.ca] has quit [[NS] Quit: KABOOM! It seems that I have exploded. Please wait while I reinstall the universe.] |
07:11 | | macdjord [macdjord@Nightstar-7rac1r.mc.videotron.ca] has joined #code |
07:11 | | mode/#code [+o macdjord] by ChanServ |
07:11 | | mac [macdjord@Nightstar-7rac1r.mc.videotron.ca] has quit [Ping timeout: 121 seconds] |
08:54 | | macdjord is now known as macdjord|slep |
09:55 | | Kindamoody is now known as Kindamoody|out |
10:07 | | Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code |
10:07 | | mode/#code [+o Checkmate] by ChanServ |
10:29 | <@Tarinaky> | "Unit testing:QA Engineer walks into a bar. Orders a beer. Orders 0 beers. Orders 999999999 beers. Orders a lizard. Orders -1 beers. Orders a sfdeljknesv." |
10:29 | <@Tarinaky> | "The next customer walks in and asks for a cider and the building collapses." |
10:43 | <&McMartin> | There's no F in cider. |
11:00 | | himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code |
11:00 | | mode/#code [+o himi] by ChanServ |
11:56 | | VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code |
12:24 | | mac [macdjord@Nightstar-7rac1r.mc.videotron.ca] has joined #code |
12:24 | | mode/#code [+o mac] by ChanServ |
12:26 | | macdjord|slep [macdjord@Nightstar-7rac1r.mc.videotron.ca] has quit [Ping timeout: 121 seconds] |
13:30 | <@froztbyte> | http://lcamtuf.blogspot.com/2014/11/pulling-jpegs-out-of-thin-air.html |
13:47 | <@Azash> | Tarinaky: Right, unit testing is bad because it depends on you writing good tests and testing more than one class? |
13:48 | <&McMartin> | "It passes all tests" != "It works" |
14:12 | <&ToxicFrog> | Azash: rather, unit testing is good, but it's easy for it to have blind spots; it is not to be solely relied on. |
14:12 | <@Azash> | 'course |
14:15 | <@Tarinaky> | Azash: It wasn't a political statement. It was a joke. |
14:29 | <&jerith> | Incomplete or mediocre tests are better than nothing. |
14:29 | <&jerith> | Bad tests are often worse than nothing. |
14:42 | | * iospace sighs |
14:42 | <@iospace> | another joke ruined :< |
14:43 | <@iospace> | thanks Azash and jerith :< |
14:43 | <@Tamber> | :) |
14:43 | <@Tarinaky> | I guess Unittests are still controversial :V |
14:44 | <@iospace> | unlike ur mum heheh- *gapped* |
14:44 | <@Azash> | Those kinds of jokes are hard to not read as a tongue in cheek edginess indicator, though :P |
14:44 | <@Azash> | iospace: 6/5 #shrekt gg |
14:45 | | * Tarinaky realises she doesn't remember how modules and imports work again in Python |
14:45 | | * Tarinaky flails |
14:45 | | * Tarinaky also inserts the word path into what she said |
14:46 | <@Azash> | You realized you don't remember how modules and imports work again in Pathon? |
14:46 | <@Tarinaky> | Import paths |
14:46 | <@Tarinaky> | I can't remember what is and isn't in the search path |
14:48 | <@iospace> | ok, I think I should finish getting ready, later all |
14:51 | <&McMartin> | Tarinaky: I always go look at the scripts Ophis used when I need to mess with that |
14:52 | <&McMartin> | https://github.com/michaelcmartin/Ophis/blob/master/bin/ophis |
14:53 | <@Tarinaky> | Right, so just to check... |
14:53 | <@Tarinaky> | Does it or does it not look for modules relative to the current module? |
14:53 | <@Tarinaky> | Or is it /only/ relative to the Top-level? |
14:54 | <&McMartin> | Uh, sec |
14:55 | <&McMartin> | I think it's only relative to top-level. |
14:55 | <&McMartin> | Ophis/IR.py imports Ophis.Errors, not Errors. |
14:55 | <&McMartin> | (But it does Import Ophis.Errors as Err, and then just says Err forever after) |
15:04 | <@Tarinaky> | text[1:] drops the first character right? |
15:04 | <@Tarinaky> | The way it's described is confusing |
15:05 | <@[R]> | >>> 'asdf'[:1] |
15:05 | <@[R]> | 'a' |
15:06 | <@[R]> | If only Python had a REPL where you could test such things without needing to ask. |
15:06 | <@Tarinaky> | That's... the opposite of what I just asked... |
15:06 | <@Tarinaky> | If only Windows wasn't utter shit |
15:06 | <@[R]> | >>> 'asdf'[1:] |
15:06 | <@[R]> | 'sdf' |
15:07 | <@[R]> | Who, when given the choice, actually uses Windows as their primary workstation OS these days? |
15:07 | <@[R]> | Though I must admit, W10 looks pretty swank |
15:08 | <@Tarinaky> | Who is actually given the choice? |
15:08 | <@Tarinaky> | I like playing video games and don't want to have to change computer or reboot. |
15:08 | <@Tarinaky> | Also: ARGH why can't I remember the name of the IRC channel I've los.t |
15:09 | | * [R] plays games on Linux just fine, but w/e |
15:09 | <@[R]> | Humble Bundles and Indy stuff are your friends. |
15:10 | <@Tarinaky> | Yeah... See... I'd like to be able to pick a video game, and then play it... Rather than pick an OS and then pick a video game that will be playable on it. |
15:10 | <@Tarinaky> | Call me weird for exhiviting that behavior. |
15:11 | <@[R]> | *shrugs* |
15:11 | <@Tarinaky> | Being told "Well you should just like different games then!" is a little insulting. |
15:12 | <@[R]> | Pretty much everything I want either: A) works on Linux natively B) Works in WINE C) has a console port for a console I have. |
15:12 | <@Tarinaky> | I don't own any consoles. |
15:13 | <@Tarinaky> | That rather changes things. |
15:13 | | * McMartin has an Atari 2600 over here, with some mods coming soon >_> |
15:13 | <@Tarinaky> | McMartin: Let us know when 1994 happens over there. |
15:13 | <&McMartin> | Enough to hopefully be able to run my own code on it |
15:14 | <@[R]> | Isn't it still 1994 anyways? |
15:14 | <&McMartin> | What happened in '94? PSX was '95, wasn't it? |
15:14 | <@Tarinaky> | Dunno, I just picked a year. |
15:14 | <@Tarinaky> | When was Quake released? |
15:14 | <@[R]> | Ah, 1993 |
15:14 | <&McMartin> | 1993 was when X-Wing was released >_> |
15:14 | <&ToxicFrog> | Tarinaky: check your logs? |
15:14 | <&jeroud> | The Summer That Never Ended? |
15:15 | <@[R]> | Sat Sep 7739 16:14:55 +01:00 1993 |
15:15 | <@Tarinaky> | ToxicFrog: That's the solution I went with. |
15:15 | <@[R]> | jeroud's got it |
15:16 | <@[R]> | http://en.wikipedia.org/wiki/Eternal_September |
15:17 | <&ToxicFrog> | Tarinaky: re development on windows: Python on windows has a REPL; Cygwin comes with a selection of terminal emulators (and python). |
15:17 | <@Tarinaky> | Yeah... I can't use cygwin's python |
15:17 | <@Tarinaky> | Which dumps be back at cmd.exe |
15:17 | <&ToxicFrog> | Cygwin also comes with ssh and X, so you can set up a linux server (actual or virtual) and then use the windows machine as a terminal, which is what I did for years after I got sick of constantly rebooting between OSes but before I had a laptop. |
15:17 | <@Tarinaky> | And while there is a REPL that runs on cmd.exe... |
15:17 | <&McMartin> | You've also got idle.exe |
15:17 | <@Tarinaky> | I'd really rather not use it |
15:18 | <&McMartin> | There is also the Tk REPL on Windows |
15:18 | <&ToxicFrog> | ...how are you invoking Cygwin python? |
15:18 | <&McMartin> | Which is should be what you get when you go to Python in the Start menu |
15:18 | <@Tarinaky> | I'm not? |
15:18 | <&ToxicFrog> | Because for me it's "start cygwin rxvt, run 'python' and get a normal REPL" |
15:18 | <@Tarinaky> | Yes, but then I have the problem that I'm writing against cygwin modules. |
15:18 | <@Tarinaky> | Which don't always play nice. |
15:18 | <&ToxicFrog> | Tarinaky: ...but you just said "I can't use Cygwin's python, which dumps me back at cmd.exe" |
15:18 | <@Tarinaky> | ToxicFrog: I don't mean python dumps me. |
15:18 | <@Tarinaky> | Different meaning of dump, sorry. |
15:19 | <&ToxicFrog> | What did you mean, then? You can't use the cygwin TE + windows python? |
15:19 | <@Tarinaky> | I cannot use cygwin + windows python. (it crashes because of the path weirdness) |
15:20 | <@Tarinaky> | I cannot use cygwin + cygwin python: it uses cygwin-compiled modules and does weird things once you start doing stuff with certain modules and extensions |
15:20 | <@Tarinaky> | cmd.exe + windows python works, but sucks. |
15:21 | <&ToxicFrog> | Hmm. Powershell + windows python? I vaguely remember the powershell TE being slightly less shit than cmd.exe. |
15:21 | <&McMartin> | Powershell is... an acquired skill |
15:21 | <@Tarinaky> | I don't know how to use powershell |
15:21 | <&ToxicFrog> | Right, but I mean |
15:21 | <&McMartin> | It is harder to half-ass than, say, bash |
15:21 | <&ToxicFrog> | You aren't using it for the shell, you're using it for the terminal emulator |
15:21 | <&McMartin> | And IIRC it does not actually run programs by typing the program's name |
15:21 | <&ToxicFrog> | So you start powershell and then type...oh. |
15:21 | <&ToxicFrog> | Never mind then! |
15:21 | <&McMartin> | You have to do the Execute Other Program Scriptlet which is some wack-ass other thing. |
15:22 | <&McMartin> | Probably with 15 aliases |
15:22 | <&ToxicFrog> | I think this just leaves you with IDLE or the Python Tk REPL |
15:22 | <&McMartin> | IDLE *is* the Python Tk REPL, ANAICT. |
15:22 | <&ToxicFrog> | Well then |
15:22 | <&McMartin> | THERE IS A PENGUIN ON THE TELLY |
15:22 | | * Tarinaky glares at this completely unhelpful error message |
15:23 | <@Tarinaky> | print "Dice roll %f" % result \n SyntaxError: invalid syntax |
15:23 | <@Tarinaky> | Apparently I have forgotten how to program... again... o.o |
15:24 | <@[R]> | Python 2 or 3? |
15:24 | <@Tarinaky> | 2 |
15:24 | <&McMartin> | >>> print "roll is %f" % 2.3 |
15:24 | <&McMartin> | roll is 2.300000 |
15:24 | <&McMartin> | Works here |
15:24 | <&ToxicFrog> | Tarinaky: have you __future__ imported print_function? |
15:25 | <@Tarinaky> | ToxicFrog: Yes. Thank you. |
15:25 | <@[R]> | Why did P3 remove that operator anyways? |
15:26 | <&McMartin> | Because positional arguments are fragile, IIRC |
15:26 | <@abudhabi> | I wish customer satisfaction surveys included an option like: "i hate filling out customer satisfaction surveys why are you wasting my time damn". |
15:26 | <@[R]> | Also if you're coding a shell-script in python, do the world a favor and specify python2 or python3 please. Unless you specifically make it work on both. |
15:27 | | * [R] stabs the node.js devs' eyeballs out for their buildscripts for that reason. |
15:28 | <&jeroud> | "python" explicitly means "Python 2", because "python2" doesn't exist on many systems. |
15:29 | <&jeroud> | (Yes, I am asserting that Arch is objectively wrong here.) |
15:30 | <@Tarinaky> | Okay, I have a function that returns either an int or a float. |
15:30 | <@Tarinaky> | How do I 'smartly' format it? |
15:30 | <@Tarinaky> | So it only displays the minimum number of DP to not lose precision? |
15:31 | <&jeroud> | Tarinaky: You use "%s" or, if that doesn't do what you want, you write a function that looks at the type and formats each option appropriately. |
15:32 | <@Tarinaky> | Will that automagically call __repr__? |
15:33 | <&McMartin> | I don't believe so, but nornmally you would want str, not repr. |
15:33 | <&jeroud> | %s uses str(), %r uses repr() |
15:33 | | * Tarinaky is never quite sure of the distinction |
15:34 | <&McMartin> | repr is the one that is supposed to be a lossless inverse of eval |
15:34 | <&McMartin> | That is, if you were to eval a repr of something you should get something that's == to it. |
15:34 | <&McMartin> | str is supposed to be convenient for humans to read. |
15:34 | <&jeroud> | In general, str() means "human friendly" repr() means "ideally the inverse of eval()". |
15:35 | <&jeroud> | Most nontrivial objects do not have a repr() with this property. |
15:35 | <&McMartin> | Yeah |
15:35 | <&jeroud> | But they're generally unambiguous, at least. |
15:35 | <&McMartin> | Anything with hidden non-constructor state pretty much won't. |
15:58 | | celticminstrel [celticminst@Nightstar-l2rg83.dsl.bell.ca] has joined #code |
15:58 | | mode/#code [+o celticminstrel] by ChanServ |
16:03 | <@Tarinaky> | Question: do I need to escape ':' characters in regex? |
18:14 | | Derakon [Derakon@Nightstar-5fqf0m.ca.comcast.net] has joined #code |
18:14 | | mode/#code [+ao Derakon Derakon] by ChanServ |
18:23 | < gizmore> | Tarinaky: i think not |
18:23 | < gizmore> | ([\+.?* ... hmm |
19:21 | | Kindamoody|out is now known as Kindamoody |
19:48 | | Derakon [Derakon@Nightstar-5fqf0m.ca.comcast.net] has quit [Ping timeout: 121 seconds] |
20:23 | | Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds] |
20:44 | | macdjord [macdjord@Nightstar-7rac1r.mc.videotron.ca] has joined #code |
20:44 | | mode/#code [+o macdjord] by ChanServ |
20:45 | | Kindamoody is now known as Kindamoody[zZz] |
20:45 | | mac [macdjord@Nightstar-7rac1r.mc.videotron.ca] has quit [Ping timeout: 121 seconds] |
22:08 | | * abudhabi bashes his head against the wall trying to fix a broken Windows on a machine sandboxed more than the Sahara desert. |
22:10 | <@abudhabi> | I can't do ANYTHING. |
22:11 | <@abudhabi> | And my boss needs to be able to use Word and stuff within 12 hours. |
22:12 | <@abudhabi> | The problem is that he installed something he shouldn't have, partly by my fault of not paying enough attention, and it broke Office. |
22:15 | <@abudhabi> | There's no way that I found to uninstall or unbreak it, yet. |
22:20 | <@abudhabi> | This is going to be one of those nights. |
22:24 | <@abudhabi> | All of my hate towards whoever at Microsoft is responsible for all the shit that they put on ordinary users and the folks who have to fix this shit. |
22:37 | <@abudhabi> | Can anyone point me at either a really obscure BitTorrent client or a direct link to an Office 2010 setup file? |
22:44 | <@abudhabi> | Hmm. |
22:44 | <@abudhabi> | Which free office alternative is most like MS Office? |
22:45 | <@abudhabi> | Can be old MS Office. My boss probably used all the previous versions. |
22:57 | | * abudhabi installs something that looks like old Office and displays documents correctly, unlike OOo. |
23:03 | <&ToxicFrog> | abudhabi: Google Docs? Should be backwards compatible with like every ancient Office format. |
23:21 | | Derakon [chriswei@Nightstar-5fqf0m.ca.comcast.net] has joined #code |
23:21 | | mode/#code [+ao Derakon Derakon] by ChanServ |
23:27 | | Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code |
23:27 | | mode/#code [+o Checkmate] by ChanServ |
23:36 | | Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code |
23:36 | | mode/#code [+qo Vornicus Vornicus] by ChanServ |
--- Log closed Sun Nov 09 00:00:53 2014 |