« first day (1497 days earlier)      last day (3456 days later) » 

12:12 AM
@SomeKittens architecting Angular apps?
Decouple everything from Angular except for bindings, Angular should only do those - write modular code.
 
@BenjaminGruenbaum Yeah. Not bootstrapping or the like.
 
Prefer explicit state passed as part of the route rather than hiding stuff at services.
Don't nest directives too much but use directives when appropriate.
 
@BenjaminGruenbaum Can you be more explicit about "when appropriate"?
The latest refactor of our frontend put virtually everything in a directive.
(I recognize this goes too far, but where should I be aiming?)
 
Has anyone here used JQuery TimeAgo plugin?
 
m59
1:02 AM
@someDoge ROLFZ
 
1:12 AM
quick question, I used the godaddy 'forwarding' crap and placepizzas.com forwards but placepizzas.com does not :/
I know nothing about CNAME so I tried the automated route
cc @FlorianMargaine
I know you know CNAME stuff
nvm just took longer to propagate I suppose
 
1:30 AM
so yea, this was my morning btw.
had to wrap my one fish tank in a blanket to keep warm
 
@rlemon how are you not dead
 
user2620028
serves you right for being canadian :D
 
user2620028
oh wait no i need to be nice... i have a question
 
@SterlingArcher get on miaou dammit!
 
user2620028
Hey guys in vanilla js what would be the best way to access an elements children by class name
 
1:43 AM
getElementsByClassName
 
no
querySelector[All]
 
why is that better
 
user2620028
that is the most compatible? cause of ie8?
 
a) selectors are more robust,
b) has better browser support
 
ok thanks
 
1:44 AM
c) shorter to write
 
user2620028
lazy lol
 
it isn't lazy, it is just better all around
lazy would be to suggest $()
 
user2620028
no i am calling you lazy... its irony
 
user2620028
but it doesn't carry well through text :)
 
user2620028
thank you lemon
 
2:27 AM
@Loktar gfycat.com/CaringThankfulBluebreastedkookaburra (you get linked all of the gaming and army/navy/AF stuff I find)
 
HAHAH wow
that would scare the shit out of me
 
imagine being the fish!
 
yeah it got cut lol
you can see blood splash out from it it looks like
 
ohh yea it got demolished. those boats go pretty damn fast
 
 
2 hours later…
4:00 AM
downvote for this ?? Is it really that bad?
 
4:14 AM
definitely not a good news - cnet.com/news/…
 
!!> 'at iteration'.replace(/\bat\b/g, '[]$&');
 
@mintsauce "[]at iteration"
 
4:29 AM
:-D
 
4:54 AM
:P
@mintsauce I didnt know about \b borders
 
 
5:14 AM
@rlemon Is there no door?
 
there is now
it was being replaced
 
Ah, makes sense
Canadians not being weirder than I thought
 
Android lollipop is awesome user intrrface
And great security featured ever had in smartphone operating system
 
5:57 AM
Hi, How to add parameter in request-headers when raising jsonp request? thanks
 
can anyone please help me with one of my problem with jasmine test case
0
Q: jasmine test case for Restangular within a function

Alex ManHow to write jasmine test for Rectangular for a scenario like as shown below script $scope.addEmployees = function(employeesCopy) { var emplyeeList = {employees : employeesCopy, department : getDepartment()}; Restangular.all('getEmployees').post(emplyeeList).then(function(employees) ...

 
6:09 AM
@rlemon your jsfiddle cloud is superbb......
 
6:24 AM
Hello everyone
 
@AkhileshSk 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.
 
I have a Google Map Search AutoSuggest Script
http://pastebin.com/sLsYJ8su

Now i need to get the selected value back to the android application and i am showing this Html file in my webView component.
I got some link like http://stackoverflow.com/questions/5264489/how-do-i-pass-return-values-from-a-javascript-function-to-android
http://stackoverflow.com/questions/4906158/passing-data-from-javascript-to-android-webview
 
6:50 AM
Does anyone ever had similar issues like me?
 
kick-muted.
 
@EnglishMaster i always get this situation when i drink too much water
Stop drinking too much and live pee free
 
7:06 AM
 
Oops @EnglishMaster problem is removed my moderator
Ding dong gone
English master what do you think about some Dipper's ? May be easy for you no operations needed
 
7:35 AM
 
7:47 AM
hello
 
!!should i have a pizza or eat curry
 
@darkyen00 eat curry
 
racist bot.
 
8:01 AM
GitHub CEO used my app to generate the contributions calendar on his GitHub profile: github.com/defunkt I'm so happy! :D
3
 
=)
 
8:53 AM
@copy ping
 
guys im sorry dont kick me anymore
 
9:41 AM
Hey. What's the best way to loop from 00 to 100? (01, 02, 03... 11, 12, 13, 14... 98, 99, 100). Basically using two zeros to begin with, rather than 1?
I can do a typical 0 to 100, etc.
 
@tmyie What's the difference?
 
I need to match some numbers I already have, which range from 00 to 100
 
@SomeGuy @Loktar how's going the monthly challenge?
 
@tmyie loop from 0 to 100 and pad with zeroes
 
Haven't made it through the entire tutorial yet
Had to study -.-
 
9:44 AM
@BadgerGirl this is so about you
in PHP, 14 hours ago, by Fabor
Stalking is such a bad word. Passionately following is better.
 
@Zirak I shall grant you a war-name "Corgi"
You can call me Sergent Russian, Private Corgi.
 
@EnglishMaster I shall grant you a war-name "Butt face"
 
@SomeGuy nub
 
I have a feeling my solution will end up looking a lot like yours, except not as good
 
@FlorianMargaine Major Puddle-Dog, how are you today?
 
9:48 AM
@SomeGuy mine is not good
could be better, really
I won't do it because lazy, but I should have only one parent component, and have children components.
 
Let's discuss it once I've done mine
 
hi fillas
 
@darkyen00 you doing the monthly challenge?
 
@FlorianMargaine no
 
9:52 AM
@SomeGuy also... you could make it pretty, show the number of results somewhere, etc
@darkyen00 why?
@Zirak you doing the monthly challenge?
 
Too busy with cookaroo 178.62.199.87:8000
 
only took me 2 hours
reading docs + writing code
 
@FlorianMargaine i have exams and moving to take care of too... if i make time i will do
 
@FlorianMargaine Not even sure I'll actually do it. I want to because I don't want the challenge to have no entries
 
@SomeGuy to have only one entry, you mean? :P
 
9:53 AM
Right :p
I'm sure Benj will come through too
 
@FlorianMargaine Maybe. It looks nice but solving it won't accomplish anything (I've read the knockout docs and wrote something small already), and making it something neat might take too much.
 
@Zirak you wrote something using components?
@SomeGuy Benji will try something in a compile-to-js language afaik
 
I want to participate though, the monthly challenge concept is nice.
 
@Zirak Do it.
 
9:58 AM
if you already know KO, it should barely take you an hour or so.
 
Tbh, there isn't really an incentive for Zirak to participate. He'll win anyway
 
I don't know KnockOut
 
@darkyen00 it's exactly what this challenge is for: learning new technologies.
 
That's the point. Nobody does. You're supposed to learn the new technology
 
@Kippie are you participating?
 
9:59 AM
I might try cooking something up this week-end, though I probably won't have much time
 
also, for those who already know it, it allows us to see how it should be done/how they do it.
they can use a compile-to-js language to add some fun, if they want.
 
oh, room owners and regulars, don't forget about the meeting on Saturday.
 
I'll read the transcript and follow up on stuff I think, I'll be having dinner at this time
 
@FlorianMargaine i know, but i am slow on learning new things
and right now i cant invest that much time :-(
 
@darkyen00 the more techs you know, the less time it takes you to learn a new one
 
10:01 AM
well aiight i will make something on sunday.
 
Btw, will the challenges always be based on a javascript framework? Or will there also be "other" things?
 
sorry to cut in, guys, but what challenge are you talking about? :-\
 
@Yerke 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.
 
@Yerke See pinned messages at the right side
 
@Kippie see the proposals
my ada task almost won :(
 
10:02 AM
@Zi
 
@Zirak thanks. my first time in a chat room
 
and don't be sorry to cut in, be proud to. Cut in raw.
 
@FlorianMargaine I want to do the Ada one! It'll be interesting
 
inorite
 
10:05 AM
I want the F# one
 
learning a language is more time consuming than learning a js framework though...
 
I want to do the monthly challenge in C# / JAVA :-> or rather c and console output 8-)
 
Should I suggest a Haskell challenge? I'm worried most of the locals might already know Haskell better than I do.
 
-- just kidding --
 
Well, it depends. Many languages are derivatives of eachother, so should be easy to learn if you already know something similar (OO-languages, C-based languages)
But suddenly making the transfer from OOP to functional programming *would* be interesting
 
10:07 AM
@JanDvorak it'd be fun to watch --- you vs bartek vs <some awesome haskellite>
 
I hope you're not implying Bartek isn't an awesome haskeller
 
@JanDvorak nah, most regulars know the language but haven't done much in it
 
@JanDvorak the opposite.
@FlorianMargaine I want to learn haskell :->
but :-( everytime i see it, i sob --- i feel inferior xD
 
I think there is a literary term for that
It's like saying, "Good evening, gentlemen and Bob."
 
@darkyen00 Then start from a challenge + hoogle instead of from a bunch of examples you feel overwhelmed by
 
10:13 AM
@KendallFrey Would be true, except the lander was a little off as well, which is not without a certain irony
 
Yep
 
Currently my goal is to master python.
then move to haskell
 
Also learn to love Hoogle
 
and thanks about Hoogle :-)
 
10:15 AM
what would be the cleanest way to check whether an element contains all of the classes from an array ?
(preferably using Element.classList)
 
Hi, Google Maps Javascript documentation (v3) say it:
Most websites and applications may use the Google Maps API free of charge. However, if you consistently generate a high amount of traffic, usage limits apply and you will need to pay for extra usage. If your site or application generates 25 000 map loads or more each day, for more than 90 consecutive days, we’ll attempt to get in touch with you to talk about payment.
 
@tereško in ES6?
 
Then I would like to know if you have exceeded the threshold. It 's easy to overtake?
 
I know a little of Scala, Ruby, Python and their good points and bad points
Haven't even tried Haskell yet
 
Let's go through all of these languages, though
 
10:18 AM
@tereško classes.every(c=>el.classList.contains(c))
 
I think the monthly thing is a good place to be trying new languages out
More motivation to stick with it too
 
@Neil What do you consider a bad point of Ruby
 
I know that I can use element.classList.contains('foo bar buz'); but that makes the code dependent on the order of classes in the HTML
is there a better way?
 
@tereško you don't like @JanDvorak's way?
 
@tereško does it?
!!mdn classList contains
 
in es5, it's this: ['foo', 'bar', 'buz'].every(function(c) { return c.classList.contains(c); });
!!mdn every
 
wait
you can use lambda in js already :O
 
@SomeKittens Make a gist out of the resources you get for Angular, okay?
 
@JanDvorak classList is DOMTokenList
 
10:20 AM
you mean fat arrow?
 
yes
 
It hit browsers ?
 
FF had it for a long time
chrome has it behind a flag since a version or 2
 
Uncaught SyntaxError: Unexpected token =>
 
10:24 AM
@darkyen00 about:flags => enable experimental javascript
 
Uncaught SyntaxError...
:P
 
@FlorianMargaine would you prefer >>?
 
indeed!
or I don't care!
 
Actually, >>= \d->
 
@FlorianMargaine My basic elisp skills are failing me
 
10:32 AM
ask, and ye shalt receive
 
Does KO only ever support one ViewModel at a time?
 
node-webkit?
 
no, browserify
but that's not the point
@Zirak let me look
 
10:35 AM
How do you bind it to different parts of the same page?
 
implemented via custom elements
 
btw, I have 5 Inbox invites if anyone's interested
 
Oh, I've got some too. Let me know if you guys want any
 
Take mine, Some Guy's invites smell like semen.
Probably copulated all over them.
 
I DID NOT
 
10:39 AM
I have a google apps account, not compatible with inbox :(
 
I may have spilled some curry, though
 
@Zirak uuuh weird
 
@JanDvorak It changes often, has a high learning curve
 
@FlorianMargaine I'm weirded out. Tried moving the kbd call to the defvar: (defvar key (kbd (car binding))), and now it tell me S isn' a proper prefix ~_~
elisp is weeeiiirrdd
 
Does CRUD stuff well, but once you want to do something a little more particular, it is proportionally more complicated
 
10:41 AM
what's weird is that it works for the other bindings...
 
It doesn't work for any binding, all of them error out with one of the two
@FlorianMargaine I think I get it
defvar declares a global variable
So everything goes aflame
 
I've started using this
(defun bind-key (binding)
  (let ((key (car binding))
        (func (cdr binding)))
    (if func
        (global-set-key (kbd key) (lambda () (interactive) (func)))
      (global-set-key (kbd key) func))))
but doesn't work better
 
You have to do something extra for let to work IIRC
 
there's already (require 'cl) somewhere
 
huh...
Doing C-h c C-a gives: C-a runs the command (lambda nil (interactive) (cdr binding))
Which makes sense because lazy evaluation
 
10:58 AM
grmf
so...
this works:
(setq
 bindings
 '(("C-a" . back-to-indentation)))

(defun bind-key (binding)
  (let ((key (car binding))
        (func (cdr binding)))
    (global-set-key (kbd key) func)))

(mapcar 'bind-key bindings)
@Zirak ^
works with C-z etc
but yeh, elisp is weird...
also, setq instead of defvar because defvar are a pita to debug with
and since it's elisp, it doesn't change much anyway...
so, this works perfectly:
 
@FlorianMargaine I had to do the weird lambda shit because of non-interactive functions
 
(setq bindings '(("C-z" . nil) ; prevents accidental scares
                 ("C-z z" . suspend-frame)
                 ("C-a" . back-to-indentation)))

(defun bind-key (binding)
  (let ((key (car binding))
        (func (cdr binding)))
    (global-set-key (kbd key) func)))

(mapcar 'bind-key bindings)
@Zirak like?
 
...or it may have been an earlier bug
Thanks, I'll play around
 
k
@Zirak do you know M-x ielm?
 
Holy...
 
11:04 AM
looks like you didn't
this is the emacs environment fwiw... so all the variables/symbols are available
 
Fashizles, it works
So what was the problem to begin with...I remember having the basic loop, and extracting it because of non-interactive shit
Probably weird scoping
 
Only sql server would let you create a temporary database, and then not let you delete it because it is in use
 
@Zirak also... (> mapcar dolist)
 
yeah I should've looked into mapping functions first
 
and seriously... ielm is the first thing to open when writing some elisp
I usually write code in that, then copy paste to the ~/.emacs
 
11:11 AM
Wow
 
And now I want to cry. Added ~/.emacs.d/ to the load path, load-filed some file there, and it complained it wasn't found. locate-library finds it just fine. I just wanted some modulairty ;-;
 
Print the load path
 
It's in it
 
Damn
Put the absolute path...
 
11:20 AM
I did
evaling it within emacs works just fine
Aaannnd load-library works
 
uh
things I don't get in emacs: loads
 
Hey
 
@FlorianMargaine Absoluting everything is meh
 
11:26 AM
yeh...
 
Guys quick Q regarding ngTable. Is it possible to display passed items list as it is at first? So no sorting or any of those features?
 
I'll just shove my files into ~/.emacs.d/lisp, add it to load-path, and load-library is my friend.
 
yeah, better, when it works
@BenjaminGruenbaum yo
 
How's everybody doing
?
 
@BenjaminGruenbaum how's the monthly challenge going?
 
11:28 AM
@BenjaminGruenbaum Great. Thanks.
 
Good, going to code it tomorrow. Doing some reasearch.
Woah, I just got two upvotes in a minute for the same 2 hour old question :o
 
@BenjaminGruenbaum Crying cos some guy in C# is trying to code control classes in MVC
 
"control classes"?
 
Web Forms controls
He's trying to port it to MVC
 
Ah. Those controls.
 
11:33 AM
Yeeeeeep.
 
I can see why he'd try to do it.
 
tried telling him to use partials
But he doesn't want to :(
 
Don't bother, just send him towards a good book or a blog.
 
@Sippy I'm not doing anything
 
Any SQL wizards know a script to see who's connected to a database catalog in MSSQL?
Gone single user but it keeps locking me out :@
 
11:52 AM
how can i award my bounty on this answer to my question where he went above and beyond in the comments! stackoverflow.com/questions/21429956/…
 
@Matt 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.
 
@Matt Wait 24 hours, then award it
 
> show 94 more comments
good lord.
@SomeGuy sorry I meant to reply, wat?
 
Lol :-) No worries, glad we got to the bottom of it! Keep my name in mind if ever you see me applying for a job ;-) Good luck! — tim_yates Feb 4 at 12:46
heh
 
33 mins ago, by Sippy
@BenjaminGruenbaum Crying cos some guy in C# is trying to code control classes in MVC
 
12:09 PM
@SomeGuy Ah motherfucker
:P
Didn't even notice xD
 
:P
 
@Sippy I hope you are aware that "MVC" is a language-independent architectural pattern, which defines constraints for information flow between application layers .. not a name of a framework
 
@tereško I am aware, but you know what I meant.
ASP.NET MVC is a specific technology.
 
s/technology/framework made from frameworks
 
@tereško it actually is the name of a framework
look up ASP.NET MVC
which is, afaik, a framework
 
12:19 PM
@FlorianMargaine same way as your name is Gaine
 
stupid comparison
he was talking about asp.net...
 
so , if I talk about ajax, should you automatically assume that I am talking about ASP.NET AJAX ?
 
@tereško The context I gave was Web Forms, which is an ASP.NET tech
 
you also said that some guy is porting them
 
So in that same context, the abbreviation of MVC is more likely to apply to the thing which isn't the concept.
Why are we arguing about this?
 
12:23 PM
because I am easily annoyed by this subject =/ seeing how 99% of topics in are actually about
 
Okay.
 
it really pisses me off
 
tbh, [model-view-controller] is a pretty shitty tag. It doesn't handle a technology but a concept, a pretty wide one at that as well
 
12:46 PM
lol, @Kippie you just annoyed @tersko, a lot of his answers are on that tag.
I agree though, I think these patterns get way too much attention.
 
who ?
 
MGE
Hello, I want to try document.write but in plain text, there is html code but I want to show it as text
 

« first day (1497 days earlier)      last day (3456 days later) »