https://hanki.devhanki.dev2024-03-19T13:07:31.740861+00:00hankihiddenpython-feedgenAn apple a day, you die anyway.https://hanki.dev/morning-thoughts/morning thoughts2024-03-13T06:55:26.894255+00:00hankihidden<p>Morning,</p>
<p>I wanted to write something, even though I've got nothing particular in mind. So I guess I'll just dump whatever my brain comes up with.</p>
<p>Lately life has been good. And since most of my life hasn't been particularly happy (there has been happy moments but generally it's just been... haze. Living life without truly living it), I recognize that my brain is kinda expecting something shitty to happen sooner or later. But that's alright. Time will pass regardless if you enjoy it or not. So breathe deep and try to get the most of it.</p>
<p><em>"As long as you see time as something to be Spent Well or Wasted, you are trapped in continual self-evaluations of your time. You are scoring your minutes and hours and days and levying judgements on them, with that quiet hum of assessment always running in the background."</em><br/>
– from <a href="https://blog.nateliason.com/p/this-moment">This Moment is Your Life</a></p>
<p>--</p>
<p>I've also been getting into hacking recently. It's fun. It's way more fun to break stuff than to build stuff. I'm still a noob, but my background in programming and just generally being a huge nerd certainly helps. It's exciting to jump into a new area where there's so much to learn you can never learn it all. Feels the same when I first started to learn programming.</p>
<p>--</p>
<p>Have a great day, and remember, ur awsom ʕ•ᴥ•ʔ</p>
<hr/>
<p class="subscribe">
✌🏼 Like my content? Subscribe via <a href="/feed/">RSS feed</a>.
</p>
2024-03-13T06:55:26.892411+00:00https://hanki.dev/3-types-of-people/3 types of people2024-03-12T05:57:38.797777+00:00hankihidden<p><a href="https://mtsknn.fi/">My brother</a> recently read <a href="https://www.goodreads.com/book/show/11556152-straight-line-leadership">Straight-Line Leadership</a> which he really liked and explained that you can generally categorize people into 3 categories, based on how they approach the problems they encounter:</p>
<p><em>Circular</em>: Thinking, planning, talking, researching, reading but never doing anything concrete.</p>
<p><em>ZigZag</em>: Getting excited, starting stuff, then getting excited about something else before finishing the first one. Constantly starting projects but never finishing them.</p>
<p><em>Straight</em>: Thinks what's the fastest and easiest ways to get from point A to point B, and acts on it.</p>
<p><img alt="hanki.dev" src="https://bear-images.sfo2.cdn.digitaloceanspaces.com/hanki-1710222995-0.jpg"/></p>
<hr/>
<p class="subscribe">
✌🏼 Like my content? Subscribe via <a href="/feed/">RSS feed</a>.
</p>
2024-03-12T05:57:38.797472+00:00https://hanki.dev/time-is-an-illusion/time is an illusion2024-03-07T06:36:50.766460+00:00hankihidden<p>If you're really having fun, enjoying the moment you don't really think about the time. It just flies by.</p>
<p>Time is an illusion.</p>
<p>Your best moments are over before you notice it.</p>
<p>Because those moments are rare, we cling to them, we think that maybe we won't achieve that kind of presence anymore.</p>
<p>That's also an illusion.</p>
<p>Be grateful of the time you had and move on. Those memories will always live in you.</p>
<p>Life has good moments, life has bad moments. That's fine. The more you're able to live in the moment the more alive you feel.</p>
<p>It's easier to live in the moment when it's a good moment. When it's a bad moment we try to escape it.</p>
<p>Don't stress about whether your time is spent well or bad.</p>
<p>When you think about if something is worth your time you cease to enjoy the moment.</p>
<p>Think about a really happy memory where time really just flew by. It was a moment where you had so much fun, you didn't stop for a second to think about if this is what you should be doing. You just enjoyed the moment.</p>
<p>That's what living in the moment means, there's no extra stuff in your head, just the current moment.</p>
<p>Simple, everyday mundane things can be such joyous if you're able to shut off that part of your brain which is always evaluating, always running from death.</p>
<p>Time just passes by, you can't spend it "correctly"</p>
<p>So enjoy the moment, whether it's conquering a mountain or doing dishes.</p>
<p>--</p>
<p>“Mountains should be climbed with as little effort as possible and without desire. The reality of your own nature should determine the speed. If you become restless, speed up. If you become winded, slow down. You climb the mountain in an equilibrium between restlessness and exhaustion. Then, when you're no longer thinking ahead, each footstep isn't just a means to an end but a unique event in itself....To live only for some future goal is shallow. It's the sides of the mountains which sustain life, not the top.”<br/>
-Robert M. Pirsig, Zen and the Art of Motorcycle Maintenance: An Inquiry Into Values</p>
<hr/>
<p class="subscribe">
✌🏼 Like my content? Subscribe via <a href="/feed/">RSS feed</a>.
</p>
2024-03-07T06:35:56.651646+00:00https://hanki.dev/change-idea-font-from-terminal/change idea font from terminal2024-02-28T12:19:59.482149+00:00hankihidden<p>ZSH function to change Intellij IDEA editor & GUI font sizes:</p>
<div class="highlight"><pre><span></span>idea-font<span class="o">()</span><span class="w"> </span><span class="o">{</span>
<span class="w"> </span><span class="nb">local</span><span class="w"> </span><span class="nv">new_value</span><span class="o">=</span><span class="s2">"</span><span class="nv">$1</span><span class="s2">"</span>
<span class="w"> </span><span class="nb">local</span><span class="w"> </span><span class="nv">xml_file_1</span><span class="o">=</span><span class="s2">"</span><span class="nv">$HOME</span><span class="s2">/Library/Application Support/JetBrains/IdeaIC2021.3/options/editor-font.xml"</span>
<span class="w"> </span><span class="nb">local</span><span class="w"> </span><span class="nv">xml_file_2</span><span class="o">=</span><span class="s2">"</span><span class="nv">$HOME</span><span class="s2">/Library/Application Support/JetBrains/IdeaIC2021.3/options/other.xml"</span>
<span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="o">[[</span><span class="w"> </span>!<span class="w"> </span>-f<span class="w"> </span><span class="s2">"</span><span class="nv">$xml_file_1</span><span class="s2">"</span><span class="w"> </span><span class="o">]]</span><span class="p">;</span><span class="w"> </span><span class="k">then</span>
<span class="w"> </span><span class="nb">echo</span><span class="w"> </span><span class="s2">"Error: XML file '</span><span class="nv">$xml_file_1</span><span class="s2">' not found."</span>
<span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="m">1</span>
<span class="w"> </span><span class="k">fi</span>
<span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="o">[[</span><span class="w"> </span>!<span class="w"> </span>-f<span class="w"> </span><span class="s2">"</span><span class="nv">$xml_file_2</span><span class="s2">"</span><span class="w"> </span><span class="o">]]</span><span class="p">;</span><span class="w"> </span><span class="k">then</span>
<span class="w"> </span><span class="nb">echo</span><span class="w"> </span><span class="s2">"Error: XML file '</span><span class="nv">$xml_file_2</span><span class="s2">' not found."</span>
<span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="m">1</span>
<span class="w"> </span><span class="k">fi</span>
<span class="w"> </span>sed<span class="w"> </span>-i<span class="w"> </span><span class="s1">''</span><span class="w"> </span>-E<span class="w"> </span><span class="s1">'s/(<option name="FONT_SIZE" value=")[^"]+/\1'</span><span class="s2">"</span><span class="nv">$new_value</span><span class="s2">"</span><span class="s1">'/'</span><span class="w"> </span><span class="s2">"</span><span class="nv">$xml_file_1</span><span class="s2">"</span>
<span class="w"> </span>sed<span class="w"> </span>-i<span class="w"> </span><span class="s1">''</span><span class="w"> </span>-E<span class="w"> </span><span class="s1">'s/(<option name="fontSize" value=")[^"]+/\1'</span><span class="s2">"</span><span class="nv">$new_value</span><span class="s2">"</span><span class="s1">'/'</span><span class="w"> </span><span class="s2">"</span><span class="nv">$xml_file_2</span><span class="s2">"</span>
<span class="w"> </span>osascript<span class="w"> </span>-e<span class="w"> </span><span class="s1">'quit app "IntelliJ IDEA CE"'</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span>open<span class="w"> </span>-a<span class="w"> </span><span class="s2">"Intellij IDEA CE"</span>
<span class="o">}</span>
</pre></div>
<p>Also restarts the app at the end for changes to apply. Note that if IDEA is running background tasks (Gradle sync for example), app restart won't work properly and you have to re-launch it yourself.</p>
<p>Also at my <a href="https://github.com/Steellow/dotfiles/blob/5ff69be297baa48c5d2e767c00496c35b5dd320b/.zshrc#L34">dotfiles repo</a></p>
<hr/>
<p class="subscribe">
✌🏼 Like my content? Subscribe via <a href="/feed/">RSS feed</a>.
</p>
2024-02-28T12:19:59.481878+00:00https://hanki.dev/vim-macros/vim macros are cool2024-02-22T14:27:07.766434+00:00hankihidden<p>To record a temporary macro in Vim:</p>
<ol>
<li>Press q followed by a letter to specify the register where you want to store the macro (e.g., q followed by a to store it in register a).</li>
<li>Perform the desired sequence of commands.</li>
<li>Press q again to stop recording the macro.</li>
</ol>
<p>To execute the recorded macro, type @a (replace a with the register you used).</p>
<hr/>
<p class="subscribe">
✌🏼 Like my content? Subscribe via <a href="/feed/">RSS feed</a>.
</p>
2024-02-22T14:27:06.328506+00:00https://hanki.dev/ghosts/ghosts in my phone2024-02-20T06:15:42.764572+00:00hankihidden<p>I dislike having old contacts in my phone. People I haven't seen in years, people I'm not planning to see ever again. In some way, having their number kinda doesn't matter. But if I accidentally see an old contact I immediately delete it. I don't know, something about having old contacts in my phone annoys me. Those people are no longer in my life. Those are ghosts from the pasts. I don't like having ghosts in my life.</p>
<hr/>
<p class="subscribe">
✌🏼 Like my content? Subscribe via <a href="/feed/">RSS feed</a>.
</p>
2024-02-20T06:15:42.764283+00:00https://hanki.dev/raycast-floating-notes/raycast floating notes2024-02-19T08:07:23.545519+00:00hankihidden<p>Currently I write my blog posts & other thoughts usually with Raycast's floating notes (search "Toggle Floating Notes Window"). Then just copy-paste the text into Bearblog, someone I want to send the text or my notes app (which is a Telegram chat with myself :D)</p>
<ul>
<li>It's fast</li>
<li>It's minimal</li>
</ul>
<p>That's all I need, no fancy editors :)</p>
<hr/>
<p class="subscribe">
✌🏼 Like my content? Subscribe via <a href="/feed/">RSS feed</a>.
</p>
2024-02-19T08:07:23.545214+00:00https://hanki.dev/6-dimensions-of-psychological-well-being/6 dimensions of psychological well-being2024-02-14T09:35:36.620131+00:00hankihidden<p>6 dimensions of psychological well-being from Carol Ryff</p>
<ol>
<li><p><strong>Personal development</strong>: are you on a path of personal development, are you doing things to develop yourself?</p>
</li>
<li><p><strong>Direction in life</strong>: do you have inspiration, do you have goal or direction you are marching towards in life?</p>
</li>
<li><p><strong>Autonomy</strong>: do you feel like you have control over your time?</p>
</li>
<li><p><strong>Environmental mastery</strong>: is the physical space you live in (your city, your house) conducive to you doing all the things that you want to do in life?</p>
</li>
<li><p><strong>Relationships</strong>: do you have strong relationship with other people? Romantically or platonically, do you feel like you have connections? Do you have friends?</p>
</li>
<li><p><strong>Self acceptance</strong>: knowing the demons inside you, and being okay with them. It's accepting that I'm good, I have also have some bad, and I accept my bad.</p>
</li>
</ol>
<p>If you are working towards all those six dimensions, you will reach self-actualization.</p>
<p>From <a href="https://youtu.be/i2sHBL8BjWI?si=QV88mlhwVG9796qR&t=1337">Paul Brunson on DOAC</a></p>
<p>PS. Have a good day 🙏</p>
<hr/>
<p class="subscribe">
✌🏼 Like my content? Subscribe via <a href="/feed/">RSS feed</a>.
</p>
2024-02-14T09:35:36.619845+00:00https://hanki.dev/music-is-affirmation/music is affirmation2024-02-13T13:11:57.234281+00:00hankihidden<p>Songs we sing, songs we listen to, songs we repeat in our heads are affirmation. Subconsciously some part of you brain starts to believe what you hear over and over again.</p>
<p>And it's not just the lyrics, it's the message, the feeling the music is conveying to you.</p>
<p>Treat music with respect, be aware how it affects your mood, and most importantly, enjoy it. Also be aware when it's time to chill in silence.</p>
<hr/>
<p class="subscribe">
✌🏼 Like my content? Subscribe via <a href="/feed/">RSS feed</a>.
</p>
2024-02-13T13:11:57.233999+00:00https://hanki.dev/happiness/happiness2024-02-09T07:39:33.122288+00:00hankihidden<p>Happiness is being content with yourself</p>
<hr/>
<p class="subscribe">
✌🏼 Like my content? Subscribe via <a href="/feed/">RSS feed</a>.
</p>
2024-02-09T07:39:33.122041+00:00