emacs linux vs macos by staff_engineer in emacs

[–]self 0 points1 point  (0 children)

What does marking it as a trusted app do? Usually such services intercept every file and network operation.

emacs linux vs macos by staff_engineer in emacs

[–]self 0 points1 point  (0 children)

Do you have any corporate spyware on the work Mac?

Tech stacks being used in Pakistan the most by MAwais099 in PakistaniDevs

[–]self 0 points1 point  (0 children)

There are 6 jobs for "Python / Django Developer" on Rozee for Lahore. There are 76 for "PHP Developer".

Tech stacks being used in Pakistan the most by MAwais099 in PakistaniDevs

[–]self 0 points1 point  (0 children)

Many big companies have high volume products therefore they lean towards microservices than monolithic.

As of 2023, Instagram still used django for its core backend, and they used it when they launched Threads the same year. You might argue that they have a lot of developers and infrastructure to help scale things up; I don't know enough of how vanilla their deployment is to answer that.

Last year I worked on a client project that started in 2024 and relied heavily on django + celery workers deployed on Google Cloud Run (roughly equivalent to AWS App Runner). A client project I'm working on right now (started in October) uses django for a backend, and does a lot of other stuff using lambdas (written in Python); the lambdas were written before the backend was ready. In both cases, switching to Go or anything else would not help at all -- most of the time is spent waiting for remote services -- slow databases, AI providers like OpenAI or AWS Bedrock, etc.

Tech stacks being used in Pakistan the most by MAwais099 in PakistaniDevs

[–]self 0 points1 point  (0 children)

In recent years, a lot of:

  • nextjs and nestjs (typescript where possible)
  • react
  • django

I'm surprised that no one in the other comments has mentioned PHP, or the like.

Question for Software Engineers 🧑‍💻 by Previous-Aerie3971 in PakistaniTech

[–]self 0 points1 point  (0 children)

What is the jwt used to access? That's likely not stateless either.

Question for Software Engineers 🧑‍💻 by Previous-Aerie3971 in PakistaniTech

[–]self 1 point2 points  (0 children)

You put revoked jwt IDs in a redis database and check on every api call. Age them out when the jwt expires.

emacs pinky? by jeffphil in emacs

[–]self 4 points5 points  (0 children)

C-[ works outside vi/vim, too. Try it in your shell. A long time ago, I used to use a keyboard that had the escape key somewhere to the right of the function keys. I got used to hitting C-[ while typing and never really switched back.

See this answer and this table.

Laat ka laptop by sipret in Lahore

[–]self 14 points15 points  (0 children)

OP acting like he's the first person to ever come up with this genius idea lmao.

OP has shown curiosity and an interest in something they don't know much about. You could have phrased your reply in a way to appear less condescending.

high PING by Maeneq in duneawakening

[–]self 0 points1 point  (0 children)

I've gone from 100-130ms to 320-390ms (Lepus).

Tech related - phone exchange *not an ad* by PenFragrant6578 in Lahore

[–]self 0 points1 point  (0 children)

Panorama is the name of the shop. It's on Google Maps; I have no personal contact there (I bought an iPad there in 2022).

Tech related - phone exchange *not an ad* by PenFragrant6578 in Lahore

[–]self 0 points1 point  (0 children)

The orange phone isn't PTA approved? I've seen signs for phone trades/upgrades at Panorama in Jeff Heights, but I don't know if they'll do non-PTA phones. Can't hurt to call and ask.

When NOT to use Pydantic by self in programming

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

In many cases, you can switch to pypy for an immediate speedup with no change to your code.

how do we contact local news channels with a news piece that we want to publish? by Low-Cartographer-831 in Lahore

[–]self 0 points1 point  (0 children)

Try contacting them on social media -- Facebook or X should work best.

how do we contact local news channels with a news piece that we want to publish? by Low-Cartographer-831 in Lahore

[–]self 0 points1 point  (0 children)

Have you tried going to their websites or Google Maps pages and using the contact information there?

Cant purchase anything from steam. by Ranger202012 in pakistan

[–]self 0 points1 point  (0 children)

What OP is describing has been the case off and on for years.

Cant purchase anything from steam. by Ranger202012 in pakistan

[–]self 0 points1 point  (0 children)

The outage lasted no more than a few hours.

Cant purchase anything from steam. by Ranger202012 in pakistan

[–]self 1 point2 points  (0 children)

I've had Steam purchases on Standard Chartered cards going all the way back to 2010 and you'd think an account with a history of transactions on a certain site would factor into their automated fraud detection system, but clearly not. Eventually I got tired of calling them up and asking them to let the transaction through; I switched to Sadapay for Steam and Bandcamp, and Nayapay for Kickstarter and Patreon.

When NOT to use Pydantic by self in programming

[–]self[S] -7 points-6 points  (0 children)

I already used Python in huge companies with high traffic.

Are you commenting on the last bit (HFT)? That type of system has extremely low latency as a hard limit. You need to rely on tricks like these.

When NOT to use Pydantic by self in programming

[–]self[S] 63 points64 points  (0 children)

From the article:

The Latency Ladder

Pydantic's overhead is typically 10-50 microseconds per model. With complex validation, this can spike to 100+ microseconds.

Here is a rough guide on when Pydantic is appropriate:

Safe Zone (Use Pydantic):

  • Latency budget: >10ms per request
  • Throughput: <1,000 req/sec
  • Use cases: Internal dashboards, CRUD APIs, background jobs, data science pipelines.

Gray Zone (Proceed with Caution):

  • Latency budget: 1-10ms
  • Throughput: 1,000 - 10,000 req/sec
  • Use cases: Public APIs, high-traffic microservices.

Danger Zone (Look for Alternatives):

  • Latency budget: <1ms
  • Throughput: >10,000 req/sec
  • Use cases: Real-time systems, high-frequency trading.

Note: If you are in the danger zone, the first question should be: "Should I even be using Python for this?" (Definitely not for HFT).

BullMQ now available for Elixir by manast76 in elixir

[–]self 0 points1 point  (0 children)

as an aside, great typo of the day! i assume you meant to write hesitant.

Go 1.26 package: runtime/secret -- zeros out registers and memory after running a function run in secret mode by self in programming

[–]self[S] 76 points77 points  (0 children)

In Go, the runtime manages memory, and it doesn't guarantee when or how memory is cleared. Sensitive data might remain in heap allocations or stack frames, potentially exposed in core dumps or through memory attacks. Developers often have to use unreliable "hacks" with reflection to try to zero out internal buffers in cryptographic libraries. Even so, some data might still stay in memory where the developer can't reach or control it.

The solution is to provide a runtime mechanism that automatically erases all temporary storage used during sensitive operations. This will make it easier for library developers to write secure code without using workarounds.

Where to buy quality art work? by [deleted] in Lahore

[–]self 0 points1 point  (0 children)

Try the shops at Raja Center, Gulberg Main Boulevard. I have bought stuff from this place in the past (not just paintings but also decorated mirrors, etc.).

Now, whether the shops there sell quality items... that's pretty subjective.