Urgent.News

What's breaking now, across thousands of outlets.

Tech

shift operator, ternary operator / conditional operator in python

print(4 >> 1) → 2 print(4 << 1) → 8 print(4 << 2) → 16 print(4 << 3) → 32 Left Shift: << Right Shift: >>. The ternary operator is a short way of writing an if-else condition in a single line. result = value_if_true if condition else value_if_false no1, no2 = 10, 20 result = 100 if no1 > no2 else 200 print(result) Because 10 > 20 is False, the value 200 is assigned to result. no1, no2, no3 = 10,…

We haven't written up this one. Dev.to has the full story — the link below goes straight to it.

Read the original at dev.to →

More in Tech

I Built a Meeting Notes App That Never Leaves Your Laptop

You know those meeting assistants that politely join your call as "Notetaker", record everyone, ship the audio off to some server and then send you a nice summary... and a monthly invoice?

  • Parla is a meeting notes app for Windows users
  • Operates entirely on user's computer, no cloud services
  • Free, open-source app with MIT license

Where to store private keys in your app

The safest place for a private key is somewhere your app can ask for a signature without ever reading the key. On a phone, that means the iOS Keychain or the Android Keystore.

  • Store private keys in app-specific secure hardware like iOS Keychain or Android Keystore.
  • Never store keys in source code, frontend bundles, browser storage, or environment variables.

Vector Search Limits: Why Similar Records Cannot Answer Fintech Questions

A near-duplicate detector should pass only when retrieval finds the right record and the answering step explains the match with checkable evidence.

  • Vector search systems provide close matches, not full answers.
  • In fintech, record merging mistakes can cause data issues.
  • Strict quality gates needed for production-ready vector search.

Fix "git push rejected (fetch first)" without losing work

Git refused your push because GitHub has commits you don't have yet. Nothing is broken and nothing is lost. Get their work first, then push again.

  • Git push rejected due to missing remote commits
  • Use git fetch to download remote changes
  • Resolve conflicts by merging with git pull

More from Monday 16 November →