« first day (1990 days earlier)      last day (2951 days later) » 

5:00 PM
spoken like a true windows user :-)
 
Speaking of Windows... a screenshot taker for WinOS?
 
@AwalGarg mtpfs
 
if you're going to keep bumming bad ideas off people, you should go raise some capital
 
@littlepootis the one before the edit is a good idea. thanks
 
just do it
 
5:04 PM
right now I am dealing with the stupid mongo/expressjs stuff. Sometimes I feel like abandoning webdev altogether.
 
@JanDvorak Windows 7+ has a built in screen grabber called "Snippet'.
 
... so?
 
Windows since forever has had PrtScr
 
1.0 says no
It did, but it literally printed screen
 
> @Sterling Archer... Y so serious? Can't handle the truth? lol – Eminem 4 mins ago
> lol
 
5:07 PM
why did that post get deleted? >:(
@BoltClock restore it plox
 
@AwalGarg why not just contribute and get your grade 10?
 
because bugging a moderator in chat is easier
hides
 
s/contribute/answer stupid jquery ques./
 
Hello bros, got a Type Error: _relaxedJson.transform is not a function error. Anyone interrested in helping me ?
 
@Addict make a fiddle/bin/paste with the surrounding code, preferably enough to cause the same error. Something is being sneaky and is not what you think it should be. console.log or debugger; may be enough to show you what's up.
 
5:10 PM
I may have an idea of what is wrong, i'm gonna try this and coming back here @ssube
Thanks !
 
i.imgur.com/VcdEiAJ.png thankfully I had a copy in cache to capture a screeny yay!
what was that tumblr site which collected funny stuff from SE?
 
@ndugger shame ^
 
I grabbed it
 
oh yeah he runs one on twitter iirc. but there is one on tumblr too
bah, gotta get back to work.
 
> work
 
guys :| Who here is good at promises? I got a weird edge-case
 
Any politician should do.
!!welcome raven
 
@raven Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
 
json-generator.com I found this json mock data generator which works perfectly, but unfortunately it doesn't let me add a function that allows me to not only generate the values but the field names as well. Has anyone heard of a JSON data generator that allows fields to be generated too?
 
@corvid you probably don't
but you also haven't posed a real question, with what you've tried and the error you got
 
5:27 PM
@Loktar you know what today is, right?
 
Rift daaaay
wish I had mine :/
did you get your 1-3 week email?
 
no
what's that
 
:/ shit man you might be in wave 2 then
 
i figured
 
it just says your rift will ship in 1-3 weeks
but everyone who got it should be in the first wave I guess
 
5:28 PM
is there a date for said wave 2?
 
lol did you see the video of Palmer delivering the first one?
 
@KendallFrey no, there is barely a date for the first one, supposedly by Wed they will ship
the video with Palmer is SUPER cringey
 
Is it possible to make nested tables look good when they have different headings?
 
I couldn't get my order in for half an hour
so I probably got bumped
 
5:29 PM
@Waxi why would you nest tables?
 
for design
*ducks*
 
@ssube I could use divs, sure, but I'm thinking about making something collapsible, but the stuff inside has different headings, so not sure if it will ever look good. It will look like a table, but it might not be.
 
@Waxi yes, peeps have done it for ages
 
@JanDvorak I'm gonna nest a table right between your ears
 
5:30 PM
The dude he delivered to didn't even have his computer since he had it delivered to work..
people are speculating he is a scalper lol, and if so he must have cringed as it was opened
 
@Waxi if it's not tabular data, don't use tables.
 
@Waxi don't nest tables, make a details panel or something
 
I'll check it out when I get back
!!afk garage
 
@ssube Yeahhhh, that's kinda what I have now, a popup with the details, but entertained the idea of doing everything from within 1 table-like element. But having a hard time visualizing what a table inside a table looks like when they had different headings and couldn't find a good example of it.
 
5:33 PM
@Waxi that's because it isn't good. Usually it's just confusing.
 
@ssube Ok so don't do it...that's good enough for me, thanks. :)
 
Okay, a question... how can I push from a local branch lbranch to my origin's master branch...assuming there is an empty master branch over @ my repo?
 
@deostroll git checkout lbranch && git push origin master
locally you're on A, but you can push it to the server as B
 
Basically, your local branches and server branches are different namespace entirely.
 
217
Q: How do I push a local Git branch to master branch in the remote?

picardoI have a branch called develop in my local repo, and I want to make sure that when I push it to origin it's merged with the origin/master. Currently, when I push it's added to a remote develop branch. How can I do this?

 
5:35 PM
npm remove --save react react-dom
my productivity just jumped up a bit
 
Wow, rlemon, nice beard, how much time did it take you to grow it
 
@rlemon explain
 
6 minutes
 
lol
he spent years gimping it
 
:D
 
5:37 PM
-1
Q: ajax with more than two variable does not work

Sourav Das<script type="text/javascript"> function a(){ var b=document.getElementById('i1').value; var c=document.getElementById('i2').value; var d=document.getElementById('i3').value; var xhttp; xhttp=new XMLHttpRequest(); xhttp.onreadystatechange=function() ...

 
@Mosho popcorn
 
@BoltClock ugh!
 
so here's the problem, getting the error code will prompt the promise to resolve before I can reject it with the appropriate error
 
if you guys want rep, i just added a bounty stackoverflow.com/questions/36203267/…
 
I have this data

 var data = "009272017996BP05000009272017996160322A1022.3614N12356.7210E000.0074531218.6200000000L00367CE0"

 and I want to extract BP05 I tried substring but no luck
 
5:40 PM
Hello everybody
do you know any app to start learning english ?
 
@gtzinos English? Live Mocha
 
Natural language recognition is hard.
 
@gtzinos duolingo?
 
Duolingo
depending on what your native language is
 
@ziGi @littlepootis @apsillers Thank you all !!!
 
5:42 PM
Hi, how can I extract BP05 in my example ?
 
Talking to people who speak english is a pretty great app to learn english
 
@jemz I guess it really depends on if the format is always the same.
 
yes it alwasy the same
 
@jemz what exactly do you mean by extract? Get whatever letters are at that position?
Always get the BP05?
 
Always at that location?
 
5:43 PM
@rlemon dick
 
data.substr(12, 4)
 
Is this not our Mosho?
 
@Mosho flag
 
@BoltClock ahh right, thanks!
@littlepootis I do work >_<
 
@Mosho what happened to your face?
 
5:44 PM
@SterlingArcher I hope it is. The previous avatar was terrible.
 
@ssube, this is the output of substring(12,4) => 72017996
 
@Mosho did this yahoo answers user stomp over your face?
 
@Mosho shut up sharon
 
@jemz it's really not
oh, you're using substring
use substr
 
slice
use slice
 
5:47 PM
@ssube, works in substr :), @JanDvorak I will try slice
 
don't try slice
you're being trolled
substr is appropriate for strings, slice is for general arrays
 
You can slice both arrays and strings, but you can't substr arrays.
 
but slice isn't as optimized for variable-width encodings
 
Is it not?
 
strings aren't meant to be used as immutable arrays
 
5:48 PM
!!mdn substr
 
strings are utf8 or 16, so random access will never be great
 
@SterlingArcher it is I <3
 
that's why they have their own methods
 
@Mosho nice, thanks :)
 
5:50 PM
if I read correctly, substr exists because jScript introduced it.
 
@ssube, ok thank you I will use substr
 
@BadgerCat nice, thanks :-)
 
@littlepootis for starters, make sure your arguments are such that the methods return the same substring
 
Is there a better, less redundant way that I could write this?
// Shorthand HTTP method wrappers
export function del (path, action) { return register (DELETE, path, action) }
export function get (path, action) { return register (GET, path, action) }
export function post (path, action) { return register (POST, path, action) }
export function put (path, action) { return register (PUT, path, action) }

// Shorthand for grouping routes under a parent path
export function group (parent, routes) {
    return {
        del (path, action) { del(parent + path, action); return this; },
 
5:52 PM
@JanDvorak substr is only for web browsers for backwards compat. v8 doesn't have to have it
some annex b in the current spec somewhere. bleh.
 
link?
 
@ndugger Can prob create a helper curry function for your register calls
 
@JanDvorak mdn
 
@littlepootis didn't find it there.
 
5:55 PM
mdn is generally web oriented, so I don't expect it to be documented there
 
> Defined in the (normative) Annex B for Additional ECMAScript Features for Web Browsers
 
I have no idea what the fuck broke especser on my pc, but not on others'. fu @littlepootis
 
@AwalGarg clear cache? use a different browser.
 
@SomeGuy NPM FizzBuzz has been implemented.... I do not know if I am supposed to be happy or sad :-(
 
its the same on chrome too
 
5:56 PM
@BadgerCat np, I guess :P
 
function poop(corn, path, action) {
	return register(corn, path, action);
}

const del = poop.bind(null, 'DELETE');
....
// export them
 
@ndugger
 
@rlemon That's what I said ;-P, Just with no fancy codes
 
How does one get the raw version of this file: chromium.googlesource.com/chromium/src.git/+/master/build/…
 
@deostroll append ?format=TEXT
 
@Neal wanna assign me a small docs task for JS? :P
 
if you're wgetting, it should work
 
@AwalGarg hmmm?
 
@Neal on the docs se site. I presume you are active there still
 
6:00 PM
@AwalGarg Here and there. How do I "assign" tasks?
 
by pinging me here
wanna get started with it. can't be arsed to find something to work on :/
 
crl
@rlemon react hater?
 
@crl victim
 
crl
react not understander :p
 
6:03 PM
@Neal how do I comment on an existing doc?
 
@rlemon

// Internal wrapper for shorthand HTTP methods
function shorthand (method, path, action) {
    return register(method, path, action);
}

// Shorthand HTTP method wrappers
export const del = shorthand.bind(null, DELETE);
better?
 
Well i'm back didn't figure how to solve my issue. I'm using a homemade driver npm module. This npm module use Babel, and here is the compiled code: pastebin.com/KEyqFPJu . I can call some of theses methods and they work, but I need to call the listFiles() one. This method use the relaxedJson npm module. But I catch an error: TypeError: _relaxedJson.transform is not a function. (Line 184)
 
@ndugger sure, but DELETE should be a string no?
 
it's in a constant above
 
@AwalGarg You can't.... it is silly... You can only edit and put it in the edit queue, then comments can ensue.
 
When I console.log the _relaxedJson object @ line 183, it's empty. Or if I console.log it just after it require, he is well formatted and containing all that it have to. Any ideas ? :/
 
@AwalGarg approved :-)
@Addict What does your untranspiled code look like?
 
I'm giving you this @Neal,
 
crl
the same split on multiple files
 
By the way i'm sorry my english is probably bad and I'm new to Babel and Javascript in general.
 
6:08 PM
@Addict giving me what?
 
Untranspiled code
 
crl
well meteor magically inject the relaxed json I guess?
 
@Addict ok... so where is it failing there?
so import {transform as jsonTransform} from 'relaxed-json'; is not working it seems?
 
@Neal I think we should have sections of ways to do common things instead of the primitive features of the language/environment. The latter is already available spread across the internet, and it apparently isn't helping newbies. Generally, a newbie doesn't want to know what are Promises and what they can do for him. He wants to know how he can do something, and the answer to that is to use Promises. Or atleast that's what I think is the aim for the docs site.
 
6:11 PM
The failing is on the Transpiled code given above. Line 183
 
@SterlingArcher Do you know about the bot's vendetta plugin?
 
@AwalGarg So write up some examples :-)
 
crl
module.exports = new Number(5)
 
@Zirak do I want to?
 
A few years back, jAndy trolled me in an annoying way one time too many. Now whenever he posts a message in the room, there's a small chance the bot'll reply with "The Game".
 
6:12 PM
Well I guess it works because on the Transpilled code, When I console.log my _relqxedJson object at the entrance of the code, it's functionnal and contains the right methods. Or at line 183, _relaxedJson appear to be an empty object.
 
@rlemon I was able to get rid of the "shorthand" function, and just do the bind directly on my register function. Works like a charm, and gets rid of the redundancies. Thanks
 
@AwalGarg So you can comment and/or reject
@AwalGarg that is just a draft
How did you even find that?
 
crl
donne-moi cinq
 
@Neal when I started editing it, it said someone else is writing so I can't
 
6:14 PM
@AwalGarg wtf... thats silly
@AwalGarg that is just a warning
you can still submit your own
he never submitted his for review
 
@ndugger bind (aside from thisArg setting) is super handy for preseeding
 
 
add 3 more for sandbox
 
eh, a bit less, some were troll echoes
 
@crl "ReferenceError: Buffer is not defined"
 
crl
6:23 PM
!!> Math[String.fromCharCode(80, 73)]
 
@crl 3.141592653589793
 
Any idea Neal ?
 
@Addict hmmm? sorry I was working. Whats up?
 
I was exposing you my issue above but you didn't notice
 
@KendallFrey ping
 
6:35 PM
@rlemon KendallFrey is afk: garage
 
So, I've been rewriting my back end framework to be functional, and less restrictive like a framework, and just a set of help functions instead. My router is crazy flexible... paste.ofcode.org/pJDCqkmFJt2uTRsZZ8bkhi -- Obviously, you wouldn't write routes like this, but you get the idea
 
I have <a-zA-Z>:<0-9> (key, : as a delimiter, numeric value) and atm there is a bug where I'm getting that repeated on a single event -- I don't control the other code and will likely be waiting till tomorrow for a fix on that. so for today I just wanna detect that with regexp and split them on my end.
 
crl
like koa or express so?
 
so ABC:123DEF:456 should be split where 123 meets DEF
 
heh haven't heard koa in a while
 
6:38 PM
Pro tip: when choosing between flexibility and usability, go for the latter.
 
I used to idle on their channel, and we would randomly say hi.
 
@crl It feels a bit like express, but I don't make my own request and response objects. If they want to manage the response and end it on their own without one of the helper functions, they can access the real response object in the callback
I only want the library to be a tiny wrapper
not a full framework
 
@rlemon \d\D ?
 
router.get('/some/path/here', async (request, response) => {
    // can either manage the response themselves
    // or use one of the included helper functions to return specific types of data
});
the request and response are the same ones created by the http server
 
nodejs or php ?
 
6:40 PM
@JanDvorak close
 
@gtzinos node
 
!!> "ABC:123DEF:456".split(/\d\D/)
 
@rlemon ["ABC:12","EF:456"]
 
crl
yea, I'm actually a node noob that never seriosuly used the core http
 
@rlemon use match and the resulting groups
 
6:41 PM
Oh, right...
Do a full match instead of a split, then
 
.match(/[a-zA-Z]+:[0-9]+/g)?
 
guys can i insert a script into a picture file ?
 
@gtzinos ... no.
 
That sounds extremely sketchy...
like you're trying to introduce a worm
 
so how a picture can be a virus ?
 
6:44 PM
@gtzinos .png.exe ?
 
But you can have an HTML page with nothing but an image and a script.
 
hmm so its .exe file
 
With window.open, does anyone have issues with the left attribute not working?
 
if there's a bug in the image-processing software
 
Hey would anyone how to add to this regex to prevent these characters: '&', '+'?
/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9]).{8,}$/
 
6:44 PM
more likely, it's not an image
 
a .png that is actually a .exe, that some other app modifies back into a .exe and runs?
 
@CarlEdwards why?
 
@CarlEdwards if you want to prevent those characters, just search for the characters
 
hmm ok
 
working on a password regex
 
6:45 PM
18
Q: Find Virus in an Image File

kmecppI just received a .jpg file that I'm almost positive contains a virus, so i have two questions about what I am able to do with the image. My first question originates from the fact that I opened the file once and the program I used to open it gave the error "invalid or corrupt image". So i want ...

 
*password validation
more less a combination of both
 
Why do you want to restrict the user in what password to use?
 
Hey can anyone help me?
I need a solution to check if child elments are hidden if true hide parent div.
 
@user1551496 Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
 
Guys i will work as a software tester using selenium
 
6:46 PM
just followin orders
 
@user1551496 What have you tried so far?
 
part of a project requirement
 
what do you think for this job
 
1 message moved to Trash can
@user1551496 Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com or pastie.org
 
$('.month').each(function(){
	if ($(this).find(".layout_upcoming .kalenderseminar:visible").length > 0)
	{
			$(this).show();
		}
	else {
			$(this).hide()

		}
})
i try this with jquery
 
6:47 PM
do developers make fun of other developers who dont use a mac but windows?
 
@CarlEdwards school, or job? If the latter, speak up.
 
@overexchange I feel like you're spamming and I don't like it
 
@anatp_123 mac sucks
 
@anatp_123 if you're not running the same OS as your servers, there might be something wrong
 
freelance
 
6:48 PM
@ssube Actually Am scared of wix and vaadin
 
I trigger it with a click event
 
2 messages moved to JS trash
 
@ssube depends on if you care about a server
front end designers don't gaf
and shouldn't
 
@rlemon if you don't love your servers, you can't expect them to love you.
 
@CarlEdwards then educate your client in security.
 
6:48 PM
I'm making a query builder where people can drag logic blocks onto the screen and define and/or relationships between them, I was thinking maybe canvas would be a good thing to use, to let them drag blocks around and hook them together with (and) or (or) relationships. Sound plausible? or should I try just using regular html?
 
Because vaadin is generating both java(backend) and html file
 
if you don't work on servers, you can expect not to care about servers :D
 
and unloved servers stay up late, smoking cigarettes and getting viruses
 
a poll ( mac vs windows vs linux )
 
@gtzinos no
 
6:49 PM
@gtzinos nope
go check the SO survey results if you care
 
hehe ok ok
 
use whatever you like, don't bitch about others choices. rejoice
 
@rlemon well what do u use ,mac?
 
*you
 
no
 
6:50 PM
i dont find a reason to use mac
so why to pay so much money ?
 
Working on that but doesn't look like I'm changing any minds
Can I at least see what it would like like?
 
because personal productivity is somewhat subjective
some people prefer the tooling a mac comes with and the OS UX
I personally do not, but whatever.
 
@gtzinos Why do you care what other people use?
 
all the power to you
 
especially information design synergy architecture rockstars
 
"people" in the loosest sense
 
@Zirak i try to find a reason . i like to learn about everything
 
@gtzinos Wanna hear some cow dung factoids?
 
@gtzinos i have windows 7 , old labtop so was thinking should i do mac???
 
6:52 PM
Or the specifics of how exactly your parents loved each other?
 
ahahahahaah
me too. windows 7 with an old tower
i think windows 7 are more user friendly from 8, 10
 
POB
 
@ndugger const DELETE = 'DELETE'; I really hate this kind of coding
 
return { params, ...complexRoute };
}
catch (e) {
    console.error(e);
}
 
I actually didn't mind windows 10, but there was no release candidates for my mobo drivers. so back to 7 on my gaming pc
sucks.
 
6:53 PM
It accomplishes nothing except a different colour in your syntax highlighter
 
@ndugger return something? mebbe we do, mebbe we don't. What's it to ya?
 
means time for an upgrade
 
@rlemon me too . problems with drivers
 
windows 7 certainly more user friendly than 8, but I prefer 10 to 7. I get lost every time i end up with a windows 8 pc that is "broken"
 
aw sweet, that function can return true, false, null, or two different kinds of objects
 
6:54 PM
10 was noticeable faster when gaming vs 7 on the same hardware
 
@Zirak The only reason I do that is because I'm exporting them as well. It will help the end user to not make mistakes; at least, that's the justification
 
@rlemon nice beard
 
nvm found it.
 
@ndugger exporting them, but not noting that they're HTTP methods
 
Would you rather I put them in a dictionary?
router.methods.___
 
6:55 PM
a frozen dict, probably
 
@Abhishrek Harry Potter starts out vaguely similarly
 
maybe a full blown enum
 
I'll take it into consideration
 
and ffs, return type invariance is a thing.
usually a good thing
 
6:56 PM
this is much better than harry potwalker.
 
@ssube what/where?
 
@ndugger What if you define a route to /user/<id> and someone actually types in /user/<id> ?
 
@ndugger don't return more than one type.
 
crl
const NULL = null; // gift for Zirak
 
returning null, a boolean, or an object is confusing
really confusing
 
6:57 PM
@ssube I can't return null or an object?
 
null and object go together, true and false go together, etc
 
I dunno, an object or null seems fine. It's not like an object, or a string, or a ___
 
throwing is excluded, too
 
Give me a line number; I'm not following
 
but null, object, true, false, or nothing at all is pretty bad
 
6:57 PM
Line #83 is smelly
 
@Zirak I'll test
 
crl
null is the 'neutral' element of objects body
 
Yeah, 83 definitely is, thanks
 
@ndugger 63, 79, 84, 89, 93, 96
 
@ssube The returns you see there are from a find cb
 
6:58 PM
@Zirak ah yeah
just 93 and 96, then
 
The silent errors thing is a bit weird
 
I'd let them bubble
 
Oh, I forgot to return in the catch
 
@ndugger that's what I'm getting at. Good to know it's just missing a return.
 

« first day (1990 days earlier)      last day (2951 days later) »