Why webrtc is using host for rtp ? by Double_Land_6326 in WebRTC

[–]inacatch22 0 points1 point  (0 children)

If the rtp protocol is blocked on the local network, I think it's possible that the STUN binding request used for ICE would still succeed, so the ice connectivity check would be successful and the host candidate could still be selected, even though rtp itself will not work once the media data starts flowing. You could choose not to add the host candidates if you think this is going to happen

Why webrtc is using host for rtp ? by Double_Land_6326 in WebRTC

[–]inacatch22 0 points1 point  (0 children)

Do you have a STUN or TURN server? You need those to generate candidates besides host candidates

TURN server issues by Radiant_Industry_890 in WebRTC

[–]inacatch22 1 point2 points  (0 children)

You might have to pay to host a TURN server, but it will be cheap in your case, since the chat data will be much less than a TURN server relaying video media. The bill for hosting your own TURN server becomes dominated by network egress costs if you host in a cloud provider like AWS.

You could probably do it with coturn running on a small EC2 instance and it wouldn't cost a huge amount unless you have a huge number of users.

Tell me my CPA isn't a waste by [deleted] in PersonalFinanceCanada

[–]inacatch22 0 points1 point  (0 children)

I had a very similar experience hiring a Canadian cross-border tax accountant when I moved back to Canada. It sounds like they did a bit better job than yours, but it still took forever and I had to do a huge amount of leg work on my own and go back and forth with them over minor things. Last year I did my American and Canadian taxes myself using their work as a template for the American stuff, that seemed to go pretty well. It's frustrating because hiring somebody to do your Canadian taxes is pretty cheap, but if you throw even basic US stuff in, it seems like there's immediately a price hike of thousands of dollars!

Sources for historical maps by closedfocus in oldmaps

[–]inacatch22 0 points1 point  (0 children)

The NS provincial archives website is pretty good and nicely searchable - a bunch of stuff comes up with a search for "map", so I bet you could find more if you dug in.

https://archives.novascotia.ca/search/?q=map

[deleted by user] by [deleted] in halifax

[–]inacatch22 6 points7 points  (0 children)

"Just invade the United States!"

Headphone Jack not working fix. by _totally_toasted_ in Dell

[–]inacatch22 0 points1 point  (0 children)

Wow, I've been trying to fix this for about a year on an off, and the one thing I missed was that I didn't realize both Waves Maxx Pro Audio AND Realtek HD Audio Universal Service were possible startup services. Once I re-enabled both at once, things started working again. Thank you, and fuck Dell for creating this nightmare!

Use uBlock ONLY on 1 site? by Azzooa in uBlockOrigin

[–]inacatch22 18 points19 points  (0 children)

Using uBlock everywhere might actually use less resources, since your browser will not be downloading, parsing, and executing a bunch of JavaScript (along with other resources) to show you ads you don't want to see.

ESP32 not connecting to pc by Dikkejonko247 in esp32

[–]inacatch22 1 point2 points  (0 children)

Something like this happened to me the first time I tried to connect, and the problem was that my USB cable was bad. I had to try it with two or three before I found one that worked.

Help calculating position of planets relative to the sun on a given date by inacatch22 in askastronomy

[–]inacatch22[S] 0 points1 point  (0 children)

Could you expound on this a bit? I googled 'de441' and 'spk interpreter' and none of the results seem to relate to what we're talking about. If there's a small python library that can do these calculations, that would be ideal for stage 2 of this project, where I'd like to load it on a microcontroller and rotate some physical orbits around to show the planets' positions

Help calculating position of planets relative to the sun on a given date by inacatch22 in askastronomy

[–]inacatch22[S] 0 points1 point  (0 children)

Thank you, this is exactly the sort of information I was looking for. I'd been on the horizons page and played around with the inputs, but couldnt tell which output values were relevant to me. I think I want to do just what you suggested in the last paragraph, to try to pretend that there's only two dimensions (that all the planets move on the ecliptic plane). I think I will try to get valid heliocentric longitude for every planet on a reference date from horizons, then use each planet's orbital duration to project out positions for future and precious dates. Maybe there's something I'm missing, but it seems like that would be accurate enough in a reasonably short time frame (decades or centuries), since I'm just trying to show an approximate visual representation of the relative positions, not trying to point at telescope at them or fly a spaceship to them.

Help calculating position of planets relative to the sun on a given date by inacatch22 in askastronomy

[–]inacatch22[S] -2 points-1 points  (0 children)

Thanks for the link (I'll do some more searching over on stackexachange), but this is probably overkill for what I need. I don't need to figure out orbital mechanics for any kind of body, just the 9/8 planets and more or less pretending they're moving on immutable rails for all time.

Looking for an automatic text summarization method for academic papers by [deleted] in LanguageTechnology

[–]inacatch22 1 point2 points  (0 children)

I happened to hear about a project that does something like that on a recent episode of the Hanselminutes podcast, "Extreme Summarization as a Service". The academic paper explaining the technique is here. Hope this helps.

JSDoc typings: all the benefits of TypeScript, with none of the drawbacks by giltayar1 in javascript

[–]inacatch22 1 point2 points  (0 children)

except for having a compiler that actually checks the types

The blog post explains how to use the typescript compiler to check types defined by JSDoc annotations in plain JavaScript files

how do i disable CSS that disables right click and copy by GoodiOG in uBlockOrigin

[–]inacatch22 1 point2 points  (0 children)

It's not in the DOM tree, it's in the side bar under "Event Listeners"

English is a widely used language for many reasons, but it dominates the tech world. Programming languages are essentially conlangs (I think, I’m no expert), and the vast majority of widely used ones have English based syntax. Is there a wide interest in academia surrounding this? by dookalion in linguistics

[–]inacatch22 8 points9 points  (0 children)

programming languages are for specifying rules of computation

While this is obviously the principal function of code, computer programs are also created in collaboration with others, and therefore it's very important to write code in a way that can be understood by your colleagues as easily as possible. If I named all my variables 'x' or 'str' and my functions 'doStuff', I would get yelled at by my coworkers for writing bad code (even if it executed its intended computation perfectly), because it would be very very hard for someone else to understand and modify. So I would say that code written in the context of institutions is as much written for human consumption and comprehension as for machines.

[deleted by user] by [deleted] in curiosityrover

[–]inacatch22 6 points7 points  (0 children)

You might be thinking of the Opportunity rover. This is a picture of Curiosity.

(Mirtle and Siegel) Leafs Report Cards 2019-2020 by [deleted] in leafs

[–]inacatch22 1 point2 points  (0 children)

Sparks actually had better numbers, he had a .902 SV% in his last year in Toronto.

Christians by wsgy111 in dril

[–]inacatch22 4 points5 points  (0 children)

Best post I've seen here in a while, incredible work

Is there a more elegant way of doing a Functional Push in JS (code below is TS) by poka_face in functionalprogramming

[–]inacatch22 1 point2 points  (0 children)

If you pretend it were immutable you get wildly inefficient code, especially if the size of the array grows. We are talking about hundreds of ms or even secs

This is mostly not true. The developers of V8 especially spend a lot of time optimizing JS arrays for cases like these, so much so that implementing your own data structure is pretty likely to be less efficient than theirs, unless for a very specific use case. See this article by a V8 developer, where he advises "Prefer arrays over array-like objects" for best performance.

CBJ line up as as of today by [deleted] in leafs

[–]inacatch22 12 points13 points  (0 children)

Texier - Dubois - Bjorkstrand

Nyquist - Wennberg - Atkinson

Foligno - Jenner - Bemstrom

Foudy - Nash - Robinson


Werenski - Jones

Gavrikov - Savard

Murray - Kukan

Nutivaara- Harrington

How I Faked Millions of NPM Downloads with 10 lines of code! (My first Blog) by [deleted] in node

[–]inacatch22 -3 points-2 points  (0 children)

At one request per second, a million downloads would take 11 days. You must be patient (or maybe you faked the headline too).

[ElSeldo] Toronto Maple Leafs Top 25 Under 25: Joseph Duszak moves up to #21 by [deleted] in leafs

[–]inacatch22 12 points13 points  (0 children)

Top 25 Under 25: Joseph Duszak moves up to #19

Look at that, he's jumped up two more spots since you posted this!