« first day (2335 days earlier)      last day (2511 days later) » 

10:10 PM
@ZacharyT ?
 
@CensoredUsername your username gave my JSON parsing quite some trouble lol
 
@TheWanderer What why would that make your JSON parser break
 
working on an Android client for SE chat
since there's no API, we need to pull things manually
 
@TheWanderer It's called a WebView and excessive custom CSS :P
 
>_>
 
10:13 PM
@TheWanderer Yes there is it's called WebSockets
 
which also means wrapping the JSON keys I pull in quotes
and one of those keys happens to be name
 
Question: are all GTX 1070 cards the same except for fans/manafacturer
 
which means I was doing .replace("name", "\"name\"")
@Downgoat probably
but then again...
they might have different types of RAM
and slightly different clock speeds
 
@TheWanderer JSON.stringify is a thing you know
Also JS injection
 
yeah I know
it's what I'm using
really doesn't like weird JSON
 
10:16 PM
What
JSON.parse is also a thing
WebSockets use normal JSON that work perfectly fine with those functions
 
It was a CMC from a message below an instance of you pinging me.
 
@ASCII-only whatever SE is using is not normal
it's actually part of a JS script
 
brb getting websocket insprctor
 
I heard talking about websocket, whattup?
 
hell in WebSocketry
 
10:23 PM
@TheWanderer What makes you so sure
 
Also, most of chatSE isn't handled by the websocket
 
because I'm literally loading the web page, parsing the data with Jsoup by selecting script elements and then substringing out what I want
 
The websocket only seems to inform the client of new messages
 
@ATaco wdym
 
Speaking of hell, anyone know what this is?:
 
10:24 PM
@TheWanderer >_> what are you trying to do
 
New messages, edits, deletions, etc. are all handled by an incredibly poorly documented API
 
there's no API remember? @ASCII-only
 
@TheWanderer ... You can use the websocket
 
There is, it's just undocumented, and terrible
 
10:24 PM
@ASCII-only for current users?
 
@TheWanderer current users?
 
the users in the room right now
 
@TheWanderer what do you mean by that are you trying to login to the current users' chat lol
 
no o_O
 
@TheWanderer idk what you're asking but it handles all chat data transfer
 
10:26 PM
getting their info, like rep, last talked, etc
 
well, about that
 
I have to load the list of current users
it all works now
 
Honestly this chat is implemented rather poorly
2
 
idk if you can do it headlessly though
@TheWanderer oh that? that's easy to get, crawl their page or use js
@ATaco now really
 
@ASCII-only Jesus Christ, that's what I'm doing! xD
 
10:28 PM
@TheWanderer then seriously just use JSON.stringify before passing back to Java
 
"I am Typing" also crawls their page for their name.
 
@ASCII-only like I said, I'm pretty sure I am, and if I'm not, I definitely tried it
 
eek a mod
 
10:29 PM
and a lemon
 
@TheWanderer also >_> are you seriously crawling pages clientside
 
I can't find a better way to get this information, the js is an overcompressed mess
 
@ASCII-only literally no choice
 
@ATaco well it's compressed for a reason?
@TheWanderer ...
seriously the js isn't hard to reverse engineer
 
yeah I'm using regex to match what I want
 
10:30 PM
you can even jse JQuery instead
@TheWanderer ew
 
It took me a couple of hours to work out how edits are handled
 
dies
@ATaco >_> because you don't use JS often?
 
@ASCII-only Alright, you find a better way :D
 
@TheWanderer well really just iterating through online users and doing .click() and taking the data from there is faster
 
10:31 PM
Because it's handled by a push request to an only barely relevant API with incredibly vaguely named references
 
@ASCII-only since everything's already done and functional with user info, I think not
 
@ATaco well yeah the chat API isn't supposed to be used by third parties
 
it needs to be
 
^
 
@TheWanderer but it's like 100000% faster
 
10:32 PM
@ASCII-only What do you mean, like running a script from the console or something?
 
@TheWanderer ?
 
@LuisMendo Phew, that took a while to get right.
 
@ZacharyT this is android, there is no console, you need to use JS injection
 
0
A: List of bounties with no deadline

trichoplax500 Rep for a meta answer that solves the popularity problem Popularity contests have been discussed many times, always with much conflict over what counts as a pop con, whether they should be on topic, whether the rules need to be consistent between different pop cons, and with a frustrating la...

2
 
Would an Iframe in an HTML/CSS/JS REPL work (even if it's hacky As F***)
 
10:33 PM
@TheWanderer found the user ajax request
 
@NewBountiesWithNoDeadlines what feed are you? o0
 
https://chat.stackexchange.com/users/thumbs/147199?showUsage=true&_=1498084402306
 
@ASCII-only maybe we'll implement better things later, but right now we actually have to get the message part working
 
@totallyhuman the clue is in the name
 
just change user id and thing to time
@TheWanderer why not just put chat in a WebView
 
10:34 PM
because that's stupid
people might as well use Chrome
 
@TheWanderer seriously you just need to JSON.parse that
 
@ASCII-only everything I need is already in the JSON!
 
@TheWanderer ?
 
the poorly formatted JSON inside the JS script inside the chat HTML
 
@TheWanderer what. there is no poorly formatted JSON
 
10:36 PM
yes there is
 
Any ideas how to represent any APL array as JSON?
 
@TheWanderer if you mean the JSON in the source then well there is no JSON in source
 
also, what is that 147199? Isn't the room ID 240?
 
@TheWanderer user id for user data
 
@ASCII-only oh yes there is
 
10:37 PM
@TheWanderer those are JS objects not JSON then
poorly formatted JSON is not JSON at all, it's JS
 
            SERVER_TIME_OFFSET = 1498083086 - (new Date()).getTime() / 1000;
            $(function() {
                if (!CHAT.RoomUsers) {
                    $("#loading-message").empty().html("<span style='color:#a00000'>Cannot start chat</span> because your browser has loaded an outdated JavaScript file.<br/><br>Please <b>reload this page</b> to ensure you have up-to-date data.")
                    return;
                }
                var chat = StartChat({
                    sound: {
 
@TheWanderer That is not JSON
 
what is it
 
That's a JS object
 
can I convert?
without replacing things manually?
 
10:38 PM
@TheWanderer Why are you even trying to automatically convert >_>
Also you don't even need most of that if you're not using the chat API
 
I substring just the part that looks like JSON
 
just open a WebSocket -> magic
@TheWanderer ew pls don't pls rewrite
 
I do
 
@Adám I have no clue. You'd have to represent multidimensional arrays, and arrays within arrays.
 
nothing you can do about it
 
10:39 PM
@TheWanderer what
 
unless you submit a PR :3
ok I really need to go back to working on this
 
@TheWanderer i could do that but i'd probably end up rewriting the entire thing >_>
 
Anonymous
JSON.stringify(obj)
 
@ZacharyT Yeah, the rest of the world (non-APL & J) do not have both the concept of depth and the concept of rank.
 
@ZacharyT what JSON is always a valid JS object, JS objects can be valid JSON if you want
 
10:40 PM
@Mego I can do that for JS object?
 
Anonymous
Yep
 
@TheWanderer Yes
 
hmmmmm
 
{a:2} vs. {"a":2}
 
Anonymous
And to get the object back, you do JSON.parse(str)
 
10:40 PM
so that's to convert JSO to JSON?
 
@TheWanderer Yes (JSON.stringify)
 
hmm
I'll play with it later
 
Sorry, had a complete brainfart.
 
you what
 
Anonymous
JSON.stringify takes an object and returns a string. JSON.parse takes a string and returns an object.
 
10:41 PM
it means a derp
 
literally just JSON.stringify the substring -> magic perfectly valid JSON
 
@Mego a JSON object or a JS object?
 
@TheWanderer JS, JSON is the string
 
oh
ok
lemme work on this other thing first though
 
Anonymous
@TheWanderer Object means JS objects. There is no "JSON object" - it's a string containing JSON.
 
10:42 PM
I'm not exactly a JSON expert :p
 
>_> why are you even doing this then
 
it's with 2 other people
 
you need some js people
 
we wanted to make a ChatSE/SO client with notifications and such
 
@Adám, you could do something like this: { dimensions: int[], values: any[] }
 
10:43 PM
@ASCII-only wanna join?
 
@TheWanderer ok
 
I need your GH username
and you'll need Android Studio 3.0 Canary
 
Anonymous
@TheWanderer There's several excellent libraries/clients already written for that purpose
 
@TheWanderer somebody1234
 
10:43 PM
thanks
@ASCII-only just don't change anything quite yet
 
@TheWanderer What why canary
 
@ZacharyT Very cool. I think you just suggested exactly the same as our CXO did today.
 
we're building for 26 and taking advantage of some of the cool features in Gradle 3 and 26
 
LOL. It's actually that simple.
 
@TheWanderer you are keeping compatibility right? >_>
 
10:45 PM
Hangouts transparent UI is back!!
 
@TheWanderer yes
 
@ASCII-only down to 15
invite sent
 
Anonymous
@TheWanderer You may want to look at ChatExchange for JS, or the other ChatExchange for Python.
 
@ZacharyT No actually, it was our CTO who suggested { "shape" : [3, 4], "data" : [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] }
 
@Mego Anything like that for Ruby?
 
10:46 PM
@Mego ehh
 
Anonymous
@Mendeleev I have no idea
 
Anonymous
Art would be the person who would know, I think
 
ArtOfCode?
 
@Adám nested arrays (+ shape) wouldn't work/would be too slow or something?
@TheWanderer yeah
 
@ZacharyT CXO said: [{"⍴":[3,4]},[[1,2,3,4],[5,6,7,8],[9,10,11,12]]]
 
10:47 PM
ah
 
Yeah, how would functions and operators and objects be represented?
 
@ArtOfCode
 
@ASCII-only Nesting would be done with JSON nesting, only rank would need the special treatment.
 
Wait what ArtOfCode is pingable
 
@Adám That just doesn't look good.
 
10:47 PM
yeah will get an email in 15 minutes
 
Anonymous
@ASCII-only Yeah, he hangs out in here from time to time.
 
Anonymous
He's active on SE right now (squashing spam in Charcoal HQ)
 
>_> this is also called ChatExchange
 
This would work too. {"rank":Integer,"data":<nested array, like the array would be in other languages>}
 
@Adám Do you mean my answer? Well, it was fun. Explaining it was a little more tiresome :-)
 
10:49 PM
oh god
@TheWanderer pls. use git submodules
 
wat r those
 
O_o
 
@LuisMendo No, I mean it took some time for me to write an APL solution. is brand new, so I don't have much experience with it.
 
Anonymous
@Mendeleev That had better not be a bot.
 
Nope
 
10:50 PM
@TheWanderer use submodules for SlidingMenu and colorpicker pls so it's like 100000000000x easier to update
 
@Adám Oh, I can imagine. I just saw. BTW there's a typo "teh"
 
@ASCII-only Sorry, I've taken him away.
 
@Zizouz212 what did you do D:
 
Everything.
 
Anonymous
@Mendeleev Use the Sandbox for testing, not here.
 
10:51 PM
@LuisMendo Ah well, I'm human. Too little to warrant redoing the links.
 
@ASCII-only oh you mean the compile in Gradle? That will work for colorpicker, but SlidingMenu hasn't been updated in 3 years, and I've changed a lot in it
 
Anonymous
2 messages moved to Trash
 
@Adám When I saw this challenge I thought it would get more upvotes
 
@ASCII-only <insert look of disapproval-meme-status-face here>
 
I am most definitely not a bot
 
10:52 PM
@TheWanderer no i mean for the repo
@TheWanderer pls make it a separate repo at least
 
I am totally human
 
idk how
@totallyhuman >_>
 
<_<
 
@LuisMendo I like the fact that you can't just use Mathematica's CellularAutomaton.
 
10:53 PM
Hey, ArtOfCode is here
 
Anonymous
Let's not do ASCII face spam.
 
eek
 
@Adám "io delenda est"?
 
@TheWanderer you what seriously
 
Hey, ASCII face spam is better than Unicode face spam.
 
10:54 PM
@Mendeleev no, there isn't, because websockets are a pain in the ass in Ruby
 
@ArtOfCode thanks :(
 
WTF?
 
@ZacharyT what
 
Mego must be having a stroke with all this ASCII
 
lol
 
10:56 PM
17 messages moved to Trash
'sploded
 
yipe
 
Ghosts will haunt this room.
 
@LuisMendo Yeah, the model was written by Roger who firmly believes that ⎕IO should always be 0, as is the case in J (his background).
 
sigh I'll just wait... -_-
 
10:57 PM
3 messages moved to Trash
 
@StackExchangeAppTest Who and what are you?
 
time to stop with the ascii now
 
can we GIF?
 
I am @Mendeleev's testing and bot account
 
How can we stop ASCII? THis is ascii.
 
10:58 PM
All of you are rather interesting...
 
@ZacharyT take the point
 
who's wat
 
My old username
 

« first day (2335 days earlier)      last day (2511 days later) »