#dev | Logs for 2015-04-17

« return
[04:59:01] -!- Subsentient has quit [Remote host closed the connection]
[04:59:04] -!- aqu4 has quit [Quit: aqu4bot baking shutting down.]
[04:59:12] -!- Subsentient [Subsentient!~WhiteRat@Soylent/Staff/Editor/Subsentient] has joined #dev
[04:59:20] -!- aqu4 [aqu4!~aqu4bot@universe2.us/ircbot/aqu4] has joined #dev
[22:46:25] -!- crutchy [crutchy!~crutchy@709-27-2-01.cust.aussiebb.net] has joined #dev
[22:46:32] * Bytram waves at crutchy
[22:46:37] <crutchy> heyhoo
[22:46:43] <Bytram> hard to carry on a convo with all the chatter going on!
[22:47:22] <Bytram> what I'm thinking is that I can programmatically generate test cases
[22:47:44] <crutchy> https://github.com
[22:47:45] <aqu4>  ^ "3exec-irc-bot/sn.php at master · crutchy-/exec-irc-bot · GitHub"
[22:47:55] <Bytram> it would be nice if I could then submit a story, have a number of 1st-level comments identifying what is being tested, and then sub-comments to those that have the actual test cases
[22:48:03] <crutchy> shouldn't be hard to tweak it to post reply to a cid
[22:48:19] <Bytram> do you understand what I am attempting to do?
[22:48:29] <crutchy> i've got a mysql database mapping sid and cid etc
[22:48:41] <crutchy> ah yeah
[22:48:54] <Bytram> kewel!
[22:49:03] <Bytram> for example, for testing UTF-8 chars...
[22:49:08] <Bytram> they can be entered as:
[22:49:10] <crutchy> i think we have most the bits
[22:49:17] <Bytram> 1.) plain text chars (cut and paste)
[22:49:20] <crutchy> need to bolt them together
[22:49:23] <Bytram> 2.) &#nnnn;
[22:49:29] <Bytram> 3.) &#xhhh;
[22:49:45] <Bytram> 4.) &namedcharacterentity;
[22:50:00] <Bytram> and need to permute that against:
[22:50:10] <Bytram> "HTML Formatted" / "Plain Old Text"
[22:50:44] <crutchy> np
[22:50:46] <Bytram> then there are valid and invalid chars; some of which currently makes dev.sn.org go BOOM.
[22:51:04] <Bytram> well, it blows out the comment screen and returns with an error; the site stays up
[22:51:36] <Bytram> then there's URLs and the permitted chars in that: (%xx stuff)
[22:52:06] <Bytram> oh! and story submissions are yet another permutation
[22:52:23] <Bytram> maight want to toss in a few journal stories and comments for completeness' sake
[22:52:46] <Bytram> that's a lot of typing, so any way that it could be automated would be a HUGE win!
[23:02:41] <Bytram> .op
[23:02:41] -!- mode/#dev [+o Bytram] by SkyNet
[23:02:43] -!- exec [exec!~exec@utioner/T-800/BeVeryAfraid] has joined #dev
[23:02:46] <Bytram> .deop
[23:02:46] -!- mode/#dev [-o Bytram] by SkyNet
[23:02:49] <Bytram> ~submit
[23:02:50] <exec> usage: ~submit <url>
[23:03:08] <Bytram> ~comment
[23:04:50] <Bytram> crutchy: wait a minute... didn't TheMightyBuzzard write up an API for the site? ISTR it was working on dev, but not promoted to prod
[23:04:56] * Bytram goes to check his notes
[23:05:23] <chromas> that is correct
[23:05:52] <chromas> needs moar pounding to make sure its usage doesn't break stuff
[23:05:54] <Bytram> http://wiki.soylentnews.org
[23:05:55] <aqu4>  ^ "3ApiDocs - SoylentNews"
[23:07:51] <Bytram> https://soylentnews.org
[23:07:51] <aqu4>  ^ "3404 File Not Found"
[23:07:55] <Bytram> LOL!
[23:08:12] <Bytram> http://soylentnews.org
[23:08:12] <aqu4>  ^ "3404 File Not Found"
[23:08:36] <Bytram> https://soylentnews.org
[23:08:36] <aqu4>  ^ "3404 File Not Found"
[23:09:22] * Bytram notes we are missing the leading '4' of "404 File Not Found"
[23:09:46] <chromas> your client eats it
[23:09:54] <chromas> counts it toward the mirc color code
[23:10:15] <Bytram> ahhh! that explains it.
[23:10:26] <Bytram> umm, but why would it eat it?
[23:10:54] <chromas> there's a 0x01, then a number to set the color. it can be one or two digits
[23:10:57] <mrcoolbp> mine got "ate" too
[23:11:08] <chromas> so if there's one, and the next char happens to be a number, then it counts as part of the color code
[23:11:34] <chromas> 0x02
[23:11:43] <chromas> or 3. something. 0x01 is for actions
[23:12:30] <Bytram> okay, so there's inband signally of colors, etc. ... but why would aqu4 be finding '0x01' (or whatever) in the first place?
[23:12:54] <Bytram> in #Soylent, clippit returned: ^ 404 File Not Found
[23:13:09] <Bytram> (but it was in green)
[23:13:10] <chromas> it's doing a digit to make the color green, then the 4 from "404" counts as a second digit
[23:13:31] <chromas> clippit pads the color code to 2 digits specifically to acoid that
[23:13:41] <Bytram> hmmm, so it needs a space after setting the color?
[23:13:47] <chromas> or pad to two digits
[23:13:53] <Bytram> 0x02 404 File Not Found
[23:13:58] <Bytram> instead of:
[23:14:01] <Bytram> 0x02404 File Not Found
[23:14:05] <Bytram> is that it?
[23:14:12] <chromas> it's 'cause the mirc guys came up with a dumb way to color text and everyone went with it
[23:14:16] <chromas> exactly
[23:15:07] <Bytram> got it!
[23:15:27] <chromas> wait actually
[23:15:29] * Bytram once grappled with coding 3270 AID chars to format 'green screens'
[23:15:44] <chromas> 0x02, then color digits
[23:16:00] * Bytram also played around with ANSI escape sequences
[23:16:08] <crutchy> single color digits should be left zero padded to prevent clients misinterpreting
[23:16:09] * Bytram okay, and some HP PCL printer codes, too.
[23:16:33] * chromas notes that ircle's color codes don't have hat problem
[23:17:02] <chromas> yeah it's cool to be hanging out with hackers with experience
[23:17:05] * Bytram is stuck with what'll run on XP
[23:17:09] <crutchy> how does it interpret 404 with a single digit color code?
[23:17:24] * Bytram is wondering what color codes it uses?
[23:17:37] <chromas> it's just a different, incompatible system
[23:17:51] <chromas> it was first with colors but everyone ignored it
[23:18:04] <chromas> I think it's 0x02 + one alphanum
[23:18:10] <crutchy> is 0x031404 meant to be 404 with black text or 04 with dark grey text?
[23:18:15] <crutchy> oh
[23:18:30] <crutchy> i think 0x02 is bold
[23:18:39] <chromas> 0x03 then
[23:18:44] <chromas> it uses the same starting code
[23:18:53] * Bytram is having absolutely NO luck with the APIs... now that we've gone https-only...
[23:19:03] <crutchy> i'm used to typing chr(3) in php :p
[23:19:05] * Bytram is going to try another approach
[23:19:17] <chromas> haven't seen tmb in awhile either
[23:19:24] <chromas> $seen TheMightyBuzzard
[23:19:24] <aqu4> I last saw TheMightyBuzzard at 2015-04-15 00:14:56 UTC in #soylent. Their most recent message is "** TheMightyBuzzard is evil like that **"
[23:19:26] <chromas> (noping)
[23:19:29] <crutchy> i'll hack together some code for ya Bytram
[23:19:38] <chromas> crutchy++
[23:19:38] <Bender> karma - crutchy: 1
[23:19:40] <crutchy> got another coffee so i'm good now :D
[23:19:59] <Bytram> he was in last night and planned to take the first part of today to catch up on some things
[23:20:38] <chromas> oh Bytram
[23:20:43] <chromas> api only on dev
[23:21:00] <chromas> your link was to not-dev
[23:21:02] <Bytram> hmm, when I paste a URL into my browser, it comes back with a massive file structure...
[23:21:13] <Bytram> http://dev.soylentnews.org
[23:21:14] <aqu4> Failed to connect to retrieve page title.
[23:21:21] <Bytram> https://dev.soylentnews.org
[23:21:21] <aqu4> No title found.
[23:21:37] <chromas> it's json
[23:21:53] * Bytram never really got into hockey
[23:21:53] <Bytram> :P
[23:22:11] <crutchy> there's some php to hook into tmb's api as well
[23:22:15] * chromas grabs a chainsaw
[23:22:44] * Bytram had written some code to parse json stuff... goes off to look for it
[23:22:53] <crutchy> https://github.com
[23:22:54] <aqu4>  ^ "3exec-irc-bot/sn_api.php at master · crutchy-/exec-irc-bot · GitHub"
[23:22:59] <chromas> php, python, perl all have json libs
[23:23:12] <crutchy> ~php json_decode
[23:23:13] <exec> mixed json_decode( string $json [, bool $assoc = false [, int $depth = 512 [, int $options = 0]]] )
[23:23:13] <exec> http://php.net
[23:23:19] * chromas notes the cleaned up aqu4 titles
[23:23:19] <chromas> Subsentient++
[23:23:19] <Bender> karma - subsentient: 1
[23:23:58] * Bytram found it...
[23:24:08] <crutchy> oh hehe i already got a slash_test.php script :D
[23:24:16] <crutchy> just gotta fill it out now
[23:26:22] * Bytram needs to remember how to phrase a wget query to handle cookies
[23:26:35] * crutchy is putting SN comment code into a new lib function
[23:26:55] <Bytram> --load-cookies=FILE
[23:26:55] <Bytram> --save-cookies=FILE
[23:26:55] <Bytram> --keep-session-cookies
[23:27:01] <Subsentient> .
[23:27:10] <Subsentient> 0oops
[23:27:15] <Subsentient> stepped on muh kbd
[23:27:26] * Bytram does not want Subsentient to be his surgeon
[23:27:28] <crutchy> dev is 443 only yeah?
[23:27:36] <Bytram> ooops sounds kinda scary, yano?
[23:27:47] <Bytram> crutchy: don't recall
[23:29:29] <Bytram> crutchy: looks like it from my firewall log
[23:30:23] * crutchy is stripping out bender-related cruft from the script paste :/
[23:31:02] * Bytram accidentally pressed ^L in this hexchat panel and now can no longer see his scrollback. :(
[23:31:35] <chromas> doesn't work here. /me loads hexchat
[23:31:43] <chromas> oops; not installed
[23:32:03] <crutchy> i'm sure there was a way to get it back without restarting client
[23:32:23] <Bytram> crutchy: nod nod; I just don't know what it is.
[23:32:35] * crutchy can't remember either
[23:32:47] * crutchy couldn't resist doing the same :p
[23:32:55] <crutchy> ctrl_L--
[23:32:55] <Bender> karma - ctrl_l: -1
[23:34:58] * Bytram looks at hexchat's keyboard shortcuts and does not see 'Ctrl+L' in it -- can't even remove it.
[23:35:46] <crutchy> hardcoded
[23:35:50] <crutchy> bottom of view menu
[23:35:52] <chromas> leaving and re-joining reloads it
[23:35:56] <crutchy> s/view/window/
[23:36:08] <crutchy> 'Clear Text' in xchat
[23:36:22] <crutchy> chromas++
[23:36:22] <Bender> karma - chromas: 1
[23:36:24] -!- crutchy [crutchy!~crutchy@709-27-2-01.cust.aussiebb.net] has parted #dev
[23:36:27] -!- Bytram [Bytram!~martyb|af@Soylent/Staff/Developer/martyb] has parted #dev
[23:36:28] -!- crutchy [crutchy!~crutchy@709-27-2-01.cust.aussiebb.net] has joined #dev
[23:36:30] -!- Bytram [Bytram!~martyb|af@Soylent/Staff/Developer/martyb] has joined #dev
[23:36:30] -!- mode/#dev [+v Bytram] by SkyNet
[23:36:41] <Bytram> chromas++
[23:36:41] <Bender> karma - chromas: 2
[23:36:42] <Bytram> chromas++
[23:36:42] <Bender> karma - chromas: 3
[23:36:42] <Bytram> chromas++
[23:36:42] <Bender> karma - chromas: 4
[23:36:43] <crutchy> maybe i should close the channel
[23:36:45] * chromas feels blessed to be using quassel :D
[23:36:45] <Bytram> yay!
[23:36:48] -!- crutchy [crutchy!~crutchy@709-27-2-01.cust.aussiebb.net] has parted #dev
[23:36:54] -!- crutchy [crutchy!~crutchy@709-27-2-01.cust.aussiebb.net] has joined #dev
[23:37:00] <crutchy> yay
[23:37:02] <chromas> of course, you may miss out on something while you're gone
[23:37:04] <crutchy> chromas++
[23:37:04] <Bender> karma - chromas: 5
[23:39:17] * crutchy is just working out reply form urls
[23:39:31] <crutchy> for root comments and child comments
[23:42:00] <Bytram> crutchy: and great-grand-kids, too?
[23:52:37] * crutchy had to feed the dunny monster
[23:53:01] <Bytram> np
[23:53:37] <Bytram> afk biab