@peateasea@mastodon.social avatar

peateasea

@peateasea@mastodon.social

geek, hacker, jack of all trades, yak shaver, tech debt hunter, multi-purpose software dev

This profile is from a federated server and may be incomplete. Browse more on the original instance.

peateasea, to random
@peateasea@mastodon.social avatar

Once upon a time, I used to take an active part in the Pull Request Challenge (and later in the Pull Request Club). When addresssing Perl::Critic violations in my assignment for the month, one violation which tended to crop up often was stringy eval. Generally, this is something to be avoided. But how? In the post below I discuss recommended best practices and some other options.

https://peateasea.de/avoiding-stringy-eval-in-perl/

peateasea,
@peateasea@mastodon.social avatar

@ferki Oh! I wasn't aware of those options. Many thanks for sharing that info!

peateasea,
@peateasea@mastodon.social avatar

@ferki just so you know: I've updated my post to include the info you mention. Thanks again for the heads up!

peateasea, to vim
@peateasea@mastodon.social avatar

Some editors seem to randomly insert non-breaking spaces. This can be a pain. In replace them with normal spaces like so:

:%s/<Ctrl-V>u00a0/ /g

where u00a0 is the utf-8 sequence for a non-breaking space.

peateasea,
@peateasea@mastodon.social avatar

I decided to write this up with more details. Doing so helped deepen my understanding and hopefully it helps others too.

https://peateasea.de/breaking-spaces-in-vim/

peateasea, to random
@peateasea@mastodon.social avatar

Ever been staying at a hotel and gotten annoyed that you always have to open a browser to log in for wireless access? Yup, me too. A recent instance was particularly frustrating and I had to pull out my favourite Swiss Army chainsaw in order to make my life a bit easier.

https://peateasea.de/hotel-hotspot-hijinks/

isotopp, to random German
@isotopp@chaos.social avatar

https://blog.koehntopp.info/2024/02/19/python-slots.html

In which I try to understand Python slots.

I find that dict is not really worse than slots, which is unexpected.

I also compare Perl, Python and PHP, and find that Python is slightly better than Perl in memory usage per object, which is impressive.

I also find that PHP uses as much memory as I would have Python dict expected to use, but Python optimizes this – PHP does not.

peateasea,
@peateasea@mastodon.social avatar

@isotopp Silly question: the publication date of the post in the RSS metadata is December 2023 but you published it the other day. Was that intentional? Or is something weird going on somewhere? Just thought you'd like to know 🙂

peateasea, to linux
@peateasea@mastodon.social avatar

For me an era is about to come to an end: after just over ten years at my current job (where I set up and built most of the infrastructure and code) it's time for me to move on.

From April 2024 I'll be available for part-time remote-only work. If you're looking for an all-rounder software dev and admin to attack (say) your tech debt in , or even , give me a yell 😃

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • kavyap
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • InstantRegret
  • GTA5RPClips
  • Youngstown
  • everett
  • slotface
  • rosin
  • osvaldo12
  • mdbf
  • ngwrru68w68
  • JUstTest
  • cubers
  • modclub
  • normalnudes
  • tester
  • khanakhh
  • Durango
  • ethstaker
  • tacticalgear
  • Leos
  • provamag3
  • anitta
  • cisconetworking
  • lostlight
  • All magazines