fabiochiu/medium-articles huggingface dataset:
Spring Boot & RabbitMQ
Tags: Rabbitmq, Spring Framework, Spring, Spring Boot

Simple Spring Boot & RabbitMq configuration

Let’s start with YAML configuration

spring:

rabbitmq:

host: localhost

port: 5672

username: guest

password: guest myapp:

rabbitmq:

exchange-name: my-app-exhange-name

Create a new class named RabbitMqConfiguration

@Configuration

public class RabbitMqConfiguration { @Value("${myapp.rabbitmq.exchange-name}")

private String exchangeName; @Bean

Queue someQueue() {

return new Queue("someQueue", false);

} @Bean

Queue anotherQueue() {

return new Queue("anotherQueue", false);

} @Bean

public DirectExchange directExchange() {

return new DirectExchange(exchangeName);

} @Bean

Binding someBinding(final Queue someQueue, DirectExchange exchange) {

return BindingBuilder.bind(someQueue).to(exchange).with("some-router");

} @Bean

Binding anotherBinding(final Queue anotherQueue, DirectExchange exchange) {

return BindingBuilder.bind(anotherQueue).to(exchange).with("another-router");

} }

Let’s listen these queues. Create a new class named SomeQueueListener

@Service

public class SomeQueueListener {



@RabbitListener(queues = "someQueue")

public void handleSomeJob(String workId) {



System.out.printf("Working on SomeQueue... %s%n", workId);

}



}

Then AnotherQueueListener

@Service

public class AnotherQueueListener {



@RabbitListener(queues = "anotherQueue")

public void handleAnotherJob(String workId) {



System.out.printf("Working on anotherQueue... %s%n", workId);

}



}

Now we need a producer to send job to rabbit’s queue. Create a new class named SomeJobProducer

@RequiredArgsConstructor // I like lombok

@Service

public class SomeJobProducer {



private final RabbitTemplate rabbitTemplate; @Value("${myapp.rabbitmq.exchange-name}")

private String exchangeName;



public void sendToQueue(String workId) {



rabbitTemplate.convertAndSend(exchangeName, "some-router", workId);

}



}

Then AnotherJobProducer

@RequiredArgsConstructor

@Service

public class AnotherJobProducer {



private final RabbitTemplate rabbitTemplate; @Value("${myapp.rabbitmq.exchange-name}")

private String exchangeName;



public void sendToQueue(String workId) {



rabbitTemplate.convertAndSend(exchangeName, "another-router", workId);

}



}

Here we go

@RequiredArgsConstructor

@Service

public class MyService{ private final SomeJobProducer someJobProducer;

private final AnotherJobProducer anotherJobProducer; void doSomeWork(String workId){

someJobProducer.sendToQueue(workId); } void doAnotherWork(String workId){

anotherJobProducer.sendToQueue(workId); }



}

I tried to keep it as simple as I can, I’m sure there are many people who can explain the details better than me.
Aspect Oriented Programming Nedir? — Spring AOP
By: Mehmet Demircan
Tags: Aspect, Aop, Spring, Java, Programming

Introduction to Pointcut Expressions in Spring | Baeldung

In this tutorial we will discuss the Spring AOP pointcut expression language. We will first introduce some terminology…
Dynamic Database connection (On-Prem) with MongoDB in a Microservice Environment
By: Utku Apaydin
Tags: On Premise, Microservices, Spring, Mongodb, Java

Scenario: We have a SaaS application with multiple microservice. Only one microservice needs to be dynamically configured for CRUD tasks. Every tenant can choose where to save their data at the registration phase of the system.

High Level design of the requirement

As you can see we need to handle the direction of incoming from Tenant 2 for Microservice 1. In the system, when I create a service to service request, any microservice passes the user information to another. So every service has access to the request owner’s tenant information. This will allow us to dynamically update any microservice MongoTemplate which allow us to configure request direction for collections in MongoDB.

To Achieve this we need to create our own MongoTemplate and write every request for related collection. It is a little bit work but in the end we will be able to redirect requests for that collection dynamically.

The following steps are the solution I created for this problem;

Tracking Tenant Configuration

Microservice 1 Should keep trach of the tenant configurations, I used a map (tenantMongoTemplateMap)to keep trach of the current tenant configuration on the memory, Map

As you can see I am mapping MongoTemplates for every Tenant (including normal tenants whom allows us to keep their data in our cloud). This code snipped shows how I managed to override the MongoTemplate for Car collection. The default URI is used if the tenant is not configured for on premise database.

Now we need to configure Spring for our custom MongoTemplate

As you can see I am using default key for non-configured tenants.

Handling Request and Updating Tenant Context

Every request should be handled, and MongoTemplate should be updated. So we need to check every user’s tenant information. I am using the following TenantContext to keep track of the request’s target.

Since we are using ThreadLocal, we can use it in our Controller to update tenant information.

After this we do not have to do anything else other than calling the related method from the service. Eventually, the request will end up at our CarRepositoryImpl.

CarRepositoryImpl and CustomMongoTemplate

Since we are using custom MongoTemplate, we can’t use repository interface every query should be created manually. As you can see below, I autowired the MongoTemplate to my repository implementation. Since my CarMongoTemplate is an extension of MongoTemplate and i configured the spring to create a bean from that everything just works!
Haiku Season
By: Mirela Popoveniuc
Tags: Haiku, Haiku Poetry, Weather, Spring, Haiku This

Photo by Connor Moyle on Unsplash

Spring is a state of

mind you choose to bring over, as

vacation and love
利用Spring Cache優雅的使用caches
By: Bruce Hsu
Tags: Spring Cache, Spring Boot 2, Spring, Java, Cache

I'm a Java engineer, eager to learn new skills, technique and willing to take challenges.
Pada Musim Semi
By: Tulisan Ama
Tags: Cerita Pendek, Cerpen, Fiksi, Bahasa Indonesia, Spring

the page of my imaginations
Server Sent Events with Kotlin + Redis
By: Jose Figueredo
Tags: Redis, Sse, Server Sent Events, Spring, Kotlin

In this article I will show you one simple approach to understand SSE using the programming language Kotlin and Redis channels

Some foundation first:

SSE is a standard describing how servers can initiate data transmission towards clients once an initial client connection has been established. They are commonly used to send message updates or continuous data streams to a browser client and designed to enhance native, cross-browser streaming through a JavaScript API called EventSource, through which a client requests a particular URL in order to receive an event stream.

The Server-Sent Events EventSource API is standardized as part of HTML5 by the W3C

Polling is when you want some specific data or state from the server and it isn’t available yet so you have to request over and over until it is available.

Cons of polling

– Overcharges the server load

– Overload networks with useless data because the polling will send data even if they didn’t change

– Consumes 75% to 95% more of the end-user battery than pushing

– Requires 3 round-trips (TCP SYN, SSL and Data)

Use cases

Server/product availability

Prices

Social

Chat

Game scores

Trading

Dashboards

How about Web Sockets?

Web Sockets has many advantages but in some use cases the use of SSE is advised.

When not to use Web Sockets

When you don’t need bi direction

When you need to automatically recover from disconnections: SSE has built-in support for re connection and event-id

When you need error handling at protocol level: SSE are mono directional from server to client with http protocol with error handling standards, Web Sockets use https protocol

When performance is an issue: SSE provides better performance

When you are behind a corporate firewall: SSE has no trouble with corporate firewalls doing packet inspection

How does SSE works ?

A client subscribes to a stream from a server and the server will send messages (“event-stream”) to the client until the server or the client closes the stream. It is up to the server to decide when and what to send the client.

The event-stream is a simple stream of text data which must be encoded using UTF-8. Messages in the event-stream are separated by a pair of newline characters (“

”).

The following field names are defined in the specification:

Event: The event’s type. It will allow you to use the same stream for different content. A client can decide to “listen” only to one type of event or to interpret differently each event type.

Data: The data field for the message. You can put consecutive “data” lines.

ID: ID for each event-stream. Useful to track lost messages.

Retry: The time to use before the browser attempts a new connection after all connections are lost (in milliseconds).

Browser Support
Spring Reactor Operators
By: Bruce Hsu
Tags: Spring Boot, Reactor, Spring, Java, Rxjava

I'm a Java engineer, eager to learn new skills, technique and willing to take challenges.
REST API using Kotlin Coroutines, Spring Webflux and R2DBC
By: Tien Do Nam
Tags: Spring Boot, R2dbc, Kotlin Coroutines, Spring, Kotlin

REST API using Kotlin Coroutines, Spring Webflux and R2DBC

Step 1: Environment

Please prepare your environment with the following technologies:

Java 8 or newer

PostgreSQL

I recommend to install pgAdmin (which comes with the Windows PostgreSQL installer). It’s a great tool to manage your database during development!

The PostgreSQL configuration in this example:

database: test

user name: test

user password: 123456

Step 2: Initialize Project

Let’s go to start.spring.io and use the project builder.

start.spring.io

As you can see in the screenshot above, you must select Spring Reactive Web, Spring Data R2DBC, PostgreSQL Driver and Flyway Migration.

It is up to you to choose Java 8, Java 11 or even newer. I prefer Java 11.

Click on “Generate” and open your project with IntelliJ.

Step 3: Database Configuration

Let’s create the database schema.

src/main/resources/db/migration/V1__Initial.sql

Now set the credentials.

Important: These are credentials for your dev environment, set the real credentials via environment variables, do not put them in your source code!

src/main/resources/application.properties

Tell Flyway to use these credentials (unfortunately, it cannot do it automatically at the time of writing).

src/main/kotlin/com/example/demo/FlywayConfig.kt

Step 4: Initial Test

Is everything correct? Run the gradle command bootRun

Run server

PS: I recommend to use pgAdmin to check the results. Otherwise use the terminal.

Step 5: Logic

Let’s write the actual code!

src/main/kotlin/com/example/demo/database/Person.kt

This is your model and repository. You can write them in separate files or do it in one file. If your project is large, then I recommend to structure your project in model/ and repository/.

src/main/kotlin/com/example/demo/Dto.kt

Dto means Data Transfer Object. It is useful to hide your model and only communicate with DTOs to the outside world. Especially important if you are handling with passwords!

Usually you should also write your responses as DTOs but in this case I leave them out. So only requests are using DTOs in this example.

This is your controller. The controller handles the requests and returns the responses.

Step 6: Test your API

I recommend Insomnia to test your REST API. It’s a great and simple tool :)

Insomnia: Create a person

Insomnia: Get all people

Source Code

https://github.com/Tienisto/spring-boot-kotlin/tree/master/rest-r2dbc-flyway
Java — Spring — overview. Why Spring
By: Tinghuan Wang
Tags: Coding, Code, Spring, Java

Learn more. Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Make Medium yours. Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore
gradlew bootRun with spring boot
Tags: Gradle, Intellij, Spring, Spring Boot

the default `gradlew bootRun` command is not always working out. The latest error message I got is

as an alternative, the plain build works, even though with a caveat:

caveat: the built out package has been put under libs folder, instead of what the bootScripts is expecting ( lib ). So point to the right path will work.

PS C:\Users\...> .\build\bootScripts\cli.bat

Error: Unable to access jarfile C:\Users\...\build\bootScripts\..\lib\cli-0.0.1-SNAPSHOT.jar

PS C:\Users\...\build> java -jar .\libs\cli-0.0.1-SNAPSHOT.jar

2020-08-23 10:08:55.583 INFO 53436 --- [ main] : Starting Application on ....

2020-08-23 10:08:56.493 INFO 53436 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.

2020-08-23 10:08:56.580 INFO 53436 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 72ms. Found 3 JPA repository interfaces.

2020-08-23 10:08:57.191 INFO 53436 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2020-08-23 10:08:57.823 INFO 53436 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
Java — Spring — 設定開發環境
By: Tinghuan Wang
Tags: Coding, Code, Spring, Java

Learn more. Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Make Medium yours. Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore
spring aop annotation
Tags: Spring, Aop

when annotating an advice method with the pointcut, spring throws an error

error Type referred to is not an annotation type: LogCommands

Turns out spring is picking up the annotation name and using it for reflection and then load the interface for AOP stuff.

So the solution is to mark the type as complete full interface name, (unless its within same package)

for example, instead of

@Before("@annotation(LogCommands)")

public void logCommands(JoinPoint joinPoint) throws Throwable {

String command = joinPoint.getSignature().getName();

String input = Arrays.stream(joinPoint.getArgs()).toString();

.....

}

a FQN make it work
[spring] spring 의 장점은 무엇일까
Tags: Spring, Java

Learn more. Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Make Medium yours. Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore
[Spring MVC] @SessionAttributes remove 如何移除@SessionAttributes Session物件
Tags: Study, Code, Learning, Spring, Java

SessionStatus (Spring Framework 5.3.1 API)

Simple interface that can be injected into handler methods, allowing them to signal that their session processing is…
[JAVA] 什麼是反射 ? JAVA運行與反射觀念
Tags: Code, Reflections, Spring, Java, JavaScript

因此一個class物件也表示一個類別的特定屬性

只透過java.lang.Class類無法取得類別所有訊息，所以要在加載

java.lang.Class 類無法描述所有類別的訊息因此要載入

java的java.lang.reflect 包內的類別 提供更多方法

import java.lang.reflect.*;

將java類中的各種屬性映射成對應的java類

怎麼用反射

創建class 類別的物件有三種方法

forName() method of Class class

getClass() method of Object class

the .class syntax

//透過類別名稱產生class物件 Class c = Class.forName(className); Object obj = c.newInstance();

呼叫java的java.lang.reflect 類別方法
Finding home abroad
By: Anna Cley
Tags: Home Sweet Home, Thanksgiving, International, Travel, Friendship

Finding home abroad

In France where I grew up, Thanksgiving exists only on screens in the American TV shows. We don’t really understand what it is, but we know it is important on the other side of the ocean.My first Thanksgiving experience occured a few years ago after moving to the US. It was a “Friendsgiving” and felt more like a party than what I had seen on TV. In fact I remember more the joint I tried that night, and the ash that burned my vocal cords, followed by a severe cough… Needless to say, I never tried again. The joint anyway.

Thanksgiving came around the year after, and the year after that year… I got invited last minute by someone I had just met. I remember how thrilled and nervous I was altogether. I almost turned back home when I arrived at the address. I had brought a nice cake from a French bakery in Manhattan, not knowing if I was doing it right. I received the warmest welcome you can imagine. Yet, I was still nervous, and because of my anxiety, I could not remember if I had unplugged the iron at my place.

After greeting everyone and thanking them for inviting me, I did turn back home to shamefully unkowledge that my iron was unplugged — and cold — indeed, wasting over an hour of time in New York traffic. I returned to the address a lot more relaxed, as I now knew what was expecting me: a safe and warm home.

In fact, it was the most beautiful celebration I’ve ever experienced. Everyone had brought some home-made meal. They were curious about one another, curious about me, and talked to each other with great care and an open heart. Then, as we were all sitting around a colorful table of tasty smells, the “turn of gratitude” started. We all shared what we were grateful for this year. It was extremely special, and a rare moment of communion.

That night, I made some very important connections. People who showed me another way of living. Friendships that are still in my life today.

Grand Central Terminal, NYC, January 2014 — First time in the USA

This year, Thanksgiving was not the same. I missed my friends, and all those who became my American family over the years. Unknowingly, they made me a better version of myself.

In the midst of this chaos, I counted my blessings. I am so lucky and thankful for the incredible human beings that I met over the years. Thank you for seeing me, thank you for your beauty, for your warmth, for your love. I am thankful for all the strangers who made me feel welcome and home even if I am a foreigner everywhere I go.

I am thankful for the life that runs on this planet; For the sun and the water; For the singing birds, the curious deers and the chipmunks that always make me smile; For the creativity of humanity, music, arts, and sciences; For the heat when it’s cold and the cooler in summertime; For the wonderful opportunity we have to co-create our world, to connect to each other at anytime and all over the world; For all the lightworkers of the world who nurture and share their gift to make the world a better place.

THANK YOU for spending this very moment with me.
Fuck Your Land Acknowledgment­­ — Part 2
By: Howie Echo-Hawk
Tags: 1984, Thanksgiving, Native Americans, Land Acknowledgement

Ok, I wasn’t gonna write this, cuz I genuinely thought no one would be proud of this, but boooooy was I wrong lol.

Also let me be clear, this is not a callout of the native folx who participated in this, because clearly this is a system wide cultural thing happening here, and also I am on the side of all Native people forever, cuz my liberation is their liberation.

Also, I love giant balloons, so don’t @ me.

Shout out to capitalism y’all.

That said, a land acknowledgment at the Macy’s Thanksgiving Day parade is about as useful as A LAND ACKNOWLEDGMENT AT THE MACYS THANKSGIVING DAY PARADE.

“Who controls the past controls the future. Who controls the present controls the past. Please enjoy the parade.” -1984

There is nothing more dystopic than eight Native Americans doing a land acknowledgment on national television with a gargantuan turkey in a pilgrim hat looming overhead, like some scene out of “Brazil.” This is some “1984” shit y’all, with a giant turkey as Big Brother.

What the fuck does it mean in a time where we are shouting “Land Back” from the top of our lungs, that we would lend legitimacy to a department store and a holiday that routinely fucks us? Is Macys gonna give their land back? Probably not, it seems they are too busy inflating a giant Snoopy balloon.

“War is peace. Freedom is slavery.

Ignorance is strength. Thanksgiving is fun.” -1984

We have made ourselves so palatable now that they are serving us with cranberry sauce next to the gravy boat. This is why I wrote “Fuck your land acknowledgment,” to begin with. The writing was on the wall. And it read: “Celebration is mandatory, enjoyment will be had, do not look behind the curtain, there’s genocide back there and it’s a real bummer.”

I know for a fact, that when we started doing land acknowledgments, we were doing them with purpose, with the idea that they would contribute to our fight to reclaim our land and our ways. It was an experiment, to see if we could formalize a process that used to be inherent into a system that routinely rejects us.

The experiment has failed.

I do not know who could look at this and truly think that this, this is progress. We replicate the settlers myth for them while we hope for scraps from their dinner table.

“Doublethink means the power of holding two contradictory beliefs in one’s mind simultaneously, and accepting both of them. Please pass the gravy.” -1984

Stop doing land acknowledgments for white people.

Stop doing them at events that aren’t somehow actually genuinely inclusive of or at the behest of the Native community.

Stop doing them if there are no Natives there.

Stop. Doing. Land. Acknowledgments.



If your land acknowledgment is not immediately followed with the signing over of a deed or trust, then it is not a land acknowledgment.

Get fucked, thanksgiving for your time.
The Blob, the Monolith and the Units
By: Knight Stivender
Tags: Nature, Art, Thanksgiving, Family, 2020

Photo from Bob Lusk Outdoors

Jackson’s Gap, Ala. — Manoy Creek is six feet lower than the summer pool depth at Lake Martin right now, exposing structures and branches we don’t see in warmer months. Attached to many of them are transparent green-brown globs that look like brains. I wondered if these might be sacs of fish eggs, but Dad said fish lay eggs on the bottom of the lake, not in weird blobs near the surface.

We took an opportunity to inspect one at close range on Thanksgiving morning when we hoisted a chair from underneath the dock, the furniture having been a victim of strong winds back in the spring.

A string of smaller globs was affixed to the back of the chair, and we prodded them with a fireplace poker. The substance was gelatinous, fishy smelling, surprisingly dense, and covered in symmetrical star patterns speckled with dark green dots. We thought it might be a type of algae or fungus.

Googling “jello-like blob in lake” informed us we were wrong.

It turns out these blobs are the soft exoskeletons of prehistoric invertebrate animals called bryozoa that eat plankton and other microscopic particles floating in the water. Bryozoa reproduce by cloning themselves, with the individual zooids (or cellular structures) that comprise a bryozoa forming colonies using secretions from their bodies. The concept is similar to that of a coral reef, except I’m going to guess that most people would think coral reefs are beautiful and bryozoa are gross.

The bryozoan eats by extending tiny little arms into the water like a squid, capturing tinier bits of food, and pulling it back into a U-shaped digestive tract. The bryozoa bodily functions aren’t discernible to the unaided human eye, otherwise I would not have picked them up with my bare hands, nor slashed their self-made skeletal jello commune with a fireplace poker.
Growing up in the US just after - arguably - the height of our power (post-WWII, but one could…
By: Jack Albrecht
Tags: History, World, Thanksgiving, Culture, Life

Growing up in the US just after - arguably - the height of our power (post-WWII, but one could well argue that post-Soviet-collapse was really the height) we were subject to unbelievable propaganda. The Kim family in North Korea would be astounded how all us kids would stand and pledge allegiance, understood implicitly that communists were devils ready to pour over the borders of "wherever" to get us and our allies, and that Capitalism=Democracy.

The US origin story, from Columbus the founding of Plymouth (like Anthony Lawrence I’m also a Mayflower descendent on my mother’s side) to Thanksgiving to so many broken treaties we’ll probably never have an accurate count, our understanding of where we started as a country to where we are today is based on a bit of truth and an avalanche of bullshit.
Giving Thanks for Where I’m From
By: Louise M. Paré
Tags: Thanksgiving, Christmas, Farm, Drowning, Ukrainian

Giving Thanks for Where I’m From

I am from Ukrainian pysanky

From Miracle Whip and Heinz Tomato Ketchup

I am from backyard irrigation ditches

(flowing cool clear with water bugs glistening in the sunlight)

I am from gladiolas and white catalpa tree blossoms

singing through my fingers as I twirl in the muddy front yard

I am from hot cross buns and always reading

From Pauline and Ana

I am from the only Pares on the whole west coast and the gypsy traveler

From “little- miss-know- it-all” and “don’t you talk back to me — I’m your mother”

I am from Christmas Midnight Mass, Holy Communion

and bless me father for I have sinned

I am from New Hope Road and the Applegate River

moonlight farmers, lumber mills and

canning a hundred quarts of anything

in the good old summertime.

From homemade yogurt and whole grain bread

From my eighteen month old brother Damian

drowning in the irrigation ditch when I was nine years old

and getting my first violin on the day of his funeral

From the arranged marriages of my Ukrainian and French Canadian grandmothers

who didn’t love their husbands

but did their duty by them

Above my living room fireplace

hang large elegantly framed photographs of my mother’s family

draped in an embroidered Ukrainian rhushnky from Kyiv

On a long wood shelf at the top of the basement stairs

framed pictures of my French Canadian father’s family

our farms, fields and gardens anchor me

I am from dark earth and mountain rivers

which birthed me

which shaped me

which unfold me still
It’s Never late to Thank, You
Tags: Thanksgiving, You Deserve Love, Love, Smile, Thank You

It’s Never late to Thank, You

I don’t know the way life is nowadays. I wake up early in the morning, looking at the “To Do” list on the home screen of my phone. I found myself trapped in some rat race, where I must wake up and follow the task and timeline set by me last night.

The never-ending day

The day kicks off at 5.30 hrs in the morning, with an alarm that never stops beeping, and I keep rolling until it ends, depending on the complexity of the tasks. Sometimes I get into bed when the clock strikes 20:00 hrs. Somedays, it never comes to an end until its 02.00 on the clock.

It’s 2.00 in the morning and yet I am still behind the barriers trying to accomplish today’s task…

In short, being trapped in the email saying: “You have been assigned a new assignment” to the pop-up message “Handed In”. I want some air to breathe, am someone searching for silence, some peace of mind, to think and rethink and talk to myself. However, being the perfectionist, I can’t give up on my assignments and chaotic schedules.

I wanna breathe… There too much in the brain!

Being stuck in this rat race, I have been thinking about the person whom I must thank. For that, I must breach into my memory bank and find something related to that. Last night before falling asleep, I spent some time thinking about that person while watching the stars from my room’s window.

Let’s wander in memories…

It took me some time to sort all the stuff in those memories. The best thing is I found the person. Mam Sadaf, from APS Peshawar, I really thank you for being there for me and compelling me into making things possible and pulling myself together. Though my first impression wither wasn’t that good. Later, I realized how empathetic and an honorable woman she is. I wrote to her the following:

I am bad at writing thank you notes… and replying to them. I hope this makes Mam smile.

As Mam still teaches in APS so I gave the letter to my brother to hand it over to her when he goes for the submissions of monthly assignments.

What are you waiting for? Don’t you have someone to thank? Give it a thought and don’t forget to send them a handwritten note :)
Thankful
Tags: Thank You, Family, Thanksgiving

I’m thankful for the life that I have been given.

There are people robbing banks, and people who sinnin (Sinning).

But I’m safe at home on my Thanksgivin (Thanksgiving).

Haircut the other day, old look yeah I trimmed it.

Cooked my own turkey

Cooked for 4 hours.

Mac n cheese was served.

It got devoured.

I’m thankful for my parents, my family, and my friends.

People in Christmas, ain’t taking. They lend.

I’m thankful for the teachers, who help us study with books.

We learn more every day, I learned how to cook!

I’m thankful for Santa Claus, the tooth fairy, and leprechaun.

Such Nice Holidays, in the morning and dawn.

I’m thankful for my house, which keeps me in the shelter.

This one is very special, I will remember.

Protects me from the rain, lightning, and hail.

We painted some walls orange.

The paint was in a pail.

This is the end, for I can no longer rhyme.

Till the next assignment, see you next time.

The end of a rap, yessir it’s goodbye.

But my next one will be greater it’ll go up to the sky.
Oh this is so helpful thank youuuuuuuuu ❤❤
By: Elba Laila
Tags: Thanksgiving, Health, Thankfulness, Thank You, Healthcare

Oh this is so helpful thank youuuuuuuuu ❤❤
加州生活 | Thanksgiving
By: Winnie Tsay X 維尼蔡
Tags: Thanksgiving, Market, Foodies, Holidays, Food

Flavored Mashed Archives - Idahoan Mashed Potatoes - Idahoan Foods LLC

Our Vermont White Cheddar Mashed Potatoes will make you feel like you've been whisked away to New England. We've…
A Gift Overdue
By: Syed Qulzam Abbas
Tags: Amal Fellowship, Amal Academy, 164, Thanksgiving

First of I love to send the thank you letter to my friend and my teacher assistant. I mentions following things in letter.

you are always available for me when I need help in my counsling. You always made my mind to get involved in new technologies. You have continuously motivated me to do study properly and want from me to make extra efforts. You always have time for me to help in my assignments and projects throughout the degree.

I send it via whatsapp and waiting for his reply.

Then I made at thank you letter for my Teacher Sir qyum and I mention following things he done for me.

You have helped me a lot improving my Urdu handwriting.

Once you helped me in preparing for my speech.

You have improved my English grammar very well

You have made many medicine whenever I asked.

You have strong grip in your subjects and you are always ready to answer any kind of Questions related to the subjects.

You have motivated me many time when you felt that I have need.

You have give me free tuition and never demand for fee.

I am looking forward for their great reply and i am very excited. I feel very good to send them these letter because I did not do before.
Ray Reggie Celebrates Thanksgiving with Family 2020
By: Ray Reggie, Raymond Reggie
Tags: Thanksgiving, Family Photos, Ray Reggie, Raymond Reggie, New Orleans

Here are some photos from this year’s Thanksgiving dinner with my beautiful family at my home.

Dinner Setting — Ray Reggie

“Heavenly Father, on Thanksgiving Day we bow our hearts to You and pray. We give You thanks for all You’ve done, especially for the gift of Jesus, Your Son. For beauty in nature, Your glory we see. For joy and health, friends and family.” — Ray Reggie
The Unprecedented Sentiment of Giving in 2020
By: Renee Miller
Tags: Thanksgiving, Red Pill Analytics, Grateful, Giving, Data

If there’s one thing we’re tired of this year, it’s canned marketing campaigns filled with false sentiment. We know what they really mean:

“We’re in this together”

Please continue to buy our stuff.

“Now, more than ever..”

What we’re selling is still important.

And the worst offender:

“In these unprecedented times..”

I will get your attention with unnecessary cliches

Now, what we really mean. Every Thanksgiving at Red Pill, we try to give back a little. We’re lucky. We all work from home, and we’ve continued to thrive while others have had their entire livelihoods pulled out from under them. We love what we do. And our coworkers. There’s no false comradery, our jokes and memes are terrible, but the laughter is real. We’re passionate. In short, our work environment couldn’t get any better and when we say we appreciate that and want to give back, we mean it. This year, we decided to join #TeamFeed with Feeding America. Every $1 donated helps provide at least 10 meals, which is astounding.

When we look back at 2020 in the decades to come, there’s no doubt that we’ll reflect and learn from this absolutely *unprecedented* year. But what we do know now, is that it’s made us even more grateful for what we have, and one way to express that is through giving.

So we want to thank all of our friends for being a part of it and helping us reach our goal of $2000. We’re almost there. If you’d like to help before the December 18th cutoff, Donate Here.

We will also match every cent donated to our campaign. Thank you to all of you, for joining us in giving this year.

*Disclaimer: We may be guilty of these phrases in the past. Please forgive us.
Thanksgiving ––Alone Together
By: Robert Faron
Tags: Sharing, Care, Thanksgiving, Poetry, Love

The table is set with china white,

The dishes stuffed with foods delight,

The Zoom arranged for family,

The children joined electronically.

The pie is baked,

The wine is poured,

The glasses filled,

The couple alone joined by love.

© 2020 Robert Faron
Catching and Healing from Covid-19
By: Olive Branch Therapy Group
Tags: Covid 19, Mental Health, Holidays, Thanksgiving

A few weeks ago I found out I tested positive for Covid-19. This was a big surprise to me since throughout the pandemic I have been taking all of the precautions necessary to follow safety measures. I thought to myself, “how can this happen to me?”. I was lucky enough to not have many physical effects during my illness, however I experienced numerous mental health effects.

For me, this time of year brings excitement. Between Diwali, Thanksgiving, and Christmas I find myself looking forward to spending quality time with my family and friends. Being diagnosed with Covid-19 this close to the holidays, means that I would not be able to see my loved ones. I made this decision, wanting to keep my family safe and healthy. I find myself feeling angry, sad, and anxious about spending the holiday season not seeing my parents and brother. In a sense, I find myself grieving.

Despite these difficult and isolating times, I want to make this holiday season special. I am choosing to focus on what will make these holidays meaningful and special. I’m using this time to merge new traditions with old traditions. My boyfriend and I decorated our home with lots of lights and candles for Diwali and will be cooking the same dishes that I would have eaten with my family. For Thanksgiving, we will be making dishes that have a special significant meaning to us. As for Christmas, our tree and decorations are already up since there’s no limit to holiday cheer!

I also find myself turning to self-care during this time of uncertainty. With all of these difficult and intense emotions, it’s important I treat myself with kindness and compassion. I started a gratitude list on my phone, in which I list the things that I am grateful for despite the chaos that this year has brought. Health, friends, family, and my adorable kitten are some of the things that bring me peace, happiness, and joy. Making time to virtually connect with my loved ones has been key, since healing from Covid-19 has been such an isolating experience.

I am realizing that although I am not able to spend the holidays with my friends and family, I am still surrounded by so much love. Although I may not be celebrating the way I am used to, I am recognizing that I can miss my “normal” traditions and create new, meaningful ones. This is a chance to heal.

About The Author — Esha Chabra, LPC is a therapist at Olive Branch Therapy Group and a Licensed Professional Counselor (LPC).

If you have any questions or want to learn more, please click here.
Dear Groupon, Please Stop Asking Me to Come Out to Play
By: Romance Daily News
Tags: Black Friday, Thanksgiving, Shopping

By Lori Perkins

Like most of us, I was hoping to get a jump on holiday shopping this year online, but as my mailbox fills up with Black Friday and Cyber Monday offers, it amazes me to see how many of them as still for real life services, events, and activities. No, I do not want 50% off on a Royal Caribbean cruise. I don’t care how much a room at Caesar’s in Las Vegas is — I won’t be booking it. Likewise for the Botox, spa treatments, dental cleaning, eyebrow waxing, axe throwing or escape room events. I would really appreciate it if these reminders of what our lives used to be full of were just removed from my feed, or at least relegated to a button where people who still want to see them can click.

What I want is at home escapes — DIY arts and crafts kits, baskets of food and bath bombs, deeply discounted online concerts and theater, discount streaming services, lessons — things that will make the next four months of waiting for the vaccine better.

I am perplexed by the Black Friday ads for Amazon, Target, Walmart, department stores. Do they really think that after eight months of reduced living I need a new flat screen TV? I have no desire for new clothes, as I have been basically been wearing PJs and sweats for three seasons. Don’t need perfume or make up, that’s for sure.

It just amazes me how bad the marketing for this desperately needed consumer orgy is this year. I was truly hoping to be seduced by all sorts of at-home items I had somehow missed, and instead I’m just bored. I feel that it’s all just recycled from last year.

This will be the worst consumer Christmas ever, but not for lack of consumer interest — rather for lack of imagination on the part of American businesses. But maybe that’s a good thing, because we are going to have to learn to tighten our belts when we emerge from this chapter.
Gratitude
By: Sneha Goswami
Tags: Gratitude, Thanksgiving, Positivity

It is scientifically proven that gratitude not only improves your psychological health but also enhances your physical health.

Gratitude reduces stress, aggression and other self-destructive emotions. While it helps to grow empathy, kindness and more positive emotions. A lot of self-help books talk about the power of gratitude in lengths so basically gratitude makes us focus on the good and this, in turn, invites more positive vibes in your life and when you are vibing higher you are automatically adapting more goodness. When you thank the universe for its gift, it gives you more of its goodness. Hence only the people who are grateful for the things they have, they end up receiving abundance. Whereas, grumbling and complaining are extreme repellent of abundance. So always reframe from such practices.

Now if I try to describe a fragrance of a book, you will never be able to experience how it smells, until and unless you smell the fragrance by you, you won’t know how beautiful it smells. It’s just the same with gratitude. You will only understand it when you practice it.

Now the first step to imbibe the habit of increasing gratitude

Create an environment of mindfulness and for that, you can play any mindfulness music and you can find a lot of music on internet. So once you have found the right music you can now concentrate on actual working on the gratitude. But this one particular thing I will recommend to everyone and that is to create an environment of gratefulness and for that, you have to write down some little notes of gratitude or thankfulness. just write things that you feel blessed about or maybe you come across some amazing quotations that are about gratefulness or positivity. Write it and stick it somewhere you can see properly and all the time. The moment you wake up you see good things around you, you read things that empower your mind and that it’s a good thing to start your day or just to have around yourself.

Now having a daily gratitude journal is a must and you can buy a gratitude journal from any store or you can create one. Just write 3 to 5 points and in those points write about all the things that make you feel grateful, thankful, blessed and just positive in general.

Now the question is what will you write?

Just think about the simple things in your life. Maybe you had a great conversation with your siblings or parents or friends etc. like some things that add value in your life, positive experiences, so write about simple things. It doesn’t have to be something great but at least something that made you feel good. Whenever you get time sit down and write about the things that you are grateful about or the things you are looking forward to in a day.
2020 Thanksgiving Thoughts
By: Paul H. Harder Ii
Tags: Silver Lining, Thanksgiving, Poetry, 2020

As 2020 starts to wane,

I take up now the task

to tot up all the loss and gain.

“So, how’s it gone?” I ask.

First:

Pandemic deaths beyond control

and people out of work,

financial crash overwhelms the world,

bad manners gone berserk.

Politics seems a power play

that’s blind to people’s pain,

the rule of law fast on its way

to going down the drain.

But:

Instead of two-hour work commute,

I stroll amid the green,

and jerks disguised in business suits

are hardly ever seen.

If work from home is what we want,

we need no longer ask,

not graded by the desk we haunt,

but how we do the task.

And now, much more importantly,

what matters most comes clear:

Collaboration is the key,

not rumor, hate, or fear.

So:

On balance, I remain convinced

that we can be okay,

by learning how to coexist,

to live a better way.

________________

Copyright ©2020, Paul H. Harder II

This poem is licensed under a Creative Commons BY-NC-ND 4.0 License.
Get Your Gratitude On
By: Quarterlife Center
Tags: Holidays, Gratitude, Thanksgiving

Each year, there’s one day in November that we spend counting our blessings. And although Thanksgiving is the perfect reminder of how truly blessed you are, it doesn’t start and stop there. Thanksgiving 2020 may be over, but why not keep the gratitude going?

Studies have shown that gratitude is associated with more optimism, positive emotions, the ability to deal with adversity, and better overall well-being. When we practice gratitude year-round, we choose to focus on the things that fulfill us rather than the things that aggravate us. This year, during the pandemic, you may feel you have plenty of things to annoy and irritate you, but you also have the power to focus on the positives rather than the negatives.

Now more than ever, it will serve you well to focus on gratitude. It’ll provide a buffer for adversity and strengthen your relationships. Here are three ways you can practice gratitude (even when it’s difficult!).

1. Focus on the past

Reflect on memories and experiences that you’ve had in the past that you cherish. For example, did you travel somewhere in the past year or so right before the lockdown? What are some memories from those vacations that you can remember fondly?

Or, if you’re missing family or friends, when was the last time you were gathered together? Reflect on the happiest moments from that gathering. Send some text messages reminding those people of those moments and brighten their day as well.

2. Focus on the present

The pandemic makes it easy to worry about the future, but you’re living right now. What can you be grateful for at this very moment? Do you have food on your table, a roof over your head, a healthy body, or some of your family and friends around you? Even if you only have a portion of what you’d like to have, you still have something. Don’t forget that!

3. Focus on the future

This time will not last forever — even if the last nine months have seemed to drag on. Show gratitude for the future and all the things you hope to do. You can write these things down or call a friend you hope to share them with. Do this with optimism — it will not always be like it is today.

Final thoughts

Practicing gratitude does not come naturally to everyone at first, and initially, it may feel inauthentic and forced. It will begin to feel more natural the more you practice it! Knowing that it can improve your life and prepare you for the future is all the more reason to do it.

If you’re interested in scheduling an appointment or you’d like more information, please contact us.
The Interpretation of Leavings
Tags: Freud, Thanksgiving, Parental Alienation, Autoethnography, Memories

Thanksgiving for my family was a sort of non-event most years. It was when we took our annual vacation. My parents owned a timeshare, and it worked like this: They (Dad) paid an annual fee, which subsidized the cost of staying at several in-network resorts. So we stayed at resorts in places like Orlando, Florida, Hilton Head Island, South Carolina, Gatlinburg, Tennessee, and so on. We would leave Duncan, the central Illinois hamlet where we lived, for around fourteen days each year when Thanksgiving rolled around. This was taken-for-granted knowledge in my family.

Dad farmed pumpkins for the bulk of my childhood. He still, at the time of this writing, works for Seneca Foods, a food processor and distributor based in Marion, New York, whose current tagline, evidently, is “Farm Fresh Goodness Made Great.” Dad, however, did not always work for Seneca. Seneca acquired the canning plant in Princeville, Illinois, a few miles from Duncan, in 2003.

Slideshow presentation slide. Duttlinger © 2017.

My understanding is that Seneca purchased the Princeville plant because of its pumpkin processing capabilities. The plant had been processing pumpkins for several years before it sold to Seneca. So, for many years, the reason given for our family tradition of vacationing over the Thanksgiving holiday involved Dad’s fieldwork. Thanksgiving, after all, is when the hungry public most highly demands canned pumpkin. Anyone who grows up around farmers understands that the demands of fieldwork dictate life's rhythms, particularly when harvest time rolls around. Still, and perhaps especially given this fact of farm-family life, why did my parents choose, year after year, to leave over Thanksgiving?