« first day (1868 days earlier)      last day (3074 days later) » 

crl
!!tr fr take on me
 
@Neil you kidding me watch the entire star trek !
1 shot from an insanely inferior vessel with lasers, Enterprise : main shield down, reactor blown, warp plasma leak
 
just like real life.
phone drops from 4 feet. fine
phone drops from 4 inches. smashed
 
crl
4:18 PM
depends on which side it lands, and on what
 
Stargate was even worse
 
crl
!!s/ate/oat/
 
@crl Stargoat was even worse (source)
 
If you change the class of an element with javascript, is the style of the element updated according to what CSS files specify?
 
crl
4:23 PM
did you try?
 
I'm doing it right now. But I don't understand if there is an error in the CSS code or if it's normal that the style is not updated
 
crl
> Software is getting slower faster than hardware is getting faster - Reiser's law
 
dayid.org/comp/tm.html this is down :( this was a great reference
google webcache has it, but it might soon get removed. Is there anyway to port it to archive.is or web.archive.org
 
@AwalGarg works fine for me
 
4:29 PM
I have a JS code for pressing "ESC" button. Now I want to know, in the all browsers "ESC" doesn't do anything? it is useless?
here is my code:
$( document ).on( 'keydown', function ( e ) {

    switch (e.keyCode) {
        case 27: // ESC

            // do stuff
 
@AwalGarg here you go jsfiddle.net/rlemon/fg3z0kdy
 
@Shafizadeh ESC is not useless.
 
@MadaraUchiha in what browser it is useful?
what is its job?
 
UX 101: don't fuck with my inputs. Let me do what I wanna do.
 
@Shafizadeh close and cancel
For example, ESC closes an alert() as if you clicked the [X] button
 
4:30 PM
@Shafizadeh in the chat here, hit upload, then hit ESC
it is natural
 
@rlemon wait, it just got up. I swear isup said that website is down like a minute ago :/
 
@MadaraUchiha oh really? I tested it in chrome, fire fox, opera and IE..
 
i just typed something here and pressed ESC, the textarea emptied
 
blocking ESC is like blocking right click
if you do it, you are a terrible person
 
@MadaraUchiha ah I see
 
4:31 PM
^
 
@rlemon you are right
 
@Shafizadeh Don't be afraid to use it
For example, it's considered good practice to allow ESC for closing lightboxes and modal windows
But also, don't block it :)
 
ok :-)
 
@Shafizadeh why do you want to block it?
 
If what you are doing with the "Escape" key is semantically a valid action for the "Escape" key, then it is ok.
 
4:32 PM
but which button is your offer as ESC's alternative ?
 
@saaggy18 piss off his users :P
 
@AwalGarg Then why block it?
 
@MadaraUchiha That's the moral: don't.
 
then block esc and right click button both, if the intention is to piss users off
 
also
play background music
 
4:33 PM
@saaggy18 I have a list on my website and I want when user presses ESC, that list show up
 
users love background music
 
@rlemon :-) actually I want to give some easy ways to my uers
 
ever goto a site which controls your inputs? be it keyboard, mouse, scroll, whatever..
no one likes it
it is considered bad User Experience
 
It is unfortunate that there isn't a way to fire back the default action of an event after calling Event..preventDefault. Contextual overrides of certain hotkeys is pretty good, otherwise.
 
@Shafizadeh The idea is to not violate the Principle of Least Surprise.
 
4:35 PM
I don't know, maybe
 
Without telling anyone, anything
Would you say that ESC is the first key people would think to press to open a list?
 
ya. people pay for internet already, then you are going to control them.. it's a bad experience.
 
users will get it ..!
 
and in fact, choose any other key.
 
before last elections, we rarely saw a mod talking here
 
4:35 PM
@AwalGarg well i was stupid
 
it was very rare to see a blue name
 
@MadaraUchiha no, but they will use to it. I have a meta.mywebsite.com :-) and I will explain him how to work with my website
 
@Abhishrek I know right? :D
 
read hangouts
 
@Shafizadeh That's not a very good UX approach
 
4:36 PM
ITT: ask for advice, everyone tells you it is wrong, you argue with them.
 
@Neoares There are only two mods active in chat
Me and Jon Clements
 
And Jon isn't really a JS dev
 
@MadaraUchiha jon what? xDDD
 
Jon hangouts in the Python chat.
Also Gordon stepped down :((
 
4:37 PM
@AwalGarg Yes, no free time.
 
ok well, let me ask my question other way. "Tab" button is useful in browsers?
 
@Shafizadeh depends
 
yes
 
I use tab all the time
 
4:38 PM
monkeys dont
 
it changes context between items
 
@Abhishrek on what?
@djsmiley2k where?
 
.... did you just refer to your users as monkeys?
 
your use base
 
@MadaraUchiha lol
 
4:39 PM
@Shafizadeh well in this chat for example
 
@djsmiley2k Do you refer them as anything else?
 
@djsmiley2k :)
 
tab tab fixed-font!
 
@rlemon I love these XD
 
@Shafizadeh yes, tab moves focus
 
4:39 PM
@MadaraUchiha People.
 
if you block tab you are a terrible person
 
also ctrl + tab changes browser tab
 
@djsmiley2k I don't see your point.
 
@rlemon well, this tool is really useless in my opinion !
 
4:39 PM
@Shafizadeh /me can't imagine browsing without tab
 
@Abhishrek yes it is
 
but do block tab if you are making an code editor
 
@Shafizadeh good luck with your future career path
:P
 
@AwalGarg really?! we have a big different opinion about it ..!
 
@Shafizadeh Your opinion is irrelevant here.
 
4:40 PM
@rlemon If he's working for Apple he'll be fine
 
TAB, ESC, ENTER, Space, Arrow keys
 
@djsmiley2k oi apple devs/engineers are probably few of the smartest people on planet
 
@MadaraUchiha he's Shafizadeh, the grey
 
These are all keys that were there for decades
 
ok ok ! just please you tell me a useless button on browsers ?
 
4:40 PM
seriously. the only thing I can think to normalize in the browser is possibly making backspace do or not do navigation
 
@Abhishrek Apple, as a company, tends to tell users they are wrong. That's all.
 
@Shafizadeh pause/break
!!afk food
 
I don't use my insert key
like ever it's annoying
 
@Shafizadeh Go to the main Stack Overflow homepage, and press ?
 
U can have that one.
 
4:41 PM
@rlemon you are so wise
 
That is how you should do keyboard shortcuts ^
 
@rlemon my laptop's keyboard doesn't those keys
 
you seem to think the world cares about your problems :P you code for your audience, not you.
(unless you are the audience)
 
@MadaraUchiha does nothing for me :/
 
!!afk food
 
4:42 PM
@rlemon That didn't make much sense. Use the !!/help command to learn more.
 
@djsmiley2k press tab a few times
or use arrow keys
 
@MadaraUchiha SO main page has not any shortcuts
 
@MadaraUchiha not really, no. The absolute correct way to enable keyboard navigation is to use the accesskey attribute on anchor elements.
 
I can hear the facepalm all the way here
@Shafizadeh Are you sure?
@djsmiley2k Does for me.
 
4:43 PM
@MadaraUchiha I tested all buttons ..
 
You need to enable keyboard shortcuts from profile settings.
 
? is definately doing nout here
Ah, that'll likely be why
 
@AwalGarg ah ok, I will do that
tnx
 
@Shafizadeh clearly, not all of them.
 
4:45 PM
@AwalGarg Huh, they changed it
 
I am so tired, gah
 
It used to be enabled by default
I was mistaken then, apologies
 
@MadaraUchiha oh ..! look, I want to create something exactly like this ..!
 
-_-
No
 
@AwalGarg Why not?
 
4:46 PM
Because it is not semantically valid. Use what the semantics give you, and don't force JS on everyone.
The accesskey attribute is made exactly for this
 
Very good, I love Stackoverflow. It is perfect! like my website :P
Well, "F1" is useless, right?
 
...no
 
well WTF !
 
crl
F1 is a pretty useless polluting thing yes
 
See ^^ it's subjective
 
4:55 PM
@crl or maybe it is a sarcasm
 
Am I losing my shit? Can't work out what I'm doing wrong
seems like I must be making such a school boy error
 
You're using that variable elsewhere
It's not defined yet
 
even when I try to reference it in the console it's undefined..
 
@Shafizadeh what exactly was your issue?
 
I have not a issue. I want to devote a button for showing a hidden-div in my website
which button ?
now it is "ESC"
 
5:05 PM
I would use tilde-key: "~"
 
@Cereal Also, still get the issue when it's inside a doc.ready callback
 
it's right below esc and in games is usually used to call up the console
 
@tereško it is under ESC, right?
 
yes
 
@tereško I got it. really thanks
just one thing, are you sure ~ is useless in all browsers?
 
5:06 PM
it also has the benefit of "nobody really uses it"
 
yes yes it has
 
Not all keyboards have that key, so have fun with it :P
 
@AwalGarg really?
your keyboard has not it?
 
@Shafizadeh what exactly will you use that key for?
only for testing while you are making something or is it intended for visitors to use?
 
showing a hide <div>, it is list of all my website parts
@tereško for visitors
 
5:08 PM
hmm ... then the whole idea is pretty bad
 
no it is not bad, because SO has some shortcuts
press "s" button
 
The principle of least astonishment (POLA), sometimes also referred to as Principle of Least Surprise, applies to user interface and software design, from the ergonomics standpoint. It is alternatively referred to as the law or rule of least astonishment, or of least surprise. "If a necessary feature has a high astonishment factor, it may be necessary to redesign the feature." In general engineering design contexts, the principle may be taken to mean that a component of a system should behave in a manner consistent with how users of that component are likely to expect it to behave. == For...
 
it will be focused on search input
 
AFAIK, stackoverflow has shorcuts only for "textarea" flields, which is more like a type of WYSIWYG
 
@tereško I have a slogan that says: professional users just use keyboard (not mous)
 
5:11 PM
no, not really
 
anyway I wrote almost 20 lines of code for doing that, so I can not remove them :(
 
LOL
this is better than netflix
 
besides, such shortcuts are useful for people who have used some application for long time
they are referred to as "power users"
 
ok so, your offer is I remove this property?
 
a "magic key combo" should not be something that first-time users are forced to use
 
5:13 PM
seems correct
 
are we skipping by the "I already wrote 20 LoC so I can't delete it" ??
 
@Shafizadeh my recommendation is to leave the functionality, but leave "mouse control" as the primary form of navigation
2 mins ago, by Shafizadeh
anyway I wrote almost 20 lines of code for doing that, so I can not remove them :(
 
@Billy well if it's in a doc.ready callback, it's not available to anything else
 
@tereško ok tnx
@rlemon :-)
 
yeah ... 20 lines take about 2 minutes to write
 
5:15 PM
but these lines aren't just normal lines
 
20 lines js is a long-life-time for me
 
if I can delete 20 LoC, I am usually happy about it
 
@Shafizadeh I know for a fact that the Italian keyboard layout doesn't have it.
 
they are specialized highly aged antique lines.
 
@rlemon yes it is a good point ! I like to abbreviate my website's codes
 
5:16 PM
hmmm the keyboard in front of me doesn't actually show the tide D:
 
@djsmiley2k I am not sure how to break this to you, but in past few years we have moved away from "stone-tablet and chisels" approach
 
@tereško he's using punch cards
punching them by hand
 
:D
I Have no arms
So I have a nail on my forehead
I use that to punch the holes
 
@djsmiley2k now you just need a hammer
 
@Cereal No, the variable declaration is inside a script tag in the <head> - I'm trying to console.log inside a doc.ready and I still don't get it - plus it's undefined when I try to get it in the console, too..
 
5:18 PM
@AwalGarg Oh I got one, the php hammer.
btw, when does Astonishment become 'Oh, that's coooool!'?
 
@Billy that is weird indeed. Can you go to the debugger's scripts panel, open the "Event Listener Breakpoints" drawer on the right, check "Script First Statement", and reload with devtools open?
 
ho ho ho my functions owrk, this is awesome
Just now I need to know how to do this file upload, it kinda confuses me
The user selects a file, and THEN I show the upload button
 
i.stack.imgur.com/iwQT2.jpg pretty gnome is pretty
 
WG-
Question, can I also ask here a question for which I actually do know the answer but I do am not able to implement it :$?
 
@WG- 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.
 
5:30 PM
 
@AwalGarg I half expected a sexy 'gnome'.
 
"pretty"
 
yes?
 
WG-
I hope someone is good with d3js. I have a small problem with my plot. The data continuous outside of his domain. So it needs to be clipped. There are multiple answers to be found; stackoverflow.com/questions/28723551/… and stackoverflow.com/questions/24490261/…;
but I do not seem to get the implementation in my code correct. Jsfiddle; jsfiddle.net/n3Lndkum/11. If anyone can help I am gratefull.
 
simple and nice
@Zirak @KendallFrey
(not mine)
 
5:40 PM
@AwalGarg Doesn't seem to be executing my script at all......
 
Taking off type="text/javascript" fixed it..... ?!? @AwalGarg @Cereal
 
@rlemon @FlorianMargaine happy rebecca.blackfriday to you guys as well!
 
@Loktar @SterlingArcher blabbermouth.net/news/…
lucky bastards
 
@Billy indeed, that's your issue
@Billy you must have had some special characters somewhere in between
 
5:44 PM
Yeah, but wtf? Why? I thought that the type attribute was mandatory on a script tag?
 
@Billy no, it is not mandatory
@Billy manually type out the entire script tag definition replacing the original one (not the contents, only the starting tag def)
 
I did originally :p
 
hmm, tmk no browser extension can cause this behavior either
@Billy ... you wrote "javscript" which is a typo :D
 
 
Woah
There's a blast from the past
 
5:53 PM
I should have caught that at first sight, my eyes are weakening :P
 
Same here... 6pm
I'm going home
Thanks, dude :)
 
#truth
 
ew
 
is that made out of luminite? nooooo
 

« first day (1868 days earlier)      last day (3074 days later) »