« first day (3205 days earlier)      last day (1965 days later) » 

01:05
morn!
whatever works
 
2 hours later…
02:54
anyone here an angular wizard or good with services?
 
1 hour later…
 
1 hour later…
05:49
I contest this should not be a duplicate...any thoughts? stackoverflow.com/questions/31369061/…
06:32
Noon!
@deostroll I think it probably ought to be a duplicate, since its the same answer for two similar questions.meta.stackexchange.com/questions/304811/…
@deostroll something from 2015? o.o.
still, it is kinda questionable. For me, it is okay-ish but you have to understand regex in an extend to see why both are similar.
 
4 hours later…
10:25
Someone an idea what's the best way to go into such a svg picture and count the free seats? What is the best way/method to do this? It is a stadium plan and in the plan, there are sectors, the sectors have seats and I want to count them. tickets.fk-austria.at/…
o,o
@SpedoDeLaRossa create an endpoint that get seats data ...
then count your free seats or just provide the number of free seats
no need to count svg's if you have a data object to go through
random question:
My main problem is how to get to the seat counts, because it isn't on the main page. I have to click for example on 105, then click on "Plätze wählen (choose a seat)" and then I can count them. But thats only for a sector and I don't know how I get the dynamically URL? If there is one
does anybody know if you can turn off fast charging in android phones?
in my case I have a Pixel 3
which is basically pure android
10:44
@Neoares is it not present in the Battery settings?
no
it has an option to control the usage of battery using a machine learning algorithm xD
use a regular adapter.
:)
yeah I guess...
but my last phone also had fast charging
why do you want to disable it?
it is convenient
I imagine the only reason to do that is that you worry about the degradation of the battery
correct?
you are correct
I assume the high temperature it reaches while fast charging is not good
10:58
it has improved over time
the main cause of those degradation is more when you are recharging it
I see people waiting when it goes below 10% in order to recharge it. Or using many apps to make it low so that they can charge it
and then they recharge to 100%
yeah. super bad for battery.
11:42
Trying to find an answer to this on SO, think I'm not phrasing the question correctly.
One sec...
ding
I have an object: 'var obj = null;' ... I have a function that tries to call this 'obj' like so: var property = 'obj.someProperty', this gives an 'Cannot read property 'someProperty' of null' error which is fine I can just do a check such as (if obj !== null && obj.someProperty !==) { property = 'defaultValue' } ... is there a way to shorthand this?
one second has passed
2 hours later
so far there is no null coalesce operator in js (yet)
but you can do
var prop = obj && (obj.someProperty || 'default')
11:49
@KarelG that's great thanks
hmm
that is not so right
if obj is falsy, the prop is still not defined
I would just do
const obj2 = obj || {}
const prop1 = obj2.prop1 || default2
const prop2 = obj2.prop  || default2
Yeah tested that on JSFiddle it's falsy
@KarelG This however is great
@KarelG so what are your recommendations?
to not wait until 10%?
I just charge it almost every night, except it's at 70%+
I know the optimal % is around 40
12:01
I read an article about ideally how and when you should recharge your phone
turns out it is quite complicated
I only charge when it is below 25 and charge it until above 90%. For that, i have to check it after x hour(s) though. You can get familiar with how long it would take to charge it. I don't have to charge my phone every night.
just not an avid phone user.
the gist of it was not to wait until it's 0% to charge and don't charge if it is near 100%
my previous phone could still "survive" 2 days with a quite intensive use.
that's pretty impressive
lol, "last full charge" of my phone atm: 195 days ago
12:03
my phone lasts for a full day, but I don't use it much beyond phone calls and a little in the evenings
(that is when it got charged up to 100%)
@Neil turn off 4G if you don't need it?
@KarelG I guess I should, right?
my phone barely has 3000 mAh
it is only active when I am going to/leaving my office. I even turn it off when I drop it somewhere at home to do chores.
@KarelG same here
I actively use it traveling to/from work
12:06
I don't even know how you would go about turning off 4g
that's interesting
but I don't know ig 4G is a battery issue
it consumes battery power...
even when screen is black
well not if I'm connected to a wifi
4g isn't wifi
Cell data is usually worse than WiFi for battery consumption
12:16
@Neil that why I'm saying that if you're connected to wifi the 4g doesn't consume battery
because it's not being used
well I'm at work, so no :P
I don't get wifi
I mean I do, but it's under a proxy
wouldn't feel comfortable looking at cat pics using company internet
@Neoares and WiFi does not need some battery power no ? :P
yes, but I assume less than 4G
that's arguable
o shiet
turns off wifi
12:24
I think the biggest improvement in recent years with smart phones has been that the display can turn off it's display except for individual pixels
so you can like, show the time on the screen and the rest of the screen isn't just black, it's off
yeah, that's amazing
so basically black pixels are off pixels
must have been complicated to achieve
yeah, if you have that feature it is
shows the time with basically no battery consumption
I don't know, I assume I have it
since I have a freakin' pixel 3
@Neoares yep
@Neil does the feature have a name?
to google it
12:26
the older led screens were not really black btw
@Neoares I want to say it's called true something
true display maybe?
or we can say that all oled screens have that feature, for example
that is why they advertised that as "deep black" or something :P
I just found this: yofla.com/black-screen
it's to clean the PC screen
like wtf, can't I just turn it off?
some screen's are not pitch black when turned off
:|
it is still "powered" unless you remove the plug
LED screens meh
12:29
in any case, there's no difference between the black background and turning it off
they're still "on" black pixels
> When a pixel is black on devices that have AMOLED displays, such as the Samsung Galaxy series, it means they're turned off
well at least we know that AMOLED has the feature
oleds have that too I believe
> Compared to LCD, OLED provides richer colors with superior contrast. Black images are better displayed due to the pixels' ability to turn off diodes, enabling an image that better reflects the original subject.
and pixel 3 has P-OLED so I assume it has the thing
also when I tap to see the hour, I don't see any difference between that black and the one when the phone is blocked
which makes me want to put a black wallpaper
> In other words, if you use a black background on an AMOLED display, your display will produce less light. This will help save battery power, squeezing more battery life out of your device.
P-OLED? o.o?
oh a product from LG, an OLED with a plastic substrate
TIL
they're more flexible it seems
that's good, I always wanted to bend my mobile like a taco
or like an iphone
yep. it is being used in that curveable smartphone AFAIK
12:46
ooh, the color of the top menu changes from white to black depending on the wallpaper :o
too many mobile TILs today
13:26
oh boi
the network is starting to kill them
13:56
I just want a phone with a diagonal screen size of smaller than 4.3" (11cm) again
I hate the big phone craze. Unportable, unusable, unlastable
Best phone experience I ever had was the HTC Incredible 4G/LTE. Screen size was approx. the size of a credit card so I could reach everything with ease holding the phone in one hand. Not to mention how great HTC Sense's UI was.
I can reach everything with one hand and I have a 5.5" phone
 
1 hour later…
15:21
@ShrekOverflow Can you advise further with regards the vulnerability you mentioned
 
1 hour later…
16:35
17:15
Hi there. I'm learning how to use webRTC to create a text chat. I'm a PHP developer and on the shared host where I test my code I can't use sockets, so I've opted to use SSE method described here: github.com/muaz-khan/RTCMultiConnection/tree/master/demos/…
@Oshione Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
The problem is that I can't get the demo pages I've ceated working, it's like that the two peers will not talk
Anyone has experience with webRTC and PHP as signaling server?
I've the same problem with peerjs, two different pages on the same host, but they will not comunicate.
Was wondering how to start getting the url response headers in angular 7?
import { Injectable } from '@angular/core';

@Injectable({
  providedIn: 'root'
})
export class WebUrlPreviewService {
  fakeUrl = 'https://www.cnn.com';
  constructor() { }

  canUrlBePreviewed(fakeUrl: string): boolean {
    //

    return true;
  }
}
I am trying to check for x-frame-options in the response
possibly fetch()
?
17:35
Yall see the hop last night?
18:08
nope
doesn't really do me much good here
would a developer ever do .onclick dangerous re xss, but .addEventListener not dangerous re xss?
19:09
yes, "developers" do weird shit all the time
19:46
@KevinB are you good with angular
@JoJo you have to use httpclient
and httpheaders
20:01
equifax is giving out free money
20:53
indeed they are
 
3 hours later…
user8729657
23:24
@forresthopkinsa, now I was having a smoke at the side of my house last night, and my neighbor approached me and started trying to act like hes been my friend for ever and telling me he's not a greedy guy.
user8729657
wtf does he mean?
23:47
he definitely means that he wants a drag of whatever you're smoking

« first day (3205 days earlier)      last day (1965 days later) »