« first day (2351 days earlier)      last day (2589 days later) » 

12:11 AM
@Neoares I get that for $0.5.
 
@littlepootis how
 
why not pick IE and Bing, tho
 
12:25 AM
hey
heeey
someone hosts on heroku here?
 
so angular 2.0 was not cool enough?
what is happening?
 
semver.
It's just Angular now.
 
@phenomnomnominal you have a PS4 right?
you try Horizon Zero Dawn at all?
 
@Loktar dude I haven't played anything since Uncharted :(
no time
 
1:12 AM
ah lame
well it's badass if you get time
 
keen
probably in a few months haha
 
 
2 hours later…
3:33 AM
Does anyone know of any effective ways to blank a referrer on a link click? I tried creating a new window and writing in a document.location refer script as this link suggested but I was still able to see the referrer
It would have to be working on all browsers, I can't seem to find a good solution
 
4:17 AM
For NG2/4 Dev:
oops
For NG2/4 Dev:

I'm creating an angular4 app using Angular2-jwt library; My app renders from the server.

I'm running into an issue where the server has no access to the Browser therefore 'localStorage' is not defined and it breaks my app. Has anyone ran into this issue and found a solution? Been googling around and haven't found anything yet .. >.<'
 
hey ya'll, i'm a big javascript noobie and i know barely any syntax. if i use a function that starts with (function(a,b){if( how can i change it so that if is basically if not
 
4:33 AM
@fuccboi You could have either if(!( or if(false==(
2
 
@rolu you need to wrap local storage in a service
and then use a different provider on the universal side to the browser side
 
4:54 AM
@JennaSloan thank you queen
 
5:11 AM
Hi guys, Need some suggestion regarding real time app?
 
Need a brief understanding on how browser behaves when you reload application. In my case I am seeing memory growing up on each refresh. I am looking at memory using task manager.

My understanding is everything should be cleared from memory on refresh as window/root gets destroyed and recreated.

I am tracing leaks in Angular 2 application and IE 11 browser.
 
5:27 AM
any css gurus around...? want one help with this plunk:plnkr.co/edit/6wpwXCyrJyw5QONqdbm8?p=preview -> in style.css for the span if I uncomment the display:none I get a div box normally padded...where as including it causes the helloworld text offset from the top of the box...
what css should I apply on span to avoid the offsetting of the text...?
 
5:42 AM
I might do something like that
 
are ::before and :before the same?
 
they're treated the same
but :: is the newer syntax
 
I still am not clear why that works tho...
 
!!mdn ::before
 
@Loktar Something went on fire; status 403
 
5:47 AM
main reason it works is because I set the parent (tooltip) to relative positioning, and then the psuedo element (the tip) to absolute
then I adjusted the top a bit on the tip
if you make something absolute it removes it from the flow so you won't have that reserved space for it like you did
@rlemon @KendallFrey @FlorianMargaine you know what it is!
 
@Loktar I had a fun time having a child iframe communicate the position of the mouse and the text of the tooltip to the parent so it could show a tooltip that wouldn't have to be contained in the iframe
But I still can't get the triangle right
Ah wait no nevermind I must be really tired now I see the transform rule :|
 
6:04 AM
@Loktar why was .tooltip position relative?
and absolute position - you say removed from flow...but the top and left values are relative to the parent container or the document body...?
I thought it was the latter...
 
@deostroll It is relative to the closest parent with a defined position (one that's not static)
 
7:03 AM
Validating xml against multiple xsd with nodejs possible yes/no?
 
 
2 hours later…
8:35 AM
@Loktar @KendallFrey @rlemon wooo
 
8:48 AM
@BadgerCat this might interest ya: nextplatform.com/2017/03/20/…
PS how's the thesis. Got feedback yet ?
 
9:30 AM
o/
 
I have error: TypeError: Method Map.prototype.has called on incompatible receiver #<Map>, with this code: paste.ofcode.org/gYkiBV5SUui4spd4rmnVLS
anyone can tell me why? :-)
and other version still not work
 
@KrisGroove Out of curiosity, does it work with classes?
class UserSessions extends Map { ...
 
I didnt try
this nodejs
 
9:45 AM
What version?
 
delete this.get(uid)[sessionId];?
 
7.4.0
@BenFortune remove from object {}
xD
 
@Alesana then how is absolute different from relative?
 
TypeError: Method Map.prototype.has called on incompatible receiver #<UsersSessions>
at UsersSessions.has (native)
at UsersSessions.addSession (/opt/socket_server/UsersSessions.js:12:14)
at Namespace.<anonymous> (/opt/socket_server/index.js:141:22)
at emitOne (events.js:96:13)
at Namespace.emit (events.js:188:7)
at Namespace.emit (/opt/socket_server/node_modules/socket.io/lib/namespace.js:209:10)
at /opt/socket_server/node_modules/socket.io/lib/namespace.js:177:14
at _combinedTickCallback (internal/process/next_tick.js:67:7)
full error
maybe I can't extends Map
 
function UsersSessions(...args) {
    const map = new Map(...args);
    map.__proto__ = UsersSessions.prototype;
    return map;
};
UsersSessions.prototype = Object.create(Map.prototype);
That seems to work
But since you're on 7.4 you can just do
class UsersSessions extends Map {
    constructor(...args) {
        super(...args);
    }
}
 
10:05 AM
how do you usually group radio button elements so they change toggling between themselves?
I think they need all to have the same name attribute
 
do you think that including cost of living and other factors that we are worse off?
 
Well I don't know what exactly "US" means, but I can't imagine the whole united states areas have a higher living cost
 
10:30 AM
and I can't imagine that all states have the same salary level
but yeah, I really don't know who's better off when you include all factors
 
hey who hosts on heroku?
 
Any react experts here? :)
 
no
heroku
 
@jAndy It's a question of supply/demand
Demand for software guys is higher in the US and in Israel than most of the rest of the world
So salaries are in proportion.
 
10:48 AM
can I move to Israel then? :D
wait, shouldn't the Dark Theme convert those?
 
salaries in israel are shit compared to the US
 
I'm doing a console.log before and after a setState. However I'm seeing no changes in the logs!
 
regardless of supply/demand/profession
 
the state is a boolean that is toggled.
And it logs "false" "false". Or "true" "true".
 
whats your fav testing framework for node?
 
11:06 AM
anyone good with obj files?
pastebin.com/3szwbKtz how can you draw those faces? like line 271 onwards
triangles, trianglestrip, trianglefan all dont work
 
11:31 AM
They're exiting the airlock right now
 
11:43 AM
This is new, the discussion isn't conspiracies, it's jihad
 
You read Quran?
've
 
Part of it
 
@KendallFrey huh?
 
I'd like to read the whole thing, but it's not too interesting
 
what discussion?
 
11:47 AM
the youtube chat on the NASA stream
 
but why?
 
why what?
 
why are they discussing jihad on a nasa livestream?
 
lol
 
why not
 
11:50 AM
@GNi33 I guess you don't understand youtube comments
 
that's a good point
 
How can I check if a div has a data-attribute and remove it, the opposite works like this:
$("#foo").not('[data-type=edit]').remove();
 
replace .not with .filter
 
$('#foo').filter(e => !e.data('type')).remove();
Does jQuery still do that internal bullshit with data attributes?
 
sure it does
 
11:57 AM
nice
 
omg i shut up a troll
or, he said he will shut up
 
#respect
 
@FlorianMargaine @Loktar @KendallFrey wooooo!!!!
 
what are we looking at O_O?
 
nasa TV
@SterlingArcher i.imgur.com/0TmuBsn.gifv
 
12:03 PM
install PGT, use the MVM on the guide rails Shane
may the Force be with you
 
Error 404 occured, I will call the maid (@Zirak)
 
12:18 PM
TIL youtube chat has a throttle
 
hey someone hosts on heroku here?
 
@KendallFrey o.O
really
 
@KendallFrey What do you mean ? X messages per time T ?
 
something like that, probably
 
12:29 PM
(mobile) I'm stuck with some VH and VW units problems. those units include scroll bars AND address bar , so you think you do padding:10vw or margin-top:4vh but it sucks becuase if a scrollbar is suddenly visible or address bar appears , then the height is changing and hence vh. How do I handle this (cough... without JS cough...)
 
2
Q: How to implement Headless JS in react native android application?

Saravana Kumar.SI need implement Headless JS in my React Native Android Application, but I got following issue : Here is My Code : index.android.js : import React, { Component } from 'react'; import {AppRegistry} from 'react-native'; import SomeTaskName from './SomeTaskName' AppRegistry.registerComponent(...

 
@SaravanaKumar.S 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.
 
@BenFortune best 'upgrade' you can make
 
user6845426
Hi guys :) I have an image of a cute little furry animal, and a simple jquery script which on hover slightly enlarges the image, is there a way I can also fade-out the image with a black background with say 0.5 opacity on hover as well? I've created a minimal example jsfiddle.net/5jbmq51q
 
12:29 PM
judge me on my soldering
 
5/7 soldering skills
 
lol
 
your technique is dripping it if you ask me
 
You seen the bump headers you can buy?
 
(or don't you have the right equipment for good soldering ?)
 
@KarelG in house? just good digital irons with fine tips
most of our stuff is surface mount now anyway
 
I'm happy that my grandad has soldering equipment. I could take it over
 
all these at work.
at home I have a cheap(er) $150 one
 
Maybe it's just me, but I think that soldering looks pretty darn decent.
 
so much easier to proto crap with a header on it tho
 
12:38 PM
good morning everyone
 
rlemon What is it ?
some kind of micro computer ?
 
user6820627
Anyone feeling a sense of schadenfreude?
 
@Eris that's the new glorified rasperry pi zero w
(keh the name is even on the board)
 
^
 
I'm considering buying an m.2 ssd . I've heard it's x5 times faster than regular ssd
I hope I will actually see x5 speed :)
(I doubt it)
 
Joe
12:47 PM
Hi I need halp
 
user6820627
@Joe hello
 
Joe
@LearnHowToBeTransparent hello man :)
 
@BenFortune
You using a bt lib?
I'ma give this a go
 
1:03 PM
no one hosts on heroku here?
 
@PomeGranate I don't and I'm one, if that helps
 
thank you, now I can live in peace
in pieces
 
if I open a new window (with window.open) and the page in the new window changed its window.location.href, I no longer get messages sent from it to the original opening window
how do I get around that?
if I even can, sounds like a security concern
 
it would be. Why not just web sockets?
 
1:12 PM
@Mosho iframe in the new window.
 
can't use an iframe
 
frameset
 
dunno what that is
 
or is this one of those "pay with paypal" things with a predefined api? You can probably get around that with an iframe and stuff. Why can't you use an iframe?
 
it's an external API thingy and it won't work with an iframe
by design
 
1:14 PM
well, that would actually be another security concern
don't listen to me
:D
 
Hi..
 
Greetings and salutations
misgivings and regrets
 
it always make me sad that I have to install vim, but fucking nano comes default.
😬
 
meh, just install it. you can't be sad that not everyone made the same choice as you
 
sure I can
:bes sad:
 
1:19 PM
My mistake.
 
I'll try to forward the content of the address I'm forwarding to directly
doesn't work :\
well, it could work
with some work
sigh
 
yo
I keep getting error toggle is not defined
at HTMLHeadingElement.onmouseover'
any one any idea?
 
let's see the code that uses a variable named 'toggle'
 
@Zirak nice hackernoon thing
 
toggle=()=>$("#wrapper").toggleClass("toggled");
calling this using angular onmouseover="toggle()"
 
1:31 PM
I don't know angular, but I feel that way of attaching events is wrong..
that would need a global variable 'toggle'.
 
hmm lets try that
 
And if you are using angular, you are probably using modules, which mean that toggle is not globael
No.. I wasn't suggesting you use a global variable.
I was suggesting you register the event using angular's way. ng-mouseover= ?
 
well i think i can make it global using declare
 
Well, don't.
 
well ng-mouseover is not working
they are saying its obsolete in angular 2
 
1:33 PM
Then THAT is your real problem.
ohh, angular 2.
 
yes
now officially angular 2 is named as angular and angular 1 as angularjs
 
that is am important thing that would have been useful a few minutes ago
well, that's just confusing.
 
XD ikr
 
I know nothing about angular2 except that it hates global variables as much as the rest of us.
 
it does but there is this declare keyword i think that kind of makes variable global
but that is not working as well
 
1:36 PM
declare is a typescript keyword and it does not make things global
 
@Luggage hey, angular 4 is the latest release.
 
it declares variables that are defined elsewhere.
But I already told you that making global variables is the wrong way.
 
oh and i was thinking since one week it makes things global :O
yea its in RC6 still
but they say its performance is at par with react
@Luggage well this same funtion is working fine when i am binding with (click)
i think mouseover behaves differently or something
 
I still know nothing about angular 2, sorry.
 
okay
someone give me some likes so that i can ask question lol XD
 
1:40 PM
!!stats AtharvaPandey
 
@Luggage Atharva Pandey (http://stackoverflow.com/users/5105411/atharva-pandey) has 47 reputation, earned 0 rep today, asked 6 questions, gave 4 answers, for a q:a ratio of 3:2.
avg. rep/post: 4.7. Badges: 0g 0s 9b
 
wow what does this tell ?
!!stats Luggage
 
@AtharvaPandey Luggage (http://stackoverflow.com/users/956900/luggage) has 651 reputation, earned 0 rep today, asked 3 questions, gave 12 answers, for a q:a ratio of 1:4.
avg. rep/post: 43.4. Badges: 0g 11s 17b
 
Just some basic info that anyone gets from clicking on your profile
 
well my questioning ratio is high I am a newb programmer
 
1:42 PM
That's fine. I don't know why you can't post questions.
 
Delete a lot of downvoted stuff?
 
19
Q: Angular 2 Hover event

RoninIn the new Angular 2 framework, does anyone know the proper way to do a hover like event? In Angular 1 there was ng-Mouseover, but that doesn't seem to have been carried over. I've looked through the docs and haven't found anything.

 
because I made this account last year and didnt knew how the site works I just used to ask random 1 liner questions
and I have deleted those downvoteed questions now
 
yea
that counts against you
maybe read the documents that are linked to you when it says they're not accepting questions from your account
 
;-; I dont want to delete this account its my hard earned 47 repo
 
1:46 PM
so read the documents and learn how to fix it
we can't do anything to help you
 
wow (mouseenter) works like a charm
 
animals are attracted to it?
 
if I have a multi-selector event: $('.day-button, .eve-button, .night-button') is it possible to get the sender that triggers the click event?
 
why is it so hard to tell if a function is a class?
 
because javasacript
 
1:47 PM
I really wish Class was a type
 
Here is how bluebird decides: github.com/benjamingr/bluebird-api/blob/…
 
well objects of that class makes it a type
right
atleast in java thats how it is also in typescript
 
@Luggage that's really interesting
THIS_ASSIGNMENT_PATTERN.test(fn + "") is both brilliant and terrifying
 
It's deciding if it should promisifyAll like a class... so it might not line up with your reasons.
 
why I feel javaScript is more and more taking in java paradigms
 
1:52 PM
all the things javascript* is doing weren't unique to Java
 
because all js devs secretly love java
 
C4u
Hey all.
 
:D haha C4u loves C#
hello
 
@ssube what does Object.prototype.toString.call(urObject) give on your class object ?
 
 
C4u
1:53 PM
For sure I love c# ^^
 
As do I.
c# really gets around.
 
C4u
I'm using node.js with express and socket.io. Does anyone knows a way to set a cookie-value by using the socket? I've seen a solution like socket.handshake.headers.cookie = 'name=' + value+ ';';. Unfortunately, if checking the cookies on the browser, nothing is set.
 
@KarelG not sure
 
I like C# because it was inspired by java
 
You like Java too?
 
1:54 PM
one might call him a fanboy
 
I love java
 
C4u
Oh I havnt set a path... Ok, not helping.
 
@rlemon Not yet, still thinking about how to do this relay
 
inspired by java's flaws to not make the same mistakes.
 
Java doesn't even guarantee that 2+2=4
 
1:54 PM
correct then java was inspired by C# to improve itself
 
@BenFortune well I'm installing bleno on pi now
gonna see if I can't at the very least get my phone to be able to turn on a led
via bt
 
java 8 is a huge leap but not many programmer use all the J8 function
 
C4u
Guuuuuys. I'm seriously trying to like js. Isnt that a motivation to help me out? :D
 
What lib you using for gpio?
 
@KarelG fn.name, Object.prototype.toString.call(fn) is FileTransport [object Function]
 
1:55 PM
onoff
it's simple.
 
@C4u what does the http protocol and cookie and sockets have to do with JS?
 
C4u
Im trying to set the value server-side while using node.js
 
@C4u I don't know nodejs
 
using c# wouldn't magically bestow knowledge abpon you
 
@AtharvaPandey lambda functions did a lot, but they didn't fix some of the fundamental problems with Java, like type erasure
 
1:56 PM
@KendallFrey you did see that code golf :P
 
quantum type erasure?
 
i was amazed
 
@ssube I am hoping the next version will overcome that as well now not every language is perfect and they have there own set of flaws
 
@ssube aah, that means that the Class doesn't have it's own toString
 
@AtharvaPandey afaik Java 9 has no plans to change that.
 
1:57 PM
if it has, then they could return with '[object Class]' eg
 
C4u
@Luggage Its still js. The fact that I'm trying to set a cookie wont change the language ^^.
 
Erasure is a requirement for how their collections work, but breaks a lot of optimizations and type safety.
@KarelG it's not an object instanceof Class, since Class isn't a type. That's my whole problem. :)
 
Java 9 is almost out for release i am talking about java 10 now :D
 
I have a string | symbol | Function | Constructor<T> and need to do matching
 
all Constructor<T>'s are also Functions
so, it's kinda redundant.
 
1:59 PM
once I learn golang i will say bye bye to everything
 
the type requirement is redundant, yeah
 
You won't get any more functionality with the | since that only give yours type checking on COMMON props between all type in the |
 
that's what I thought
 

« first day (2351 days earlier)      last day (2589 days later) »