fabiochiu/medium-articles huggingface dataset:
Start Here: Zero to JavaScript — Rolling Dices, built-in Math functions, and Class
By: Jack Yeh
Tags: JavaScript, Internet, Easy, Beginners Guide

Build-Your-Own In Browser Casino

Here is a challenge for you from yesterday’s lesson:

Write a function that rolls 3 dices, and print the result to the console. If user gets all 1s or all 6s, print “All the Dots”.

It should look like the following when typed into Chrome:

function rollDices() { ... } > rollDices()

< "1, 4, 5" > rollDices()

< "2, 1, 3" > rollDices()

< "All the Dots" > rollDices()

< "3, 3, 3"

Before we can roll three dices, we first need to figure out how to roll one dice.

We know how to write functions with Calculator operators like +, — , * , /

How do we get a random number to return though?

Introducing Math.random()

> Math.random()

< 0.958177795523361

> Math.random()

< 0.6310123393722489

> Math.random()

< 0.25878621218521314

> Math.random()

< 0.21485672365359743

Here we are using a function called random(), which comes from the Math object. If you type in Math by itself, you will see the following goodies:

Loads of functions, at our disposal!

We are interested in writing a function that returns a random number from this sequence [1, 2, 3, 4, 5, 6], given that Math.random() returns a number between 0 and 1 (it can generate 0, but will always be less than 1).

We can try to multiply Math.random() with 6, which should return a number between 0 to 5.9

This is not a whole number (also known as integers), how do we remove the decimal portion?

This is where the second built-in function can be used: Math.floor()

Math.floor() takes a number and remove the decimal portion. Try these examples in the console to see its effects:

> Math.floor(0.5)

< 0

> Math.floor(1.9999999)

< 1

> Math.floor(3.0000000001)

< 3

So we write the following:

> function rollDice() {

return Math.floor(Math.random() * 6);

}

undefined

> rollDice()

< 1

> rollDice()

< 5

> rollDice()

< 0

> rollDice()

< 2

> rollDice()

< 0

> rollDice()

< 3

> rollDice()

Hmm, not quite. It’s returning from 0 to 5, not 1 to 6.

Ok, just add one before returning it!

> function rollDice() {

return Math.floor(Math.random() * 6) + 1;

}

undefined

> rollDice()

< 2

> rollDice()

< 2

> rollDice()

< 4

> rollDice()

< 6

> rollDice()

< 1

> rollDice()

< 1

Easy.
Making your own Menorah is no longer a Pipe Dream!
By: Avi Solomon
Tags: Fun, DIY, Hanukkah, Judaism

With the Jewish Diwali aka Hanukkah well nigh upon us, I was looking to provide my 7 year old son Uriel with a maker angle on the central artifact of the holiday, the Menorah. The Maccabees had hastily hacked together their Menorah by using hollow iron spearheads and I also wanted to capture this improvisational aspect of making the Menorah. Inspired by Joe Grand’s Pipe Menorah we set off to the nearest hardware store to make one of our own. The guys at the store were kind enough to let us putter around gathering the parts we needed and try them out together.

Very quickly, we had used 1/2 inch steel pipes and connectors to make a Menorah that was able to stand up without tipping over by it’s own weight (we had to replace the round base we used initially as it was too unstable). We then assembled a tripod base which proved to be quite solid. Interestingly, the base for the original Menorah in the Jerusalem temple might have also been a tripod.

Brass connectors for the candletops and cheap Chinese toy finger LEDs as the “candles” completed the build. Uriel was so proud of his handiwork!

At home I took everything apart and let Uriel build up the pipe Menorah again by himself while oiling and tightening up the parts.

We then had an evening photo shoot with Uriel’s sister Rachela who proved herself quite the DJ!

Have fun making your own version — this craziness is sure to make your local hardware store VERY happy☺

Wishing you a happy festival of lights!
Episode 2: Planning is Super Fun
By: Jon Armstrong
Tags: Planning Is Super Fun, Link, Humor, Podcast, Ttca

7 days in and we’re late already. Perfect!

Still, we landed our first sponsor! Thanks to Day One, a great app for journaling on your Mac and iOS device for supporting the show. If you’ve been on the fence about this app, check it out. Great for not publicly sharing the TMI moments in your life. The story I share on this episode about Day One is absolutely true.

Bloom, the company behind Day One. is run by Paul Mayne, a great guy and a great designer. I just now remembered following is his blog (before it had the current URL) a long, long time ago and thinking back then that this guy had a great career in front of him. Keep up the great work, Paul and thanks for being our first sponsor!

This episode is about family planning. Which means talk of grown up things. As usual, this episode is not for the kids. Unless you are insane or a worse parent than me.

If you can’t see the Soundcloud player above, you can subscribe to the show in iTunes, Downcast, Instacast and any other podcast app by copying and pasting this URL: http://feedpress.me/ttca. If you want to follow our show site, you can find us at http://tt-ca.net.

Thanks again for your support and taking the time to give this a listen.
Why you matter to an artist
By: Teri Bayus
Tags: Creating Artist, Love, Writing

Why you matter to an artist

I’m an artist by heart. My medium is words. The purpose of those words is to make other people feel. Same as a visual artist.

I’m locked into a life -where while appreciated — I can not express real and raw. Longing and passion. Truth and pain. That doesn’t fit into domestic tranquility.

I’ve painted myself into a corner. Everyone sees me with their own kaleidoscope. Turning the tumblers until the “Teri” they want comes into view. I don’t begrudge anyone their interpretation of me — but it’s not me. They don’t even know the iceberg tip of me- let alone the massive substances underneath.

With you — a stranger- Known only in words- I can be honest. Strong. Weak. Needy. Sexual. Funny. Sad. Happy. Stupid. Brilliant. Subversive. All of me. I can just be me.

That is the gift you offer me. And while you may gleam pleasure out of it- it is I who benefits the most.

For now -The full moon pulls at my libido as it does the waves. I am swollen, my flesh is sensitive. I am anxious to be touched. I love that even half a world away, you see the same moon, this one erotic pleasure we can share. Although your words wrap me daily in ecstasy, it is my own hand and not yours that I feel. But the moon gives us a simpatico connection. My water is warm and pulling toward a necessary release. I want to taste your fluid, bathe you in mine, share for hours the embrace of the veracious.

During the full moon cycle I am distracted, looking only for pleasure, ignoring pain and boredom. I am the most alive version of myself. And I am sure you can feel it. The sensation of being wanted, my desire to be folded into your body over and over as we swim in a sea of covetousness.

Thank you for existing. And I thank the moon for leading me to you as it was the catalyst that brought me out.

Like what you just read? Please hit the ‘recommend’ button. This kind of thing means so much to writers. And please follow me on Medium https://medium.com/@teribayus.

#HaveYouBeenConsumed?

http://amzn.to/1jFEeQH
Then the Electricity
By: Jeff Suwak
Tags: Poetry, Home, Life

Photo by Maria Oswalt on Unsplash

It’s one of those days when

you’re a former ’90s kid

back home for the first time

in a long time,

eating at the old corner pizza shop

for the first time

in a long time.

You’re on your way to visit

your father’s grave,

and you’ve just left

your sick sister’s house,

with its windows rotted out of its walls

and rats piled up in its bathroom closets.

You’re thinking about things gone forever

and things soon to be gone,

and then, just then,

Pearl Jam’s “Yellow Ledbetter”

hits the pizza shop speakers.

A jolt rocks your nerves,

and you start eating faster

trying to finish up your slice

and escape outside,

before you give your goddamn hometown

something you never gave it the satisfaction of before:

tears.
How to Feed Your Mind in Winter? Keep It Simple
By: J.R. Flaherty
Tags: Self, Home, Happiness, Motivation, Minimalism

How to Feed Your Mind in Winter? Keep It Simple

Three simple ideas if you're feeling a little flat in lockdown

Photo by Annie Spratt on Unsplash

If you are feeling low in winter, you are not alone.

The days are grey and short. The struggle to get motivated is real, with a probable third wave of the virus on the horizon.

Even in the best of relationships, lockdown is not easy. We are an easy-going couple who are used to working together. Even so, it’s a small flat. We keep bumping into each other during the day. The joke is wearing thin after nine months. He works in our bedroom. I work in the eating area. The place seems even smaller. The cafes closed.

Nobody leaps to live in London for a quiet life. Yet life has narrowed down to stay at home, watch the news, a trip to the supermarket, and a walk.
How Much HTML You Should Learn Upfront
By: Daanyaal Kapadia
Tags: HTML, Software Development, Programming, Technology, Web Development

A beginner’s guide on how much HTML is enough to get started. How much one should learn HTML before diving into CSS or JavaScript. Covered 9 most important aspects of HTML.

Photo by Sai Kiran Anagani on Unsplash

This article will guide you on how much HTML should you learn to get things started for you in the world of web development. This article covers up to 9 important topics one should know about HTML. At the very end, there is a code snippet that covers everything you need to know about basics HTML and you can then jump to CSS right after.

Before beginning, you should know the basic skeleton of HTML.

Here is the list of things I think every beginner should be aware of it and it will take no time to master it.
Interrogating Nature — Victor Regnault
By: William Nuttle
Tags: Physics, Chemistry, History Of Science, Engineering, Eiffel Tower

Henri Victor Regnault approached scientific experimentation as an interrogation of Nature in pursuit of truth. Regnault inherited an aptitude for math and science and manual skill from his father, who was an engineer in the army of Napoleon Bonaparte. Graduating from the Ecole Polytechnique in 1832, Regnault was on track to become a mining engineer. However, his talents soon brought him back to the chemistry laboratory, first as an assistant in Berthier’s laboratory at the Ecole de Mines and later as Gay-Lussac’s junior colleague on staff of the Ecole Polytechnique. Regnault’s work in the new field of organic chemistry resulted in the discovery of vinyl chloride, a basic ingredient in making PVC plastic, but industrial application of this result was 50 years in the future.

Regnault had more immediate effect with his exacting experiments to measure the thermodynamic properties of various substances, especially the properties of water vapor — steam. Steam power was emerging as a driver for economic progress in the mid-19th century, and engineers needed this information, now known simply as the “Steam Tables,” to improve the performance of steam engines. Regnault succeeded, where Arago and Dulong had failed before him, in compiling tables of precise data on the thermodynamic properties of water vapor over a wide range of pressure and temperature. Generous funding from the government allowed him to develop new, highly precise instruments, and with these Regnault achieved a level of precision, nearly 1 in 10,000, unobtainable by his colleagues.

If science can be described as the titration of observation with inspired insight, then Regnault was inclined to use the reagent of insight sparingly. Regnault was an adamant proponent of the value of clean and clear experimental design and precision in measurement. Colleagues who were more liberal with the use of insight accused Regnault of conducting “an unimaginative quest for unimpeachable numbers.” Regnault avoided the theorizing which marks the advance of science in the minds of many, but his restraint had its advantages. Often enough, Regnault’s experimental results exposed faults in the inspired theories others proposed based on less exacting data. Nobody likes having their inspiration shown to be more fancy than fact.

Henri Victor Regnault is one of the 72 scientists and engineers named on the Eiffel Tower.
Are Self-Checkout Machines Evil Incarnate?
By: Jennifer Macdonald
Tags: Innovative Technology, Inclusive Design, Customer Experience, Self Checkout, Technology

Are Self-Checkout Machines Evil Incarnate?

Six reasons why self-serve stations may not be as bad as you think they are.

Photo by Morning Brew on Unsplash

Have you ever caught yourself uttering the words:

“I refuse to use self-checkouts. They take people’s jobs away!”

Or how about:

“I don’t work here. Why should I do the job for free?”

If so, then you are not alone. I can’t tell you the number of times I have heard these comments over the years. There’s even a meme or two floating around the interwebs that people love to post, warning others about this dratted technology’s evils.

As a self-checkout cashier with many years of experience, I’m here to tell you why you might want to rethink this negative stance.

Here are six reasons why self-checkout stations may not be as bad as you think they are:
Gaslighting for Beginners
By: Sarah Cooper
Tags: Work, Office Culture, Humor, Gaslighting, Satire

Gaslighting for Beginners

How to Use this Revolutionary Psychological Tactic to Your Own Advantage

This is an excerpt from my new book, How to Be Successful Without Hurting Men’s Feelings — out October 2018.
Permission.io Announces Rob Gregory as President
Tags: Startup, Privacy, Advertising, Marketing

Rob spent 10 months on Permission.io’s advisory board before accepting his new role as President.

Austin, Texas - Permission.io announced that proven marketing executive and thought leader Rob Gregory joined the team in the role of President, effective January 2, 2019. As former President at Whosay, a Viacom company, Rob brings extensive C-level experience in social media, mobile, influencer marketing, consumer print, and B2B publishing to Permission.io.

About the future of permission-based marketing, Gregory said, “Consumers now have the power to be marketed to on their terms, and with their permission. They won’t be interrupted, and they look for value in return for engaging with a brand. The security of the blockchain makes it possible to make this value exchange at scale, and to measure it.”

“I am extremely impressed with Rob’s forward-thinking prowess as evidenced by the notable success of his past endeavors and believe his addition to Permission.io is an exciting step toward achieving our vision of a permission-driven advertising industry,” said Permision.io CEO Charles Silver.

Permission.io’s live Permission Marketplace will empower brands and marketers with tools to engage in trusted and transparent relationships with their customers in a brand new, but familiar-feeling digital advertising model. Forward-thinking marketers will be the first to participate in a permissioned economy, where consumers control their personal data and are directly engaged and compensated by advertisers.
An Occupational Life Suck
By: Steve B Howard
Tags: Work, Resistance Poetry, Poetry, Poem, Life

Photo by Edwin Andrade on Unsplash

They call it a “livelihood.” Always feels more

like a sinking death to. Sans the joy, this

thing is what you do to live I guess. Funny though how

while doing this job you can feel your spirit trickling

away as if the Strong Force binding your atoms

together has said, “Fuck it!”

Your occupation is the tick that slowly drains

you, but it itches so bad that the irritation pisses

you off to keep you going out of spite.

You’ve been sticking this gig long enough now

that you can do it well without really trying. Still,

when the thing you know you really love

is only a pen and notebook away, but galaxies

away from paying the bills it’s no wonder

you sometimes contemplate burning the whole

trailer park to the ground.
Truth Will Out
By: Wes Kriesel
Tags: Poetry, K12, Leadership, Team Building

Innovating in Fullerton & beyond. Photographer. Runner & fundraiser for clean water with Team World Vision.

Follow
Flush with $280 Million Investment, TransferWise to Continue Asia Expansion
By: Cadence Bambenek
Tags: Money, Fintech, Payments, Money Transfers

Founders of money transfer service TransferWise Taavet Hinrikus and Kristo Kaarmann.

International money transfer service TransferWise Thursday announced $280 million in capital raised from Old Mutual Global Investors and venture capital firm IVP, bringing their total investment to date to $397 million and giving them a reportedly $1.6 billion market valuation.

The investment will be used as fuel for their continued expansion into Asia. TransferWise launched their services in China last year and opened a hub in Singapore in April. TransferWise expects the full range of services to be up and operating in India within the next year — at present, customers can only send money to the country.

Some of the funds will also support TransferWise’s recently launched borderless business account and a soon-to-launch foreign currency card.

“Business banking is notoriously expensive and difficult to set up and manage, even alternatives like PayPal are expensive for small businesses,” Taavet Hinrikus, CEO and co-founder of Transferwise told Wired. “So we’ve created the Borderless account. It’s an account that’s not constrained by country or currencies and gives businesses more freedom and control”.

The company says the borderless account, designed to reduce the cost of international banking, has no setup fees, no monthly charges or fee to receive a payment. When money is transferred across borders, TransferWise does charge a “small transparent” amount, though.

While on the surface TransferWise looks like one of the many early challenger banks coming out of the UK, the company is differentiated from its younger rivals, like challenger bank Revolut. Launched in 2011, it is TransferWise’s stated goal to be the go-to service for international money transfers, and that continues to be their focus. They claim to have over two million customers across 42 countries, to move £1 billion in transactions each month, and that they finally turned a profit for the first time in early 2017. Though, according to Bloomberg, TransferWise has yet to file “its financial statements for the tax year ended March 2017.”

But their plans certainly seem ambitious. According to Business Insider, Hinrikus, said: “£1 billion is just a slice of the market, which means millions of people are still being ripped off by banks and traditional currency brokers every day.”
Refining the Truth About Us
By: Ottilie Max
Tags: Relationships, Love, Adrienne Rich, Poetry, Poem

Adrienne Rich wrote: An honorable human relationship — that is, one in which two people have the right to use the word “love” — is a process, delicate, violent, often terrifying to both persons involved, a process of refining the truths they can tell each other.

Read more about her wisdom and life advice, here.
Scarred Heart
By: Ann Marie Steele
Tags: Confusion, Love, Poetry, Self-awareness, Poem

If you purge your soul onto paper and are doing it for the love of writing. Then this publication is for you. We love gritty, raw, emotional, thought-provoking, rebellious, sexual, spiritual, nature-related writings and comic strips.

Follow
Four Aussie Innovators Share in $300,000 with Optus Future Makers 2017
By: Claris Editorial Team
Tags: Startup, Customer Stories

Both Danny Hui and Michael D’Rosario were also selected to attend the 2017 Future Makers Asia Pacific Program hosted by Singtel, a three-day program where they will join fellow Future Makers from the Philippines and Singapore. As part of the program they will attend the Impact Investment Summit and learn how to scale their solution through Asia Pacific. Danny and Michael will have the exclusive opportunity to pitch to impact investors as well as the opportunity to score a share of an additional SGD $60,000 in funding from Singtel.

About Future Makers

Future Makers is an incubator program launched by Optus to foster digital innovation and bring to life bold ideas that have the ability to change the social landscape.

It supports entrepreneurs, social enterprises and not-for-profit organisations with innovative technological ideas that help address the challenges faced by vulnerable young Australians across employability, education and mental wellbeing.

Future Makers Panel:

John Paitaridis — Managing Director, Optus Business

Claire Rogers — CEO, World Vision

Andrew Tyndale — Director Grace Mutual & Chair of The Funding Network

Steven Persson — CEO The Big Issue

Optus Future Makers Winners:

Danny Hui, from Bondi Junction, NSW, yesterday walked away with $100,000 to make his idea a reality. ‘sameview’ is an app prototype which would enable multiple people involved in a disabled child’s care, including educators and healthcare professionals, to share information efficiently.

Dervla Loughnane, from Southport, Queensland, yesterday walked away with $72,000 to make her idea a reality. ‘Virtual Psychologist’ seeks to remove barriers that prevent people from seeking traditional counselling, such as the fear of talking about issues face-to-face, by offering mental health services via text message.

Michael D’Rosario, from Mitcham, Victoria, yesterday walked away with $47,000. ‘Hyveminds’ is a subscription textbook service with plans to provide students in underprivileged areas in Australia and abroad gratis access to digital textbooks.

Angus Robilliard, from Redfern, NSW, yesterday walked away with $11,000. Angus with his help of his workplace, South Cares Rabbitohs, created the concept of a tailored case management system to assist their staff in supporting Indigenous high school students who are looking to join the workforce.

Media contact:

Melyssa Troy, Thrive PR

02 9310 4011 | 0431 242 707

melyssa.troy@thrivepr.com.au
11 Powerful Quotes to Help You Get Better at Whatever You Do
By: Audrey Malone
Tags: Inspiration, Success, Productivity, Creativity, Advice

Wisdom is the Principal Thing

So, with all your getting in life, be sure to get wisdom and get some understanding as well, while you’re at it.

This is according to teachings in the Book of Proverbs in The Bible, the greatest self-help book one could ever read, IMO. And this is regardless of whether or not you’re religious or spiritual (which are two different things).

Following are quotes drawn from the wisdom of some truth-speaking people. Some you’ve heard of and others you may not have not known anything about. No worries though, I’ve linked bios to their names for your convenience.

These quotes, if taken at heart and received as good words to go by, could very well help you achieve success in whatever you choose to pursue.
{Virile}
By: Shringi Kumari
Tags: Spirituality, Feminism, Diversity, Masculinity, Poetry

What made man endless?

A slug or a scorpion hanging from a glacier of flesh. That is a man — virile, potent. Absent. Absolute. When we pour the strength of his arms into his eyes, forests grow in his head. Man bears trees which bears leaves-flowers-fruit-death. Man makes life and man snatches roots that sustain the same life.

I am a man. That man-mountain-plateau-marsh where fishes come to hide from their sea and heat breaks new unready pots. The woman in my man is clever, astute. She knows when exactly to grow a moustache and when to let hairy nipples rest behind clothes. When insects climb her thighs, she knows what part of her grows and what part becomes an estuary.

In my forehead, man germs collect behind my bindi*

In my nose, man gust enters through a vibrating pistil

On the calyx of a flower sits the woman (pistil) and the man (stamen). Nature expresses them as one harmonious expression. I pluck that flower and put it in my hair. The hair of a woman, made by the hair of men and women of this world. A strand of which is that flower which has two stamens and no pistil at all.

In my hair, man insects make woman huts

In my hair, man dirt sits on delicate flesh

That slug has crawled up my belly and has moved into my chest. He wriggles like a dancer left to herself (and music) for years that are left alone by the calendar. There is a place, time and dimension where man resides as a woman — still virile, still potent.
Why Your New Website's Alienating People
By: Jessica Barnaby
Tags: Entrepreneurship, Freelancing, Leadership, Business, Marketing

1) Your Business Offering Isn’t Clear

It’s normal for people to have a business idea and run with it, thinking they’ll pad it out as it takes off.

My clients do it, and I did it too when I started my business way back. I thought I’d easily get customers because the internet was new and I was well in front of the curve.

I failed miserably. I was offering web design but it turns out I knew little about marketing or customer psychology or even what I was selling. It turns out people didn’t want a website, they wanted a business. My business took off when I understood my business from the customer’s point of view.

I loved web design and writing and graphic design and blah blah blah… It didn’t matter what I loved. My clients just wanted me to fix their problems.

The same way you want the plumber to stop an overflowing bath crashing through your ceiling. You don’t care about the plumber’s life journey or their kids or the challenges they’ve overcome to get to where they are. Just get it done, is what you’re screaming inside your head as the ceiling bulges.

Be a solution

Avoid setting up your website as a brochure or in the style of some influencer rocking it on social media. Their business is not your business, and you have no idea if they just copied someone else too.

If people are leaving your website, it’s because your website isn’t showing people you’re a solution to their problems. Talking about your qualifications and experience isn’t enough. You have to give them something to stay for.

50% it’s a copywriting issue.

50% it’s an “Ima-Set-Up-My-Website-And-Wing-It” issue.

Setting up a website is cheap, but turning it into a business needs a plan.

Answer these questions:

What are people buying from you? Why do they want it? How are you supplying it? Where are they hearing you? When does the money come in?

Get deep with your answers as this is a basis of a well-formed business plan. You need to guide your strategy with the right business mindset.

Your website is a reflection of your priorities and people stay to read your website when they see their problems are your priority.
Like A Kid On Christmas
By: Jj West
Tags: Dating, Relationships, LGBTQ, Haiku, Christmas

Want to be the first to pick up what I’m putting down? Click this link to slip inside my inner circle for updates on new articles, stories, and anything else I’ve got goin’ on.
The Hadamard Gate is Underrated
By: Myles Sherman
Tags: Quantum Computing, Entanglement, Hadamard Gate

The fundamental unit of information in regards to a classical computer is called a bit. Bits can be described either as a 1 or a 0 (on and off respectively). However quantum computers use qubits. A good way to distinguish the two is the glass metaphor. Bits can be one of two things: a full glass or an empty glass. Qubits can be anywhere in between. So, just like classical bits, qubits can be in one of the two states 0 or 1. Bits, however, cannot be in a superposition of the two while qubits can.

In the case of qubits, 0 and 1 are represented in the Dirac notation:

|1> |0>

However, a more general state of a qubit is represented by the equation:

|𝜓> = 𝛼|0⟩+𝛽|1⟩

Where alpha and beta are complex numbers that follow the rule:

|𝛼|² + |𝛽|² = 1

It is much more explanatory to use this general equation to see how much 1 or how much 0 a qubit is rather than saying “both 1 and 0 at the same time”. From that general equation, we can derive that the state of a qubit |𝜓> is represented by the two dimensional vector:‎

Qubits are 2 dimensional quantum systems however, it is completely possible for a quantum system to be way more than 2 dimensions. However, for the purpose of computing and efficiency, qubits remain 2D.

Now what does this |𝜓> mean? For this, we will bring out the double slit experiment: quantum mechanics’ most fundamental discovery. If you would like some background information on the topic, I wrote a short article about it here. The only way for the interference pattern to show up on the detector screen would be for the quantum particle to pass through, informally speaking, both slits at the same time similar to how we think of qubits being both 1 and 0. However we may observe which of the two slits the quantum particle passes through by setting up an observer. The state of observing whether the qubit is 1 or 0 is referred to as measurement. So when we measure the qubit to be one or the other, it will collapse to |1> or |0> depending on the measurement. The probability as to which one you will measure is determined in the generalized equation mentioned above.

The qubit will collapse to |0> with the probability |𝛼|² and it will collapse to |1> with the probability |𝛽|²

Now we end up with a distinct value of either on or off. This is the phenomenon that is being uncovered today by many quantum physicists and quantum computing scientists.

Now when I first read over all of this information, I had a big lingering question.

Since we collapse qubits, does that mean we have to continuously dispose and replace them?
Quem Somos
By: Dimas Augusto
Tags: Inovação, Design Thinking, Time, Aplicativos, Tecnologia

in Both Sides of the Table
The Power of Microservices in a Modern Data Architecture World
By: Harsh Loomba
Tags: Microservices, Best Practices, Rest Api

The microservices approach to custom development is accelerating with the advancement of services from public cloud providers. This approach also has the benefit of easily incorporating the large data sets that are required in today’s more advanced analytical applications.

Cervello’s teams design, implement, and manage custom data and analytics solutions using a microservices approach on cloud platforms. Since managing data and analytics is an ongoing journey, our ability to create abstract design with scaled architecture not only serves our clients’ goals but also makes it easy to integrate new requirements. To do such scaled engineering, our team connect the custom services with cloud providers’ services, such as Amazon Simple Queue Service, Amazon Simple Storage Service, Azure Blob Storage, and Hadoop HDFS. In addition, to enable communication and deployment of the entire architecture, we leverage cloud providers’ platforms and use their services, such as AWS Elastic Beanstalk, Amazon Elastic Container Service, and Azure Container Registry.

In this first post of a series, I briefly discuss the relevance of microservices in the modern data architecture world. First, let’s consider how microservices function by taking a look at a private ride example.

Standard Microservice Design

In this diagram, every benzene-like structure acts like a microservice. A microservice such as billing a rider app covers the entire billing process, and once a rider is billed through the Stripe payment process, that communication is sent to another microservice that is waiting to be triggered to perform the next step. These communications between microservices are attained through messengers such as RestAPI endpoints, messaging queues (Kafka, JMS, and SQS), and remote procedure call strategies. Finally, these services can either be deployed as a serverless process or a container service on AWS Elastic Beanstalk, Amazon ECS, or Azure Kubernetes Service.
Age of Aquarius, truths and myths
By: Elisabetta Brancato
Tags: Consciousness, Evolution, Growth, Astrology, Life

Age of Aquarius, truths and myths

plus 5 tips to better functioning in the “New Era”

Photo by Efe Kurnaz on Unsplash

Many believe the 21st of December signed the entrance into the Age of Aquarius. From and astrological and astronomical perspective however, it’s extremely difficult to confirm a specific date, due to the complexity of the calculation. Furthermore, if we look at the archetypal energy of Aquarius we see that the shift into the new era already started taking place about 50 years ago, and we are still in it.

What we know for sure is that on that day Saturn and Jupiter were in conjunction, an encounter that occur every 20 years. What’s so special then? It took place at 0 degrees giving emphasis to a new starting point, on the same day of the Solstice defining the dawn of the new season, and at 0 degreed of a new elemental sign marking the beginning of a cycle of about 240 years.

During this long time, Jupiter and Saturn will in fact keep meeting only into air signs (the previous cycle was in earth signs), and this will be the determining factor of the themes of the collective shift that they will bring about, such as: the restructuring of the society as we know it, the way we communicate and relate, new politics, new technologies. etc. We are basically into a big transition.

Transition always means a period of chaos, of restructuring, of change etc. Aquarius is and will be the energy protagonist of this shift, and during the course of the next ten years will bring about the completion of the setting phase into the approximately 2000 years of the famous Aquarian Age.
Changing The iOS Status Bar Of Your Progressive Web App
Tags: Web Apps, Web App Development, Pwa, Progressive Web App, Web Development

Even after making your PWA web app capable (standalone) you may notice that its full-screen version still does not fully resemble a native iOS application. One of the most obvious differences that remains is often that the status bar at the top of the screen (which usually displays the time and battery status) appears completely black and does not show any text or symbols. Take a look at Instagram’s PWA, for example:

Status bar for Instagram’s native iOS app

Status bar for Instagram’s PWA

In order to change the iOS status bar of your progressive web app, you must use the apple-mobile-web-app-status-bar-style meta tag. Unfortunately, the number of ways to customize the status bar is fairly limited, but Apple offers three distinct settings: default , black , and black-translucent .

default

Status bar with “default” setting

The default setting has a white background with black text and symbols.

<meta name="apple-mobile-web-app-status-bar-style" content="default">

black

Status bar with “black” setting

The black setting has a black background and black text and symbols, making it appear completely black. If you do not use the status bar meta tag, this is what status bar will look like.

<meta name="apple-mobile-web-app-status-bar-style" content="black">

black-translucent

Status bar with “black-translucent” setting

The black-translucent setting has white text and symbols, and will take the same background color as the body of your web app. Unfortunately, the text color will remain white even if you use a light background color.
[VDO] เกี๊ยวน้ำกุ้ง อร๊อยยย อร่อย…
By: Mattika Singtosee
Tags: Food, Recipe, เกี๊ยวกุ้ง, เกี๊ยวน้ำอรุณา, Wonton

in Both Sides of the Table
Dalam Edisi PDKT dengan Web Framework Laravel 4
By: Didik Tri Susanto
Tags: Web Framework, Belajar Laravel, Opini, Laravel 4

in Both Sides of the Table
Tenuous Tranquility
By: Chelsea Marie
Tags: Culture, Mental Health, Writing, Poetry, Tanka

Chelsea Marie is a writer by night and graphic designer by day. She is a West-Coast Canadian with a bad case of wanderlust and a dream to travel the world with her severely airplane phobic partner. Why do the easy way when a complicated route makes a much more interesting story? She’s on Instagram @c.the.storyteller writing and posting poetry in her spare time.
Troj4n wants to “Be Your Everything”
By: Murendeni Mukwevho
Tags: Music, Music Video, Artist, South Africa

Troj4n wants to “Be Your Everything”

Trojan releases the music video for his single, Be Your Everything

Be Your Everything’s song cover, sourced from Troj4n Muv3nda

For the past year, Troj4n has been making big moves to advance his career. Earlier last year, he released his 7 tracks EP named Looking for Something which is just timeless music. He followed up the release of his EP by releasing two singles namely, “4 am in the Studio” and “Be Your Everything”. Both his singles have helped put his talent on the spotlight.

Late last year, he went on to sign a management deal with Rita Dee Entertainment, an entertainment house owned by the one and only Rita Dee Nephawe. Other artists signed under this entertainment house included Makhadzi, a household brand in Venda.

The release of #BYE music really show how creative he can be and the creativity that was put into this music video also raises standards for all Venda artists hoping to shoot music videos in the future. The visuals on this music video are so clean.

I also wish him a happy birthday.

Check out his new music video and subscribe to his channel.

Troj4n - Be your everything (Official Music Video)

Download the song from https://www.slikouronlife.co.za/song/18803/troj4n-be-ur-everything

You can also follow him on Facebook, Twitter and Instagram
Data analysis and visualization in Python
By: Priyanka Meena
Tags: Python, Data Science, Data Analysis, Data Visualization, Pandas

Image by Luke Chesser on Unsplash

Many a time, I have seen beginners in data science skip exploratory data analysis (EDA) and jump straight into building a hypothesis function or model. In my opinion, this should not be the case. We should first perform an EDA as it will connect us with the dataset at an emotional level and yes, of course, will help in building good hypothesis function.

EDA is a very crucial step. It gives us a glimpse of what our data set is all about, its uniqueness, its anomalies and finally it summarizes the main characteristics of the dataset for us. In this post, I will share a very basic guide for performing EDA.

Step 1: Import your data set and have a good look at the data.

In order to perform EDA, we will require the following python packages.

Packages to import:

Once we have imported the packages successfully, we will move on to importing our dataset. You must be aware of read_csv() tool from pandas for reading csv files.

Import the dataset:

For the purpose of this tutorial, I have used Loan Prediction dataset from Analytics Vidhya. If you wish to code along, here is the link.

The dataset has been successfully imported. Let’s have a look at the Train dataset.

Train.head()

Fig 1 : Overview of Train dataset

head() gives us a glimpse of the dataset. It can be considered similar to select * from database_table limit 5 in SQL. Let’s go ahead and explore a little bit more about the different fields in the Train dataset. info() gives uses all the relevant information on the dataset. If your dataset has more numerical variables, consider using describe() too to summarize data along mean, median, standard variance, variance etc.

Train.info()

Fig 2 : Columns in the dataset

We observe that there are 614 records and 13 columns in the dataset. Train dataset has Loan_ID, Gender, Married, Dependents, Education, Self_Employed, Property_Area and Loan_status as object types. Object type in pandas is similar to strings. ApplicantIncome field is of integer type. The other three fields namely CoapplicantIncome, Loan_Amount_Term and Credit_History are floating point types.
Probability Sampling with R
By: Roberto Salazar
Tags: Probability, Coding, Data Science, Statistics, Engineering

For the following example, let’s obtain samples from a set of 100 products using probability sampling to determine the population mean of a particular measure of interest. Let’s take a look at the R code:

Simple Random Sampling

As its name suggests, the simple random sampling method selects random samples from a process or population where every unit has the same probability of getting selected. This is the most direct method of probability sampling.

Simple Random Sampling

Systematic Sampling

The systematic sampling method selects units based on a fixed sampling interval (i.e. every nth unit is selected from a given process or population). This sampling method tends to be more effective than the simple random sampling method.

Systematic Sampling

Cluster Sampling

The cluster sampling method divides the population in clusters of equal size n and selects clusters every Tth time.

Cluster Sampling

Stratified Random Sampling

The stratified random sampling method divides the population in subgroups (i.e. strata) and selects random samples where every unit has the same probability of getting selected.

Stratified Random Sampling

Concluding Thoughts

Sampling represents a useful and effective method for drawing conclusions about a population from a sample. However, analysts and engineers must define sampling techniques with adequate sample sizes capable of reducing sampling bias (e.g. convenience sampling selection bias, systematic sampling bias selection bias, environmental bias, non-response bias) to obtain representative samples of a given population.

— —

If you found this article useful, feel welcome to download my personal code on GitHub. You can also email me directly at rsalaza4@binghamton.edu and find me on LinkedIn. Interested in learning more about data analytics, data science and machine learning applications in the engineering field? Explore my previous articles by visiting my Medium profile. Thanks for reading.

- Robert
Is the USA Worth Being Proud of This Fourth of July?
By: Daniel Kay
Tags: Travel, Culture, USA, Politics, Photography

With so much to be ashamed of in the news lately, I think it’s important to remember: we have lots of be proud of here, too.

The USA’s nature is second to none; it is well-taken care of, respected, preserved, and enjoyed.

It’s important to recognize the pitfalls of history, and accept that this land doesn’t belong to us. (Especially important with the recent happenings on our southern border). Nonetheless, I’m incredibly thankful for the opportunity to have communed with this land, learned from it, and grown up in it.

Thanks, America.

We all seek our communities, and for me, the community I have found the most welcoming, here in the US, has been the outdoors community. The climbers, skiers, anglers and dirtbags that make the West — all of the West — their home.

This is my America.

Tell me about yours.
The Software Engineering Application Timeline
By: Brett Fazio
Tags: Work, Internships, Programming, Startup, Software Engineering

October, November

By this point, you should have applied to all the companies you would like to work for. This is when the bulk of your interviews will occur. If you’re applying to internships, most of these will be via phone and rarely will you have an on-site. Some companies that do on-sites for interns are Microsoft, Bloomberg, and Two Sigma. If you’re applying for new-grad roles, you will likely have a few rounds of phone interviews followed by a “super day” on-site. With that said, this will likely all be virtual this October (2020) due to COVID-19.

If you have pending deadlines, make sure your assigned recruiter is aware of that immediately. If it looks like a lot of your interviews won't be for a few weeks, it may be best not to pester your recruiters so much to make sure that your interviews will line up.

Note: This is just a strategy if you really want your offers to line up. In practice, it’s best to continue the interview process as soon as you can.

If you’re getting offers for internships, congratulations! If you find one you like, you can just go ahead and accept it. If there’s still a company you want to work for, but you have expiring offers, try to extend them. Usually, you can get a one- or two-week extension, but don’t expect anything longer than that.

If you’re getting offers for full-time work, you will definitely want to tell the companies about your other offers to try to negotiate how much you’re getting. Most companies will match comparable companies (think Google-Microsoft), but they will usually not compensate for location differences (Seattle-Mountain View). If you feel like it’s a good option for you, you can accept an offer and later renege (telling the company you are no longer coming to work with them after you signed your contract) when something better comes along. However, this is not something I recommend at all. I would never do this, as I feel it's unprofessional and burns the bridge. A lot of college students see this as a popular option, though, so I decided to mention it.
Tạo môi trường lập trình Python trên Windows với WinPython
By: Thanh Long Hoàng
Tags: Ipython, Winpython, Jupyter Notebook, Python, Windows

in Both Sides of the Table
The single best argument against energy-balance theory
By: Reinoud Schuijers
Tags: Health, Food, Fitness, Lifestyle, Diet

The single best argument against energy-balance theory

A short tale of omelets and six-pack abs

Omelet by Eaters Collective

In some corners of the internet (and in gyms every here and there), a heated debate is taking place. It’s a debate which brings quite an interesting blend of people to the table. On one end, there is this group of people, mostly from the fitness industry. Coaches, trainers, and athletes. All with quite some lean muscle mass (and hefty PRs) to show for them.

With them, they have a handful of medical or health professionals: doctors and dieticians. What’s interesting, however, is that at the other end of the table, there are more of those.

The two camps argue about this statement:

Losing weight is all about calories in versus calories out. Burn more than you eat, and you will lose weight.

This theory is called energy balance. It’s a very easy to grasp concept: your body is a storage unit for energy. If you take out more energy than you put in, it will become lighter. It’s easy to see why this is appealing.

The fitness group is mostly in favor of the statement. And, when it comes to followers, they are winning by a landslide. Ask anyone random person how to lose weight, and the answer you will get will almost certainly be: eat less, move more. Ergo: tip the energy-balance scale so that you burn more than you consume.

But that’s not what the other group believes. They say that the human body is a much more complex system, regulated by hormones. As a result, they state that when you eat and what types of food you eat are much more important than just the amount of calories.

So who’s right? The fit, or the smart?

(Yes, fit people can be smart too. Calm down.)