Jeremiah Flaga My thoughts and experiences on programming, life, atbp.

On Love

Category:

I just read from Colossians 3 (v. 14) that “Love is what holds everything together in perfect unity.” (ERV)

Love is very powerful, I believe. In the past, I even thought to myself that love might be the most powerful force in the entire universe — it can change anything. (Anything does not really mean anything; maybe lots of things?)

But… how to love? That is my question.

ModuleNotFoundError in a Python virtual environment

Category:

Experiencing this error when you try to execute commands inside your Python virtual environment?

ModuleNotFoundError: No module named '<name of module>'

Lest I become dogmatic on using TDD...

Category:

While reading about TDD, and googling for Steve Freeman’s blog, I came across this post: “Say Goodbye, I won’t be Back”

It is about the Agile movement. The author said,

“People over process” can - and often should - mean: not doing an agile transition at all. Human beings have a right to choose which changes they want to go through and when. There are many valid personal reasons for not doing TDD, not taking accountability and not moving into a common team room. Let’s accept those reasons without being contemptuous and without trying to manipulate. 

That hurts! :sob: :laughing:

How to shrink a disk volume beyond the point where any unmovable files are located

Category:

When I tried to reset my HP Laptop and tried to shrink my system partition (C:), Windows 10 did not allow me to shrink it down to 300GB. I was only allowed to shrink it down to about 500GB.

It had this error message:

You cannot shrink a volume beyond the point where any unmovable files are located. See the “defrag” event in the Application log for detailed information about the operation when it has completed.

I googled for a solution and found this article by Mihai Neacsu: How to shrink a disk volume beyond the point where any unmovable files are located

I followed the instructions given in that article and I was able to shrink the system partition (C:) down to 300MB.

HP-system-partition.png

How to reset/reformat HP Laptop (with Windows 10) without deleting user-created partitions

Category:

First of all be careful before you reset your HP laptop because the HP Help page for this has this warning:

WARNING:
If the size of the OS partition (usually C:) was reduced below a minimum size requirement, other user-created partitions will be removed and stored data will be destroyed.

You should backup your important files before doing the reset.

Code review: the solution to the problem of "WTFs/minute"

Category:

I recently wrote about me being a hypocritical Christian because I sometimes cuss (only in my mind, most of the times, of course; but my attitude has greatly improved since writing that blog post :smile:).

Christians are not supposed to cuss, right? That’s what I was taught. Christians are supposed to possess the virtue of self-control. And, I think, cussing is a manifestation of a lack of self-control – lack of love at the very root, of course, because “love is patient and kind, bears all things, endures all things…”.

… in programming

In the programming world, there is this joke that says, “The only valid measurement of code quality is WTFs/minute”.

Am I a hypocrite?

Category:

Sunday.

The text of the sermon was Ephesians 4: 1-4 (and Philippians 2:3ff).

One Christian trait that was presented was “lowliness of mind” – not to think of ourselves as being higher than others.

I am guilty of that, I think. Many times, I think of myself as better than others. This is often revealed in my job as a programmer.

Another "one" principle -- The Most Important Design Guideline of Scott Meyers

Category:

We programmers tend to be lazy. We don’t want to know or remember all those many design principles or guidelines our masters are trying to teach us.

  • SOLID.
  • Favor composition over inheritance.
  • Separate those things that change from those that don’t.
  • All those design patterns (I only know a few :smile: I’m so lazy!).
  • etc.

On the 48 Laws of Power

Category:

A friend told me about these 48 Laws of Power many months ago.

I tried to google for it a few days after I heard about it.

(I already knew about the “friend being envious” part.)

But after reading Law #2, “Never put too Much Trust in Friends, Learn how to use Enemies, I said to myself, “Learn to use enemies? Create enemies if you don’t have one? :open_mouth: Wut!? I don’t want to create enemies! And if someone wants me to become their enemy, I want to distance myself from them! This is nonsense!”

Crab Mentality might not be a Filipino-only problem

Category:

A few days ago, browsing through my LinkedIn feeds brought me to this article: “That Crab Mentality”

“It was a year or so when I first moved here that I heard people talk about Crab Mentality. I assumed it was a food dish, but as it happens it is something that is in the Philippines genes, and it is not that pleasant.

“I suppose it comes down to JEALOUSY!” - John Grant

It reminded me, again, about this important thing I learned from “How to Win Friends and Influence People” about ten years ago: