« first day (1867 days earlier)      last day (3081 days later) » 

2:00 PM
that ok?
 
no ಠ_ಠ
 
2. you can grab onkeydown event and check if .length is > as 20 then prevent from change
how :D
 
@djsmiley2k by "line", I mean after where the semicolon for the $.ajax call would go
all of that, including the function for success is all just a call to a function
 
user3119231
!!google Javascript input max length
 
user3119231
take the third, this will do the job.
 
@djsmiley2k you can't, for now.
 
@djsmiley2k ;_; no
 
lol
:(
 
Put it after the closing );
 
2:04 PM
@djsmiley2k Can we bring back ? (Sorry, couldn't resist)
 
> rofl no LOL
great
 
:D
k i got the breakpoint stuff working
it 'looks like my form never resets to blank again
 
@djsmiley2k: If you compare your Ajax with the first example here:
You'd place the console.log() after line 8.
 
maybe I was misleading by "line"
if you're getting paid by the line, then I meant, next instruction ;)
 
2:08 PM
Hi guys!! One quick question about single page applications, is it better to use web sockets instead of AJAX in order to retrieve the data each time?
 
Depends
 
depends on the nature of the data and the regularity of the calls
real time data -> websockets
page content on navigation click -> probably xhr + history alterations
 
kappa
 
all data over websockets is doable. If you already have a REST api, then youcan just use that.
 
@rlemon a user clicks a button to navigate to the "next" page, should I make a call for the contents of the "next" page using Ajax or websockets?
 
2:12 PM
websockets seems like overkill for that
 
haha
why?
I heard someone saying that it consumes less resources
 
@LightFlow he lied
 
On the client, yes. On the server, no.
 
user3119231
Lol there is a guide how to handle dummys.
 
@LightFlow is memory consumption a bottleneck?
 
2:13 PM
I've seen good arguments for everything-over-websockets. I wouldn't call it overkill, but I see traditional request + websockets just for push notification more ocmmonly.
 
if not, stop worrying about it
 
@rlemon yes it is
 
unlikely
 
What are you doing that cause memory consumption to be anywhere near a bottleneck? o.O
 
seems unlikely xhr is the cause of the memory issues, but if we're going to roll with that, refactor the backend to be pure websockets.
 
2:14 PM
@Luggage oh hi there Lu :P
 
...ggage
 
I call you Lu
 
...ggage
 
If you do refactor the backend to be pure websockets, get ready to get limited to 200 users maximum at any given time on a server which can handle atleast 20x more users over HTTP1.1.
 
@Luggage I rewrote everything in my application again and now i'm using web sockets ;)
 
2:16 PM
Where does 200 come from? jsut general resource or some hard limit?
 
However I'm not so sure about the single page app
@AwalGarg Is this true?
 
@AwalGarg Elaborate please?
 
there are sites the have a lot more than 200 users so his statement is somehow about a limit for a naive websocket server, not a more sophisticated setup
i.e. without load balancing, etc.
 
@Luggage "200" is just an example. So if you are handling like 40k connections on your server over HTTP1.1, don't expect more than a few hundred long lived concurrent websocket connections transferring the same amount of data.
 
I have 200 users via websocket and no issues and no load balancing
 
2:19 PM
@Cerbrus ^
 
i see.
 
I will run a test for this one of these days in my server just to be sure
You have scared me :P
 
@rlemon then your server can probably handle much more than 40k HTTP1.1 concurrent connections (which is quite likely).
 
are you saying websockets uses more resource depending how much data you send as opposed to # of concurrent connections?
 
@AwalGarg: One "User" can have multiple http connections over the time he's using the page, while using one and the same socket?
 
2:21 PM
@LightFlow well, how many users and how fast will that grow?
 
so far I have only around 100
 
@Cerbrus browsers limit the maximum number of concurrent connections to a single domain. It is somewhat around 3 or 4 connections, I guess?
 
concurrent?
 
but I don't know what will happen in the future
yep
concurent
concurrent
 
@Luggage not sure about resources, but concurrency is limited.
 
2:22 PM
@AwalGarg Something like that. But then, websockets only use 1 connection, right?
 
and can you get surprise rapid growth or will it go up predictably over time (like if it's used only by employees)?
 
unfortunately i can get a surprise rapid growth, and that's my greatest fear
 
what do you suggest me?
 
@Cerbrus You can do sequential requests limited to a single queue with HTTP as well, what's the point though? We want parallel data transfer.
 
2:24 PM
I dunno, kinda lost my train of thought
 
so, web sockets or not web sockets? I'm confused :P
 
OHh, no one can tell you that, we're just asking some questions to ehlp you consider those points :)
 
@LightFlow Unless you know what you are doing really well, not.
 
always program so you can change your mind, and do load testing when possible to test.
 
2:26 PM
Also, single page app or not?
 
SPA or not shouldn't really make much of a difference
 
I love programming SPAs but if you this is a site for random visitors (peopel that don't use it every day) thenthe laod times might be off-putting
you can't beat non-single-page apps for that.. well
 
You can have SPAs which gracefully degrade to no-SPAs.
 
excepct isomorphic apps
right.
 
I was considering a SPA for having ony one connection per client which does not open-closes everytime he navigates to a new page
 
2:28 PM
yup, that makes sense, and it's how things liek trello work.
though, that might use traditional requests, too..
 
Also, I have done something that seems terribly wrong - in a way :P
 
@LightFlow that's like a battle tested idea, but only done at scale. Github, this page, all of stackexchange pages, and a lot of other growing services do that.
 
@LightFlow did anyone see you kill her?
 
@Luggage hahaha
 
Light flow is how my girlfriend refers to her period when she runs out of tampons
 
2:30 PM
!!mdn hiding bodies
 
stackooverflow is not working properly
also at your side?
 
@Cereal yeah, that's my problem I have run out of tampons :P
 
@bboni looks OK to me.
 
oh yes
sory
 
2:31 PM
@bboni did someone close your question? :P
 
In my web app every new websocket initiates 4 database queries in order to check that the user is the user :P
 
yea, i haven't optimized that out of my app, too, but I would if i have 100 concurrent users and expeced more.
cacheing..
that type of thing will stop you before websockets, which you can jsut throw more hardware at (for a little bit)
 
anyway, if I have 4 new database queries for any new web socket connection that's a whole lot.
 
but less than every http connection
since there are less of them.
 
user3119231
Russian vs Turkey in 1 Gif :D
 
user3119231
2:34 PM
 
is TP-LINK a good brand name for a switch?
 
user3119231
Why not?
 
@Maurize So wait, he points the gun at his abdomen?
 
@rlemon They are if you can't afford anything better
 
I have a TPlink router. it does the job well.
 
2:36 PM
for work
so sky is the limit
 
we're moving offices, so I need to buy like ten of them
so not crazy expensive, but good quality
 
user3119231
@Cereal isnt the point :D
 
But, but
If he pulled the trigger
 
2:37 PM
Ah HAAAA
myForm = FormData {}, plainDFID = "T065"
It's not putting the data into the form !
 
@rlemon I'd go with D-Link DGS-1510 or something like that then
 
user3119231
 
user3119231
how nato reacted :D
 
@OliverSalzburg smartass
@Maurize please start unboxing gifs before they timeout
 
user3119231
@rlemon aye, capitan
 
2:39 PM
which is weird, because it is in the request payload...
------WebKitFormBoundarymTsj6gAJjuU2rUn9
Content-Disposition: form-data; name="datafixId"

T065
------WebKitFormBoundarymTsj6gAJjuU2rUn9
 
@rlemon Oh, you need small 8-Port ones? Then D-Link still. Maybe DGS-1008G. Not a fan of TP-Link. Not a fan of D-Link either, but my own experience with D-Link is better
 
Anyone knows example desktop apps with exotic sexy gui for linux?
 
@OliverSalzburg haha yea these are for the end offices.
we already have three larger switches in the server room
@OliverSalzburg what about linksys
 
Those D-Link 8-Ports are solid. We've been using their models for ages. No issues ever.
 
@AwalGarg xterm with a crazy font?
 
2:41 PM
gui...
 
@rlemon Not much experience, but I would assume they're solid
 
I don't get it. if I'm not putting any data into myForm, how does the data actually get to the next page?!
 
I've been using Linksys routers for quite some time. They're pretty sweet. I guess their switches are nice as well
 
sense, not making.
 
2:44 PM
@BenjaminGruenbaum How can I get in touch when I'm in Haarlem?
 
crl
there are 2 a? ah yes, thought about the NY one
 
I don't know if chromes inspection is showing something wrong? ;/
 
hello i have a z-indexing issue i'm wondering if the z-index is inherited by its parent because setting the child z-index is not making the block appear above
 
crl
do a window.getComputedStyle on parent and child, I'd be interested too by the answer
 
just bought 12 of these
limited to 3 per customer
had to use multiple accounts :/
 
2:50 PM
I wonder what could be the point of that limitation
 
Fucking 12?
 
hmm guise D:
 
I had a crisis debating whether or not to buy elite dangerous last night, and you just bought 12 routers
 
@Cereal No, only buying 12
 
@AwalGarg no clue
 
2:51 PM
Rlemon's made of money
 
seemed odd for me
@Cereal if you read above my work just got a new office building
I'm setting up the network
 
Oh, yeah I wasn't paying attention
I was too distracted by
 
crl
wat
 
///If I do

myForm.append('datafixId', plainDFID);
// the console shows
myForm = FormData {}, plainDFID = "T065"
// Is this actually putting this data into the myForm object?
 
@crl Right? It's a .. bread? simulator
 
2:53 PM
I'd expect myForm = FormData {'datafixId' = 'T065',} ?
 
crl
ah
 
user3119231
@djsmiley2k you need to append data(/files) to the form element
 
user3119231
I already gave you an full example.
 
@Maurize I feel like I'm making progress.
yeah, it was complicated and my head fell off
 
user3119231
@djsmiley2k Good, that you're making progress.
 
2:55 PM
Can you point it to me again, and I promise to read it.
 
user3119231
this will help you a lot!
 
user3119231
and an example
 
formData.append(name, value); <<< is what I thought I was doing
 
user3119231
You understand what you have to do?
 
2:56 PM
formData.append('username', 'Chris');
 
user3119231
the formData is just the object
 
myForm.append('datafixId', plainDFID);
Sorry, is there some difference here I'm missing?
 
user3119231
yes. You can now call $_POST["username"] and $_POST["datafixId"] in php, for example.
 
@rlemon why do you want 12 of those
 
@Maurize ok, that much IS working
 
user3119231
2:57 PM
So everything is okay now?
 
however once I go inside the second ajax call, myForm no longer exists
No, i need access to myForm Object inside the second ajax call.
 
user3119231
@djsmiley2k just insert it into jsfiddle - give us link and let us see.
 
MY gosh
 
how do you post images here? :P
 
I am using weebly to make a website :-x
 
user3119231
2:58 PM
Like I gave you a fully functional example hours ago... pardon
 
@Maurize I did, hours ago XD
ok let me do up a new fiddle
 
@Neoares so computers can connect to the interwebz
@LightFlow just post the url on its own and make sure it ends with an image extension
 
@rlemon hoy many computers do you have? :o
 
@Neoares an office building
 
@rlemon ok thanks ;)
 

« first day (1867 days earlier)      last day (3081 days later) »