Leading and trailing whitespaces. The bane of normalized data everywhere. It seems like a constant task that needs to be performed on incoming user data. When working with Laravel, I use the TrimStrings
middleware. Calls PHP’s built-in trim
function on all string values for the request query and input values – including JSON! While working on my project WhiskeyDex, I noticed how mobile device keyboards always add trailing whitespace when using the autocomplete functionality. This, in turn, meant user-created data will end up with trailing whitespaces. I started to just quick-fix in the single instance and realized it should be solved once and for all.
Advanced CLI tools with Ruby and dry-cli! | Hanami Mastery #37
Python 3.12.0 alpha 4 released
I’m pleased to announce the release of Python 3.12 alpha 4.
https://www.python.org/downloads/release/python-3120a4/
Major new features of the 3.12 series, compared to 3.11
- Even more improved error messages. More exceptions potentially caused by typos now make suggestions to the user.
- Support for the Linux perf profiler to report Python function names in traces.
- The deprecated wstr and wstr_length members of the C implementation of unicode objects were removed, per PEP 623.
- In the unittest module, a number of long deprecated methods and classes were removed. (They had been deprecated since Python 3.1 or 3.2).
- The deprecated smtpd and distutils modules have been removed (see PEP 594 and PEP 632). The setuptools package (installed by default in virtualenvs and many other places) continues to provide the distutils module.
- A number of other old, broken and deprecated functions, classes and methods have been removed.
- (Hey, fellow core developer, if a feature you find important is missing from this list, let Thomas know.)
More resources
- Online Documentation
- PEP 693, the 3.12 Release Schedule
- Report bugs at https://github.com/python/cpython/issues.
- Help fund Python and its community.
And now for something completely different
I write, erase, rewriteErase again, and thenA poppy blooms.
O snailClimb Mount Fuji,But slowly, slowly!
Enjoy the new releases
retguard for amd64 system calls
Todd Mortimer (mortimer@
) has
committed
(to -current)
retguard
for amd64 system calls:
CVSROOT: /cvs Module name: src Changes by: mortimer@cvs.openbsd.org 2023/01/10 18:55:18 Modified files: lib/libc/arch/amd64: SYS.h lib/libc/arch/amd64/sys: Ovfork.S brk.S sbrk.S sigpending.S sigprocmask.S sigsuspend.S tfork_thread.S libexec/ld.so/amd64: SYS.h Log message: Add retguard to amd64 syscalls. Since we got rid of padded syscalls we have enough registers to do this. ok deraadt@ ok kettenis@
Linux SLUB Allocator Internals and Debugging – KASan, Part 3 of 4
Third article in a series on Linux SLUB Click to Read More at Oracle Linux Kernel Development
The post Linux SLUB Allocator Internals and Debugging – KASan, Part 3 of 4 appeared first on Linux.com.
Windows 7 and Windows 8.1 reach the end of the line
They ARE Still HERE Floundering Around Galveston
Video by via Dailymotion Source Kayak fishing for red drum and flounder near Galveston, Texas. A full moon, a strong outgoing tide, a lot of water movement, and excellent fishing conditions.Featured https://studio.youtube.com/channel/UCTTsEVHVtz0Y1iIkuXlBSuw fishing,best fishing,fishing videos,amazing fishing,hook fishing,best fishing video,fishing video,catfish fishing,best,girl fishing,best fishing fails,best hook fishing,best video fishing,abdul sami fishing,unique fishing,bass fishing,best fishing knot,best fishing…
Pagtatakda ng oras ng surge rate, apela ng isang grupo para sa commuters | 24 Oras
Video by via Dailymotion Source 24 Oras is GMA Network’s flagship newscast, anchored by Mike Enriquez, Mel Tiangco and Vicky Morales. It airs on GMA-7 Mondays to Fridays at 6:30 PM (PHL Time) and on weekends at 6:00 PM. For more videos from 24 Oras, visit http://www.gmanetwork.com/24oras. News updates on COVID-19 (coronavirus disease 2019) and…
Versys-X Adventure | A breath taking view from Tsagaralona of Evritania in Greece.
Video by via Dailymotion Source Versys-X Adventure | A breath taking view from Tsagaralona of Evritania in Greece. I just ride my Kawasaki Versys-Χ Αdventure akrapovic edition full extra and I show to you the beauties of Greece. Characteristics: Versys X 300 Adventure full extra, with Puig wind screen, DNA performance air filter, Akrapovic Exhaust,…