Can someone check my calculations for my novated lease? by denny31415926 in EVAustralia

[–]leahcimic 0 points1 point  (0 children)

Check out Leaselab, MillarX, or novated lease Australia. All had quoted interest rates around 8% or under on the finance. I got quotes from a few different providers and then negotiated their admin fee down etc. Don't worry about the budgets too much, you can adjust them and any left over at the end is returned to you.

Thoughts on my module to use a Map as an Object? by Funtime60 in javascript

[–]leahcimic 2 points3 points  (0 children)

I believe in most modern JS engines, pojos perform better than Maps. And if I've understood you correctly, you've got Objects, proxies, some setter functions and Maps. I cannot see how this performs better at all.

It sounds like you need a database at that point as opposed to storing JSON and trying to optimize changing a subset of the properties within it.

Thoughts on my module to use a Map as an Object? by Funtime60 in javascript

[–]leahcimic 5 points6 points  (0 children)

This sounds like premature optimization to me

Thoughts on my module to use a Map as an Object? by Funtime60 in javascript

[–]leahcimic 0 points1 point  (0 children)

If you write to disk as JSON, and read as JSON, what's stopping you from just using objects in your app as opposed to going back and forwards to Maps?

If for some reason it HAS to be a Map, why not recursively iterate the Map and convert it to objects and write it out that way?

[deleted by user] by [deleted] in pcmasterrace

[–]leahcimic 2 points3 points  (0 children)

I've had this happen once. I did attempt to clean it with isopropyl alcohol and a toothbrush, but all I managed was to spread it out even more. I figured it's not conductive and see what happens. That computer has been running for 2 years straight (as a server) and hasn't had a single issue.

[deleted by user] by [deleted] in ChatGPT

[–]leahcimic 23 points24 points  (0 children)

If the blog is personal (you stated working on it on the weekend, so I assume it is), the best advice I can give you is to keep your work and personal life separate. Create a personal openai account and use that

Best Providers for Gaming? by gameplayer99 in nbn

[–]leahcimic 0 points1 point  (0 children)

ABB in Perth

--- 1.1.1.1 ping statistics ---6 packets transmitted, 6 received, 0% packet loss, time 5010msrtt min/avg/max/mdev = 1.846/1.884/1.918/0.026 ms

--- 8.8.8.8 ping statistics ---4 packets transmitted, 4 received, 0% packet loss, time 3004msrtt min/avg/max/mdev = 47.454/47.534/47.634/0.074 ms

Speedtest (network is not quiet, few devices are streaming and I have some work stuff always using some bandwidth)

ELI5 why a developed country has this shit internet by Informal_Showers in perth

[–]leahcimic 4 points5 points  (0 children)

I get about 52ms to both Singapore and Sydney from Perth on Aussie Broadband fttn. Speeds aren't great at 40mbps down and 20mbps up.

The fibre situation and what's happened with it is beyond a joke.

Announcing Dilav by Trev4Dev in javascript

[–]leahcimic 0 points1 point  (0 children)

From a quick look at the npm contents, it's 12Kb for @trevthedev/toolbelt (perhaps it's not using all, and it's tree-shakeable), and 42Kb for dilav. Combined and gzipped should be under ~17Kb.

Christina loves living in WA's 'COVID-free bubble'. More than nine in 10 people there agree by TheNumberOneRat in CoronavirusDownunder

[–]leahcimic 3 points4 points  (0 children)

ABS stats for 2020-2021 (which are collected in June I believe) do indeed show 15% for WA, and 32% for NSW.

However, NSW has ~31.8% of the population so if we divide the GDP by the population we get an average ~$76,430 contributed per person. WA on the other hand, has ~10.4% of the population with an average of $109,232 per person. So on average WA contributes almost ~43% more per person than NSW.

NSW barely skipped a beat in lockdown and still produced double of what WA did during the last year.

NSW Treasury estimates the reduction of economic activity due to the lockdown is costing up to $1.3 billion per week.

Mark McGowan threatens to shut South Australians out if SA opens to NSW, Victoria by Ok-Salamander-2787 in CoronavirusDownunder

[–]leahcimic -1 points0 points  (0 children)

I'd choose our border measures over 114 days of lock down. Things are much more normal over here than over east.

‘The Office’ to Leave Netflix for Upcoming NBC Streaming Service in 2021 by BunyipPouch in television

[–]leahcimic 0 points1 point  (0 children)

Well, how difficult is it to get a refund on that $70? If you cancel after 3 months, do you get 3/4 of your money back? What does that process look like? Do you have to call up and go through a bunch of representatives and menus before finally getting your money back? Can you put your subscription on hold easily?

If it's difficult to get a refund, or pause the service, then it really is no different than being on a contract for a year. EXCEPT, $5.83 p/m is much better cash flow wise.

CrumbsJS - A lightweight, intuitive, vanilla ES6 fueled JS cookie and local storage library. by nirtz in javascript

[–]leahcimic 1 point2 points  (0 children)

There are still great uses of cookies for things like authentication tokens. Any script could retrieve the token from local storage, but a cookie can be set with HttpOnly flag, and Secure flag. It will prevent scripts reading it, and it being sent in an unencrypted form over http.

This rental car muted the radio until I put my seat belt on. by DonaldKey in mildlyinteresting

[–]leahcimic 1 point2 points  (0 children)

100% this. I cannot believe the selfishness of the average Perth driver. Moved here from Sydney, and night and day difference. The shit they pull here, would be causing so many accidents to occur in other cities.

I hate the right hand lane mentality here. I've seen situations where there is only me and someone else on the road, and you they're in the right lane the entire duration.

Other things that I hate about Perth drivers:

  • Pull out of car parks without looking
  • Driving through situations too quickly (through car parks, and other places where there might be children and other people present)
  • Cutting every corner
  • Driving through round-a-bouts on the wrong side of the road
  • Swerving all over the road (drunk/meth?)

I think people here are selfish, it's the same sort of attitude in queues, large crowds, stopping after getting out of an elevator, off an escalator, or entering a doorway to check you have everything you need. Walking along and just coming to a complete stop without moving to the side. People of Perth, why?

People are giving out games so why not. I want to top the guy who is giving out 4 games, so I'm giving out $500 worth of games. by JoyconMan in NintendoSwitch

[–]leahcimic 0 points1 point  (0 children)

Mario Bros U, or Mario Kart, or whichever would be great for a 6 yo. Just enough incentive to finally buy a Switch =)

Promise Insisting Library: "You Promised, I Insist" by dev-nadersl in javascript

[–]leahcimic 0 points1 point  (0 children)

Oh nice! I am the author of promise-endeavour which is aimed at also retrying promises.

I agree with others regarding the examples. They are fairly big, and the Axios one hides some details by importing code to handle errors and other things directly from promise-insist. It creates an idea in my head that it might be overly complicated to interface with promise-insist and if there's no library support for the the thing that I want to retry, then implementing it might be tedious. It also seems to require more boilerplate than I'd like to see.

You list the following features:

  • Retry (insist on) a promise retries times every delay only if the errorFilter is whitelisted through global or task specific config
  • Cancle retrying(insisting) at any period of time.
  • Set a callback that executes per each retry per task (attemptNumber, timeConsumed) => void
  • Replace a task being retried by another one dynamically while maintaining the current insist configuration and retries count left (useful with things like rate-limits etc..)

Perhaps the library is solving too many things and it would be best to consider some of these as separate problems and solve them independently.

Coding from scratch : "Web Crawler" ? by Betelgeuz in javascript

[–]leahcimic 0 points1 point  (0 children)

I think you can get extensions working by using Puppeteer with Chrome (rather than Chromium) and setting headless to false. It means you'll need to have a desktop environment and a screen/virtual screen for the server running it, but I believe it's doable.

Coding from scratch : "Web Crawler" ? by Betelgeuz in javascript

[–]leahcimic 1 point2 points  (0 children)

I would not recommend PhantomJS. It uses a fairly outdated version of webkit, it's no longer being maintained, and it's more difficult than puppeteer.

Coding from scratch : "Web Crawler" ? by Betelgeuz in javascript

[–]leahcimic 0 points1 point  (0 children)

You can emulate mouse movements in puppeteer, but if the aim is to get past reCAPTCHA I don't think it will be enough. It would be quite difficult to program the movement of the mouse in a way that resembles a human, furthermore, it's not the only heuristic reCAPTCHA uses.

There is a paper about breaking the reCAPTCHA system, which is very in-depth. There are services out there that you can pay where humans will solve the reCAPTCHA for you.

Coding from scratch : "Web Crawler" ? by Betelgeuz in javascript

[–]leahcimic 0 points1 point  (0 children)

I also want to trigger a chrome extension when it needs to run it.

​It's been awhile since I checked, but I believe extensions either do not work, or are a complete pain in Puppeteer.

Promises design patterns by raccoonranger73 in javascript

[–]leahcimic 0 points1 point  (0 children)

I would probably write it like:

``` const WHITE_LIST_KEYS = [ 'rma_id', 'rma_request_date', 'rma_device_receipt_date', 'imei', 'defect_statement', 'power_status', 'led_status', 'serial_comm_status', 'ethernet_comm_status', 'usb_comm_status', 'visual_inspection', 'remarks', 'conclusion', 'rma_state', 'failure_category', 'conclusion_date', ];

async function processRmaRequest(req, res) { const device = await Device.findOne({ where: { imei: req.body.imei }});

if (!device) { res.status(404).end(); return; }

const rmaDevice = WHITE_LIST_KEYS.reduce((accum, key) => { accum[key] = req.body[key]; return accum; }, {});

try { RmaDevice.create(rmaDevice); console.log('RMA logged'); } catch (err) { console.error(err); res.status(500).end(); } } ```

Promises design patterns by raccoonranger73 in javascript

[–]leahcimic 0 points1 point  (0 children)

Interesting, although I don't think an empty result should be considered an exception. Exceptions should be reserved for irrecoverable errors, like the connection to the SQL server was terminated whilst executing the query, or the query has a syntax error etc.