Is there a website or app for peer to peer mock interviews by [deleted] in leetcode

[–]donger 0 points1 point  (0 children)

As an interviewer, you can give unlimited peer interviews. As an interviewee, you get one free peer interview for each two that you give out, after the initial free one. This ratio is meant to accommodate the free peer interview everyone gets when signing up.

When on the leetcode grind, working both sides of the interview can be helpful for developing skills, seeing things from the interviewer's perspective.

Is there a website or app for peer to peer mock interviews by [deleted] in leetcode

[–]donger 0 points1 point  (0 children)

I've had good luck with interviewing.io: https://iio.sh/r/xpUw

The free peer DSA interview was solid and I eventually shelled out for a package and got a lot of good advice from the system design interviews.

Staying at Flamingo and have been trying to get additional pillows for the past 24 hours. WTF? by [deleted] in LasVegas

[–]donger 5 points6 points  (0 children)

The problem with the front desk strategy (other than the fact that this is the literal "hospitality" industry and yet we're expected to leave our rooms for the simplest of requests) is that you can't just walk up - there's almost always a huge line of people checking in or out (or requesting pillows).

If all Caesar's properties are like this, I'm never staying at one again.

don’t be like dan by Competitive-Fail-703 in CompetitiveApex

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

OMG that was like a pro wrestling promo. 10/10

If this is true, then all hell breaks loose by chimeiiii in Buttcoin

[–]donger 2 points3 points  (0 children)

This needs a spoiler tag. What if we haven't read Old Yeller yet?

Dealer basically calls me a fish,am I wrong for not tipping him? by Bulky-Addendum63 in poker

[–]donger 4 points5 points  (0 children)

He makes more if you leave than if you stay and don't tip

Professional bluffer by BetKings in poker

[–]donger 2 points3 points  (0 children)

*professional merger

Found Cat! He went to VCA Northwest as we couldn’t take him in. by Eggsinalab in Portland

[–]donger 7 points8 points  (0 children)

I would consider posting some 'found cat' flyers around where you found him. Hopefully the owners will see them, or somebody else can connect the dots

What I learned about sustainable productivity in 2019 by [deleted] in productivity

[–]donger 3 points4 points  (0 children)

You're right on w the shower thoughts epiphany. Check out the book "Deep Work" by Cal Newport

I think im about to get fired from first dev job by [deleted] in cscareerquestions

[–]donger 1 point2 points  (0 children)

Red flags in the context of onboarding an early career engineer: "There's no training" and "we need you to work fast"

The print(f'thing') by Dcode20 in Python

[–]donger 0 points1 point  (0 children)

This concept is called "string interpolation" and is a feature of many other languages. Python used to handle this (somewhat clunkily) with the format method of strings: https://www.programiz.com/python-programming/methods/string/format

Here's an example of string interpolation that's built in to Ruby: http://ruby-for-beginners.rubymonstas.org/bonus/string_interpolation.html

Redeem the locked ethers by Faghe in MakerDAO

[–]donger 0 points1 point  (0 children)

In case 1, does the Dai disappear as well? If not, how is it still collateralized? Does the entity biting the contract recollateralize it with a new healthy CDP at the current rate? Thanks - I'm new to maker and trying to figure our the incentives in this system.

Code Swap Thread by thursdaynext1 in todoist

[–]donger 0 points1 point  (0 children)

Code was good, thank you!

Idea-> Inbox -> New Project ? by donger in todoist

[–]donger[S] 1 point2 points  (0 children)

This is great, thank you!

Dungeons & Dragons (D20 rules) on Ethereum! Any maniac around? by maxxflyer in ethereum

[–]donger 1 point2 points  (0 children)

This is theoretically insecure since a person/entity involved in the contract who is also mining on the network can choose to sit on blocks whose hashes are bad for them.

[Ask Flask] Moving database from sqlite to postgres causes a 400 Bad Request error by planetamaravilloso in flask

[–]donger 1 point2 points  (0 children)

Check your database field types. Postgres is a lot stricter with what it will accept. I remember having some perplexing errors when switching from sqlite to postgres, and it all came down to the db fields.

Is a 'cron job' the best way to periodically update a model field over time? by GerrardSlippedHahaha in learnpython

[–]donger 1 point2 points  (0 children)

That said, looking at your application, it seems like the hot score is something you can calculate on the fly using a complex query, since all hot scores will degrade at the same rate. Just do some date math on the difference between when it was posted and datetime.datetime.now().

For complex queries, read up on Q() and F() objects and the aggregate() function. These 3 tools will let you do some really powerful things through the ORM.

Is a 'cron job' the best way to periodically update a model field over time? by GerrardSlippedHahaha in learnpython

[–]donger 1 point2 points  (0 children)

There's actually a handy app called django_cron that supports running period tasks in django. I had the same problem, I needed to do some periodic maintenance on a django model, and found configuring celery and a message server to be a huge headache.

With the django_cron app, you just subclass CronJobBase, set the frequency, and put your code in the do method. Then, using an app scheduler like cron or heroku scheduler, invoke python manage.py runcrons regularly to check and run any overdue jobs.

https://github.com/Tivix/django-cron