fabiochiu/medium-articles huggingface dataset:
If Polanski Can Still Win Awards For A Film About A Falsely Accused Man, Did MeToo Really Cause Any Lasting Change in Hollywood?
By: Marie Eberle
Tags: Social Justice, Feminism, Movies, Hollywood, Film

But as horrifying as all this already is, it’s not all there is to this story.

The cherry on top is that he didn’t win the Grand Jury Prize for a random biopic or political thriller. He won it for An Officer and a Spy, which is based on a 2003 novel that revolves around the real-life events of the Dreyfus Affair. Known as L’affaire Dreyfus in France, this political scandal has become rallying cry against modern injustice, miscarriage of justice, and antisemitism in the Francophone world.

“The military prison at Rennes.” Dreyfus was incarcerated here during his second trial. Source: An issue of La Petit Journal detailing the Dreyfus Affair.

The Dreyfus Affair spanned more than a decade from 1894 to 1906.

It was kicked off when 35-year-old French artillery officer Alfred Dreyfus, of Jewish descent, was convicted of treason. Based on evidence falsely attributed to him, Dreyfus stood accused of communicating French military secrets to a German military attaché in Paris and was put on trial in the midst of a virulently anti-Semitic press campaign.

The scandal laid bare deep rifts that divided the Third French Republic and shone a spotlight on the depth of anti-Jewish hostility in France at the end of the 19th century. Religious minorities had officially been protected by the law since 1787, but Jewish people continued to encounter widespread discrimination.

Polanski’s An Officer and a Spy picks up in 1896 when the head of the army’s intelligent service, Lieutenant Colonel Georges Picquart, discovered actual evidence that pointed towards the real spy. Dreyfus had been accused of authoring a note that shared confidential French military information about newly developed artillery weapons, but Picquart was able to establish that the handwriting on the note perfectly matched the handwriting of another French officer, Major Walsin-Esterhazy — who was also known to have communications with the German attaché. Further, Esterhazy didn’t have the best reputation and also faced an enormous amount of debt.

A sketch of the trial; Dreyfus hears the sentence of the Council of War. Source: Flickr

The combination of these discoveries led Picquart to develop the theory that monetary reasons made Esterhazy commit the crimes Dreyfus was convicted for. But when Picquart shared his findings with his superiors at the French army, he was rebuked. Nobody wanted to admit any flaw in the original investigation.

It took an enormous amount of private and public campaigning until Dreyfus was finally exonerated in 1906, 10 years after Picquart had started his initial investigation into the matter.
Visualizing Busy-ness
By: Joe Chop
Tags: Data Visualization

Visualizing Busy-ness

In a recently NFPA published paper analyzing fire department response metrics, the authors defined and discussed visualization techniques of a department’s workload or “busy-ness”. As a preliminary step, a fire department can explore this level of busy-ness by analyzing and visualizing the number of companies/units that are engaged on assignment per hour.

This sounds great in theory, but breaks down in practice. Attempting to build these types of visualizations natively with RMS, CAD, or even worse, manually using spreadsheet exports, will surely lead to headaches and frustration! Trying to do this dynamically, with varying time ranges, field filters, and streaming incoming data is downright impossible.

Fortunately, we recently integrated an exciting new Swimlane visualization. A Swimlane visualization displays the behavior of a metric value over time aggregating across a data field. Each lane displays a different value of the selected field, with the relative size of the metric for that field over each time indicated by the color of the symbol at that time.

How might we do this in our Dashboards?

Units Engaged Per Hour

Lets visualize units engaged per hour as defined in the reference paper:

“Units engaged per hour refers to the total number of emergency events to which apparatus are assigned within any one-hour time interval. Units engaged per hour is measured in one-hour intervals though the total time assigned for a particular unit may be shorter or longer than a single hour”

From the Visualization Tab, create a new Swimlane, and select the apparatus index

Creating a new Swimlane visualization

2. Now set the visualization options

a) Set Metrics to Count, because we are “counting’ the number of responses over the time period in question.

b) Choose a Terms aggregation with field, apparatus_data.unit_id to display one unit per row. Don’t forget to increase the Size to the number of units you want to display

c) Add a sub aggregation on the time the event was opened, description.event_opened.

d) Press the play button to preview. Don’t forget to increase the total time range on top menu bar if needed.

Visualization Options

You should now see a visualization similar to this:
How ownership of art works on the Maecenas blockchain platform
Tags: Investment, Art, Fine Art, Blockchain, Cryptocurrency

From July 25 we were delighted to launch our beta auction on the Maecenas blockchain platform. The auction of Andy Warhol’s 14 Small Electric Chairs on Maecenas generated international attention and represents a watershed moment for art on the blockchain.

The beta is still ongoing, so if you want to start using the platform yourself and participate in future auctions, it’s not too late to sign up — just follow the instructions here and be sure to fund your wallet with ART tokens, Ethereum or Bitcoin.

You can also find out more about the technology that underpins the Maecenas platform, as well as our underlying philosophy, in our briefing documents.

What happens, though, once you’ve signed up, placed a bid and successfully become the owner of a fractional digital share in one of the world’s most famous artworks? What do you, as an investor, get for your money, and how are your ownership rights protected?

Here’s how we solve the issue of ownership for artworks sold on the Maecenas blockchain platform.

Who owns a piece of art when the blockchain becomes involved?

Firstly, the original owner of an artwork sold in a Maecenas auction will remain in control of the piece. This is because — for now — sellers can only list up to 49% of of the economic interests of their artworks.

Next, ownership of the artwork is transferred to a Special Purpose Vehicle (SPV) prior to the auction itself. The shares of this SPV are then sold so investors can participate in the economic interests of the artwork.

It’s important to stress that Maecenas is simply a decentralised auction platform that can be used by art traders, collectors, gallery owners and others for a number of use cases. By using blockchain technology to underpin transactions, we ensure this activity is as transparent as possible — and by using an SPV, we ensure investors’ economic interests and ownership rights aren’t contingent on Maecenas existing (so there’s no threat of Maecenas disappearing overnight).

As for what happens to the physical artwork: this may be stored by the original owner in some circumstances, but more commonly will be kept by a third-party in a purpose-built secure facility (such as a freeport). Our hope is that investors will then be able to arrange private viewings of the artworks in which they own shares, as well as collect dividends when the artworks are leased to galleries and museums for profit.

Art on the blockchain offers greater security

That Maecenas is built with blockchain technology means that transactions are secured by the incredible power of the blockchain ‘ledger’, making the Dutch auction process private yet more transparent than you would find in a traditional auction.

The nature of the blockchain also makes transactions and other key information tamper-proof, which will also have a positive impact on other matters such as the overall valuation of artworks and helping with some issues surrounding provenance.
Latest picks: A Step-by-Step Tutorial for Conducting Sentiment Analysis
By: Tds Editors
Tags: The Daily Pick

Get this newsletter By signing up, you will create a Medium account if you don’t already have one. Review our Privacy Policy for more information about our privacy practices.

Check your inbox

Medium sent you an email at to complete your subscription.
Summer Somber
By: Jackie Ann
Tags: Poetry, Poetry On Medium, Summer, Poetry Writing, Change

pixabay.com

A chilled autumn breath

paints the harvest moon

and colors this broken summer

in shades of decay.

But this time I am not sad

as it crumbles.

Let it fade away.

This summer has been

a crazy caricature

of all the things I love

as the planet’s pain became

so strong, it reached

the heavens above.

And before the wishing star could fall,

this world had already torn it.

So as a warm summer sky

grows barren and cold,

not even the birds

will mourn it.

© Jacqueline Ann 2020
The Beauty of a Silent Thanksgiving
By: Bruce Noll
Tags: Poetry, Celebration, Abundance, Thanksgiving, Life

Today is not the same as yesterday

My gratitude abounds even more.

Today is not the same for me

It’s not just the day, it’s me

Thanksgiving was a day of family,

many of whom are now gone.

In this silence, they come back to me

with great fullness in their gifts.

I remember days like this in which I worked

and in many of the days thereafter.

They were black days of retail moments

yet not for me, my moments were elsewhere.

I remember November snows, cold nights,

and minutes that I was less than happy.

Celebrations seemed to begin back then,

but what did I know? I was unaware.
Atrophy
By: J.D. Harms
Tags: Poetry, Musing, Image, Madness, Forgetting

Atrophy

A Poem

Photo by Toa Heftiba on Unsplash

Write a decline that is not

a person, a car

or a town…

Watch for release

when it comes time

for the retreat

from the solid rock banks

of the Assiniboine, the Red

come out of the valley

with something to show

everybody

like a new hat, or cape

something anachronistic

Let go of those things

that have a home in

your junk drawer

for years

Become free; set other things

free

Can’t tell what hurdle

the heart arrives at next

no way to prepare

just to read and begin the interpretation

as soon as possible

Conflicting minds are raised

here and finding

the sentiments too covered

in gravy

I have to decline

And a comment goes awry

and a window broke

and something else that

I won’t ever remember

because I paid myself to forget it
How to Clean Data Processing with Geopandas and Pipes()
Tags: Geopandas, Method Chaining, Data Processing, Data Science, Pandas

For typical data preprocessing steps, we perform many steps in a sequence. So, we often produce several unnecessary outputs in each intermediate step.

It gets messy when we have several preprocessing operations in sequence, and we care only about the last step or the output. Most of Jupyter Notebook data preprocessing tend to have similar preprocessing scenarios.

An excellent way to deal with such situations is to use the Pipe() function in Pandas/Geopandas. The pipe function allows you to combine several operations in sequence and only produces the final output. It is flexible and can take user-defined functions.

Performing several processes in a sequence is called method chaining and can improve code readability extensively. It also removes the cognitive burden of giving names for the intermediate variables.

Method chaining, also known as named parameter idiom, is a common syntax for invoking multiple method calls in object-oriented programming languages. Each method returns an object, allowing the calls to be chained together in a single statement without requiring variables to store the intermediate results. — Source

This article will go through an example of data preprocessing using Pandas and Geopandas with Pipe function.

First, I will go through the complete data preprocessing without using method chaining. Then we will see how to use Pipe() method chaining to improve code readability and have a cleaner data preprocessing.

Tasks

For this tutorial, I will perform the following tasks.

Drop Empty coordinates from the DataFrame Convert the DataFrame to a Point GeoDataFrame Perform Spatial with the Point GeoDataFrame and the Neighbourhood Polygon data. Perform Spatial Join Aggregations back to the Neighbourhood Data (Count the number of Points in Each neighborhood).

We will use two datasets, a CSV file with coordinates (Philadelphia Parking Violations dataset) and a shapefile for Philadelphia Neighbourhood polygons. After we read the data with Pandas and Geopandas, we will perform the above tasks.

So, let us get started.
Feirm Weekly — 21/09 to 27/09. Kayda (Service Layer)
Tags: Blockchain, Cryptocurrency, Marketplace, Feirm

Kayda (Service Layer)

To kick-start the week, work has been done on the Kayda service layer to improve its data storage capabilities. This has been done to accommodate media attachments in messages for the Feirm Marketplace in the future. Subsequently, adding support for this type of data (files) has opened up the Kayda service layer even more in terms of features and usability.

Feirm Blockchain

Over the past week we still have been preparing the new blockchain for mainnet release. Unfortunately, we have run into an issue with the Proof of Stake consensus not submitting blocks correctly to the network, which ultimately results in peer banning.

These actions have been narrowed down to what we believe is the budget functionality associated to each block. We are in the process of applying fixes so that valid blocks are generated on the network.

Accounts Provider

Recently, work was done to separate the accounts and authentication implementation that the Feirm Marketplace uses, and put it into its own service. This was done in light of one of our goals as a project — to provide secure applications which are easy to use and private by design.

We believe that when it comes building applications that are easy to use, it is also important to make them easily accessible. By having a single Feirm account, this will allow you to access all of the Feirm platforms with no additional information required.

However, if you are an individual who does not like to put all of their eggs in one basket, you can create an account for each platform like normal. The goal after all is to make our platforms accessible for all of our users, and we are against “locking” our users in.

Also not to mention that the same cryptography and encryption methods are applied to your data. All sensitive information is encrypted client-side in the browser before being sent to the accounts service. We do not want to know any more than we have to about our users — and for the minimal amount of data we have got, we want it protected at all times.

Documentation

Throughout the week, time has been spent bringing documentation for the Feirm project up to scratch. The documentation now showcases the following information:

Overview of the Feirm blockchain

Features of the Kayda service layer

Technical overview of the Kayda service layer

Technical implementation of the Marketplace

Additionally, our documentation has now been migrated to Netlify from GitHub pages, which was a topic we covered in our previous weekly update.

As always, if you wish to read our documentation, you can do so here.

Closing Statement

That is all for last week! Thank you for reading, and please remember that you can check us out on our social medias below:
Impact of UGC’s Decision to Bring Back 4-year UG Degree
By: The Education Growth Summit
Tags: Tegs, Degree, 4 Year Degree, Education, UGC

Picture source: Pixabay

Did India have 4 year UG degrees?

Four years after the four-year undergraduate program (FYUP) was scrapped, the University Grants Commission has recommended the re-introduction of 4-year undergraduate degrees. According to experts, such a course will make it easier for Indian students to pursue higher education abroad. However, this proposal might fail to succeed as Indian universities lack proper infrastructure and facilities.

The FYUP program was introduced in Delhi University by former vice-chancellor Dinesh Singh but was soon scrapped. In 2013 when Singh had introduced this, the government was forced to shut it down due to protests from students and teachers. However, to promote the prospects of foreign education both UGC and NEP 2019 have taken a decision on reintroducing this program.

The implication of 4 year degrees

“Several foreign universities do not recognize a three-year undergraduate degree thereby diminishing an Indian Student’s opportunity to pursue higher education abroad. The four-year program aims to clear this roadblock to allow an aspirant to apply for master’s and other higher education courses in a foreign varsity” says Bhushan Patwardhan, vice chairman of UGC. Most foreign universities require a minimum of sixteen years of education which is twelve years of school and four years of a college education. In India, we follow the pattern of twelve years of school and three years of a college education. While there are some foreign educational institutions that accept India’s fifteen years of education it limits the choices for Indian students.

What will a 4 year degree entail?

The UGC report prepared four-member panel, headed by P. Balaram, former director of Indian Institute of Science (IISc) Bangalore suggests allowing students who graduate with a four-year degree to enroll for PhD program directly. If this happens then there won’t be a need for master’s degrees.

Picture source: Pixabay

A four-year UG course will involve intensive research in it and students will have to be prepared to take on such challenging research elements. As a result of this, they will be skilled enough to take on research projects right after graduation.

At the time the question arises as to whether the quality of education will deteriorate as a consequence of allowing all graduates into doctoral program. Most people feel it is necessary to have a master’s degree before pursuing a PhD as it doesn’t seem practically possible otherwise. The minimum standards for admission to the PhD program are pretty high and this new policy might compromise the quality of research.

Written by: Raagini Ram, Team TEGS
5 Essential YouTube Channels For Coders
By: Sunil Sandhu
Tags: JavaScript, Web Development, Software Development, Computer Science, Programming

1. Fun Fun Function

Fun Fun Function: Now defunct. Its creator, MPJ, took his excellent Quora question-answering abilities and translated that into a YouTube channel that currently has around 250k subscribers. Don’t let its defunct-ness stop you from checking this channel out, as there’s about 5 years worth of content on there for you to trawl through.

When he explains a concept, he explains it deeply. For example, MPJ has a video series on the concept of Testing, which is about 100 minutes long, spread across 7 videos. He doesn’t just show people how to write tests (which is what most tutorials miss the point of explaining such concepts by doing), but rather explains why we should write tests, what methodologies we can use, the pros and cons of each, along with writing the most basic of tests and then adding in complexity, step-by-step.
The Art Of Conversation Is Dying
By: Andy Johnny Young
Tags: Communication, Life, Conversations

Arnold Lakhovsky, The Conversation (circa 1935)

‘Conversation (noun): talk between two or more ​people in which ​thoughts, ​feelings, and ​ideas are ​expressed, ​questions are ​asked and ​answered, or ​news and ​information is ​exchanged.’

I’m really worried that the verbal conversation is dying. I fear that one day all people will ever talk about is the weather or what they ate for lunch (even though it’s probably on Instagram). Some people just can’t carry a conversation, some are happy to sit by listen and contribute now and again. Others may not feel confident or have enough conviction in the point or ideas they are trying to convey. One of the troubles with technology driven communication is that you have a lot of time to compose and put your point of view across. This causes you to tailor your response, lose some intensity or mis-communicate your point. Having a verbal conversation lends itself to being more open, honest and generally a more positive experience.

Being incredibly self-centered in a conversation is probably one of the worst things you can do to stifle or break-up a conversation. There are generally two reason this happens. You firmly believe that everything you say has more weight and value than others or that you have confidence issues that mean you have to seek validation or approval from your peers. I am very conscious of the fact I come across as self-centred at the moment and it’s down to my confidence. This post is a reminder to myself to take my own advice. It pains me to write this as a basic guideline of how a conversation works and how to sit down and have a ‘conversation’

How to have a better conversation:

1) Actually fucking listen to what the person is saying.

2) If you don’t hear something clearly, don’t pretend you heard it. Ask them to repeat themselves.

3) Ask relevant questions, don’t be afraid to ask someone to clarify if you’re unsure

4) Chill the hell out, if what you are wanting to say is so important you’ll remember it instead of blurting it out and disrupting the flow of conversation.

5) It’s okay for people to have different opinions and for them to challenge your point of view. This is not a cue to get defensive or become entrenched in your view. Fight your corner but also don’t be afraid to concede that you may be wrong

6) Include other people in the conversation, reach out ask someone’s opinions or thoughts on the subject.

These are just a few simple things that people (myself included) do forget and are worth remembering. Have yourself a better conversation this Christmas.

Thanks for reading,

Andy
Neighborhood Characters
By: Katerina Canyon
Tags: Writing Prompts, Poetry, Poetry Writing, Creative Writing, Poetry In Form

Oftentimes, when I walk around my neighborhood, there is one person who catches my attention. When that happens, I take a few extra moments to consider why. Many days, it has left me a bit embarrassed because the person usually catches me staring. When that happens, I smile and turn my attention elsewhere.

When I take extra time to consider the person, I can often come up with a poem about him or her. I find that poems about people that I see when I am out and about tend be some of my most intimate poems, as they often say more about me than the person (note my poem below as an example).

Another great example is the poem ‘Reality Series’ by Tina Cane. She begins her poem describing a neighborhood junkie who is still around after many years. Considering this man’s age makes the speaker think about her own age. She then thinks about her own life and the concept of faith.

Prompt: Take a walk through your neighborhood. Find a person who stands out to you and write a poem about that person. Why does this person stand out? What is this person doing? What does this person reveal about your neighborhood? What does this person reveal about you? How do you feel about this person? How do you feel about what this person is doing? How do you feel about yourself while you watch this person? Think also about the scenery, how the person is dressed, and the type of person you are observing. What do these features say about society as a whole. Try to incorporate at least a few of these ideas into your poem.

Form Challenge: If you are looking for an extra challenge, try writing your poem using tercets.

Feel free to share your poem in the comments section.

Katerina’s Character Poem

Katerina Canyon served as Poet Laureate of Sunland-Tujunga, California from 2000 to 2003. She has a MALD from The Fletcher School of Law and Diplomacy and a BA in English, Creative Writing, and International Studies from Saint Louis University. She has been published in the New York Times and Huffington Post. Her most recent poetry was published in Black Napkin. Her latest collectionChanging the Lines is currently available on Amazon. You can learn more about Katerina at PoeticKat.com.
Here’s how we could get internet access to school kids.: The Five Best Ideas of the Day: May 1, 2020
By: Aspen Institute
Tags: Jobs, Stimulus, Vaccines, Internet Access, The Five Best

A nonpartisan forum for values-based leadership and the exchange of ideas.

Follow
Millions of Dead Fish Wash Up On Shores Around The World: Maryland, Brazil, New Zealand
By: Kevin Minott
Tags: Around, All Posts, Bay, World, Birds

At the start of the new year reports of 100,000 fish dying in an Arkansas river was shocking to say the least. In this age of environmental toxins and absolute disregard for environmental regulations, my first thoughts were that this was an isolated event. I figured once the government ran some tests the it would become clear who dumped what toxins where, and why this particular group of fish ‘Drum’ were most affected. As more info was revealed it became apparent that no single pollutant was at play.





[caption id=”attachment_3141" align=”alignnone” width=”560" caption=”The fish and bird deaths are now global and number in the millions. “]

[/caption]

A pollutant would have affected cross species. Stephens says, “Ninety-nine percent of them were Drum, which is a bottom feeder. It’s not a game fish in Arkansas.”





To make things worse, thousands of birds have fallen from the sky in Louisiana and Arkansas. Early reports showed that that they died of internal trauma mid air. Across the Atlanctic ocean reports are now coming out of Sweden that birds are falling out of the sky there. Being a good sport I was still willing to give government officials the benefit of the doubt. Perhaps these were in fact separate isolated incidents, freak of nature events.





This morning however, the media is once again flooded with new accounts of millions of dead fish washing up in Maryland’s Chesapeake Bay in the U.S and on shores are far away as New Zealand. These “isolated incidents” are now a global event. Each death zone is located thousands of miles and several oceans apart. The numerous global events clearly show that the theories presented by biologists so far are ludicrous in nature. No single thunderstorm, high altitude hail, fireworks, or environmental pollutant could travel that far and cause the simultaneous death of fish around the world.

If there was ever a need for government transparency during an investigation this would be it. We now live in a world of instantaneous information sharing, in the coming days I expect to see a deluge of videos and photos from around the world showing the full scale of this epidemic. What do you think is the cause, leave a comment below?

Photo credit: Bohemianism



You can follow me here: @KevinMinott

Millions of Dead Fish Wash Up On Shores Around The World
Kineticex — Pioneer in highly secured Centralized Exchange
By: Kineticex Support
Tags: Trading, ICO, Blockchain, Cryptocurrency, Decentralized Exchange

We’ve seen and heard about different types of exchanges, prominent these are classified into two major categories -Centralized and Decentralized. Decentralized exchanges have been the talk of the times these last few years, because of the highly secure working conditions, which was a fantastic development. However, the decentralized exchange is nowhere close to the perfect and ideal exchange it has its own set of disadvantages.

Let’s take a look at the disadvantages of decentralized servers. First of all the decentralized exchange is bulky and is difficult to use. Secondly, a decentralized network is suited best for a large organization. Specific communication becomes a problem with a decentralized system.

A centralized network is easy to use and is controlled by the people at the top of the ladder. The user experience is far richer than in any decentralized system. Since 64% of industries are either in the startup stage or in a mid-range it is better to employ a decentralized server. All these just say the positives about the centralized exchange, but one major flaw in centralized exchange is its lack of security. This is where Kineticex comes in with a trump card, the kineticex team has come up with the idea to collaborate blockchain with the centralized exchange.

Kineticex Centralized has the following features to make it unique.

PAMM — (Percentage Allocation Master Module) is a technology allowing a trader or investor to follow a trading strategy of another Professional Trading Manager. Manager executes his/her personal funds through the PAMM, and by the use of PAMM technology the Manager’s trading strategy is replicated on the Follower’s account.

MARGIN TRADING

Margin trading is a method of trading that involves borrowing funds. It allows you to trade more than you’d be able to trade using your funds only. Kineticex.com currently offers margin trading with 1:5 leverages on BTC/USD, BTC/EUR, ETH/BTC and ETH/USD pairs and many added then.

Also, Kineticex has joined hands with Smartfund and will closely work with them to help enhance the success of their ICO which begins in 9 days.

Follow us:

Exchange: https://kineticex.com/

Follow us in Twitter: https://twitter.com/KineticexE

Like and share: https://www.facebook.com/kineticex.io/

Join us Telegram: https://t.me/kineticexexchange

LinkedIn: https://www.linkedin.com/company/kineticex-revolution-ltd/
Photojournalist: Jackelin Diaz
By: Teresa Wierzbianska
Tags: Poetry

“The happiest moment was my quinceanera party.It was fun because all my family and friends were there.The saddest moment was when my dad and grandma died.It was sad because I loved them very much.”*Nods head* “I have been depressed like I said when my my dad died I wanted to be left alone.My angriest momets where when my mom got me in trouble for fun.It was all because my sisters lied on me so my mom would hit me with a chancla. Yes, sadly I have been bullied by the way I dressed and spoke.I remember one name they called me ‘pipilandro’.I’m over it now I don’t care what people think of me.’’
JavaScript Algorithms: Balanced Binary Tree (LeetCode)
By: Anatolii Kurochkin
Tags: JavaScript, Leetcode, Algorithms, Trees, Data Structures

Description

Given a binary tree, determine if it is height-balanced.

For this problem, a height-balanced binary tree is defined as:

a binary tree in which the left and right subtrees of every node differ in height by no more than 1.

Example 1:

Input: root = [3,9,20,null,null,15,7]

Output: true

Example 2:

Input: root = [1,2,2,3,3,null,null,4,4]

Output: false

Example 3:

Input: root = []

Output: true

Constraints:

The number of nodes in the tree is in the range [0, 5000] .

. -104 <= Node.val <= 104

Solution

First of all, let’s understand what is a binary tree. The binary tree is a data structure where each node has at most two children. And each node we can consider as a binary tree.

And what is the height of a binary tree? So, it’s debatable. For example, we have a node without any children. This node can either be viewed as 0 or 1. We are going to say that each node without children has a height of 1.

Let’s look at the examples:

Example 1:

The node 9 has no children and a height of 1. The node 15 has no children and a height of 1 as well as node 7. Node 20 has the same height in the left and right nodes.

And the root node has a height of the left node of 1 and the right node of two, the difference between is 1. In this case, we’re going to return true because 1 is not greater than 1.

Example 2:

In this example, let’s look at the root node. The left node has a height of 4 and the right node has a height of 1. The difference between them is greater than 1. So, in this case, we’re going to return false.

Let’s come up with a solution:

Thanks for reading! Looking forward to your feedback. See you soon ✌️

Enjoyed this article? If so, get more similar content by subscribing to Decoded, our YouTube channel!
A Page In the Snow Book By Don Feazelle
By: Don Feazelle
Tags: Flash Fiction, Winter, Survival, Mindfulness, Observation

A Page In the Snow Book By Don Feazelle

In response to this prompt from The Scene & Heard

Each footstep interrupted the silence as heavy boots crunched through the deep snow. Luke paused to rest. He watched as his warm breath condensed into a small rising cloud that dissipated in the midday sun. The sunlight striking the microscopic water particles created a momentary array of colors which slowly disappeared.

Luke sighed thinking, “I have walked for two hours, not a single deer, rabbit, or fowl in sight. Nothing but this eery silence, an occasional rustling of the trees when a breeze stirred.”

Despite the mid-twenty degree temperatures, sweat broke out around Luke’s head and neck. While resting, he took off his hat and loosened his scarf.

The anxiety was building. Luke’s family relied upon the game he brought back to the secluded hunting cabin. Luke, Corrine and four of their grandkids sheltered there for the winter. Food stores were running low; his adult children left two weeks ago for supplies.

Three years now passed, World War three had taken its toll on civilization. With the technological collapse, water, food, medicine, the creature comforts of the twenty-first century were scarce. Access to electricity, running vehicles, and fuel more scarce.

Luke’s survival training in the military had paid off. Frequently, we hunted to put meat on the table.

Spotting several carefree snow chickadees frolicking on a bush, Luke stood still. He smiled, a reminder that worrying would solve nothing. The chickadees made time to play even during the barren winter.

Several minutes of contemplation while observing the free-living little birds, a rustling, he saw the feral pig foraging through the trees. Without taking his eye off the creature, luke cautiously and slow grabbed his longbow and an arrow from the quiver.

The animal gradually moved into his clear line of sight. Luke let his arrow fly. His aim? TRUE.
by Martino Pietropoli
By: Martino Pietropoli
Tags: Humor, Comics, Cartoon, Friday

First thing in the morning: a glass of water and a cartoon by The Fluxus.

Follow
What is the B21 token?
By: Shivank Mishra
Tags: B21 Token, Investment, Cryptocurrency, B21 Invest

B21 token is an Ethereum based ERC20 token that forms the base of all transactions, fees, and rewards on the B21 mobile app. You will be able to buy B21 tokens directly on your mobile app and hold it to enjoy exclusive benefits.

What utility does it serve?

Different utility tokens have different functionality based on the nature of the project and the B21 token also serves a purpose by forming the base of all transactions, fees, and rewards on the B21 mobile app.

B21 token gives exclusive rewards to users -

VIP Account — You can become a VIP member by holding 300 B21 tokens in your wallet. By becoming a VIP member, you can enjoy low fees while buying and selling crypto coins on the B21 app.

How to buy B21 tokens?

At present, you can buy B21 tokens on the B21 app using your credit card/debit card, bank transfer, and other local payment methods based on your location.

You can also earn B21 tokens as a reward on the B21 app -

Sign Up Reward — Complete your profile and you will earn a $2 signup reward. Welcome Bonus — Earn B21 tokens worth $5 as a welcome bonus on your first investment of $50. Also, on every next investment of $100, earn a $5 reward. Refer and earn — Refer your friends to try out the B21 app and both you and your friend will earn $2 on successful registration.

What’s more with B21 token in future?

Listing B21 token on Exchange — We are talking to some of the top tier exchanges and will soon announce on this

— We are talking to some of the top tier exchanges and will soon announce on this B21 Card — Very soon, you will be able to use the B21 International Card to spend your cryptos anywhere

Stay Safe. Invest Regularly.

JOIN US ON:

Twitter | Facebook | Instagram | LinkedIn | Telegram | Reddit
The Video Scam
By: Florian Kahlert
Tags: Metrics, Advertising, Videos, Online Marketing, Digital Marketing

The other day I posted a quick comment on Linkedin regarding the new fad of auto start videos that follow you below the fold to the lower right and keep playing, some with auto-on audio and hard to find buttons to shut them off.

I got some comments, particularly regarding the fact that advertisers “asked” for that kind of implementation. That may be the case but if they did, I don’t think they actually knew what they were asking for.

These implementations are nothing but a ripoff. The advertiser is assured (supported, I am sure, with beautiful certified delivery numbers) that their ads are “seen” by humans, in full length, in view and in compliance with IAB / MRC specifications. But although the reported numbers show that this is awesome inventory worth paying for, I don’t think the case can be made that these ads create a positive connection between the brand and the advertiser. I would suggest quite the opposite. The advertisers are essentially fleeced since ultimately they do want to build brand connection.

These units are specifically created to generate high priced video inventory. They are placed in ways that makes them hard to shut off in time to insure compliance. This help starving publishers pay the rent, but user experience is an afterthought. It would be nice to see some numbers from independent measurement companies to see the actual impact and if I were an advertiser spending money on this I would demand seeing the impact those ads actually deliver.
Relationshapes!
By: The Hairpin
Tags: David Rees, Beyonce, Comics

by David Rees

When you wake up beside your lover in the late afternoon, bathed in lazy caramel light, and you hear violins sighing in a distant room … that’s Relationshapes! I did that!

I had a feeling this would happen: Ever since I announced the Relationshapes Text Hotline, I’ve been overwhelmed with text messages. Here’s just one example that showed up on my Verizon cell phone:

“Hi Rshapes!!!!! Its me Beyonce famous singer. Yr comic is so good!!!!!! Always makes me LOL. Always astonished w yr ability 2 cut 2 heart of the matter — subtle yet bludgeoning — reminds me of Nation of Ulysses, great band. call me if u want to ride on my sailboat. I think it wld B really fun. Hope 2 hear from U, think Im falling in love w you.”

Text “RELATIONSHAPES” to 2309599234!

Previously: Relationshapes: Part Six

David Rees is a former political cartoonist. Now he is an artisanal pencil sharpener.
Trenchant Remark
By: Jessica Lee Mcmillan
Tags: Poetry, Equality, Hate, Humanity, Ignorance

Your ignorance is plain when the gate swings out,

tongue agitated with half-thought lines

but I read the surveilled fence

carving up lives

in the trenchant remark of your eye

I mark you back with my gaze

hardening my surface to reflect

your razor-wire stare

as one that betrays your wilderness,

as one that broadcasts

your compensating lower brain

barricading any chance of loving yourself
Real Housewives Tag Lines: Immigrant Edition
By: Arijana Ramic
Tags: Real Housewives, Humor, Immigrants, Comedy, Satire

They say money doesn’t grow on trees but I make enough money for me and my family back home.

I don’t measure my ingredients or my words.

Yes, I was an anchor baby, but you could be my anchor, baby.

I’ve been called a liar and thief but the only thing I’ve stolen are hearts and fruit from my neighbor’s tree.

I’m on an immigrant diet: carbs, coffee, and gossip.

Everyone in this town compares their kids to mine.

I don’t believe in depression, I believe in repressing my feelings and yours too.

I came here with nothing but at least I’m something!

Watch what you say about me, we might be cousins.

I speak 3 languages: English, Spanish, and Bitch!

They call me Vick’s because I rub them the right way.

I cook. I clean. And no one in this goddamn house helps me.

Watch out! I’ll steal your job and your man.

I have 3 freezers. One for drinks, one for meat, and one for my heart.

You can call me Princess Diana because everyone loves me.

I’m the talk of the town and all the Whatsapp group chats.

In my house, you’ll never have an empty stomach, shoes on, or an opinion.

You may not consider me an American, but I am the American dream.

I’m not originally from here but I’m the blueprint for a model immigrant.

You don’t need to ask for my opinion, I’ll give it to you, unsolicited.

I’m loud, I have an accent, and I’ll make you wish you were never born!

My advice? Don’t go looking for cookies in tin boxes.

My husband loves me, my kids fear me, and the person handling my return saw their life flash before their eyes.

I would go back to where I came from but then who would make this country so great?
Monday, Monday
By: Mike Essig
Tags: Poetry, Aging, Deat, Survival, Life

If you enjoy my work (what’s not to love about such an optimistic poem) or have ever enjoyed my work, and would like to sustain it (and me) this is the exact moment when, if you can afford it, I implore you to make a donation, however small or large, via my PayPal account. The poverty worm is biting hard just now. I need help to bite back. Please donate at:

https://www.paypal.com/paypalme/bookgardener

Thank you for your continued support. mce
Move Git Repositories From One to Other Organization in Azure DevOps
By: Sibeesh Venu
Tags: Azure Devops, Azure, Programming, DevOps, Git

Move Repositories to Another Organization’s DevOps

Add a User to Both Organization

To start doing this process, you should add a user to both projects. I created a sample user (tester@njanorumalayali.com) and assign the contributor access for the two repositories. If you don’t have permission to do so, please contact your project administrator and get it done. Once that is done, you can download all the codes from your Source Organization repository. To do that it is a good idea to use an SSH connection.

Configure SSH Key

To create one Generate the RSA key pair by running the ssh-keygen command.

Generate SSH Keys

Update the SSH Key in Source DevOps and Clone the Repository

Now go to your source organization and add the Public Key Data under the SSH public keys section. You can find this public key in .ssh folder.

Public Key in SSH Folder

Let’s add a new SSH key now.

Add a new SSH Key

Now we can get the SSH clone URL and clone our repository.

Clone Repository Using SSH

You should get a result as in the preceding image if everything correct.

Clone Result

Check out all the Branches and Tags

Now let us just go inside of the cloned project and make sure all the branches are available by running git branch -a .

git branch all

Now it is time to check out all the branches locally so that they can be pushed to our new Organization DevOps. This is important if you need those branches.

Check out all the branches

Now fetch all of your tags too by running git fetch --tags . Once that is done you can verify once again whether all the branches are downloaded locally or not.

All branches downloaded locally

Update the SSH Key in the Destination DevOps

Follow the same procedure as you did for the source DevOps and update the SSH public key there.

Destination DevOps SSH

Remove Old and Add New Origin

Now comes the important step. Here we are removing the old Origin and add our new Origin so that we can push all our changes including the branches and tags. So we are going to run the below commands one by one.

git remote rm origin

git remote add origin

git push origin --all

git push --tags

Remove Old and Add New Origin

As you can see in the above image, all of our codebases now is been uploaded to the new Azure DevOps. I told you already it is not that hard as it sounds.
Equality! (or, Us First)
By: Jen Payne
Tags: White Privilege, Womens Rights, Black History, Racism, Womens Suffrage

It was a disagreement on how that right should be secured that led to the split between these 3 pioneers. Stanton and Anthony did not support the 15th Amendment to the US Constitution, which would give black men in America the right to vote.

The right of citizens of the United States to vote shall not be denied or abridged by the United States or by any State on account of race, color, or previous condition of servitude.

It would be kind to say that the women refused their support for the amendment because it did not give ALL people the right to vote. It was made evident, however, that the truth was not so kind.

In 1869, at an AERA convention, Douglass argued that the organization should support the 15th Amendment and continue to fight for women’s suffrage.

Stanton argued against this. She filled her speech with racist stereotypes about the men, immigrants, and former slaves who would be given the right to vote by this Amendment:

“Think of Patrick and Sambo and Hans and Yung Tung, who do not know the difference between a monarchy and a republic, who cannot read the Declaration of Independence or Webster’s spelling book, making laws for…Susan B. Anthony.” She would go on to say, “[The amendment] creates an antagonism everywhere between educated, refined women and the lower orders of men, especially in the South.”

It became even more clear that these women held deeply rooted racist ideologies as the AERA was dissolved and the previously united front in the fight for universal suffrage was split. Stanton and Anthony carried on their crusade, pandering to the Southern States by arguing that if white women held the right to vote, they could drown out the voices of black men.

Though Douglass continued to lend his full support to the fight for women’s suffrage, he was met continuously by racist treatment from his former friends. Being asked by Anthony not to appear on stage with white women at a meeting in Atlanta, GA, for example.
Gain top rankings in Google with SEO copywriting
By: Sajiv Kumar
Tags: Synapseinteractive, Seo Content Writers, Seo Copywriting Services, Outsource Copywriting, Hire Content Writers

Whether you want to target customers in the USA or anywhere in the world, your business website should have unique and easy-to-read content. SEO copywriting services provided by SynapseInteractive have helped numerous startups, SMEs and even large organizations to achieve success. We write copies that not just grab the eyeballs of your prospective customers, but also ensure that your business appears at the top of the Google search results. You can rely on us for your diverse content needs including web page content writing, marketing ads content writing, blogs, articles, press releases and much more. Do you want to hire the best SEO content writers in the UK? Get in touch with our team today.

Follow us on Instagram: SynapseInteractive SEO Copywriting Services

Learn more: SEO Copywriting Services PPT or SEO Copywriting Services Video
A Head Full of Snow
By: Susan Sagarin
Tags: Mothers, Drug Overdose, Microfiction, Writing Prompt Response, 50 Word Stories

A Head Full of Snow

50-Word Fiction

Photo by Alex Perez on Unsplash

By the time John walks home from the school bus and sees her in the kitchen, his mom has gone cold. He touches her face and sits down next to her on the wooden floor.

John waits for the white powder around her nose to melt, but it never does.