--- Log opened Fri Oct 10 00:00:20 2014 |
00:03 | <&McMartin> | The foreheads acquire veining, the veining is a warning |
00:22 | | Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code |
00:22 | | mode/#code [+o Checkmate] by ChanServ |
00:55 | | Derakon_ is now known as Derakon |
00:55 | | mode/#code [+ao Derakon Derakon] by ChanServ |
01:54 | | thalass [thalass@Nightstar-sbrrj9.bigpond.net.au] has joined #code |
01:54 | | mode/#code [+o thalass] by ChanServ |
02:05 | <@froztbyte> | McMartin: pressure valves |
03:20 | | thalass [thalass@Nightstar-sbrrj9.bigpond.net.au] has quit [Ping timeout: 121 seconds] |
03:21 | | thalass [thalass@Nightstar-sbrrj9.bigpond.net.au] has joined #code |
03:21 | | mode/#code [+o thalass] by ChanServ |
03:54 | | thalass [thalass@Nightstar-sbrrj9.bigpond.net.au] has quit [[NS] Quit: reboot] |
03:56 | | thalass [thalass@Nightstar-sbrrj9.bigpond.net.au] has joined #code |
03:56 | | mode/#code [+o thalass] by ChanServ |
04:29 | | VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [[NS] Quit: Program Shutting down] |
04:53 | | thalass [thalass@Nightstar-sbrrj9.bigpond.net.au] has quit [Ping timeout: 121 seconds] |
05:05 | | Derakon is now known as Derakon[AFK] |
05:19 | | thalass [thalass@Nightstar-sbrrj9.bigpond.net.au] has joined #code |
05:19 | | mode/#code [+o thalass] by ChanServ |
05:23 | | thalass [thalass@Nightstar-sbrrj9.bigpond.net.au] has quit [Ping timeout: 121 seconds] |
05:37 | | thalass [thalass@Nightstar-sbrrj9.bigpond.net.au] has joined #code |
05:37 | | mode/#code [+o thalass] by ChanServ |
05:43 | | Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds] |
05:45 | | thalass [thalass@Nightstar-sbrrj9.bigpond.net.au] has quit [Ping timeout: 121 seconds] |
05:46 | | thalass [thalass@Nightstar-sbrrj9.bigpond.net.au] has joined #code |
05:46 | | mode/#code [+o thalass] by ChanServ |
05:49 | | Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: Leaving] |
05:50 | | macdjord is now known as macdjord|slep |
07:28 | | Orthia [orthianz@Nightstar-vm8.112.224.119.IP] has quit [Ping timeout: 121 seconds] |
07:33 | | Orthia [orthianz@Nightstar-hsgicn.callplus.net.nz] has joined #code |
07:33 | | mode/#code [+o Orthia] by ChanServ |
08:00 | | Kindamoody[zZz] is now known as Kindamoody |
08:43 | | thalass [thalass@Nightstar-sbrrj9.bigpond.net.au] has quit [Ping timeout: 121 seconds] |
08:44 | | thalass [thalass@Nightstar-sbrrj9.bigpond.net.au] has joined #code |
08:44 | | mode/#code [+o thalass] by ChanServ |
08:44 | | celticminstrel [celticminst@Nightstar-erk7nd.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!] |
09:11 | | thalass [thalass@Nightstar-sbrrj9.bigpond.net.au] has quit [Ping timeout: 121 seconds] |
09:25 | | thalass [thalass@Nightstar-sbrrj9.bigpond.net.au] has joined #code |
09:25 | | mode/#code [+o thalass] by ChanServ |
09:29 | | Kindamoody is now known as Kindamoody|afk |
09:47 | | thalass [thalass@Nightstar-sbrrj9.bigpond.net.au] has quit [Ping timeout: 121 seconds] |
10:51 | | thalass [thalass@Nightstar-sbrrj9.bigpond.net.au] has joined #code |
10:51 | | mode/#code [+o thalass] by ChanServ |
11:32 | | VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code |
12:57 | <@Tarinaky> | Err, Regexp... |
12:57 | <@Tarinaky> | How can I have a pattern that matches either of two words? |
12:58 | <@Tarinaky> | i.e. 'low' OR 'min'. |
12:58 | <@Tarinaky> | Best I can come up with is [lm][oi][wn] |
12:58 | <@Tarinaky> | Which is workable, but not strictly correct. |
13:00 | <@Tarinaky> | I know I can represent what I'm thinking of as a FSM... So it must have a representation in Regexp right? |
13:01 | <@Tarinaky> | *Deterministic FSM |
13:21 | <@TheWatcher> | /^(low|min)$/ you mean? |
13:35 | <@Tarinaky> | That's exactly it. |
13:36 | <@Tarinaky> | Ty |
13:38 | <@Tarinaky> | Sorry for the stupid question Friday... |
13:38 | <@Tarinaky> | In Ruby, if I have an array of floating point numbers |
13:38 | <@Tarinaky> | What's the most sensible way to find the one that most closely approximates a given real? |
13:39 | <@Tarinaky> | Err given floating point number |
13:40 | <@Tarinaky> | Say I have A=[...3.14, 3.16...] And I want to find the value in A closest to 3.141 |
13:43 | <@Azash> | Tarinaky: This is going to be kind of spaghetti |
13:43 | <@Tarinaky> | That's what I thought -.- |
13:44 | <@Azash> | Let me write it out |
13:44 | <@Tarinaky> | I might be able to do this a more sensible way by exploiting a property of how the floats are divined. |
13:44 | <@Azash> | array.sort{|a, b| (3.141 - a).abs <=> (3.141 - b).abs}.first |
13:45 | | * himi was tempted to say "port the code to something other than Ruby" |
13:45 | <@Tarinaky> | Azash: But my Array contains N elements? |
13:46 | <@Azash> | Yes? |
13:46 | <@Azash> | Also you can use Math::PI |
13:46 | <@Tarinaky> | Your example only allows for 2 |
13:46 | <@Tarinaky> | Pi is nothing to do with the problem |
13:46 | <@Azash> | Er, no |
13:46 | <@Tarinaky> | I just picked a number. |
13:46 | <@Azash> | The stuff in the hash is a two-param function that is used inside the sorting algorithm to determine order |
13:47 | <@Tarinaky> | Oh |
13:48 | <@Azash> | Tarinaky: Essentially how it works is |
13:48 | <@Azash> | def foo |
13:48 | <@Azash> | yield |
13:48 | <@Azash> | end |
13:48 | <@Azash> | foo {print "bar"} #=> "bar" |
13:49 | <@Azash> | or use yield "bar" |
13:49 | <@Azash> | And foo {|x| print x} |
13:52 | <@Azash> | Tarinaky: If you want to do something more involved |
13:52 | <@Azash> | eg. if you don't want to one-line what I suggested |
13:52 | <@Azash> | You can also do |
13:53 | <@Azash> | array.sort do |a, b| |
13:53 | <@Azash> | # code |
13:53 | <@Azash> | end |
13:55 | <@Tarinaky> | Yeah. I always have trouble getting my head around functional idioms. |
14:57 | | celticminstrel [celticminst@Nightstar-erk7nd.dsl.bell.ca] has joined #code |
14:57 | | mode/#code [+o celticminstrel] by ChanServ |
14:58 | <@iospace> | I found a comment that says "FIXME" in this code. ._. |
14:59 | <@Azash> | iospace: Hey, think positive |
14:59 | <@Azash> | At least it was commented |
15:00 | <@Tarinaky> | I really cbf to work on new features. Bring on the code reviews plox |
15:00 | <@iospace> | Azash: it just says "FIXME" |
15:00 | <@iospace> | that's it |
15:39 | <@Azash> | iospace: That is, however, better than not bringing any attention to it at all |
15:42 | <@Tarinaky> | Bonus points: It was already fixed, they just didn't delete the comment. |
15:52 | | thalass is now known as Thalass|sleepd |
17:43 | | Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code |
17:43 | | mode/#code [+o Checkmate] by ChanServ |
19:53 | | macdjord|slep [macdjord@Nightstar-7rac1r.mc.videotron.ca] has quit [[NS] Quit: I am the thing your /nightmares/ dream of.] |
20:36 | | Kindamoody|afk is now known as Kindamoody |
20:39 | <@iospace> | yo dawg, i heard you like selects, so we put a select inside your select inside your select inside your select |
20:40 | <&McMartin> | This isn't socket rience, is it. |
20:50 | <@iospace> | "insert( select( select( select(select) ) ) )" |
20:51 | | Syloq [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds] |
20:51 | < RchrdB> | iospace: I have " # sorry" on in a file twice, on lines by themselves. |
20:52 | < RchrdB> | in (integration test setup) code that I wrote today. |
20:53 | < RchrdB> | âimport threading # sorryâ and âimport inspect # sorryâ |
20:53 | | Syloq [Syloq@Nightstar-mbk.c3p.254.173.IP] has joined #code |
20:53 | | mode/#code [+o Syloq] by ChanServ |
21:07 | | Kindamoody is now known as Kindamoody[zZz] |
21:08 | | Syloq [Syloq@Nightstar-mbk.c3p.254.173.IP] has quit [[NS] Quit: .] |
21:08 | | Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds] |
21:08 | | Syloq [Syloq@Nightstar-mbk.c3p.254.173.IP] has joined #code |
21:08 | | mode/#code [+o Syloq] by ChanServ |
21:19 | | Alek [omegaboot@Nightstar-c8t.a00.36.73.IP] has quit [Ping timeout: 121 seconds] |
21:20 | | Alek [omegaboot@Nightstar-c8t.a00.36.73.IP] has joined #code |
21:20 | | mode/#code [+o Alek] by ChanServ |
22:08 | | Checkmate [Z@Nightstar-g2q2tu.customer.tdc.net] has joined #code |
22:08 | | mode/#code [+o Checkmate] by ChanServ |
23:16 | <&ToxicFrog> | Networking is hard and I don't like it. |
23:20 | <&McMartin> | Sad brofist |
23:20 | <&McMartin> | Or perhaps sad jazz hands |
23:21 | | * McMartin can add "the bodiless jazz hands in that article about Habitat" to his list of media appearances. |
23:37 | <@froztbyte> | McMartin: not sure if you've seen this previously, but I believe you may be able to enjoy http://kasperskycontenthub.com/wp-content/uploads/sites/43/vlpdfs/unveilingthema sk_v1.0.pdf |
23:42 | | Thalass|sleepd [thalass@Nightstar-sbrrj9.bigpond.net.au] has quit [Operation timed out] |
23:42 | <&McMartin> | Wow, there's a lot here |
23:46 | <@froztbyte> | haha, indeed |
23:51 | <@froztbyte> | fairly solid design on a lot of it, tbh |
23:52 | <@froztbyte> | and some of those compile sigs are also ... quite interesting, if I catch the significance correctly |
--- Log closed Sat Oct 11 00:00:36 2014 |