0
0
3

#devstr #lifehack i have finally found a way to have the tilix paning terminal emulator fully let me have log code locations in my logs and set them up so that i can click on the relative file path, so long as i am in the directory of teh source code (even if running it remotely) and jump straight to the line of code where the log was printed from: create a script called `setcurrent` in your PATH ( eg ~/.local/bin/setcurrent ) #!/usr/bin/bash echo $(pwd) > ~/.current set the following environment variable in your ~/.bashrc PROMPT_COMMAND='setcurrent' using the following regular expressions, replacing the path as necessary, and setting perhaps a different program than ide (this is for goland, i use an alias to the binary) ^((([a-zA-Z@0-9-_.]+/)+([a-zA-Z@0-9-_.]+)):([0-9]+)) ide --line $5 $(cat /home/mleku/.current)/$2 [ ]((([a-zA-Z@0-9-_./]+)+([a-zA-Z@0-9-_.]+)):([0-9]+)) ide --line $5 $(cat /home/mleku/.current)/$2 ([/](([a-zA-Z@0-9-_.]+/)+([a-zA-Z@0-9-_.]+)):([0-9]+)) ide --line $5 /$2 and so long as you use this with an app containing /lol/log.go as this one is, this finds that path and trims it off from the log line locations and in tilix you can click on the file locations that are relative to the CWD where you are running the relay from. if this is a remote machine, just go to the location where your source code is to make it work. i put this note above in the source code of my logger, i have got fed up with the complexity of #realy and am rebuilding it from scratch... of course not from scratch, but copypasta from one side to the other, but building the frame of it carefully first so it's crispy clean

1
0
3

0
0
3

0
0
3

0
0
3

0
1
3

We humans are creatures of habit. This is why drastic changes are so difficult. New schedule, new diet, new living situation, new relationship (or ending of one). We naturally struggle with big change. This is what makes the concept of Kaizen so powerful. Small, incremental changes slowly over time are emotionally more palatable because we don’t notice them as much. Books like The Compound Effect and Atomic Habits dive deep into this concept. I’ve been doing a new diet for 24 days, officially. It’s a diet that looks incredibly different from the general diet we all eat, and is typically difficult to start. Truth is, I started parts of this diet 16 months ago and transitioned into it. And I didn’t even know this diet was in my future. I simply started looking at what I was eating and began eliminating things that weren’t good for me. It was gradual, with allowances for holidays, vacations, and parties. Over time, the unhealthy things became unimportant and my list of food and ingredients continued to shrink. When I finally looked into the potential health benefits of eating carnivore, I had already eliminated many of the difficult items from my everyday habits. This set me up for an easier transition. If you want to do a major change in your life, find small pieces of that change you can start today. Lock those in over time, then grab a few more. Eventually the friction for moving to the major change will be so small that it won’t take much sacrifice because you’ve spread the work out over time. Maybe you love the “cold turkey” approach of big, drastic change. If that works for you, do it; you are special. For the rest of us, tackle small wins that add up to major ones. #grownostr #lifehack #lifehacking #carnivore #foodstr #kaizen #habits #bookstr

1
0
3

0
1
3

ab749 - 2y

0
0
3

1
1
1

0
0
0

0
0
0

0
0
0

0
0
0

0
0
0

0
0
0

7259c - 3y

0
0
0

ae58c - 3y

0
0
0

40ecf - 3y

0
0
0

027d0 - 3y

0
0
0

Showing page 1 of 2 pages