Categories
Musing

Drives

Everyone has a different drive.

Some people are okay with what they got.

Some people are hungry.

Everyone have a different level of hungriness in them.

We should do our best.

Whatever we want to do. Or else, we are just… average.

Average by itself is not bad.

But if you want to be exceptional, that means you have to be different than many.

If you do not, you will be like everyone else.

Is that what you want?

Or are you not living up to your fullest potential?

Categories
Programming

How to fix Access to undeclared static property

Sometimes you might have to run old migration file. For example I encounter this error when I wanted to run migration file for Spatie’s Laravel Permission:

Access to undeclared static property Spatie\Permission\PermissionRegistrar::$pivotPermission

This happens when I ran an old migration file for that package.

Simple way to fix it:

Delete the migration file that causes this error. And then run the following to publish the latest migration file:

php artisan vendor:publish –provider=”Spatie\Permission\PermissionServiceProvider”

And now the migration file is working fine!

Categories
Programming

Composer detected issues fix (2024)

Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 8.2.0”. You are running 8.1.18. in /Users/NAME/Documents/sites/worklist/vendor/composer/platform_check.php on line 24

To fix this issue, just do this:

brew unlink [email protected]
brew link [email protected]

composer global remove laravel/valet
composer global require laravel/valet

If you use Laravel Valet:

valet install
valet use [email protected]

That’s all. If it doesn’t work, just use this:

valet use [email protected] –force

It’s an update from my old blog post I wrote a year ago (facing similar problem, but different php version)

Categories
Musing

2024 To-Learn List

Things to learn this year:

  1. Understand deeply about data governance and compliance
  2. How to mitigate risk on data and infrastructure
  3. Improve “design sense”
  4. How to create awesome videos

What do you want to do this year?

Categories
Programming

Composer detected issues fix

This is the error that somehow I frequently got lately:

Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 8.1.0”. You are running 7.4.33. in

In order to fix this, just run:

valet use [email protected] --force

This assumes that you are using Laravel Valet for your development environment.

Categories
Musing

What’s Next?

It’s not finding job.

You have plenty of jobs searching for you.

It’s not about just money either. You rejected a few with way bigger monetary compensation.

To find something that you will say: interesting.

Life is about a journey. Process of self-discovery if you will.

Categories
Musing

One Year Into Entrepreneurship

Or maybe the right word is… nearly one year.

I stopped working 9-5 on 16th March 2021.

And I started working 24-7 on 17th. Hah. And I wrote this post on 8 February 2022.

Enter the world of entrepreneurship. Maybe it’s not the right word. I think the right word is I work as a freelance guy. Instead of having one boss, I have multiple bosses (clients).

Freedom. But freedom means a lot of things. Freedom to be rich… and the freedom to be uncertain.

Certainty is not always an option.

There is a good month. There is a bad month.

Where everything is not constant. And sometimes people pay early. And sometimes, late.

It’s scary how scary it is. And now I understand why some biz gurus suggested that do not do crazy things after you have a kid and settled down.

You have no idea how turbulent things are.

Maybe that’s how I learned best. By trying.

Alright. Time to brush up my resume. See what’s out there and contribute my skills as an employee.

From startup, to bank, to corporate world, to one’s freelancing gig… and now into the world as an employee again.

It’s good to live as many lives as possible. At least you learn.

Categories
Programming

Intro to Flutter – for Fun

So somehow I started playing with Flutter in 2018 and I actually recorded it the first time I play with it!

Here’s the video:

Maybe I should just record me talking about Flutter and all in much, much more detailed. It might be the future language of Android, after all.

Categories
Programming

How to remove unwanted .idea file from git

Sometimes you accidentally committed .idea files (different on each computer) and you want to remove it. So here’s the command needed to remove the unwanted file from git your git’s cache:

git rm --cached -r .idea/.

That’s all. Happy playing with git!

Categories
Musing

Management and Programming?

Right now, I do a) business development, b) project management and c) programming. This is quite a new role to me. Previously I am more focused and rarely do things outside of coding (I am using programming and coding interchangeably today).

Actually I am quite frustrated with this. If I am focused on coding, it means that I can show my work in terms of screens created or problems solved.

But for project management and business development, you can’t show much except the business you bring in and the gantt charts you’ve created. Since I am doing those three at the same time, my “show of productivity” are divided into three and since it’s hard for human (me) to be in the flow to work, actually the amount of code I generated have dramatically reduced compared to the previous 3 months.

This is something new to me.

And it’s a good challenge.

I learned a lot on how to budget (time and money), how to do the business side of IT (I have created tender as well) as well as to juggle these tasks. The higher you go, the more you have to manage it properly or you will succumb to busyness and not productive.

Let’s do more and learn more this year.