fabiochiu/medium-articles huggingface dataset:
When the Machines Stop: E.M. Forster’s Vision Revisited in an Age of Collapse
By: John Knox
Tags: English Literature, Collapse, Dystopia, Novella, Technology

“The Machine Stops” begins underground, in a small room “like the cell of a bee.” We are in the underground hive of humanity, where technology — the Machine, in the story — exists to light our room, provide us music, tend to us, and connect us to others. All that’s missing in Forster’s vision is Alexa.

The resident of the room, Vashti, knows “several thousand people,” like friends on Facebook and all through remote communication. Vashti gives lectures to strangers on obscure minutiae, as if on Skype. This is their lifeline, since in Forster’s future the “horror of direct experience” is feared above all else. The Machine’s communication package lacks nuance, not unlike modern e-mail or social media, but everyone is fine with that, except Vashti’s son Kuno.

Vashti is too busy with her online life to spend more than five minutes talking to her son. Kuno’s shocking request to meet with Vashti directly is the complication that sets the plot in motion. After an airship flight (the story was published fewer than six years after the Wright Brothers’ first aircraft flight), Vashti meets with Kuno, who makes a stunning revelation: he has violated all the rules by going to the surface of the Earth, “known” to be an unstimulating barren wasteland. Vashti disowns Kuno.

Some years later, “the troubles began quietly.” First, the music doesn’t work quite right. The Central Committee fields the complaint as indifferently as a cable provider. There are jarring sounds. These minor annoyances could be accommodated by acceptance by the masses: “Things went from bad to worse unchallenged.”

But then the beds malfunction — for everyone, everywhere. After recriminations and conspiracy theories, it is revealed that the debugging apparatus of the Machine is itself in need of debugging. An influential lecturer advocates sympathy to the technology, given all the wonders the Machine has provided.

But when the lights dim and the air turns foul, even the apologists aren’t listened to anymore; “panic reigned.”

Vashti had been warned at the beginning of the troubles by Kuno: “The Machine stops… I know it, I know the signs.” She laughed then, but she isn’t laughing anymore. Particularly not when the communications system fails, “and the world, as they understood it, ended.”

Vashti’s TEDx lecture loses its audience at the moment of disruption, and the silence is oppressive — especially when the hum of the Machine disappears. She emerges to find the hive dying, a colony collapsing in disorder.

There is a reconciliation, ended abruptly when an airship crashes into the dying city, “exploding as it went, rending gallery after gallery with its wings of steel.”
Why You Should Know The Vacuous Truth about Array.every in JavaScript
By: Mohan Ram
Tags: Programming, Web Development, Javascript Tips, JavaScript, Array Methods

Why You Should Know The Vacuous Truth about Array.every in JavaScript

This blog helps you to understand a Vacuous truth about the method Array.every in JavaScript.

You cant change the truth, but truth can change you

Let’s begin by going over the use case for Array.every :

I have a collection of items and a business logic (predicate function — function that takes an input and return a binary result i.e. — Boolean) to apply on the collection

Need to check whether all the items in the collection resembles positive (i.e. true) to the logic, we apply.

Then Array.every is the right decision to approach.

Example — Consider family as a collection and different members in, may have different moods.

Display family members

Copy Paste the above code, in chrome debugger tools to see the family members

Now, lets observe — if all family members are happy or not. with Array.every

...

...

console.log(`%c[${family}]`, "font-size: 5rem"); // is everyone happy in the family ?

const codeForHappy = "0x1F600";

const isHappy = family.every((member) => member === generateMood(codeForHappy)); console.log(`%cAll members are happy = ${isHappy ? "Yes" : "No"}`,"color: blue; font-family:sans-serif; font-size: 20px");

members of family with different moods 😄 😝 😅 😙 😜

Lets nourish them with Jokes and make all the members in the family to be happiest

const codes = [

"0x1F600","0x1F600","0x1F600","0x1F600","0x1F600","0x1F600",

];

Happy family 😃

Thanks for being with, what the hell Vacuous is, Lets remove all family members and try to check, whether all members are happy again.

const codes = [];

once updating family as empty collection

Yes is the response. Yes — its vacuously true — All the member in the family are happy is true, when there is no member in the family.

Vacuous truth can be misleading sometimes since it makes reasonable assertions about the objects which does not actually exists.

Some more samples statements that are vacuously true:

All the members in the team wear red t-shirt (no members in the Team) Child says, I ate every vegetable on my plate (may be plate is empty)

In short, vacuous truth is:

Thank you 🙏 happy coding, make me happy with 👏 and keep your family members happiest😄
107 Affirmations for When You Can’t Bear Your Chronic Pain
By: Carly Barrett
Tags: Health, Affirmations, Chronic Pain, Healing, Mindset

107 Affirmations for When You Can’t Bear Your Chronic Pain

“I am more than my pain.”

Photo by Артемий Савинков on Unsplash

If you’re dealing with chronic pain, you likely have a mental dialogue you follow daily, whether you’re aware of it or not.

You have thoughts and beliefs around how you feel, what your body is capable of, and what your future will be. The pain becomes a part of your identity.

When you change your inner dialogue and banish the self-limiting beliefs you’ve formed around your pain and your capabilities, you are transforming your thoughts. That’s where affirmations come in…

Think of affirmations as exercise for your mind — kind of like going to the gym to strengthen your muscles. Positive mental repetition in the form of affirmations can reprogram the neural pathways in your mind.

By changing your thinking, you will change the choices you make, the way you behave, and the experiences you have. In this way, your thoughts literally dictate your reality — and can help reduce your chronic pain.

PRO TIP: Record yourself saying these out loud, then listen back throughout the day. Hearing these affirmations in your voice is so incredibly powerful.

107 Affirmations for Chronic Pain
Four reasons for attending Outriders Stage & Backstage, November 21–22 in Warsaw
By: Alicja Peszkowska
Tags: Conference, Events, Media, Journalism, Outridersnetwork

Journalists, storytellers — we invite you to join us at the II International Summit for journalist and storytellers organised in Warsaw, Poland on November 21–22.

Why? Let us explain:

1. Let’s get together

The theme of this edition is “Let’s get together”. There is a lot of innovation happening both in media and in storytelling right now. There is a lot of topics that need to be addressed and discussed, and the audiences are hungry for well-crafted inputs. It is what we are going to discuss with our guests.

One of them, our first keynote speaker is Maria Ressa of Rappler, a Filipino journalist, editor in Chief of Rappler, TIME 2018 person of the year. She was wrongly prosecuted by her government and currently on trial. Our other keynote speaker is Andrea Chalupa, a journalist, a scriptwriter and a producer behind the recent Agnieszka Holland’s movie “Mr Jones”, about a Welsh journalist who tried reported on the Stalin’s genocidal famine in Ukraine.

More details about the line-up will follow soon.

2. Aren’t you bored with saving journalism? Let’s talk about how to do good journalism instead.

We will talk about strategies, and tools for the best storytelling and the best journalism — the one that informs and connects the people. We will not touch upon everything that is happening in the world. Instead, we want to turn our gaze at the very core of the journalist work: to explain the complexities of the world. Be it via a well written interactive piece, a mind-blowing visualisation, an event organised for your audience, regular communication between you are your community or a movie — that are our interests.

3. We support journalists in telling stories. Together with our partners, we are going to host 12+ workshops on storytelling strategies and tools.

The second day of the Summit, called Backstage, will be when we work. We are planning 12 workshops dedicated to storytelling, and we will be announcing them soon. Have something that you think should be included in our agenda? Maybe a skill or a tool you’d like to master? Let us know.

4. It will be cool, and you will have fun.

We aim to inspire you to go on and continue doing a great job. To be successful, one also need to make room for positive emotions, for excitement. Outriders Stage will be a hell of a party!

Be there or be square!
Do Regrets Ever End
By: M Vaughn Duck
Tags: Heartbreak, Poetry, Music, Regret, Lyrics

only knots, shakes and countless sleepless nights….

Lyrics — Do Regrets Ever End …

Intro

Do you know

If regrets ever go away

or do they stay around forever ….

Verse

I’ve kept them hidden deep within

Thinking one day they’d disappear -

Knowing now why

You’re not here -

Hearing words you once said

There’s no cure for it’s pain

When it’s past time for prayers -

Just one more thorn in my side

To let me know

You unlocked those chains

Chorus

One more day to get through

One more night feeling blue —

Weeks becoming a maddening zoo

Knowing I wasn’t strong enough

To hold onto you -

Now wondering what to do

Will these tears ever end …

And when they stop

Will I be in heaven or

On some corner

Waiting for a fortune teller to appear

One more day to get through

One more night feeling blue —

Weeks becoming a maddening zoo

Knowing I wasn’t strong enough

To hold onto you -

Now wondering what to do

Yeah, we make our own bed

And I too made mine -

Knowing it only gets worse

Watching another sunset

When you’re still shining in my head

One more day to get through

One more night feeling blue —

Weeks becoming a maddening zoo

Knowing I wasn’t strong enough

To hold onto you -

Now wondering what to do.

M. Vaughn Duck

(only knots, shakes and countless sleepless nights b.t)

2 Octobre 2020 © copyright, all rights reserved.

Reproduction in whole or part without permission is prohibited.

flyingonward@hotmail.com
Pain in Your Buttock and Leg? The Culprit is Probably Your Piriformis Muscle.
By: Heiki Kohal
Tags: Piriformis Syndrome, Healthcare, Health, Better Living, Pain

Pain in Your Buttock and Leg? The Culprit is Probably Your Piriformis Muscle.

What does it mean, and how to get rid of it

Image: Wikimedia Commons

Pain in one’s bum might seem a bit comic at first, but when I still worked in healthcare, not a single week went by without someone coming in and complaining about it.

Often, the cause was a small and not so well known muscle in the gluteal region — the piriformis.

So, what does it mean?

The piriformis is a tiny muscle that runs from your sacrum to your femur. Its main functions are to externally rotate and extend your femur at the hip joint, and it’s also one of the muscles to stabilize your pelvis when you’re walking.

It’s only a small player in the bigger group of muscles that cover those functions, and most people don’t even know it exists.

Its significance in the above-mentioned context comes from its relative location to one’s sciatic nerve.

The sciatic nerve originates from the lumbar and sacral segments of your spine. It passes through some pretty deep layers of your buttock and extends all the way down to the posterior parts of your leg and foot.

In the buttock, the piriformis muscle crosses paths with the sciatic nerve. And in some cases, it might even be that the sciatic nerve passes through the piriformis muscle.

Image: Wikimedia Commons

For the sake of a simple explanation, let’s just say that they’re really close neighbours — much too close, perhaps.

And, as is often the case with close neighbours — especially if one’s a bit sensitive and the other one too tense — some not so friendly rubbing can occur.

Now, if something presses or rubs too vigorously against a nerve, an inflammatory reaction is likely to follow in the affected part of the nerve.

That leads to pain and other unpleasant sensations in the corresponding area. But, in some cases, also elsewhere — such as further down the leg.

In addition to that, the piriformis muscle (like all other muscles) is capable of producing pain and patterns of irradiation on itself, too. In that case, we’d be talking about myofascial trigger points.

There you have it. That’s a simplified explanation of how the piriformis muscle causes pain in one’s buttock and (or) leg.
Sabbath: Source & Shaper
By: Oasis Church Birmingham
Tags: Christianity, Life, Spirituality, Resources, Faith

Sabbath: Source & Shaper

Recordings, notes and application questions

Each week, we produce notes, discussion points and application questions for the Sunday talks — helping you go deeper into everything we’re looking at together and resourcing our Small Groups during the week. Use the embedded player to listen to the talk, or click here to visit Soundcloud and download it on a PC. You can also subscribe to Oasis podcasts on Spotify, iTunes or Podbean for listening on the go, and you can find the accompanying Powerpoint presentation for this week’s talk here.

Key Passages

Matthew 12:1–8, 9–10 & 13

Mark 3: 4

Matthew 11: 28–30

Notes

AJ Swoboda writes, “Sabbath is celebration, a day of rejoicing over the goodness of what has been made and who made it.” Sabbath rhythms were created for our good, so that we could flourish in a pattern of work and rest, enjoying life itself and the One who has freely given it to us.

Jesus is questioned by religious leaders as to whether he thinks the Sabbath day is about rules or whether it is irrelevant. Jesus affirms the Sabbath day but states it is for our good and that He is the “Lord of the Sabbath”

Jesus as ‘Lord of the Sabbath’ reveals that:

Jesus is God — as God alone created the Sabbath

This is the kind of God Jesus is — one who is characterised by rest

Jesus is the King, Master, Lord of rest and specifically here the Sabbath day of rest

He therefore is the source and shaper of our Sabbath day rest

· As the source of our sabbath Jesus longs to shape our sabbath day which then permeates the rest of our life with:

Healing: Taking us out of our normal days of existence to meet with Him to be healed physically, emotionally and mentally from the effects of the other 6 days.

Taking us out of our normal days of existence to meet with Him to be healed physically, emotionally and mentally from the effects of the other 6 days. Good and life giving: Invites us to do things on this day that are good and bring us life. For example, nature, walks, meals, hanging out with friends etc…

Invites us to do things on this day that are good and bring us life. For example, nature, walks, meals, hanging out with friends etc… Unburdened: To lift off us the burdens of the things we are not meant to be carrying (fear, shame, guilt, am I good enough, it’s all down to me) AND the responsibilities we have (work, deadlines, running household, others situations)

To lift off us the burdens of the things we are not meant to be carrying (fear, shame, guilt, am I good enough, it’s all down to me) AND the responsibilities we have (work, deadlines, running household, others situations) Wholeness: Jesus invites us to know and enjoy the wholeness He has to offer that ‘we have nothing to prove’

Sabbath therefore becomes a declaration that Jesus is Lord. He is the one who is on the thrones of our lives not our work, accomplishments, responsibilities or anything else.

Application Questions
Stack Data Structure: A pretty simple guide
Tags: Cpp, Data Structures, Software Engineering, Software Development, Algorithms

Like in the real world, if we want to stack up books, we need to put one at a time. And the last book placed on the stack need to be the first that will be out.

Put “History” book first, “music” and so on. The “Python” book was the last one, but the first that will be out. We call this LIFO (Last In First Out).

Let’s understand the basic operations a stack has.

Stack → Instantiate the Stack Class

Just instantiate an empty stack object.

push → Add the new element to the stack

If the number of elements pushed on stack are greater than the maximum size of the stack, we have a “Stack Overflow”. Otherwise, we can add a new element to the stack.

pop → Remove the last element placed on the stack

If the stack doesn’t have any element (empty), we can’t pop. Otherwise, we just decrease the numberOfElements value.

Note: you can see that we don’t remove the element. It’s not necessary, because top method will always know the element in the top of the stack. And if we add another element to stack, we’ll just reassign the value in that position.

top → Returns the last element placed on the stack

isEmpty → Returns if the stack is empty or not

Verify if there are any element in the stack. Returns true if the stack is empty, and false otherwise.

You can’t see all the implementation here
Episode 2: The bar without a boss
By: Martin Breitsprecher
Tags: Blockchain, Peer To Peer, Disintermediation, Bitcoin, Cryptocurrency

Episode 2: The bar without a boss

Sharing benefits and costs in peer-to-peer networks

Would you like to become the new bar owner? Or would you try to convince one of your friends to take on this task? Maybe there is a better alternative…

The bar owner is gone, and so is the cash register. There is no one in charge. But there are thirsty guests and many cold drinks. Oscar, a rather dubious guy, suggests: “Let’s all drink for free!” — “STOP!”, Carol screams. “Do you want to leave The Blockchain Bar in ruins? We need to find a way to keep this place we all love alive!”

“Carol is right!”, Bob says. “Who wants to run the bar?” — Hours later there is still no one willing to become the next bar owner. Alice has an idea: “Let’s manage the bar all together, as a cooperative.” — Everybody happily agrees.

A blockchain is a vast network of individual computers who all have the same rights and obligations. Such systems are also called peer-to-peer systems. All participants contribute to the network and work towards a common goal.

Working together? How can they avoid that everything ends up in chaos? Find out in our next episode …

But maybe you first want to read more about blockchain ‘cooperatives’ on TheBlockchainBar.com.
Amy Winehouse’un Ölümü ve Ekseni Kaymış Refleks Kültürümüz
By: Batuhan Apaydin
Tags: Diğer

I believe that the secret to a successful product and marketing strategy is understanding our behaviors and motivations — our momentum; understanding why we do what we do.

Follow
The Stranger in His Home
By: Aj Krow
Tags: Writing, Fiction, Books, Reading, Short Story

The Stranger in His Home

What should Chase do when he finds someone in his home unannounced?

Photo by Daan Stevens on Unsplash

Beep. Beep. Beep.

The smell of latex and clean linen surrounded Chase as he awoke. He sniffed, then took a deep breath while looking at his surroundings. Shades of white and sky blue surrounded him in every direction. To his left, a bag hung from a metal pole. The bag dripped a clear liquid into a tube, which led to his arm.

Chase pulled the tube off his arm and cursed under his breath as the tape ripped the hairs from his skin.

He stared at the table at the other end of the room. He lowered his legs to the floor, quickly lifting them as soon as he touched it. He dipped his toes onto the ground and shivered. He lowered his left foot slowly, then the right one. The hair on his arms stood up as goosebumps ran up his body. He curled his toes for a bit, then heaved himself upward to stand.

He waddled towards the table, all the while pressing his hand to his forehead. He inhaled through his nose and sighed. He unzipped the brown tattered backpack found on the table and searched its contents. He picked up a pair of jeans from the chair next to the table and slipped them on.

He removed the hospital gown covering his body and pulled out a black faded shirt he found inside of the backpack. He looked in the mirror, turning left and right as if something was amiss.

Beeeeeeeeeeeeeeeeeeeep —

He turned around and walked towards the source of the sound. He pressed a few buttons, then looked at the outlet the machine was plugged into. He tried unplugging it but could not pull the cable out of the outlet. His face grimaced as he walked out of the room.
On Writing, Deep Work, Being An Immigrant & Vulnerability
By: Renee Chen
Tags: Writing, Life, Books, Life Lessons, Psychology

Other musings include:

Deep Work: The Only Skill You Need in Your Life Toolbox

A summary, breakdown and review of Cal Newport’s book Deep Work, complete with key takeaways and practical tips. Writing these recaps help me better absorb and retain information — I hope you’ll find it useful as well.

Bridging the Gap: A Chinese Immigrant in America & An Expatriate in China

Another personal essay of sorts. I talk about the pains and struggles of growing up bi-culturally in America, what it was like to return to China as an adult, and how I eventually found my place.

When Vulnerability Becomes Too Much of a Good Thing

Brené Brown, author of Daring Greatly, has to some degree normalized the act of being vulnerable and brought it into mainstream consciousness. But when does it become too much of a good thing?
Phoenix Song
By: Jessica Archuleta
Tags: Poetry, Religion, Harry Potter, Spirituality, Creative Writing

“A gentle creature, the phoenix lives to an immense age because it can regenerate each time it bursts into flames. Phoenix song is magical and its tears have healing properties.” ~from the world of Harry Potter

Detail from the 12th-century Aberdeen Bestiary, featuring a phoenix (public domain)

He must be a Phoenix in disguise;

I’ve see him molt and seen him rise

time and again.

He’s brought light into my darkness;

Fire burns in his eyes

light radiates deep within.

He carries burdens others can’t fathom;

Bearing burdens of those he loves

on top of the heavy ones he owns.

I’ve stared into death’s eyes,

he flew to my aide

his prayers and presence

healing me

as only

tearful Phoenix song can.

He forgets himself;

Doesn’t know his worth.

Impossible for me to not know.

Resurrection is his fate;

I know he’s a Phoenix.
Weekly Report #2
By: Michael Douranos
Tags: Blockchain, Exchange, Altcoins, Bitcoin, Cryptocurrency

Hello all and thank you for participating in this amazing project. POSWallet has seen significant growth over the last days and its evolving into the Great Platform that you, all the Crypto Enthusiasts so much need and desire. The team of POSWallet has been working non-stop, in order to prepare and share with you some awesome News and new Features:

POSWallet Android APP

Yeah, believe it, POSWallet will arrive on your Android phone screen very soon! Although more info about it will be posted on a future Weekly Report, i can tell you that it will be a complete Android wallet with many, if not all, the features from POSWallet.com.

POSWallet Exchange

POSWallet Exchange is almost ready and we are running the final tests, in order to ensure maximum safety for the users. POSWallet Exchange will begin with Bitcoin (BTC) and Litecoin (LTC) pairs. Fasten your seatbelts an get ready for some real trading because more pairs are coming with much more coins!

Dividends Payment

Well, there isn’t any Wallet or Exchange out there that pays Dividends to its users…Oh , i’m sorry, POSWallet does that and it does it with style. So, all Dividends will be paid to all POSW Coin holders on Block 130,000! Stay tuned and keep watching your POSWallet account grow!

Livecoin.net Enlisted POSW Coin

POSWallet was accepted in Livecoin, which is one of the Highest Volume Exchanges out there, with almost $3,000,000 of daily volume! Livecoin is supporting POSW Coin with some very attractive Trading Pairs: POSW/BTC (Bitcoin), POSW/ETH (Ethereum), POSW/CRBIT (Creditbit), POSW/ICN (Iconomi). More Hot trading pairs are on the way.

New Improved FAQ (Frequently Asked Questions)Page

A new improved FAQ page has been created in order to answer every possible question that our community has. Special thanks goes to those that sacrificed some of their time to ask a FAQ suitable question on POSWallet’s Slack channel!

New Team Page

A POSWallet team page was created, so you can learn more about the core team members of POSWallet. Some limited info is there but more will be added soon.

That’s all for our 2nd Weekly Report, more awesome news soon… And remember: Buy now that it’s Cheap and don’t dump your Precious POSW Coins! See you all on our next Weekly Report.
In Cambodia and around the world, a safe community starts with a safe school
By: Undp Asia-Pacific Disaster Risk Reduction Team
Tags: Climate Change, Disaster Response, Cambodia, Asia Pacific

If we are lucky, in our lifetimes we will never experience a disaster. Never know what it is to have our homes and belongings washed away by a flash flood. Never know how it feels to flee an approaching tsunami. Never know what it is to experience, first-hand, a violent cyclone or simply, destructive strong wind.

Yet disasters can strike anywhere and anytime.

Children walk through floodwaters on a submerged makeshift wooden walkway. Photo: Samrang Pring/Reuters

Consider this. According to the international disaster database ‘EM-DAT’, 318 natural disasters touched 122 countries in 2017, resulting in over 9,500 deaths, 96 million people affected, and US$314 billion in economic damages.

Weather-related disasters accounted for the majority of the human and economic losses: almost 90% of deaths were due to climatological, hydrological or meteorological disasters such as storms and floods.

Some regions are more vulnerable than others. For those who live in hazard-prone areas, the looming risk of disaster more or less become part of life.

We cannot prevent a disaster from happening — but we can take advance steps to prepare and protect.
What It Was like Earning a Living 20 Years ago
By: Jameel Randeree
Tags: Careers, Workplace, Productivity, Online Business, Career Advice

Photo by National Cancer Institute on Unsplash

I’m a millennial that is about to put on his “boomer” shoes to tell you a short story about how work-life was back in the day.

Is it that much different than it is now? Are things so much better or easier now? Were the youth in the early 2000s much more intellectual than the youth of today?

These are some of the questions I hope to answer here. Hopefully, the 21-year-old reading this will realize the amount of opportunity there is out there today.

Or maybe they will tell me to shut up!
Treat Yourself: Announcing Our Collaboration with the Partnership for a Healthier America
By: Tracey Massey
Tags: Health And Wellness, Food, Thought Leadership, Chocolate

At Mars, we’re proud of the products we make. But we also know that chocolate is a treat — not a meal or snack. That’s why we’re so excited to join together with the Partnership for a Healthier America to purposefully position chocolate and candy as a treat, and lead the industry forward with the evolving needs of today’s consumer at the center of our progress.

At PHA’s Building a Healthier Future Summit, the National Confectioners Association and participating companies — including Mars Chocolate North America and Wrigley U.S. along with Nestle, Lindt, Ferrera and Ferrero — officially announced the partnership to more than 1,000 attendees. Under the “Always a Treat” banner, America’s top chocolate and candy makers are coming together to give consumers the information, options and support they need as they choose how to enjoy their favorite treats.

You can read more here
Have you had “The Talk” with your chatbot about graph data structures?
By: Mike Broberg
Tags: Cognitive Computing, Chatbots, JavaScript, Database, Cloudant

This week our own Mark Watson was published in the Free Code Camp Medium publication. You should read it:

In his article, Mark describes how he modeled API interactions with the Watson Conversation service (no relation 😛) and the Spoonacular recipe API to work with the Apache Tinkerpop graph database framework. The result is a Slack chatbot that can use graph traversals to intelligently recommend recipes based on their popularity with other users.

The code and setup instructions are on GitHub in the watson-recipe-bot-nodejs-graph repo.

Hungry for more?

It builds off of two excellent articles, one by Josh Zheng and another from Mark.

Josh’s article reviews the important functions of the client application (in Python), and it walks readers through how to build the dialog flow in the Conversation Tool. It’s the place to start if you want to understand the inner-workings of the chatbot.

Mark’s previous article shows readers how to extend Josh’s chatbot by integrating the Cloudant JSON database service to cache API calls to Spoonacular. Aside from improved performance, Mark describes how to use the cached data to provide a more personalized user experience (for example, “show me my favorite recipes”). He also shows how to run some simple analytics on interactions, with an eye toward informing UX improvements. There are versions for Python and Node.js.

It was fun editing Mark’s work, especially after having recently completed some Coursera classes that emphasized graph data structures.

So check out Mark on Free Code Camp, and don’t forget to recommend the article to other intrepid Medium readers by clicking the ♡.

Thanks to Brad Noble and Quincy Larson for their feedback.
Conoce a los disruptores: Como Jake Yocom-Piat redefine la gobernanza con la tecnología blockchain.
Tags: Articles, Tech

About my passions. This is the development of my goals. Social Network, Design, and future developer.

Follow
ScalaKnol: Understanding Uniform Access Principle
By: Knoldus Inc.
Tags: Scala, Principle, Knol

The ScalaKnol series attempts to share a nugget of Scala wisdom every few days or sometimes few times a day. Keep tuned. Today we would look at the Uniform Access Principle.

The principle states that the client code or the calling code should not be affected by the decision to implement an attribute as a field or a method. Hence essentially irrespective of whether the attribute is defined with a val or a def, the calling client should be agnostic of the same.

For example, if we have a class like

[code language=”scala”]

case class Employee (name: String){

val salary:Int = 100

}

[/code]

and we have the calling code like this

[code language=”scala”]

object Bonus {

def calculateBonus(employee: Employee) = {

employee.salary match {

case x if (x <= 100) => println(“10% bonus”)

case _ => println(“5% bonus”)

}

}

}



val junior = new Employee(“Vikas”) //> junior : CompositionInheritance.Employee = Employee(Vikas)

val senior = new Employee(“Ayush”) //> senior : CompositionInheritance.Employee = Employee(Ayush)



Bonus.calculateBonus(junior) //> 10% bonus

Bonus.calculateBonus(senior) //> 10% bonus

[/code]

As always, you can see the output because we are coding in worksheet. Now suppose we have a change which results in the val salary now actually becoming a method. In this case let us assume that people whose name starts with a V get a higher salary. (Ok, I am biased, don’t curse your parents yet, because the bonus percentage goes down ;)

So, the new way to define our class then becomes something like this, and you would notice the change in the



[code language=”scala”]

case class Employee(name: String) {

def salary: Int = if (name.startsWith(“V”)) 200 else 100

}

object Bonus {

def calculateBonus(employee: Employee) = {

employee.salary match {

case x if (x <= 100) => println(“10% bonus”)

case _ => println(“5% bonus”)

}

}

}

val junior = new Employee(“Vikas”) //> junior : CompositionInheritance.Employee = Employee(Vikas)

val senior = new Employee(“Ayush”) //> senior : CompositionInheritance.Employee = Employee(Ayush)

Bonus.calculateBonus(junior) //> 5% bonus

Bonus.calculateBonus(senior) //> 10% bonus

[/code]

If you notice, we did not change the client / calling code even though we changed the attribute from val to def. This is the Uniform Access Principle which Scala supports. Java on the other hand does not support this principle. If you recall, in Java we have array.length. Now string is also an array but for String we have to write string.length() because it is a method and not a field.
JavaScript Algorithm: Finders Keepers
By: Erica N
Tags: Coding, Programming, Web Development, JavaScript, Algorithms

We are going to write a function called findElement that will accept an array ( arr ) and a function ( func ) as arguments.

You are given an array that contains integers. You are also given a function that returns a boolean value. The goal of the function is to input every number from the array into that function. The first number that returns true from our second argument is the number the function will return.

If the second argument doesn’t return true to any number in the array, return undefined .

Here is an example:

let arr = [1, 3, 5, 8, 9, 10];

function(num) { return num % 2 === 0; }) // the second argument
How to Set Up a CI/CD Pipeline for AWS Lambda With GitHub Actions and Serverless
By: Philipp Schmid
Tags: AWS, Serverless, AWS Lambda, Python, Programming

How to Set Up a CI/CD Pipeline for AWS Lambda With GitHub Actions and Serverless

Automatically deploy your Python function with dependencies in less than five minutes

Photo by Tim Swaan on Unsplash

Introduction

A CI/CD pipeline functional for your project is incredibly valuable as a developer. Thankfully, it’s not difficult to set up such a pipeline with Github Actions.

In my previous article, Set up a CI/CD Pipeline for your Webapp on AWS with Github Actions within 5 minutes, I demonstrated how to set up a CI/CD pipeline for your front end application. This time, I’ll focus on the back end.
Tonight’s comic is wasting all its money on expensive lattés ☕️
Tags: Financial Planning, Comics, Coffee, Millennials, Lies Boomers Tell You

More from rstevens Follow

I make cartoons and t-shirts at www.dieselsweeties.com & @rstevens. Send me coffee beans.
Good mood, better start: Early round cap reached in 50 hours
Tags: Blockchain, Token, Fundraising, Open Banking, Cryptocurrency

We want to express our excitement as we have successfully reached the cap of the early round and raised $1,500,000 USD. Early round is officially closed.

It took us 50 hours to do it and tokens have been distributed. A total of 33,052,748.9 tokens have been sold. Don’t worry, we still got some left for round II.

Thanks to everyone who participated in the first round, we appreciate it a lot. It’s takes guts to pay no attention to the market and still contribute. We will do everything not to let our community members down.

All in all it was a good test before the public sale. We faced phishing attacks, fake community manager accounts tried to scam ORCA members, while contributors had some problems accessing the ICO cabinet — links were inactive to some while others had their invitations land in junk/spam mailboxes.

It wasn’t a walk in the park, but we are happy with the results. During the approaching public sale, the sale efficiency should improve. The learning curve will make things easier.

Twitter | Facebook | Instagram| Reddit | LinkedIn | Website | Github |
Cinnamon Toast Crunch Protein Donuts
By: Angie Marie
Tags: Recipe, Healthy, Donuts

CINNAMON TOAST CRUNCH MINI DONUT

Being Healthy Doesn’t Have to be Boring! Here is a Healthy Treat for you and the whole family to eat! It will fit your macros and keep your waistline tight..

What you will need:

Mini Donut Maker (bought mine on amazon) — You can also purchase a mini donut baking pan if you’d rather use an oven!

Mixing Bowl

Liquid/Dry measuring cup

Whisk

Wax Paper

Plastic Fork

Ingredients

For donuts

Kodiak Cakes — Buttermilk Protein Packed

Quest Cinnamon Crunch Protein — I bought packets at GNC if you’d rather not buy a whole tub!)

Unsweetened Vanilla Almond Milk

Whole Egg

Truvia — or sweetener of your choice

Protein Glaze

1 scoop Quest Cinnamon Crunch Protein

Vanilla Almond Butter — Can use any almond butter of your choice

Unsweetened Vanilla Almond Milk

Directions:

DONUT: Mix 2 cups of Kodiak Cake, 1/2 cup unsweetened vanilla almond milk, 1/3 cup of water, 1 large egg, 4 TBSP Truvia, mix thourougly.

PROTEIN GLAZE FROSTING: 2 scoops Cinnamon Crunch Quest Protein, 1 TBSP almond butter, slowly add unsweetened almond milk until a thick paste

Turn on mini donut maker, once light indicates it is heated you are ready to get started. In measuring cup pour donut mix onto donut maker filling each just under the line. Lower lid until green light indicates donut is cooked. Remove donut with fork onto wax paper. Let donuts cool, then add frosting! Sprinkle with cinnamon toast crunch cereal (optional) and enjoy!

If you choose to buy the pan, preheat over to 350 degrees. Grease donut pan. Bake 15- 20 minutes or until golden brown.

Each batch should make around 44 donuts. Be sure to share or else you’ll end up consuming all…roughly — 1,100 calories … All things in moderation!

Nutrients: Per serving — 25 calories each | 6 grams of protein | 3 grams of carbs

Thank you for reading! I hope you enjoy these healthy recipes as much as I do! And don’t forget to subscribe for more healthy recipes, fitness tips, and new challenging exercises!
Fasting, Feasting, and Freshman Survival
By: Hilal Isler
Tags: Women, Life, Islam, Relationships, Food

I used to live in Saudi Arabia, where Ramadan is a big deal. You’re expected to fast and if you can’t, the rule is you’ll respect everyone else by not stuffing your face in public. School hours shift. Store hours change too, and nothing is open until after iftar, the meal you have at sun-down to break your fast.

At night, the streets burst to life, and there are bright lights and music, and kids stay out until one in the morning. That’s another thing that changes: you go to sleep super late, wake up super late, and in this way for a month, everything is turned on its head.

When I come to the United States to go to college, it’s as if Ramadan doesn’t exist. It’s up to me whether I want to be Muslim or not, in that there’s no one, not my parents, not the Saudi government, policing what I do or wear or eat or when. But I want to be Muslim, a good Muslim. I want to be a good person, and if the religion I was born into is handing me something that looks like a roadmap, I’m going to take that roadmap, and I’m at least going to look at it.
Resolution Recognizing 60th Anniversary of the Greensboro Four Sit-In
By: Congressional Black Caucus
Tags: Politics, Civil Rights, Protest, Congress, Black History

Resolution Recognizing 60th Anniversary of the Greensboro Four Sit-In

Butterfield and Adams introduce a resolution recognizing the significance of the Greensboro Four Sit-In of 1960

Congressman G. K. Butterfield (NC-01) and Congresswoman Alma Adams (NC-12) introduced a resolution recognizing the significance of the Greensboro Four Sit-In of 1960.

The resolution recognizes the four students of Greensboro, North Carolina for their contribution to the civil rights movement and encourages all States to include this historical account in their educational curriculum.

“The four young college students known as the Greensboro Four blazed a trail that ignited a movement to challenge racial inequality in public facilities throughout the segregated South” said Congressman Butterfield. “It is imperative that we learn the lessons from the past and reaffirm that ethnic and racial diversity of our country enriches us as a nation. We are always stronger together, and we must never forget, in all things, to demand justice and equality for all.”

“Sixty years ago, four young, Black students from North Carolina A&T State University took their seats at a Whites-only lunch counter, changing the face of the segregated South forever. As a former Greensboro representative and alumna of NC A&T University, it is with great pride that I recognize the Greensboro Four for their courageous efforts in combating systemic, racial discrimination at their February 1, 1960 sit-in”, said Congresswoman Adams. “We, as a nation, have a responsibility to learn from our past and work diligently to carry on the legacy of these four men by ensuring equal rights for all people — regardless of race, color or creed.”

Background:

The Greensboro Four sit-in protest which took place on February 1, 1960.

The Greensboro sit-in was a civil rights protest that commenced when four young Black students staged a sit-in at the segregated lunch counter of F.W. Woolworth Department Store in Greensboro, North Carolina.

The Greensboro Four: Ezell Blair Jr., David Richmond, Franklin McCain and Joseph McNeil were students from North Carolina Agricultural and Technical College, now known as North Carolina A&T State University.

Nationwide participation in this new movement included over 700,000 people, including students, clergymen and unified citizens both White and Black.

On July 26, 1960, the Woolworth Lunch Counter was finally integrated.

Read full resolution here and below.

(This post originally appeared on Representative G. K. Butterfield’s website)
What’s the best IDE for developing in Kotlin?
By: Tremaine Eto
Tags: Programming, Software Engineering, Technology, Software Development, Kotlin

If you’re getting starting with Kotlin — which fully interoperates with Java and is the preferred language for Android developers — then you might be curious what options you have for IDEs.

You wouldn’t be alone — after all, it’s a question we should all ask ourselves any time we’re taking on a new programming language. With 72.6% of Stack Overflow’s 2019 Survey respondents saying they “Loved” Kotlin, it’s clear that the language is well-regarded and growing in terms of users.

To assist you in your decision, I’ve gathered various IDEs along with some facts about what they offer as well as various internet opinions as to their pros and cons. As with everything, take them with a grain of salt as you make your own choice.
Doubt.
Tags: Inspiration, Poetry, Writing, Advice, Poetry On Medium

And you might think you’ll outrun it.

Each leg spindly thin

But with flat footed assuredness

It pursues.

Each dull thud

Of it’s blunt toed foot

Scatters a fine powder that

You quickly shake away with a head twist

Flip a switch

And it’s left behind on the train station platform.

“Maybe, this is good enough.” you say.

It hisses and fizzles out behind you.
Australia: Fortitude Valley Clubs
By: Drunk Plato
Tags: Travel, Reflections, Australia, Meaning

To answer yesterday’s question, it seems the soulless future may be inevitable.

Lines stretch out down the block. High heels are dispersed throughout the crowd, along with tight jeans and floral tops. Men‘s shirts are unbuttoned deeper than the dresses made to reveal women’s cleavage. The line outside of a club is a graphic presentation of modern dating. Shells walk into the venues and are filled with liquor, music, and escape — becoming whole for a moment. The real emptiness beats with every bass drop and is hidden behind a facade of ecstasy.

The line breeds anticipation and promises bliss: just enter and be fulfilled. After stepping in, there is a moment of pause. The crowd moves to robotic pulses and groups amass at the bar. Liquor is one of the lubrications of the club; the other is at the doors — readying you for the degradation. The seduction of the wait is used to bring you to your knees, to cause you to want it even more. What is it that you want? It is the lie waiting inside.

It took one day to realize the truth of Brisbane. It wasn’t as pure and authentic as was initially believed. Hope has a way of obscuring the truth if it is grasped too tightly. After letting go of hopeful anticipation, reality set in. Materiality had consumed parts of Brisbane as well. Like a virus, it would spread throughout the city.

Next: The Gold Coast
Crypto and Poker
By: Claire Royle
Tags: Poker, Crypto, Team Glasses, Blockchain

Poker.

A game of gambling, strategy, and skill. A card game of bluffing that’s only fun when you can see the other players…right?



Wrong!



Physical proximity might have been an important part of the game in the 19th century, but that was before the internet. Gambling laws can vary from state to state, playing for real money is mostly illegal in the US. The same goes for internet gambling, but many states and countries still allow it. A quick Google search yields thousands of sites — some legit looking, others more shady, and all with the allure of cold hard cash.

But like anything on the internet, it’s buyer beware.

Basically, poker sites only care about one thing: making money.

Your computer gets a virus and your online account get hacked? Too bad.

Player privacy is compromised? Sucks to be you.

Bots unfairly winning every hand? Better luck next time.

Not to mention all the processing fees, rake or commission, and lack of incentive and a player may start to wonder why they’re spending their time and money on online poker.

Poker playing doesn’t come cheap — according to an article on Deadspin.com in order to make $60K, you need to play tournaments with a combined buy-in of $240,000. Nearly a quarter of a million dollars of buy-ins each year in order to make what is a little above average income in the US.

If only there was a decentralized system that ensured security, privacy, and transparency.

Oh wait, there is: Blockchain.

Crypto Poker Club sees there has been no real improvement in online poker since the early 2000’s, and now they’re doing something about it. They built a platform on the Ethereum network with the goal of improving the game experience for players.

Using blockchain tech, crypto poker has improved the game by increasing security, eliminating withdrawal; and processing fees, and implementing a new shuffling system that is guaranteed to always be fair.

In 2017, one poker website reported over $800 million in revenue. Nothing to sneer at. Now just imagine that, but with blockchain powering it. Crypto poker could be HUGE.

Crypto poker is just one example of blockchain powered games. There are loads of new ways that developers are using the technology, from in-game achievement rewards to storing gameplay on a verified ledger. Basically, blockchain is allowing players more opportunities to collaborate, create, profit, and grow. Plus, developers can make games they never thought possible.

But gaming is a $100 billion industry worldwide. How will anything ever change that?!

Well, like any innovation, industries must adapt as new technologies are invented. Blockchain gaming is not looking to compete with the pre-existing gaming space, instead the gaming industry will have to incorporate blockchain in order to stay relevant in the 21st century.

— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —

Interested in a Crypto Poker Party? Email us at laura@teamglasses.com