« first day (1649 days earlier)      last day (3300 days later) » 

6:00 PM
true, I commented on the video
still really neat lol
just funny watching a random video from google and seeing your work in it
showed a coworker as well lol
 
@Loktar :(
 
@ssube Elaborate
 
@copy IIRC, that's not what Norse is about
 
@copy lemme write up some babel, hangon
 
@copy Remind me where you work?
 
6:02 PM
They can tell you if servers in your data center are part of a botnet
 
@Zirak Via email
 
zirak@mail.com
 
/me just updated resume
> 3D spiralgraph credited in google developer video, hired.
 
> in a book written by Simon, it's about Code.
 
How am I able to access all the express functionality through `express()`?
 
6:04 PM
var app = require('express')()
 
@rlemon lol dude my resume is too full with that now
> In a book, in a video, had sex
hired.
 
> MORE THAN ONCE!
 
I'm talkign about the express() function, not the module
 
user1596138
I am so fucking busy
 
@StevensHaen yup, read what I wrote closer
 
6:05 PM
oh shit! Thats right, verifiably 4 times :P
 
@Loktar :P
 
user1596138
I was on schedule to finish this project by June and now I'm trying to do it in 13 days xD
 
@rlemon My question is how do I gain access to all the express methods via this function
 
@copy somem like so: es6fiddle.net/i8t1xekr
 
var app = require('express')()
app.func <- I don't know what else you want
 
6:06 PM
The function returns things
 
@copy you can use switch instead and make it better. Still not real matching, but works for most things.
 
@SomeKittens : that attack thing, according to the info, it's from their honeypot feature in darknet. but that doesn't reflect the all attacks
 
user1596138
@Loktar Nice bro. I've shown that pen to quite a few people it's really really cool!
 
@ssube Can you make it have the stack trace start in line 51? es6fiddle.net/i8t21pni
 
@Jhawins hah thanks, yeah its one of my favs as well
 
6:14 PM
@KarelG Yes, I talked to one of their senior engineers last night
 
@ssube That was always possible by looking at exception.name
 
Was a surprisingly pleasant experience. Too many meetup conversations are just ruffling feathers to appear big and important.
 
@copy Error.captureStackTrace, see stackoverflow.com/q/25020923/617762
 
@copy @Zirak a bit more clever: es6fiddle.net/i8t2c7qr
also class-based, cause I like classes
 
Weirdo
 
6:18 PM
you could make it use a switch or other stuff, I guess
 
@Zirak Oh wow, I searched for that a while ago and could not find it
 
/me clicks link, sees pdf, closes
 
@Loktar me hovers, sees pdf, doesn't click
 
@GNi33 yeah better option :p
any damage I suppose would be done already on my end.. but its a work pc at least
 
6:26 PM
@copy I like it :-)
 
> Dear Mr.AlanT, We are ready to start up with your Project with our excellent team of programmers, Designers & Project Managers. We are 100% confident for a successful delivery of your Project. We are providing our Services to many Big Client Across Globe & are looking for an Excellent Long term Business Relationship with your Esteemed Organization. Please Check your PMB for our company Profile & Our Portfolio. Warm regards
 
My favorite:
> Dear Mr T. Your problem is very much like I have been considering. Assume that we have a consistent and
complete axiomatization of all true first-order logic statements about natural numbers. Then we can build an
algorithm that enumerates all these statements. This means that there is an algorithm N(n) that, given a natural
number n, computes a true first-order logic statement about natural numbers such that, for all the true statements,
there is at least one n such that N(n) yields that statement. Now suppose we want to decide if the algorithm with
 
> As the superior German programmer I am I've already solved the problem in my head as per your specification. I'm
able to deliver a solution in source code in any language that can print a line of text. If necessary, I can also
provide flowcharts and a solution on solid German-made paper.
the origin of the paper is very important
poor american paper can jam those sturdy german printers
 
Ah, thanks for that KurtG
 
^ Speaking of which, if you haven't read 'Gödel, Esher, Bach' yet...
 
6:29 PM
Yello
 
can jQuery be used inline like in onclick="" ?
 
don't use inline
 
aight
 
@BenjaminGruenbaum can you use promises in babel's repl?
 
no seriously, don't do it :P
@ssube they are native, so I assume yes?
 
6:31 PM
@JoJo angular does it and angular is wrong
 
:D
 
@rlemon Why do you opt for no inline?
 
@ssube only in a browser that already supports them, or you can import a library, or write one
 
@rlemon let p = new Promise() gives Promise resolver undefined is not a function
 
@ssube which makes sense, because the promise constructor takes a function argument.
 
6:34 PM
@ApathyBear harder to maintain, no separation of concerns, ugly, etc.
 
noted
 
hmmm
writing functions just to hide() an id is overkill though
 
make it generic then
 
ok
on it
 
sometimes I wonder, where are all the good JS developers
/me is looking at 250-line form validation function
 
6:37 PM
@ssube so does react :p
 
<div class="container">
 <button class="close">X</button>
</div>

[].forEach.call(qsa('.close'), function(node) {
  node.addEventListener('click', hide);
});
function hide() {
  this.parentNode.hidden = true;
}
 
but with react it doesn't feel wrong since its all in JS anyway
 
@tereško In here obv
 
@Loktar I think I want a dudevorce
 
6:39 PM
@rlemon :(
 
@Loktar it's not html, that's the awesome.
 
hi Guys
 
you can keep @darkyen00, I get @SomeKittens
 
@rlemon is just living in the unobtrusive JS world
 
@BenjaminGruenbaum exactly :)
@rlemon deal
 
6:40 PM
Can anyone here explain to me how to use nanogallery?
 
even though @darkyen00 is apparently leaving the dev world soon :(
 
I do this daily.
 
i got it working but i dont want to click on albums , i want the pictures in my photostream to upload
 
this good enough?
function ShowHideElement(elementID, state) {
if (state == "show") {
//
$("#" + elementID).show();
} else {
//
$("#" + elementID).hide();
}
}
 
6:41 PM
@JoJo did I do something personal to offend you?
 
never
 
Please, let us know, we'll do better.
Don't be shy, there is no way in hell you just wrote that code to not insult someone.
4
 
jQuery has a .toggle function ...
 
LOL
 
sorry
teach me :)
im old
haha
 
6:42 PM
omg, I forgot how much I hated promises
 
I mean, why would anyone write a function that takes a string and query by it? It's not SQL, it's your own elements.
 
YES
 
Y U RUN SELECTORS OVER YOUR OWN HTML?
@ssube ?
!!s/hated promises/don't understand promises/
 
@BenjaminGruenbaum That didn't make much sense. Use the !!/help command to learn more.
 
ok so I will use toggle
 
6:43 PM
@rlemon NO
 
@BenjaminGruenbaum omg, I forgot how much I don't understand promises (source)
 
!!s/use toggle/use google/
 
@BenjaminGruenbaum ok so I will use google (source)
 
@rlemon we like the same image apparently chat.stackoverflow.com/transcript/message/22859611#22859611
 
@Retsam POSSIBLY
 
6:43 PM
Anyone used Nanogallery here?
 
@JoJo : please check this and use $(this).toggle(); in the event handling function
 
I totally did not ninjaedit to show the thumb.
 
I mean, maybe if you're homosexual.
 
@KarelG k
 
How do I generate 4 divs in random order with the following rules: at least 1 at most 2 are with class '.a', at least 2 at most 3 are with class '.b'. (Using JQuery)
 
6:44 PM
function toggle(id) {
var element = document.getElementById(id);

if (element) {
var display = element.style.display;

if (display == "none") {
element.style.display = "block";
} else {
element.style.display = "none";
}
}
}
 
No, don't select your own elements, keep a reference.
 
@BenjaminGruenbaum that's not untrue, but I just don't like async in general
 
@Charly what interview/homework is this for?
 
@JoJo WHY ARE YOU QUERYING YOUR DOM BY STRING?
Where did the element come from?
 
@Loktar uh i'll say its some sort of homework
 
6:44 PM
@ssube what part troubles you about promises, I'm no pro but I think I might be able to assist
 
benjamin, i suppose that he doesn't know about events
 
@Charly read your lesson/book then! :P
 
@Charly well, step 1 would be to write code
 
got none
 
@Charly oh wait, can I do it?
 
6:45 PM
I wrote one with 4 nested if else... it's way too big
@BenjaminGruenbaum oh plz
 
use a loop instead, no nesting
 
<div class='a'></div><div class='a b'></div><div class='b'></div><div class='b'></div> - I'm done @Charly now what?
Oh sorry, didn't see you needed jQuery
 
<div class='a b'></div><div class='b'></div><div class='a'></div><div class='b'></div>
^ just confirmed
 
... I mean a function that returns those string...
 
its random so @BenjaminGruenbaum solution is correct
 
6:46 PM
kk
BAM!
now what!?
 
o.O See this is why I don't like asking questions here. ima figure it out on my own
 
@JoJo hit ctrl+k before submitting code
 
now you format it
 
itll format it
 
function fn(){
     var j = $.fn.jquery;
     return "<div class='a'></div><div class='a b'></div><div class='b'></div><div class='b'></div> <script>";
}
Like this @Charly ?
 
6:47 PM
k
 
:)
 
function ShowHideElement() {
    $(this).toggle(function () {
        $(this).show();
    },
    function () {
        $(this).hide();
    })
}
 
@BenjaminGruenbaum +1 no nesting if/elses like he was talking about either.
 
@JoJo read the docs.
 
I'd give you an A- at least
 
6:47 PM
I give up trying to explain myself
 
!!jQuery toggle
 
@Charly You should be more respectful to people who try to help you like @Loktar and myself.
 
@Charly lol if you showed the code and maybe asked how to make it better you would have received a better response
 
I've written code twice for you now, not even a thank you
 
6:48 PM
haha
 
thanks you two now Im off
 
@Charly you're welcome, punk.
 
user1596138
What was the link to that XSS challenge that was pinned here awhile back guys?
 
._.
 
I just went back and read your question @Charly, it isn't very clear
 
user1596138
6:49 PM
I'm mobile or I'd search
 
that one?
 
we do better with code examples of what you've tried. then even if your question isn't clear, maybe your code will show intent
 
user1596138
@HatterisMad that one ^ thanks @loktar
 
at least I am writing it myself :)
 
ok im trying to fix it
 
6:50 PM
just show us what you have so far
that isn't hard. CTRL + A, CTRL + C -> CTRL + V (in a paste service)
 
@Charly do you have to use jQuery?
 
:22859958 psh, tab tab tab enter
 
lol
 
my ankle hurts
 
my god so many tickets...
 
6:52 PM
@rlemon dude. Speaking of that, I might get a standing desk.
I blame you.
you first put the thought in my head.
 
nahh standing is cool
my ankle hurts because I kick so much ass
3
 
@BenjaminGruenbaum ok you dont have to use jquery i just used it in other parts of my code
but wait im really trying to write something
 
@Charly thanks, working on it.
 
@rlemon haha wasn't expecting that response.
I'm going to use that on my kids.
 
no but really
it hurts. stiff rather
 
6:53 PM
its ok i got all the help i need by now
 
@rlemon I got a response on reddit from the video makers
 
See you in the workforce in a year.
 
they put a link in the description of all the stuff
 
it wasn't there when you linked me
I checked
 
@BenjaminGruenbaum trying to use them for the clever error catching
 
6:54 PM
oh really? hah
they must have just added it
 
@ssube show me
 
are you guys saying toggle() takes care of EVERYTHING?
 
@BenjaminGruenbaum @copy mushed promises in and came up with this, but not sure where I want to take it now
 
wtf good is that? how will anyone learn to write on their own?
 
@ssube what's the goal?
 
6:55 PM
`var elemstr = '', emptyCount = 0;
for(var i = 0; i < 4; i++) {if (emptyCount <= 2) {
elemstr += Math.round(Math.random())?'<div class="red"><\/div>':'<div class="empty"><\/div>';
} else if (i == 4 && emptyCount == 0) {
elemstr += '<div class="green"><\/div>';
} else {
elemstr += '<div class="red"><\/div>';
}
}`
 
Format your code (control + k)
 
@Loktar I still don't see it
lots of links. none to your pen
 
i cant type
 
A serious ailment
 
@BenjaminGruenbaum run a chunk of code that may throw an exception. If it does not, pass the return value on out. If it does, go through a list of exception handlers, find the first (or closest, undecided) that matches the constructor(/class) of the thrown exception, call that, and return the return value of that instead.
approximately
 
6:57 PM
$('#myelement').click(function(){
      $('#another-element').toggle('slow');
  });
 
var elemstr = '', emptyCount = 0;
for(var i = 0; i < 4; i++) {
    if (emptyCount <= 2) {
        elemstr += Math.round(Math.random())?'<div class="red"><\/div>':'<div class="empty"><\/div>';
    } else if (i == 4 && emptyCount == 0) {
        elemstr += '<div class="green"><\/div>';
    } else {
        elemstr += '<div class="red"><\/div>';
    }
}
 
!!tell Charly format
 
@Charly Format your code - hit Ctrl+K before sending and see the faq
 
@rlemon wrong video :P
 
@MadaraUchiha you're like the tenth person
 
6:58 PM
@rlemon See? He learned :P
 
well ok thanks
 
@Loktar ahhh I youtubed the wrong video then :P
 
@Charly You don't need to escape / in a string.
 
but for sure the vid was described like I just showed you when you linked it first time
 
My editor says i do...
 
6:58 PM
weird
 
@Charly Your editor sucks.
 
Your editor is a jerk.
 
Komodo edit 9
 
use DreamWeaver
it is so much better
 
@Charly Never even heard of it
 
6:59 PM
yeah use Dreamweaver
 
Use ed
 
Dreamweaver is the best
 
or brackets
 
DW is love,
DW is life.
 
Ive heard of Komodo Edit actually.. a friend of mine swears by it.
 
6:59 PM
or sublime, or atom.io
 
its also pricey iirc
 
@Charly Okay, don't use Dreamweaver, they're trolling
 
wat
 
yeah for serious, Dreamweaver is shit
 
meh, actually in a pinch id use DW.
 
6:59 PM
it's almost as bad as Microsoft FrontPage
 

« first day (1649 days earlier)      last day (3300 days later) »