If someone who wanted to learn a computer programming language asked me which one to learn, right now I would recommend Python. Back when dirt was new, dinosaurs roamed the earth, and I first started learning how to program a computer, BASIC was the language everyone learned. Then I moved onto Pascal before tackling C and C++. Nowadays I find that most of the coding I do is using Python and I love it.
I am currently working on a project where I need to display the size of a file on a web page. Most languages would require me to use IF..THEN logic show GB for gigabytes, MB for megabytes, or KB for kilobytes. In Python, I just need to use the "filesizeformat" filter. It automatically converts the number 2600000000 into 2.4 GB (don't worry about it not being 2.6 GB as 1 KB = 1024 Bytes, not 1000).
Python is a very compact language and doesn't require a lot of coding to get a lot done. Chances are that someone has already figured out how to do something that used to require thousands of lines of code and reduced it to a single line in your program. The only problem with that is you need to know what line to use. That is an easy-enough problem to solve though. Just type a short description of what you are trying to do into your favorite search engine and you will get a number of suggestions. Most of the time one of them will work perfectly.
Python also has the advantage that is the computer programming language of choice for data science and data analytics, which is what I do a lot of. For a while, people used R but now Python has overtaken it.
Yes I still remember BASIC and Pascal really helped me understand a lot of fundamentals for computer programming. But if you are starting out on the path of learning your first programming language, my recommendation would be Python.
Tuesday, August 20, 2019
Monday, August 19, 2019
You Can't Rely on Phone Service
I spent this past weekend on a backpacking trip in the Uinta Mountains. Before heading out, my son sent me a map that he created from CalTopo.com and I printed it on waterproof paper. Actually I printed 3 copies of the map: one for me, one for my son, and another for someone else on the trip. As my son and I have been to the exact same place before, the maps really were not that necessary, or so I thought.
Our group started the hike and everyone sped down the trail to our scenic destination while I pulled up the rear and enjoyed the journey. The first time I hiked this trail, I made a mistake on one section and left the trail because a lot of hikers before me had made a wrong turn at the exact same spot. This time I remembered the error and patiently waited on the correct trail while yelling ahead to the group to turn around and follow me. At that point several of the millennials in the group pulled out their phones and tried to use their map application. We were out in the middle of nowhere with no possibility of mobile phone service. Guess what? Maps don't work on your smartphone unless you have downloaded the maps before leaving mobile phone coverage. I just had to chuckle to myself as I watched this group of kids trying to figure out what to do without their smartphones.
There is a saying that "In the land of the blind, the one-eyed man is king." In my case, it is the dude with the paper map. Our hike continued uneventfully until we came to the area where we had to leave the trail and do a meadow walk to get to our destination.
For those that are not familiar with a meadow walk, it is a hiking technique to minimize damage to delicate alpine meadows. Creating a trail in such an area enables devastatingly destructive erosion so it is better for everyone to spread out, walk delicately, and take care not to trample the spectacular mountain flowers. We had three such meadows to cross before arriving at our campsite. Once again, the map proved its worth.
Our hike back to the car followed a different path around various picturesque alpine lakes and completed a loop as opposed to going back down the same trail we used to the previous day. We chose this path because neither my son nor I had traveled it and we wanted to see new places. The trail did not disappoint us and once again the paper map proved its worth.
The United States has great mobile phone coverage and sometimes we take it for granted. Unfortunately it is not everywhere and there is a good chance that it won't work when you are in the wilderness. Should you find yourself heading to camp in a remote area, be sure to print up a paper map before leaving home (or at least download the area to your phone). While it may not necessarily save your life, it may save countless miles of unnecessary detours.
Our group started the hike and everyone sped down the trail to our scenic destination while I pulled up the rear and enjoyed the journey. The first time I hiked this trail, I made a mistake on one section and left the trail because a lot of hikers before me had made a wrong turn at the exact same spot. This time I remembered the error and patiently waited on the correct trail while yelling ahead to the group to turn around and follow me. At that point several of the millennials in the group pulled out their phones and tried to use their map application. We were out in the middle of nowhere with no possibility of mobile phone service. Guess what? Maps don't work on your smartphone unless you have downloaded the maps before leaving mobile phone coverage. I just had to chuckle to myself as I watched this group of kids trying to figure out what to do without their smartphones.
There is a saying that "In the land of the blind, the one-eyed man is king." In my case, it is the dude with the paper map. Our hike continued uneventfully until we came to the area where we had to leave the trail and do a meadow walk to get to our destination.
For those that are not familiar with a meadow walk, it is a hiking technique to minimize damage to delicate alpine meadows. Creating a trail in such an area enables devastatingly destructive erosion so it is better for everyone to spread out, walk delicately, and take care not to trample the spectacular mountain flowers. We had three such meadows to cross before arriving at our campsite. Once again, the map proved its worth.
Our hike back to the car followed a different path around various picturesque alpine lakes and completed a loop as opposed to going back down the same trail we used to the previous day. We chose this path because neither my son nor I had traveled it and we wanted to see new places. The trail did not disappoint us and once again the paper map proved its worth.
The United States has great mobile phone coverage and sometimes we take it for granted. Unfortunately it is not everywhere and there is a good chance that it won't work when you are in the wilderness. Should you find yourself heading to camp in a remote area, be sure to print up a paper map before leaving home (or at least download the area to your phone). While it may not necessarily save your life, it may save countless miles of unnecessary detours.
Labels:
Backcountry,
Backpacking,
Maps,
Meadow Walk,
smartphone,
Uinta Mountains
Monday, August 5, 2019
A Fun Group Game
Saturday night I found myself at home with my youngest son along with my oldest daughter's husband. We probably should have been attending one of two family events happening that evening but rebelled and told our wives we didn't want to go. My youngest son suggested we find a video game that the three of us could play together. I had one that I had been wanting to play for a long time after playing it at work with some of my colleagues. The game is called Helldivers and is available for the PlayStation 4 console as well as the PS3, PS Vita, and the PC. We played it on the PS4.
We started up the game and immediately jumped into play without waiting for an update to load. That limited some functionality and so every time we completed a level, it wouldn't upload it to "Galactic Command." We didn't mind as we just wanted to spend a little time together killing time and bad guys.
The first time I played the game, it felt like being a part of the 1997 movie "Starship Troopers." You and up to 3 of your friends (if you have enough controllers) are sent to various planets with specific missions. As we just started the game, we had a number of really easy missions where we landed, cleaned out an area of bugs, robots, or cyborgs, and then got extracted. When we got that down, the missions got a bit more difficult and we had to do things like find some keys, get a black box, and then get extracted. For the most part, we kept the difficulty of missions to super easy while we got used to the top-down view of our players. As all 3 of us shared the same screen at the same time, we couldn't advance on the map unless we all moved in the same direction and stayed together. The moment one of us tried to go up while another tried to go down, scrolling stoped and we got stuck until we cooperated.
One problem that I experienced initially is that I kept losing track of which player was me. All of the characters have your name below them but I would get so caught up with one of the other players that I switched my attention to the wrong avatar and got scolded for not moving in the right direction. After about an hour of play, I figured it out and never lost track of my character again. It also took about that long for me to figure out the controls as I am more used to 1st-person views in the games I play.
I know I tell people to limit video game play to about an hour but we played for a couple and thoroughly enjoyed ourselves. When my youngest son's wife returned from one of the family events for the evening, I suggested we might want to stop playing. My son pleaded that we do one more mission that would finish the planet and allow us to get some extra experience points. I gave in and it surprised him that he convinced me to play one more game so easily. Fortunately it was he who got in trouble with his wife and not me. We finished up the game and had an enjoyable evening.
Today I looked at what it would cost to buy the game today. You can get a basic version for $20 and that is well worth the price. The version I have is on disk and currently sells for $40 but we never got into any of the extra features that come with a higher purchase price. Helldivers is rated T for Teen by the ESRB because of cartoon violence with blood and gore combined with some mild language. I don't remember any language in the game other than the game's title.
My son, son-in-law, and I had a great time playing and I highly recommend it if you are looking for a family bonding activity with at least two other people. If you are by yourself, the missions are almost impossible and so you will want to partner with people online, which is also an option.
We started up the game and immediately jumped into play without waiting for an update to load. That limited some functionality and so every time we completed a level, it wouldn't upload it to "Galactic Command." We didn't mind as we just wanted to spend a little time together killing time and bad guys.
The first time I played the game, it felt like being a part of the 1997 movie "Starship Troopers." You and up to 3 of your friends (if you have enough controllers) are sent to various planets with specific missions. As we just started the game, we had a number of really easy missions where we landed, cleaned out an area of bugs, robots, or cyborgs, and then got extracted. When we got that down, the missions got a bit more difficult and we had to do things like find some keys, get a black box, and then get extracted. For the most part, we kept the difficulty of missions to super easy while we got used to the top-down view of our players. As all 3 of us shared the same screen at the same time, we couldn't advance on the map unless we all moved in the same direction and stayed together. The moment one of us tried to go up while another tried to go down, scrolling stoped and we got stuck until we cooperated.
One problem that I experienced initially is that I kept losing track of which player was me. All of the characters have your name below them but I would get so caught up with one of the other players that I switched my attention to the wrong avatar and got scolded for not moving in the right direction. After about an hour of play, I figured it out and never lost track of my character again. It also took about that long for me to figure out the controls as I am more used to 1st-person views in the games I play.
I know I tell people to limit video game play to about an hour but we played for a couple and thoroughly enjoyed ourselves. When my youngest son's wife returned from one of the family events for the evening, I suggested we might want to stop playing. My son pleaded that we do one more mission that would finish the planet and allow us to get some extra experience points. I gave in and it surprised him that he convinced me to play one more game so easily. Fortunately it was he who got in trouble with his wife and not me. We finished up the game and had an enjoyable evening.
Today I looked at what it would cost to buy the game today. You can get a basic version for $20 and that is well worth the price. The version I have is on disk and currently sells for $40 but we never got into any of the extra features that come with a higher purchase price. Helldivers is rated T for Teen by the ESRB because of cartoon violence with blood and gore combined with some mild language. I don't remember any language in the game other than the game's title.
My son, son-in-law, and I had a great time playing and I highly recommend it if you are looking for a family bonding activity with at least two other people. If you are by yourself, the missions are almost impossible and so you will want to partner with people online, which is also an option.
Labels:
Helldivers,
PlayStation 4,
PS Vita,
PS3,
PS4,
Starship Troopers
Thursday, August 1, 2019
Video Game Addiction
I am at the airport waiting for a delayed flight and talking with one of the regulars on this Thursday evening flight. He is killing time by playing a casual game on his iPhone. It is one of those games with progressively harder levels. He has been playing it so long that he is up to something like level 2000 and having a bit of difficulty getting to the next one. I asked him if he has given up work to play the game and he responded that he has not. If he had, he might have a video game addiction problem.
Last week I ended up staying up until 2am playing my current video game (I will review in a future post). My oldest son suggested that I had a video game addiction. If I had given up sleep to play a game, then I would have agreed with him. Fortunately my schedule the next day allowed me to play the game well into the early morning hours without any negative consequences and so I took advantage of the opportunity. Usually I would not have done that. This week I continued playing the game and didn't have any issues with going to bed late, otherwise I might have a video game addiction problem.
I am not someone who is an expert on any type of addiction recovery. About my only qualifications for talking about video game addiction is that I work for a video game company. That makes me the least qualified person you should listen to. My job is to help create an experience so powerful that you give up sleep, food, and friends for it. In short, I am supposed to get you addicted video games.
Recognizing I am trying to get you addicted to video games, here are some signs that you may have a problem:
Last week I ended up staying up until 2am playing my current video game (I will review in a future post). My oldest son suggested that I had a video game addiction. If I had given up sleep to play a game, then I would have agreed with him. Fortunately my schedule the next day allowed me to play the game well into the early morning hours without any negative consequences and so I took advantage of the opportunity. Usually I would not have done that. This week I continued playing the game and didn't have any issues with going to bed late, otherwise I might have a video game addiction problem.
I am not someone who is an expert on any type of addiction recovery. About my only qualifications for talking about video game addiction is that I work for a video game company. That makes me the least qualified person you should listen to. My job is to help create an experience so powerful that you give up sleep, food, and friends for it. In short, I am supposed to get you addicted video games.
Recognizing I am trying to get you addicted to video games, here are some signs that you may have a problem:
- If you constantly miss work to play a video game, you could have a problem.
- If you constantly give up sleep to play a video game, you could have a problem.
- If you would rather interact with non-player (or playable) characters than real people, you could have a problem.
- If you think visiting an online world is better than visiting a tropical paradise like Hawaii or Tahiti, then you could have a problem.
- If you eat more than one meal in the day while playing a video game, you may have a problem.
- If you would rather do a fun and wholesome activity online than in real life, then you may have a problem. I had to add "wholesome" as I would rather die in a video game than in real life.
Thursday, July 25, 2019
The Fortnite Phenomenon
This morning I attended a meeting where we talked about the Fortnite video game. It is one of those hugely successful games that has everyone scratching their heads wondering how they can repeat the process for their own titles. It is from Epic Games, which is also the creator of the Unreal game engine. As a side-note, if you want to try your hand at creating a video game, you can use the Unreal engine for free. You only have to pay Epic when you sell copies of your game and then it is just a small percentage.
So what makes Fortnite so successful? I can try to answer that question but the reality is that if I could explain it, then everyone would use the same formula to make their own games successful. So let me begin by saying that filling a need at the right time is part of the equation and that makes duplicating the game's success very difficult.
Fortnite is very simple to understand. When I played my first Fortnite match, I did so with a small description of the game. I didn't need any lengthy instructions nor in-game tutorials (as is often the first hour or two of many games). All I did was jump out of a flying school bus and try to stay alive as long as possible. I managed to do so more than half of the players in that match and felt pretty good about myself.
Fortnite allows you to play online with your friends. It is no secret that I started playing the PS2, thanks to the console as a birthday gift from my brother who worked for Sony at the time. Then my Dad, brothers, and I would go online every Thursday evening from 7pm until around midnight playing with and sometimes against each other. Our favorite game was SOCOM 2 and we had a lot of fun. Our group eventually grew to include a brother-in-law as well as a few nephews. At the all-time peak of our gaming, we met together with our consoles at Thanksgiving and played in the same room. This is quite a feat given that one of my brothers lived in San Diego, the other in Portland, and me in Salt Lake City. Fortnite builds upon the ability to play with friends and does a pretty good job of keeping it fun for everyone.
Fortnite makes it tough to cheat. One of the reasons my brothers and I stopped playing online video games together is because of cheaters and campers. As Fortnite serves as a showcase for the Unreal game engine, Epic took care to make it very difficult to cheat. That doesn't mean cheats don't exist but they are few in number. Fortnite also developed a shrinking environment which makes it difficult for someone to find a hiding spot and stay there for the entire game. You may be able to hide for a few minutes but then a storm causes the playable area to shrink and not moving to the active area eliminates you from the game.
Fortnite does not require a huge time commitment. I just finished playing Red Dead Redemption 2 and it took me over 100 hours to complete. While I didn't play the game in a single sitting, sometimes I would play for several hours at a time. With Fortnite you can play in 10-minute increments. That makes it very easy to fill small blocks of time and doesn't require multi-hour commitments.
Fortnite is free to play. You can download it to your video game console, computer, or smartphone for no charge. Free is always an attractive price for any video game.
Finally, Fortnite levels the playing field for everyone. There is no advantage by paying for anything in the game. You all start out with the same inventory and are required to scavenge for weapons and supplies during each match. That means that your friend whose mom has spent hundreds of dollars in the game does not have any advantage. He or she may have a really cool outfit or be able to do a nice victory dance after killing you, but it is skill that ultimately wins the game.
Yes, People are starting to grow tired of Fortnite and it looks as if the number of active players is on a slow decline. Ultimately it will take quite a while before those numbers drop to zero and so Epic shouldn't worry too much right now. Besides that gives them time to think about what to create to replace it. I hope they come up with something equally spectacular.
So what makes Fortnite so successful? I can try to answer that question but the reality is that if I could explain it, then everyone would use the same formula to make their own games successful. So let me begin by saying that filling a need at the right time is part of the equation and that makes duplicating the game's success very difficult.
Fortnite is very simple to understand. When I played my first Fortnite match, I did so with a small description of the game. I didn't need any lengthy instructions nor in-game tutorials (as is often the first hour or two of many games). All I did was jump out of a flying school bus and try to stay alive as long as possible. I managed to do so more than half of the players in that match and felt pretty good about myself.
Fortnite allows you to play online with your friends. It is no secret that I started playing the PS2, thanks to the console as a birthday gift from my brother who worked for Sony at the time. Then my Dad, brothers, and I would go online every Thursday evening from 7pm until around midnight playing with and sometimes against each other. Our favorite game was SOCOM 2 and we had a lot of fun. Our group eventually grew to include a brother-in-law as well as a few nephews. At the all-time peak of our gaming, we met together with our consoles at Thanksgiving and played in the same room. This is quite a feat given that one of my brothers lived in San Diego, the other in Portland, and me in Salt Lake City. Fortnite builds upon the ability to play with friends and does a pretty good job of keeping it fun for everyone.
Fortnite makes it tough to cheat. One of the reasons my brothers and I stopped playing online video games together is because of cheaters and campers. As Fortnite serves as a showcase for the Unreal game engine, Epic took care to make it very difficult to cheat. That doesn't mean cheats don't exist but they are few in number. Fortnite also developed a shrinking environment which makes it difficult for someone to find a hiding spot and stay there for the entire game. You may be able to hide for a few minutes but then a storm causes the playable area to shrink and not moving to the active area eliminates you from the game.
Fortnite does not require a huge time commitment. I just finished playing Red Dead Redemption 2 and it took me over 100 hours to complete. While I didn't play the game in a single sitting, sometimes I would play for several hours at a time. With Fortnite you can play in 10-minute increments. That makes it very easy to fill small blocks of time and doesn't require multi-hour commitments.
Fortnite is free to play. You can download it to your video game console, computer, or smartphone for no charge. Free is always an attractive price for any video game.
Finally, Fortnite levels the playing field for everyone. There is no advantage by paying for anything in the game. You all start out with the same inventory and are required to scavenge for weapons and supplies during each match. That means that your friend whose mom has spent hundreds of dollars in the game does not have any advantage. He or she may have a really cool outfit or be able to do a nice victory dance after killing you, but it is skill that ultimately wins the game.
Yes, People are starting to grow tired of Fortnite and it looks as if the number of active players is on a slow decline. Ultimately it will take quite a while before those numbers drop to zero and so Epic shouldn't worry too much right now. Besides that gives them time to think about what to create to replace it. I hope they come up with something equally spectacular.
Labels:
computer,
Epic Games,
Fortnite,
PC,
PS2,
Red Dead Redemption 2,
smartphone,
Unreal
Tuesday, July 16, 2019
Your Mobile Phone is Making You Unlikable
This morning my son sent me an article from Forbes talking about 9 different habits that make you less likeable. It is a great article in that it first talks about why it is important for people to like you. While some people may discount likeability, the article quotes a UCLA study about top traits for great leaders and they all boil down to likeability.
Scrolling through the list of 9 things that make one less likeable, I discovered that I probably have some changes in my own behavior that I need to make. One that caught my eye though is "Whipping out your phone." I thought about this one for a minute and realized that I really hate it when I am having a conversation with someone and they pull out their phone to check a message or look up something.
To quote the article: "Nothing turns someone off to you like a mid-conversation text message or even a quick glance at your phone. When you commit to a conversation, focus all of your energy on the conversation. You’ll find that conversations are more enjoyable and effective when you immerse yourself in them."
While you may be waiting for an important text or notification, unless someone is dying, you can most likely wait until your in-person conversation is over before pulling out your phone.
Now if I can get my own adult children to read this blog entry, I will be a happy father.
Scrolling through the list of 9 things that make one less likeable, I discovered that I probably have some changes in my own behavior that I need to make. One that caught my eye though is "Whipping out your phone." I thought about this one for a minute and realized that I really hate it when I am having a conversation with someone and they pull out their phone to check a message or look up something.
To quote the article: "Nothing turns someone off to you like a mid-conversation text message or even a quick glance at your phone. When you commit to a conversation, focus all of your energy on the conversation. You’ll find that conversations are more enjoyable and effective when you immerse yourself in them."
While you may be waiting for an important text or notification, unless someone is dying, you can most likely wait until your in-person conversation is over before pulling out your phone.
Now if I can get my own adult children to read this blog entry, I will be a happy father.
Thursday, July 11, 2019
Greatest Hits Games
For anyone looking to save money on video games, there is a little trick to be aware of at this point in the console lifecycle. Both Sony and Microsoft have announced new consoles but they won't be appearing this year. In order to keep the game sales moving, there are some steep discounts on a number of really great games. While new releases are often in the $60 range, games that were best sellers a while ago can be had for $20. These are referred to as "Greatest Hits" in the PlayStation world. I'm sure Microsoft has something similar.
I have a lot of credit on my PlayStation account and so I thought I would run through the list of Greatest Hits to see if there is anything I might have missed and want to play now. I looked at what is currently available for $19.99 and have a couple of recommendations for those that have not played these games yet.
One of the best deals out there is the "Uncharted Nathan Drake Collection" available on the PS4. This includes Uncharted One, Two, and Three all for the low price of only $19.99. When the games were originally released on the PS3, they cost $60 each for a total of $180. Talk about a huge discount. All 3 games have been remastered for the higher quality sound and graphics available in the PS4 console. If you like those 3 games, Uncharted 4 is also in the Greatest Hits collection and is also only $19.99.
The second game I would like to recommend is Horizon Zero Dawn: Complete Edition. This includes the Frozen Wilds DLC that came out several months after the original game release. I enjoyed the DLC so much, I paid the $15 full-price for it. I have a lot of fond memories playing the game and highly recommend it.
Video games can be expensive and so looking for great deals like this is one way to keep the costs down. I highly recommend these games and the price makes them almost too good a deal to pass up if you haven't played them yet. If you have, there are a number of other games in the Greatest Hits collection you might want to consider.
I have a lot of credit on my PlayStation account and so I thought I would run through the list of Greatest Hits to see if there is anything I might have missed and want to play now. I looked at what is currently available for $19.99 and have a couple of recommendations for those that have not played these games yet.
One of the best deals out there is the "Uncharted Nathan Drake Collection" available on the PS4. This includes Uncharted One, Two, and Three all for the low price of only $19.99. When the games were originally released on the PS3, they cost $60 each for a total of $180. Talk about a huge discount. All 3 games have been remastered for the higher quality sound and graphics available in the PS4 console. If you like those 3 games, Uncharted 4 is also in the Greatest Hits collection and is also only $19.99.
The second game I would like to recommend is Horizon Zero Dawn: Complete Edition. This includes the Frozen Wilds DLC that came out several months after the original game release. I enjoyed the DLC so much, I paid the $15 full-price for it. I have a lot of fond memories playing the game and highly recommend it.
Video games can be expensive and so looking for great deals like this is one way to keep the costs down. I highly recommend these games and the price makes them almost too good a deal to pass up if you haven't played them yet. If you have, there are a number of other games in the Greatest Hits collection you might want to consider.
Labels:
$19.99,
Greatest Hits,
Microsoft,
Playstation,
PS3,
PS4,
Sony,
XBox
Subscribe to:
Posts (Atom)
