Change is permanent. Why resist?

Change is permanent. Why resist?

Yes, change is indeed imminent, and we could not stop it. It happens, and it makes an impact not only on any relationship but on our career, our goals, and our lifestyle.

The question is, do we need to fear change? In my opinion, I don’t think so.

Change is already part of our system, and we are already accustomed to it. It is because our body system is designed not to resist change but to adapt to it. What I would like to point here is that when drastic change happens, though we always have a choice, I would always choose to accept the change and just let it go.

When I took Physics in college, I made a realization that Science is the study of change. Do you still remember how the Phases of Matter? Solid to Liquid then To Gas. How about the Law of Conservation of Energy that states Energy is neither created nor destroyed, it is only transformed into other forms. Transformation means change, am I right? Then we have the Theory of Evolution? It means change. The phases of the moon. The Seasons we have - winter, spring, summer, and autumn. All of these concepts are associated with change. We were trained and had been repeatedly reminded that change is everywhere. Therefore, to be successful, we need to take advantage of what happened in our favor.

 

 

Get Filenames in a Folder

There might be a requirement to list all the filenames inside a folder. The steps below would be useful:

1. Hold the “Shift” key, right-click the folder containing a list of files and select “Open Command Window Here.”

2. Type dir > files.txt in the Command Prompt window. Press “Enter.”

3. A text file name files.txt is created in the folder selected.

 

 

Count records using LINQ

I need to get the number of Tasks in a project for the MaxValue property of Telerik ProgressBar and the numbers of completed tasks for its Value property. Below are the codes I used:

Public Sub progressBar()
Dim projectID As String = Me.txtID.Text
Dim db As New ProjectsEntities()
Dim totalTasks = Aggregate task In db.tblTasks
Where task.ProjectID = projectID
Into Count()
Dim totalTasksCompleted = Aggregate task In db.tblTasks
Where task.ProjectID = projectID And 
task.TaskStatus = "Completed"
Into Count()
Me.TaskProgressBar.Value = totalTasksCompleted
Me.TaskProgressBar.MaxValue = totalTasks
Me.TaskProgressBar.ChunksCount = totalTasks
End Sub

For Average and Sum, below are codes copied from Microsoft Site.

Dim averageOrderCount = Aggregate cust In db.Customers
                        Where cust.City = "London"
                        Into Average(cust.Orders.Count)
msg &= "Average number of Orders per customer: " &
       averageOrderCount & vbCrLf

Dim venezuelaTotalOrders = Aggregate cust In db.Customers
                           Where cust.Country = "Venezuela"
                           Into Sum(cust.Orders.Count)
msg &= "Total number of orders from Customers in 
       Venezuela: " & venezuelaTotalOrders & vbCrLf

MsgBox(msg)

Dim averageCustomersByCity = From cust In db.Customers
                             Group By cust.City
                             Into Average(cust.Orders.Count)
                             Order By Average

The People and the Dream of an Islander

The 3 A’s that serves as my guide in fulfilling my dreams.

First A stands for Acceptance.

We need to accept the reality that there are things we could not do due to our limitations. It could be physically or financially that hinder us to do what we want.

During the 70’s and the 80’s, our island was not a choice for rich people to live. There was no electricity, no phone lines, no newspapers and no television. Most of the people were in poverty including my family. I accepted our status and I believed that the only way to improve our living condition was to pursue into college education. And that acceptance, conditioned my mind to strive and to prepare myself to navigate across the sea to study in college.

 

Second A stands for Associate.

You could easily get support from if they have known you and have trust in you. That is the basic rule on human interaction. Thus, associate yourself with others, that’s the key.

My first job here in Kuwait in 2006 was a Microsoft Office trainer. I only required to conduct classes for our military customers and support them if they have issues with Microsoft Office applications. However, I made myself available to my colleagues and other employees from other departments when they need my help. I even organized classes at their offices when I had not much on my schedule.

I had no idea that my simple gesture of helping them made me the recipient of the Quality Service Award in 2010. The people whom I associated and helped with were the one who nominated me to that award.

Third A stands for Ask.

Do not be shy to ask help when you need it. And you must say it.

Last year, my eldest son was selected for a Software Developer position. However, his offer letter was put on-hold due to some strict regulations set by the Philippine government in sending Filipino workers here in Kuwait. It was truly a difficult task to bring him here. But with the help of the people from both our company and our government, we made it happen. People by nature are good.  And when you ask help from them, they understand and willing to help specially when they know the intent of your heart.

To sum it up: my dream, your dream maybe likened to this rock. Neither you nor I could move it alone. If we really want to move it, we need to accept our limitation and admit that we are not superhumans. Though we are not gods, we have a special gift as a social being. Let us use that gift to associate and develop relationships with others. Then, without hesitation, let us ask help from them. And when they respond, we can move this rock altogether.

Like with the dream of the islander, it comes true because of you, them, us or the People.

It starts with your mind

If you have an ‘internal locus of control’, then that means that you recognize just how responsible you are for the quality of your life and your accomplishments. Many people have a tendency to blame others, to blame circumstances, or to make excuses when things don’t go their way. Why aren’t you happy? It’s because you had a hard childhood! Why aren’t you rich? It’s because you weren’t born with a silver spoon in your mouth, or because you lost your job due to layoffs.

Making excuses is easy but it doesn’t get anywhere. What you must do is to act and use your talents/skills to achieve your goals. So, what is the all-important ingredient? It’s you. And more specifically, it’s your mind. Your mind is where everything else comes from. Your beliefs, your focus, your concentration, your mood – all of that. What’s more, is that where your mind leads, your body follows.

Everything in life is dependent on numerous other factors. Whether you’re talking about relationships, about your career or about your financial situation. How can you find your dream job when you don’t have the option to leave your current job?  And how can you stop being broke when you are so badly in debt? Change has to start somewhere. And it starts with you. It starts with your mind.

A better job starts with the mind. A better relationship starts with the mind. And, a better LIFE starts with the mind!

Here’s a little saying to keep in mind: “The grass isn’t greener on the other side, it’s greener where you water it!”