Saturday 30 September 2023

250 Voiceless TH Words, Phrases, Sentences, and Reading Passages

 

Initial Voiceless TH by Syllables


2
Syllable

thankful

thankless

thank you

theme song

thermal

thicken

thickness

thimble

thinking

thinner

third base

thirteen

thirty

thistle

thorny

thoughtful

thousand

thumbtack

thunder

Thursday

3
Syllable

thankfulness

thanksgiving

thank you card

thank you note

theater

theory

therapist

therapy

thermostat

thesaurus

thickener

thinkable

thinking cap

third baseman

thirty one - thirty eight

thoroughly

thunderbird

thundercloud

thunderstorm

4
Syllable

Thanksgiving Day

theatrical

therapeutic

thermometer

thundershower

5
Syllable

theologian

thermodynamic

Medial Voiceless TH by Syllables


2
Syllable

athlete

author

bathmat

bathtub

breathless

ethics

fifth grade

method

misthink

mouthwash

nothing

pathway

rethink

something

southeast

southward

toothache

toothbrush

truthful

youthful

3
Syllable

anything

athletic

authentic

authorize

authorship

bath towel

bath water

breath taking

coauthor

empathy

everything

marathon

math homework

pathetic

stethoscope

sympathize

sympathy

thirty third

tooth fairy

youth soccer

4
Syllable

arithmetic

athletic club

authority

group therapy

hypothesis

hypothetic

mathematics

mythology

pathologist

play therapy

South Africa

South Dakota

South Korea

South Pacific

sympathetic

5
Syllable

amphitheater

anesthesia

authenticity

South America

South Carolina

Final Voiceless TH by Syllables


2
Syllable

bear with

beneath

bike path

birdbath

blacksmith

dishcloth

dog tooth

goldsmith

hot bath

locksmith

mammoth

phone booth

steam bath

sweet tooth

toll booth

untruth

3
Syllable

aftermath

baby's breath

baby teeth

bubble bath

chicken broth

eightieth

fiftieth

fortieth

ninetieth

silversmith

sixtieth

tablecloth

thirtieth

twentieth

undergrowth

underneath

wisdom teeth

4
Syllable

Elizabeth

seventieth

telephone booth

5
Syllable



Initial Voiceless TH Phrases and Sentences


thank you note

empty thermos

thick meat

sneaky thief

sore thigh

thin slice

think often

third birthday

very thirsty

number thirteen

turn 30

sharp thorn

blue thread

number three

thumbs up

green thumbtack

noisy thunder

Thursday night

She left a thank you note on the computer.

I have hot chocolate in my thermos.

I like to eat thick steaks.

He is a car thief.

His thigh was sore from working hard.

We asked for thin sliced roast beef.

She goes to the park to think.

Today is her third birthday.

The boy was thirsty after running.

My address is 13 Park Place.

She turned thirty in May.

The rose bush has a sharp thorn on it.

WIll you grab the blue thread?

She hung a three on the side of her house.

She gave him a thumbs up.

I put a thumbtack on the map.

The thunder was loud.

The party is on Thursday night.

Medial Voiceless TH Phrases and Sentences


competitive athlete

mystery author

white bathrobe

big bathtub

birthday party

breathless runner

massive earthquake

healthy eating

green mouthwash

have nothing

black panther

big python

blue stethoscope

bad toothache

orange toothbrush

green toothpaste

short toothpick

youthful grandparents

The athlete entered the high jump event.

The author mostly wrote mysteries.

My bathrobe is nice and soft.

She wanted to clean her bathtub.

He invited his friends to his birthday party.

He ran so much he was breathless.

The earthquake destroyed the road.

They are eating healthy food.

Mouthwash makes your mouth feel fresh.

There is nothing in his pockets.

The panther is resting.

The python is wrapped around the tree.

The stethoscope is on the floor.

Her toothache was painful.

The dentist gave her a new toothbrush.

Toothpaste will help keep your teeth clean.

He has a toothpick in his mouth.

My grandparents are very youthful.

Final Voiceless TH Phrases and Sentences

hot bath

strong blacksmith

phone booth

see your breath

planet earth

fifth person

fourth place

nice locksmith

math problem

spotted moth

girl mouth

head north

under oath

long path

drive south

pretty teeth

white tooth

holiday wreath

He took a nice hot bath.

The blacksmith makes old-fashioned swords.

She made a call from the phone booth.

She could see her breath in the cold.

We live on planet earth.

She was the fifth person in line.

He came in fourth in the race.

The locksmith is fixing it.

She is working on a math problem.

The moth landed on the branch.

She has white teeth in her mouth.

The compass said to walk north.

She made an oath to tell the truth.

It is a long path through the woods.

They followed the sign to go south.

She has very white teeth.

The dentist pulled her tooth.

The door has a beautiful wreath on it.

Voiceless TH Reading Paragraphs


Thatch's Goals

The boy playing third base is good. His name is Thatcher, but his friends call him Thatch. His baseball team is called "Blue Thunder". He is from South Dakota and he's very athletic. 

Thatch plays third base on the baseball team. He also plays basketball, tennis, and youth soccer - not bad for a thirteen-year-old. He has been playing sports since he was three. Thatch wants to play one or all of the sports professionally someday. 

Last month I asked him if he had thought about which sport he wanted to play. 

"I'll play anything if I can get paid to do it," he said. 

I told him I thought he would be a pro baseball player and he gave me a thumbs up. 

He is on the right path if playing pro sports is his dream. He was voted third for the best player in the state and tenth for best player in the region three weeks ago. His parents think he will play tennis, but said they don't have the authority to make that decision. 

The earth has a lot of great sports players and I think Thatch can play with the best of them. I hope nothing gets in his way. It will be fun to say I knew him when he was only thirteen.

Exploding Cake

Thad liked to prank and scare people. He played the most jokes on people when he was in the fifth grade. He put thumbtacks on chairs, thickener in drinks, and told the class that their pet python had escaped. His favorite pranks were to turn the thermostat down really cold to try and freeze students out and to replace student's soda with mouthwash. 

A few days ago, Thea brought in a cake to celebrate her birthday. Somehow, Thad got a balloon inside of it so when the teacher tried to cut the cake, it exploded all over everyone. 

Thad had a lot of fun thinking of new ways to prank his classmates. His teacher, Ms. South, didn't think it was healthy. She knew Thad was a very thoughtful writer. He was also very smart in math. She thought his writing was so good that he could become an author someday. 

Overall, Thad's grades were in the top three percent of his class. Ms. South didn't want Thad's talent and thoughtfulness go to waste. She thought about what methods she could use to help him focus in class and not cause so much trouble. Thad wanted to be in theater after he graduated high school. Ms. South told Thad that he could be in theater after he graduated. 

"You're so smart! I think a thousand theaters would want you to work for them, but you have to stop the pranks," she said. Thad started to rethink his actions and what that would mean for him in the future. He apologized to the class and Ms. South, and said he would not prank anyone anymore. 

Turning Thirty

Thelma's birthday was on Thursday and she couldn't decide how to celebrate. She was turning thirty and wanted this birthday to be special. 

One idea she had was going to a steak house. A thick juicy steak would be part of a perfect meal for her birthday. Going to the spa and getting a massage would be therapeutic. Of course, that can be expensive, so if necessary she could just take a warm bubble bath. 

Something she really wanted to do was sit outside and eat popcorn during a thunderstorm, but she couldn't control the weather, so she would keep that as a backup plan. She had always wanted to visit South America too, but would have to save her money for a trip like that. Thelma thought about a short trip she could take and remembered the zoo was close by. 

"The zoo had pythons, panthers, and a new mammoth exhibit, and those would be fun to see," she thought. All of this thinking was taking her strength. Thelma only had three hours of sleep last night because she had been up reading a case study for her ethics class. A moth had flown in her house and distracted her while reading. The distraction had kept her up later than she planned. 

Thelma thought for a minute and decided that she would take a nap. "Everything will fall into place on Thursday," she thought, "As long as I know what I want to do, everything will work out." She closed her eyes, her breath softened, and she fell asleep on her couch. 




This list of functional words was professionally selected to be the most useful for a child or adult who has difficulty with producing the "Voiceless TH" sound.

We encourage you to use this list when practicing at home.

Doing home practice will help your child make much faster progress toward correct production.

Speech-Language Pathologists (SLPs) are only able to see students/clients 30-60 mins (or less) per week.

This is not enough time for your child to overcome an articulation disorder with the "Voiceless TH" sound. But with high caseloads


More reference: https://www.home-speech-home.com/voiceless-th-words.html


Allow Google Chrome to access your camera

 On computers using Chrome, you must allow the browser to access your camera.

  1. Enter chrome://settings/content/camera in the Chrome address bar.
  2. Disable the setting "Ask before accessing."
  3. Under "Allow," delete https://meet.google.com:443 if present.
  4. Refresh the Google Meet page and grant camera access when prompted.

Sunday 17 September 2023

How to get only selected checkboxes on button click in a RecyclerView android java. Explain with example

 To get only the selected checkboxes in a RecyclerView when a button is clicked in Android using Java, you can follow these steps:

  1. Create a RecyclerView in your XML layout file.
  2. Create a custom adapter for your RecyclerView that includes a checkbox for each item.
  3. Track the selected state of checkboxes in your data model.
  4. Implement the logic to update the selected state of checkboxes when they are clicked.
  5. Implement the logic to retrieve the selected checkboxes when the button is clicked.

Here's an example:

  1. Create your data model:

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

public class MyItem {

    private String itemName;

    private boolean isSelected;


    public MyItem(String itemName) {

        this.itemName = itemName;

        this.isSelected = false;

    }


    public String getItemName() {

        return itemName;

    }


    public boolean isSelected() {

        return isSelected;

    }


    public void setSelected(boolean selected) {

        isSelected = selected;

    }

}

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

Create a custom RecyclerView adapter:

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

public class MyAdapter extends RecyclerView.Adapter<MyAdapter.ViewHolder> {


    private List<MyItem> itemList;


    public MyAdapter(List<MyItem> itemList) {

        this.itemList = itemList;

    }


    @NonNull

    @Override

    public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {

        View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_layout, parent, false);

        return new ViewHolder(view);

    }


    @Override

    public void onBindViewHolder(@NonNull ViewHolder holder, int position) {

        MyItem item = itemList.get(position);

        holder.itemNameTextView.setText(item.getItemName());

        holder.checkBox.setChecked(item.isSelected());


        holder.checkBox.setOnCheckedChangeListener((buttonView, isChecked) -> {

            item.setSelected(isChecked);

        });

    }


    @Override

    public int getItemCount() {

        return itemList.size();

    }


    public List<MyItem> getSelectedItems() {

        List<MyItem> selectedItems = new ArrayList<>();

        for (MyItem item : itemList) {

            if (item.isSelected()) {

                selectedItems.add(item);

            }

        }

        return selectedItems;

    }


    public class ViewHolder extends RecyclerView.ViewHolder {

        public TextView itemNameTextView;

        public CheckBox checkBox;


        public ViewHolder(View itemView) {

            super(itemView);

            itemNameTextView = itemView.findViewById(R.id.itemNameTextView);

            checkBox = itemView.findViewById(R.id.checkBox);

        }

    }

}

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

Create your RecyclerView item layout (item_layout.xml) with a TextView and a CheckBox:

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

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

    android:layout_width="match_parent"

    android:layout_height="wrap_content"

    android:orientation="horizontal">


    <TextView

        android:id="@+id/itemNameTextView"

        android:layout_width="wrap_content"

        android:layout_height="wrap_content"

        android:layout_gravity="center_vertical"

        android:textSize="16sp" />


    <CheckBox

        android:id="@+id/checkBox"

        android:layout_width="wrap_content"

        android:layout_height="wrap_content"

        android:layout_gravity="center_vertical" />

</LinearLayout>


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

In your activity or fragment, set up the RecyclerView and button click listener:

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

public class MyActivity extends AppCompatActivity {


    private RecyclerView recyclerView;

    private MyAdapter adapter;

    private List<MyItem> itemList = new ArrayList<>();


    @Override

    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_my);


        recyclerView = findViewById(R.id.recyclerView);

        recyclerView.setLayoutManager(new LinearLayoutManager(this));


        // Create sample items

        itemList.add(new MyItem("Item 1"));

        itemList.add(new MyItem("Item 2"));

        itemList.add(new MyItem("Item 3"));


        adapter = new MyAdapter(itemList);

        recyclerView.setAdapter(adapter);


        Button button = findViewById(R.id.button);

        button.setOnClickListener(v -> {

            // Get selected checkboxes

            List<MyItem> selectedItems = adapter.getSelectedItems();

            for (MyItem item : selectedItems) {

                Log.d("Selected Item", item.getItemName());

            }

        });

    }

}


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

In this example, when the button is clicked, the getSelectedItems method of the adapter is called to retrieve the selected checkboxes, and their corresponding items are logged to the console. You can modify this logic to suit your specific requirements or perform other actions with the selected items.

Friday 15 September 2023

no String-argument constructor/factory method to deserialize from String value

 The Cause

Before diving deep into the exception, let’s understand what its stack trace means.

Typically, “no String-argument constructor/factory method to deserialize from String” tells us that Jackson fails to find a suitable constructor or factory method to deserialize a JSON string into an object.

In short, the exception occurs when something goes wrong while deserializing a JSON string.

The leading cause behind it is trying to perform deserialization using double quotes ”…” instead of bracelets {…}.

Jackson interprets the double quotes as a string. So it expects the target object to have a string argument constructor or a factory method. Hence the error no String-argument constructor/factory method.

Another reason would be accidentally using the convertValue() method instead of readValue().

Reproducing no String-argument constructor/factory method to deserialize from String

Now that we know what the stack trace means, let’s see how to reproduce it in practice.

For instance, let’s consider the Person class:

    
        public class Person {

            private String firstName;
            private String lastName;
            private Email email;

            public String getFirstName() {
                return firstName;
            }
            public void setFirstName(String firstName) {
                this.firstName = firstName;
            }
            public String getLastName() {
                return lastName;
            }
            public Email getEmail() {
                return email;
            }
            public void setEmail(Email email) {
                this.email = email;
            }
        }
    

Next, we are going to create the Email class:

    
        public class Email {
            private String account;
            public String getAccount() {
                return account;
            }
            public void setAccount(String account) {
                this.account = account;
            }
        }
    

Now, let’s add a static method to deserialize a JSON string into a Person object:

    
        public static void deserializeJsonString() {
            ObjectMapper mapper = new ObjectMapper();
            String personJson = "{" + 
                                    "\"firstName\": \"Azhrioun\"," + 
                                    "\"lastName\": \"Abderrahim\"," + 
                                    "\"email\": \"gaccount@gmail.com\""  +  
                                "}";

            try {
                Person person = mapper.readValue(personJson, Person.class);
                System.out.println("Email Account: " + person.getEmail().getAccount());
            } catch (JsonProcessingException e) {
                e.printStackTrace();
            }
        }
    

As we can see, we used a string value to denote the JSON property email.

Finally, let’s execute the method and take a close look at the stack trace:

    
        com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of ...
        no String-argument constructor/factory method to deserialize from String value ('gaccount@gmail.com')
    

As shown above, Jackson fails with the exception because it could not convert the specified JSON value gaccount@gmail.com, which is a string, into an object of the Email type.

This behavior makes sense. In order to perform deserialization, Jackson needs to call a constructor which takes String email as an argument.

Fixing the Exception

The easiest solution would be defining a string argument constructor in our class Person.

This constructor will be used by Jackson later to handle the JSON deserialization.

Here’s an example:

    
        public Person(@JsonProperty("firstName") String firstName, 
                      @JsonProperty("lastName") String lastName, 
                      @JsonProperty("email") String email) {
            this.firstName = firstName;
            this.lastName = lastName;
        
            Email emailObj = new Email();
            emailObj.setAccount(email);
            this.email = emailObj;
        }
    

We used the @JsonProperty annotation to denote the property names in the given JSON.

As we can see, we created a new Email object. Then, we used the passed string argument to set the account field.

Alternatively, we can annotate a custom method that accepts a string parameter with @JsonProperty(“email”).

So, let’s see it in action:

    
        @JsonProperty("email")
        public void deserializeEmail(String email) {
            Email emailObj = new Email();
            emailObj.setAccount(email);
            this.email = emailObj;
        }
    

That way, we tell Jackson to call deserializeEmail() when deserializing the JSON property “email”: “gaccount@gmail.com”.

Another approach would be using a static factory method instead of the string argument constructor:

    
        @JsonCreator
        public static Person of(@JsonProperty("firstName") String firstName, 
                                @JsonProperty("lastName") String lastName, 
                                @JsonProperty("email") String email) {
            Person person = new Person();
            person.firstName = firstName;
            person.lastName = lastName;

            Email emailObj = new Email();
            emailObj.setAccount(email);
            person.email = emailObj;

            return person;
        }
    

Simply put, @JsonCreator marks the factory method defining how to deserialize the JSON. It’s a good practice when the specified JSON doesn’t match the target class.

Thursday 14 September 2023

Design a compute solution

Requirements

Tailwind Traders would like to migrate their product catalog application to the cloud. This application has a traditional 3-tier configuration using SQL Server as the data store. The IT team hopes you can help modernize the application. They have provided this diagram and several areas that could be improved.

compute architecture

  • The frontend application is a .NET core-based web app. During peak periods 1750 customers visit the website each hour.

  • The application runs on IIS web servers in a front-end tier. This tier handles all customer requests for purchasing products. During the latest holiday sale, the front-end servers reached their performance limits and page loads were lengthy. The IT team has considered adding more servers, but during off hours the servers are often idle.

  • The middle tier hosts the business logic that processes customer requests. These requests are often for help desk support. Support requests are queued and lately the wait times have been very long. Customers are offered email rather than wait for a representative. But many customers seem frustrated and are disconnecting rather than wait. Customer requests are 75-125 per hour.

  • The back-end tier uses SQL Server database to store customer orders. Currently, the back-end database servers are performing well.

  • While high availability is a concern, due to legal requirements the company must keep all the resources in a single region.

Tasks

  • Front-end tier. Which Azure compute service would you recommend for the front-end tier? Explain why you decided on your solution.

  • Middle tier. Which Azure compute service would you recommend for the middle tier? Explain why you decided on your solution.

How are you incorporating the Well Architected Framework pillars to produce a high quality, stable, and efficient cloud architecture?






Design a network infrastructure solution

 Requirements:

As the Tailwind Traders Enterprise IT team prepares to define the strategy to migrate some of company’s workloads to Azure, it must identify the required networking components and design a network infrastructure necessary to support them. Considering the global scope of its operations, Tailwind Traders will be using multiple Azure regions to host its applications. Most of these applications have dependencies on infrastructure and data services, which will also reside in Azure. Internal applications migrated to Azure must remain accessible to Tailwind Traders users. Internet-facing applications migrated to Azure must remain accessible to any external customer.

To put together the initial networking design, the Tailwind Traders Enterprise IT team chose two key applications, which are representative of the most common categories of workloads that are expected to be migrated to Azure.

Design - BI enterprise application

BI enterprise application architecture

  • An internal, Windows-based, three-tier business intelligence (BI) enterprise application with the front-end tier running IIS web servers, the middle tier hosting .NET Framework-based business logic, and the back-end tier implemented as a SQL Server Always On Availability Group database.

  • This application is categorized as mission-critical and requires high availability provisions with the availability SLA of 99.99% and disaster recovery provisions, with 10-minute RPO and 2-hour RTO.

  • To provide connectivity to internal apps migrated to Azure, Tailwind Traders will need to establish hybrid connectivity from their on-premises datacenters. The Enterprise IT group already established that such connectivity will be implemented by using ExpressRoute circuit from its main Seattle datacenter, however, at this point it is not clear yet what would be failover solution in case that circuit becomes unavailable. The Tailwind Traders CFO wants to avoid paying for another, redundant ExpressRoute circuit.

  • There are additional considerations that apply to on-premises connectivity to internal apps migrated to Azure. Since the Tailwind Traders Azure environment will consist of multiple subscriptions and, effectively, multiple virtual networks, to minimize cost, it is important to minimize the number of Azure resources required to implement core networking capabilities. Such capabilities include hybrid connectivity to on-premises locations as well as traffic filtering. Incidentally, this need to minimize cost aligns with the Information Security and Risk requirements, which state that all traffic between on-premises locations and Azure virtual networks must flow via a single virtual network, which will be hosting components responsible for hybrid connectivity and traffic filtering.

  • As per requirements defined by the Tailwind Traders Information Security and Risk teams, all communication between Azure VMs in different tiers that are part of the same application must allow only the ports required to run and maintain the application. However, due to IP address space limitations, it might not be possible to allocate dedicated subnets to each tier. Enterprise IT group needs to identify the optimal way to configure source and destination for traffic filtering that would not require directly referencing IP addresses or IP address ranges.

Tasks - BI enterprise application

  1. Design a 3-tier network solution for the BI Application. Your design could include Azure ExpressRoute, VPN Gateways, Application Gateways, Azure Firewall, and Azure Load Balancers. Your networking components should be grouped into virtual networks and network security groups should be considered. Be prepared to explain why you chose each component of the solution.

  2. Based on your architect solution from the compute case study how would this impact the network design? Would you need any additional networking resources to secure access to the modernized application? Would you no longer need some of the recommended solutions implemented in your original network design?

  3. Based on your storage (relational) case study how would you update the network design to secure access to the storage account and ensure only select users have access to the storage account?

  4. Based on the modernizing of the SQL backend how do you plan to enable pragmatic access to the data base so that the front end has no hard coded secrets in its code base?

How are you incorporating the Well Architected Framework pillars to produce a high quality, stable, and efficient cloud architecture?





Saturday 9 September 2023

I have an api gives response in xml format. I have again one "EmployeeModel" class with properities Id,Name,Mobile, IsActive. How to use Jackson XML library to call API using Retrofit in android java. Explain with example.

 To use Jackson XML library with Retrofit in Android Java, you will need to do the following:

  1. Add the Retrofit and Jackson dependencies to your project:

implementation 'com.squareup.retrofit2:retrofit:2.9.0' implementation 'com.squareup.retrofit2:converter-jackson:2.9.0'
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.12.3'

  1. Create a POJO class that matches the XML response structure. In your case, it would be the EmployeeModel class with properties Id, Name, Mobile, and IsActive.

public class EmployeeModel { @JsonProperty("Id") private int id; @JsonProperty("Name") private String name; @JsonProperty("Mobile") private String mobile; @JsonProperty("IsActive") private boolean isActive; // getters and setters }

  1. Create a Retrofit interface that defines the API endpoints you want to call. In this example, we'll call a GET endpoint that returns a list of EmployeeModel objects:

public interface EmployeeApi { @GET("employees") Call<List<EmployeeModel>> getEmployees(); }

  1. Create a Retrofit instance and configure it to use the Jackson XML converter:

Retrofit retrofit = new Retrofit.Builder() .baseUrl("https://example.com/api/") .addConverterFactory(JacksonConverterFactory.create(new XmlMapper())) .build(); EmployeeApi employeeApi = retrofit.create(EmployeeApi.class);

  1. Call the API endpoint using the Retrofit instance:

Call<List<EmployeeModel>> call = employeeApi.getEmployees(); call.enqueue(new Callback<List<EmployeeModel>>() { @Override public void onResponse(Call<List<EmployeeModel>> call, Response<List<EmployeeModel>> response) { if (response.isSuccessful()) { List<EmployeeModel> employees = response.body(); // Do something with the employees } else { // Handle error } } @Override public void onFailure(Call<List<EmployeeModel>> call, Throwable t) { // Handle error } });

This example assumes that the API endpoint returns a list of EmployeeModel objects in the XML format that Jackson can parse. If the API response is in a different format or structure, you will need to modify the POJO class and Retrofit interface accordingly.