Saturday, April 25, 2020

Servers on Your Desktop

Many people think a technology server is an entirely separate machine or in modern cases, a web based addition to their home technology. While servers typically play a certain role for technology use, their operating functionality is actually quite basic in comparison to the average person's desktop (or laptop) computer; even the average smart phone processes more than many server machines do.

In regards to such, I wanted to touch on the basic installation of a web server stack on the average desktop environment. On a Windows machine I use XAMP for installing the basic necessities required to run a small web server with the functionality required for a development instance of Wordpress, Joomla or Drupal. On a Linux (or similar) machine, this stack might be referred to as a LAMP stack. The package "stack" is most typically comprised of Apache, MySQL and PHP packages which are used on most web servers for a variety of functionalities associated with websites providing a variety of user functionality.

Why install these things on my home use desktop or laptop? Well, many years ago when I was learning how to create websites of various types and for a variety of reasons, I found it best to do my editing and development in an "offline" setting rather than doing things "live" where nobody would notice the changes that were happening in the process while I was making them. Also, the website would stay live so people could visit without taking the site down for service. This "offline" work style is effective even with applications such as Wordpress once a person has learned how to copy over any writings into the MySQL tables.

Essentially, all changes, modifications or updates are done at the convenience of the admin then verified through the localhost (127.0.0.1) web address which gives a sudo-live representation of how the site changes will look before copying the files to the live server for the world to see. The packages to do this aren't very large but the benefit is. Whether doing one's own production or providing services for someone else, work can be checked and verified before being sent live to the operating site.


I should also note that the XAMP admin panel makes those services easy to turn on and off so they are not needlessly burdening our memory or processor when we don't need them to be.

Thursday, April 23, 2020

Programming Revisited

After my first couple of posts I spent some time thinking about some of the things I might want to write about. My mind wandered in all sorts of directions including things I would want to make a record of now that my son is getting to that exploratory stage in his life. I think for my own sake, it's in some way beneficial to me to record some of the things I've done and experienced so that he can have a lasting understanding of his dad that he can read or turn back to anytime he wishes. I've done so much in my life so far and I've gotten kind of worn on the social media thing that blogging seems to just make more sense.

Today I was thinking about going through some of my old college programming projects and see if I can capture those results in a form that might make some sense to him or maybe even inspire him to learn to program on his own. As I flipped through my old class files, I came across the Visual Basic programs I wrote. It took me a while to remember that I used Visual Studio IDE to create them. To collect the screenshots for the code, I had to install the program which, thankfully, is free.

I haven't done any serious programming since college for a variety of reasons but primarily because it consumes a lot of time and I haven't felt inspired to spend that much time indoors tied to a computer like I used to. For some odd reason though, God has moved me to revisit those skills I once spent so much time developing. Maybe He wants me to look back on the things I have accomplished or maybe He has some other reason for me to be going in this direction? Either way, this is not something I've really planned out for anything but something I felt compelled to revisit at an entirely new point in my life.

This program is actually very simple. It includes a drop-down menu that allows for selection of an appliance. Then, input the values in the provided fields and it calculates the cost to run that unit. Add the calculation to the sum field to the right and it totals everything together. It can also throw errors for improper input as well as clear the fields to start over. Not overly complicated, but a good exercise program for learning how to use the IDE and developing program structure and flow.





Tuesday, April 21, 2020

Pause and Think

Found these snippets among my arsenal of research and felt them worthy of sharing. Basic concepts for consideration when interacting with others on a personal level.
   
Ask Yourself What This Person is Really About?

   Some people are really good at projecting a confident, sexy, fun-loving
   spirit or making you feel really attractive and important.  But, if you
   take a step back, you may want to ask yourself how well you actually know
   this person?  And how much are they really into you?  Do their eyes wander
   around the room, looking for their next conquest or who is admiring them?
    How do they treat regular people like the waitress or cab driver? If you
   listen carefully to what they say, what are the underlying values?  Are
   they critical and contemptuous of others?  Do they remember what you tell
   them?  How considerate and thoughtful are they?  Do they have close
   friends or are they close to their family?  Asking yourself these
   questions can help you move beyond superficial aspects of the person, to
   consider qualities that are more important in the long-run.

   
Use Your Wise Mind

   Psychologist Marsha Linehan coined the concept of "wise mind" to describe
   a state of mind that integrates logical thinking with emotional awareness.
   It is a mindful state in which you make decisions by integrating different
   ways of knowing and don't cut off parts of your experience. If you feel an
   instant connection with somebody, take this into account, but don't make
   it the whole basis of your decision.  In wise mind, we don't ignore
   emotions, but we also don't get so caught up in them that we see what we
   want to see, not what is actually there. In brain terms, wise mind means
   integrating our amygdala's intuitive reactions with the wisdom of
   past experience and knowledge about the world.


About the Author

   Melanie Greenberg, Ph.D. is a Psychologist in Mill Valley, California, and
   expert on mindfulness, emotions, neuroscience, and behavior, Dr
   Greenberg provides workshops and speaking engagements for
   organizations, life coaching, and psychotherapy for individuals
   and couples. She regularly appears on radio shows, and as an expert source
   in national media.

Monday, April 20, 2020

Delete or Update?

Today I spent some time going back and reading some of the old posts in the How-To blog I was working on 7 or 8 years ago. In reading, I was rather embarrassed with the negative language I used to use and the fact that I included it in my blog. Those were some really dark times for me back then and when I got home from work I was considering deleting the whole thing. As I logged in and went to the "delete" option of the admin panel, I paused and stopped, then looked at the number of views on the posts I had gotten.


Rather than scrub the entire thing, maybe it would be worth it to just clean up those old posts and keep them around for posterity sake? I hadn't written any new posts for years but then I think about my son and how it might be interesting for him to be able to read some of those old posts. Either way, it's probably a good idea to clean them up since I've created a backup of them all already and who knows? I may end up adding to it sometime in the future.


Sunday, April 19, 2020

Updating the Linux Box

Thought I would take a few minutes and update the old Linux IBM ThinkPad since I really haven't spent much time with it since purchasing the IdeaPad a few years back.

Open terminal and "sudo apt update & upgrade". Funny, it's been a long time since I've run those basic commands. Maybe now is a good time to go through that old box and do some clean up work.

This may take a while.....


New Blog - First Post

Why start another blog? I've created many over the years for various reasons. As life changes and God moves us into different directions, one blog starts to wind down into irrelevance and perhaps a number of years will go by before the inspiration comes again to start another one.

I started a blog back in 2017 that ended up going until today with only a single entry in it. Why did I even start that blog in the first place, I'm not entirely sure. Something, however, inspired me enough to create the blog and write that first post but then I never felt inspired again to follow up with another. Maybe this blog will go the same direction or maybe it will last for years as some form of journal my son can read as he gets older. No one really knows anything for sure except God and yet, the fact is that I am blogging yet again because He has compelled me to do so.

Whether or not I will continue on with blog (as with all the others) remains a mystery only God knows the answer to.  I will most likely not be writing to it daily, perhaps not even weekly but only when I'm inspired to do so and when I feel I have the time to invest.