« first day (1637 days earlier)      last day (3314 days later) » 

9:00 PM
@Steve a link
 
Yes
Specially for images
 
Brooooo
@Jhawins you're a boss :p
 
I tried using meta refresh and javascript lets say if i was to display an image using a page with html and it will redirect to the actual image
 
@Loktar he's hired?
:D
how did he do?
 
Jhawins is Loktar's boss now?
 
9:03 PM
totally
 
he did really well
he isn't "hired" but.. I think there is a really good chance idk
 
since he isnt local I'm sure there are some hoops or whatever
but yeah man he nailed it
 
at least he didn't disappoint your referral :-)
 
9:05 PM
he even busted out some ES6
 
that's awesome great job @Jhawins!
 
showed me something I didn't know
I was like whaaat
 
lol
what was it?
 
I cant remember.. lol it was similiar to contains
but wasn't contains
 
user1596138
9:06 PM
It was String.includes
 
user1596138
Haha thanks for the interview bro
 
yeah np man
 
let lis = document.querySelectorAll('ul.fancy li');
Array.from(lis).forEach(function (li) {
    console.log(node);
});
 
Ill talk to you in private about the company more
like how it is during the day stuff like that
 
9:08 PM
interesting way to work out forEach.call()
 
I'm about to head home though
 
How do you select between options in RegExp with [] ? It seems that [(.{1,3})|(.{10,11})] doesnt wor
 
what do you want to do?
 
I want to select anything between brackets, {} , (), or []
I guess I was entering the XY problem
dont beat me :c
 
Can anyone give me work around im trying to display an image in html which will redirect to different page where the actual image is i want to be able to upload using .html file format on to lets say postimage.org but it keeps give me error Invalid file type
 
9:14 PM
Isn't that tricky because no look-behind assertion?
 
no its not tricky
I've done it
but the code is so long
 
i may be thinking CFM
 
It looks for {}\d ()\d or []\d
 
I was wondering if there is a better regexp way to do this
@Luggage That's the way I've done it, but if you want to capture \d after all that matches for example
you would have to place \d inside each group
which is a pain in the ass
 
9:16 PM
got me, that's all the regex I know :)
 
@Catgocat something like that? regex101.com/r/lA7iN1/3
 
fuckin genious
have a js cookie
NOW, why can't you do [ ... | ...] instead of ( ... | ... )
 
you can
 
oO
 
9:21 PM
I swear god it wasnt working for me
thanks anyways <3
 
@SterlingArcher NodeLists are such a terrible idea, also this is so much nicer in ES6 :)
 
How does ES6 handle NodeLists?
 
@Catgocat Having an OR in a character class would be redundant, because all given elements of the class can match anyway
 
I thought from and forEach was pretty nifty
 
It doesn't in any particular way since they're not a part of ES6 or anything, but it lets you do [...document.qsa("mySelector")] instead of Array.from :P
 
9:23 PM
Wrapping the nodelist in an array bracket?!
 
let lis = document.querySelectorAll('ul.fancy li');
[...lis].forEach(console.log.bind(console));
 
@Loktar you suck
I sent you irc messages like 20 minutes ago
I KNOW YOU ARE ONLINE!
I SEE YOU!
 
Wait what are the ellipses?
 
spread?
 
9:24 PM
\o/
I was right!
 
Talking of ES6, FYI uploaded a few moments ago and completely coded in ES6, bitbucket.org/gso/eonjs/src #codeannounce
 
!!afk "mobile" time
 
If you have many capture groups how can you pack all together so there aren't undefined in the match array? Such as ["[OH]2", "[OH]", undefined, undefined, "OH", "2", index: 2, input: "Mg[OH]2"]
 
Spread reminds me of varargs in Java
 
it's similar
 
9:26 PM
Without the filter != undefined
 
sorry @rlemon lol
was talking to a coworker, I msged you
now Im going home for real!
 
I WANNA KNOW
 
var arr1 = [0, 1, 2];
var arr2 = [3, 4, 5];
arr1.push(...arr2);
Ohh I like that!
 
looks like coffescript
 
user1596138
@loktar cool yeah I might have some questions. I've got stuff to take care of today too
 
9:28 PM
@Jhawins are you willing to relocate?
 
got the regexp working :d tricky one :s
 
@Catgocat ES6? (coffeescript)
 
user1596138
@FlorianMargaine I'm actually NOT willing to work here.
 
user1596138
So yes
 
here = where you currently are?
heh got it :)
 
9:33 PM
24
Q: Abrupt change in moderation staff?

EEAAMyself and a few others just noticed that HopelessN00b and Chris S are no longer listed as moderators. What is the story behind this?

 
user1596138
Yeah here is rural Indiana lol
 
@BenjaminGruenbaum the drama llama is back!
BJB FOR MOD!
 
If just one more person enrolls he is automatically kicked
 
@BenjaminGruenbaum yea I have been following this one :?
I've taken up lurking on Tavern in chat.meta.se
I see all the good meta posts now
 
@rlemon tavern of the meta seems like such a counter-productive waste of time (Sorry Jan), and the company is worse than here imo :P
 
9:43 PM
it is.. interesting
Jan is a completely different person in there :P
 
I want to at least have some excuse for going to chat and not being productive :D
 
Very nice kata codewars.com/kata/molecule-to-atoms I've just completed now, I feel bad for giving up yesterday when I was tired, now I won't win any points >:(
 
@Catgocat what'd you solve it with? Recursive descent?
 
actually iterative regexp matches
I'm going to make a recursive solution now, to make it more compact and elegant
 
@ton.yeung does it count if I installed it but didn't run it?
 
9:52 PM
Wife has given me permission to get a dog and name it Barkov
 
@SomeKittens that's a great name for a dog
That indeed sounds screwy, I'm not on my PC right now so I probably can't help, sorry. TypeScript has a pretty active IRC room though you can try there
@ton.yeung in irc.freenode , #typescript or #typescriptlang don't remember which. You can go there on irccloud
 
!!tell ton.yeung google freenode webchat
 
@SecondRikudo That didn't make much sense. Maybe you meant: tell, tel
 
@ton.yeung Fancy seeing you here
 
@ton.yeung we stole @RoelvanUden from you guys :P
Come, join the dark side, we have cookies :)
Although the C# room is pretty nice, I should probably hang out more there since well... I code at least 10 times more C# than JS.
Also, debates with Reed are usually pretty interesting when we have them
 
10:03 PM
What's wrong with my code?
formula.match(/[A-Z][a-z]?/g).reduce(function(prev, curr) {
        if (curr in prev) {
            prev[curr]++;
        } else {
            prev[curr] = 1
        }
        return prev;
    }, final);
 
@Catgocat My guess? the fact that you don't know what it does :P
 
TypeScript room is here @ton.yeung :-P
 
Of course I know
 
Join us, we have cookies. ;-D
 
I wrote it
 
10:05 PM
@BenjaminGruenbaum Then I can call their leash the "Barkov chain"
 
ohhhhhhhhhhhhh
 
@ton.yeung We have holy wars about them :P There are a few people here that use it. I use it at least :-P
 
I was doing recursive without returning which led to some object keys problems..
 
@ton.yeung You might have it installed already. Installation fails? No templates?
 
10:07 PM
@SomeKittens solid pun
 
@ton.yeung Hm.. have you restarted VS?
 
@ton.yeung Yeah, or a NodeJS project (if you have Node tools installed)
@ton.yeung But if you add your first 'TypeScript' file to a web project, it will prompt you to reconfigure the solution to support TS compilation as well, if that's your thing.
 
@SomeKittens ooh, I proved that erdos-gallai thing once :)
 
@ton.yeung Check your solution settings, it should have a TypeScript tab now.
 
10:13 PM
It was the induction proof, which is probably the lamest one :P
 
@ton.yeung Ohh, that doesn't have settings indeed. A web project would work!
 
@BenjaminGruenbaum pardon the dumb question, but what am I proving?
 
It would appear under Code Analysis tab
 
that, given nodes and # of vertexes, there's only one way to build the graph?
 
@SomeKittens given a sequence of integers (let's say: 1,1,2) that there is a graph with these integers as the degrees of its vertices.
@SomeKittens there is a way, not only one way. Basically this.
 
10:15 PM
@BenjaminGruenbaum Given any sequence of integers?
 
@SecondRikudo yes, well they only proved it for finite sequences but yeah.
(For infinite graphs it'd be pretty meaningless since you can almost always 'borrow')
 
@BenjaminGruenbaum 5,5,6
 
It's called a graphic-sequence.
 
@SecondRikudo The sum of the sequence must be even & some other sums
 
10:16 PM
@SecondRikudo right, and that doesn't hold the equation given as the condition in the link I posted.
 
@ton.yeung Web Essentials and ReSharper both don't play very nice with TypeScript if you've got the wrong versions. ReSharper since 9.1 and Web Essentials should be on the latest for them to play nice.
No, I use TS with ng1.3 :-)
TS1.5 will change a lot with the reflection capabilities, DI and NG2 are great things.
 
@RoelvanUden How's that work?
 
@SomeKittens Pretty smoothly. You just need to install the d.ts files for angular, angular-route and in my case, angular-translate. Then you can just write classes with all the type safety you've come to expect from TS. If you need injection annotations, just declare a static $inject = ['$scope'] kind of thing. Works pretty well.
 
nice
have you found the extra work is useful in larger projects?
 
10:25 PM
@SomeKittens So far, so good. That said, I'm still in the process of taking our Cordova application and putting it into TS. Annotating the code we had with types has revealed some interesting bugs and the way I can interact with others on the team with the compile-time safety is quite something. We're no longer scared of breaking everything with some pretty drastic restructuring. But, I'm not 100% done yet so who knows what I'll find.
 
10:37 PM
@BenjaminGruenbaum when you've got a sec, ping me on FB.
 
Anybody up for hangouts? I got ~1.5 hours (@FlorianMargaine, @rlemon, @KendallFrey, anyone else)
 
@Zirak I could for a little while
 
I got half an hour before I gotta get ready for hockey
music is awesome
 
...I have no idea how to start one
 
10:42 PM
nub
 
I'll join hangouts in a few
 
I probably won't be able to hear, or talk, but I'll join anyway
 
@Zirak Don't forget to delete that
 
@SomeKittens he's gone
he's playing Dragon Age
 
10:49 PM
Too late, sorry
 
Yay, my avatar updated
 
11:12 PM
 
11:54 PM
How do I set jQuery .trim() to shave off commas as well?
Or better yet, how do I strip off of commas?
 
str.replace(/^,+|,+$/g, "")
 

« first day (1637 days earlier)      last day (3314 days later) »