« first day (1576 days earlier)      last day (3597 days later) » 

00:39
(?:x) Matches 'x' but does not remember the match. The parentheses are called non-capturing parentheses, and let you define subexpressions for regular expression operators to work with. Consider the sample expression /(?:foo){1,2}/. Without the non-capturing parentheses, the {1,2} characters would apply only to the last 'o' in 'foo'. With the non-capturing parentheses, the {1,2} applies to the entire word 'foo'.
I'm not able to understand the last two sentences....
{1,2} means whatever is on the left side either once or twice
While (?:ab){1,2} means one or two abs
So ab{1,2} means an a and then either one or two bs
I'm not understanding (?:x){1,2} is different than (x){1,2} where just talking the difference in {1,2}
Oh, there is none in that regard
Without the non-capturing parentheses, the {1,2} characters would apply only to the last 'o' in 'foo'. With the non-capturing parentheses, the {1,2} applies to the entire word 'foo'.
why it's different?
foo is not captured (stored in the result set)
!!> ["foo".match(/(foo)/)[1], "foo".match(/(?:foo)/)[1]]
00:47
@copy ["foo","undefined"]
sorry couldn't understand...
That's all I can say
Here's the term what I'm not understanding... ** last 'o' in 'foo'** and entire word 'foo'
why is that?
@BhojendraNepal in terms of what gets matched, (ab){1,2} and (?:ab){1,2} are identical
However, ab{1,2} is different
it's treated like a(b{1,2})
@BhojendraNepal I think the regex it's speaking of when it says "without the non-capturing parentheses" would be /foo{1,2}/
01:03
@jdphenix NO. without non-capturing parentheses meant to be: (?:foo){1,2}
@BhojendraNepal That is non-capturing parentheses, it can't be "without"
@KendallFrey Oh sorry, It should be (foo){1,2}
25 mins ago, by Bhojendra Nepal
(?:x) Matches 'x' but does not remember the match. The parentheses are called non-capturing parentheses, and let you define subexpressions for regular expression operators to work with. Consider the sample expression /(?:foo){1,2}/. Without the non-capturing parentheses, the {1,2} characters would apply only to the last 'o' in 'foo'. With the non-capturing parentheses, the {1,2} applies to the entire word 'foo'.
If you're referring to that, no
it means foo{1,2}
Oh GOD! "Without the non-capturing parentheses, the {1,2} characters would apply only to the last 'o' in 'foo'." is to be meant foo{1,2} ???
01:07
Thanks. The docs really confused me really...
because that's (?:foo){1,2} without the group
@BhojendraNepal I agree that with regexp especially examples of everything discussed are nice
@KendallFrey But docs is not telling about the group but just referring to capturing parentheses and non-capturing parenthses... is docs written wrong?
no, it's just not as complete as it could be
"without non-capturing parentheses" doesn't imply "with capturing parentheses"
hmmmm, just understood nicely....
I think docs should be modified so that no one else like me would be confused...
01:18
@BhojendraNepal What about
Matches 'x' but does not remember the match. The parentheses are called non-capturing parentheses, and let you define subexpressions for regular expression operators to work with. Consider the sample expression /(?:foo){1,2}/. If the expression was /foo{1,2}/, the {1,2} characters would apply only to the last 'o' in 'foo'. With the non-capturing parentheses, the {1,2} applies to the entire word 'foo'.
01:28
Anyone know a good client markdown editor with live preview?
@SomeKittens Seen that one, it's a top contender
The holy grail would be one behaves like a WYSIWYG editor, showing the result in the input as you type.
That's what the one I linked to does?
The input and the result are separate
nitpicker
01:31
As in, you can't type into the markdown preview, it's separate
But markdown is designed to be still readable when viewed directly
So that kind of editor doesn't really make sense
Yeah, but it's still inherently codey
What I'm trying to achieve is a markdown input that, as you type, displays the result as the input, like what you'd see when using a word processor
@copy Sure it does. If you make a little mistake like inserting a space where on doesn't belong, it won't render properly. You won't do that with a WYSIWYG.
I essentially want a WYSIWYG that's limited to markdown styles
@KendallFrey Very few places. And then the generated markdown is most likely ugly, destroying the purpose of markdown
01:47
The purpose in this case is to limit the user to appropriate content content, so basic headings, paragraphs, lists, etc, without having to teach them to use markdown. We'll validate the structure independently (only one H1, etc)
It's also not the case that 1) syntax errors are very common and 2) markdown has a high markup overhead
WYSIWYGs have an even higher markup overhead, and massive potential for fuckup, not to mention inline and bleeding styles
@monners Yeah, that makes sense
02:16
Holy fuck the Leafs have a lead
I'm poor in English, what do you mean?
Hockey team is winning
OK, time for a KSP break
@KendallFrey struts did nothing.
02:36
can anyone help me with css? jsfiddle.net/nhxjvmhh im trying to add the share icon multiples images in center how can i accomplish that
@SomeKittens screenshot
The center of what?
Juuuust kidding!
Damnit, came into the office to get some shit done and they're installing a TV right above my desk
02:43
@SomeKittens You appear to be moving quite rapidly, good sir
@KendallFrey indeed
I removed the upper set of wings(?) on the other craft and it started doing just fine
ohhhh
Never put too many wings near the front of a craft
if the centre of lift is in front of the centre of mass, it will be unstable and flip out suddenly
what are you talking about guys? let me also involve in that....
Ega
Ega
hello
@Ega 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.
02:49
@KendallFrey ...oh
@BhojendraNepal Kerbal Space Program
@BhojendraNepal They're rocket scientists working on prototypes for NASA
Ega
Ega
thank you
I have a question
Leafs snap an 11-game losing streak
Ega
Ega
I'm asked this question but i don't reach answer
what about them?
Ega
Ega
I have this code how i can set value to x ?
var myvar={
F:function(){
var x;
}
}
please help advance
@SomeKittens If you get that into orbit, I will fly to CA and personally give you a blowjob.
@Ega = is the assignment operator, used to assign a value to a variable.
Ega
Ega
I know this style bro
but
I want set a value whene I call F function
@KendallFrey uhhh, I'll pass.
Ega
Ega
like myvar.F().x="some thing";
02:54
@Ega so assign the value inside the function
@Ega oh, you mean parameters
@ega what was wrong with your code that you had before than that @BhojendraNepal answered?
nice picture, is that artificial ant?
@BhojendraNepal this is kerbalspaceprogram.com
Ega
Ega
myvar.F().x="hello"
whene I'm try to console.log(myvar.F().x);
i get undefined x ? why
02:56
@Ega Are you trying to pass a value into the function?
If not, explain what you're trying to do
Ega
Ega
how ?
myvar = { F: function () { return { x: 'hello'}}}
is that just a game or real program?
@BhojendraNepal depends how seriously you take it
No. I don't know about it. So, just asking...
02:59
@BhojendraNepal It's a game. One in which you send little yellow-green guys to their fiery deaths
I mean
test launches.
@jdphenix yellow?
ftr, I haven't killed a Kerbal in weeks
should I login to play?
?
You should play, but you shouldn't log in to anything
@BhojendraNepal unless you're talking about Steam, but play the demo first anyhow
I need to pay? sorry guys, I can't...
03:04
@KendallFrey I don't have catastrophic failures, I test designs of failure modes
@BhojendraNepal The demo is free
@jdphenix I don't have mission failures, I have simulations that highlight weak points.
is demo fully functional?
...shoot. Out of fuel.
@BhojendraNepal It's missing most of the latest features, but you can still design rockets to your heart's content
I'm playing the demo
03:06
ok, I'll try...
cannot download, it says bad gateway...
03:22
@KendallFrey also, I wouldn't be complaining about hometown hockey if I were you....
/me is from Buffalo area
I'm not complaining, just glad that losing streak is over
03:40
Because... why not.
gif from SomeKittens was moved
03:57
Orbit, aaaaand out of fuel.
I'm pretty sure this is a degrading orbit
@SomeKittens periapsis?
yup
though if you switch to another vessel, it won't decay the first one's orbit
unless you're in physics range (2.5k)
....that could be abused
At what point should I start going sideways?
04:19
@SomeKittens there are lots of ways to abuse the system, that's maybe one of the less useful ones
@SomeKittens I usually start at 0-3000m
Well, I finally made it into orbit with fuel to spare, so I'm setting periapsis to 7k
Aim for like 10 degrees from vertical by 5000, 30 by 10000, 50 by 20000, 80 by 40000
that's my approximate gravity turn
Alternatively, do the "standard" one of straight up til 10K, then 45 degrees
how is everyone tonight?
hi claies!
Sweet, in orbit without even touching final stage
Things are a lot easier now that I've figured out maneuvers
04:29
KSP I assume?
04:42
Heading to the Mun!
ACK! Lost communications
Ok, found it again - We're on our way!
Orbit achieved!
Um
@KendallFrey is it possible to refuel a ship in the demo?
does includes() function work in firefox 34 ?
it's draft on ECMAScript 6
startsWith and endWith is working
05:15
anybody here??
 
1 hour later…
06:30
hi
there?
06:42
is there any jquery function to set a div width dynamically based on the textbox width??
in this fiddle i want to set dropdown div width as relative textbox width.
any suggestion how can i do this??
07:05
@Cerbrus Happy birthday!
hi
in my classic asp page
am using javascript to access the session variables
<script type="text/javascript">
document.getElementById("wages").onclick = function () {
var mySessionValue = '<%=Session("company_id")%>';
alert(mySessionValue);
};


</script>
it just prints '<%=Session("company_id")%>';
what could be the reason
That's probably an asp problem
I don't know asp so I can't really help with that
You should probably consider restructuring that bit of code though
Load the data through ajax
which data?
07:13
The session data
ok my requirement is
i have a li element, i just need to encrypt and send the data t
the href url
is there a way i can do
Rephrase
rephrase means?
Explain what you're trying to do more clearly
i have a menu
in that there is a list item
<li [wages] ><a id="wages" class="nav-icon icon-email" href="">Wages</a></li>
when they click this item, i need to load an aspx page
right now the request goes like this
i need to encrypt and send the daa
07:21
So you're trying to go to that url when you click on the a element?
yes
and encrypt the data too
And you need to set the url parameters using javascript?
Ok so a couple of things
It worries me that you're sending their username to the server like that
Where are you getting the data from?
Why do you need to encrypt it?
data is in the session
asp
thats why i want to encrypt and send
07:26
So you're taking session data from the server, putting it in your javascript, encrypting it, then sending it back to the server?
Why?
i have handled that in asp.
in this case i am transfering the session to another aspx page
not asp page
i have to decrypt and send
Ok so, you have session data in an asp page and you want to access it in an aspx page?
That sounds like the crux of the problem
yessssss
exactly
07:30
<3 tfd
gif from phenomnomnominal was moved
Anyway, the user should have some sort of identifier stored as a cookie
Use that to load the data from the database into your session
Don't dump session data somewhere public
That's not a safe thing to do
ok, the site is running already. i was asked to do this task only. if i have to change i need to change everywhere
is there anyway to do what i mentioned
Yes, but I don't think it's safe
You're better off just identifying the user and then pulling the data from the database
could you tell me the way
i dont have access to db
07:37
Your aspx script doesn't have access to the database, but your asp one does?
yes bro
Why?
why do i have to connect to db if i already have session variables
Because you don't have access to the session?
i have access
07:42
!!> Object.is(NaN, NaN)
@underscore true
Wasn't the issue that you don't have access?
noo
i already have access to the session variable
!!> Object.is(+0, -0)
@underscore false
07:43
Yeah javascript has positive and negative 0
!!> +0 === -0
@underscore "undefined" Logged: true
@underscore true
+0, -0 only care in ECMAScript 6
@Meredith isn't it ?
Isn't what?
what's the usage of it ?
"javascript has positive and negative 0"
07:47
You're asking why there are 2 zeroes?
Hell if I know
Probably because of binary representation idk
Yeah 10000000000000000000000000000000 represents -0
!!> ~-0
@Meredith -1
!!> +∞ === -∞
@underscore "SyntaxError: illegal character"
07:55
!!> 1/0
@underscore "Infinity"
!!> 1/-0
@underscore null
I don't know why ~0 is 1
-1
!!> 1/-0 === -Infinity
07:57
@underscore true
Oh nevermind I'm stupid
why -Infinity ?
What's n/0?
Either infinity or negative infinity
It could be either so we say it's undefined
!!> 1/-0 === Infinity
@Meredith false
And that means that they just picked one
I think
07:59
it's -infinity
!!> 1/+0 !== 1/-0
@underscore true
Yeah I guess they just picked that n/0 is infinity
Therefore n/-0 is -infinity
Ok so -0 only exists when the number is a float
Bitwise not converts it to a signed int (which is 0)
and ~0 is -1 when signed ints are used
> If number is NaN, +0, −0, +∞, or −∞, return +0.
!!> ~NaN
@Meredith -1
And for 1/-0
> Division of a nonzero finite value by a zero results in a signed infinity. The sign is determined by the rule already stated above.
> The sign of the result is positive if both operands have the same sign, negative if the operands have different signs.
Okay, logged on because StackExchange mobile app pinged me and said I was tagged in this conversation.
Hello fellow Meredith
08:06
Hey
This is the second time in my life ever meeting my namesake
Cool
There aren't enough Merediths in the world
I suppose
I knew a Meredith in middle school
It was pretty neat
That sounds awesome
There were two Mary's at my high school, and some people liked to nick me Mary, so being in class with both of them made life hella confusing and made me appreciate my actual name so much more
08:16
I don't like when people call me Mary :/
Me either :/
Like, Mary is its own name
Don't try to make it a nickname for my name
Amen
Do you like being called Mere?
Omg that
Mixed feelings, gradually got used to it, using it as my username for my work laptop atm
Everywhere else though I use a different username
08:25
My laptop username is just M
minimalist
You gotta keep it simple
 
1 hour later…
09:29
Anyone on?
09:43
nope
Lmao.
I need help with the sliding jQuery effect.
$('#slider ul li').hide('slide');
$(slide).eq(n).show('slide');
Thats my code,
However,
It's not working like smoothly.
It just disappears and re-appears instead of sliding stylishly.
Can anyone help me out? I'll put the code on JSFiddle, a sec.
@HassanAlthaf I think you want slideToggle
Oh, is it a class or something?
Or toggleslide... Haven't used it in years
No, a jquery method
Oh, it is doing some nonsense. :/
@FlorianMargaine let me send you the jsfiddle for the new code
It does unexpected behaviour
09:56
it's sunday, leave me alone
10:25
doesn't nodejs have a Session function or something? like new Session()
Is anyone here able to help a bit with jQuery?
If I return nothing from a promise, it's implicitly resolved with nothing, right?
What do you mean?
Check out the slider on that site,
How do you make both the slides slide instead of one disappearing and the next sliding in?

« first day (1576 days earlier)      last day (3597 days later) »