« first day (1687 days earlier)      last day (3255 days later) » 

my new dom module returns spliced nodelists so i can do $$.cl('goof').forEach(...) life is so much better.
I think I might be using this one more than once.
also, I am trying to bend spoons but it is not happening :(
 
that is because there is no spoon
 
1:17 PM
Is there any reasoning to new HTMLFormElement not returning a new HTMLFormElement but throwing a useless stupid mysterious error saying HTMLFormElement is an invalid constructor?
 
because it isn't
 
but why?
let x = document.createElement('form');
x instanceOf HTMLFormElement // true
 
it's an interface ...
 
HTMLFormElement is an interface
 
if you want to get it's implementing object: form
 
1:23 PM
@Zirak so... x.__proto__ returns an object named HTMLFormElement which is actually not HTMLFormElement but has all the methods of HTMLFormElement which is cool, and typeof HTMLFormElement is function. So why can't they make HTMLFormElement act as a constructor tis the question :/
 
then it's not an interface anymore ?
 
@AwalGarg It really is HTMLFormElement, and yes, HTMLFormElement is a function because js doesn't have a notion of interfaces and they expressed inheritance through function prototypes (so you can change HTMLFormElement.prototype)
But it's an interface; exposing it to js is something the engine makers chose to do AFAICT, the spec doesn't mandate it. You're talking to an abstract concept, not really a function.
 
@Zirak so that error is intentional or a result of it actually not being a valid constructor? (How can a function not be a valid constructor?)
 
Both
 
@AwalGarg Functions defined in the implementation don't need to implement [[Construct]]
 
1:30 PM
@Qantas94Heavy but all host objects do, why should the DOM API not?
 
Do you know what an interface is?
 
the last word of the expansion of the term API
 
Technically speaking, they do implement [[Construct]] but it's defined to throw a TypeError no matter what AFAIK
 
okay, I'll conceded that it's an "abstract class"
Or whatever the classical people want to call it
 
Ye Old "abstract class"
 
1:34 PM
@Zirak so it is not really an interface but an interface providing proto methods?
(my definition of abstract classes comes from what PHP calls abstract classes)
 
Call it whatever you want. The point is that it's something defining behaviour, not something which creates objects.
 
Maybe you can read the mdn doc to see what it does ?
 
It's really just an object
 
Why should it be a function and not just an object?
 
Because that's how shit's implemented in js
 
1:37 PM
(no one let's me extend HTMLFormElement.prototype anyways...)
 
You do new Worker
To be really honest it doesn't matter
The real answer is "because it's the way it is". The dichotomy between behaviour-specifying objects and object-creators is pretty much gone.
 
ok.
 
some of these starred links ... Black Friday
 
getters are awesome
 
1:52 PM
are they not common ?
 
hi guys.
0
Q: Not taking to Code behind file in visual studio

HarishI have a little problem in my project when I'm trying to double click any control in visual studio its not taking to code behind file rather its taking me to mark up code. how I can fix it, please suggest something. <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title

what to do now?
 
When I do git add . I add all the files to the staging index to commit them. Now, why do I have to commit after having them staged? In my mind, there should be staging and then pushing to remote. ( When I say committing, I don't mean pushing, some people use it interchangeably )
 
> add all the files to the staging index to commit them
 
A commit is a series of changes; git add/rm only tells git that a change was made.
 
@Zirak I don't have to tell git that a change was made, it tracks the repo, they show up reddened.
 
You have to tell git that this change is interesting
 
2:18 PM
Ok
Why not push that interesting change straight to remote, why bother creating a commit?
I mean, I've changed the working copy already
why do I have to commit to local then. Is it to inform the branch?
 
Because just because you changed something doesn't mean it's finished
 
I see
 
You can add multiple changes at different times and bundle them together as a single commit.
 
A commit is a packaged point in time: It's a bunch of changes with a description on them. A single file edit is likely not interesting.
 
!!should I write my own regex engine?
 
2:22 PM
@AwalGarg All signs point to yes
 
Imma write a simple one then :D
 
@AwalGarg Post some unformatted code please
 
var rengine = {

parse: function (in) {



}

};
 
...one sec I hate myself
Fuck it I'll test the full build
@AwalGarg Again please
 
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<input id="input" placeholder="write your stupid stuff here"/>

<input id="btn" type="submit"/>

<textarea disabled>
tis is the console mmkay?
</textarea>
</body>
</html>
 
2:28 PM
sigh where did I go wrong in life
 
you didn't write your own regex engine, that's why
 
But I did
 
:O link?
 
shrug I dunno where it is
 
hmmm, is using regex in a regex engine cheating?
 
2:34 PM
eh, it would be fun to write a regex engine using the native regex itself
 
hi everyone
 
hello
 
I am having some questions with angularjs and bootstrap accordion. I saw that you need to use ,<a href="/#collapseOne"></a> . But I am using ng-repeat, so "collapseOne" won't work. what is the logic behind it? how can it be done in a loop?
 
2:50 PM
/**
 * Single line comment here // I hate this
 */
 
oh, sorry. i am a damn idiot. got that. sorry for the trouble.
 
I'm back :)
@Zirak Any cool wallpaper for ubuntu?
 
Does it have to be specific to ubuntu (I don't even use the thing)? What makes you think I can choose a wallpaper you like?
 
^ my present desktop
 
@Zirak What makes me think you can't choose a wallpaper I like?
@AwalGarg Where did your left bar go?
 
2:56 PM
Here's what I use: i.imgur.com/rSJ3O7v.jpg
 
really, anime
 
@Catgocat I don't use it. Because I don't like to use the mouse.
 
I never see my wallpaper anyway except on boot, so I'd liked to be greeted by Asuka
 
@AwalGarg How do you open? Is it inside the topbar?
 
2:57 PM
^
@Catgocat "I don't use it"
It is nowhere. I simply don't use it.
keyboard is great and does all the things.
 
I had a great day of failing at Haskell miserably
 
@Zirak lol u so silly hahahahaha
 
@Zirak omfg
 
today I burnt my finger while trying to cook :(
 
3:01 PM
can we here get help or is it just for fun?
 
@user3037960 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.
 
@user3037960 just ask
 
@Catgocat hrm?
 
I dont really have a question. Oo
I'm for first time in a SO chat. I just wanted to know ^^
 
3:03 PM
@user3037960 hi
 
oh thats my name hrm

hi Awal Garg.
I need help in FFmpeg. but there is no chat for that
 
try irc
 
@Zirak My parents know about hentai, whenever they see anime on my computer they say "what are you doing afonso"
 
That's ridiculous. When you see pictures of actors, do they also assume it's porn?
 
ahahah no :p
 
3:05 PM
@AwalGarg I dont have a irc client
 
Why would he see pictures of actors?
 
stackoverflow.com/questions/30547611/… maybe someone knows the answer. I'll just let it here.
 
since when do we have a chat on SO?
 
@user3037960 about 4 years?
 
3:06 PM
haha ok wow .. nice
 
@user3037960 your question is probably better fit on superuser
 
my wallpaper is a small gallery of images ... dynamic ... seeing the same wallpaper at launch is not so shiney
 
I bet seth in askubuntu knows the answer
 
I like space wallpapers
 
are there chats for those? I couldnt find something
 
3:08 PM

 Root Access

For all you Super Users out there. You have backups, right?
 
I like trains
thx
 
Bought one of these on ebay ^
They're not THAT good
 
hm the users in "root access" mean that my SO is the wrong place for my question Oo
 
you bought a wallpaper on ebay?
 
very funny mr. Awal
 
3:11 PM
mr.?
 
ms?
 
I am missing something :/
 
dear?
 
a PENIS? @AwalGarg
 
Come on people, "penis" isn't offensive...
 
3:12 PM
he said he was missing something
 
A sizeable portion of happen to own one
@Catgocat Your message was flagged, it was in response to that
 
lol flaggers are stupid
 
Also you can't go on and flag everything that's offensive. Otherwise all the rooms would be so confused with a gagillion "jQuery" flags.
 
How can penis be offensive? It's on wikipedia.
 
jQuery
 
3:14 PM
Whoever is flagging - please stop doing that, if you have an actual issue with a chat message raise a mod flag.
 
jQuery is even more offensive.
 
Although - it's more likely to get you suspended than OP in these cases.
 
@BenjaminGruenbaum you can't see who is flagging?
 
FWIW Flags are anonymous
 
They're not really anonymous iirc, but I don't really care.
 
3:16 PM
@AwalGarg Is there a button in ubuntu to go to Desktop? Like the one in the right bottom bar in windows 8
 
Well mods can see them (the flaggers)
 
@Catgocat ctrl+super+d
 
How do you know every single shortcut
get a life pff
 
@Catgocat press and hold the super key and cram everything you see
after that I will tell you the undisclosed ones.
!!afk
 
there is a trick on windows: for each shortcut at the start bar, use window key + number to open its shortcut. Fe winkey + 1 opens the first shortcut right to the window start icon
 
3:17 PM
windows is for nubs
 
@Catgocat hit super for a while, it'll show you a list of shortcuts
 
i place all my most used software shortcut there
 
@FlorianMargaine got it
 
Ah, that's what Awal meant
 
I like how ubuntu looks hacker-ish
 
3:18 PM
@KarelG Get Executor, your life will be better anyway.
 
It was a pain in the ass to install nvidia drivers, the installer kept crashing.. but I got it
 
@Zirak that's ... i should try that out
 
> shut the fuck up and code
love that XD
 
@AwalGarg WHat is ubuntu's paint?
 
@Catgocat AwalGarg is afk.
 
3:24 PM
@Catgocat google
sigh guess I'll finish this; excuse me, but I can't use the sandbox room since the messages are filtered to this room only
function foo(){
something();
somethingElse();
}
foo();
 
hey guys , i am trying to use pure css to allow focus to select between two classes for a button but i don't think i can do it , how would i do this in jquery ?
button {
    color: red;
}

button:focus {
    color: blue;
}
can use classes instead of colors
 
@Zirak Please don't post unformatted code - hit Ctrl+K before sending, and see the faq.
wat, but...it didn't work before
 
what
 
so if a button has a class, i want to remove that class and add one when any but NOT that button is clicked .... hmmm
...click performs the function ,
 
<div>
stuff
</div>
foobar
 
3:34 PM
click something else , it changes its class
 
Use .onclick
 
wont work for when you click something else
 
aaahhh
 
function zirak () {
return badGuy();
function badGuy() { return eval('bad guy'); }
}
 
3:35 PM
@AwalGarg Please don't post unformatted code - hit Ctrl+K before sending, and see the faq.
 
lol
good function
 
@Zirak you silly stupid, see this:
it is formatted
 
You just crack me up
 
if .onclick NOT this button ... Remove classA and put in classB
 
And I didn't catch your unformatted html because of entities, it wasn't as broken as I thought
 
3:36 PM
before performing the other onclick function
 
Every article I see labeled: "5 secret tips to <insert-hard-to-reach-thing>" is a pure pile of bullshit curated to market stupidity in the face of suspense.
 
@AwalGarg What IDE / texteditor do you use in ubuntu?
 
@Catgocat sublime text, gedit, nano, zed, builder
 
Funny that you ask...
 
I like Brackets tho.. let's see if it works
 
I recommend Brackets
 
@Zirak you didn't update the builder info yet :(
 
it's so beautiful
 
@AwalGarg What did I forget?
 
Why do people love ST so much
 
3:40 PM
@Zirak it is not "for gnome" :/
 
@AwalGarg oh, it's "for gnome" like Kate is "for KDE"
 
-_-
 
@AwalGarg Is there a shortcut to open terminal
 
GOOGLE
 
@Catgocat ctrl+alt+t
 
3:41 PM
is there a shortcut to google also?
heh
 
@Catgocat ctrl+alt+t -> curl
 
do breakpoints with source maps simply not work?
or am I doing it wrong
 
You're doing it wrong
 
sourcemaps are kinda silly for real debugging :/
 
enlighten me then
 
3:43 PM
it's funny how in ubuntu i need to use the command line a lot more
than I was used to in win
 
but breakpoints work...
 
babel sourcemaps specifically
 
I dunno what, just something. I've used breakpoints in sourcemaps before.
<div>
stuff
</div>
foobar
 
@Mosho It works from webstorm, not sure if it works from devtools.
 
they "work", as in they break, but nothing I watch in the state seems right
 
3:44 PM
It works from chrome and FF devtools too. But breakpoints with sourcemaps are mostly useless.
 
so idk if they break in the right place
 
How do I set the same CSS Rule on multiple elements? the elements are in an array and I'm not using jQuery
 
@Mosho yes, that's right. See this: ffdevtools.uservoice.com/forums/…
 
@Charly a loop should do
 
just for loop is ok?
 
3:46 PM
<div>
stuff
</div>
foobar
 
@AwalGarg that makes sense, but I'm not talking about minified code. but it could be a similar issue
 
@Zirak Please don't post unformatted code - hit Ctrl+K before sending, and see the faq.
Okay, if editing works I'm pushing
 
@Mosho oh, babel changes variable names too. try _{var name} or something
but I guess you already know that :/
 
@Zirak Please don't post unformatted code - hit Ctrl+K before sending, and see the faq.
Oh my I'm stupid
5
 
@Catgocat it is mostly sandboxed but... I dunno much about wine
 
3:48 PM
1 message moved to Trash can
GOOGLE
 
!!!!!!!!!!!!!!!1
 
Bananas
 
@Catgocat That didn't make much sense. Use the !!/help command to learn more.
 
@Zirak what do you have against help vamps?
 
GOogle is mainstream i'm using bing
 
3:48 PM
can someone explain me why transition on flex: 0 doesn't work, but it still does on flex: .00000001 ?
http://codepen.io/MateiGCopot/pen/xGgpeZ
 
@AwalGarg room owner abilities
 
( css line 40 )
 
@towc weird, ask on main I'd like to know too.
@Catgocat what does bing have to do with search? I thought bing is a wallpaper service?
 
CApslock delay on UBuntu really SUcks
 
!!afk
 
3:55 PM
And I don't use shift, so yeah :(
 
<div>
stuff
</div>
foobar
@Zirak Please don't post unformatted code - hit Ctrl+K before sending, and see the faq.
Okay, so extend the timeout
 
stop pinging yourself, you crazy person
 
Stop petting avocados
<div>
stuff
</div>
foobar
@Zirak Please don't post unformatted code - hit Ctrl+K before sending, and see the faq.
 
!!tell zirak sandbox
 
@zirak Please go and play in the Sandbox
 
4:00 PM
I can't, unformatting only applies to this room
You'll all to suffer my terrible programming, live
<div>
stuff
</div>
foobar
And done
 
@Zirak Why you always post the div?
 
Var too ={
}
 
It doesn't look at really short messages (<4 lines)
 
0
Q: Problems with transition on flex: 0, but still working on flex: .0001?

towcWhile working on a little project, I stumbled into having to transition from flex: 1to flex: 0. It took me a while to understand that it was only for this that the result was broken. After testing a bit I've found out that flex is transitionable, but not if one of the values it has to go through ...

 
4:11 PM
Bacongamejam 9 registration now open! bacongamejam.org/jams/bacongamejam-09
 
just out of curiosity ( @AwalGarg ^ )
 
Hey. I have a question related to a node.js app called mongo-express. (It's a admin interface for managing mongodb collections Etc)

I was wondering how I would go about limiting access to the UI to a specific IP address. Since this is a node.js express app, my .htaccess file I put in the app's folder didn't do anything. I'm not all familiar with how exactly node.js apps work and was wondering if you could point me in the right direction! Thanks!
 
Look where it calls for something.listen(theServerPort), add the IP as the second argument to that call.
oh, sorry, you meant something different, what I showed you is how to listen on a specific IP
Google for something like "express filter IP", IIRC it's not too difficult
!!refresh
 
Ah yes, Zirak. I just looked up the doc on listen() and realized that it wasn't right.

I think you've pointed me in the right path, this: https://www.npmjs.com/package/express-ipfilter seems like it may be able to do what I want.

I'll experiment with it now, thanks!
 
Left some comments on that commit @Zirak
 
4:22 PM
developer.mozilla.org says that in keyboard events, event.keycode, event.which, and event.charcode are all deprecated while most browsers don't support event.key.
 
@BenjaminGruenbaum Replied
 
@Catgocat what? what delay?
 
@AwalGarg Never mind, just fixed it with a startup application.
In Ubuntu you have a delay on caps lock.. so if you type fast and not use shift, you'll end up typing like this:
HEllo MY FRiend
 
Stop using caps lock then
 
It's impossible
I love caps
 
4:27 PM
@Catgocat I don't see any such issue
 
I used this code:
key <CAPS> { repeat=no, type[group1]="ALPHABETIC", symbols[group1]=[ Caps_Lock, Caps_Lock ], actions[group1]=[ LockMods(modifiers=Lock), Private(type=3,data[0]=1,data[1]=3,data[2]=3) ] };
 
Iiiiiii
@Catgocat you are dreaming
XD
 
here i am, using shift, even when i have to type a whole page of all-caps
 
Really no..
 
how do you replace a class when you click on a different button but let the replaced class do its thing before allowing the other button to perform its functions ?
 
4:28 PM
aAaAaAaAaAaAaAaAa
 
check this google.pt/…
workspaces are awesome tho :)
 
@Catgocat do this while focusing on any resizable window (like this one): Ctrl+Alt+Num9
 
h-e-l-p
 
1 message moved to Trash can
@havingagoatit Please don't post unformatted code - hit Ctrl+K before sending, and see the faq.
 
BOOM
 
4:30 PM
i didnt
 
brilliant
 
@rlemon Proof it works
 
@Zirak thy shall be hailed until the dawn of the century
 
should we autokick for "h-e-l-p"?
 
$(document).ready(function(){
$("body").on("click",".slide",function(e){
e.preventDefault();
$('.animated').removeClass('bounceOutUp');
$(this).addClass('bounceInUp');
var url = $(this).attr('data-url') + ' #' + $(this).attr('data-target');
$('.tile-area-main').load(url);
});
});
o-o-p-s
 
4:30 PM
Great formatting
 
I...uhm...I have nothing now.
 
lol
 
@AwalGarg Haha great
 
@Catgocat check out other num pad keys too, tis great and does all the things
 
@havingagoatit oh, the w3schools indentation style, the worst there can be.
 
user1596138
4:32 PM
@Zirak you can't read or?
 
@JanDvorak there is worse - known as nodeback or lisp
 
Can anyone help me with the following
 
@Jhawins I asked what would be better, you didn't reply
 
0
Q: Can't submit values to database after changing html attributes

AyanI am trying to make a password changing option in one of my works. WHAT I WANT TO DO IS: 1. First verify the current password. 2. If the current password entered is correct then the 'proceed' button shifts down and a new field called 'confirm' is displayed. 3. When it is displayed, the attribut...

 
4:32 PM
@Ayan 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.
 
user1596138
You think I sit here waiting for you to reply to github issues?
 
user1596138
I been busy as fuck. @rlemon suggested something, even you suggested the most logical limit (be consistent with /welcome)
 
You think I sit here waiting for you to reply to github issues?
 
user1596138
You don't need to, lemon replied wth a suggestion.
 
user1596138
Eh, whatever, but if it starts binning my shit I'll bitch and moan.
 
4:34 PM
@AwalGarg How do you merge all workspaces? can't find anything
 
His suggestion was included
 
user2620028
Well i am off to go to sleep then get up and ruin some Thai child's perception of the english language.
 
@Catgocat disable workspaces
@Catgocat also, ctrl+alt+tab toggles through windows from all workspaces
 
@AwalGarg Do you also use unity settings?
 
@Catgocat I what now?
 
4:36 PM
@AwalGarg I mean do you style the desktop using unity tweak tool ?
 
is there a "on.next.click" kinda thing ?
 
@Catgocat yes, I enable 100% transparency for the top bar, and use the bottom left hotcorner to spread all windows
 
ahhah thats funny
me too
 
this can be done with gconf as well... but meh
 
just did that
 
4:37 PM
@Catgocat you can do that super+w and super+shift+w too, btw
 
user1596138
His suggestion which was no rep limit..
 
In other words, bin no matter how much rep the user has
 
Only bin if user has less than 2k rep and isn't jhawins
 
yay for more magic constants!
 
@AwalGarg can't find the 100% transparent windows, where are they
 
4:42 PM
5 mins ago, by Awal Garg
@Catgocat yes, I enable 100% transparency for the top bar, and use the bottom left hotcorner to spread all windows
> "top bar"
 
oh
bt still where is it
 
@Catgocat open tweak tool -> alt -> type panel -> enter
 
nice
I miss the topbar menu you know?
in older ubuntu versions I remember one friend of mine had that
 
So use gnome classic?
 
@Catgocat nostalgia has no place in linux. use better solutions or gtfo. :P
 
4:45 PM
@AwalGarg does that legitimise Win8?
 
user365265
@AwalGarg true words mate
 
@JanDvorak if that is your definition of "better"...
 
@JanDvorak How is Windows 8 a better solution for anything?
 
user365265
schwindows
 
@Zirak it is better if you like to see your computer restarting all day
 
4:46 PM
@Zirak It works well with touch screens, I guess
 
Windows 10 - It's ugly and you didn't ask for it, so here you go
 
shamusyoung.com/twentysidedtale/?p=18309 oh much I love this article!
 

« first day (1687 days earlier)      last day (3255 days later) »