In October 2016, U.S. President Barack Obama signed into law legislation authorizing the establishment of a "Wall of Remembrance" to be incorporated into the Korean War Veterans Memorial that currently resides on the National Mall in Washington, DC.
Following the Russian and Chinese-backed North Korean invasion of South Korea on June 25, 1950, the United States led a 21-nation Allied Force to help South Korea repel the communist troops. For three years the fighting on the Korean Peninsula raged. By the time the Armistice was signed on July 27, 1953, 36,574 American military personnel gave their lives in the service of Freedom, 103,284 others had been Wounded in Action, 8,177 were listed as Missing in Action (MIA) and 7,747 U.S. military personnel are still unaccounted for. The fighting took its toll on South Korean and Allied Forces as well.
In an effort to better convey the extent of the ultimate sacrifice of U.S. servicemen, Congress authorized the addition of a "Wall of Remembrance." As proposed, the Wall will be made of laminated glass and encircle the rear 180 degrees of the Memorial's Pool of Remembrance. In it will be etched the names of 36,574 Americans who made the ultimate sacrifice during the Korean War as well as the number of U.S. servicemen wounded, Missing in Action, or Prisoners Of War. It will also honor the members of the South Korean military, who served in South Korean and U.S. units, and U.N. soldiers by listing the numbers of soldiery who were killed, wounded, missing, or prisoners during the conflict.
Funding for the Wall is to come from private donations.
Your generous support of the Foundation will enable us to add the Wall of Remembrance to the Memorial on which will be inscribed the names of the over 36,000 Americans who gave their lives in the service of freedom—names which might otherwise be Forgotten.


Slides from the Willis Towers Watson's webcast "IFRS 17 – The count down to 2021 commences", from 13 June 2017. The webcast provided an overview of the likely impacts on insurers' businesses, processes and communication with stakeholders, as well as the key points to consider in actually getting to grips with the requirements of the standard.
1. willistowerswatson.com IFRS 17 Insurance Contracts Starting the countdown to 2021 13 June 2017 EMEA Client Webinar © 2017 Willis Towers Watson. All rights reserved. Proprietary and Confidential. For Willis Towers Watson and Willis Towers Watson client use only.
2. willistowerswatson.com Q&A Introduction Getting the numbers right Getting the numbers on time Business implications Agenda and speakers Richard Bulmer Roger Gascoigne Andreas Schröder Kamran Foroughi © 2017 Willis Towers Watson. All rights reserved. Proprietary and Confidential. For Willis Towers Watson and Willis Towers Watson client use only.


I fully intended to only watch part one last night, but I was so engrossed that I ended up going to bed late having watched both parts, back to back.
It was a very moving documentary, tracing the band's history from the early days of Brian May and Roger Taylor's group Smile, through to the live shows featuring Paul Rodgers.
Queen were never really cool, and they happily admit this, but they built up a dedicated following from their early days in the 1970s, which seemed to spur the music press on to criticise them even more. One of the things that most people would agree on, even if they weren't particularly fans, was the band's (and particularly Freddie Mercury's) ability to get the crowd involved at their live gigs.
The interaction between the band and their fans was Queen's attempt to create a unique show while touring the United States, which, considering the number of high profile rock bands touring the U.S.A. at the time was a shrewd move. And because of the need to play huge stadiums the band wanted to try and retain the connection with the audience that they developed when playing to crowds in smaller venues.
Unlike a lot of similar documentaries the programme makers weren't afraid to address some of the groups low moments, including albums that didn't quite hit the mark, and most notably, the bands decision to play Sun City in South Africa during the reign of the apartheid regime in the 1980s, which the surviving members agreed had been done with good intentions at the time, but in retrospect had been a huge mistake.
The final section covered the demise of Freddie Mercury, who in the archive interview footage comes across as a very charismatic and intelligent person. Seeing the remaining band members talking about the dawning realisation that something was very wrong, and hearing them tell of Freddie's initial reticence to tell his fellow bandmates about his illness was very moving.
I would like to think that in this day and age, that the stigma attached to HIV and AIDS in the 1980's is a distant memory, but for Freddie back then, it must have been terrifying. I can't imagine how distressing it must have been trying to come to terms with having a terminal disease without the added pressure of the paparazzi scum loitering in the streets hoping to get a picture of you looking ill.
I was never a huge fan, but every now and then they would come along with a song that would really leave an impression on me, and I think that's why their music has endured for so long.


Nothing beats good old style classic treats! Add a fabulous ambiance to your next event when your guests find special personalized treats in these candy glass jars from our Vintage Design Collection.
Our candy / cookie jars are made of clear glass in the classic old-world shape. They have a silver metal screw on lid that will keep the contents fresh at all times.
Enchant your guests with old-world style. Fill the jars with fun home made treats, Swiss chocolate, small trinkets or a personalized message hand written especially for them.
These are unusual jars that will add a great vibe to your event tables!


FEST. NATIONAL "TI-AM LASAT O MELODIE" EDITIA I. - Asociatia Culturala " Belle Arti "
Asociatia Culturala " Belle Arti "
FEST. NATIONAL "LA DOLCE MUSICA" EDITIA I.
FEST. NATIONAL "MAMAIA SUMMER HITS" EDITIA I.
FEST. NATIONAL "VOCEA TINERETII" MIOVENI (AG) 2018 EDITIA II.
FEST. ACADEMIA MINI VEDETELOR EDITIA I.
FEST. ROMANIAN KIDS MUSIC AWARDS 2017 EDITIA I.
FEST. NATIONAL ''DUELUL MINI VEDETELOR'' CODLEA (BV) EDITIA I.
FEST. NATIONAL ''VOCEA TINERETII'' MIOVENI (AG) 2017 EDITIA I.
FEST. NATIONAL "DECEMBRIE DE POVESTE" BUCURESTI 2016 EDITIA II.
FESTIVALUL NATIONAL "TI-AM LASAT O MELODIE" BASCOV (AG) 2016 EDITIA III.
FEST. NATIONAL PORTATIVUL CU STELUTE RASNOV 2016 EDITIA VI.
FEST. NATIONAL SFINXUL DE AUR BUSTENI 2016 EDITIA IV.
FEST. NATIONAL "ASCULTA VOCEA" RASNOV (BV) EDITIA I.
FEST. NATIONAL "TOPUL MINI VEDETELOR" 2016 EDITIA I.
FEST. NATIONAL "PRICHINDELUL CANTACIOS" EDITIA III.
FEST. NATIONAL "DECEMBRIE DE POVESTE" EDITIA I.
FEST. NATIONAL "TI-AM LASAT O MELODIE" EDITIA II.
FEST. NATIONAL PORTATIVUL CU STELUTE RASNOV EDITIA V.
BATTLE OF THE LITTLE MUSIC STARS EDITIA I.
FEST. NATIONAL "SFINXUL DE AUR" BUSTENI 2015 EDITIA III.
FEST. NATIONAL "BUCURESTI KIDS MUSIC" EDITIA III.
FEST. NATIONAL "MUZICA, PRIETENA MEA" EDITIA III.
FEST. NATIONAL "INTERNATIONAL TOP HITS" EDITIA I.
FEST. NATIONAL PRICHINDELUL CANTACIOS EDITIA II.
FEST. NATIONAL "BELLE ARTI MUSIC AWARDS" EDITIA II.
PALMARES 2014 - EDITIA II.
BELLE ARTI TROPHY TOUR ETAPA I.
FEST. NATIONAL "TI-AM LASAT O MELODIE" EDITIA I.
PALMARES 2014 - EDITIA I.
FEST. NATIONAL "PORTATIVUL CU STELUTE" EDITIA IV.
FEST. NATIONAL "SFINXUL DE AUR" EDITIA II.
FEST. NATIONAL "MUZICA, PRIETENA MEA" EDITIA II.
FEST. NATIONAL "STELUTE MUZICALE" EDITIA III.
FEST. NATIONAL "BUCURESTI KIDS MUSIC" EDITIA II.
FEST. NATIONAL "PRICHINDELUL CANTACIOS" EDITIA I.
FEST. NATIONAL "BELLE ARTI MUSIC AWARDS" EDITIA I.
FEST. NATIONAL TRIVALE MUSIC FEST EDITIA I.
FEST. NATIONAL "PORTATIVUL CU STELUTE" EDITIA III.
PALMARES 2013 - EDITIA III.
FEST. NATIONAL " BUSTENI SUMMER HITS " EDITIA I.
FEST. NATIONAL "STELUTE MUZICALE" EDITIA II.


Chicago: "Pantechnicon," 04/06/1977, WGBH Media Library & Archives, accessed April 18, 2019, http://openvault.wgbh.org/catalog/A_39DC2E5A65DA41708DBECC3E3CF2BC3E.
MLA: "Pantechnicon." 04/06/1977. WGBH Media Library & Archives. Web. April 18, 2019. <http://openvault.wgbh.org/catalog/A_39DC2E5A65DA41708DBECC3E3CF2BC3E>.


text:
Awakenings  is a 1973 non-fiction book by Oliver Sacks. It recounts the life histories of those who had been victims of the 1920s encephalitis lethargica epidemic.  Sacks chronicles his efforts in the late 1960s to help these patients at the Beth Abraham Hospital (now Beth Abraham Center for Rehabilitation and Nursing) in the Bronx, New York. The treatment used the new drug L-DOPA.

In 1982, Sacks wrote:

The 1976 edition of the book is dedicated to the memory of Sacks's close friend the poet W. H. Auden, and bears an extract from Auden's 1969 poem The Art of Healing:

Prior to his death in 1973, Auden wrote, "Have read the book and think it a masterpiece". In 1974 the book won the Hawthornden Prize.

In popular culture
The book inspired a play, two films, a ballet and an opera:
 1974: the documentary film Awakenings, produced by Duncan Dallas for Yorkshire Television as the first episode and pilot of the British television programme Discovery. The documentary won a Red Ribbon at the 1978 American Film Festival and first prize at the 1978 International Rehabilitation Film Festival.
 1982: the play A Kind of Alaska by Harold Pinter, performed as part of a trilogy of Pinter's plays titled Other Places.
 1990: the Oscar-nominated film Awakenings, starring Robert De Niro and Robin Williams.
 2010: the ballet Awakenings, composed by Tobias Picker for the Rambert Dance Company, and premiered by Rambert in Salford, UK.
 2022: the opera Awakenings, also composed by Picker, commissioned by Opera Theatre of Saint Louis, with a libretto by Picker's husband Aryeh Lev Stollman, premiered on 11 June 2022

References

External links
 Other Places – Listed in "Plays" section of haroldpinter.org.  Includes photograph of playbill, production details, and retyped performance review by Alan Jenkins, originally published in The Times Literary Supplement entitled "The Withering of Love", reproduced with permission.

1973 non-fiction books
1990 non-fiction books
Non-fiction books adapted into films
Books by Oliver Sacks
Hawthornden Prize-winning works
Picador (imprint) books
Books about the Bronx

redpajama_set_name: RedPajamaWikipedia


Thank you so much for making my daughters 21st a night to remember.
We always knew the venue was visually spectacular at night with the harbor and city views, that's why as soon as I brought my daughter Olivia to inspect the venue she immediately fell in love with it.
As a parent you want everything to go smoothly on the night and the communication from the lovely staff members Fiona and Gloria made everything so easy and comfortable. Gloria and Lucas need to be commended for their work on the night, keeping me calm and ensuring it was a night to remember in a very positive way.
Olivia had an amazing night and both her Dad and myself cannot thank you enough for your service, commitment to elegance and style which is what we had asked for.


text:
Rutgers School of Management & Labor Relations: Preparation for the Rapidly Changing Workplace of the Future
By: Ashley Dull
In a Nutshell: University curriculums are often slow to adapt to the rapidly changing workplaces that students will enter. But the Department of Human Resources Management at the Rutgers School of Management and Labor Relations (SMLR) has designed courses focused on the current business climate — and what is coming next. Department Chair Bill Castellano spent more than a quarter-century in leadership positions at Fortune 50 companies and now uses that expertise to develop tomorrow's human resources professionals. Technology has changed the retail industry — and the economy — as data analysis and employee engagement strategies have emerged as critical components of HR. Today's HR professionals need more relevant business expertise than ever before, and Rutgers School of Management and Labor Relations stands ready to provide that education.
Bill Castellano experienced human resources at the highest levels long before he ever taught it.
Bill brought more than 25 years of HR experience in corporate Fortune 50 environments to his position as Chair of the Department of Human Resources Management at the Rutgers School of Management and Labor Relations. That experience working in the industry that the school is preparing students to enter is a rare asset in academia. For the students and future leaders in the Rutgers program, it means an education based on the dynamics of the modern, technology-driven workplace. It also means a focus on cultivating the skills organizations need to attract, develop, and retain talent in a rapidly evolving business environment.
Bill Castellano brings 25 years of HR experience in corporate environments to his role at Rutgers SMLR.
"We develop students who will help companies adapt to these challenges and become the leaders an organization needs," Bill said. "They need someone to analyze the strategic practices to attract and engage a multigenerational, diverse workforce."
For today's HR professional, that means more data analysis performance metrics. It also means always searching for new ways to engage workers that take into account the priorities of both millennials beginning their career trajectory and veteran employees approaching retirement.
Rutgers recently launched a new initiative — The NJ/NY Center for Employee Ownership — in response to research that shows engaged employees are more productive. The center helps companies implement the ultimate form of employee engagement — an ownership stake.
The workplace leadership experience Bill and other faculty members bring to the table helps prepare SMLR students for an industry being transformed by globalization and technology. HR professionals working in retail need business acumen to help their companies survive and thrive in the digital and e-commerce age, Bill said.
And, with the ongoing transformation of the workplace, Rutgers SMLR is the beginning of students' education in HR management, not the end.
"Graduation is not the end of the road for these students. It is just the beginning of their learning process," Bill said. "So we don't just focus on testing knowledge, we focus on testing their curiosity, creativity, their ability to think on their feet, answer questions, and ask interesting questions."
Human Resources is Evolving Along with the Retail Industry
Technology has sparked swift, dramatic change across nearly every segment of the economy and in every retail profession.
Over time, e-commerce, mobile payment apps, digital marketing, and robots replacing brick-and-mortar workers have become part of the new retail paradigm.
In HR, the tedious task of crunching numbers is done digitally, not with pencil and paper. HR managers must analyze data to determine workforce strategies. The numbers can show them how to outperform competitors and establish a sustainable advantage by attracting, developing, and retaining talent.
Rutgers SMLR prepares students for that transformation. Courses focus on the design and implementation of new human capital strategies.
The retail industry and human resources are also evolving together in significant ways.
Enhanced technology and customer service training to improve the in-store experience offer an attractive alternative to shopping online, Bill said. HR professionals must also be transparent with employees about the state of the business.
"They need to say, 'Here are some challenges that we're facing: More people are buying products over the internet, and they're not coming to the store,'" Bill said. "Have a conversation about the implications that will have for business and what you should be doing to meet that challenge. It may mean offering some e-commerce option, but it also may mean providing a greater value proposition for a customer that comes into the store."
Companies and HR managers need to treat, train, and engage employees as valuable human capital, Bill said. That's a longstanding practice in the pharmaceutical, financial services, and technology industries, where commercial success relies heavily on employee performance.
Retailers have long focused on low prices, but now that online shopping often provides more value, they need to focus on developing employees into strong assets.
A Focus on Adaptability & Employee Engagement
Engagement is a key component in adapting to the continuous change technology brings to the workplace, Bill said.
"They need to realize that we need engaged employees who can deal with the constant changes and challenges organizations face," he said. "Ultimately, that comes down to leadership, culture, and HR practices and programs to enhance employee engagement."
Those efforts may include employee input and involvement in information sharing, giving employees expanded authority to make decisions without a supervisor's approval, or increased training opportunities, Bill said.
Rutgers experts see shared capitalism — or giving employees an ownership stake — as a particularly effective form of engagement.
"The research is pretty clear. When employees consider themselves part owners of the company or have some equity stake, then the interests of employees, managers, and owners, are typically aligned." Bill said. "Employees who feel like part of the company are more engaged and committed to the organization. Companies that have these types of plans are typically more productive."
Rutgers SMLR students learn about HR strategies including shared ownership as a form of employee engagement.
Rutgers SMLR considers shared capitalism to be so valuable that it launched the NJ/NY Center for Employee Ownership to publicize and share research on the practice and help companies implement it.
"The objective of the center is to disseminate information through workshops and websites to help companies discover these options," Bill said "We provide technical advice through a free advisory board with representatives from companies that deal with the legal and financial management components. The center is primarily a mechanism to provide information and encourage organizations to think about strategies."
Shared ownership options prominent in the startup community are now spreading to other areas, including employee stock options programs (ESOP) and profit sharing. Another growing trend, particularly for private companies that are owned and managed by baby boomers nearing retirement, is the sale of the company to its employees as a succession plan, Bill said.
"That's also part of employee engagement," he said. "They complement each other."
Developing Professionals to Lead & Shape Company Culture
Bill has the professional and academic credentials needed to develop the HR leaders who will attract, groom, and retain the talent to lead organizations and shape their culture. And his 25 years of experience at Fortune 50 companies is being put to good use at Rutgers SMLR.
The mix of experience and education among faculty helps the Department of Human Resources Management prepare professionals for rapidly changing industries and workplaces.
"This is a great time to be in HR management because companies understand that how you manage and engage employees is going to have a huge impact on the success of the company." — Bill Castellano, Chair of the Department of Human Resources Management at Rutgers SMLR
Often, HR managers will need dynamic strategies based on the age and professional priorities of an employee. Some companies struggle to engage millennials, who put a priority on career development, flexibility for passions and interests outside of work, and meaningfulness of their job.
"Companies need that type of information to design HR practices and programs that will attract those types of workers and engage them while they are working for the company," Bill said.
The importance of developing successful employee engagement strategies in the modern world is making human resources all the more vital.
"This is a great time to be in HR management because companies understand that how you manage and engage employees is going to have a huge impact on the success of the company," he said.
Ashley Dull
Ashley Dull is the editor-in-chief of CardRates.com, where she works closely with industry leaders in all sectors of finance to develop authoritative guides, news, and advice articles read by millions of Americans. Her expertise lies in credit cards and rewards programs as well as credit reports and how credit scores affect all aspects of consumerism. She is often asked to serve as an expert source on financial topics for national media outlets, such as CNN Money, MarketWatch, Money Matters, ABC News, and NBC News, and has recurring contributions to several leading finance websites. Connect with Ashley on LinkedIn and Twitter.
Blackboard Empowers Businesses with Learning and Development Tools
Adam West • July 25, 2017
The 2016 National Back-To-School Guide for Students & Teachers
Innovation is a Journey at Georgetown McDonough
Adam West • October 18, 2018
How the AFWA Empowers Women in Their Finance Careers
Matt Walker • June 24, 2019

redpajama_set_name: RedPajamaCommonCrawl


text:
Home Headline Nipsey Hussle New Biography Highlights his Hip-Hop Legacy
Nipsey Hussle New Biography Highlights his Hip-Hop Legacy
Makeda White
Two years following the death of hip-hop icon Nipsey Hussle, music journalist Rob Kenner examines the components of his life and legacy in a new biography, The Marathon Don't Stop: The life and Times of Nipsey Hussle.
Kenner offers an extensive analysis of Nipsey's Legacy. The author highlights the characteristics that made Nipsey a legend and the events that solidified his fame worldwide.
Kenner met the rapper back in 2009. In an interview with BET, Kenner recalls he "knew Nipsey was a star" after their first encounter.
Since then, Kenner has become an avid Nipsey fan. But while writing the biography, Kenner uncovered just how far the rapper's talents took him,
"One thing that blew my mind," Kenner tells BET. "was that Nip and Ralo Stylez did a track and that got into the hands of Afeni Shakur. She was so impressed with the track that she invited Nip, Ralo, and all the artists that were involved on the song down to perform in Atlanta at a release event of one of his Tupac's posthumous tribute albums. Before he became a household name, he was flying out to perform with the blessings of Tupac's mother."
To depict the true foundation that created the legend, Kenner spoke with members of Nipsey's family.
"I was very fortunate and blessed to speak with Nip's big brother, Black Sam," Kenner says. "As well as his sister Samantha Smith. I must say that the book is not an authorized biography by any means but my own journalistic account. My goal is to place him into the context of hip-hop history."
After his passing, Nip's fanbase and movement continues to thrive. Kenner sees that more rappers are following the Icon's playbook regarding their career choices.
"As far as his movement, he predicted so many things that came true," says Kenner. "With the racial tension in this country coming to fever pitch and systemic oppression against people of color, Nip was a big advocate of all those points. Also, I think more hip-hop artists are using his playbook by understanding the importance of owning their masters and not signing the first record deal that's offered to them. In so many ways, Nip's legacy still lives on."
Kenner's The Marathon Don't Stop: The Life &Times of Nipsey Hussle is currently available on Amazon.
Nispey Hussle
Rob Kenner
Previous articleSteve Harvey Approves of Michael B Jordan and Lori's Relationship
Next articleJamie Foxx to Play Mike Tyson in Limited Series
Def Jam, Roc Nation, and Hollywood Records Globally Debuts Black Panther: Wakanda Forever Soundtrack
Meet the Men of Disney's Onyx Collective and Hulu's 'Reasonable Doubt'
Mariah Carey Announces "Merry Christmas To All" Holiday Special


When you find love in what you do, it will be hard to let it go.
Alofa Aisila of Fasito'o uta knows this.
The 23-year-old is a farmer and he said he wouldn't change what he has now for anything else.
He has two other siblings; one who works and provide for his family financially and the other one who has a family of his own now.
Maturing into a hard working man, he's starting to see the significance of our lands.
"This is important to me and this is important to my family; because they can eat from it," said Alofa.
Alofa said most of the time he accompanies his father when he goes to do his carpentry work; but he would always end up; back in the plantation.


text:
Q: MapperParsingException error while indexing kafka topic in elasticsearch with kafka-elasticsearch sink connector I am using elastic7.4 and confluent kafka-elasticsearch sink connector.
1) Created the kana-elasticsearch sink connector in the confluent with below configuration
curl -XPOST -H 'Content-type:application/json' '<ip>:8083/connectors' -d '{
 "name" : "sink-kafka-elasticsearch",
 "config" : {
  "connector.class" : "io.confluent.connect.elasticsearch.ElasticsearchSinkConnector",
  "tasks.max" : "1",
  "topics" : "kaf.newdb.col2",
  "key.converter":"org.apache.kafka.connect.storage.StringConverter",
  "value.converter":"org.apache.kafka.connect.storage.StringConverter",
  "connection.url" : "<ip>:9200",
  "type.name" : "test.type",
  "key.ignore" : "true",
  "schema.ignore" : "true"
 }
}'

2) When try to search the data in elastic search with the command
curl -XGET 'http://<ip>:9200/kaf.newdb.col2/_search?pretty'

Getting the error like this
failed to execute bulk item (index) index {[kaf.newdb.col2][test.type][kaf.newdb.col2+0+0], source["{\"_id\": {\"_data\": \"825DF0D3EF000000012B022C0100296E5A1004FBE317F12D3
84855AD2528B1E5B0581046645F696400645DF0D3EF09786CAA9967C44F0004\"},
\"operationType\": \"insert\", \"clusterTime\":
{\"$timestamp\": {\"t\": 1576063983, \"i\": 1}},
\"fullDocument\":
{\"_id\": {\"$oid\": \"5df0d3ef09786caa9967c44f\"}, \"id\": 8.0, \"SKU\": 1.0, \"item_name\": \"Hello World\", \"quantity\": 10.0}, \"ns\": {\"db\": \"newdb\", \"coll\": \"col2\"}, \"documentKey\": {\"_id\": {\"$oid\": \"5df0d3ef09786caa9967c44f\"}}}"]}

org.elasticsearch.index.mapper.MapperParsingException: failed to parse
        at org.elasticsearch.index.mapper.DocumentParser.wrapInMapperParsingException(DocumentParser.java:191) ~[elasticsearch-7.4.2.jar:7.4.2]
        at org.elasticsearch.index.mapper.DocumentParser.parseDocument(DocumentParser.java:74) ~[elasticsearch-7.4.2.jar:7.4.2]
        at org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:267) ~[elasticsearch-7.4.2.jar:7.4.2]

can anyone tried this please help to resolve this.
additional info:
1) the data coming to the kafka topic through mongo db
2) I am using the confluent kafka-mongodb source connector to source mongo db data to kafka topic
the mongo db data
{ "_id" : ObjectId("5df0d3ef09786caa9967c44f"), "id" : 8, "SKU" : 1, "item_name" : "Hello World", "quantity" : 10 }
{ "_id" : ObjectId("5df0d40509786caa9967c450"), "id" : 10, "SKU" : 1, "item_name" : "Hello World", "quantity" : 40 }
{ "_id" : ObjectId("5df0d48b09786caa9967c451"), "id" : 10, "SKU" : 1, "item_name" : "Hello World", "quantity" : 40 }

The kafka-mongodb source connector config
curl -X PUT http://<ip>:8083/connectors/src-mongodb-newdb/config -H "Content-Type: application/json" -d '{
      "tasks.max":1,
      "connector.class":"com.mongodb.kafka.connect.MongoSourceConnector",
      "key.converter":"org.apache.kafka.connect.json.JsonConverter",
      "value.converter":"org.apache.kafka.connect.json.JsonConverter",
      "connection.uri":"mongodb://<uid>:<pwd>@<ip:port>",
      "database":"newdb",
      "collection":"col2",
      "pipeline":"[{\"$match\": { \"$and\": [ { \"updateDescription.updatedFields.quantity\" : { \"$lte\": 5 } }, {\"operationType\": \"update\"}]}}]",
      "topic.prefix": ""
}'

redpajama_set_name: RedPajamaStackExchange


text:
Q: How to pass modelform instance fields that are not intended for user input to template in Django I'm using formsets to pass several modelforms with existing model instances to a template. I'd like to do something in the template for each form depending on the value of a model field (let's call it field_check) for that instance. Field_check is not intended for user input and a required field.
If I include field_check into my form without rendering it, I can easily access its value. But then after submitting the form Django complains that field_check is required.
What is the recommended way to access the value of field_check without including it as an input field or running into the required field problem?
Models.py
class MyModel(models.Model):
    field_check = models.CharField(max_length=50)
    user_input_field = models.CharField(max_length=50)
    some_type = models.CharField(max_length=50)

Forms.py
class MyModelForm(forms.ModelForm):
    class Meta:
        model = MyModel
        fields = [
            'user_input_field',
            'field_check', #having this field here creates problems, since it's not intended for user input
        ]

MyFormSet = forms.modelformset_factory(MyModel, form = MyModelForm, extra=0)

Views.py
def myview(request):
    this_type = 1
    formset = MyFormSet(request.POST or None, queryset = MyModel.objects.filter(some_type = this_type))
    if request.method == 'POST':
        if formset.is_valid():
            formset.save()
            return render(request, 'some_other_template.html')
    context = {'formset':formset}
    return render(request, 'mytemplate.html', context)

Template
<form method="post">
    {{ formset.management_form }}
    {% for form in formset %}
        {{form.id}

        # here is the part where I check for the value of field_check
        {% if form.field_check == 'Some value' %}
            Some text
        {% else %}
            Some other text
        {% endif %}

        {{form.user_input_field}}
    {% endfor %}
    <button type="submit">
</form>


text:
Q: WSO2 ESB- Error Handling - On Error Sequence For which are all the mediators onError Sequence works?
ex: I tried Enrich mediator it didn't work and send mediator it worked.
<inSequence onError="errorhandler" xmlns="http://ws.apache.org/ns/synapse">
<enrich>
    <source clone="true" type="custom" xpath="//Body/xs"/>
    <target action="replace" property="ORIGREQUES" type="property"/>
</enrich>

Here  given xpath is wrong. In wso2Carbon.log  got the below message.

ERROR {org.apache.synapse.mediators.elementary.EnrichMediator} -
  Specified node by xpath cannot be found.
  {org.apache.synapse.mediators.elementary.EnrichMediator}

<api xmlns="http://ws.apache.org/ns/synapse" name="addTripService" context="/trip" hostname="localhost" port="8280"> <resource methods="POST" uri-template="/add/v2" faultSequence="fault">
  <inSequence onError="errorhandler">
     <enrich>
        <source clone="true" xpath="//Body/xs"/>
        <target type="property" property="ORIGREQUES"/>
     </enrich>
     <send/>
  </inSequence>

Here getting the error message whatever I have given in Errorhandler sequence.
This means that  onError  Sequence works for send mediator and not for enrich mediator. So please let me know for which all mediators it works?
Thanks in advance.

A: This [1] article contains detailed description about error handling in WSO2 ESB. Go through it and you will understand how the mediators works and how to handle the errors properly.
[1] http://wso2.com/library/articles/2012/10/wso2-esb-examples-best-practises-error-handling-wso2-esb/


Far Above Rubies: Reclaimed wood + wrought iron = a new table!
I had this iron outdoor table on the porch! So I told my husband I thought it would be a great idea to make a wood top for that and bring it inside. Now, we have tons of junk reclaimed wood around here to choose from. My father had brought home a wooden crate that had been used to ship something somewhere.
So Luis cut two pieces, then made some biscuits (the wood kind) and used his jointer to join them. Then, he used his router on some more junk wood to create the trim.
We attached the top to the iron with washers and screws, which can be removed if I ever want to use just the iron again.
I am not a furniture painter. I much prefer stripping off old paint then staining and finishing. After sanding the bare wood, I stained with a water-based Minwax Vermont Maple. Then, after sanding again, I rubbed an oil -based Minwax Dark Walnut. I sanded that just to give it some character then finished with several coats of Minwax Polycrylic.
Now, I have always heard that you cannot mix oil and water so to speak. However, the instructions on both the oil and the water-based products, said it was ok. Obviously, they have to be dry. Just follow the instructions on whatever stain or protective coat you use, and you'll be fine. I used polyurethane because I wanted a durable water-based finish that will stand up to kids leaving cups, etc.
What I love is how the finish really coordinates with the walnut sideboard and other furniture I have in this room.
I also love that it's rustic, but fits right in with my antique furniture. But the best part is that it was basically free and we made it with what we had!
This project sent me in search of more iron I could use for tables, and I found something at the Salvation Army thrift store for $15 that is my next project...just a peak.
Now I'm off to look for some more wood before it gets thrown away!
I'll be linking up for the first time to Kim's Boring to Better party at Savvy Southern Style, so go be there and say hi!
And, I'll also be linking up to Courtney's Feathered Nest Friday over at French Country Cottage, so go by there too!
Your table is wonderful Anita! It looks fabulous in your home!
Both you and your husband did a great job on that project. Your table looks really good. I cannot wait to see your newest project too!
I love it Anita and am so glad you are linking up. Woo hoo!
Anita, you are both so creative.I love the finished color....it's so rich and matches all the rest of your living room.Pretty!
What a cool idea! Very nice. I also love your sideboard. Thanks for sharing.
That was a fantastic makeover. Love how it turned out. The walnut top is very nice. It looks great in your room.
Very nice and that finish is beautiful! That is a nice size too!
Great idea! Use change is inspired!
What an awesome transformation! Thanks for sharing and for the inspiration.
What a great project and the price was right too!
Great idea. Love that it matches my favorite sideboard.
Your table looks great. I am impressed with BOTH of your talents. It will be fun to see what you do with your new treasures.
Anita...this table looks like something you bought at a furniture store! You did a tremendous job staining it and kudos to your husband for making it out of the wood. Just beautiful!
Now THAT is using your noggin!!!! That is just gorgeous and how clever of you and Luis to think of that! Anita, you have a gift my friend! Beautiful!
Anita and Luis, both of you did a great job.
You see what "can be" and make it happen.
like a metaphor for life.
This is one beautiful transformation! I just now read your Bio. What a full and blessed life you have lead and continue to do so. I am kind of in awe.
What an awesome idea Anita! It looks great. So nice to have your hubby so handy with wood working. Mine could be, but chooses not to be:) Have a great day...stay warm and dry.
Wow! perfect, I love it when that happens around my house.
I like it! I have a little iron table just like that on the deck, too. Of course, I don't have a husband around until the weekend to build it... Plus, he isn't all that crafty anyway... Plus, we don't have any wood lying around.
Guess I'll just admire yours and leave it at that.
Well, aren't you two the clever ones! This is a super idea, Anita. Can't wait for Part II.
I think this is the perfect table for that spot, and if you hadn't told us, we would have never guessed the top was made from scrap wood. GOOD JOB!


glue Archives | Ramblings of a Fake Redhead.
Yay! It's DIY Tuesdays again!
Today I've made (or am in the process of making, I should say) a fabric bowl with the assistance of the humble DIY staple, Mod Podge.
Anyway, today Mod Podge is making us a super-cute bowl made out of funky fabric. As you've probably noticed, today's DIY Tuesdays is in two parts. This is because I am super-unorganised and only just realised this is a 24-hour job. Plus I got home late because I was assisting my lovely boyfriend/partner in crime Chris with an audition for his short film, which was pretty great. This explains why the photos below are dark: the light disappears quickly in Tasmania in the winter!


text:
Q: Generic factory mechanism in C++17 I would like to implement a generic factory mechanism for a set of derived classes that allows me to generically implement not only a factory function to create objects of that class, but also creators of other template classes which take as template arguments one of the derived classes.
Ideally a solution would only use C++17 features (no dependencies).
Consider this example
#include <iostream>
#include <string>
#include <memory>

struct Foo {
    virtual ~Foo() = default;
    virtual void hello() = 0;
};

struct FooA: Foo {
    static constexpr char const* name = "A";
    void hello() override { std::cout << "Hello " << name << std::endl; }
};

struct FooB: Foo {
    static constexpr char const* name = "B";
    void hello() override { std::cout << "Hello " << name << std::endl; }
};

struct FooC: Foo {
    static constexpr char const* name = "C";
    void hello() override { std::cout << "Hello " << name << std::endl; }
};

struct BarInterface {
    virtual ~BarInterface() = default;
    virtual void world() = 0;
};

template <class T>
struct Bar: BarInterface {
    void world() { std::cout << "World " << T::name << std::endl; }
};

std::unique_ptr<Foo> foo_factory(const std::string& name) {
    if (name == FooA::name) {
        return std::make_unique<FooA>();
    } else if (name == FooB::name) {
        return std::make_unique<FooB>();
    } else if (name == FooC::name) {
        return std::make_unique<FooC>();
    } else {
        return {};
    }
}

std::unique_ptr<BarInterface> bar_factory(const std::string& foo_name) {
    if (foo_name == FooA::name) {
        return std::make_unique<Bar<FooA>>();
    } else if (foo_name == FooB::name) {
        return std::make_unique<Bar<FooB>>();
    } else if (foo_name == FooC::name) {
        return std::make_unique<Bar<FooC>>();
    } else {
        return {};
    }
}

int main()
{
    auto foo = foo_factory("A");
    foo->hello();
    auto bar = bar_factory("C");
    bar->world();
}

run it
I am looking for a mechanism that would allow me to implement both foo_factory and bar_factory without listing all classes, such that they do not need to be updated once I add for example FooD as an additional derived class. Ideally, the different Foo derivatives would somehow "self-register", but listing them all in one central place is also acceptable.
Edit:
Some clarifications based on comments / answers:

*

*It is necessary in my case to invoke the factories with (something like) a string, since the callers of the factories use polymorphism with Foo / BarInterface, i.e. they don't know about the concrete derived classes. On the other hand in Bar we want to use template methods of the derived Foo classes and facilitate inlining, that's why we really need the templated derived Bar classes (rather than accessing Foo objects through some base-class interface).

*We can assume that all derived Foo classes are defined in one place (and a manual registration where we list them all once in the same place is therefore acceptable, if necessary). However, they do not know about the existence of Bar, and in fact we have multiple different classes like BarInterface and Bar. So we cannot create "constructor objects" of Bar and save them in a map the same way we can do it for a foo_factory. What  I think is needed is some kind of "compile-time map" (or list) of all the derived Foo types, such that when defining the bar_factory, the compiler can iterate over them, but I don't know how to do that...

Edit2:
Additional constraints that proofed to be relevant during discussion:

*

*Templates and template templates: The Foo are actually templates (with a single class argument) and the Bar are template templates taking a concrete Foo as template argument. The Foo templates have no specializations and all have the same "name", so querying any concrete type is fine. In particular SpecificFoo<double>::name is always valid. @Julius' answer has been extended to facilitate this already. For @Yakk's the same can probably be done (but it will take me some time for figure it out in detail).

*Flexible bar factory code: The factory for Bar does a little more than just call the constructor. It also passes some arguments and does some type casting (in particular, it may have Foo references that should be dynamic_cast to the corresponding concrete derived Foo). Therefore a solution that allows to write this code inline during definition of the bar_factory seems most readable to me. @Julius' answer works great here, even if the loop code with tuples is a little verbose.

*Making the "single place" listing the Foos even simpler: From the answers so far I believe the way to go for me is having a compile-time list of foo types and a way to iterate over them. There are two answers that define a list of Foo types (or templates) in one central place (either with a types template or with tuples), which is already great. However, for other reasons I already have in the same central place a list of macro calls, one for each foo, like DECLARE_FOO(FooA, "A") DECLARE_FOO(FooB, "B") .... Can the declaration of FooTypes be somehow take advantage of that, so I don't have to list them again? I guess such type lists cannot be declared iteratively (appending to an already existing list), or can it? In the absence of that, probably with some macro magic it would be possible. Maybe always redefining and thus appending to a preprocessor list in the DECLARE_FOO calls, and then finally some "iterate over loop" to define the FooTypes type list. IIRC boost preprocessor has facilities to loop over lists (although I don't want a boost dependency).

For some more context, you can think of the different Foo and it's template argument as classes similar to Eigen::Matrix<Scalar> and the Bar are cost functors to be used with Ceres. The bar factory returns objects like ceres::AutoDiffCostFunction<CostFunctor<SpecificFoo>, ...> as ceres::CostFunction* pointers.
Edit3:
Based on @Julius' answer I created a solution that works with Bars that are templates as well as template templates. I suspect one could unify bar_tmpl_factory and bar_ttmpl_factory into one function using variadic variadic template templates (is that a thing?).
run it
TODO:

*

*combine bar_tmpl_factory and bar_ttmpl_factory

*the point Making the "single place" listing the Foos even simpler from above

*maybe replacing the use of tuples with @Yakk's types template (but in a way such that the creator function can be defined inline at the call site of the loop over all foo types).
I consider the question answered and if anything the above points should be separate questions.

A: template<class...Ts>struct types_t {};
template<class...Ts>constexpr types_t<Ts...> types{};

that lets us work with bundles of types without the overhead of a tuple.
template<class T>
struct tag_t { using type=T;
  template<class...Ts>
  constexpr decltype(auto) operator()(Ts&&...ts)const {
    return T{}(std::forward<Ts>(ts)...);
  }
};
template<class T>
constexpr tag_t<T> tag{};

this lets us work with types as values.
Now a type tag map is a function that takes a type tag, and returns another type tag.
template<template<class...>class Z>
struct template_tag_map {
  template<class In>
  constexpr decltype(auto) operator()(In in_tag)const{
    return tag< Z< typename decltype(in_tag)::type > >;
  }
};

this takes a template type map and makes it into a tag map.
template<class R=void, class Test, class Op, class T0 >
R type_switch( Test&&, Op&& op, T0&&t0 ) {
  return static_cast<R>(op(std::forward<T0>(t0)));
}

template<class R=void, class Test, class Op, class T0, class...Ts >
auto type_switch( Test&& test, Op&& op, T0&& t0, Ts&&...ts )
{
  if (test(t0)) return static_cast<R>(op(std::forward<T0>(t0)));
  return type_switch<R>( test, op, std::forward<Ts>(ts)... );
}

that lets us test a condition on a bunch of types, and run an operation on the one that "succeeds".
template<class R, class maker_map, class types>
struct named_factory_t;

template<class R, class maker_map, class...Ts>
struct named_factory_t<R, maker_map, types_t<Ts...>>
{
  template<class... Args>
  auto operator()( std::string_view sv, Args&&... args ) const {
    return type_switch<R>(
      [&sv](auto tag) { return decltype(tag)::type::name == sv; },
      [&](auto tag) { return maker_map{}(tag)(std::forward<Args>(args)...); },
      tag<Ts>...
    );
  }
};

now we want to make shared pointers of some template class.
struct shared_ptr_maker {
  template<class Tag>
  constexpr auto operator()(Tag ttag) {
    using T=typename decltype(ttag)::type;
    return [](auto&&...args){ return std::make_shared<T>(decltype(args)(args)...); };
  }
};

so that makes shared pointers given a type.
template<class Second, class First>
struct compose {
  template<class...Args>
  constexpr decltype(auto) operator()(Args&&...args) const {
    return Second{}(First{}( std::forward<Args>(args)... ));
  }
};

now we can compose function objects at compile time.
Next wire it up.
using Foos = types_t<FooA, FooB, FooC>;
constexpr named_factory_t<std::shared_ptr<Foo>, shared_ptr_maker, Foos> make_foos;

constexpr named_factory_t<std::shared_ptr<BarInterface>, compose< shared_ptr_maker, template_tag_map<Bar> >, Foos> make_bars;

and Done.
The original design was actually c++20 with lambdas instead of those structs for shared_ptr_maker and the like.
Both make_foos and make_bars have zero runtime state.

A: Write a generic factory like the following that allows registration at the class site:
template <typename Base>
class Factory {
public:
    template <typename T>
    static bool Register(const char * name) {
       get_mapping()[name] = [] { return std::make_unique<T>(); };
       return true;
    }
    static std::unique_ptr<Base> factory(const std::string & name) {
        auto it = get_mapping().find(name);
        if (it == get_mapping().end())
            return {};
        else
            return it->second();
    }

private:
    static std::map<std::string, std::function<std::unique_ptr<Base>()>> & get_mapping() {
        static std::map<std::string, std::function<std::unique_ptr<Base>()>> mapping;
        return mapping;
    }
};

And then use it like:
struct FooA: Foo {
    static constexpr char const* name = "A";
    inline static const bool is_registered = Factory<Foo>::Register<FooA>(name);
    inline static const bool is_registered_bar = Factory<BarInterface>::Register<Bar<FooA>>(name);
    void hello() override { std::cout << "Hello " << name << std::endl; }
};

and
std::unique_ptr<Foo> foo_factory(const std::string& name) {
    return Factory<Foo>::factory(name);
}

Note: there is no way to guarantee that the class would be registered. The compiler might decide not to include the translation unit, if there are no other dependencies. It is probably better to simply register all classes in one central place. Also note that the self-registering implementation depends on inline variables (C++17). It is not a strong dependence, and it is possible to get rid of it by declaring the booleans in the header and defining them in the CPP (which makes self-registering uglier and more prone to failing to register).
edit

*

*The disadvantage of this answer, when compared to others, is that it performs the registration during start-up and not during compilation. On the other hand, this makes the code much simpler.

*The examples above assume that the definition of Bar<T> is moved above Foo. If that is impossible, then the registration can be done in an initialization function, in a cpp:
// If possible, put at the header file and uncomment:
// inline
const bool barInterfaceInitialized = [] {
   Factory<Foo>::Register<FooA>(FooA::name);
   Factory<Foo>::Register<FooB>(FooB::name);
   Factory<Foo>::Register<FooC>(FooC::name);
   Factory<BarInterface>::Register<Bar<FooA>>(FooA::name);
   Factory<BarInterface>::Register<Bar<FooB>>(FooB::name);
   Factory<BarInterface>::Register<Bar<FooC>>(FooC::name);
   return true;
}();

A:
What I think is needed is some kind of "compile-time map" (or list) of
  all the derived Foo types, such that when defining the bar_factory,
  the compiler can iterate over them, but I don't know how to do that...

Here is one basic option:
#include <cassert>

#include <tuple>
#include <utility>

#include "foo_and_bar_without_factories.hpp"

////////////////////////////////////////////////////////////////////////////////

template<std::size_t... indices, class LoopBody>
void loop_impl(std::index_sequence<indices...>, LoopBody&& loop_body) {
  (loop_body(std::integral_constant<std::size_t, indices>{}), ...);
}

template<std::size_t N, class LoopBody>
void loop(LoopBody&& loop_body) {
  loop_impl(std::make_index_sequence<N>{}, std::forward<LoopBody>(loop_body));
}

////////////////////////////////////////////////////////////////////////////////

using FooTypes = std::tuple<FooA, FooB, FooC>;// single registration

std::unique_ptr<Foo> foo_factory(const std::string& name) {
  std::unique_ptr<Foo> ret{};

  constexpr std::size_t foo_count = std::tuple_size<FooTypes>{};

  loop<foo_count>([&] (auto i) {// `i` is an std::integral_constant
    using SpecificFoo = std::tuple_element_t<i, FooTypes>;
    if(name == SpecificFoo::name) {
      assert(!ret && "TODO: check for unique names at compile time?");
      ret = std::make_unique<SpecificFoo>();
    }
  });

  return ret;
}

std::unique_ptr<BarInterface> bar_factory(const std::string& name) {
  std::unique_ptr<BarInterface> ret{};

  constexpr std::size_t foo_count = std::tuple_size<FooTypes>{};

  loop<foo_count>([&] (auto i) {// `i` is an std::integral_constant
    using SpecificFoo = std::tuple_element_t<i, FooTypes>;
    if(name == SpecificFoo::name) {
      assert(!ret && "TODO: check for unique names at compile time?");
      ret = std::make_unique< Bar<SpecificFoo> >();
    }
  });

  return ret;
}

A: In C++17, we can apply the fold expression to simplify the storing process of generating functions std::make_unique<FooA>(), std::make_unique<FooB>(), and so on into the factory class in this case.

To begin with, for convenience, let us define the following type alias Generator which describes the type of each generating function [](){ return std::make_unique<T>(); }:
template<typename T>
using Generator = std::function<std::unique_ptr<T>(void)>;

Next, we define the following rather generic functor createFactory which returns each factory as a hash map std::unordered_map.
Here I apply the fold expression with the comma operators.
For instance, createFactory<BarInterface, Bar, std::tuple<FooA, FooB, FooC>>()() returns the hash map corresponding to your function bar_factory:
template<typename BaseI, template<typename> typename I, typename T>
void inserter(std::unordered_map<std::string_view, Generator<BaseI>>& map)
{
    map.emplace(T::name, [](){ return std::make_unique<I<T>>(); });
}

template<typename BaseI, template<typename> class I, typename T>
struct createFactory {};

template<typename BaseI, template<typename> class I, typename... Ts>
struct createFactory<BaseI, I, std::tuple<Ts...>>
{
    auto operator()()
    {
        std::unordered_map<std::string_view, Generator<BaseI>> map;
        (inserter<BaseI, I, Ts>(map), ...);

        return map;
    }
};

This functor enables us to list FooA, FooB, FooC, ... all in one central place as follows:
DEMO (I also added virtual destructors in base classes)
template<typename T>
using NonInterface = T;

// This can be written in one central place.
using FooTypes = std::tuple<FooA, FooB, FooC>;

int main()
{
    const auto foo_factory = createFactory<Foo, NonInterface, FooTypes>()();
    const auto foo = foo_factory.find("A");
    if(foo != foo_factory.cend()){
        foo->second()->hello();
    }

    const auto bar_factory = createFactory<BarInterface, Bar, FooTypes>()();
    const auto bar = bar_factory.find("C");
    if(bar != bar_factory.cend()){
        bar->second()->world();
    }

    return 0;
}