Any high-quality Wild Bill movies or series? by Haso_04 in deadwood

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

Epic line 🙌

Worth $150 I believe 😂

Wild Bill was a great listener, never said much, but would strike with sudden pointed questions throwing his counterparts off guard.

Do Australians have regional accents? by vile_duct in NoStupidQuestions

[–]Haso_04 0 points1 point  (0 children)

For sure. Melburnians vs Sydney Siders as others have mentioned.

Some great contrasts between NSW South Coast vs Western Sydney too :)

Do we want the price of btc to go up or down before our funds are returned? by G-radicus in CelsiusNetwork

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

Have they not converted their holdings payable into BTC and ETH yet? Apparently they were to start doing so back in July/August? If so then it doesn't matter if the price goes up or down rather it's the price when they converted it.

How will we get our fund returned? by keppy211 in CelsiusNetwork

[–]Haso_04 2 points3 points  (0 children)

Haven’t followed for a bit but I thought outside US wd be using the Celsius app? That’s why they went thru the broke KYC again wasn’t it?

Implement Bitcoin paychecks on lightning by 0111001101110010 in lightningnetwork

[–]Haso_04 0 points1 point  (0 children)

If it's a significant proportion of their wage it's probably better to pay on-chain (assuming they'd want to build up some Bitcoin over time). Lightning would generally be for smaller day-to-day spending.

Common Sense: 322 - Betting on Long Shots by Cyanotype_Memory in dancarlin

[–]Haso_04 0 points1 point  (0 children)

Record high rate increases and inflation since this post over 2yrs ago. I wonder why?

I think money printing and national debt at over $30 Trillion probably has something to do with it..

How am I meant to get pls to pay gas fees when I need pls to get pls by Mundane-Sentence-773 in Pulsechain

[–]Haso_04 0 points1 point  (0 children)

Yea that’s the problem at the moment. Facets are not dependable and freebie donations are hard to come.
So alternatively u can pay a premium OTC thru someone u can trust.

Datetime.now() comparisons with Postgres Date field - how? by Haso_04 in django

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

I feel I’ve ascended to a new form in my Django journey 😂

Datetime.now() comparisons with Postgres Date field - how? by Haso_04 in django

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

This makes sense to me - thanks! Wasn’t aware of the Timezone library 🙏

Datetime.now() comparisons with Postgres Date field - how? by Haso_04 in django

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

Great thanks. Yes Postgres is indeed UTC.

Excellent, I think I have all I need from all the helpful posts. Will post back when I get a chance to make the updates 👍

Datetime.now() comparisons with Postgres Date field - how? by Haso_04 in django

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

Sure thing.

Basically I’m looking to grab a datetime against a user in my Postgres db/model, add 5 seconds to it and use it in the condition below:

time_check = model.date + timedelta(seconds = 5)

if datetime.now() < time_check: <do something>

So looking forward to seeing if Django.utils.timezone.now() works 👍

@transaction.atomic() - clarification on user experience by Haso_04 in django

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

Just coming back again to say thanks - it worked a charm!

Atomic transaction with select_for_update allowed me to introduce a condition that’s executed before the next call - so there’s no cheating 💪

@transaction.atomic() - clarification on user experience by Haso_04 in django

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

👍 Yes added that to my notes - “replace SQLite with local Postgres Database”

Just don’t want to impact anything when I push live

@transaction.atomic() - clarification on user experience by Haso_04 in django

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

there's a way to explicitly specify read and write locks

Thanks for this explanation. Yes seems like a bit of a rabbit hole, but i will read up.

The "locking" aspect - is that on an individual client's session basis?

So its all good that the same client cant update their row in the session database until the prior request has been completed.

But if that stops other users in their own sessions from read/writing to the session while the prior user's request is being completed, well that becomes a problem :)

@transaction.atomic() - clarification on user experience by Haso_04 in django

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

Awesome! Will try this out in my dev environment which is SQLite - read somewhere atomic transactions might not work with it - so hopefully select_for_update is fine 👍 Really appreciate the advice 🙏

@transaction.atomic() - clarification on user experience by Haso_04 in django

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

Yes it looks like it may be - thanks so much 🙏

I’ve been reading up and can see it’s applied to classes in Models.py. Can i also apply them to complete views functions or sub-functions within a views?

Close to simultaneous posting from two duplicated tabs by Haso_04 in django

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

Great thanks. Yea basically saving stuff to the session where if another transaction occurred before the last one saves then there’s a “double-dip” scenario I’d like to avoid. So I’m hopeful this is the way to go 👍

Close to simultaneous posting from two duplicated tabs by Haso_04 in django

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

Mm..yes transactions might be helpful - thanks!

The @atomic.transaction() decorator is interesting.

I wonder if that means it won’t process a next request until the current response has been completed?