#dev | Logs for 2018-01-05
« return
[19:29:33] -!- mrpg [mrpg!~m@Soylent/Staff/Editor/mrpg] has joined #dev
[19:29:36] <Bytram> hi!
[19:29:46] <mrpg> hi!
[19:29:59] <Bytram> how are you trying to use the API? curl?
[19:30:16] <mrpg> The api in dev gives an error when it receives an unexistent uid
[19:30:29] <mrpg> Right now, just firefox. I was gonna try python
[19:30:32] <mrpg> https://dev.soylentnews.org
[19:30:32] <upstart> ^ 03500 Internal Server Error
[19:30:34] <exec> └─ 13500 Internal Server Error
[19:30:36] <mrpg> https://dev.soylentnews.org
[19:32:07] <Bytram> max(uid) on dev is 4080
[19:32:21] <Bytram> took me a minute or two to load up the DB in mysql
[19:32:47] <Bytram> describe users
[19:33:01] <Bytram> meh, wrong window
[19:33:40] <mrpg> wishlist: it should say "out of range" or something.
[19:34:02] <Bytram> nod nod
[19:34:18] <Bytram> error handling, umm, leaves *much* to be desired
[19:34:31] <mrpg> There's this: op=max_uid for the last users id
[19:34:43] <Bytram> huuh?
[19:34:46] * Bytram goes to look
[19:35:23] <Bytram> https://dev.soylentnews.org
[19:36:01] <Bytram> yup, it worked!
[19:36:10] <mrpg> nice!
[19:36:20] <mrpg> I learned it from TMB
[19:36:23] <Bytram> and, on prod, it is 6834
[19:36:26] <Bytram> !uid
[19:36:26] <Bender> The current maximum UID is 6834, owned by bobthecimmerian
[19:36:31] <Bytram> see!
[19:37:19] <mrpg> I wanted to do a for loop and get all users bio in one file :-)
[19:37:19] <Bytram> I've got a Windows box (win 7 pro) and wrote up a bunch of batch programs to encapsulate a bunch of the api calls so as to simplify my writing tests...
[19:37:29] <Bytram> especially submitting comments and doing moderation
[19:37:50] <Bytram> do you have an account on dev?
[19:37:54] <mrpg> yes
[19:38:12] <Bytram> let me rephrase that -- do you have shell access to our servers?
[19:38:19] <mrpg> no
[19:38:22] <Bytram> nod nod
[19:38:39] <Bytram> I think TMB would not be against giving you access
[19:38:52] <Bytram> is lots easier to do some things with a DB query =)
[19:39:01] <Bytram> assuming you know some SQL?
[19:40:10] <mrpg> Yes. But I'm ok, I really don't need it now.
[19:40:24] <Bytram> btw, I don't know if you noticed, but you are now in our Hall of Fame (HoF) as one of the 10 most active authors! https://soylentnews.org
[19:40:26] <upstart> ^ 03SoylentNews: Hall of Fame
[19:40:27] <exec> └─ 13SoylentNews: Hall of Fame
[19:40:38] <Bytram> T H A N K - Y O U ! ! ! ! ! !
[19:41:07] <Bytram> nod nod
[19:41:19] <Bytram> okay, really need to take a short break... back in a few minutes
[19:41:36] <mrpg> I've been checking but I hadn't see it, yay for me!!!
[19:41:42] <mrpg> bye
[19:49:46] <mrpg> ~api
[19:49:48] <exec> sylnt.us/api
[20:21:55] -!- mrpg has quit [Quit: Leaving.]