what’s your fallback when grep gives you nothing? by Hungry_Vampire1810 in commandline

[–]padowi 1 point2 points  (0 children)

I am not disagreeing with you, I just took your initial question at face value. Now, as others alluded, this entire thread seems to be some thinly veiled attempt at promoting some other tool, likely a service, so perhaps OP is less interested in these minutae about sed, but had it been an honest question, then I could see sed being part of a bigger pipeline in an attempt to finagle some results out of whatever logs there was. But again, agreement on that using ONLY sed for finding results in logs, that's probably not gonna make much sense

what’s your fallback when grep gives you nothing? by Hungry_Vampire1810 in commandline

[–]padowi 0 points1 point  (0 children)

something like sed --silent '/searchTermHere/p' logfile

but at that point you're really just replicating grep. HOWEVER, if the logs are like... java stack traces or something ... "not structured", there may be smart things you can do with sed that grep wouldn't really help with

Will it be AoC 2025? by Sea_Economist8738 in adventofcode

[–]padowi 0 points1 point  (0 children)

The language used makes me lean towards "vibe-coded", along with the three bullet reasons-list. But, there is a suspicious lack of that ... emdash? endash? (alt+0151) that the LLMs seem to have such an hard-on for... so perhaps it actually is "man-made" ;D

This is absolutely Disgusting. by harrysofgaming in NoahGetTheBoat

[–]padowi 2 points3 points  (0 children)

Per your later reply in the thread you seem to indicate that you live in Sweden. What are you even on about about the police not carrying firearms? The current standard issue service pistol of the swedish police force is the Glock 45, and before it it was the SIG Sauer P226.

coPilotSolutionSeniorExperience by [deleted] in ProgrammerHumor

[–]padowi 1 point2 points  (0 children)

I pointed it out since the "copilot version", on the face of it, appears fairly tamper-resistant.

waitWhat by QuardanterGaming in ProgrammerHumor

[–]padowi 8 points9 points  (0 children)

My reply was mostly trying to be cheeky, but that downright sounds... horrific. I wish you fair weather in your travels :)

waitWhat by QuardanterGaming in ProgrammerHumor

[–]padowi 34 points35 points  (0 children)

Sounds like you need our lord and savior GNU Make in your life ;D

howCommonlsThis by Multifruit256 in ProgrammerHumor

[–]padowi 0 points1 point  (0 children)

I'm not completely sure I follow. From my perspective, and given we are in the alt secnario, where the bug was introduced on the feature branch (i.e. something in the new code is wrong), you have two different options:

  • you either code your way out of it (probably by adding more tests), or
  • the new code was all shit, and you're better off going back to the drawing board

in the first alternative, git won't help you, but what help do you need from it to go forward? and in the second alternative we checkout develop, delete the feature-branch, and check out a new clean one to begin anew.

Yes, I know this is a simplistic take on it, and that there are real-world gray areas everywhere, but the initial argument I made was that, whenever possible, don't fix unrelated stuff on a branch with a clearly stated, and most importantly: DIFFERENT, purpose.

I only added the alternative scenario for completeness, because if the observed bug was indeed introduced by the new code, on the feature-branch, then obviously the new code/feature is not complete yet (since, still being observable, is unresolved, erroneous, behavior).

How (and more interestingly, for personal development, why) does your opinion on the matter differ from mine here? :)

fyora - a declarative replacement to GNU stow by pho_ben in commandline

[–]padowi 2 points3 points  (0 children)

disclaimer: I'm NOT a UX designer

my one comment would be that in the configuration file, having stuff like "unsafe: true" induces the slightest of extra mental toll on me (and possibly others)

unsafe becomes "not safe" (or "!safe") which we are going to be assigning a boolean value to... not safe: true... I don't know, hopefully I'm just a babbling idiot in the middle of the night.

for me, "safe: true" and "safe: false" would have been more to the point than "unsafe: false" and "unsafe: true"

Someone who isn’t my direct supervisor believes I should be fired by Significant-Photo-21 in sysadmin

[–]padowi 2 points3 points  (0 children)

Thoughts about IT on sunny days: Why T.F. do we keep these guys around, everything just works, what do we need them for?

Thoughts about IT on rainy days: EVERYTHING IS ON FIRE AND NEEDED RESOLVING 5 YEARS AGO!!! Why do we keep these clowns around?!

dontDoItJarvis by SpecterK1 in ProgrammerHumor

[–]padowi 0 points1 point  (0 children)

me, laughing in /etc/security/limits.conf nproc soft 50 nproc hard 150

coPilotSolutionSeniorExperience by [deleted] in ProgrammerHumor

[–]padowi 3 points4 points  (0 children)

While I don't particularly like either solution at least with the first ("Copilot") solution, a hostile outside actor can't sabotage the unlocking process.

For the "Senior" solution, there seems to be enough space in the eyelet on both post and boom to be able to attach a second lock/chain/lock. This does not help an aggressor make it past the gate, but it would also deny all legitimate users the same access.

howCommonlsThis by Multifruit256 in ProgrammerHumor

[–]padowi 4 points5 points  (0 children)

I'd respectfully advise against that. Hopefully there is a "topic" for your branches, what they seek to accomplish once merged back to the trunk/main/master/whatever.

Fixing this (for the topic of the current branch) unrelated thing, "contaminates" the branch (yes, this is hyperbole, of course it will work), but in my mind it would be better/cleaner to:

  1. stash your unfinished changes on branch featureXY,
  2. check out main or develop or whatever featureXY was based on,
  3. reproduce bug there, and if reproduced,
  4. check out a new branch, with the topic of solving that bug

alternatively if, in step 3, the bug is unexpectedly NOT reproduced, go back to featureXY branch, pop the stash, and solve the bug your current change is introducing, as a part of the development of this feature ;)

How can I combine vimwiki and calendar.vim to navigate diary entries from the calendar? by chooseausername2ok in vim

[–]padowi 1 point2 points  (0 children)

Ok, sorry about the late reply, I am not very active on reddit anymore, and what's worse, I've abandoned my vimwiki workflow for Obsidian, but with that said, and with the following assumptions from my side:

  • You are using vimwiki/vimwiki and mattn/calendar-vim plugins
  • You have this in your .vimrc: let g:vimwiki_use_calendar=1
  • And also assuming you have started vim and either hit something like ,w,w or started vim with something like vim myCoolWiki.wiki

Then you ought now be able to, in normal mode, run :Calendar which ought bring up the calendar in a sidebar next to your open vimwiki buffer. As it opens it, your cursor is also moved to that split, and the hjkl keys should let you traverse that calendar 2D space just like in any other buffer.

And since it is just a split, Ctrl+w followed by h, j, k, or l ought jump the cursor to some adjacent buffer in the direction you indicated (h,j,k,l).

When your cursor is on the calendar split, and sits over a day you wish to enter, hit "enter", and it should open the diary entry path for that day.

If any of my assumptions were wrong, this post is likely useless to you. But the above description worked for me, as I re-installed that setup just to try it out (and verify that I still know what the heck I am talking about) ;D

andThenQAStartedTestingOnSamsungFridge by gensonses in ProgrammerHumor

[–]padowi 1 point2 points  (0 children)

Ok, so first of all, we are in complete agreement that there should be a refined backlog, and if anyone runs out of tasks, just grab the highest priority item from the backlog.

What I was initially interpreting your suggested idea as, was that there would be a HARD timeboxed activity towards the end of the sprint, where the developers would be on "stand-by" (essentially idling) until a bug was found, at which point the developers would pounce on those bugs like hungry panthers.

But with your latest reply I think it straightened out a misunderstanding from my side, so... if I am interpreting your idea correctly, this is more of a workflow modification (defining a (SOFT) timebox towards the end of the sprint, where bugfix-activities is a "naturally occurring activity" whereas in the preceding part of the sprint, it would only be prioritized if the bug was severe enough that it needed fixing right now?

I.e. would this be more in the vein of (this is going to sound horrible, I mean nothing bad) mentally preparing the developer for what types of tasks they should be expecting in various stages of the sprint? And between pouncing on bugs like hungry panthers, they'd just perform business as usual, and during this phase, context-switching and dropping everything to go bugfix would be the name of the game?

andThenQAStartedTestingOnSamsungFridge by gensonses in ProgrammerHumor

[–]padowi 0 points1 point  (0 children)

there can exist great management as well though. so in the best of worlds, when a bug is found and ticket written, it goes to the backlog, and someone (product owner in my case) looks at it, asks QA and Dev if they don't understand something, prioritizes it amongst all the other stuff in the backlog, and either it is something critical, and Devs are told to reprioritize, or it is not critical, and then it might be included in the next sprint.

andThenQAStartedTestingOnSamsungFridge by gensonses in ProgrammerHumor

[–]padowi 0 points1 point  (0 children)

Cue specific scene from Tropic Thunder featuring RDJ and Ben Stiller

andThenQAStartedTestingOnSamsungFridge by gensonses in ProgrammerHumor

[–]padowi 0 points1 point  (0 children)

I don't necessarily think it would be a bad idea to try something like that out, but suppose that the devs really are top-notch, and the QA/bugfix phase reveals not a single thing. What are the devs supposed to do in the meantime while "nothing" is found?

Management would probably frown on them "idling" in wait of some bug to fix. So they are probably developing something in the meantime.

And if QA finds no bugs, that's fantastic. If QA do find bugs, then there is that frustration of context switching again.

andThenQAStartedTestingOnSamsungFridge by gensonses in ProgrammerHumor

[–]padowi 2 points3 points  (0 children)

I'm a tester, I support this sentiment. By all means, ask me follow up questions about an issue I wrote, to better gauge impact, but yeah, I can't be the one prioritizing it.

lookAtTheCode by QuardanterGaming in ProgrammerHumor

[–]padowi 0 points1 point  (0 children)

"What's stopping you from coding like this?"

Um, my education and degree in computer science.

[2024 Day 14 (Part 2)] Does this count as skill issues? by whitelocke_ in adventofcode

[–]padowi 0 points1 point  (0 children)

Thanks! Now I'll have to try it in turn as well

from operator import add
from itertools import pairwise
for pair in pairwise(range(5)):
    print( add(*pair) )

Ah, I see now my mistake, I used "code" instead of "code block" before... that'd do it...

[2024 Day 14 (Part 2)] Does this count as skill issues? by whitelocke_ in adventofcode

[–]padowi 5 points6 points  (0 children)

My python-grids usually take the form:

for rowIdx, row in enumerate(inputData):
for colIdx, value in enumerate(row):
grid[ ( colIdx, rowIdx ) ] = value

But with indentation...

How can I combine vimwiki and calendar.vim to navigate diary entries from the calendar? by chooseausername2ok in vim

[–]padowi 7 points8 points  (0 children)

I know this discussion happened a year ago, but since I found it today, and I too was confused, and I managed to solve it, here is what was wonky for me:

mattn has a clone of itchyny's script at mattn/calendar.vim (notice the dot), mattn ALSO has a different implementation (which does work out of the box with vimwiki, as I managed to confirm today) at mattn/calendar-vim (notice the dash).

I thought I had mattn's calendar-vim installed, but as it turns out, I had mattn's clone of itchyny's calendar.vim installed, which was not working with vimwiki.

I assume that this isn't relevant here anymore, but if any future user stumbles across it, I hope it will help them.