fabiochiu/medium-articles huggingface dataset:
Inside the World of Birth Tourism
By: Yuming Fang
Tags: Birth Tourism, Birth, Immigration, Health, Medical Tourism

The maternity hotel’s services begin at the Los Angeles International Airport. Qu picks up his guests and delivers them to their reserved room. Every day, the maternity hotel’s two on-staff chefs provide three meals (four dishes and one soup) as well as seasonal fruit. Qu drives his clients to shop and dine out twice a week. He also helps find obstetricians for them, drives them to prenatal care appointments, and takes to the hospital for delivery.

“Every pregnant woman has her own budget expectation for delivery,” says Qu, who worked as a technician in a pediatric hospital in Shanghai, China. “I give my clients a quotation list of different hospitals. After they choose a hospital, I will contact an obstetrician for them.”

In China, new mothers are told to rest indoors for one month after giving birth. They’re supposed to have traditional soup of chicken and ginseng, pork ribs and corn, or pork liver and sesame oil as well as vegetables with rice. They’re not supposed to do housework or touch cold water. The maternity hotel provides a mainland or Taiwanese matron, who follows through on these principles when taking care of new mothers and babies.

Babies’ diapers

“I chose a Taiwanese matron for my first and second delivery. She cooked five meals with nutritious soup a day,” Qin says, standing up and heading to the refrigerator for a glass of fresh orange juice, “So I recovered very fast.”

Traditional Chinese customs don’t allow women to take a shower for a month after they give birth, but Qin says her matron “didn’t think so.” Ancient people were used to bathing in a tub, which is not clean for a woman who just gave birth, she says. Qin adds that poor bathing conditions made women suffer colds and fevers, both of which were serious illnesses at that time. “Now, things are different. I can take a shower and keep warm in a temperature-set room,” she explains, sitting back on the couch.

But her matron didn’t allow her to go outdoors, believing the wind could adversely affect her health.

“I had to wear a warm hat when I went out,” Qin shrugs. “And wear fluffy socks all the time, even at home. Keeping warm is an important thing for a woman who gave birth.”

Seeing Qin approach the couch from the kitchen, Qu adds that the maternity hotel impressed her because she received gifts for her newborn babies after delivery.

The kitchen

“My first child received powdered milk, baby diapers, and cotton clothes. My second child received an electric cradle as well as baby diapers,” Qin says. “The owner is very kind.”

Hearing Qin’s words, Qu smiles gently and says, “I hope my clients feel at home.”
Good data chart examples in this Kleiner Perkins presentation
By: Jan Schultink
Tags: PowerPoint, Presentation, Design, Data Visualization, Presentation Design

This Kleiner Perkins presentation introducing their iFund makes good use of data charts to prove points.

Kleiner Perkins iFund Presentation at iPhoneDevCamp 3

View more documents from Raven Zachary.

Quiet layouts that focus on making one point only

Clever sequencing of charts: “you thought the iPod was big but wait untill you see it compared to the iPhone”

Applying a brightly colored fill under a line chart to amplify the trend (lines on its own are not very visible)

Click through the 14 pages to have a look yourself
When Civilizations Collapse
By: White Feather
Tags: Life, Spirituality, Society, Fiction, History

The survivors walked across the desert, their heads hung in sorrow and their hearts drained of hope. Some wondered if those who died were actually the lucky ones.

The group of around one hundred refugees stopped every few days to bury another one of their lot who succumbed to the harsh conditions. The desert offered little sustenance but plenty of danger. Burned by the hot desert sun, the people had to fend off jackals and snakes and poisonous insects. Vultures followed them from above.

Whenever civilizations collapse there have always been survivors. It is these survivors who plant the seed for new civilizations. These seeds carry the genetic imprint of the trauma experienced in the collapse of the previous civilization. History repeats itself over and over, providing endless opportunities to learn from and heal from that trauma.

Their numbers dwindling, the refugees walked for months across the hills and valleys of the desert wasteland. One day they reached the top of a rise in the land and what they saw stopped everyone in their tracks.

In the distance there were magnificent snow-capped mountains. In the little valley immediately below them was a wide river, its waters flowing from those distant mountains.

Great joy spread through the people. Some began dancing and singing. All they had to do was follow that river and they would arrive at those mountains in just a matter of days.

The glaciers atop those mountains could provide all the water the people would need for their bodies and their crops. The forests could provide the wood to build new homes and the game to further nourish them. The people could finally end their long journey and build a brand new civilization. The possibilities for true peace and joy and happiness filled the people with euphoria.
An Ode to Handwashing
By: Rachel Wayne
Tags: Humor, Poetry, Self Care, Health

Photo by Austin Kehmeier on Unsplash

The rumble begins from beneath the sink, bubbling up a delightful stream of water that emerges from the faucet.

A trickle at first, then a great gush of beautiful H20, tiny droplets misting into the air. It reminds me of a sweet summer rain, the flow of a mighty waterfall, the gentle rocking of the waves.

Water. Here to wash away filth and poison. My hands, the purveyors of my touch and the tools of my daily tasks, are contaminated. I desperately shove them beneath the water, sighing in relief as the cool fluid provides its soothing touch.

I reach for the soap dispenser, an unassuming vessel of gooey goodness. Pump, pump, squirt. A glob of soap swirls around my palm. It looks impotent, disgusting.

Just wait.

I blend the soap with the stream of water, rubbing my hands quickly together. The goo transforms into a bubbly delight. It soaks my skin in a comforting lather, a germ-slaying concoction.

Scrub, rub, scrub again. Twenty seconds’ worth. Under the nails, over the knuckles, down the wrists, across the palms. The soap sweeps the landscape of my hands, washing the dirt and microbes away.

Now comes the best part: the rinse. Luscious water rolls over the suds, pushing them into waves like those that lick the shoreline. The warmth travels up my arms and into my heart.

Clean. My hands are finally clean.

I gently dry away the excess water, enjoying the plushy comfort of the towel. I examine my hands. They feel renewed, ready to take on the world again.

Such a simple ritual, yet so powerful.

I wonder why more people don’t do it.
The Solar Plexus: Our Power is Taken Away When This Chakra is Blocked
By: Kimberly Fosu
Tags: Spirituality, Energy, Inspiration, Leadership, Creativity

A SIMPLE GUIDE TO THE CHAKRA ENERGY SYSTEM

The Solar Plexus: Our Power is Taken Away When This Chakra is Blocked

How to strengthen and align your solar plexus chakra

Image by Peter Lomas from Pixabay

The entire universe is made up of energy and our bodies are no exception. The solar plexus (celiac plexus) is a complex system of radiating nerves and ganglia located in the pit of the stomach in front of the aorta. It is part of the sympathetic nervous system and therefore responsible for fight-or-flight.

The solar plexus chakra is located in the solar plexus.

The study of the chakras originates in Eastern spiritual traditions that consider the seven primary chakras as a person’s life force or prana — the energy that moves us.

In the two previous articles, we learned that the first chakra, the root chakra is responsible for keeping us safe and grounded on earth and the second chakra, the sacral chakra is the spot where our creativity lies and it rules all things sensual and sexual.
Interactive Data Graphing in React
By: Jeremiah Tabb
Tags: Data Visualization, Code, JavaScript, Web Development, React

Interactive Data Graphing in React

Create compelling visualizations with Cytoscape.js

Photo by NASA

Visualizing data has become one of the most powerful tools available to software engineers. Making large amounts of data interactive and user-friendly produces an attention-grabbing product, and can reveal essential correlations that might otherwise go unnoticed.

Cytoscape.js offers a convenient solution for spinning up accurate graph models quickly. With impressive displays, like this interactive map of the Tokyo Railway System, Cytoscape has become the first choice network visualizer for many web developers.

When working recently on a React project, I had to sift through various sources to get a fully-featured implementation of Cytoscape.js up and running. Thanks to the power of blogging, my former headaches can help guide you through the setup process, so you can quickly implement stunning data visualizations in your next React project.
The Rise of Turntable.fm
By: Edith Zimmerman
Tags: The Internet, Music

Has Turntable.fm taken over your days and nights? The site for people to gather in “rooms,” play music, and feel embarrassingly giddy when friends and strangers vote their approval is still in beta mode but already one of the most addicting internet developments in recent memory. By ingeniously combining good and bad music with friendly competition, a chat feature, and cute avatars that have changeable outfits and boppable heads, the site ruins your life. For another reason to avoid it, go read these interviews with some of the site’s top DJs, who say things like:

I think my personal record in the DJ chair is 18.5 hours. I had things keeping me in the house that day, but not demanding too much of my attention so I just never found a reason to step down. That probably makes me sound pretty lifeless.

It does, yes, but also yes! That’s exactly what it does. Why would you ever step down when you could just keep going? Go start a room, never leave. You’ll see.
Store a Card on File using Reader SDK
By: Gabriel Jinich
Tags: Payments, API, Ecommerce, Software Development, Mobile App Development

Heads up, we’ve moved! If you’d like to continue keeping up with the latest technical content from Square please visit us at our new home https://developer.squareup.com/blog

Last year, we announced the release of Square Reader SDK for iOS and Android, along with plugins for React Native and Flutter. While Reader SDK makes it easy to take in-person payments within your own app using Square hardware, you may also want to store customer card information securely to use in the future (for example, to create a recurring billing plan).

To help you create a seamless experience for returning customers and enable recurring payments, Reader SDK now supports storing a card on file using Square hardware. This new functionality works in tandem with the Customers API and Transactions API, allowing you to create a customer profile; swipe, tap, or dip a card to store it securely; and then charge the card for future purchases at any time.

Here’s how it works:

Create a Customer

Use the Customers API to create a customer profile, including contact information such as name, address, email, and phone number.

Store a Card on File

Use Reader SDK to swipe, tap, or dip a customer’s card and store it as a card on file. Reader SDK handles all payment information securely and creates a Customer Card object for you, so you don’t have to worry about handling raw card details or dealing with PCI compliance.

Android

Create a CustomerCardManager:

Write a callback to handle the result:

Add code to start the Store Customer Card flow:

iOS

Implement StoreCustomerCardControllerDelegate Methods:

Add code to start the Store Customer Card flow:

Charge the Card on File

Once you’ve stored a Card on File for a given Customer, you can use the Transactions API to charge the card for future payments.

Meet your buyers wherever they are

With Square’s omnichannel developer platform and the addition of Card on File to Reader SDK, you can now add cards to a customer profile regardless of where the customer relationship starts: online, in-store, or in-app. We are excited to see what you’ll build!

You can read more about Reader SDK in our documentation. Be sure to read and follow the requirements for obtaining customer consent and disclosing terms and conditions outlined in the documentation.
10 Simple Ways to Think Positively Every Day
By: Matthew Royse
Tags: Health, Personal Development, Life, Self Improvement, Positive Thinking

10 Simple Ways to Think Positively Every Day

Positive thinkers are more successful, less stressed, healthier, and live longer

Photo by Nick Fewings on Unsplash

When your state of mind is positive, you’re able to handle every day stress in a constructive way. Positive thinking builds your confidence, improves your mood, and reduces your stress, according to research.

“Once you replace negative thoughts with positive ones, you’ll start having positive results.” — Willie Nelson, an American musician and actor

Positive thinking doesn’t mean you avoid life’s unpleasant situations. You just approach tough times in a positive and productive way. Think the best outcome is going to happen. Not the worst. Thinking positive requires focus, dedication, and discipline.

Let’s dive into 10 ways that you can make sure you think positively every day.
How to Launch a Tech Startup in 2020
Tags: Startup Lessons, Software Development, Tech Startups, Startup, Technology

But why is this happening? Why do some ideas work while others don’t? CBInsights conducted a study and found out what are the most common causes of failure among startups. The three leaders included the lack of demand in the market, lack of money, and the wrong choice of a team.

The results of the study make it clear that the idea is not everything for a successful business, and to achieve results, you need to make a lot of additional effort.

So how to launch your startup

Most articles on this subject contain voluminous paragraphs with tips on how to develop your brand, hire a sales team, start social networks, and so on. That’s right, but several other crucial stages precede these. Remember the main reason for startup failure? Lack of market demand. Therefore, the first stage depends only on you — test your idea.

Unfortunately, the idea is worthless if it doesn’t benefit people. The fundamental rule for creating any new product is to answer the question of what problem it solves. You must clearly understand who will use your product, how it will be helpful, how it will improve someone’s life. Otherwise, no one will pay for it just because it’s an interesting idea. Ask yourself as many questions as possible regarding the future product:

What problem do you solve?

Who are your future users?

Who are your competitors?

What market are you going to work on?

What result do you expect after launching your product?

After that, do market research to find out the main trends and determine if your startup will fit into the system. You can even ask representatives of your target audience if they would be interested in the product. Want to develop a retail app? Ask sellers about their challenges and offer your idea.

“If you’re competitor focused, you have to wait until there is a competitor doing something. Being customer focused allows you to be more pioneering.” — Jeff Bezos, American entrepreneur, founder of Amazon.com

You shouldn’t create a product solely for yourself, relying on your opinion if you want to sell it to other people. Tech startups always bring something new but try to turn your idea into an understandable, simple product that people will gladly use.
Crochet Affirmation №8
By: Leslie Stahlhut
Tags: Makers, Life Lessons, Crochet, DIY, Creativity

The craft of crochet is a violent and indestructible obsession. — After George Sand

People will tell you that crochet is a lesser skill hardly worthy of your time, but rest assured they fear your craft and understand that in being able to create and give form to your innermost thoughts, you are asserting power over all you survey.
[我不是附屬品] — 談單元測試該有的樣貌
By: Yu-Song Syu
Tags: Software Engineering, Unit Testing, Software Development, Refactoring, Testing

Kuma老師的軟體工程教室

Welcome to the Kingdom of Software Engineering
How to run localhost web apps on your remote device without USB connection
By: Madhav Bahl
Tags: Deployment, JavaScript, Testing, Productivity, Web Development

Alright, now let’s get started, today’s agenda is to learn how to open your web-app (running at localhost), on your mobile.

I am going to tell you two ways how you can get this job done. The first one is a very common way to do it (through IP address), while the second one is not so common, using ngrok.

But, why two methods? Why not a single method?

The first method (using IP address), sometime doesn’t work, the issue might be because of public network, or your firewall might be blocking it, so the second one makes it foolproof.

In this small tutorial, I will be trying to test a sample “Hello world” web app. Setting that up is very simple,

Open your project directory in VS Code Add a file, index.html inside index.html, paste this simple code —

<html lang="en">

<head>

<title>Test</title>

</head>

<body>

<h1>Hello World!</h1>

</body>

</html>

After that, serve this file through live server, and then you will be able to see this on your localhost -

Now you can try opening the same URL on your phone’s browser and see that it won’t work

Now let’s see how can you open this on your phone ( ͡~ ͜ʖ ͡°)
Don Da Menace Drops Dope ‘Falling Toward Success, Vol. 1’
By: Randall Radic
Tags: Don Da Menace, Hip Hop, Music, Rap, Falling Toward Success

Don Da Menace

Don Da Menace Drops Dope ‘Falling Toward Success, Vol. 1’

Slow, low, and banging.

New York City-based alternative hip-hop artist Don Da Menace releases a new collection of tracks, entitled Falling Toward Success, Vol. 1, reflecting his thoughts and feelings on the present COVID-19 crisis and the social upheaval occurring throughout the country.

Originally from East Harlem, Don Da Menace grew up inspired the music of his late father, Smoove Da Menace, whose rootsy, organic sound made a huge impact on Don’s unique compositions.

Featured in numerous online outlets for his potent singles “Ruby” and “Enough,” the latter with Robert Eberle & Versa the Band, on Falling Toward Success, Vol. 1, Don Da Menace imparts a mixture of his prior releases, along with new tracks offering a tasty smorgasbord of his innovative exploration of novel sonic expressions, infused with old school energy.

Encompassing 13-tracks, the mixtape starts off with “Tomorrow,” riding a tight, low-slung rhythm topped by gleaming accents supported by a fat, popping bassline. Don’s flow is smooth yet rife with smart rhymes.

Don Da Menace

Entry points include “Cold War (Baba Child), featuring a spoken-word intro rolling into exotic colors traveling on a slow, low, and banging rhythm. The track blends retro ’60s rock hints with big boom resonance, imbuing the tune with brawny allure. Distant echoing harmonies give Don’s flow an enigmatic aspect.

“Worth It” offers stridently luminous synths gliding over the Jovian thump of a kick-drum, while Don’s intense, almost anguished flow infuses the rhymes with an inhibiting prospect. “Low Key,” featuring FT$ Teddy, exudes dark, heavy dynamics, as well as sparkling high tones, while Don brings the heat with skintight flow.

“Fight or Flight” features eerie glistening notes floating like ghosts over a muscular, slow, rumbling rhythm, full of cavernous depth. This track is totally dope because of its dual layers of sound, one flashing and shiny, the other throbbing with gravitational power.

“Ruby” merges psychedelic-flavored synths with a viscous, deep trap beat. The ultimate track, “Rap Shit,” relies on an undulating rhythm, radiant harmonies, and Don’s scrummy flow. Cool R&B, old school soulful textures make this track a winner.

Falling Toward Success, Vol. 1 stands out because of its amalgamation of daring fresh sounds with old school oomph.

Follow Don Da Menace Facebook | Instagram | YouTube | Spotify
Empowering Data Science with an Effective Team
By: Nicole Janeway Bills
Tags: Machine Learning, Data Science, Artificial Intelligence, Computer Science, Business

In an organization looking to move toward data-driven decision making, data scientists must work in concert with other teams. Collaboration requires more than just understanding how to use the latest machine learning techniques to analyze data.

It requires a complete understanding of the business problem to be solved. From a people-oriented standpoint, this includes developing a sense for how business users will best interact with machine learning tools. From a technical standpoint, it also requires high quality data and a way to securely deploy models in production.

To support the data science effort, we recommend Data Scientists embed within teams comprised of the following:

Human Centered Design practitioners responsible for ensuring the end user is at the center of solutions

practitioners responsible for ensuring the end user is at the center of solutions DataOps practitioners responsible for maintaining high quality data

practitioners responsible for maintaining high quality data DevSecOps practitioners responsible for pipelines, security, and delivery

Each group has a role to play in ensuring the integrity of the data pipeline from collection through communication of insights. These teams can offer speed to insight across many potential use cases, such as reports and dashboarding, advanced analytics, natural language processing (NLP), and computer vision (image recognition, classification, and detection).

Human Centered Design

Human-centered design (HCD) is an approach to problem solving, commonly used in design and management, that develops solutions to problems by involving the human perspective in all steps of the problem-solving process.

As we’ve written about in other articles, this team aims to learn directly from the end user about what’s currently not working for them in order to prevent pitfalls that could arise from deploying a machine learning empowered tool into the existing workflow. HCD facilitates communication across stakeholder groups to ensure the end product offers resolution and avoids deepening existing feedback loops.

HCD is an important part of building a machine learning tool. This team ensures the needs of the end users are met, the handoff between machine and human is seamless, and negative feedback loops are prevented to the greatest extent possible.
Earn Money From Your Software
By: Warren Day
Tags: Software Engineering, Software Development, Stripe, Finance, Programming

Step 2. Processing Payments

Now we have the account_id we can process payments and send funds directly to the connected accounts. In the context of a marketplace, this means if a customer were to purchase a product such as an iPhone case, we can handle the payment on our site, but the funds would be sent to the supplier.

The process is as follows:

The client makes a request to your server for a payment intent secret. Create a paymentIntent with the Stipe API specifying details about the transaction such as the price, this will return a paymentIntent.client_secret . Respond with the client_secret to your client. Create a new card element on the client. When the user hits submit, confirm the payment by calling stripe.confirmCardPayment passing both the paymentIntent.client_secret and a reference to the card element. Set up a webhook for Stripe to inform your server that the payment was successful.

Creating a payment

The integration guide provides all of the steps in details for the client-side setup.

Stripe Elements

Once complete you will have a full flow for processing payments.

Setting up a webhook

Once the payment has been made you should not attempt order fulfillment via another client request to your server.

Your integration should not attempt to handle order fulfillment on the client-side because then it’s possible for customers to leave the page after payment is complete but before the fulfillment process initiates.

Instead, once the payment is confirmed, show a success screen but leave further processing for later. Once the payment is confirmed, at some point in the very near future you’ll receive a webhook notification to inform you of the status for that payment.

Here you can see a list of all possible events Stripe could send via webhooks: https://stripe.com/docs/api/events/types.

But right now we are focusing on the payment_intent.succeeded and payment_intent.payment_failed events.

Here you will be guided through setting up a webhook https://stripe.com/docs/payments/payment-intents/verifying-status#webhooks

Testing webhooks locally

Webhooks require an endpoint to be accessible over the internet. This can make local testing a pain, but there are a few solutions.

NGROK: My personal preference is ngrok. This service provides a CLI to point a public URL to your local machine in a secure manner. You can also define static URLs to avoid having to constantly update your Stripe webhook settings. It also comes with an NPM package to programmatically setup tunnelling.

I like ngrok as it provides a generic solution which can work for many use-cases rather than just Stripe.

Stripe: Stripe also provide there own CLI for local webhook testing. With this, you can monitor all webhooks sent by Stripe as well as forward them to your own localhost. It is also possible to trigger webhooks for testing purposes.
The Marketing of Bottled Water
By: Kenji Farré
Tags: Marketing, Branding, Humor, Business, Water

Marketing

If bottled water tastes virtually the same as tap water across the U.S., what exactly are we buying?

That’s where the ingenuity of the marketers comes into place. We’re buying the beautiful story the water brands love to pitch about the location, purity, and history of each brand.

Two clear examples of water brands positioning themselves in the high-end of the pricing spectrum — charging up to three times the average price — through great marketing are Fiji Water and Evian.

1. Fiji Water

Fiji Water came to life in 1996 when founder David Gilmour closed a deal with the Fijian authorities to exploit their natural resources.

Ever since, the brand has leveraged the exotic location of the Fiji Islands to create a compelling narrative. Among the phrases they emphasize are:

“High above Fiji over 1,600 miles from the nearest continent.” “Bottled at the source, untouched by man, until you unscrew the cap.” “Slowly filtered by volcanic rock, it gathers minerals & electrolytes that create Fiji water’s soft, smooth taste.”

Though I’ve never heard of non-soft water, many Americans seem to be seduced by the idea of drinking water from the Fiji Islands.

The brand also sponsors high-profile events like concerts, fashion weeks, and film festivals.

Fiji water girl photobombing. Photo by Fijivillage on Twitter

Among the most notable events was the 76th annual Golden Globes where a fashion model holding Fiji water on the red carpet became an internet sensation and was dubbed the “Fiji water girl” after photobombing numerous celebrity pictures.

2. Evian

Photo by HONG FENG on Unsplash

Evian water dates back to 1789 when a French aristocrat Marquis de Lessert discovered the natural mineral water from the French Alps. As he continued drinking the water regularly, his health began improving with his kidney disease eventually healing. Word of the water’s alleged medical benefits spread, to the extent where doctors were recommending the “healing” water to patients.

Ever since, Evian has used its history to make the brand synonymous with health and wellness. By using the “Live Young” slogan, it’s often used athletes, babies, and actors in their campaigns to inspire consumers to pave their own way in life.

Through marketing efforts, similarly to Fiji Water, Evian has established itself in the most glamorous hotels, restaurants, and events across the globe.
Residual Leaning：認識ResNet與他的冠名後繼者ResNeXt、ResNeSt
By: Jia-Yau Shiau
Tags: Research, Machine Learning, Computer Vision, Data Science, Deep Learning

這邊單純地補充一下關於ResNeSt論文中的一些數據討論。

ResNeSt論文開頭給出了這個數據：比當代最快的EfficientNet [10]快，又刷新了其他題目的SOTA。看起來似乎很神，不過這個速度的計算上其實有些小秘密。

首先，回頭看一下EfficientNet論文中，ResNet與EfficientNet的FLOPs數：

對比ResNeSt論文中ResNeSt與ResNet的FLOPs數：

可以看到兩篇論文在ResNet-50的GFLOPs都約為4.14，而ResNeSt-50的GFLOPs為5.39，對比EffiecentNet-B2的1.0，然而在ResNeSt論文裡的latency卻是ResNeSt壓著EffiecentNet打？這點雖然矛盾，卻不是錯誤的。

關於這個速度的計算，論文作者是這樣說的：In this benchmark, all inference speeds are measured using a mini-batch of 16 using the implementation from the original author on a single NVIDIA V100 GPU。
5 Key Differences Between Python & GO
By: Kurt F.
Tags: Coding, Programming, Python, Golang, Data Science

1. One of the first differences you’ll encounter when it comes to Go vs Python is their type

While Go is a static language, Python is a dynamic language. While both types have their own advantages and disadvantages, most people prefer static languages. Aside from early error detection or writing less code, there is a lot of support for static programming languages ​​on the Internet.

2. Although Go is a procedural, functional, and concurret language, Python; is an object oriented, imperative, functional and procedural language

With Object Oriented Programming (OOP), you professionally write your codes in classes and call your codes through objects derived from classes. Another difference between Go and Python is object orientation. Python is object oriented throughout, while Go isn’t exactly. Go is a strongly typed language and support for object orientation is moderate.

3. Ideally GO is used in systems programming and Python is for solving data science problems

Another big difference in the Go vs Python debate is the intended use of languages. Python mainly focuses on web development and Linux-based application management. Golang is mostly seen as a system language. System languages ​​are languages ​​used to create and develop operating systems rather than programs that run on the system. However, Go can also be used for web development.

4. The exceptions are different in both

The Python exception class hierarchy consists of a few different exceptions spread across the important base class type. As with most programming languages, errors occur in a Python application when something unexpected goes wrong. Go does not provide exceptions. The type of the exception is shown as part of the output of.

Also, there is no option other than try-excect in Go. Instead, Go allows functions to return an error type in addition to a result. Therefore, when using a function, you should first check if an error is returned.

5. Community and Legibility

Both Python and Go have great community support. However, Python is widely among the more popular programming languages. If you want to learn Python, there are many sources of information on the internet. Python is seen among the easiest programming languages ​​to master. While Go is simple and easy to use, it is not a language superior to Python in readability.
by Martino Pietropoli
By: Martino Pietropoli
Tags: Humor, Comics, Friday, Cartoon, Music

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

Follow
Running a .NET Project. C# From Scratch Part 2.2
By: Ken Bourke
Tags: Dotnet, Csharp, Software Development, Learn To Code, Programming

We know that the application is working since it produces the default output, but what exactly is happening when we use the dotnet run command?

Behind the Scenes

When you use the dotnet run command, .NET automatically does several things to make your project ready to run. In this section, we’ll look at the steps .NET takes behind the scenes to run your application.

Restore

The first thing that happens is .NET implicitly runs the command ‘dotnet restore’. The dotnet restore command tells .NET to go out and get the correct version of any packages used by your application.

Packages are pieces of codes that other developers have written and you can use in your application. In the world of .NET, the package system is called NUGET.

All of the packages being used by your application are recorded in the .csproj file, along with the version of the package being used. When the dotnet restore command is executed, .NET goes out and gets each package listed in your .csproj file from the internet.

The packages that are used in your application are called external dependencies.

In our basic project, we don’t have any external dependencies so nothing happens when .NET runs this command.

Build

Next, .NET runs the ‘dotnet build’ command implicitly.

This command tells .NET to compile your source code files into a binary file that can execute on your machine.

The tool that does this is the C# compiler. The C# compiler takes all of the source code files in your project as an input and outputs a single binary representation of your source code. This binary format is faster to execute on your machine.

The output file is a dll file.

Dll stands for Dynamic Linked Library. In .NET, this is referred to as an assembly.

Run

Finally, the dotnet run command is executed.

This command tells .NET to bring the application to life using the .NET Core Runtime and to execute the instructions in the dll file.

It’s important to note that if you want to run your application, you need to use the .NET Core Runtime. It’s not possible to run the application via the dll file directly.

This is because it’s the .NET Core Runtime that knows how to launch your application, manage memory, convert the instructions in the dll file into instructions that your processor understands and tear down the application when it’s finished running.

What’s Next?

In this part of the series, we learned how to run a .NET application using the dotnet run command. We also learned what .NET is doing in the background to convert our project into an application that can be run on our machine.

In the next part of the series, we’ll learn how to open the project in Visual Studio Code and look at the most important parts of our code editor. You can find that part of the series here.
Pain in the Data
By: Aoun Lutfi
Tags: Data Analysis, Ibm Cloud, Python, Insights, Data Science

I have been working on a data analytics project for around 3 weeks, the project aims to visualize and allow querying a database of employees based on their skills, industry, and specialty. It is a very interesting and challenging project, it sounds fairly simple, yet it is taking a surprising amount of time; this is not a bad thing, as I was taking this opportunity to verify a certain fact in data science.

The challenge lies in the data itself. I received the data as a CSV (comma separated values) file with each row being a record of Name, Email, ID, Skills List, Skills Scores List, Region, Industry, and Specialty. I was working in Python and developing a web app running on IBM Cloud, so I went with Pandas library to handle the data for me. Just uploading the data to a database on the cloud was painful. Converting the CSV file to a JSON (JavaScript object notation) format was a challenge because the data was organized in such a way that each employee had one row for each region, skill or industry or specialty. I essentially had to:

Combine all rows for an employee into one row Clean the data types Convert to JSON

It took me a week just to clean the data types, and this was just the first step in the project: uploading the data to Cloudant NoSQL database. One might argue why did I use JSON and NoSQL whereas I could have used a table format and SQL database? There are two main reasons, primarily because I am more comfortable working with NoSQL, and second because I was doing an experiment.

Then came the challenge of querying the data, once I received the query identifying the requested combination of region, skills, industries, and specialty. Structuring the data right for a query was a challenge which took around 3 days to address; if it weren’t for the Pandas library, I would have taken maybe a week or two. Funny enough, the total time I spent on building the structure of the web app, log in, and user interface all in all took around 2 or 3 days.

This little experiment of mine shows a very important fact about data science and analytics:

80% of the time is spent cleaning the data

I spent around 10 days to clean and prepare the data, and just 4 days to query and build the web app. Lucky enough I was doing everything in Python which provides a set of great tools and libraries for data science. My choice of database was not the best for this application, but in a real-life situation, not everything is so sweet, you almost always have to restructure, reformat, and reorganize the data.
3BG Supply, creating centralized data solutions
By: Kevin Hart
Tags: Database, Technology, Startup, Startup Life, Data

3BG Supply has raised $4M in total. We talk with its team.

PetaCrunch: How would you describe 3BG Supply in a single tweet?

3BG: 3BG is a technology-enabled distribution company for Industrial MRO Products and focused on creating centralized data solutions and technology to improve the customer purchasing experience. We’re solving the problem of ‘decentralization’ of data making it difficult to purchase.

PC: How did it all start and why?

3BG: Co-founders Shane and Alex created 3BG because they grew weary of using catalogs. While working for his grandfather’s distribution company, Shane identified a solution for the inefficiencies our industry has faced for decades. We lack the use of technology to service customers simpler, faster, and cheaper. The catalyst for the start of 3BG occurred upon a regular visit to a customer where Shane had to identify, source, and supply various products to solve the issue at hand. Shane wasted a considerable amount of time and money throughout this process, mainly because he had to go catalog by catalog just to interchange the products needed. In fact, Shane loves telling the story where he was led to the customer’s “Catalog Room” where he stood face to face with an overwhelming amount of paper literature. It was there that he said to himself, “There has to be a better way, one in which I can search a part number and have all the different manufacturers pop up and allow me to purchase right there on the site.” Thus, the idea of 3BG was conceived. Today the company is a rapidly growing, venture backed and industry changing business.

PC: What have you achieved so far?

3BG: We have a team of 23 people (30 total forecasted for year-end 2019) and 175,000+ Products Online scaling rapidly as an eCommerce distributor within the Industry. In addition, Minimum Viable Product for what will be the industry’s most comprehensive interchange application revolutionizing the way in which people identify, source and purchase industrial MRO products is slated for a launch in 18–24 months.

We have acquired and serviced over 5,500 customers of which 13% are active (or have ordered more than once within the past year). We’re acquiring over 350+ new customers per month and growing.

PC: How will you use your recent funding round?

3BS: Our spending is split as follows:

Marketing & Customer Acquisition 15%

Team Building (Hiring) 55%

Software Development 10%

Overheads 20%

PC: What do you plan to achieve in the next 2–3 years?

3BS: We forecast 300%+ Sales Growth over 2–3 years and team growing to 72+ people.

We plan to acquire and service over 39,000 customers of which 13% are active (or have ordered more than once within the past year).

We will launch in 18–24 months the industry’s most comprehensive interchange application revolutionizing the way in which people identify, source and purchase industrial MRO products.
Beach Week
By: Annie Fahy
Tags: Creativity, Sexual Assault, Feminism, Poetry, Politics

Brett can I call you Brett?

probably not,

Your calendar says Beach Week.

My calendar says Trauma Week.

This is the difference between us.



Black out drunken game nights

lost in your hippocampus. You could always say to the priest

“I did a few things in college.”

While I carry the fragile scar of what happened.

It opened up last week as your rage

spit all over your ambition.

I think if you had said sorry

we could have forgiven you.

Even for the fact of your forgetfulness.

Perhaps if you tried to look in the folds of your memory for an old story lost

in its pockets, for

the boy before this cartoon manhood

BEACH WEEK is preserved on the dates in 1982,

in capital letters and written over twice in bold marker.

While TRAUMA WEEK is never scheduled.

There is never a season for it. I am wrecked by the week.

Its props and dangers mean I have to wait parked on the side of my life

Feel the dead weight of her story; my story.

While the world of men can look away.

LOOK AT ME.

I have done my work but my jaw and face

are stone again. I watch the fucked up face of the man on tv. He looks like a drunk seventeen year old boy.

This time though I am not the only victim. I am

in a stadium full of victims. We are in the cheap seats

watching her. Holding her. Waiting.

I dont like your lies.

I understand them though.

“I was not there. It did not happen.”

I did not push her down. Biologically, lies wont hold.

They give way. The brain wants its whole story

It wants repair.

Until you find it in the hippocampus —you are spoiled milk.

I am wrecked by the week. Its props and dangers

I have to wait. Feel the dead weight of it.

My poor husband trying to learn everything

he is supposed to know, waiting until he can touch me again.

Waiting to see if we can make plans for something else or if we will go into overtime.
There’s Only One Way to Beat Donald Trump for Good
By: Jessica Wildfire
Tags: Social Media, News, Donald Trump, Society, Politics

There’s Only One Way to Beat Donald Trump for Good

Treat him like he’s boring.

We still haven’t learned much when it comes to Donald Trump. We keep making all the same mistakes. He’s not going away unless we do the unthinkable: Treat him like he doesn’t matter.

That would be hard, because the truth is nobody really wants Trump to go away — not even liberals. Americans are deeply angry right now. Half of us need someone to hate. The other half needs a hero who can hate on their behalf. Trump does both.

Donald Trump knows how indispensable he is. He’s a political novelty. So he intends to keep fuming over the election results. He’ll remain a looming presence in our lives. He’ll spend the next four years threatening a 2024 presidential run, even if he doesn’t actually plan on it. He might or might not get someone to ghostwrite a comeback book for him. He’ll continue holding rallies and calling into TV shows.

Here’s what you have to understand:
Are Running Watches Worth It For Casual Runners?
By: Benya Clark
Tags: Health, Running, Fitness, Lifestyle, Technology

Are Running Watches Worth It For Casual Runners?

I was on the fence about buying a running watch, but six months ago I took the plunge.

Photo by Bogdan Glisik on Unsplash

I was on the fence for quite a while about whether to buy a running watch: On one hand, I’m a casual runner, not going particularly quickly or entering races. On the other hand, I was having trouble with my pace, and using a phone to track my runs was becoming cumbersome.

Also, I knew that if I was going to get a running watch, built-in GPS would be an essential feature for me, which meant I’d be spending at least $100 on the watch.

Last December, I finally decided to get one after they went on sale for Christmas. After six months of running with it, my only regret is that I didn’t buy one sooner.

Even as a casual runner, the benefits of a running watch have been huge for me.
You’ll Catch a Break: Nobody Said It Would Be Easy
By: Kevin Ishimwe
Tags: Mindfulness, Life Lessons, Love, Creativity, Inspiration

Failure is inevitable: embrace it.

I used to avoid failure by any means. I despised everything about it. I despised what caused me a great deal of distress. But I have come to realize that change will always be uncomfortable. It is a law of life; change is a current that comes into one’s life to help him realize that he could be doing much better.

Accepting the fact that you can and will suck at something can be a good thing. That means you are teachable, and through perseverance, you can become great at it. This principle is self-evident in practically all aspects of life; how many times did you fall before learning how to walk? How many times did you fall your first time learning how to ride a bike?

You don’t become great at something overnight. That is a simple truth of life. Nonetheless, it should not stop you from rising to the occasion.

To better your life, you must be willing to take risks that petrify you.

“Fall forward”. — Denzel Washington

You must find your routine

When I found out that humans are creatures of habit, I understood that I had to create a routine of habits that I valued the most. That perceptual shift was what I needed to help me add meaning to my life. Understanding that I was not always going to be on my best warranted for a structure to get me through my lows.

What’s amazing about this way of life, is that it can be anything as long as it lights your soul on fire. You must take the time to study what you value the most in your life. I realized that what helped me to attune to the ever-present stillness was finding time to meditate on the Word, exercising as much as I can, dancing to uplifting music, and going on hiking adventures.

As the months passed by, I found myself adding other habits that helped me to attain a sense of clarity. Whether it was reading a book or writing in my journals, it was as if new layers of life were being unveiled. I found myself paying close attention to the subtle details in my life that I once took for granted.

One vital lesson that helped me with this mindset was to reward myself for sticking to the habits I wanted to build. This is a principle that psychologists refer to as “reinforcement”.

Each time I partook in a habit that I wanted to add to my life, I made sure to reward myself. After 21 days, it started getting easier. I found myself gaining more vigor to carry me through the day.

“Be careful that your routine is pointing to where you’re trying to get to”. — Eric Thomas
Python for Logistic Regression - SereneField - Medium
By: Adam Edelweiss
Tags: Logistic Regression, Linear Regression, Mathematics, Python

Import Packages

import pandas as pd

import numpy as np

import statsmodels.api as sm

import statsmodels.formula.api as smf

2. Fit the logistic model

model = smf.glm('y ~ x1 + x2 + x3', data=df, family=sm.families.Binomial()).fit()

model.summary()

maybe more info in the future …