« first day (1498 days earlier)      last day (3441 days later) » 

user2985029
12:04 AM
@StacyKebler hmm?
 
Could anyone give me some CC on my new JS form completion calculator? I tried to imitate LinkedIn's. jsfiddle.net/Godisgood/Ldzx82xm
 
user2985029
@Godisgood what does CC mean?
 
user2985029
@Godisgood also what does linkedins look like?
 
@xxx Constructive Critisism.
Basically what I have.
 
user2985029
that thing in the bottom right of jsfiddle? is it meant to look like a calculator?
 
12:08 AM
No, but start filling out text in the textboxes, and watch what happens.
 
user2985029
i see five horizonatal lines and a circle beneath the fitfh line
 
The horizontal lines are input boxes
 
user2985029
groovy
 
user2985029
that
 
user2985029
is nice
 
12:10 AM
I know the styling isn't great, but what do you think of the completion calculator?
 
user2985029
i am only just starting to realise what you are saying
 
@xxx, My final result is to have a button that fills up as the form is filled out, and when it's full, change it to a submit button.
 
I want to write Erlang now
 
12:33 AM
I'll write some Erlang
 
user2985029
@Godisgood that's nice
 
That talk has a really high Interesting:Useless ratio.
 
12:53 AM
Why is it useless, @Retsam?
 
ngrok.com tunnel your localhost
 
1:18 AM
alo
maybe animation should update after number entered so user doesnt have to click outside of input area before seeing effect
 
O P
hello. you are all experts
 
@OP Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
O P
I hope to one day be as alpha as you
and not rely on frameworks for my tasks
raw javascript 10/10
did you become who you are today from books or online instruction?
pls respond
 
little of column a, little of column b, lots of column c which is experimentation and asking questions
 
yes
YES
vanilla js
love that stuff
 
1:23 AM
10: write code
20: GOTO 10
 
@OP That's ignorant
 
O P
How so?
 
You need to make the right decisions to solve a problem
Not choosing a framework is often (sometimes?) wrong
Or rather, ignoring frameworks
 
O P
Relying on Javascript frameworks does not improve my understanding of the underlying language.
 
frameworks don't solve problems you can't identify
 
O P
1:26 AM
$('#foo'); // wow magical, but what does it mean
document.getElementById('food'); // ohhh... today I learned
 
well, it's closer to document.querySelectorAll('#foo')
 
O P
I cannot learn only the syntax of a framework, I must learn the father before it
 
Doesn't mean you should reject frameworks completely
 
and jQuery isn't a framework
 
And you can't learn everything anyway
 
1:27 AM
it's an abstraction library #thatGuy
 
O P
Today I learned. See, I must speak with you experts more often
 
And I'll go back to my Erlang book
 
O P
I am off for now, but I shall return, hopefully to walk among you legends.
 
I'm back with question i tried to ask last night
I need to get a lot of images on a page.
 
document.images
 
1:29 AM
?
let me ask better question
I need to display 150 low res images, all inside of viewport
I can load them after main page loads
but what is the best way to load that many images?
 
load them sequentially
are they all the same size?
dimension wise
 
yes
my main problem i'm guessing will be the 150 requests.
I was reading that server can handle 2-3 requests at a time.
does this sound correct?
maybe i'm in wrong room also- for this question?
 
function preload(list, imageCallback, callback) {
    var at, len;
    at = len = list.length;
    for (var i = 0; i < len; i++) {
        var img = new Image();
        img.onload = function() {
            if (imageCallback) {
                imageCallback.call(img, img, len - at, len);
            }
            if (--at === 0) {
                callback(list);
            }
        }
        img.src = 'src' in list[i] ? list[i].src : list[i];
        list[i] = img;
    }
    return list;
}

var list = ['picture1.jpg','picture2.jpg',  ... ];
or use xhr to pull the images if you don't want a spinner in the browser
 
where i am going with this is that i'm trying to find a way to reduce time it takes to request all of these images. I had read suggestion about spreading images across multiple servers for handling high number of requests
does this sound like something that should work?
 
1:53 AM
@rancho Sounds like a server-side concern, not a client-side one.
 
yes
 
This is probably the wrong room for that, then; though honestly; I wouldn't go down the path of doing something fancy with the service architecture until you have data showing that you need to.
That sounds like premature optimization.
 
when you say "data showing" do you mean other data on page such as text and layout
by layoutI mean design elements such as divs and tables
 
@rancho No I mean "concrete evidence of your need for more sophisticated service architecture".
 
ahhhh
yes. site has already gone through live testing
loading of images does take a little time.
 
2:09 AM
I mean, you're loading 150 images, of course it's going to take time. That doesn't necessarily mean that the service architecture is the limiting factor.
 
looking up "Service Architecture". is this the same as "Service-oriented architecture"
and to restate my main question - i was reading that your basic server - whatever that is - processes about 2-3 requests at a time. So 150 requests are bundled into 75+ requests.
So spreading requests across multiple servers should speed up entire process?
 
@rancho Yes
 
Do you have any idea about how many servers i should start with for something like this.
I was thinking of 3
 
user2985029
is there a way to get kendo ui asp.net mvc grid toolbar buttons to display icons without using to javascript? somethning like .Edit().something
 
user2985029
2:24 AM
i like javascript but i want the compiler to check things so i am trying to use the server side controls
 
Retsam?
 
@rancho If you want to do it right; gather data. Try it with 2 servers, see how much performance gain you get, try it with 3, etc
 
Not sure if you have used chrome dev tools, but this is what i have been using to analyze site performance.
 
Again, I'm not even sure it's the service that's going to be your limiting factor. Your performance likely won't depend on how fast the service can handle requests but on how fast your client can download those images.
If it's your client that's the limiting factor, adding more servers won't improve performance any.
 
2:46 AM
that part of the equation I have no control over. I just want to have as many bridges in place as I can to ensure a good experience.
I have also looked into base 64 encoded images, as well as stitching images into a single image with transparent background.
 
3:43 AM
@SomeKittens I don't day trade. But I do gamble. Sold all my TGT (been holding year+) and bought some new toys today.
 
anyone interested in fast way to serve up 100+ images i found this.
 
3:57 AM
Erlang is fascinating
 
@SimonSarris good attitude. I just stuff it all in mutual funds
 
 
1 hour later…
5:04 AM
Hey, guys, whenever you have time, take a look at this thread: stackoverflow.com/questions/26987238/npm-isntall-command
I am probably missing something - cannot get the reason for closing the question and the downvotes.
 
5:32 AM
hey
 
@Bhargav Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@CapricaSix thanks
 
5:46 AM
Reposting on a new line so that it would be nicely formatted:
0
Q: "npm isntall" command

alecxeWhen you type an illegal npm command, you are getting a user-friendly error message stating which commands are legal to use: $ npm illegal Usage: npm <command> where <command> is one of: add-user, adduser, apihelp, author, bin, bugs, c, cache, completion, config, ddp, dedupe, deprecate...

 
Potential answers are more anecdotal than objective?
 
hey, @copy, the accepted answer is based on the fact - github issue..so it doesn't fit the opinion-based reason..
 
It's a similar to asking why Python was called Python, which isn't a fit for SO either
 
yeah, that's because of the Monty :)
I don't know, I tried to make the answer better and specific, with examples..30 times before the questions were met in a more respectful way
I am just trying to say that it's not my first time asking and I really feel like the question is legitimate - it is very specific, it is about programming, it has examples, the answer is based on the fact (it is answered directly and specifically)
 
Move to programmers.se?
I don't know the exact rules either
 
5:55 AM
hmm, interesting idea, let me check their rules
 
It is a legitimate question
 
thanks
not really sure, I haven't contributed to programmers and not confident enough to say if it fits..
I guess the difference can be subtle - where to ask, on so or programmers
 
 
2 hours later…
8:23 AM
i sat as my eyes started to hurt, the browser i have loved since forever
takes so long to start -_- --- so i just started IE and downloaded firefux
and chrome still hasn't spin up
@SomeGuy they are here :D
 
They?
 
jbl headphones
okay am worried
the boxi s damaged
 
Uh oh
 
most likely
they suffered damage in post :-/
okay now time of test
 
Should be fine
 
8:33 AM
they kind off sound loud on one ear
 
The wire may have been damaged
 
or because my other headphone
had that side almost dead
these ones are sounding weird
bass is great.
treble sounds a bit off.
they have a single connector but small cable
so kinda turn off forme
 
9:16 AM
4 / 5 stars
@mikedidthis
 
Sup?
 
\o/
The map makes sense!
 
/o/
yeap
 
Sweet!
 
9:18 AM
social i will just add one line on bottom
and like will become an overlay button on bottom 32px of profile
 
I want pizza.
 
haha
power surge fried my motherboard today morning.... kinda horrible morning
 
I still want pizza.
But sorry to hear about that.
 
@mikedidthis we will get u one, when cookaroo launches in your city :D
or if u can come to bangalore --
 
I will hold you to that!
 
9:33 AM
I've heard that when you have an element on top of a canvas and you make it change (for example the text in a p, maybe displaying the score of a game) even if the canvas just represents an image, it has to redraw itself because brower reasons. Couldn't find this on google, but saw that drawing my text on canvas instead of changing the content on top of it is definitely faster, and Mmiszy seemed to have confirmed
Does the same happen with the css background: -webkit-canvas('name')?
if you change the content of the element with that background, will the browser have to redraw the canvas?
@rlemon you seem to know more than most of us about -webkit-canvas. Google couldn't help again ^
 
@towc You're talking about browser reflows and repaints
 
@SomeGuy yeah, that
 
So yeah, that happens whenever anything changes
It doesn't matter if you use background or z-index or whatever
If something above or below something else changes, both things need to be redrawn
You don't often need to think about this, because your canvas is probably causing repaints at 60 or 30 FPS anyway
 
@SomeGuy but sometimes it can make a difference from 60fps to 30fps
 
But when you've got bad performance, this is one of the things you end up looking at
 
9:42 AM
which is not a minor deal
ok...
 
Right. It depends on your actual code
 
9:58 AM
Some Guy, thanks... for making me not choose the skull-crushers :D
i am happy with these, except for the cord. But airplay helps :-)
 
@darkyen00 Haha sure
@SterlingArcher Hey Duchess, how's it going?
 
@SomeGuy reminds me. I lost an hour looking at archer parody accounts on twitter last night, so thanks for that.
 
At least you aren't alone
I did the exact same thing
 
10:14 AM
Did you ever watch Frisky Dingo?
 
Nope
I read about it on TVTropes, though
I'll start it after my sem exams
 
\o/
 
I've got Arrested Development on the list too
Watched 3 or so episodes of that so far
 
I struggled with that, but I think that depends on my mood.
 
I've tried it before, and it wasn't particularly great, so I stopped
But I'm going to give it a more fair shot
 
10:42 AM
Today is the room talk :)
Everyone come
Today (in 8 hours) is the room talk
 
Oh, yeah, I'd forgotten about that
Thanks
 
that's 7PM UTC ?
 
10:57 AM
Yep
 
11:07 AM
It's in the room events
Assuming he's ok with it @SomeKittens is hosting
 
room talk?
 
If you have any last minute topics let us know
 
it just occured to me that I've never read the rules...
topic: making sure people read rules
(maybe a simple test where cap asks some questions to users in a dedicated room, like very basic, and if they pass they can be unmuted on this chat?)
 
11:19 AM
@BenjaminGruenbaum in this room
or hangouts ?
@SecondRikudo just use sse, like games do ?
 
@darkyen00 SSE?
 
Server Sent Events ?
I assume you are sending a humongous task to php right ?
which happens in Php ?
 
Oh, I know how to implement it more or less
But that question is quite popular, and I want better answers on it.
All of the answers there are from 2011
Things have changes a lot since then
 
I wouldn't use websockets with php
 
@darkyen00 Answer it then ;)
 
11:22 AM
@SecondRikudo okay then --- i am writing it on how i would do it.
 
It would push you over the 2k limit
 
could be good or bad.
 
@SecondRikudo I wouldn't do it with WS
I'd just return partial stuff in the http response
 
@BenjaminGruenbaum And how would you keep updating?
 
@BenjaminGruenbaum I'd use sse
@SecondRikudo polling probably
 
11:23 AM
@SecondRikudo write more stuff to the response
 
@BenjaminGruenbaum So keep the response open
 
^ Exactly
Lemme write it :D
 
And how would you handle it with JS on the client side?
 
// am no good with php though
 
Yes, it's open anyway since you're still writing to it.
 
11:24 AM
Anyway, answer of GTFO please :P
 
@SecondRikudo XHR has progress events since IE 5.5, you know that onreadystatechange thing that you always use 4 with? You can also use 3
I think you even have onprogress
 
am writing.
 
2 mins ago, by Second Rikudo
Anyway, answer of GTFO please :P
@darkyen00 \o/
 
SSE is also overkill imo @darkyen00 and doesn't run on IE.
 
@BenjaminGruenbaum See the solution :-)
when am done, ps you can always fall back to polling if the task is long enough
 
11:27 AM
SSE doesn't run on Android
Or any other mobile browser, it's not a viable solution.
The solution is simple:
 
did they just insult cheese D:
 
@BenjaminGruenbaum I really don't need an answer here :P
 
 
I finished that project 3 years ago
 
var xhr = new XMLHttpRequest;
xhr.onload = callback;
xhr.onerror = errback;
xhr.onprogress = progress; // <- use this for progress tracking of long task
xhr.open("GET", yoursite);
xhr.send();
All available since IE9, all works, all dead simple.
 
11:28 AM
But the question is popular, and I'd wish it had a more uptodate answer than the existing ones, that's it.
So if you want to answer it, answer it :P
 
0
A: Show progress for PHP long script

Ramon La PietraIt's an old question but I had a similar need. I wanted to run a script with the php system() cmd and show the output. I've done it without polling. For Second Rikudoit case should be somthing like this: JAVASCRIPT $('#formatRaid').click(function(event){ $.ajax({ xhr: ...

This guy already has it correctly, the only problem with what he has is jQuery
 
@BenjaminGruenbaum He was seen yesterday so he's still around. He might fix it.
 
I left a comment
 
@BenjaminGruenbaum So have I.
 
There is another good solution though - don't use PHP.
 
11:35 AM
@BenjaminGruenbaum Indeed.
 
PHP is built for an immutable one-chunk request/response cycle.
 
I only worked with PHP back then.
 
So if you're doing something that is not an immutable one-chunk request/resposne cycle - don't use the SAPI, or don't use PHP.
 
@BenjaminGruenbaum Are we doing the discussion on Hangouts or in a room we create here?
 
It was a big-ass project and I didn't have the ability to transfer it to a more suitable language.
 
11:36 AM
@SomeGuy I still don't know, definitely something we can read later though so probably not hangouts,
I'm thinking either new room, or GH repo
 
Yeah, that's what I was thinking
 
@BenjaminGruenbaum You can do a hangout with a recording
 
I want it to be accessible.
 
I think we'll need something a bit more realtime
 
@BenjaminGruenbaum So here in chat is best, I believe.
 
11:37 AM
@SomeGuy Why? If it's realtime people think less before they talk and they're not as aware many people will read what they say.
 
There's also gitter, which has a nice integration with GH if needed.
 
@BenjaminGruenbaum That's a good point, but if it isn't chat, it gets harder to follow and actually discuss
 
The problem is we have like 9 topics to discuss. Some people may be disinterested in them.
If we put it on GH, discussion can continue in the future, and it works out for our bot.
 
Github might be better, though. Everyone can chime in with what they think about a topic, and we can agree on them
 
How will a discussion over GH work?
 
11:39 AM
Gigantic comment threads
 
Oh my.
 
@BenjaminGruenbaum have a look at gitter
 
I assume we'd make a gist for each topic and discuss it in the comments
 
2 mins ago, by Second Rikudo
There's also gitter, which has a nice integration with GH if needed.
 
@SomeGuy not a gist, an issue.
@Zirak any better ideas?
 
11:40 AM
@BenjaminGruenbaum I don't like repeating myself more than twice, you know;.
 
@BenjaminGruenbaum An issue on which repo?
Caprica's?
 
Things like this actually favour tree-like threading (as you see on HN or reddit or whatever), which for some inane reason no chat software I know of supports.
 
@SomeGuy new one
 
Discourse has semi-ok context management
 
Could actually do it on Reddit
 
11:42 AM
@Zirak C++ room uses discourse and they hate it
I... don't have reddit :P
 
Haha, it takes 2 mins to sign up
 
I don't like it too much as well, but it's a viable option
 
...
I hate you all :P
 
I think doing it here might be best
@SecondRikudo :D
@SecondRikudo I checked it out. Meh :p
 
@SecondRikudo yes, gitter is an option pat on the head
 
11:43 AM
@Zirak bites
 
@BenjaminGruenbaum hah, awesome
The comments are sad, though
 
11:59 AM
Good read
@BenjaminGruenbaum Are you on your way to become a hacker?
 
plz halp i lost my gmail password
 
It's just a simple and cool idea (the zip bomb)
 
how h4x my ex facebook?
 
Oh, yeah, I know. I was wondering how you came across it
 
12:01 PM
sum ppl sayin my frend poopd on a slide how i pwn dem?
5
 
@Zirak your ex died 5 years ago at the ripe age of 91
 
@BenjaminGruenbaum Lazy always not bad sometimes good oops
!!learn jituTheWise <msg>http://chat.stackoverflow.com/transcript/17?m=20055954#20055954
 
@Zirak Command jituthewise learned
 
12:20 PM
I'll bite
!!jituTheWise
 
yesterday, by jitu
Lazy always not bad sometimes good oops
 
not a single upvote
:-( is that answer that bad
not to get a single upvote from a biased room :x
 
@darkyen00 you know, we actually read answers people link to
I didn't even get halfway through your answer.
@darkyen00 why are you using setAttribute to set attributes on a progress bar?
(Does HTML have a progress bar element?)
Also, he clearly stated his problem is not upload events, but rather a script taking a long time to execute on the server, not to mention that PHP doesn't start processing the result until it's all there on the server, there is no 'partial parsing'
(Well, with the SAPI)
 
@BenjaminGruenbaum Yes
 
12:26 PM
Oh wow, I totally forgot about that old element.
Oh it's a new one, they re-added it. Cool ^^
 
It used to exist earlier too?
 
Oh and there's a meter tag too, how cool is that
@SomeGuy I remember a proprietary netscape only progress tag or something like that
 
Ah
 
Well, TIL :)
 
I'm stupid so you all suffer. Chat users have an is_owner property, and a separate is_mod. I want to combine the two. Gief name.
 
12:29 PM
@darkyen00 have an upvote, I think you should structure your answer better though: start with explaining the problem, then the conceptual shift required to understand how a solution would look, then how it's possible conceptually to solve it, then show the different solutions and explain why each one is better.
 
isPrivileged?
 
iz_cool
 
lol, dat name.
 
oh yeah, I forgot to turn their properties from snake_case to camelCase. Will fix.
 
isOwnerOrMod :P
 
12:31 PM
Hahaha
 
Not too long, you know what it means.
 
Too obvious
And too explains what it does
 
hasSuperPowers
 
isSlidepooperLike
isElitistAsshole ?
 
meh I'll go with isPrivileged and complain about it a couple of years down the road
 
12:35 PM
isTool?
didNotHitHer?
 
haiDoggy
 
ha, snake case
 
I'm going to do the monthly challenge in an hour or two, wish me luck
Going to do it in a very straightforward way I think
 
@Zirak Hahahaha
@BenjaminGruenbaum Using RxJS?
 
wonders if anyone used Brainfuck with KO before
You should do it too
@SomeGuy RxJS observables are kind of orthogonal to KO observables, but maybe I'll try
 
12:42 PM
Hahaha
Best of luck!
 
Do one too
Should only take you an hour
 
Yeah, I might do it today
Let's see
 
It's very frustrating that KO computeds don't chain well or are able to return promises.
 
12:58 PM
2
A: Show progress for PHP long script

darkyen00If your task is to upload a huge data-set or process it on the server, while updating progress to the server you should consider going with some sort of jobs architechture, where you initiate the job and do it with some other script running on the server (for example scaling / processing images e...

hows that now ?
 
I wouldn't start with "if your task is"
 
Guys, I am starting to learn javascript, I want to work on something in parallel as only reading wont benefit you in long run, you have to implement the concepts you learn. So do you have any suggestions where to start or any good open source project for beginners or any good project ideas to start with.
 
@OmsaiJadhav Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
1:13 PM
I have a version of the monthly challenge up, it works but it's ugly, going to work on it now.
@OmsaiJadhav we're having monthly challenges, this month's is pretty basic - my implementation is 45 lines of code
 
1:43 PM
wth arrow functions in chrome don't have lexical this yet.
But have shipped.
wait, maybe I just have experimental JS turned on
whoops, my bad.
 

« first day (1498 days earlier)      last day (3441 days later) »