« first day (2197 days earlier)      last day (2750 days later) » 

2:00 PM
new RegExp(inputFromExternalSource).test('some string');
 
<3 @BenjaminGruenbaum and @OliverSalzburg :)
 
!!pizza 1920 1080
 
pizza party!
 
2:02 PM
!!beer 1920 1080
 
@PeeHaa That didn't make much sense. Maybe you meant: bees
 
I am dissapoint
 
!!beerbros
 
@rlemon That didn't make much sense. Use the !!/help command to learn more.
 
no cap
you don't make sense
!!module or exec
 
2:03 PM
@rlemon module
 
@rlemon Have you played The Witcher 3?
 
I own it, but my pc needs some updates
I refuse to play at unstable framerates
 
Do you know if prior games are a prerequisite for playing?
 
no clue
 
technically, they aren't
 
2:06 PM
ohai
 
though I assume there's some background you miss out on
I only played it for a bit before getting bored
o/
 
While I am here. Could somebody tell me my stupid?
new RegExp('^[a-zA-Z0-9 \-./]{1,5}$').test('1234#');
> true
What am I missing here?
As in how does that allow #
 
new RegExp('^[a-zA-Z0-9 \-./]{1,5}$').test('#'); // true
 
i doesn't accoring to my test: regex101.com/r/7BaU70/1
 
lol
 
2:18 PM
@PeeHaa .
 
It's in a character class?
 
@PeeHaa you forgot to escape your backslashes
 
@rlemon Are you laughing at me or with me? :P
 
use a regex literal next time
 
2:19 PM
 
@KendallFrey I can't
 
then escape your string properly
 
new RegExp('^[a-zA-Z0-9 \\-./]{1,5}$').test('1234#'); // false
 
@KendallFrey That what I have been trying to do
@FlorianMargaine Sorry for being an idiot, but I don't get that
 
!!> '^[a-zA-Z0-9 \-./]{1,5}$'
 
2:20 PM
@KendallFrey "^[a-zA-Z0-9 -./]{1,5}$"
 
@PeeHaa double backslash
 
that's what your regex actually ends up being
 
The backslash should escape the - which has meaning in the character class
 
you need to escape the backslash with a backslash, or it's eaten by the js string
 
you didn't escape the backslash
 
2:21 PM
hahahahaha
 
'\1'; -> "1"
 
Yeah yeah
 
you didn't escape the backlash either
 
1 min ago, by PeeHaa
@FlorianMargaine Sorry for being an idiot, but I don't get that
tnx all
That was indeed rather stupid
 
you don't have this issue in regex literals, which is why people recommend you to use it
 
2:22 PM
I think his regex comes from data
 
3 mins ago, by PeeHaa
@KendallFrey I can't
 
let myRegExp = eval(`/${regexString}/`); // :)
 
@Luggage You should be careful with sharing stuff like that with me. It will end up in production
 
Don't. :) Also it doesn't actually fix the bashslash issue. That was a problem with the string literal itself.
 
Unrelated: did you people ever sort out cap's google search thing?
 
2:26 PM
Hello, all
 
@SouthpawHare Welcome to the JavaScript chat! Please review the room 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.
 
@PeeHaa nothing to sort, they removed the api
 
Let's give cap a neural network.
With all the transcripts available, we can probably train up a full @rlemon generator.
 
Hey there
Someone good on wordpress ?
 
i don't know exactly, my firefox start to mix up like this and show the text blur and ... just like this pic i've taken
 
2:28 PM
we don't do wordpress here
 
i try to make a script run, but only work BACK END and not front end
 
@Luggage there is probably enough data
 

PHP

Support group for those afflicted with PHP. Don't ask to ask, ...
 
make a not-so-clever bot
 
So, I have a custom-made AngularJS control that is basically a searchable typeahead textfield
 
2:29 PM
Right. I was being half-serious. I wonder what all the transcript data may actually be used for...
 
There's been a ridiculous amount of discussion on making amazing chat bots, but no one actually does the work.
 
@PeeHaa I know, that was just fyi
 
I scraped the transcript last year
 
2:30 PM
@MadaraUchiha @Luggage Thanks! Yea I figured the second one was better, I think there was a scenario with var deferred = @.defer(), where if you had some nested promises in services/factories and an exception occurred in one of the nested promise's .then's, then it wouldn't ever return the error. Oh well though, I will just stick to the second syntax of return $q().
Thanks!
 
@Sandro is that a screenshot?
 
I'm trying to make it so that it counts as empty for purposes of form validation before an item has been selected, or after you start typing/backspacing again.
 
yes
 
@rlemon Wasn't @AwalGarg working on a headless cap.
Just keep annoying @AwalGarg
 
@KendallFrey I think a real chat bot is hard, but still.. that transcript data.. hm.. ohh.. we can training it to detect when someone is about to be kicked..
 
2:30 PM
@AwalGarg
 
the text flying while scrolling
@littlepootis
 
@PeeHaa that is if he doesnt have you on ignore
 
i bought this laptop last week
 
@AwalGarg is in love with me
 
2:31 PM
i fear about my graphic card
 
@rlemon He's using a different client, remember?
 
Yes, that's probably what's wrong.
 
@PeeHaa Careful, he's got like...80% of the room on ignore.
 
I.e., its value is not related to the text itself. Rather, the text populates options in a dropdown, and then clicking a dropdown item associates it
 
but why it doesn't shown in different browser
 
2:31 PM
@Sandro 90% it's not your graphics card
 
Seriously?
 
He wrote his own headless client for SO Chat which doesn't support ignoring yet.
 
hehehe
 
AHH
is it a firefox bug
 
@PeeHaa Yea, which is hilarious, because we don't know which user is actually ignoring who.
 
2:32 PM
@Sandro Does it happen for any other browser?
 
Well, you can know if someone's ignoring you.
 
@PeeHaa yes and no, yes he has everyone on ignore because we're "noise" and his time is way too valuable -- but he constantly is checking what people say anyways
so it's pointless
 
@KendallFrey no
 
Does it happen for any other webpage?
 
@Trasiva I know everyone who ignores me :D
 
2:33 PM
I haven't seen Greg in a while.
 
Wait, why am I doing your debugging?
Figure out the contributing factors and form a testable hypothesis
 
@rlemon Wait wat. Is that a thing?
 
testicular hypo-what?
 
@KendallFrey it just happen one times today
 
@rlemon No, I mean which Ignore Greg user is ignoring who.
 
2:34 PM
If it only happens once, it's not a concern
 
and fixed by restart firefox
 
This is a general rule, with exceptions such as death
 
Anyone interested in discussing the situation I posed?
 
what is the solution @SouthpawHare
 
I'm quite new to Angular. Help is much appreciated.
 
2:36 PM
@PeeHaa yea
You can't start rooms with users who ignore you. There is a UI check you can do
Or write a script
 
@Sandro
Whoops, sorry
 
I've seen an uptick in help requests for Angular. Is it because Angular 2 or because more people are using it?
 
Angular has been plaguing us for a while.
 
@Sandro I don't have a solution. I'm struggling to understand some core concepts.
 
i mean about your issue not mind
@SouthpawHare
as @KendallFrey said i'm waiting for death
lol
 
2:39 PM
 
@Sandro That's not at all what I said, but sure
 
Mr the Plague
 
Well, my issue is that I have the rough framework of a searchable typeahead field created by someone else, and I'm trying to make form validation work for it
 
You're not cool until you skateboard in a server room.
 
@SouthpawHare didn't get u
 
2:41 PM
I'm afraid I still wouldn't be cool.
 
Pardon?
 
@Luggage you are wonderful
 
@SouthpawHare er.. he's not going to understand you..
 
@Luggage Why not?
 
@Luggage get more twizzlers then
 
2:42 PM
He doesn't understand most of what any of us say.
 
@rlemon lol tnx
 
Language barrier.
 
Okay...
 
@PeeHaa gist.github.com/rlemon/116624493465f2f7018d will make anyone who ignores yous grav red. but doesn't check when they unignore you
so they stay red till you reload
 
Well, I'm asking anyone and everyone.
 
2:44 PM
If asked how many languages you speak, can you include programming languages? Can programming languages even be spoken and make sense?
 
Minimized?
I don't include programming languages because that would make me an insufferable blowhard.
 
Water cooled!
 
@rlemon ty
 
@Trasiva You ever try that thing where you boil water in a plastic cup?
I love doing that with campfires
 
I've had a girl once ask me to talk dirty to her using things like html/css. Suffice to say it didn't go well.
 
2:47 PM
<blink> "so dirty... tell me more"
 
"ohh yeah you like that open bracket html close bracket"
 
"I don't use doctypes."
 
lol
 
"blink"
 
"you like that big font don't ya, a whopping 12 px"
You sure you haven't done this before?
 
2:50 PM
Sounds like she as looking for me.
 
yeah next time i'll pass you by reference
 
asimovinstitute.org/neural-network-zoo/# The neural network zoo (An overview of NN types)
 
@KendallFrey Sounds like something I should try tonight!
 
It's more impressive with a campfire, but it should work perfectly on a stovetop
In a campfire, the top of the cup melts, right to the water level
 
Wait are you trolling? The cup just doesn't melt, from the bottom?
 
2:54 PM
@Waxi Looking at your <body> makes my <head> throb
 
get out
 
@KendallFrey good one.
 
@Waxi No, the water absorbs most of the heat, so the plastic can't get hot enough to melt. This is the amazing bit.
 
@KendallFrey I read that when you do this, the water actually super boils, so it don't have the bubbles too.
 
Define "super boil".
 
2:56 PM
I'm gonna make you non-standard by removing your <html>, leaving you with a naked <body>
@Trasiva It boils normally, at least when I try it
 
I'm gonna suck the shit out of those <tfoot>'s tonight.
 
With a smooth cup I guess it could probably superheat
 
heck yes
science is fantastic
 
Mah bad bro.
 
2:58 PM
@Waxi you sure do a good job filling that <frameset>
 
Of course Waxi takes shit to the weird direction.
 
I'm gonna insert into your dom like you've never been inserted before.
Sweet talking my code like that.
 
@Trasiva you can do the same with a balloon full of water
 
Tattoos of code, cool or tool?
 
@Waxi tool
 
3:01 PM
Tattoos of tools otoh
 
If people can get tattoos of scripture or verses, why can't I get a line of code?
 
you can
either way it's tool
 
lol
 
Get a tattoo of the planet.
___________
 
@Luggage Doesn't the flat earth society have members around the world?
 
3:03 PM
wahey
 
*all around the globe
 
Yeah they do, I would know cause I'm a card carrying member.
 
@ivarni :)
they have cards?!
 
 
3:04 PM
the fact that you're a flat earther doesn't surprise me
not even in the slightest.
 
Wow this might take the cake for being awesome and terrible at the same time...
 
Just terrible.
 
He probably also demands 'fisticuffs' when m'lady's honor is infringed upon.
 
@Trasiva he would first have to respect them
 
Zing!
 
3:06 PM
Are we talking about Waxi or Trump?
 
@rlemon Yea, I guess that's a pretty non-existent prerequisite there.
 
omg.. Waxi IS Trump!
 
@Luggage That's an insult to Trump.
 
I'm treading carefully with what I say. I don't want Madara to come back and scold me.
 
user1596138
@Loktar did you get the new Forza
 
3:07 PM
nah I'm not a racing guy
got BF1
 
user1596138
It's open world :P
 
user1596138
Nice
 
Open world racing = rally racing?
 
@Loktar stream some BF1
 
yeah that's the trend with racing games now it seems
 
user1596138
3:08 PM
Do you have any thoughts on the $100 price tag (and already announced DLC that costs more)
 
@Loktar Did you pick up Civ 6?
 
Need for Speed Most wanted, the Crew, ect.
 
@Loktar Xbox Live? Wanna be my e-pal? I could use some squad mates.
 
user1596138
@Waxi No it's like grand theft auto
 
@Trasiva nah will wait
@Waxi PC :p
 
@Loktar I'm doing the same thing. Because holy fuck, is that game a black hole.
 
user1596138
I kept saying I'd get Horizon 3 on release day but I have never paid $100 for a game..... Seems ridiculous
 
@rlemon Well that didn't take fuckin' long, lol.
 
@rlemon but I can play the PS4 on my phone.. or vita :p
 
@Loktar DOESNT MAKE THE COMIC ANY LESS FUNNY
 
3:09 PM
One of our highest ups wrote a blog you guys might like: Characterizing Resiliency Risk to Enable Prioritization of Resources
It's pretty interesting. It's also some of the stuff I've been personally working on
 
The gaming market for the last 20 years: "NINTENDO, FOCUS ON FUCKING GAMES."
Nintendo for the last 20 years: "You said you wanted gimmicky hardware, the same few series re-hashed over and over, and effectively zero 3rd party support? YOU GOT IT!"
Gamers: "WTF? NO, give us normal fucking hardware with some fucking GAMES. Remember the SNES? THE N64?! DO THAT."
Nintendo: "K GUYS HERE'S A GAMEBOY YOU CAN PLAY ON YOUR TV!!! LOOK, ZELDA AGAIN!"
Gamers: "Whatthefuckgoddammitassholeshitfuck..."
LOL
 
user1596138
lol we never even got a Wii. Nintendo has been dead to me since Billy Hatcher
 
@Jhawins I still have all the systems
but will wait on grabbing a switch
I'm even getting tired of Mario Kart 38 :/
 
3:14 PM
ha! was just watching that
@KendallFrey
my favorite is the panda
"its this tedious obsession with my personal affairs..."
 
user1596138
@Loktar I only kept my N64 and my gameboys lol
 
guys :| I have another react question. Is there anything wrong with this?
  componentWillReceiveProps() {
    const node = findDOMNode(this.container);
    node.scrollTop = node.scrollHeight;
  }
 
user1596138
Oh and the super nintendo with the cartridge door jammed shut
 
@corvid why not on didUpdate?
 
@Loktar that's probably why, thanks for the help
 
3:19 PM
could probably use a ref as well instead of findDomNode
 
user1596138
@corvid Yeah don't use that
 
user1596138
That will happen waaaayyyy too many times
 
^
 
user1596138
> One common mistake is for code executed during this lifecycle method to assume that props have changed. To understand why this is invalid, read A implies B does not imply B implies A
 
user1596138
Why would the scrollHeight change when you get new props anyway? Why not just watch for page resize or whatever
 
3:20 PM
> Invoked immediately after the component's updates are flushed to the DOM. This method is not called for the initial render.

Use this as an opportunity to operate on the DOM when the component has been updated.
@corvid ^
 
> If you immediately know the candle light is fire then the meal was cooked a long time ago.
 
just so it's actually explained on why I said that :p
 
now I just have to find a way to animate scrolling :| without jquery, limiting the stack overflow answers a lot
 
So, find last child and scroll into view?
 
3:24 PM
eh nm... the options are only supported in FF :/
to actually animate it
 
It only has to work on Chrome
 
yeah chrome doesn't support the animating either
it just pops it into view immediately
rather than smoothly scrolling it
 
I'm sure the math to interpolate it is not terribly complex, just ugly
 
is this a valid empty json string?
var jsonObj = "{}";
 
yes
 
3:28 PM
@Luggage ty
 
user1596138
!!> JSON.parse('{}')
 
@Jhawins {}
 
user1596138
!!giphy easy button
 
You can always just try to.. yea.. what @Jhawins just said.
 
3:28 PM
haha
 
user1596138
:P
 
i think I see what you mean
var jsonObj = JSON.parse('{}');
probably will make it easier to push values to it?>
 
Yea, now jsonObj will be the JS object that was serialized in the string.
assuming the string was valid JSON, which this example is.
I assume the real one won't always just be '{}'.. ?
 
Why would you ever want a string of an empty object?
 
right, I want to add to it on the fly
can you do like you .push to an array?
 
3:31 PM
yea, but the starting value.. it sometimes already HAS values, right?
 
just.. add the properties
 
ok
 
Hello, I have a question about Redux Form
I'm trying to use the formValueSelector function described in this example in the documentation
When I use it, though, I get this error at build time:
TypeError: (0 , _reduxForm.formValueSelector) is not a function
Is the formValueSelector still a part of Redux Form? I've already run into problems with some of the examples being out of date, so I'm not convinced the formValueSelector function actually exists
And I wanted to double-check before I spend a lot of time debugging my error
:P
 
hi...i´m having a problem creating a ul dynamically, the thing is..i´m losing the attributes that i have set on my index file...i have seen a lot os post saying that i have to refresh..but it simply doesn´t work...this is what i have on the index file:
<ul id="listaNoticias" data-role="listview" data-split-icon="info" data-split-theme="a" data-inset="true">
and this is on my js file:
items='';
	$.ajax({
	    url: '../data/noticias.php',
	    dataType: 'json',
	    success: function(data, status)
	    {
	        $.each(data, function(index,item)
	        {
		        //$('#listaNoticias').append('<li><a href="#"><h2>'+item.titulo+'</h2>'+ '<p>'+item.texto+'</p></a></li>');
		        items += '<li><a href="#"><h2>'+item.titulo+'</h2>'+ '<p>'+item.texto+'</p></a></li>';
	        });

	        $('#listaNoticias').html(items);
	        $('#listaNoticias').listview('refresh');
	    },
what am i doing wrong?
 
item is a string?
 
3:40 PM
it works...only the rows appear different that if it was harcoded..it is suppose to have a data-split-icon="info" and instead it only shows a simple listview
@rlemon do you think that could be the problem?
 
why not start debugging a little
log some shit
see what's happening
 
i have also done that...has you can see i have a commented line where i am doing things differently but the result is the same...
thank you for answering anyway..regards
 
oh ffs. So, bluetooth headphones won't give out sound. They successfully connect, but they don't show up in the volume control panel. So I followed this arch guide, which is based on the assumption that in GDM, another pulseaudio session is wrongfuly running. So when I follow the steps to stop it and reboot, now I find no pulseaudio daemons running.
 
@rscnt Welcome to the JavaScript chat! Please review the room 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.
1 message moved to Trash can
@rscnt 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, pastie.org or a demo site like jsbin.com
 
I just grepped through the source code for Redux Form, and it looks like formValueSelector doesn't appear anywhere in the code. Does anyone know what has superseded formValueSelector?
 
3:48 PM
1 message moved to Trash can
@rscnt 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, pastie.org or a demo site like jsbin.com
 
Anyone knows why uglify would complain about this:

https://gist.github.com/rscnt/df7f18a14bc83351f16d9db9b3227877


Since that's valid javascript, it seems like an odd issue to me, and I haven't found any documentation or similar issues online...
 
var GlobalOptions = {
    calloutSecondsInterval: 'global.calloutSecondsInterval'
  },
  GlobalOptionsDefaults = {
    [GlobalOptions.calloutSecondsInterval]: 60
  };
this is what you had?
 
yeah, sorry, that's what I had.
 
yea that isn't valid
!!> const foo = { ['key'] : 'value' };
 
@rlemon "undefined"
 
3:51 PM
wait... maybe it is valid, but it is crazy
your array key is an array?
 
yeah, it's valid.
 
only because ['foo'] gets turned into 'foo'
 
I figured out my problem - I'm on Redux Form 5, but the latest version is 6 :P
 
but it's weird.
 
uglify might not like that, because you shouldn't be using an array literal jus tto get the string back
var GlobalOptions = {
    calloutSecondsInterval: 'global.calloutSecondsInterval'
  }, GlobalOptionsDefaults = {};
GlobalOptionsDefaults[blah] = 60;
!!afk lunch
 
3:56 PM
yeah, seems like an interesting issue.

The error you get from it is:
   Running "uglify:generated" (uglify) task
    JS_Parse_Error {
      message: 'SyntaxError: Unexpected token: string (GlobalOptions)
 
user5503464
0
Q: Why auth.isAuthenticated() is not working in MEAN.JS?

ko001I have made simple Signup, signin and article using MEAN.JS with jsonwebtoken. In signup page after user entering all values i am passing values to server through signup api. i server side am creating jsonwebtoken and am passing to client side exports.create = function(req, res, next) { va...

 
user5503464
help me out
 

« first day (2197 days earlier)      last day (2750 days later) »