This page lists all the site updates. These are short posts that describe the events in my life. These posts are frequently added here, but have less content than the blog post or the article pages. I like to post one everyday so that I can go back and check what series of changes for an extended period of time. These site updates also track the progress of various projects. Some of them might contain funny stuff, anything that can entertain the readers of these sites. Hope you enjoy them.
Two days ago, I decided to give ES6 Script a try. I wanted to to develop a simple application with Angular JS and ES6 Script. This is 2020, it should be a lot easier to do this now than 3 years ago. I found an example and I tried. Just like the few other simple tutorial I have in the past couple weeks, it didn't work initially. I got some syntax errors. And before I logged off, I checked the web, seemed I need to use Babel and Node.js to convert the ES6 Script based code into JavaScript.
Yesterday, I played a little game, and didn't work on this little program. Today, I finally picked it back up. I was about to go get Babel and setup Node.js for this. And I was not convinced this is right. This is 2020, ES6 Script should work in the browser without any translation. Turned out, I am right. I don't need to translate. And the error I was getting was from the wrong path to the file. Another problem I had is with the ES6 Script syntax. Once I fixed both, the little program worked. A little more research I was able to get the program working as expected. Man! 10/17 is a pretty good day. I will create another tutorial for this site.
We went to see a creek (there are so many in Pennsylvania) and little water fall. It was lovely. I had a few good photography ideas with the place. Maybe I will do some more photography projects in Pennsylvania.
Giving ES6 Script a Try... And it Worked!
I put in another fix for this site. I noticed that whenever I add an image to a post or in an update, I need to add a center aligned DIV, then in it the image. I have type all these by myself. It is better to add a command shortcut. So I did.
Also, when I use the command shortcut to add an unordered list or ordered list. The place holder lines would have this annoying "<". It was added by accident. So I had to delete all that extra "<" characters.
Lastly, the place holder for the title attribute, the word "descrition" was misspelled. I cannot stand it. So I took this opportunity to fix it. Anyways, I had a little tough time adding the command shortcut to for site update section. I fixed at the end of last night (10/14).
Yay! 18 issues fixed since the site came online. This is great!
Fixed Another Few Issues for This Site
I just got Redis on my PC. I was amazed how small the server is, All the binary files added up is less than 1MB. If I use the default configuration, the server starts right up. It must be written in C. I was able to add a key and value in the storage. And retrieve it. When I shut down the server, the data was lost. I was not able to get it work with the the auto save. Turned out there is a better way, on the CLI, if I invoke command SAVE, the change will be persisted to disk. After I turn off the server and restarted again I was able to see the key value again.
The next step is to write a small Java program to exercise the functionality with redis. I like the simplicity with this NoSQL database. I think I like to learn as much as I can about this. Again, I was thrilled that this thing is so simple. The server executable is so small. It is so easy to run it with a default configuration. And so easy to save the key value pair to file.
Getting Redis and Play It Out
Writing coding tutorial takes a lot of time. I spent at least three days on it, and it is still unfinished. I really don't like to do this. It is fun to figure out how things works. But write it all out takes time, Maybe I need to change the work style a little bit. I am not sure what to do with this. All I know is that documenting the tutorial takes too much of time. I need to find a way to make this more efficient.
Anyways, the tutorial is almost done. I will do one more push to finish it. Then I have to proof read it before it can be published at this site. As said before, lots of work. I can do this now. If I push myself for another big project. I won't be able to push out this tutorial as much. This is the reason I only allocate five articles per year, leaves lots of time on the development of this site. Anyways, now this is completed. I have a little more time to do tutorial. I still don't like it. Must find a way to make this easy.
On Saturday 10/10/2020, I played Dragon Quest XI for two hours. It was fun. I figured out the attraction of this game. It has no pressure for a player, and the success is almost guaranteed. So it is very easy to get the endorphin as reward. This is how a player can get hooked to play this game nonstop. This is dangerous. I was unaffected because I have discipline, From time to time, I would still play over the time. Anyways, I will get better control over time.
I took some good pictures this weekend, of Sunflowers. Maybe I will post one later.
ThymeLeaf Tutorial is Almost Complete
I just started the write up of a simple tutorial on Thymeleaf. This tutorial will be simple and exclusive for my site. I have uploaded the project to bitbucket in a separated source repo. As long as I have the source code, I will be able to reproduce the same exact effect at a later date. The pain of documenting the usage is just to share information with the public. I don't event expect increase of traffic to the site. The details I will share is already available on other sites.
Write it and share is mostly for me. I will read it again to to figure out what I did before. This is just a simple application that accomplished what I have done before. I will create another sample application to have Spring Security added. Again this is retrace the work I have done before but will use Thymeleaf for page rendering. I will also add tutorial for global exception handling. It sis something I have just learned recently. For the next project, this little technique will be used. Anyways, it will be found for the next two months. The Angular HTML editor piece is still shelved somewhere, which I will document for codeproject as last one for this year.
Work on Blog Post Tutorial for Thymeleaf
Learning new things means I want to move forward. I used to hold grudges on certain technologies. Then a while later I find myself giving up such grudge. I explore the these new things which I don't think are right. I don't like them but I find myself use them all right. And I don't find myself betraying my own believes (although it does looks like I betray myself), I am surviving by adapting. When you feel the same thing, you don't have to hate yourself. Just tell yourself you have to survive and you have to adapt.
This time, I was learning Thymeleaf. I needed it because I need a replacement to the taglib jars. They will not be usable with the newest Java compiler. This is the best alternative. I will use it if there is no other choice. And I heard good things about ThymeLeaf. It took some research, And I was able to create a very simple application. It exercises the minimum set of requirements I have. I have not yet made it work with Spring Security. First I will add Bootstrap 3.3.7 to it. Then make a small tutorial, Post it here and possibly for codeproject. Then I will move on with Spring Security.
Thymeleaf Sample Program Works
I returned to Spring Boot programming two days ago. First, I decided to learn how to use ThymeLeaf. I was using JSF, and TagLib. But both implementations are getting old. They will not work with Java version above 8. As of now, the warning does not prevent the application from running. But I cannot guarantee this would be the case five years from now. I need a replacement. This site is not affected now, but if needed, I can rip all that out replace the old code with ThymeLeaf.
But I hit some issue which took me two hours to resolve. This really made me feel getting old. It was a silly mistake, It was eventually resolved. But it annoyed me pretty bad. I put that in the past. Today, I did some code design with the ConrollerAdvice, a way of catch all the exceptions, then return either a web page or a JSON message. The coding was smooth sailing. The thing is, since I have done this web site, I was not as focused. I do the spare time work while watching TV. And I just don't see some of the tiny mistakes I made, and that would waste time chasing these mistakes - focus is important.
Spring Training
It has been a week, with no new updates. What is wrong with me? Here are some catching up:
Yesterday, I finally returned to writing web application again. Here is my thought, the application development technology is old. Eventually, some of the libraries will not be working in the mix. The new things even though I hate, will be supplementing the old ones I like. I used to dislike Spring Boot. Now I used it like my left hand. It was just convenient. The new things I am exploring will be just like Spring Boot. I will get the first simple program working, then write a codeproject tutorial, then expand with more functionalities. Hopefully, by the end of the year, I have enough materials for some potential new projects.
Wow! Long Time with No New Updates
On Sunday (yesterday), the water heater was dead, only lukewarm water available. The whole family didn't shower. Turned out, the ignition of the water heater was off. And there is a way to re-ignite the spark. And I was able to turn it on. Disaster avoided, Then the Monday went through smoothly. It was one of these days when one thing worked, everything worked.
I played some game on Sunday. First I was playing No Man's Sky. And I finally got sick of it. So I switched to Dragon Quest XI. I hope it wouldn't be a mistake as it will take a lot of work to play through. The truth is that I am a bit scared of Days Gone. And Star Wars Jedi: Fallen Order is a bit annoying with all the jumps and acrobats. I would eventually get back to Fallen Order. For now I will enjoy some simple game play.
The Android application is almost done. I just added some extra code to prevent pop up dialog to close, And I added the text resources to display at different stages. Finally I got Pixel C pad emulator and got the application run on it and it looked OK. So it would work with a phone and with a larger pad. The time to test it completely is almost there. I am happy with the progress,
Another Monday
It has been five days since my last update. A lot has happened. I just want t summarize here before I go and play games. First, the black car's left head light was not working, And the fuel door cannot pop open. The car dealer fixed the head light, but not fixed the fuel door. It is probably because the mechanic couldn't reproduce the issue. They clean the fuel door compartment and call it fixed. I was not too happy about it. When I was about to bring the car back in for another fix, I found a temporary solution. There is an manual release, I used it to open the fuel door. And now it can be popped open. Unfortunately, I tried again on 9/19/2020 morning, it was stuck again. Good thing the manual release still works.
I was working on an Android application. It took five nights, And I have it running now. I need to do some clean up, add some new functionality, then it can be deployed for testing. I can't reveal too much of this application. I am happy about the progress I have made. I have not done Android application for at least 10 years. And I picked it up right up no problem. I learned more from this than I did 10 years ago.
I mistaken a router as network extender. It was ridiculous. And I had to make another purchase. Hopefully, it will be the right ones. And I still forgot to buy the steel metal plate for the phone (used with a magnet to put on the car dash board). I guess I will try remember next time. I download and installed TikTok, just in case the ban prevent future installation of the app.
Things that Happened In the Past 5 Days
I will be adding two project pages. At least I am thinking of this. The first page is to list all the places I have been, traveled, visited. And how much fun each places is. I want to see how much of the world I have seen. Another possibility for this project is to list some places I like to visit later, and I want to see if I can get to these places if I try hard enough. Travel is not easy for me. And I like to visit places. And I guess I want to get comfortable with traveling.
Another project page I like to create is the game page. This seems childish. But I like it. Playing video games is an childhood obsession. Something I do not wish to give up. It is also something I want to enjoy. Even though it seems childish, I like the idea that I can keep a scoreboard, as an entertainment to myself.
For these two project pages, I will decorate them with some great icon images, and create some more style classes to make these two project pages unique.
Thinking of Adding New Project Pages
Screenshot from the video game The Outer Worlds - Posted as non profit/Fair Use
I have sold the house on 9/10/2020. On the same day, I finished the video game The Outer Worlds. I was stuck at the final battle. There was one giant robot plus four small drones. The NPC lost conscious shortly after engagement. At first, I was quick to die. It was very frustrating. That was a week ago. I waited on a day when I was well enough, and I was able to beat this last battle on 9/10/2020. It was a very happy day. The house was sold, I was able recover most of the fund (also lost a lot). Anyways, I was very happy with the outcome.
For this site, I am back to fixing some issues, I have cleaned up the page content directive for the Admin site. There were some duplicated code, which I have removed. Then I have fixed the add resource image URL issue. Finally I added an enhancement to filter the resource by type for the add resource popup. These changes are still under testing. Once they are certified I will push then for public use. At time of writing this, the code changes are still under testing.
Today (9/11), I was looking into the block chain technology Ethereum. It was very interesting. I looked through one tutorial and it looked interesting. It will be something I will check next. Right now I have to deal with Android, I need to design an application that can play wav file and record wav file, and also add some text file to the Android disk. I will need to focus on this.
I Have Completed the Game - The Outer Worlds
I finished another update for this web site. This time, it was an enhancement. I separated the list of photos and pictures from the other resources list. The reason is simple. The photos and picture I will post are my most prized images, The other images from the resource list are screenshots, and unimportant image files. When both mixed in the same list, this will make the management of both harder to do.
The solution is to separate the two. I create a new list of photos and pictures. The change is pretty simple, but involved a lot of file changes. And it created some duplicate code. I am OK with it. It was thoroughly tested. And I have put it available to the public. I am going to fix any issues later.
This labor day is kinda crazy. I brought three pieces of hardware for home improvement. One is a simple slide lock. It was an easy install, but it was ineffective. Another one to fix the snap lock on the front door, Again, it was not effective, another easy fix though. The last one is a plastic pad to prevent the door knob scratch another door. This one is the simplest to install, and it was effective. I am getting better with the home improvement. And it is getting easier with the right tools. Now I am finally believing right tools for the right job.
Completed an Enhancement to This Site
Since the last update, I have been busy. I downloaded Android Studio, and installed. Then I designed and implement the first program. This program has a button in the middle of the screen. When pressed, it plays an audio file with the extension of *.wav. It was working as last night. The next step for it, is to add the the step of saving a text file with some stuff.
I am doing this for a potential big project in the near future. It is going to be a lot of sweat and pain. Anyways, I am taking a break here. I am going to fix another issue with this site. For the Admin Site, the session timeout is set to 30 minutes. It might be too short. I will increase it to 90 minutes. There are some other enhancement I will have to do. It could be a week of work. I will save that for later.
Back to the Android stuff. At first, it was disorienting. What saved the day was my knowledge of Java and Linux. Then a lot of search of code snippet finally made it working. Linux is really a sweet OS. And if one knows enough of it, one can solve any problem.
First Android Program Worked
The problem with the AngularJS HTML editor was completed on the week 8/29/2020. Turned out the issue was small, I had to rewrite some parts of the directive, then cleaned up the code a little. Afterward, I spent a night testing the directive to make sure nothing is broken. It is done. I shelved it for now.
I found a problem with PS4 The Outer Worlds. It was a common issue (as many player reported it). Obviously there was a bug in the code. After the player reaches Level 28, and enters the city Byzantium, all the save will be corrupted. This cause a lot of headache for me. Mainly the lost progress for a few hours. I had to re-play the same over for three times. Today, I took 1 hour to set up my PSN access, then download and installed the update to the game. Now I have version 1.0.4 instead of 1.0.0.27. And I played the game for a quick 10 minutes and was able to make a good save. More testing needed. Yes, I am a bit obsessed about this because such a major flaw shows this game does not deserve the release price tag of $60. If the new version still create crap save. Then this game is going to my shit pile list.
I also installed the Android Studio, in case I have to do a big project. It is no longer using Eclipse. It is now based on IntelliJ. I don't like it but there is nothing I can do. At least the SDK is pretty friendly. I was able to create a sample application in an hour. I will add more update here.
AngularJS Based Html Editor is Done
Last night, just before I sign off the AngularJS HTML editor sample application, I decided to do one more testing, adding a HTTP load and save functionalities to the sample application. That is when the hell broke loose. The load didn't work, and the save didn't work either. Crash and burned. Now I have to fix them. It is an design issue, and extensive work is needed. I will stat today, after finishing this update.
There is another thing, I ordered a set of screw driver heads, drill bits. Why? I thought I lost the old set. The new one arrived. Then someone in the house pull out my supposedly "lost" screw driver heads and drill bits. I was like "You gotta be kidding me..." Anyways, the new set is better and I will keep it. The old one, I am not sure what to do with it. Keep around as back up, then give it away when I don't need it any more. I ask myself why I need the driver heads and drill bits. I like doing small home improvement thing. Having a neat set of these can make the work easier. I am going to enjoy the new toy.
I was also researching the new ear buds. I think I am going to buy Sennheiser CX 100. My old Samsung lasted at least 5 years, And it is finally at the end of its life span...
Crashed And Burned - AngularJS Based Html Editor Needs More Work