« first day (1689 days earlier)      last day (3265 days later) » 

12:10 AM
Hello all
Anyone have any experience with Weebly ? :\
(I know, I know)
 
Could someone take a look at this real quick? jsfiddle.net/c4209dz3
I want the volume icon and the slider to be vertically aligned within the containing element
 
Add vertical-align: middle; to the slider. Then add line-height: to both children and set them to the height of the container.
 
not a chance.
@MadaraUchiha :D
@Mosho of course.
It just can't change :D
You need state, functional programming isn't about not having state, it's about controlling it.
 
12:27 AM
@Martin Ah, many thanks. I tried those individually but didn't think to do them together.
 
Not a problem
 
 
1 hour later…
1:29 AM
@Zirak yay! (replied)
 
1:41 AM
I propose adding this catb.org/~esr/faqs/smart-questions.html#goal to room FAQ.
 
MLM
@AwalGarg Sounds like the XY problem
 
But we get XY problems even if we include that link in the FAQ, probably because it is too long.
The one I linked is shorter and clearer.
> "XY" -> ??
"Describe goal and not step" -> ah, cool
 
MLM
Good point
 
> Many regs, when facing a noob with an XY problem think "I know, I will tell him this is an XY problem", now they have two problems - the noob and explaining what is an XY problem to him.
FF40 and MS Edge implement more es6 than traceur and chrome45 (yes, canary) together implement with harmony flags :O
 
 
2 hours later…
m59
3:32 AM
should I update to Windows 10?
 
3:54 AM
how do you trim multibyte strings in jQuery or Js?
 
4:35 AM
On mobile. Can't kick @EnglishMaster :(
 
wtf
why would you kick me?
And I figured it out, thx
 
Very impressive, you managed to not only type something into Google, but also to read some of the results!
3
 
4:50 AM
@SomeKittens that is the worst quality video :P but awesome
WAIT
it may be my connection :)
 
@phenomnomnominal bit of a confession - I still haven't watched it
 
You did good
 
5:07 AM
 
5:36 AM
hi there
does anybody know about nodejs
 
5:57 AM
yes.
 
6:36 AM
@Zirak Awesome! I'm interested, but I don't think I'll be able to watch it live. (I'm busy that entire week, so changing the date won't accomplish much either)
 
ram
pastebin.com/E3724Xk0 ...any one there guys pls find what is wrong with the code...I'm not getting the value from ajax call to the drop down box hotel_name
 
@ram 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.
 
ram
hi anybody there...
 
7:04 AM
@NajeebullahShah nah, no one in the javascript room knows node.js
 
@Zirak I could be biased because of actionscript so you can ignore me and still do it :D but you asked for "preferences" so there it was. maybe @BenjaminGruenbaum'd have a better reason :P
also, it is not really that fun when the game is doing networking (which is most 2006+ games)
 
@ram 1. formatting, 2. you didn't set the syntax to javascript so we don't see syntax highlighting thus leaving the code unreadable, 3. you mixed html and php in the most horrible way possible, 4. you used mysql_* functions which are deprecated and the api sucks, 5. debug network issues from the network tab in the dev tools, that is what it is for, 6. debug dom related scripting issues from the debugger/sources tab in the dev tools (ff/chrome(ium)), that is what it is for
 
7:28 AM
Hi,can I ask I am validating my small js file with this github.com/gruntjs/grunt-contrib-jshint ,now it pass and no errors. but when I go to the jslint.com I got many errors. which one should I follow JShint or JSlint.this the first time I use this tool. Thank you in advance
 
JSLint is way too strict in my opinion.
 
I share that opinion. JSHint can be configured according to your taste.
 
@AwalGarg JSLint was written against known pitfalls that cause known bugs.
 
@Zirak would be cool if you can do this: flashgames247.com/play/645.html :D
 
@RoelvanUden, what do you mean according to my taste, I apologize this is my first time to use this validating js files do I still to configure the jslint ?
 
7:31 AM
@MadaraUchiha like good parts was written? ;)
 
@AwalGarg Yes
They happen to be written by the same guy.
 
The main problem I have with JSLint is that you can't configure it. It essentially enforced Douglas style on your code. Fine, if you like it, otherwise JSHint+JSCS to make your own style. :P
 
@MadaraUchiha in that case it is OK to know what it recommends but after you know what you are doing, I think JSLint is too much restrictive. Again, highly subjective and personal opinion.
 
@jemz It depends on what you want. Both have the same aim, make your code better. JSLint is stricter and most things cant be turned off. JSHint can have everything on/off according to what you want.
 
@AwalGarg Oh, don't get me wrong, I use JSHint
 
7:33 AM
:D
 
@RoelvanUden, Ok thank you
 
!!urban (Y)
 
@AwalGarg (Y) The MSN Messenger code that displays a "thumbs up" emoticon.
 
OOOOH!
 
I find that I just don't fall into the common pitfalls that JSLint enforces
 
7:33 AM
holy shit I thought it means "boobs" or something :/
 
by force of habit
So I use JSHint that I can configure
 
@MadaraUchiha this, exactly.
So I need something to put my laptop on when I am coding on bed at night. Putting it on my lap is uncomfortable :( Any recommendations?
@Abhishrek ^?
 
@AwalGarg I have one out of plastic with legs, a tilt mechanism (so it's facing you from above) and a small USB powered fan
 
@MadaraUchiha as in a DIY one? if not, linky?
 
@AwalGarg No, but I bought it in a store here in Israel
 
7:38 AM
ok. what do you call it?
 
alert("Hello World!");
 
@MadaraUchiha like this: ebay.in/sch/Computer-Tables-Laptop-Tables-/177431/i.html by any chance?
 
@AwalGarg Exactly that first one
is what I have
 
@AwalGarg Well, I have it for quite a while and its legs haven't broken for me
But that might just be me being careful
 
7:51 AM
I am pretty careless but I will still get one, thanks :)
 
console.log("hi")
 
8:19 AM
@KeonKim try !!> console.log("hi")
!!> console.log("hi")
 
@royhowie "undefined" Logged: "hi"
 
@KeonKim unless you meant that as a joke/way to actually say hello
 
window.addEventListener('load', function() {
   var karelG = new KarelG( STATE.fuckMonday);
   karelG.init();
);
heeeeelloooooo
 
in italy we're in vacation: national day of something :P
 
had that the monday a week ago
 
8:25 AM
@towc Bank holiday?
 
Wow, so now I can just do :later 8h and I'm done for today? :P — Igor Popov Dec 29 '11 at 6:59
 
@MadaraUchiha no, like "day of the republic" or something
 
that UNIX command :p
 
don't really care... the only thing I care about is that there's no school for 2 days
and next week's the final week of school :D
 
@KarelG -bash: skipMonday: command not found. life hates you. stop trying to skip mondays
 
8:30 AM
well, tbf. if you remove monday, people would start hating tuesday
i don't really have problems with monday, but i got a bad night. couldn't sleep well :P
 
@KarelG speaking of sleep, I should do that—it's 430am
just (finally) finished this iOS app I've been working on
it wasn't as bad as I thought it'd be
writing the backend server in node was more fun
but swift isn't so bad; apple makes iOS development pretty easy with their API
 
Hey guys. My application rely alot on video and video performance. I was wondering which directive for video in Angular would you guys recommend ?
 
9:28 AM
I'm self taught so have been trying to answer SO questions to gauge where my knowledge stands and work out gaps. Seems I'm able to answer more questions about libraries (Google Charts, d3) than I am about JS itself. :/
 
@danabnormal Then answer JS questions only.
 
@AwalGarg gonna try. most of the time I can follow the examples given, but get stumped on the syntax.
 
@danabnormal stumped "on the syntax"? Example?
Library code follows the same syntax as JavaScript (and I guess you already know that)
 
@AwalGarg its a bit hard to explain. I can follow the logic of the code, understand what its trying to achieve, but I wouldn't be able to say 'ah - that because your trying to call x function against y object but the datatype isn't suitable'. Although oddly I'm familiar with, for example, google charts enough to be able to spot errors and point in the right direction. Maybe I just need to start stretching myself a bit with pure JS.
 
@danabnormal yes, you should focus on those pure JS questions
 
9:39 AM
when searching tagged questions in SO is there a way to search for questions with only the given tag? so I can search for 'javascript' and not get ones with tags for ruby, jquery, reactjs etc
 
@danabnormal not surprising at all. libs stagnate eyes. write loads of vanilla js code avoiding libs.
@danabnormal yes, you can ignore tags in preferences.
 
@AwalGarg cheers awal
 
:)
Just noticed, java is the most popular tag on SO followed by javascript :/
what is this blasphemy :(
 
why is that blasphemy ?
 
hi all
 
9:45 AM
that language is mainly used in education to learn students the first steps in programming
and from Java, they can discover other programming languages
 
hi
 
need some help with jquery :
I have a checkboxes list with id's, class, and checked or not
this represents some "user permissions"
so, for example : i have 3 checkboxes for user 1, that look like this
checkbox id='edit-1' class='editPermission' checked
checkbox id='view-1' class='viewPermission' (not checked)
checkbox id='edit-2' class='editPermission' (not checked)
checkbox id='view-2' class='viewPermission' checked

and so on...
 
@argentum47 o/
 
suppose I have a directive like <app-input-tag ng-model="something" ng-required=true/> I can access ngModel in link: but how to do use the validations ? :
@AwalGarg hiyya
 
you are completely angularized :(
 
9:51 AM
number in the id section is the user id,
So, I want to retrieve a array from that,
an array that look like :
{{"id":1,"edit":true,"view":false}{"id":2,"edit":false,"view":true}}
 
@AwalGarg yeah man, difficult times, :P ... yesterday I was trying to replicate devdocs.. I forgot to sleep.
 
@argentum47 with the scraper or without it?
the devdocs scraper is pretty nifty
 
with the scraper ... writing the scrapper is difficult .. I mean ok, I wrote the scraper for angular .. with Capybara and Nokogiri, but making the scraper generic, so that anyone can plug anything.. that's difficult.. plus , gawd, sinatra is so brain shattering when I tried to make a directory structure ...
 
ikr :D
 
@Julo0sS here is a pseudocode
var myObj = function(id, editFlag, view) {
   this.id = id;
   this.editFlag = flag;
   this.view = view;
};
// set array
var myArray = [];
// loop through the inputs
for ( ... ) {
    myArray.push(new myObj(input.id, input.edit, input.checked) );
}
 
9:55 AM
!!urban ikr
 
@argentum47 ikr ikr = i know right.
 
Does anyone know what you'd mark an interface method implementation with using JSDoc? @override? Even thought it overrides nothing?
 
@KarelG i dont get it...^^ for example, I add a "permission" class on the items, so it's not easy to get them all. On event, I get all checkboxes with $('.permission), then?
 
... i was sleepy, i thought to convert that to array
 
hi @RoelvanUden
 
9:58 AM
sorry :)
 
@KarelG here is some example html I have to work with on event :
 
these id's, are these ordered ?
 
can moment.js work in space?
 
<label class="checkbox-inline"><input class="viewPerm permission" checked="" value="1" id="view-4" type="checkbox">View</label>
<label class="checkbox-inline"><input class="editPerm permission" value="1" id="edit-4" type="checkbox">Edit</label>
<label class="checkbox-inline"><input class="deletePerm permission" value="1" id="delete-4" type="checkbox">Delete</label>
<label class="checkbox-inline"><input class="viewPerm permission" checked="" value="1" id="view-3" type="checkbox">View</label>
<label class="checkbox-inline"><input class="editPerm permission" checked="" value="1" id="edit-3" ty
 
10:03 AM
@Julo0sS Use data-* attributes
 
@BenFortune neat!
 
You can make a "Windows 10 reservation" now :P
 
@KarelG So, from that, i'd like to retrieve 2 objects :
{{"id":4,"view":true,"edit":false,"delete":false},{"id":3,"view":true,"edit":true,"delete":false}}
@BenFortune what would it change from that? would it make it easier?
 
I see MSFT teasers gaining a lot of Indianism these days :P
 
It'd make it so you don't have to parse the id attribute to get the ID.
 
10:05 AM
@RoelvanUden true, but i don't do that because it would start an auto installment once it's available >.>
 
@BenFortune so you would use : data-id="3" and data-permission="view"
 
<input class="deletePerm permission" value="1" data-id="3" type="checkbox">
 
gotcha do that when i've time to do that. Then i'm going to reinstall it completely => fresh OS install
 
@KarelG Nah, it will still ask you "Want to install now?".
But you already have the files available at that point
 
still, it starts downloading :p
not sure if it's permitted at our work
 
10:10 AM
Hi friends
 
I'm not your friend, pal.
 
I'm not your pal, mate
 
data-id = "user id" / data-type = "permission type"
How would you get them as an array? this is clearly what i don't get tbh,
something like $('.permission') gives me all checkboxes, then I have to order them by data-id and slice them one by one from the $('.permission') array?
 
I'm not your mate, buddy.
 
I'm not your buddy, human
 
10:11 AM
I am looking for a help in Magnific popup jquery. I tried to display content using ajax popup. I tried it but not successful. Kindly see my question. stackoverflow.com/questions/30533740/…
 
I'm not your, stupid.
 
I just want a mate
 
twss
@BenFortune so how to "reserve"?
 
@AwalGarg Not sure if the option is available yet.
It says something about a popup
 
@AwalGarg lol
 
10:14 AM
> Look for this icon in your system tray at the bottom of your screen, simply click on the icon, and then complete the reservation process.
:D
 
@BenFortune nice, I need to test it quick and find some excuse to not switch to it.
 
@AwalGarg The tech previews are still available
 
@BenFortune I already have a couple of excuses because of them, but maybe they will fix them in the final release.
like way too many animations where they are not required.
 
Windows 10 is silky smooth
You know you can turn off the animations? Like in every version since 2k?
 
@BenFortune how?
 
ohh, ok.
next time I boot into windows (maybe next year), I'll turn them off.
thanks
 
The thing I'm most hyped for is DX12
 
^---
i'm also curious of it. but i have to get a new GPU for that ._.
my current PC has "latest" hardware of 2~3 years ago
 
I'm always upgrading mine :P
 
at every releases ? :D
i'm not sure if i'm going to upgrade that. i only need some more RAM then i can play the current games in medium textures.
heck, i need a new smartphone too, i still have samsung galaxy ace 1. That's from 2011, and is running with android 2.2.1
 
10:32 AM
Most of them yeah, currently on haswell + gtx 970
 
where is the sytax error--
 
1 message moved to Trash can
@Harish Please don't post unformatted code - hit Ctrl+K before sending, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com or pastie.org
 
How to refer an function which is defined in requirejs with html onclick tags?
 
By not using onclick tags?
 
@Ant's You don't.
 
10:33 AM
@MadaraUchiha: Why?
 
@Ant's You don't.
 
@Ant's Because onclick= attributes are evil.
They represent everything that's wrong and bad in the world.
 
export those functions, and use EventTarget.addEventListener()
 
And every time you use any attribute that starts with on god kills a puppy.
 
var count = 0;
var loop = function(){
	while(count < 3)
		//Your code goes here!
		console.log("I'm looping!");

	}
	count++;
}
loop();
 
10:34 AM
by "god" here he is referring to himself
 
@AwalGarg challenge idea (also @rlemon)
Are you familiar with PHP's linkifier?
@AwalGarg That's absurd. I don't kill puppies.
 
@MadaraUchiha no?
you mean php room's linkifier?
 
Hi Guys
 
where is the sytax error?
 
@Harish you forgot to add { after the while condition
and a ; at the end }
 
10:35 AM
I want to use multi-select drop down in angular js
 
@AwalGarg The PHP room had an extension that takes messages containing names of PHP functions/classes and automatically wraps them with code and a tags.
 
@Harish You're missing an open bracket after while...
 
So when I say something with substr() in it
 
researched so many links but not getting any idea.
 
@MadaraUchiha possible, I presently use this: gist.github.com/awalGarg/31bdf9e28fc84c7bf295
 
10:36 AM
how can i create multiselect dropdown in angular js
 
That substr() would automatically become substr()
 
@MadaraUchiha: Probably, can you say me why onclick attributes is bad?
 
@Ant's You can only use global functions or inline javascript there
You can't use anything of a different scope
You can't use anything that's originated from requirejs or any decently scoped object
 
@MadaraUchiha you mean client side or while sending message?
 
@AwalGarg While sending message
 
10:38 AM
@KarelG @BenFortune Thanks!
fixed it.
 
@MadaraUchiha I am not exactly sure how to do that because the listeners I attach will be called after the listeners attached by SO. I mean, sure, I can override and stuff but .. messy.
 
@AwalGarg I'm not sure how he did it exactly, but ask @DaveRandom from the PHP room
 
@MadaraUchiha so probably I need to this in <script> tag
require(['foo'], function(foo) {

    // jQuery loaded by foo module so free to use it
    $('.button').on('click', function(e) {
        foo.bar();
        e.preventDefault();
    });

});
 
@Ant's Yes, or without jQuery, addEventListener()
@AwalGarg IIRC he MITMed the jQuery object
 
@MadaraUchiha yeah, that is messy though, and probably not future-proof if chat changes.
I can modify $._data(input, 'events')
or I can hijack the global xhr object :P
 
Good suggestion of TJC:
34
Q: Highlight the preview on the Ask Question page

T.J. CrowderI can't count the number of simple errors in questions that a glance at the preview would highlight for the person posting them, such as HTML not showing up because it hasn't been marked up Code not marked up and so shown as word-wrapped text enter code here And yet, even though they have to ...

 
@MadaraUchiha o shaite
 
If we had trending topics like in twitter, Enter code here will be trending too. — noob May 29 at 7:23
lol
 
One more regex for my extension: /Enter code here/i :)
 
!!> ````
 
10:58 AM
@AwalGarg "TypeError: \"\" is not a function"
 
y u no return empty string :(
!!> 'dir'foo
 
@AwalGarg "TypeError: \"dir\" is not a function"
 
why the hell is the tagging function parameter accepted as a string
people.mozilla.org/~jorendorff/… a string is a call expression? O_O
this makes no sense... @Zirak spec clarification mega ping ^ Why does "console.log"`foo` not throw an error but interpret "console.log" as console.log?
same behavior in chrome
 
11:21 AM
hello
 
@MadaraUchiha hey php documentation is really good and there are no namespaces (well "good") so he just needs a looong list of functions and linkifying them is just (x) => [x](php.net/x)...
 
@AwalGarg Yes and no
There are namespaces (albeit limited ones)
 
still easy peesy
because of awesome docs
@MadaraUchiha ... he has written an "extension" not userscript so overriding listeners is cake
it won't work with FF and other browsers
 
@AwalGarg Nothing stopping you from doing the same
 
11 secs ago, by Awal Garg
it won't work with FF and other browsers
 
11:30 AM
 
I use nightly :(
 
@AwalGarg And nightly doesn't support extensions?
 
@MadaraUchiha not chrome ones, I'll have to write another version of it.
 
FF nightly?
 
correct
php chat is really nice
 
11:35 AM
Morning
 
(kelunik one)
morning cereal
 
Dudes , how can i escape the % sign after calling the jquery .serialize function ?
 
run...
 
@Joseph What does that mean ? It's already url encoded, isn't it ?
 
he wants to encode again just to be sure
 
11:41 AM
@DenysSéguret true it is But when i use the % as an input in the form i get this URIError: malformed URI sequence
 
You should probably build a fiddle demonstrating your problem, here
 
and when looking up what might be the cause of this on the net i get pointed to serialize ..
@DenysSéguret that's the string the it causing the issue jsfiddle.net/k74csgtv
i figured it out
thanks anyway
 
11:59 AM
with this code it makes logo2 fade in over 3 seconds but it stops if you do anything else basically why ?
 

« first day (1689 days earlier)      last day (3265 days later) »