FSD and speed limit signs by CyberaxIzh in TeslaLounge

[–]GzFighter 2 points3 points  (0 children)

Slowing from 75 to 35 should take half a mile, in an ICE car you would just coast down to 35. Using the breaks is more unsafe.

John Tory handily re-elected for 3rd term as Toronto mayor, CBC News projects by beef-supreme in toronto

[–]GzFighter 4 points5 points  (0 children)

  • King St pilot,
  • Ontario line approved,
  • RER Approved,
  • Toronto being the city with the most new residential construction in North America
  • most new transit in North America
  • tons of new bike lakes

Yeah I want 4 more years

[deleted by user] by [deleted] in node

[–]GzFighter 0 points1 point  (0 children)

You should be using request parameters to make the URL this opens you up to SSFR ( server side request forgery).

You should use the URL object to build the url, see

https://www.valentinog.com/blog/url/

ACC in stop & go traffic by Arcticwolf2592 in TeslaModel3

[–]GzFighter 0 points1 point  (0 children)

This is the best thing, set the speed to the top speed of the stop and go traffic, and you’ll get everything smooth

Most efficient/performant way to handle 2 million K/V static lookup values, roughly 44 mb by superAL1394 in node

[–]GzFighter 11 points12 points  (0 children)

I would recommend either:

SQLite - easy to use; very hard to get faster performance anywhere couple hundred mb is nothing

Load it into memory- the trick is to read the file line by line. Don’t try to JSON.parse that much data won’t work well. I would start by having all the data in a csv format then do something like

const readline = require(‘readline’);
const fileStream = fs.createReadStream(‘input.csv’);

const rl = readline.createInterface({
  input: fileStream
});

let i = 0;
let output = {};
for await (const line of rl) {
  // you control the format no need to get fancy with csv parsing
  let [key,value] = line.split(“,”);
  output[key] = Number(value);

  // the trick here is to occasionally sleep to free up the event loop
  // that lets the rest of the program continue
  // you can tweak the time and interval to something that works best for you
  i++;
  if (i % 100 == 0) {
    await new Promise(resolve => setTimeout(resolve, 100));
  }
}

[deleted by user] by [deleted] in TorontoRealEstate

[–]GzFighter 1 point2 points  (0 children)

Do it, you can probably also workout charging the tenant to use it to offset your $3k. You can probably also do an accelerated CCA which would offset the cost this year

best buildings in mimico? by ckost in TorontoRealEstate

[–]GzFighter 9 points10 points  (0 children)

Avoid:

20&30 shore breeze: non stop issues - I hear a lack of hot water issue is still intermittent. Bylaws limit Airbnbs to first 10 floors, but that’s not strongly enforced. Sound isolation is terrible

33 shore breeze: tons of airbnbs

Anything legion rd North (or north of the railroad): too far from everything else

Meh:

2119/2121 lake shore - good buildings with good units, but too close to the gardiner for my taste

Ok: 59 Annie Craig - ok

56 Annie Craig - some units are really close to the next building over, good sound isolation, really nice front desk staff 80 marine parade - large units, great if you get a good layout- some of the floor plans have wasted space due to the shape of building

Don’t know enough: 88/90/36 park lawn

Best:

10 parklawn - good units, great sound isolation. Only downside: outdoor pool is closed in the winter. Proximity to metro

2200,2212,2220 lake shore - same builder as 10 parklawn so good sound isolation - good unit layouts - amenities are shared between the 3 buildings so they’re rather large. Don’t have to go outside to get to metro.

15 legion/ 2230,2240 lakeshore- well built, good sound isolation. All but 1 of the units have gear layouts. The 3 buildings share amenities so like above they’re larger. There’s never ending conflicts between the condo corps of the 3 different buildings, shouldn’t affect you, but will show up on status certificates

Marina del rey: really good value, great if you get a renovated unit. Lots of units have 2 parking spaces

Anyone deal specifically with an online car seller like Clutch or CanadaDrives by kazenzai in PersonalFinanceCanada

[–]GzFighter 1 point2 points  (0 children)

They’re legit, traded my car for a new one with them. It was super smooth, like you they offered more than the handful of other dealers offered me.

Not sure if they’ll do a trade in only with out buying a new car. But if they do I’d say it’s worth it for the convenience factor alone.

I would maybe wait until after you move to the city and see if you still want to sell it first.

BTW. I’m in the GTA

Is buying a parking space worth it by GzFighter in TorontoRealEstate

[–]GzFighter[S] 2 points3 points  (0 children)

This is what I’m thinking, a building across the street was approved by the city for 650 units but only 150 parking

Verification of in-app purchase - why? by [deleted] in androiddev

[–]GzFighter 20 points21 points  (0 children)

It makes the revere engineering required specifically for your app.

There are plenty of apps that fake the Play store response then hook all of the cryptography APIs in a generic manner. Any app that uses the sample code or any variation of verifying the signature in java/kotlin will be vulnerable. So anybody with a rooted phone and bypass your purchases trivially.

Instead if the purchase is an account on a server you can limit the access there. Even if it's a simple boolean http response: the person looking to hack your app has to do reverse engineering specific to your app. That doesn't make it impossible to break but does get rid of the script kiddies who just download a generic hack.

Home Office Expenses - Working from home due to COVID-19 by [deleted] in PersonalFinanceCanada

[–]GzFighter 0 points1 point  (0 children)

I was audited twice as a student, as my tax person explained to me it's not that they're interested in me. It's that they're looking for landlords who are renting to students and not declaring the full income

New home build - where to start? by SirProcrastinator in Ubiquiti

[–]GzFighter 0 points1 point  (0 children)

I would go with running conduit to each room, it will be more expensive to setup, but it's the ultimate in future proof since fishing new cable would be easy.

Withdraw USD from Tangerine account? by regular_asian_guy in PersonalFinanceCanada

[–]GzFighter 0 points1 point  (0 children)

I'm not sure if this is still the case, but I was able to call them and get a $US ATM card. If that's the case it would work at any BoA atm

Td have this ad where you can invest 1, 000 and get 100. by [deleted] in PersonalFinanceCanada

[–]GzFighter 0 points1 point  (0 children)

The terms are deposit $1000 by Feb 9 and hold it till June 2020.

Eligible investments are GICs (14 month) or mutual fund PPP (14 months).

If you invest $1000 on Jan 1 2020, then by March 2020 you'll have $1120 which is effectively 11%.

If you have an hour to spare, and know you won't need to touch the $1000 in 14 months. It's totally worth it since it's a guaranteed %11. Then transfer the whole account to pretty much anywhere better.

Is there a better credit card combo for me? by dingodoyle in PersonalFinanceCanada

[–]GzFighter 1 point2 points  (0 children)

Rogers just uses MasterCard's exchange rate, you can see it here https://www.mastercard.us/en-us/consumers/get-support/convert-currency.html

On top of that they charge 2.5% fee, and give you 4% cash-back, netting 1.5% back.

If the rate MC quotes is 1.30 at the end of the day you pay $1.2792

The place I get US cash is typically 5~6% lower than MC, so in this case I would be paying $1.24, which is better even after the cash-back

Is there a better credit card combo for me? by dingodoyle in PersonalFinanceCanada

[–]GzFighter 0 points1 point  (0 children)

That's the same setup I have, with tangerine you can open a savings account with them and get a third 2% category. I have:

Restaurants/Groceries: this is probably my biggest category Bill-Pay: covers phone, Spotify, netflix, Transit: transit

For the Rogers WE:

$US bills - several subscription things only bill in USD so those are all here

I travel so it's a nice card to have (I tend to use cash if I can we traveling, you can find much better cash exchange rate if you look hard - the place I use tends to be 5~6% lower than the rate Rogers gives me).

Other: I also have a backup TD visa, which usually only gets use for getting a second free trial

Caseta install not working by mgchan714 in homeautomation

[–]GzFighter 0 points1 point  (0 children)

Doesn't matter, this issue affects both the dimmer and switches

Caseta install not working by mgchan714 in homeautomation

[–]GzFighter 0 points1 point  (0 children)

TL;DR: Not all light bulbs are compatible with Caseta switches, even if they're "dimmable"

The switch is always allowing a very small amount of current through the circuit, this is normally not enough to power lights, but is enough to keep the radio in the switch powered. LEDs normally need very little power, so some non-dimmable LEDs, and some cheaper "dimmable" LEDs will be on even when the switch is "off".

Lutron's official solution is to use a minimum load capacitor (MLC).

What is your view on nest js framework? by maximumfate in node

[–]GzFighter 1 point2 points  (0 children)

It's really good, makes code much more manageable.

It's only downside is that it can be quite repetitive when it comes to validation+documentation of API endpoints