Urgent.News

What's breaking now, across thousands of outlets.

Tech

Print preview can still show records the user lost access to

A lot of apps build print or PDF preview by loading the same record the detail page uses, then rendering a printer-friendly layout. The preview route often got added later, so it only checks that someone is signed in. If that person lost access (role removed, share revoked, moved out of the folder), the normal detail page returns 404. The print URL still loads the title, fields, and maybe related…

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

🔐 Use the AWS CLI Without Access Keys, and Prove a Policy Before You Attach It (Hands-on)

🎤 The interview question "How do you use the AWS CLI without an access key, and how do you know a policy works before you attach it?" The strong answer is two things you have actually run : sign the…

  • Use AWS CLI with temporary credentials, not access keys
  • Validate policies with AWS IAM Policy Simulator before attachment
  • Clean up resources after testing the least privileged policy

How I keep feedback pins on the right element when a website changes

When I built PinReview, a tool that lets clients click anywhere on a website and leave feedback, I thought the hard part would be screenshots. It wasn't.

  • Developed tool for clients to leave feedback on specific website elements.
  • Stored element's unique identifier, like ID or test attributes, to track pin.
  • Stored pin position as percentage of element's size for consistency across devices.

Nature Go

  • Nature Go app encourages screen-free outdoor exploration
  • AI verification layer ensures real outdoor discoveries
  • Open-source model adaptable for diverse communities

Why Is My Code Slow? Big-O Explained With Real Timings

Almost every developer knows Big-O. Many can even say what O(n²) means. But very few have watched the real difference happen on their own machine.

  • Nested loops method takes O(n²) time complexity, causing exponential growth in execution time
  • Set method uses O(n) time complexity, providing linear growth in performance
  • Experiment demonstrates importance of choosing efficient algorithms and data structures

More from Sunday 11 October →