#editorial | Logs for 2016-02-14

« return
[01:38:09] -!- nick [nick!~nick@Soylent/Staff/Editor/n1] has joined #editorial
[01:38:09] -!- mode/#editorial [+v nick] by SkyNet
[01:44:46] <cmn32480> notsanguine - you have a specific nick that you change to when you are away? I'm editing the ~eds caller for exec
[02:00:12] Bytram|away is now known as Bytram
[02:01:07] * Bytram notes the appearance of 'a day of cmn32480' for Valentine's Day, February 14, 2016
[02:01:12] <Bytram> cmn32480++
[02:01:12] <Bender> karma - cmn32480: 42
[02:02:57] <Bytram> cmn32480: yes, i am aware that there is an API with a cryptic command line of parameter names and settings that will return a nick for a UID or vice versa; what I was looking for was a simplified syntax, as given in the examples I provided
[02:23:36] <cmn32480> bytram - only difference is that the exact command string for what you want to do is on the wiki page
[02:24:02] <Bytram> ~nick 123
[02:24:12] <cmn32480> I am not sure if crutchy or chromas can do that as a macro. I know I am not sure how to
[02:24:15] <Bytram> ~uid
[02:24:16] <exec> The current maximum UID is 6119, owned by gary.gregory
[02:24:33] <Bytram> ~uid 18 # should give "The Mighty Buzzard"
[02:24:35] <exec> The current maximum UID is 6119, owned by gary.gregory
[02:24:48] <Bytram> ~nick "The Mighty Buzzard" # should display 18
[02:25:38] <crutchy> ~macro ~nick * internal ~api m=user op=get_nick uid=18 /nick
[02:25:39] <exec> 02 *** macro with trigger "~nick" and INTERNAL command template "~api m=user op=get_nick uid=18 /nick" saved
[02:25:45] <crutchy> ~nick 18
[02:26:02] <crutchy> or not
[02:26:06] <Bytram> lol
[02:26:24] * crutchy wonders if its borking because of the channel lock
[02:26:27] <crutchy> ~api m=user op=get_nick uid=18 /nick
[02:26:35] <crutchy> ~api m=user op=get_nick uid=18
[02:26:38] <Bytram> ~nick 1 # should return "Anonymous Coward"
[02:26:43] <cmn32480> the api shoudl work here
[02:26:46] <Bytram> ~nick 2 # should return "NCommander"
[02:26:55] <cmn32480> bytram... we get that part
[02:26:57] <Bytram> ~nick 3 # should return "robind"
[02:27:01] <Bytram> k
[02:27:11] <crutchy> ~api
[02:27:16] <crutchy> hmm
[02:27:45] <cmn32480> ~weather
[02:28:04] <Bytram> No weather for you!
[02:28:05] <cmn32480> ~restart
[02:28:56] <cmn32480> hmmm
[02:29:00] <cmn32480> maybe he's borked
[02:29:10] <cmn32480> but the consoel still shows him processing
[02:29:13] <cmn32480> ~q
[02:29:15] <cmn32480> ~quit
[02:29:21] <crutchy> should probably change https://github.com to delete #dev,#Soylent,#,#crutchy
[02:29:27] <snowfire> ^ 03exec-irc-bot/sn_api.php at master · crutchy-/exec-irc-bot · GitHub ( https://github.com )
[02:29:37] <crutchy> cos i think macros are called with a different channel (dest)
[02:29:54] -!- exec has quit [Remote host closed the connection]
[02:30:11] <crutchy> no doubt the guy who programmed it would. wonder where he is
[02:30:21] <crutchy> s/./ know./
[02:31:10] <Bytram> if you want to get fancy, also include the date/time the nick was registered. =)
[02:31:15] -!- exec [exec!~exec@23.24.kp.ip] has joined #editorial
[02:31:35] <cmn32480> don't get yer hopes up
[02:31:50] <cmn32480> ~weather
[02:31:51] <exec> 10Baltimore, MD, USA - currently 16°F / -9°C, mostly cloudy, wind W at 15 mph, humidity 36% - Saturday partly cloudy (8°F:18°F / -13°C:-8°C), Sunday mostly sunny (16°F:24°F / -9°C:-4°C), Monday snow (31°F:31°F / -1°C:-1°C), Tuesday rain (33°F:45°F / 1°C:7°C)
[02:31:53] <Bytram> nod nod
[02:32:06] <Bytram> Pfft. Warm spell!
[02:32:09] <Bytram> ~weather boston
[02:32:10] <cmn32480> ~nick 443
[02:32:10] <crutchy> maybe the macro thingy borked it
[02:32:13] <exec> 10Boston, MA, USA - currently 2°F, clear with periodic clouds, wind W at 22 mph, humidity 31% - Saturday cloudy (-7°F:20°F), Sunday sunny (-1°F:12°F), Monday mostly cloudy (28°F:31°F), Tuesday rain (35°F:51°F)
[02:32:19] <cmn32480> ~weather
[02:32:20] <Bytram> ~weather portland, me
[02:32:44] <cmn32480> ~weather
[02:32:53] <cmn32480> looks liek it
[02:33:01] <cmn32480> ~nick
[02:33:07] -!- exec has quit [Remote host closed the connection]
[02:33:09] <Bytram> ~weather portland, me
[02:33:59] -!- exec [exec!~exec@23.24.kp.ip] has joined #editorial
[02:34:10] <cmn32480> ~weather
[02:34:12] <exec> 10Baltimore, MD, USA - currently 16°F / -9°C, partly cloudy, wind W at 16 mph, humidity 37% - Saturday partly cloudy (8°F:18°F / -13°C:-8°C), Sunday mostly sunny (16°F:24°F / -9°C:-4°C), Monday snow (31°F:31°F / -1°C:-1°C), Tuesday rain (33°F:45°F / 1°C:7°C)
[02:34:57] * cmn32480 deletes ~nick from the marco file
[02:35:17] <cmn32480> ~lawn
[02:35:19] <exec> , get off my lawn!
[02:37:10] * cmn32480 leaves it in crutchy's very cpable hands
[02:38:06] NotSanguine is now known as NotSanguine|Dinnerti
[02:38:17] <cmn32480> ~api m=user op=get_nick uid=18 /nick
[02:38:17] <Bytram> cmn32480: 'marco file' ... next up you'll be telling me there is a 'polo file', too!
[02:38:20] <exec> soylentnews.org/api.pl?m=user&op=get_nick&uid=18
[02:38:22] <exec> 02The Mighty Buzzard
[02:38:59] <cmn32480> ~api m=user op=get_nick uid=443 /nick
[02:39:00] <exec> soylentnews.org/api.pl?m=user&op=get_nick&uid=443
[02:39:01] <exec> 02cmn32480
[02:44:21] <crutchy> ~api m=user op=get_nick uid=18
[02:44:23] <exec> soylentnews.org/api.pl?m=user&op=get_nick&uid=18
[02:44:23] <exec> 02{"nick":"The Mighty Buzzard"}
[02:44:42] <crutchy> hmm
[02:45:04] <crutchy> that url echo might be in one of the lib functions maybe
[02:48:32] -!- aqu4 has quit [Quit: aqu4bot baking shutting down.]
[02:48:42] -!- Subsentient [Subsentient!~WhiteRat@Soylent/Staff/Editor/Subsentient] has joined #editorial
[02:48:42] -!- mode/#editorial [+v Subsentient] by SkyNet
[02:49:13] -!- aqu4 [aqu4!~aqu4bot@universe2.us/ircbot/aqu4] has joined #editorial
[02:51:43] <cmn32480> sn_api.php calls lib.php
[02:55:56] <cmn32480> ~api help
[02:55:59] <exec> sylnt.us/api
[03:30:16] <Bytram> http://www.itworld.com
[03:30:21] <snowfire> ^ 03UCLA just open-sourced a powerful new image-detection algorithm | ITworld ( http://www.itworld.com )
[03:30:37] <Bytram> linkies:
[03:30:41] <Bytram> linky #1: https://github.com
[03:30:42] <snowfire> ^ 03GitHub - JalaliLabUCLA/Image-feature-detection-using-Phase-Stretch-Transform: PST or Phase Stretch Transform is an operator that finds features in an image. PST takes an intensity image I as its input, and returns a binary image out of the same size as I, with 1's where the function finds sharp transitions in I and 0's elsewhere.
[03:30:53] <Bytram> linky #2: http://www.mathworks.com
[03:30:53] <snowfire> ^ 03JalaliLabUCLA/Image-feature-detection-using-Phase-Stretch-Transform - File Exchange - MATLAB Central
[03:48:39] Bytram is now known as Bytram|away
[04:02:49] -!- crutchy has quit [Quit: Leaving]
[04:03:13] -!- crutchy [crutchy!~crutchy@709-27-2-01.cust.aussiebb.net] has joined #editorial
[04:07:34] NotSanguine|Dinnerti is now known as NotSanguine
[04:26:16] <cmn32480> get_bucket("process_template_cmd")=="INTERNAL"
[04:26:27] <cmn32480> ~get_bucket("process_template_cmd")=="INTERNAL"
[04:28:52] <crutchy> not sure if it works on ~bucket commands
[04:29:02] <crutchy> ~bucket process_template_cmd
[04:29:12] <cmn32480> ~list-auth
[04:29:13] <exec> ~q ~rehash ~ps ~kill ~killall ~dest-override ~dest-clear ~buckets-dump ~buckets-save ~buckets-load ~buckets-flush ~buckets-list ~restart ~ignore ~unignore
[04:29:13] <exec> ~bucket ~define-list ~define-source-edit ~define-source-param ~deop ~devoice ~eval ~event-test ~exec-add ~exec-del ~exec-irc-raw ~exec-save ~forward ~invite ~journals ~kick ~lockdown ~minion ~mode ~mysql ~op ~reader ~say ~slash-test ~soon ~sql ~startup ~tests ~topic ~users ~voice
[04:29:37] <crutchy> ~bucket <BOT_NICK>
[04:29:47] <cmn32480> ~weather
[04:29:50] <exec> 10Baltimore, MD, USA - currently 15°F / -9°C, clear, wind W at 9 mph, humidity 40% - Saturday clear (8°F:18°F / -13°C:-8°C), Sunday mostly sunny (16°F:23°F / -9°C:-5°C), Monday snow (31°F:30°F / -1°C:-1°C), Tuesday rain (34°F:45°F / 1°C:7°C)
[04:29:52] <cmn32480> ok
[04:29:56] <cmn32480> so we didn't break him again
[04:30:11] <crutchy> ~bucket <<BOT_NICK>>
[04:30:40] <crutchy> ah. ~bucket is operator-only
[04:30:45] <cmn32480> ~bucket
[04:30:47] <exec> GET: ~bucket <index>
[04:30:47] <exec> SET: ~bucket <index> <data>
[04:30:47] <exec> UNSET: ~bucket <index> unset
[04:31:05] <cmn32480> ~bucket <<BOT_NICK>>
[04:31:07] <exec> exec
[04:31:25] <cmn32480> ~bucket process_template_cmd
[04:31:27] <exec> PRIVMSG
[04:31:42] <crutchy> privmsg will be if its triggered from irc
[04:31:53] <crutchy> it will be INTERNAL if its called on a timer
[04:32:10] <crutchy> (or macro)
[04:32:21] <crutchy> or various other script sex
[04:32:23] <crutchy> :p
[04:32:27] <cmn32480> ~bucket("process_template_cmd")=="INTERNAL"
[04:32:33] <cmn32480> ~bucket ("process_template_cmd")=="INTERNAL"
[04:32:35] <exec> bucket not found
[04:32:58] <crutchy> the ~bucket command is just a setter/getter
[04:33:21] <crutchy> use get_bucket("process_template_cmd") in a script
[04:33:33] <cmn32480> ok
[04:33:38] <cmn32480> I tink I understand
[04:33:43] <cmn32480> a little
[04:34:09] <crutchy> get_bucket function is in lib_buckets.php, which is included in lib.php, which is included in pretty much every script
[04:34:45] <cmn32480> ok
[04:35:14] <crutchy> if you include lib.php you also get access to lib_buckets.php, lib_http.php and users_lib.php
[04:35:38] <cmn32480> gotcha
[04:35:45] <crutchy> lib.php kinda wraps it all up nice :)
[04:35:51] <cmn32480> seesm that way
[04:37:47] <crutchy> the way it reads buckets is through stdin/stdout here: https://github.com
[04:37:48] <cmn32480> ~buckets-list
[04:37:49] <snowfire> ^ 03exec-irc-bot/lib_buckets.php at master · cmn32480/exec-irc-bot · GitHub ( https://github.com )
[04:37:50] <exec> bucket list output to terminal
[04:37:50] <exec> bucket count: 313
[04:38:12] <crutchy> using a BUCKET_GET internal stdout command
[04:39:18] <cmn32480> geebus... makes me wanna clear the buckets
[04:39:25] <cmn32480> I see it in the terminal
[04:39:41] <crutchy> the bot runs everything it receives through the stdout pipes of child processes through the irc parser
[04:39:59] <crutchy> that's why there's a bunch of internal commands
[04:40:04] <cmn32480> gotcha
[04:40:14] <cmn32480> where woudl it be setting the timer?
[04:40:21] <cmn32480> for ~funding as an example
[04:41:02] <crutchy> the timer is the first number in the exec line
[04:41:03] <crutchy> http://wiki.soylentnews.org
[04:41:04] <snowfire> ^ 03Wiki: IRC:exec ( http://wiki.soylentnews.org )
[04:41:05] <cmn32480> currently runs every 15 min
[04:41:28] <cmn32480> aaaaaaaaaaa
[04:41:54] <crutchy> so for ~funding
[04:41:55] <crutchy> https://github.com
[04:41:56] <snowfire> ^ 03exec-irc-bot/sn.php at master · cmn32480/exec-irc-bot · GitHub ( https://github.com )
[04:42:05] <crutchy> it runs every 150 seconds
[04:42:19] <crutchy> erm. assuming its not commented out on prod :p
[04:42:27] <cmn32480> it isn't currently
[04:42:33] <cmn32480> I was playing :-)
[04:42:39] <crutchy> ah lol
[04:42:58] <cmn32480> what I actually got it to do was output the current funding, not only if it changes
[04:43:06] <crutchy> ah
[04:43:13] <crutchy> noice
[04:43:54] <cmn32480> I am pretty sure I didn't do it the "right" way...
[04:44:07] <cmn32480> but it works....
[04:44:10] <crutchy> ooh there's a right way?!
[04:44:30] <crutchy> that whole bot is probably done the wrong way :p
[04:44:40] -!- cmn32480_test [cmn32480_test!~17186141@23.24.kp.ip] has joined #editorial
[04:44:56] <cmn32480> 'zactly... so I fugred it didn't matter!
[04:45:18] <cmn32480_test> if ($previous=$amount) { pm("#soylent",chr(3)."05"."*** SN funding is currently \$$amount"); } else { term_echo("funding: previous = amount ($amount)"); }
[04:45:26] <cmn32480> shit
[04:45:31] <cmn32480> that didn't translte well
[04:45:39] -!- cmn32480_test has quit [Client Quit]
[04:46:47] <cmn32480> all I did was add another if-else
[04:47:02] <cmn32480> direcetly below the existing one that processed the change
[04:47:18] <crutchy> if ($previous=$amount) >>> if ($previous==$amount)
[04:47:31] <crutchy> in php you need 2 x = for condition
[04:47:51] <crutchy> single = is assignment
[04:47:53] <cmn32480> interesting... 'cuz it works
[04:48:01] <cmn32480> oh
[04:48:02] <crutchy> oh?
[04:48:25] <cmn32480> perhaps it is assigning the variable, and outputting the answer
[04:49:19] <cmn32480> that might explain the double lines on the change in funding
[04:49:20] <crutchy> i guess it would be running whatever's in the {} regardless of the condition cos the assignment will always evaluate true maybe
[04:49:29] <cmn32480> that's my guess
[04:49:55] <crutchy> damn hayfever
[04:50:07] * crutchy sneezed about 5 times in quick succession
[04:50:13] <cmn32480> poor bastard
[04:50:13] <crutchy> now my nose is sore :|
[04:50:17] <cmn32480> get shots
[04:50:21] <cmn32480> best thign I ever did
[04:50:26] <cmn32480> you was right!
[04:50:28] <crutchy> took some telfast thismorning too
[04:50:30] <cmn32480> crutchy++
[04:50:30] <Bender> karma - crutchy: 2
[04:50:55] <cmn32480> chagned it to an == and it only outputs the Changed line
[04:51:55] <cmn32480> what's the second number in the comment box?
[04:52:22] <crutchy> comment box?
[04:52:38] <cmn32480> one sec
[04:52:46] <cmn32480> lemme get logged back in from that box
[04:52:49] <crutchy> oh the exec line
[04:52:55] <cmn32480> for some reason the copy pasta from VNC doesnt' work
[04:53:00] <NotSanguine> I'm going to merge the Github sexism stories
[04:53:08] <crutchy> oh crap sorry mate i told lies
[04:53:13] -!- cmn32480_test [cmn32480_test!~17186141@23.24.kp.ip] has joined #editorial
[04:53:16] <crutchy> the first number is the timeout
[04:53:20] <cmn32480_test> exec:~funding|150|900|0|1|||||php scripts/sn.php %%trailing%% %%dest%% %%nick%% %%alias%%
[04:53:22] <crutchy> second number is the repeat :p
[04:53:31] <crutchy> it actually repeats every 900 sec
[04:53:55] <cmn32480> first number is the first time after login?
[04:53:55] <crutchy> the first number (150) is the number of seconds the script is allowed to run for till the bot kills it
[04:54:04] <cmn32480> ahhhh
[04:54:08] <crutchy> sorry about that
[04:54:14] <cmn32480> the 900 is how often it runs
[04:54:19] <crutchy> yup
[04:54:20] <cmn32480> that makes a lot more sense
[04:54:26] <crutchy> lol sorry
[04:54:32] <crutchy> that would have been confusing eh
[04:54:57] <cmn32480> since the script runs every 15 minutes.. the 900 seconds now makes sense
[04:55:15] <crutchy> if you set a timeout of 0 the bot will allow it to run forever, and if you put a repeat of 0 it will only run on demand
[04:55:33] * crutchy should have read the destructions :p
[04:55:47] * cmn32480 too
[04:56:06] <cmn32480> ok
[04:56:18] * crutchy wonders if he's put anything about the script_template_* buckets in the wiki page
[04:56:18] <cmn32480> so by changin that to 3600, there will be an hourly reminder of the funding level
[04:56:28] <crutchy> ah
[04:56:30] <crutchy> nice
[04:56:34] <cmn32480> not that I saw... but I prolly didn't look that hard
[04:57:06] <cmn32480> and since it no longer only looks for the change in the funding... we get an actual current number
[04:57:31] <cmn32480> based on if mrcoolbp has updated the beg-o-meter on the site
[04:57:37] <crutchy> ah yup. sorta hidden a bit, but there is a note about the process templates: http://wiki.soylentnews.org
[04:57:38] <snowfire> ^ 03Wiki: IRC:exec ( http://wiki.soylentnews.org )
[04:57:59] <crutchy> ah sweet
[05:06:59] <NotSanguine> cmn32480: I just did my first submission merge (the github story). When you have a moment, would you mind taking a look?
[05:07:22] * cmn32480 pokes it with a stick
[05:09:17] <crutchy> if it moves, kill it
[05:09:20] <cmn32480> I'd split the extended copy at the second sub
[05:09:58] <cmn32480> directly above: While we're on this subject, fleg writes in with a another perspective on the same data:
[05:19:25] -!- exec has quit [Quit: dafuq]
[05:19:39] -!- exec [exec!~exec@23.24.kp.ip] has joined #editorial
[05:21:34] <crutchy> ~link poop
[05:21:36] <exec> └─ poop => 💩
[06:05:40] <NotSanguine> cmn32480: Sorry, had to step away. I was thinking about that, but don't we want to draw folks in to the second half?
[06:08:15] <NotSanguine> CMN32480, I changed the split as you suggested. Better now?
[06:08:30] <cmn32480> you jsut caught me
[06:08:32] <cmn32480> heading to bed
[06:08:35] <cmn32480> one sec
[06:08:37] <cmn32480> lemme look
[06:09:49] <cmn32480> yes
[06:10:29] <cmn32480> my opinion is that if we have a merge adn need to break it, we break between the stories as that si the natural spot
[06:11:09] <NotSanguine> Okay. That sounds reasonable. I just figured we could draw folks in by teasing them with the second bit.
[06:11:16] <cmn32480> all in all.. nicely done!
[06:11:24] <NotSanguine> thanks!
[06:11:26] <cmn32480> it they are gonna comment
[06:11:32] <cmn32480> they will see the second half
[06:11:51] <NotSanguine> An excellent point. And those are the people who will want both sides anyway.
[06:11:53] <cmn32480> and the [Continues...] is a known thing that it means more to the story
[06:12:19] <NotSanguine> So it does. But don't let me keep you. Have a good night.
[06:12:31] <cmn32480> you too
[06:12:34] <cmn32480> get some rest :-)
[06:12:43] <cmn32480> NotSanguine++
[06:12:43] <Bender> karma - notsanguine: 1
[06:12:43] <NotSanguine> Thanks. I will
[06:13:05] <NotSanguine> ooh! lucky me! :)
[06:13:52] <cmn32480> what... you tini karma is free??? :-)
[06:14:13] <cmn32480> each of those +++++ signs costs me wear on my keyboard
[06:14:20] <NotSanguine> lol
[06:14:35] <NotSanguine> I'm sure the Buddha would approve
[06:15:50] <cmn32480> ~gnifht NotSanguine
[06:16:00] <cmn32480> ~gnight NotSanguine
[06:16:02] * exec suspiciously drops a cheap plastic cup of NCommander on NotSanguine
[06:16:03] <NotSanguine> Sweet dreams!
[06:16:23] * NotSanguine cringes
[06:16:29] <NotSanguine> what the hell!?!
[06:17:01] NotSanguine is now known as NotSanguine|somnolen
[10:43:59] -!- crutchy has quit [Quit: Leaving]
[14:48:22] Bytram|away is now known as Bytram
[14:54:36] <takyon> cough
[15:09:40] -!- exec has quit [Quit: dafuq]
[15:09:55] -!- exec [exec!~exec@23.24.kp.ip] has joined #editorial
[15:29:21] Bytram is now known as Bytram|away
[15:42:50] <takyon> was thinking about this one but I'm not sure if it's a dupe of our recent moore's law article: http://nextbigfuture.com
[15:42:50] <snowfire> ^ 03Next Big Future: More than Moore's law strategy for computer industry
[15:52:59] <cmn32480> ~join #exec
[16:12:23] Bytram|away is now known as Bytram
[16:16:46] -!- cmn32480_test has quit [Quit: Web client closed]
[17:52:34] -!- Runaway1956 [Runaway1956!~Hogwart@67.223.zrz.rgs] has joined #editorial
[19:14:45] -!- Antonin_Scalia [Antonin_Scalia!~422c73bf@94-77-993-929.c1-8.grg-ubr9.lnh-grg.md.cable.rcn.com] has joined #editorial
[20:26:55] -!- crutchy [crutchy!~crutchy@709-27-2-01.cust.aussiebb.net] has joined #editorial
[21:08:24] -!- NotSanguine|somnolen has quit [Quit: Nettalk6 - www.ntalk.de]
[21:08:36] -!- NotSanguine|somnolen [NotSanguine|somnolen!~notsangui@qzg770-090-642.nyc5.dsl.speakeasy.net] has joined #editorial
[21:09:46] NotSanguine|somnolen is now known as NotSanguine
[21:10:10] -!- NotSanguine has quit [Changing host]
[21:10:10] -!- NotSanguine [NotSanguine!~notsangui@Soylent/Staff/Editor/NotSanguine] has joined #editorial
[21:10:10] -!- mode/#editorial [+v NotSanguine] by SkyNet
[21:15:18] NotSanguine is now known as NotSanguine-away
[23:08:01] -!- Antonin_Scalia has quit [Ping timeout: 268 seconds]