Urgent.News

What's breaking now, across thousands of outlets.

Tech

A simple phone input with country flags, dial codes, and a number field.

A lot of phone inputs require installing a large library. But if you only need a country selector and a number field, why add the extra weight? SonoJS Phone Input keeps it simple: country selection, dial codes, optional country flags, and a phone number field. No phone validation package required. npx @sonojs/ui@latest add phone-input Live demo: https://sonojs.com/docs/components/phone-input

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

FileNotFoundError: [Errno 2] No such file or directory (Fix)

You run your script. Python stops and prints this: FileNotFoundError: [Errno 2] No such file or directory: 'data.txt' But the file is sitting right there in your folder. So what's going on?

  • Running script from wrong folder causes FileNotFoundError
  • Typos in file names lead to No such file or directory error
  • Windows hides file extensions, causing path issues

ValueError: invalid literal for int() with base 10 (Fix)

Your script runs, then Python stops with this: ValueError: invalid literal for int() with base 10: '3.50' You gave int() a string that doesn't look like a whole number.

  • Empty string input triggers ValueError: invalid literal for int() with base 10
  • Decimal numbers with a decimal point cause the ValueError
  • Thousands separators in the input string raise the ValueError

More from Thursday 12 November →