« first day (2071 days earlier)      last day (2891 days later) » 

6:00 PM
DON'T PING ME, I am done with the api, now it scares me had to goto a therapy to get it off my mind.
 
"Will not work with every user" oh dear.
 
It will
console.log is like the most basic part of javascript ever
 
I see.
 
6:02 PM
 
How was I not made aware sooner :O
 
Enough that I'm not 100% sure that's what I want.
 
This dude is great youtube.com/…
 
@Xenorosth if you're getting something from a server, it is
 
I'm not though.
Everything is client side. Or it should be.
In short, I get the local mouse data on the browser, then I store it locally.
Preferably in a .txt or something basic.
The data should never cross a connection.
 
6:06 PM
@Xenorosth loading a file is super hard
JS does not play nice with local files
 
It's not loading. It's saving.
 
@Xenorosth it's not just networking, doing any I/O between two different execution contexts counts as well
 
@Xenorosth then you want something along the lines of a data URL
 
Whatcha mean? @ssube
Keep in mind, I'm a toddler when it comes to the majority of this.
 
55
A: Download data url file

owencmIf you also want to give a suggested name to the file (instead of the default 'download') you can use the following in Chrome: function downloadURI(uri, name) { var link = document.createElement("a"); link.download = name; link.href = uri; link.click(); } And the following example show...

a data URL is a MIME type, data, and filename
it's what the browser gets when you click a download link, just wrapped up for JS to make
 
6:09 PM
@Xenorosth a file type is provided on the web developer.mozilla.org/en/docs/Web/API/File
this object is usually transparent (when you use form controls and let the client handle everything), but you can get access to the opaque object (or construct one yourself)
 
@FilipDupanović what
 
I see.
 
that makes no sense even to me
 
user1596138
 
@Xenorosth you need to lie to the browser and tell it you have a file for it to download, yeah?
 
user1596138
6:10 PM
For people that don't even need specs before buying monitors?
 
even though it's just some data in code, not a real file
 
I wish it could be.
 
@Josiah do you get to play through @rlemon's childhood?
 
This would be a LOT simpler if I could simply just use something like Java's buffered writter
 
ergh.... packages for meteor ALWAYS break, like almost every day
 
6:11 PM
why do you need a binary file @Xenorosth? what are you collecting/generating?
 
It's mouse movement.
That I later have to put into a java program that I wrote myself.
 
@Xenorosth JS has typed arrays, you could just fill one, then convert it to the data URL at the end.
 
<.-.>" I don't think I understand javascript's flow.
At all. What do you mean "at the end"?
Like, on browser close or...?
 
@Xenorosth whatever you want the end to be
end of collecting data, when the tab closes, whatever
 
... I'm so lost.
 
6:13 PM
End of the world.
 
that answer I linked will show you how to take some data from JS and make the browser show it as a downloadable file
 
So the user will have to download it every time?
Like, all of it makes sense in the context of a webpage.
But this is a chrome add on
 
user1596138
@ssube Yeah on 3 screens
 
@Xenorosth let's start with what you'd like to have
 
I think it'd be best to just tell y'all the project overall (even though I was told not to. But I need help. XD)
In short, this is something for active authentication and identifying the mouse movement of a browser over the course of the user's action.
Well. User's session.
 
6:18 PM
ok, great
 
buy google analytics
 
Google analytics?
 
yep
 
@Xenorosth so you have something like a linear array of [x ,y] pairs and you'd like to store this in your extension and read it later?
 
It's supposed to be saved locally.
So it's not a "read it later" thing. It's a "I only save it" thing
 
6:21 PM
@Xenorosth so you collect your data for a while, then use the data URL thing to make a fake file and trigger the browser's save modal
 
... Fair enough. Those are the steps.
Now I just have to figure out how to code it.
 
that answer should help with the second half
for the first half, $(document).onmousemove
dunno how you'd do that from an extension
 
... I don't know what that line means. D:
What's the dollar sign for?
 
have you checked google for anything related to, say, "JS mouse movement"?
 
Well yeah, that I found.
I just don't know how it'd trigger constantly
Or if onmousemove works just fine in extensions.
 
6:25 PM
Don't use W3Schools as a JS reference.
 
@Xenorosth w3schools is often wrong, especially their examples
 
Can anyone tell me what the TypeError: invalid string/buffer-chunk means?
 
Okay, so fuck everything I know then.
 
@RowanHarley it means a string is not valid
 
@Loktar So is react-bootstrap really that bad? It looked rather straightforward to me (Readin it's code). It just seems to apply bootstrap specific classes and proeprties.
 
6:26 PM
@ssube I don't know half the shit on that page. That's why I use w3schools
 
@Xenorosth you want to start by capturing mouse positions into an array
 
@ssube I get it when sending a UInt8Array() though.
 
I get that, but I don't understand why what's on w3 is wrong.
 
@RowanHarley learn to post code or I'm going to kick you for vamping again
 
@Josiah awesome
 
6:27 PM
What's "vamping"?
 
@Xenorosth let's see what a small example looks like...
@Xenorosth sucking help out of people without actually trying
 
user1596138
@littlepootis How so? They don't mention any details at all whatsoever before you buy it. Not even the resolution
 
asking the same question without fixing anything, asking super vague questions without code, etc
 
Oh. I hope I'm not vamping. <.=.<'
I'm just genuinely javascript stupid
 
user1596138
It says Full HD so I assume 1080p. But that's the extent of the information available?
 
6:28 PM
@ssube I'm trying to be a vamp. If you need code, then look here
 
But yeah, that example is how I'd get the data points.
 
@Josiah They're probably 1080p
 
I'm not getting, Reflect.construct(target, argumentsList, newTarget)
it's like it calls constructor from target but sets the protoype methods from newTarget without calling newTarget 's constrcutor
 
@Xenorosth You're not alone!
 
user1596138
@littlepootis Best product description ever lol. "It's probably 1080p, order now for $599!"
 
6:31 PM
does something like what you want
 
74 euros for shipping? wtf
 
... I see. That's remarkably short.
 
That's what she said.
 
@Xenorosth jsfiddle.net/zLtns89e/2 will take a sample every 100ms
 
Don't bother looking at my code. I'll try solve this by using console.log to find the problem. Would I be being a vamp if I came back asking for help after finding the problem?
 
6:34 PM
@RowanHarley asking similar questions that you can easily find answers to on google without including code is vamping
you've been warned a few times now, so next time, I'm kicking you
 
I keep breaking codepen with while loops
 
@ssube I haven't been able to find an answer to this. If I find the problem, I'll google it first though
 
just curious document.(insert code here) is simply referring to the general webpage I'm on, correct?
 
user1596138
@Xenorosth Everything is an object
 
user1596138
6:35 PM
document is an object with properties
 
that's the sort of thing you can look up pretty easily
 
user1596138
Basically lol
 
@Xenorosth Read the documentation before asking us what something does.
 
I wasn't asking what it does, I was asking if I was right. :P
You guys could have said "no" and I'd have looked it up. I didn't want to do something stupid under a false belief.
 
Same thing, you could have just read the docs.
 
6:37 PM
@RowanHarley console.log move and dir you pass that to the send function..
 
ok, thanks I'll look at those
 
user1596138
@Xenorosth Well the answer was no unless you define "general webpage"
 
Basically, what I meant is that "document" refers to the current page you are on, regardless of url
 
user1596138
You could argue that document.documentElement is the webpage you are on... Since that's going to reference the <html> tag ;P
 
@Xenorosth yeah
 
6:40 PM
... Don't say shit like that, I'm already confused.
 
user1596138
Well it's not like you can refer to any page you are not on..
 
Doesn't look like there's anything wrong with them. It doesn't seem to even get to the send() method because when I put a console.log() above it, I get nothing
 
@Josiah sure you can
when you open a window, you get a reference to it, which you can get the document from (if CORS allows it)
 
@ssube So then the answer was "yes, but you suck as clarifying your points and need a beating from... a wet string of pasta. Violent beating with pasta"
 
user1596138
True lol
 
6:42 PM
It's just a pain when I "think" I know what something is.
Just by what it says, so I wanna just go with it.
 
If I remove the if(clients[id]) from the send() function I get the error that send() is undefined. Looks like I've messed up somewhere else in the code!
 
@ssube It's funny, because the way your code looks, it doesn't seem like I'm filling an array. More like I'm using a stack.
 
@Xenorosth JS arrays aren't fixed size, they're lists or vectors
 
Hence, push. Got it.
 
6:49 PM
@RowanHarley maybe first learn javascript.. then learn some coffeescript... instead of randomly adding/removing code that was transpiled to javascript by a coffeescript compiler...
 
@Xenorosth right, then take the whole thing at the end, turn it into text
 
user1596138
@SterlingArcher lol I'm doing that next time
 
When you hit the "finished" button.
 
@Xenorosth correct
 
@cswl That's a good idea! Now why didn't I think of that!
 
6:50 PM
@SterlingArcher I ran into a mcdonald's one time :(
 
with a car?
 
But for me, I'd edit it so instead of doing it would download after closing out of the browser.
 
@SterlingArcher yep
straight into the curb
turned super wrong
@Xenorosth you can't do that, I don't think
 
drugs are bad sean
 
there's the onclose event and stuff
 
6:51 PM
@ssube should have turned right
 
@SterlingArcher I was only on alcohol! D:
it was like 5am
 
driving drunk is bad, fuckboy :(
 
yeah, that's why I don't
 
Well, what I mean is that the internal code is fine, right?
 
this was years and years ago
@Xenorosth if you change the document.getElement...onClick to document.onclose, it might work
 
6:52 PM
That's what I was thinking
 
mm, doesn't look like it does
 
Why not?
What's happening on your side?
 
it's not doing anything with document.onclose or window.onclose
probably because a closing window isn't allowed to open a new window
 
One time I drove 300ft because I was so drunk I forgot I was drunk. I realized I was drunk, stopped the car, got out and walked. My car blocked an entire street and was towed and I didn't find my car for 4 days
 
user1596138
@SterlingArcher What tf
 
user1596138
6:55 PM
lol is that a true story?!
 
Oh, it opens a new window?
 
@Josiah very true story.
 
Hm....
 
@Xenorosth technically.
 
It took me 4 days and about $350 to find my car
 
6:55 PM
All downloads technically open the file in a new window
the browser just sees the filetype and asks you if you want to download it instead
 
I see.
 
user1596138
@SterlingArcher lmgdao how drunk does it take to do that
 
that's what the text/plain does
@Josiah 3 drunks
not 3 drinks, mind
 
A bottle of vodka and half a case of beer, apparently
 
user1596138
I would've thought by the time you're that drunk you'd have trouble even getting the car down the street in the first place
 
6:56 PM
I woke up in the school fountain
 
@Josiah driving is muscle memory tho
 
Was a good night
 
I can drive while pretty much entirely asleep, because the actual driving (at normal speeds) doesn't take any thought
I've driven to a friend's house like 1 mile away a bunch of times, totally out of it
now, you get some stop lights involved...
 
Yeah tbh i don't know how people can't drive drunk it's really easy to drive...
Wow that came out super wrong
 
the driving part is not a problem
 
6:57 PM
I don't drink and drive and do not support it!!!
 
the rules part is
 
user1596138
One time I drank 8 beers and had 2 shots of vodka playing call of duty and went to bed.... I thought.... I woke up sleeping with my feet in my brother's (roommate) laundry hamper in his room. I couldn't find the vodka... 3/4 of the bottle "magically" disappeared. Apparently I don't remember deciding to continue drinking because I remember laying down in bed and that's the end.
 
Hm. I think then I'll do a "start test" and "end test" in the pop up
 
> Hi my name is Jordan and I've woken up in 4 yards and 2 window sills
 
Does that sound like a valid idea?
 
user1596138
6:58 PM
Remember when I got in trouble on chat for stupid things while drunk?
 
user1596138
I was probably on chat that night. It was that time in my life lol
 
@Xenorosth yes
 
@Josiah give us a date and time
 
Okay. Sounds good.
 
user1596138
Annnnd now I average a beer a month.
 
6:59 PM
one time i got so drunk i slept with my best friend's mum
 
@Josiah I'm super glad it's summer and I can get annihilated again.
 
does that count? c:
 
user1596138
@ssube annihilated?
 
JSON.stringify
 
getting drunk during the winter here means staying inside and not doing anything
 
6:59 PM
I don't drink on the weekdays anymore. I do get shitty on the weekends though. Not last weekend though. I needed a break
 
That sounds like... Becoming a json noodle
 
@bitten no this was the "I blacked out and continued drinking"
 

« first day (2071 days earlier)      last day (2891 days later) »