Thursday, January 23, 2025

Do you know how to create a GIF?

   You have seen a GIF image and enjoyed it. But have you created one.? There are software programs to create GIFs and perhaps many online sites help creating GIFs.  Here is one for example, https://www.canva.com/create/gif-maker/. Animation akin to GIFS can also be created using javascript although there may not be resulting image with a .gif extension.

GIFs are like very small duration video clips but they are really a composite of many small images flipped rapidly, in-situ to create the illusion of motion. They are made to impress you by their motion.

Why GIFS?

Imagine bringing life to a still photo of a sunset by animating the clouds. An image may be worth a thousand words, but a GIF is worth a thousand images. It adds dynamic movement to static images, unleashing your creativity. If you're active on social media, GIFs are an invaluable tool for self-expression, offering endless possibilities. They bring humor, emotion, and laughter to any page, transforming a collection of static images into a vibrant and engaging experience. With GIFs, you can elevate your storytelling to new heights!"

Here is a simple GIF image copied from a web site  (display gif on web browser - Search):


Ins and outs of using Python to create GIFs:

GIF images have the .gif extension which stands for Graphics Interchange Format. 

In this post, I show you how to create from scratch a GIF using Python. Python uses a image library such as PIL to get the images into the program such as PyCharm. Once they are in the program, you need to use another library to do the flipping action. This library is called imageio, image input/output program. For GIFs this program takes in the images (a number of them) and then it customizes the duration each image is shown; whether the gif repeats itself and how many times it does, etc. Note: if you are new to PyCharm, read up my other Python/Image related posts in this blog, http://hodentekhelp.blogpost.com.

The program presented here also goes through the indexing of the images (as there are many images) which necessitate calling yet another useful library called NumPy. The imageio program cannot accept a image list, but a Numpy list and hence the use of the NumPy library.

In order to create a gif file in a python program, you need the following:

1. A set of images. 

2. Importing libraries PIL, ImageIO and Numpy.

Here is are some five image files I am using in the program:






These are not the best, but enough for the purpose.

Here is the python program that creates a GIF image taking in the images shown here:

----------------------------

BirdsGIF.py

-----------------

# Import libraries used to create a GIF image

import imageio

import numpy as np

from PIL import Image

from PIL.ImageFile import ImageFile

# Load images

image1: ImageFile = Image.open(r'C:\Users\hoden\PycharmProjects\exploreImage\Images_3\Bird1.jpg')

image2 = Image.open(r'C:\Users\hoden\PycharmProjects\exploreImage\Images_3\Bird2.jpg')

image3 = Image.open(r'C:\Users\hoden\PycharmProjects\exploreImage\Images_3\Bird3.jpg')

image4 = Image.open(r'C:\Users\hoden\PycharmProjects\exploreImage\Images_3\Bird4.jpg')

image5 = Image.open(r'C:\Users\hoden\PycharmProjects\exploreImage\Images_3\Bird5.jpg')

# Resize images (optional)

image1 = image1.resize((200, 200))

image2 = image2.resize((200, 200))

image3 = image3.resize((200,200))

image4 = image4.resize((200,200))

image5 = image5.resize((200,200))

# Create list of images

images = [image1, image2, image3, image4, image5]

# Convert PIL image  list to NumPy arrays

images = [np.array(img) for img in images]

# Create the GIF using the image list

imageio.mimsave('my_animation.gif', images, duration=2000.0, loop=5)

----------------------

The above program creates a image file with .gif extension and images show for 2000 milliseconds and the GIF image runs five times in succession. If you have time elapsed stills of any event you can easily turn it into an amazingly dynamic image.

That is all there is to creating a GIF. If your images are made with care and are of good quality you can indeed create a good GIF.

The GIf file created, my_animation.gif can be seen in Photo app on your windows computer device, however you can just drag and drop the image on a browser should also work.


Mahalo for staying with me. 

p.s: For these holidays, you can create your greeting card with a GIF. Try it!





Installing the latest version of SQL Server

 Download the latest version of SQL Server from here.


There are a couple of download options as you can see on this page from the above link.


If you are a developer, the best option is the Developer version which provides:

  • Full featured free edition
  • Licensed for use as a development and test database
  • It is for non-production use

However, most purposes the SQL Server 2022 Express is adequate. It provides:

  • Free edition of SQL Server
  • Good fit for desktop development
  • Best fit for small server applications.

The SQL Server editions may be installed on Windows, Linux and Docker Containers.

In this blog for purposes of demonstration and use, the Developer edition will be installed on a Surface Laptop 5 with the following features.

Windows 11 Pro, Version 23H2, OS build 22631.3593. It has 16GB installed RAM

Downloading the developer edition begins by clicking the Download button in the above screen. In response you download the executable, SQL2022-SSEI-Dev.exe (4191 KB)file. This file gets displayed as shown.


If you want a quick installation use the BASIC option. 

In blog the Custom option will be used. If you want to differ to another time, you may just download the installation files by choosing Download Media.

Read the details of the SQL Server 2022 Installation Center



Monday, January 20, 2025

Do you need SQLOISIM for SQL Server?

 SQLIOSIM is a tool for simulating SQL Server IO. SQLIOSIM performs reliability and integrity tests on the disk systems that SQL Server utilizes for data and log files. 

It simulates,

Read

Write

Checkpoint

Backup

Sort and 

Read-ahead activities of MS SQL Server.

Main objective of SQLIOSIM is to test the reliability of the underlying I/O subsystem even before installing SQL Server. This proactive tool helps preparing well for the installation. SQL Server installation is not needed for using it as it does not interact with the SQL Server. If an installation exists, using it may overwrite the files. It is not a tool for data security. It is an upgrade over the previous SQ7IOStress utility.

It is located in the Program Files/Microsoft SQL Server/MSSql16.<Named Instance>MSSQL/BINN folder of your installation.

In the installation described here, there are two SQLIOSIM related files in the BINN folder.

SQLIOSIM Application (SqLIOSIM.exe)----GUI

SQLIOSIM DOS file (SQLIOSIM.com)--DOS 

For using SQLIOSIM.com you need to configure the SQLIOSIM configuration file.


What if you cannot locate the file?

If the file is not found as in this installation, it can be found in GitHub. However, if it is not found on the GitHub and one may need to go to Microsoft or raise the issue. As we see later, there may be a way out using the GUI.


https://github.com/microsoft/mssql-support/blame/master/sqliosim/Readme.md


The SQLIOSIM gui can be launched using the SQLIOSIM.exe application in the BINN folder.

Double click the SQLIOSIM application in the BINN folder to launch the GUI.


Click SIMULATOR to open the Simulator. Simulator->Configure will open the Files and Configuration GUI as shown.

From here on it can be used to configure the .mdx and .ldx file locations, size  and max size and Increment parameters on the computer and test patterns for integrity testing can be carried out. Do not choose the existing .mdx and .ldx file locations as they will be overwritten during testing.


Thursday, January 16, 2025

Do you want to custom Install SQL Server 2022?

 SQL Server is a comprehensive software that works with a variety of Microsoft Software such as Reporting Services, EXCEL, 


It is assumed that you are coming here from the following link:

On executing SQL2022-SSEI-Dev.exe (4191 KB)file. This file gets displayed as shown.

Choose Custom edition.

Accept the target location, you may also choose. Clicking Install downloads the installation package.


  Installation begins.


SQL Server Installation Center opens as shown.

 Invest some time in going through this screen before proceeding further.

These are the detailed screens you encounter:

Planning



Installation


Maintenance


Tools

Resources 

Advanced   


Options

The installation center guides you through the process, step by step till you arrive at finishing the installation.

Here is a detailed description of installing SQL Server 2016 Developer Edition

used this installation in writing my books on SQL Server products.



Monday, October 07, 2024

It was a sad day at 3138 Waialae Avenue in Honolulu

 It was indeed a sad day at 3138 Waialae Avenue as a whole lot of owner's wishes were quashed by the AOAO Board and the first lot of trees were cut down. There were many activities leading up to this fateful day by the owners trying to persuade the AOAO board.

Vigil under the Monkeypod tree that is destined to be cut

Unable to stand the body language of the owners the AOAO Board resorted to hide behind a ZOOM meeting and the board took a vote to cut down the trees. Basically, a block of 6 voted to cutdown.

ZOOM meetings have become a way of life to carry out unsavoury acts in many human activities recently. This was yet another instance. 

For me personally, it was the loss of Oxygen and the tree removal company produced gasoline fumes for the whole of today's morning. I am totally opposed to cutting trees. They don't align with world view or the US's ambition to capture carbon. What cheap and better way is there than trees!

I went out to see the cutting of the trees along the walk and they had already started at the point nearest to the bridge on the Palolo stream. I am not sure at that point whether they were cutting or trimming the branches and I heard falling sound of branches.

https://www.youtube.com/watch?v=1lI9tDdQvCo

Here are some pictures:

I spoke to one worker from the tree removal company and asked him if he likes to bring down trees, he said he was not happy. 

https://www.youtube.com/shorts/dPqlKR1md3Y

Who is the most happiest today? Of course, the AOAO Board of Regency Park at 3138 Waialae on this day, 10/7/2024.

The tree right behind my unit was very tall and the worker had to work from top downwards. At the lower levels he had to make more cuts as the tree got a lot thicker.  I felt as if I have been cut, piece by piece. They produced a lot of noise and gasoline fumes. Dismembered pieces littered the walkway.

https://www.youtube.com/watch?v=LpuRg5paLT4

It was pitiful to watch the Fairy Terns fly agitated helter skelter but they kept coming back. Perhaps they had a nest. These birds are protected by the State of Hawaii.

https://www.youtube.com/shorts/PF8w-HXn7i4

https://www.fairytern.org.nz/

https://littleternproject.org.uk/about-little-terns/

But what comes next is too important. We need to stop it. AOAO has on its list many more trees to be chopped off. The next batch occupies a space where the trees are shielding residents from noise and pollution, providing shade without which the heat can be unbearable, and home to the Fairy Terns.

Look closely the blue tape around the trunk of a tree closeby. This area near the Chaminade University is the nesting ground of these birds.

The sad thing is that board has not provided details to the satisfaction of the residents. 

10/7/2024

To be continued...

Here is a TV clip of TV Coverage of Sign waving at Waialae Avenue and 3rd Avenue in Honolulu.

Mrs. Clevinger asked me to add the following to my blog or as a separate post. I decided to add it to the post to have a complete story.

Letter written by Deborah Clevinger to the Board of Directors

"Some of the Condominiums' Board of Directors (BoD) members feel the tree removal project is over and done with. Many, many owners, residents, and I'm sure a minority of BoD members disagree and are sickened by the continued destruction of our beautiful place we call home. 

It was stated that this is a "passionate topic". This is evident by the outpouring of residents' concerns, countless emails, letters, phone calls, texts that you have received from these concerned residents trying to get your attention to reconsider this very hurtful and I think, rash decision. I understand that BoD have many concerns that they are dealing with and I'm sure just wanted to move this "tree business" along. But this "business" is not like any of the other businesses as we all have been a witness to. That passion has not dissolved but only heightened with this continuing to cut down our healthy trees that make up our serene, quiet, cool, shady home. The mere topic of removing our trees has caused much stress, anguish, anxiousness,  sleeplessness, restlessness, and those cortisol levels to rise which  leads to an unhealthy life for all of us. Stress is not healthy as we hear from the news and our doctors.

BoD members, you live here also, you are our neighbors, some for a long time, some for not so long. We all share this home and not just we humans, but countless other living creatures that beautify and amplify the serenity of our environment that we share. I enjoy hearing the morning and evening bird songs. Silent Spring is an excellent book that describes what life is like without our feathered friends. What human careless actions can do to our environment and other living creatures.  The Lorax says, "I speak for the trees, for the trees have no tongues." The trees can not run from the chainsaw, can not fly away, but must stand as they are being cut down one small section at a time... what are we doing to our beautiful home??? 

We should be good stewards and teach our children that we care for nature and our environment and that we maintain it through pruning, sometimes feeding, fertilizing, using one of many other mitigation strategies to preserve our valuable friends
I learned that Native Americans call trees "the Standing People". The Native Americans are true conservationists - only using and taking a life, animal or plant, that was needed for them to survive. We can learn a great lesson from them - the great respect they had for their environment. They plan for 7 generations out. These huge canopy trees that you scheduled to cut down  will not be replaced in our children's lifetime. It takes decades for trees to gain the size of some of the trees that you have scheduled to cut down and already have cut down.

Please, please, find it in your heart to reconsider this very unhealthy decision that was made and amend it while there are still a few of the healthy canopy trees that are left of the 7 that were to be removed. 

Another beautiful healthy tree was cut down on Monday October 7, 2024. No more can it provide us the solace, shade, serenity that it did for so many years. The trees along the riverwalk will dramatically change the environment along, beside and in the stream. As the large eucalyptus tree was being cut down a fairy tern hovered above looking for its home...how heartbreaking. You can almost hear it asking..Where's my home? It was just here. Where am I to go now? Don't I matter to any of those humans who are taking away my home?

We are in the final hours of some of the "condemned" remaining trees. Please, look deep inside you as a human being, a fellow creature sharing this place we call home and make a decision to stop this useless slaughter of our beautiful trees.We are to be stewards of all of God's creatures. We alone are responsible for our own actions, not the actions of the group. It is said, "What is popular is not always what is right, and what is right is not always popular."

Thank you for reading to the end and please stop this slaughter of our precious trees.
Respectfully submitted,
Debb Clevenger



DMCA.com Protection Status