--- Log opened Sat Feb 17 00:00:06 2018 |
00:07 | | Jessikat` [Jessikat@Nightstar-kpl.jtr.132.82.IP] has joined #code |
00:08 | | Kindamoody|autojoin is now known as Kindamoody |
00:10 | | Jessikat [Jessikat@Nightstar-duirbl.dab.02.net] has quit [Ping timeout: 121 seconds] |
00:33 | | Kindamoody is now known as Kindamoody[zZz] |
00:59 | | Derakon[AFK] is now known as Derakon |
01:10 | | Degi [Degi@Nightstar-21530r.dyn.telefonica.de] has quit [Connection closed] |
01:32 | | celticminstrel [celticminst@Nightstar-gil1m1.dsl.bell.ca] has joined #code |
01:32 | | mode/#code [+o celticminstrel] by ChanServ |
02:31 | | Vornicus [Vorn@Nightstar-1l3nul.res.rr.com] has joined #code |
02:31 | | mode/#code [+qo Vornicus Vornicus] by ChanServ |
03:21 | <&ToxicFrog> | Holy shit atom validators rock my socks |
03:21 | <&[R]> | ? |
03:27 | <&ToxicFrog> | [R]: clojure atoms are a thread safe mutable reference type, they're basically the default way to have a "mutable" variable in clojure |
03:27 | <&ToxicFrog> | Optionally, when you create an atom, you can associate a validator with it; if you do so, the validator is called on every assignment to the atom and if it returns false or throws the program aborts. |
03:27 | <&[R]> | Ah... |
03:28 | <&[R]> | I thought you were building something with Atom (JS lib) |
03:28 | <&ToxicFrog> | This means that you can basically have a debug build that checks every "pointer" assignment for type conformance in extreme detail |
03:29 | <&[R]> | That's pretty cool |
03:32 | | Jessikat` is now known as Jessikat |
03:33 | <&ToxicFrog> | It is, and it just saved me a whole lot of debugging |
03:33 | <&ToxicFrog> | I had an atom that was getting the wrong type in it and then blowing up on the next use of the atom, much later |
03:34 | <&ToxicFrog> | And went "hang on, I can just slap a validator on this", put a `(partial s/validate)` on there, and bam, stack trace pointing me to exactly where things went wrong and exactly how the assigned value differs from the declared type. |
04:05 | | celticminstrel is now known as celmin|sleep |
05:33 | | Derakon is now known as Derakon[AFK] |
05:43 | | Vornlicious [Vorn@Nightstar-3jc89l.sub-174-210-7.myvzw.com] has joined #code |
05:46 | | Vorntastic [Vorn@Nightstar-1l3nul.res.rr.com] has quit [Ping timeout: 121 seconds] |
06:37 | | Jessikat` [Jessikat@Nightstar-m16mu5.dab.02.net] has joined #code |
06:40 | | Jessikat [Jessikat@Nightstar-kpl.jtr.132.82.IP] has quit [Ping timeout: 121 seconds] |
06:50 | | Jessikat` is now known as Jessikat |
09:15 | | Vornlicious [Vorn@Nightstar-3jc89l.sub-174-210-7.myvzw.com] has quit [Ping timeout: 121 seconds] |
09:15 | | Vorntastic [Vorn@Nightstar-3jc89l.sub-174-210-7.myvzw.com] has joined #code |
10:27 | | Kindamoody[zZz] is now known as Kindamoody |
10:54 | | Kindamoody [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has quit [Ping timeout: 121 seconds] |
12:05 | | Degi [Degi@Nightstar-21530r.dyn.telefonica.de] has joined #code |
--- Log closed Sat Feb 17 12:08:06 2018 |
--- Log opened Sat Feb 17 12:08:15 2018 |
12:08 | | TheWatcher [chris@GlobalOperator.Nightstar.Net] has joined #code |
12:08 | | Irssi: #code: Total of 35 nicks [26 ops, 0 halfops, 0 voices, 9 normal] |
12:08 | | mode/#code [+o TheWatcher] by ChanServ |
12:08 | | Irssi: Join to #code was synced in 10 secs |
12:13 | | Degi_ [Degi@Nightstar-0klhat.dyn.telefonica.de] has joined #code |
12:17 | | Degi [Degi@Nightstar-21530r.dyn.telefonica.de] has quit [Ping timeout: 121 seconds] |
12:17 | | Degi_ is now known as Degi |
12:30 | | Degi [Degi@Nightstar-0klhat.dyn.telefonica.de] has quit [Connection closed] |
13:07 | | Jessikat` [Jessikat@Nightstar-k4p0h9.dab.02.net] has joined #code |
13:10 | | Jessikat [Jessikat@Nightstar-m16mu5.dab.02.net] has quit [Ping timeout: 121 seconds] |
15:17 | | Kindamoody [Kindamoody@Nightstar-ss1prh.mobileonline.telia.com] has joined #code |
15:17 | | mode/#code [+o Kindamoody] by ChanServ |
17:14 | | celmin|sleep is now known as celticminstrel |
17:23 | | Jessikat` is now known as Jessikat |
17:25 | | Vornicus [Vorn@Nightstar-1l3nul.res.rr.com] has quit [Ping timeout: 121 seconds] |
17:31 | | Netsplit Golgafrincham.Nightstar.Net <-> Krikkit.Nightstar.Net quits: Vorntastic, @VirusJTG, @PinkFreud, @abudhabi, @McMartin, @Syloq |
17:33 | | Kindamoody [Kindamoody@Nightstar-ss1prh.mobileonline.telia.com] has quit [Connection closed] |
18:51 | | abudhabi [abudhabi@Nightstar-7nkq9k.de] has joined #code |
19:16 | | Derakon[AFK] [Derakon@Nightstar-fr5qel.ca.comcast.net] has quit [Ping timeout: 121 seconds] |
19:37 | | Jessikat` [Jessikat@Nightstar-td1d0s.dab.02.net] has joined #code |
19:40 | | Jessikat [Jessikat@Nightstar-k4p0h9.dab.02.net] has quit [Ping timeout: 121 seconds] |
20:07 | | Degi [Degi@Nightstar-0klhat.dyn.telefonica.de] has joined #code |
20:19 | | Irssi: #code: Total of 28 nicks [20 ops, 0 halfops, 0 voices, 8 normal] |
20:39 | <&[R]> | $ du -t 1G -h |
20:39 | <&[R]> | 1.1G./dos |
20:39 | <&[R]> | wat |
20:42 | <&[R]> | 637Mdos/dark-sun-wake-of-the-ravager.zip <-- ah, not sure that's a DOS game |
20:43 | <&[R]> | Oh no it is, it just includes a CD image |
20:49 | | Jessikat` is now known as Jessikat |
21:41 | <&[R]> | Two questions, is there a name for this file format: %SIZE%\n3780608\n\n%REASON%\n1\n\n |
21:43 | <&[R]> | And 2) Is there a way to convert what's effectively a CSV type file that somehow got newlines as the field seperator back into a proper CSV type file, or am I going to have to write an actual program to stitch it together? (Expected input would be a field count and a file) |
21:51 | <@Alek> | o_O |
21:57 | <&jerith> | [R]: man paste |
21:57 | <&jerith> | I can never remember how to actually use it properly, but the man page has some examples. |
21:59 | <&[R]> | jerith: I could use paste if there was a way to get every X+Y line from a file. |
22:00 | <&[R]> | The actual file ends up being something like: 1\n2\n3\n\nA\nB\nC\n\n |
22:00 | <&[R]> | Instead of a more proper: 1:2:3\nA:B:C\n |
22:01 | <&jerith> | As long as there's a fixed number of lines per "row", paste should do what you want. |
22:02 | <&[R]> | Is your manpage bigger than mine? |
22:02 | <&[R]> | paste has 3 options... |
22:02 | <&[R]> | -d, -s and -z |
22:03 | <&jerith> | EXAMPLES |
22:03 | <&jerith> | List the files in the current directory in three columns: |
22:03 | <&jerith> | ls | paste - - - |
22:03 | <&jerith> | Combine pairs of lines from a file into single lines: |
22:03 | <&jerith> | paste -s -d '\t\n' myfile |
22:04 | <&jerith> | Mine doesn't have -z. |
22:05 | <&jerith> | But "cat rubbage.notcsv | paste -d : - - -" should do what you're after. |
22:05 | <&jerith> | You may need to play a bit. |
22:05 | <&[R]> | OMG |
22:05 | <&[R]> | <3 |
22:11 | <&jerith> | Paste is one of the most useful standard unix tools nobody knows about. |
22:11 | | * [R] knew about it, just not about it being able to do that |
22:11 | | * [R] uses cut a bunch too |
22:11 | <&[R]> | TIL! |
22:12 | <&jerith> | This kind of thing is pretty much all I use it for, really. |
23:13 | | McMartin [mcmartin@Nightstar-rpcdbf.sntcca.sbcglobal.net] has joined #code |
--- Log closed Sun Feb 18 00:00:11 2018 |