« first day (1988 days earlier)      last day (2963 days later) » 

12:20 AM
woooooooord
 
1:20 AM
!!bk or subway
 
@Shea bk
 
<input ng-show="modalContent.amount > 1" name="count" value=1 size=1 />
<input ng-show="modalContent.amount == 1" type="hidden" name="count" value=1 />
So apparently ng-show isn't what I want. Does anybody know how to make an element conditional? Like, if amount == 1 ONLY that element should render, not the one above. And vice versa
I figure ng-if may do it but no idea of the syntax
 
ng-switch
but ng-if would do it too
ng-if="modalContent.amount === 1"
 
That's it? Omg
I was trying all sorts of class syntax I'm so retarded
 
I'd suggest putting a more descriptive property on your controller though
modalContent.hasOnlyOneOfWhateverThing
statements in views are harder to test
 
1:37 AM
I wonder what a ng-friday directive would do. ;)
 
user2620028
would turn everyone ginger by stealing their souls
 
2:52 AM
Hey guys!
 
Hey Amanuel!
 
Ohnoes
 
Can't wait
 
4:01 AM
I wish to drag image cross domain onto canvas, convert to useable image object, then drop new object to input that will be submitted when form is submitted.
 
^ retro computing SE proposal
@copy lol that is awesome
They should double the time though, if it's anything like IPv4 people will find ways to keep the empty pool going forever
 
@GNi33 Oi. Stick to your language learning, god damn it!
 
God Damned
 
4:29 AM
if a shortlink leads to an image... is there a way of telling the user?
 
4:51 AM
@captainrad follow it on the sever, and see what you get
 
@captainrad oneboxing, showing a highlight etc etc blah di blah
@Neil Bach Organ
@captainrad jsfiddle.net/sq14t2wq and soft detection
 
5:20 AM
@Abhishrek that is a surprisingly cool solution!
 
stackoverflow.com/questions/36215772/… anyone help me on this question
 
@Himanshu 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.
 
5:48 AM
  $updated=mysql_query("UPDATE users username='$eusername', email='$eusermail', sn='$esn', emrs='$emrs', sname='$esname', frstname='$efrstname', midname='$emidname', gen='$egen', fname='$efname', mname='$emname', padr='$epadr', taddr='$etaddr', rel='$erel', cas='$ecas', cat='$ecat', dob='$edob', pan='$epan', exdest='$eexdest', appt='$eappt', doj='$edoj', pays='$epays', pfn='$epfn' WHERE id='$id'")or die();
such injection!
 
 
1 hour later…
crl
7:04 AM
I like how it saves one letter in 'firstname'
 
7:58 AM
flickr.com/photos/62652453@N08/9429531642/in/dateposted holy fuck, they made this with origami.
linked in medium.com/@amitzur/… which is a great read
 
@AwalGarg I love how whatever you can think of, there's someone who has done it to the most ridiculously high level.
 
@phenomnomnominal not just whatever you can think of...
 
by that I mean everything
 
true :)
 
^ saw that, fucking WOW.
 
@Skype hire me, I will make Skype great again ^_^
@SomeGuy neat neat neat
 
@SomeGuy They could use a huge boost in camera detail, but otherwise that is kickass
My idea for some time has been that this is going to be the new way to interact on the internet
nice to see it realized somewhat :)
 
ZOMG imagine an actual chat room
 
@phenomnomnominal right
 
8:37 AM
I wonder how much bandwidth that requires
it's got to send essentially a model and its skin
compressed
as well as movement, god..
 
120fps
 
8:50 AM
> Daughter: Come home soon
Twice
The price we pay...
 
"Daddy's got to finish this presentation that Microsoft is making.. uh.. that I need to do.. *whispers* tell mommy to call the police.. Daddy loves you!"
 
I was like is that an actor? Or just devastatingly sad
 
9:11 AM
@rlemon You'll love this :D youtube.com/…
 
hey guys
alittle help with this timeline css change on scroll
0
Q: Timeline change css on enter view port

GotaloveCodeAm trying to change the background color of the timeline on scroll like on this site.My replication of the sample is development site. Take a look at the codepen I tried using. The closest I have come to replicating it is with the code below which makes the change in color on each timeline circle...

 
9:40 AM
I disagree.. he wasn't lawful evil.. more like lawful neutral
 
the new css APIs that let you hook into layout look cool.
 
the names a bit gimmicky, but yeah they do
 
Linkies?
 
crl
9:56 AM
a programmable css?
 
that's what css is missing.. to be future-proof
 
crl
masonry = column-count: n
 
10:09 AM
@phenomnomnominal Their adblock message is nice.
 
We need to replace JS or make it more easy to write DSLs with and then replace CSS with a JS DSL.
Then again, we don't really write a lot of actual CSS anymore - it's transpiled one way or another.
 
kb.cert.org/vuls/id/319816 anyone else thinks this is stupid?
 
@phenomnomnominal That sounds pretty rad
 
@crl yep
 
@Zirak hell yeah
 
10:18 AM
The CSSOM really needed a facelift too
 
I have always wanted it to exist
 
Whoever builds the jQuery of CSS will do well
I can see it being really easy to destroy your render speed though
 
crl
if it's like jquery, totally
 
@phenomnomnominal or increasing ?
 
cssQuery?
 
10:20 AM
CSS parsing api...finally...
 
@JanDvorak const cssQuery = (query) => document.querySelectorAll(query);
 
We haven't even got a standardised JS parsing api yet
 
crl
why can't we listen to keydown on a random div (not contenteditable) or image?
 
The existence of esprima and acorn and the likes does still baffle me at times.
@crl Think about that for a second
 
@crl put a hidden textarea behind it
 
10:21 AM
... wait
Shouldn't this be much better than the transfer of values b/w js land and inner dom when animating (as jQuery did) ?
 
crl
@phenomnomnominal and use jquery also?
 
@crl why not
 
crl
@Zirak I try, but document.body can catch those events, so it seems weird
I'm going to select the div with mousedown first, then wait for that keydown to happen
 
@crl I see it as when you jump on a chair placed on a bed in your house, you have jumped in your house.
 
crl
hmm right, keydown has no target
 
10:26 AM
@crl And if you put an input or a textarea or whatever in a div, you can listen to keydown events on that div.
@crl wat?
 
I'm going to guess that the issue is that of text focus.
 
crl
oh sorry it has one
@Zirak yes, like phenom suggests, but I'd like to not touch to the page content
 
crl
ok, I might do with every 'component' contenteditable after all, thanks
 
You confound me at times
 
crl
10:32 AM
no worry, it's for a CMS page edition, copying quickly a component (an inner template with data)
 
Just blame the bland specification of EventEmitter for all HTMLElement interfaces and have icecream
@Abhishrek she is into you
 
@AwalGarg nope.
 
@AwalGarg Its a he for sure :D
 
@Abhishrek "Neha"
 
10:35 AM
@Abhishrek heh
 
@AwalGarg no photo.
 
@AwalGarg Internet
 
@littlepootis I doubt the person who wrote that text would be smart enough to do that.
 
@AwalGarg good point xD
 
oh, poor girl
 
10:36 AM
Just ask for ASL and enjoy
 
Nah I chose to ignore
 
or just don't be a creep
 
@AwalGarg ?
 
10:40 AM
anyways, so that article has a screenshot which resembles the current interface of crbug. That article was released atleast a few internet years ago, and then, the interface of crbug was different. Which means they possibly rollout interface changes to regular contributors early on. This is... not fair.
 
That's just how the internet works?
 
crbug is not your regular internet. Have you ever seen a regular user of chromium visit crbug? Or a regular chromium/chrome user even know of crbug?
 
that's not my point
You have the capacity to roll features out to people as you chose
So why wouldn't you give it to the people who will give the best feedback first?
 
Any suggestions for a good laptop hard drive ?
 
Airtel
 
10:48 AM
@littlepootis WHAT ?
 
@phenomnomnominal Democracy for software development ?
 
users aren't democratic
democracy isn't a thing when you add capitalism
 
If users have their say in everything that is designed
 
10:51 AM
what has capitalism to do with it
 
you'd end up with phonearena.com/news/…
Brb Exam
 
If releasing something bad could mean losing money, then you don't just release it to everyone and you don't just ask everyone for their opinion.
 
Chrome needs something like Google Image searches feedback thingy
 
@AwalGarg oooohhh that one
 
11:27 AM
@JanDvorak we're leaving today, it was awesome :)
 
Hi everyone. I'm aware this question could be more CSS than jS..I'm having real problems with iOS and overflow scroll. I'm making a 3D layout (cube) and each face needs to be able to have the overflowing content scrollable. It works on the front face and not the others. Has anyone attempted anything like this? I've read a lot of posts on SO with no luck yet!
I remember reading that the scrolling might need re-binding with jS or something, but I can't find the info again. I just wondered if anyone has encountered iOS scrolling bugs before.
 
@GNi33 This is funny
I think that explains a little
 
Over there
 
11:37 AM
no seriously, it is no fucking where. like magic
 
12:14 PM
I'm wondering if I could implement a bleeper bot to hide the few swearwords that occasionally pop up here.
 
let [, state, params] = this.$attrs[SREF_ON_ACTION].match(STATE_AND_PARAMS_REGEXP);
Dat destructuring
 
@phenomnomnominal oh boy
 
Hi i need some help with some cod
 
@Aman.V 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.
 
12:29 PM
I bet @rlemon knows a thing or two about cod
 
basically i have some code to work out the distance between two sets of long and lat and they don't seem to work when i put some data in the parameters?
 
I've never eaten one
@Aman.V your code?
 
yeah my code
<p>This example calls a function which performs a calculation, and returns the result:</p>
<div id="result">
</div>
</p>

<script>
var x = getDistance(52.482799000000000, -2.000643000000000, 52.48463500000000, -1.980759000000000);
$('#result').text(x);

function getDistanceFromLatLonInKm(lat1,lon1,lat2,lon2) {
var R = 6371; // Radius of the earth in km
var dLat = deg2rad(lat2-lat1); // deg2rad below
var dLon = deg2rad(lon2-lon1);
var a =
Math.sin(dLat/2) * Math.sin(dLat/2) +
Math.cos(deg2rad(lat1)) * Math.cos(deg2rad(lat2)) *
i have got this so far
 
crl
your luck, Cap is sleepy
 
crl
12:34 PM
no
 
I don't spherical wat you're code say
 
crl
pls do var {sin, cos, etc..} = Math; so that it gets readable
 
@crl I've never seen that done before, to be honest.
 
with ( Math ) {
  // all code
}
 
@AwalGarg hangouts
 
crl
12:37 PM
it's funny, it feels you enter in Js-matlab
 
@rlemon Good Morning.
 
Can I grab three Unicode characters and use them for the function names?
 
yes
but I'd recommend against it, it sucks to maintain
 
..
 
@rlemon i have just done that
doesnt seem to do anything
 
12:40 PM
... Without getting murdered by my co-workers, I meant :-D
 
crl
what do the functions do?
 
@JanDvorak Depends on how good they are at typing random unicode characters :D
 
or at copy pasting
 
nope, even copy pasting sucks
 
@phenomnomnominal shouldn't we feed help vampires code in unicode functions then 3:)
 
12:43 PM
 
I would never paste Copy.
 
oh btw if you are using teamviewer and copy pasting
 
just because you can doesn't mean you should.
 
it adds /u0000 and some more characters at the end at the end
which is pita to remove even in sublime / atom
 
12:44 PM
@Abhishrek random Chinese characters for foo, bar... I like
 
!!> var ​ = "lol"; console.log( ​);
 
@littlepootis "SyntaxError: missing variable name"
 
I typed a unicode character, stupid stupid stupid
 
Nice try, but it has to count as a letter
 
!!> let ♥ = 'broken'; ♥
 
12:45 PM
@Abhishrek "SyntaxError: illegal character"
 
@JanDvorak and not as a special character I take it ?
 
crl
!!> var ∇=2; ∇
 
@crl "SyntaxError: illegal character"
@crl "SyntaxError: illegal character"
 
crl
c'mon js..
 
12:47 PM
!!> let कुत्ता = 'Java'; console.log(कुत्ता);
 
@Abhishrek "undefined" Logged: "Java"
 
YES!
 
flagged
 
vOv why ?
 
!!> let ಠ_ಠ = 'Abhishrek';
 
12:48 PM
@phenomnomnominal "undefined"
 
I can't see any flag,..
 
कुत्ता = dog
from now on I will write my code in hindi.
 
can someone explain this to me
 
crl
jerry can
 
12:50 PM
every time I see someone, who is posting content on the internet, but is not able to form a sentence in English, it turns out to be from India?
why?
 
@tereško Terrible English teachers ?
 
crl
the reciprocal is wrong though
 
also there are more Indians on internet than anything
 
12:51 PM
How should I calculate the % for a progress bar, using the time (in miliseconds) left?
As it is decreasing, I can't calculate it by simply doing `730264990 * 100 / 0` because I don't have the "max" value, I mean, I only have a "final" value which is 0
 
so .. chances are you will see more errors too
@littlepootis thats a compound of two though.
 
!!> kůň = { barvička: "žlutá"}; kůň
 
@JanDvorak {"barvička":"žlutá"}
 
there are way to many programmers.
 
crl
where is that way:p (*too)
 
12:52 PM
@Abhishrek if you had bad teachers, you would not know English, but it feels as if they don't understand how bad they are at it ... and to make it worse, they try to sound hip, by abbreviating to SMS-speak
 
!!s/programmers/copy paste sentient bots for programming/
 
@Abhishrek there are way to many copy paste sentient bots for programming. (source)
 
@tereško The spelling of Tuesday is taught Tiusday. Go figure
 
Most indian languages impose no restrictions on word order in sentences.
 
@littlepootis not really, which one are you talking about ?
@tereško the sms speak, I feel your pain brother.
 
12:55 PM
kya karte tu? tu karte kya? karte kya tu? kya tu karte?
 
oh marathi :o ?
 
Wondering if I could just compose a genetic algorithm and seed it from stack overflow and have a better programmer than most people are.
 
btw 3/4 have different meaning
 
@littlepootis The 2nd and 3rd aren't the same, though
 
the tone, yeah
 
12:56 PM
nope meaning itself
 
that's marathi??
 
crl
stupid question, if you were to fall from 10m high (on grass let's say), what would be the best position and things to do?
 
Anywhere above something soft
 
@littlepootis sounds like it vOv but then again languages are too similar :P If you were trying hindi :P
 
crl
is it useful to land horizontally, or on your legs slighly bent, and strongly contracted
 
12:59 PM
Land on your head
 
landing on your feet will paralyze you forever waist down
 
@crl you land with slightly bent knees and follow it down in a roll
 
@littlepootis What do you do ? you do ? Are you doing? do you do ?
 
crl
@tereško yes, like parkour
 
Remind me to never trust my life to this room.
 
1:00 PM
@Zirak Someone's pissy
 
@SomeGuy o/ hello btw
 
@Abhishrek Hai!
 
have you taken any EdX course ?
 
@crl yes. The hight doesn't really change it. Your goal is to minimize damage
 
@Abhishrek Yeah. Why?
 
1:01 PM
@SomeGuy the proctor software
it won't let me take a test says bad internet :-/
although I do have 350kbps + uplink
 
Email support?
 
did it.
 
I want to set up a progress bar out of a javascript countdown (missing milliseconds to a given date, i.e: 729057983, 729056000, 729055000...)
Any idea how can I calculate 0-100% based on missing milliseconds to a given date?
 
400kbps, that's basically "sending by carrier"
 
Landing on your feet lets you spread out the deceleration over a longer time, and landing on your back transfers the decelaration in the the direction your body can handle the best.
 
1:04 PM
@Frondor math
 
@Frondor You have a start time, the time right now, and end time
 
Just wondering if it actually worked for you ?
If they measure net speed in latency then I am doomed :D
 
This doesn't sound exceptionally difficult, write out a few examples and you can figure out the equation.
 
@Abhishrek I haven't taken any tests for my edX courses. Just watched the videos
 
1:06 PM
@SomeGuy Hmm, I am doing an astronomy one from ASU
 
Oh, neat. How is it?
 
So far fun :P but its too basic (x
 
@Zirak well... There is no "start time" actually, and I don't have the time "right now" as I'm using an angularjs plugin, so I guess it won't be possible
 
crl
1:07 pm
 
I am thinking of doing some longer / harder ones in CS in future
 
1:07 PM
@Frondor Then your question makes no sense. If you just have seconds to finish something and no notion of "start" and "now", you don't have a notion of progress.
 
@Zirak I was not really talking about progress... but something like a "burning rope"
 
What does that mean?
 
I just want to display a bar that gets completed/empty when that value becomes 0
 
That's just a way of visualising progress
But you have no notion of progress
 
Just found this code in our app:
 
crl
1:10 PM
self.autoDestruct(0)
 
Why are you looking at your app's code? It's Saturday.
 
this.sizes.forEach(function (size) {
    angular.forEach(_this.attrPrefixes, function (attr) {
        var prop = "tg" + size + (attr ? attr : '');
        var sizeStr = size.toLowerCase();
        var attrStr = attr ? "-" + attr.toLowerCase() : '';
        var propStr = "-" + _this[prop];
        [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].forEach(function (eachSize) {
            _this.$element.removeClass("l-col--" + sizeStr + attrStr + "-" + eachSize);
        });
        if (_this[prop] || _this[prop] === 0) {
@Zirak we release in 4 days
 
@phenomnomnominal Dear heavens
 
that is part of one of the directives that makes up our grid
 
crl
don't want to troll on angular
 
1:11 PM
each one is a <tg-col>
 
> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].forEach
nice
 
(compiled from TS btw, but the fucking loops)
 
@phenomnomnominal Beautiful
 
this is literally run every digest cycle on HUNDREDS of elements...
 
crl
rip browser
 
1:12 PM
and there is only ONE instance where the value actually changes.
 
Yeah, clearly they should have cached that array
:D
 
There's also a $watchCollection over the 24 possible attributes it could have
jesus fuck
 
@phenomnomnominal Best of luck, btw. Don't kill yourself
 
@SomeGuy hah, I'll try to not
done 120hrs this week
 
Dear heavens
 
1:14 PM
!!work or opensource or relax or fap?
 
@AwalGarg opensource
 
Perhaps that's a little too much and might signify an underlying problem
 
@phenomnomnominal Wow, that's ridiculous
 
@Zirak Hah, no this is just me
everyone else is on easter break
 
> underlying problem
 
1:14 PM
> just me
FIX YOURSELF
 
> break
 
> fap
 
I'm pretty much manic, so when I'm like this it's fine
Been getting heaps of sleep too
 
@phenomnomnominal Make sure it doesn't bite you in the ass later, though
 
I have a week off next week
 
1:15 PM
@phenomnomnominal How? 120/6 = 20hrs a day!
 
so I'm not worried
@SomeGuy I was counting 7 days
:)
 
Oh, right, you're in the future
 
!!> 120 / 7
 
@Zirak 17.142857142857142
 
Okay I rounded up a bit
Been doing 14 hour days
 
1:16 PM
ridiculous
 
just 1 bit?
 
And it's only been for literally 7 week
Shh it's fine
We never even have overtime otherwise
 
Do we finally get to use our Intervention Decoration?
Is this the phase where we fly over and break into your house, waiting for you to return and tuck you to bed?
 
Let's do it
@Zirak You get the lube
 
1:18 PM
(not sure if we should invite @SomeGuy, he'll eat all the stake)
 
:(
 
Invite him and put the stake in a trap
 
> five.hindi() // पांच
 
> five.telugu() // ఐదు
 
1:26 PM
@littlepootis 266 commits
 
@littlepootis lol
 
Hacked a fix for it, gonna throw it back to the dev who wrote it on Tuesday...
var outerClasses = Object.keys(this.$attrs.$attr).map(function ($attr) {
    vartype = _this.$attrs.$attr[$attr].substr(3);
    return "l-col--" + type + '-' + _this.$attrs[$attr];
});
Cause fuck you.
 
Beautiful
 
Hardly, but the TS looks okay
I'll make him fix it
Just saved 300ms per digest cycle when rendering search results...
 
@phenomnomnominal my condolences
@phenomnomnominal ow
 

« first day (1988 days earlier)      last day (2963 days later) »