fabiochiu/medium-articles huggingface dataset:
Union Types in C
By: Narmin Jamalova
Tags: Programming, C Programming, Technology, Data, Big Data

Unions make us strong — except that not all unions do (at least, in the programming world).

In this article, we will explore union types in C language. We will start with a brief introduction to union types and we will move on to such important concepts, as discriminated and free unions (as well as the disadvantages of using them).

Brief Intro to Union Types

Unions are used to store different types of data in the same memory region. This saves storage space in a way similar to time-sharing the only hard copy of “Freakonomics” available in the library. Time-sharing in this case is possible if two people do not read the same hard copy at the same time. The same with unions: a union can have only one active “reader” at a given time.

Unions in C are defined in the following way, with the union statement (similar to the way struct is declared):

union FreakyEconomist {

int age;

float height;

char fname[100];

}

FreakyEconomist is the union tag. Union tags are optional — you can have anonymous unions, as well.

A variable of the type FreakyEconomist can now store members of integer, floating point type or a string of characters in the same memory space. The size of that memory space will be big enough to hold the largest member — which, in our example, is fname (100 bytes).

You can access the union members only one at a time — not all at once, as that would produce bogus results, since there’s only one memory space the members share. So, if you try the code below, meaningful results will not be printed:

union FreakyEconomist freak; freak.age = 25;

freak.height = 176.3; printf("This freak's age is %d

", freak.age);

printf("This freak's height in cm is %d

", freak.height);

Instead, something like the code snippet below can help to properly assign values to and print the values of union members (one at a time):

union FreakyEconomist freak; freak.age = 25;

printf("This freak's age is %d

", freak.age); freak.height = 176.3;

printf("This freak's height in cm is %d

", freak.height);

Members are accessed with the member access operator — a dot.
Creating and Deploying a Python Machine Learning Service
By: Dominik Haitz
Tags: Deployment, Machine Learning, Docker, Python, Data Science

1. Create prediction model

Dataset

The approach is based on the paper Automated Hate Speech Detection and the Problem of Offensive Language by Davidson, Warmsley, Macy and Weber. Their results are based on more than 20 000 labelled tweets, which are available on the corresponding Github page.

The .csv file is loaded as a dataframe:

import pandas as pd

import re df = pd.read_csv('labeled_data.csv', usecols=['class', 'tweet']) df['tweet'] = df['tweet'].apply(lambda tweet: re.sub('[^A-Za-z]+', ' ', tweet.lower()))

The last line cleans the tweet column by converting all text to lowercase and removing non-alphabetic characters.

Result:

The class attribute can assume three category values: 0 for hate speech, 1 for offensive language and 2 for neither.

Model training

We have to convert our predictors, i.e. the tweet text, into a numeric representation before we can train a machine learning classifier. We can use scikit-learn’s TfidfVectorizer for this task, which transforms texts into a matrix of term-frequency times inverse document-frequency (tf-idf) values, suitable for machine learning. Additionally, we can remove stop words (common words such as the, is, …) from the processing.

For text classification, support vector machines (SVMs) are a reliable choice. As they are binary classifiers, we will use a One-Vs-Rest strategy, where for each category an SVM is trained to separate this category from all others.

Both text vectorization and SVM training can be performed in one command by using scikit-learn’s Pipeline feature and defining the respective steps:

from sklearn.pipeline import make_pipeline

from sklearn.feature_extraction.text import TfidfVectorizer

from sklearn.multiclass import OneVsRestClassifier

from sklearn.svm import SVC

from stop_words import get_stop_words clf = make_pipeline(

TfidfVectorizer(stop_words=get_stop_words('en')),

OneVsRestClassifier(SVC(kernel='linear', probability=True))

) clf = clf.fit(X=df['tweet'], y=df['class'])

Now, the performance of the model should be evaluated, e.g. using a cross-validation approach to calculate classification metrics. However, as this tutorial focusses on model deployment, we will skip this step (never do this in an actual project). The same goes for parameter tuning or additional techniques of natural language processing which are described in the original paper.

Test the model

We can now try a test text and have the model predict the probabilities:

text = "I hate you, please die!"

clf.predict_proba([text.lower()]) # Output:

array([0.64, 0.14, 0.22])

The numbers in the array correspond to the probabilities for the three categories (hate speech, offensive language, neither).

Model persistence

Using the joblib module, we can save the model as a binary object to disk. This will allow us to load and use the model in an application.
10 Critical Performance Optimization Steps You Should Take
By: Ferenc Almasi
Tags: Nodejs, JavaScript, Angular, Programming, React

Server-Side Optimizations

1. Configure compressions

If you haven’t already, enable server-side compression. This can greatly reduce the size of HTTP responses and has the most impact. Compress as many file types as possible. The only exceptions from this rule are some static assets, such as images, fonts, or PDF files. They are already compressed. Trying to compress them will only waste CPU resources, and in some cases, it can even increase file sizes.

To see which type of compression your server supports, go to the Network tab in DevTools. Inspect the Accept-Encoding header in a request and you’ll see all available options:

According to a benchmark test done by Akamai, Brotli seems to be a better option over gzip. They tested 1,000 websites and found that Brotli outperformed gzip by a median of 21%.

2. Minimize HTTP requests

While compression can save significant amounts of data, you can further cut down page load times by minimizing the number of HTTP requests. Some common techniques you can use are:

Bundling your assets together. Combine JavaScript and CSS files to reduce the number of requests. If your bundle sizes are too large and you’d rather split them into smaller chunks, you can also experiment with domain sharding.

Use sprites. With sprites, you can deliver multiple images in one single request. You can then reference individual images by using the background-position property in CSS.

3. Use a CDN

Using a content delivery network can help you reduce response times. A CDN is a collection of servers distributed across the globe. It aims to help deliver content to users faster by choosing the server closest to the user’s location.

Cache each resource to avoid unnecessary network trips. For static assets that rarely change — like images or fonts — you can use a long expiry date in the far future. For other resources, you can use an appropriate Cache-Control header. The time should depend on the frequency of your changes. The more frequently your assets change, the shorter your caches should be.

5. Avoid redirects

Remember that redirects (301, 302) delay everything and slow down page load. Redirects most commonly occur when a trailing slash is missing from the URL. This causes the web page to reload everything with the correct URL.

Now let’s move on to client-side optimizations and see how we can further improve things.
No drone? GoPro ahead
Tags: Design, GoPro, Drones, Architecture, 3d Modeling

GoPro Hero 5 Black and Pix4D to make 3D models

Kengo Kuma’s “Under One Roof” design for the ArtLab building definitely qualifies as #ArchitecturePorn. It just opened its doors in Switzerland at the EPFL campus, and while the finishing details were being put in place, we took a GoPro Hero 5 Black and walked around the building capturing images to create a shareable 3D model in Pix4D software. This way, everyone can get closer to this geometric poetry, materialized in black slate, metal and wood.

Using a GoPro Hero 5 Black for Terrestrial 3D Modeling

Hero 5 Black GPS feature

GPS tags register the latitude, longitude and altitude of the camera position when each image is taken. When computing images to create a 3D model, this data enables Pix4D software to correctly locate, scale, and orient each picture, enhancing results and speeding up processing. When using a camera with built-in GPS tagging like the Hero 5 Black, coordinates are included in the EXIF data, with no need to use an external GPS logger. Image geolocation is added automatically in the software.

This is why the GoPro Hero 5 Black is ideal for image-based 3D modeling, whether using alone for terrestrial mapping, or in combination with the GoPro Karma drone for aerial mapping.

Camera settings and image capture for easy 3D modeling

To capture images suited for terrestrial 3D modeling, the best setting is the image timelapse mode. The highest resolution image (12mp) and the wide image modes should be selected. Trigger the camera shutter button and walk around your object of interest, adjusting the walking speed in function to the object distance. This is important to ensure that the image-capture-time-lapse results in sufficient image overlap for consecutive images.

Processing with Pix4Dmodel software

Pix4Dmodel is a photogrammetry software that uses images to create professional 3D models.

Visualization of image location in Pix4D software rayCloud, with original images shown at right.

The software identifies unique points in the pictures and generates a 3D point cloud to reconstruct the object in 3D; the model can then be shared online or uploaded to a 3D visualization platform like Sketchfab.

The Building

Attracting attention in the architecture and design scene, the ArtLab building claims daring angular geometry that resembles a folded origami piece, topped with a black slate roof of nearly 250-meters. Designed by Kengo Kuma & Associates, it opened its doors Thursday, November 3rd.

EPFL, École Polytechnique Fédérale de Lausanne, is one of the most important international research hubs in Switzerland.
How a Single Lie Postponed my Sobriety for an Entire Decade
By: Benya Clark
Tags: Addiction Recovery, Alcoholism, Addiction, Sobriety, Health

Photo courtesy of Thomas Picauly on Unsplash

My Daily Routine

For over a decade I drank almost every night, thinking to myself every time that the next day would be the start of my sobriety. In retrospect it sounds absurd, and I wouldn’t blame an outsider-looking-in for thinking I was crazy. I still have trouble understanding how I was able to delude myself so completely.

I woke up each day determined not to drink. I was never a morning drinker, so it was easy enough to get up and head off to school or work, staying sober until the day ended around five.

Then, on my way home, I’d feel the compulsion to drink. I’d come up with an excuse for why that day wasn’t a good day to quit. Either the day had been stressful and I needed to relax, or it had been a good day and I needed to celebrate. If it was early in the week, I’d tell myself I didn’t want to go through withdrawal at work. If it was a Friday, I’d tell myself I wanted to enjoy my time off.

It was never hard to find some excuse or another, and it never seemed like a big deal, because I always told myself “I’ll quit tomorrow.” After all, what’s one more day of drinking when I have a lifetime of sobriety right around the corner?

I would stop off in a convenience store, liquor shop, or supermarket to pick up my beer for the night. Like many alcoholics, simply deciding where to buy beer turned into a complex scheduling problem — I carefully avoided purchasing from the same store too often out of a fear that the cashiers might recognize my addiction.

I never bought more beer than I planned to drink that night, because I always believed that the next day I would quit for good. When I got home, I’d start drinking almost immediately. Through the first couple drinks I sometimes felt guilty, knowing that I had broken my resolve for what seemed like the millionth time. Three drinks in, the guilt subsided to drunkenness. By the time I finished my beer for the night, I was ready to go to sleep happy, content in my delusional belief that the next day would be the start of my sobriety.
Interview: Jared Spool for High Resolution
By: Fabricio Teixeira
Tags: Design, User Experience, Interview, Careers, UX

About team organization: have you noticed any patterns in how design teams are structured in design-mature companies?

Yes. They are all made of people.

Not really. Design fills a void. In different organizations the void is different. In some places, they have the technology down, but they don’t ever think about who their users are — so design’s role is mostly about bringing their users’ needs into the organization.

In other organizations, they are actually very confident that they understand who their users are and what they are trying to do, but they don’t actually know how the technology works — so there the design is about getting the technology to do what it needs to do.

This question keeps coming up, and there isn’t one thing that design does, which is why this idea of hiring a designer (because they were a designer somewhere else they can be a designer for us) well… if we have different voids than they had, that person did very different things and might not be able to help us with our void. In fact, if they come in thinking that we’re just like the place they use to be, they are probably not going to work at all.
Sometimes I Wonder What All My Dissatisfaction Is For
By: Lark Morrigan
Tags: Life, Self Improvement, Self, Mental Health

What does embracing the journey look like for me?

I have a few people in my life who love and respect me. I am valued at my workplace. I may not be where I want to be as a writer, but at the very least, I am not grabby. I am not a disingenuous hack. I have a sense for what’s my best and what isn’t, but I also don’t want immense dissatisfaction to stop me from creating (even if it’s just for myself), out of fear that not everything I do will be my best.

I don’t need to be super aggressive in pursuing grandiose goals that are ultimately not right for me and do not reflect the kind of inner simple beauty of an old soul. But I also don’t need to pretend that I am free from any sort of desire, especially the desire to craft more powerful words — maybe they aren’t powerful now, but having a growth mindset will help me get there.

I don’t need to be so cynical to shield myself from people who will never understand or like me as a person. I don’t need to be so hopelessly jaded to prove that I am practical and grounded in reality. I don’t need to let condescending judgments from those who want to see me fail dictate what I do or who I am.

A little bit of dissatisfaction and self-doubt can go a long way — after all, I need to be constantly checking in and evaluating what I’m doing wrong and how I can proceed without falling down into a rabbit hole of self-sabotage again.

But too much dissatisfaction, especially when it leads to masochism and nihilistic thinking, has hindered my progress and creative growth for so many years and using the harsh external world as an excuse to keep being immensely dissatisfied won’t actually help me make most of every moment. The burden of too much self-loathing and dissatisfaction makes me lazy, unmotivated, and uncreative — all which are things I know I am not when I am in my best state.

I want to learn to rediscover what it’s like to love who I am, even when there are things others may hate about me. I want to be filled with wonder again. I want to see the world with hopeful, not despairing, eyes. Only then, I will be free and filled with a sense of rare but inexplicable peace that is present in every moment.
Probability Sampling with Python
By: Roberto Salazar
Tags: Data Science, Statistics, Coding, Python, Probability

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

Products Data Frame

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

Simple Random Sample

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

Systematic Sample

Cluster Sampling

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

Cluster Sampling

Cluster Sample

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

Products Data Frame

Stratified Random Sample

Measure Mean Per Product Group

Measure Mean Comparison per Sampling Method

Once samples have been obtained using each sampling technique, let’s compare the samples means with the population mean (which usually is unknown, but not in this case) to determine the sampling technique that leads to the best approximation of the population measure mean.

Measure Mean Comparison per Sampling Method Table

According to the Measure Mean Comparison per Sampling Method Table, the measure mean of the sample obtained through the simple random sampling technique was the closest one to the real mean, with an absolute error of 0.092 units.

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
My book can now be accessed free on the web
By: Jan Schultink
Tags: Powerpoint Alternatives, Design, Presentations, PowerPoint

To support the launch of the SlideMagic presentation design app I have started to remove the paywall for my book Pitch It!, you can read it here.

I am making slow progress because it requires a rewriting and reformatting of the content. First there was the iBooks version written in iBooks Author, then the PDF version written in InDesign, and now I am converting the content to HTML using squarespace.

Web templates have moved a long way over the past 2 years. The squarespace version looks as good, if not better, than the iBook version. I have all the freedom to design interactive content, and the adjustments between wide screen, iPad, and mobile phone are phenomenal. No app stores, no pass words, just click the link and you are in on any device.

This says something about the blurring of visual communication formats beyond the slides used in a stand up presentation. Scrolling down on a tablet is much more intuitive than clicking through slides (part of the reason why in SlideMagic things are fluid). Like reading a magazine or a newspaper, there is value for big picture, wow visuals, and a 12 point story here and there. A big bold chart and a detailed diagram. Maybe a nice magazine-style website behind a password is a better to present your idea than a PowerPoint attachment?

I can now also take the opportunity to update the content of the book, some of which has become a bit stale since December 2012 (and the biggest missing piece of information is SlideMagic as a credible alternative to PowerPoint and Keynote of course!).
Dental Care Worth Thousands of Dollars Provided Free to Arizona Athletes
By: Special Olympics
Tags: News, Health, Healthcare, Arizona, Dental

Devin Hohl’s story is one shared by Special Olympics athletes everywhere. She suffered from a chronic infection in her mouth, requiring a root canal and crown, but lost her dental insurance when she turned 21 and had been unable to find a dentist willing to work with people with disabilities. At the dental college at A.T. Still University in Arizona, however, faculty and students working with the Special Olympics Special Smiles program welcomed her on December 9 and provided the needed care. As part of the event, volunteers devoted their time and efforts to perform a multitude of dental care procedures to athletes in need — all free of charge. The services provided to Devin would normally cost $2500.

“It was inspiring to see the dental students, teachers, and mentors come together to relieve the athletes from the pain that has been bothering them,” said Isaac Sanft, Special Olympics Arizona’s healthy athletes coordinator.

Another athlete, Alex, had been having pain for several weeks, so much so that he had trouble sleeping and making it through the day without extreme pain. Like Devin, he could not find a dentist who would treat him, but thanks to Special Smiles, Dr. Sabah Kalamchi, an oral surgeon from Scottsdale, examined Alex and provided a tooth extraction, antibiotics, and a follow-up visit.
‘The Inevitable Life Cycle’ of Platforms Like Facebook and Pornhub
By: Damon Beres
Tags: Social Media, Internet, Facebook, Tech, Content Moderation

‘The Inevitable Life Cycle’ of Platforms Like Facebook and Pornhub

‘If you’re going to have users generating content, you’re going to have users generating harmful content’

Facebook profile images collected at the 2015 Big Bang Data exhibition in London. Photo: Peter Macdiarmid/Getty Images for Somerset House

Last week, Evelyn Douek, a Harvard lecturer who studies online speech, spoke to OneZero’s Will Oremus about a rising tide of moderation controversies across platforms as diverse as Peloton, Pornhub, Facebook, and YouTube.

Peloton has hosted QAnon hashtags; Pornhub has a deeply troubling child pornography issue; and there’s not space enough in this post to enumerate the issues with those other two.

“If you’re going to have users generating content, you’re going to have users generating harmful content,” Douek said.

The responses to these problems have become predictable and, in some ways, ineffectual, she said. Oremus paraphrased a four-point theory Douek has developed to describe the “inevitable life cycle of a user-generated content platform”:

Someone, often an activist or journalist, finds abhorrent content on Platform X. It becomes a scandal, and pressure builds as more examples are uncovered. The platform eventually takes action, but does so in a haphazard and reactive way, geared toward solving the PR problem rather than the underlying issues. Sooner or later, its inconsistent approach to moderation sparks a backlash of its own.

But the predictability of content moderation problems doesn’t mean they can be ignored, of course. Douek suggests a couple of approaches for a healthier online ecosystem: greater transparency from platforms, and long-term thinking for policies that will be consistently actionable.

For more on this, read the latest edition of Pattern Matching, OneZero’s free weekly newsletter about the most compelling stories in tech, by following the link below:
EDA and Recommendation system in Python
By: Ashwath Paul
Tags: Data Visualization, Machine Learning, Data Science, Python, Recommendation System

Amazon Top 50 books (2009–2019)

Over the years e- commerce has taken over the world and big players such as Amazon, Flipkart, ebay, etc. have gained enormous amount of consumers.

I have taken this dataset from kaggle to explore and provide various insights using CRISP- DM approach.

Some of the questions that I’ll be addressing:

Are there any correlations between the variables? Popularity of genres by year Top Authors of Best Selling books Price comparison between Fiction and Non Fiction books. Does price Price tend to drop over years?

Further, I’ll also build a recommendation system that would suggest similar books based on choice

Exploratory Data Analysis

The first step in any analysis should start with data understanding and this can be done with EDA process.

Before we dive into data visualizations, lets get a look on the descriptive statistics from the Amazon dataset.
The Beginner’s Guide to Writing and Publishing a React NPM Package
By: Victoria Lo
Tags: JavaScript, NPM, React, Reactjs, Programming

Next Steps: Automating Tests and Updates

After publishing your npm package, it is a good idea to set up a pipeline to automate future tests and version updates. Buddy CI/CD is an intuitive tool that we can use to achieve this easily.

Add a pipeline

To get started, simply create a Buddy account and add your project by choosing the Git provider you use.

After adding your project to Buddy, you can click “Add a new pipeline” to set up a pipeline. Set Trigger mode to “On push” and the branch as “master” to ensure that the pipeline will automatically run when we make changes to our project.

Build and run tests

Next, add a Node action into the pipeline. In the terminal, the following commands will build and run tests to make sure your npm package is error-free.

Authenticate and publish

After we test our package, we can publish it to npm. To do that, we will need to log into our npm account.

Add a Node action with the following commands in the terminal:

This command will allow us to authenticate ourselves using the npm-cli-login package and environment variables such as NPM_USER , NPM_PASSWORD , and NPM_EMAIL .

To install npm-cli-login and then run npm publish , click on the Environment tab and add this line in the terminal as shown in the image below:

Now we need to specify our environment variables by heading over to the Variables tab and adding the three variables as appropriate.

Add email notification

Last but not least, we add an email action into our pipeline to notify us when the package is successfully tested and published to npm.

Run pipeline!

Let’s try a test run. As seen in the image below, the execution was successful and we have created an automated pipeline to test and publish any updates to our npm package.
Why iPhone Is One of the World’s Greatest Inventions?
By: Can Balkaya
Tags: Technology, Apple, Tech, Product, iPhone

iPhone Has One Of The Most Powerful Processors Used By Everyone

Since the introduction of the first iPhone in 2007, there has been a significant increase in the number of phones per person, as well as the time spent on the internet.

By 2004, there were 57 computers and 52 Internet users per 100 people in developing countries. Currently, the number of phones per person in developing countries is almost 100%. Some developing countries like China exceeded 100%.

In fact, the thing that changed iPhone the most is the time people spent on the internet. As you can see in the chart below, about a year after Apple introduced the first iPhone, the average American’s daily internet time was less than 3 hours in 2008, while this number increased to 6 hours in 2018. The most important part this is that as the years progress, the time spent on mobile devices increases much more than other devices.

As of October 2020, more than 4 billion people are mobile social media users. I think, these are really big numbers. Until ten years ago, nobody had a device that could access the Internet, take photos and videos as well as a DSLR camera, and handle trillions of transactions per second. Probably that is why iPhone is the biggest indicator of the current “information society”.

Despite Its High Price, iPhone is The Only Product That Has Been Sold Billions of Times

How many things can you say as sold as iPhone? Toothbrush, wallet, pants, …

All the products you can think of are much cheaper than iPhones. In fact, all of them will have a much smaller profit margin than the iPhone. Apple has sold more than 2.2 billion iPhones so far. Even this is enough to make the iPhone the world’s successful product.

In addition, iPhone is the device that enabled a strong market such as the App Store. Now App Store has a value of close to $200 billion.

iPhone is The Most Personalized Device

I think, iPhone is the most user-friendly and personalized device in the world. This is my first reason that I love iPhone. No matter what kind of disability a person has, it can still use an iPhone. Because iPhone is a device designed for everyone.

Until now, there has never been another device that can be personalized enough for everyone to use. Think about it. How many products are as personalized as iPhone? Radio, TV, eReader, chair, …

In fact, most of the third-party apps you use on your iPhone are designed well enough for people with disabilities to use because Apple has forced third-party app developers to do so. As a indie iOS developer, I can say that.
Deploy a Simple Jenkins on AWS Using Terraform
By: Marvin Ortiz Balliachi
Tags: Tutorial, Terraform, Jenkins, Pipeline, AWS

Deploy Jenkins as server

General variables are presented in this file, please pay attention to some properties which need to be replaced by your configure AWS CLI variables. See more information in AWS CLI Command Reference.

There are several properties which are need setups:

access_key and secret_key: Access keys that are used as part of the credentials to authenticate the command request.

jenkins_key_name: Name of key pair file that will be useful to connect via ssh to our instance. If you need to make a key pair please handler by the section My security credentials getting in your AWS account. Notice in this example we used key-pair.pem which is located in the Template folder in this project, replace this file and his name in the project with your credentials.

amis: This property can be a list and has the AMI instance id which is easy to find in Amazon Machine Instances, if you want to change this AMI instance please watch out if your AMIhas systemctl installed because Amazon Linux doesn’t support systemclt or service command according to its version based on CentOS / RHEL, so to avoid spending a lot of time searching an AMI instance with his systemctl already configured, try to use the AMI instance which is configured in this project.

Once all properties have been configured, execute command line terraform init to initialize the working folder, terraform plan to watch all deploy plan, and once you have check it please execute command line terraform apply to deploy your infrastructure.
Write For Us
By: Domenico Nicoli
Tags: Development, Developer, Software, Programming, Software Development

Write For Us

A quick guide to explain how to send stories to our publication

Photo by Nick Morrison on Unsplash

If you are here you probably want to share with us your last tutorial, idea or project and we are happy to spread it to everyone!

Dev Genius loves new content from every programmer with all skills and coding languages, app user interface restyling and much more!
The Doomscrolling High
By: Lisa Martens
Tags: Short Story, Covid 19, Mental Health, Fiction, Anxiety

Photo by Hailey Kean on Unsplash

She was high on doomscrolling — All those other people who spoke of self-love and self-care…they were just selfish, ignorant. They didn’t want to know what was going on. They were not going to be prepared.

She sat in bed. She ordered Seamless. She got caught up on the news. From different sources, so she could combine them together and create a balanced view. Unedited from YouTube and Twitter, so she could see what was happening beyond the Fake Media. She mindlessly ate the tacos that were delivered. She moved from her bed to her couch.

She was a junkie, high on doomscrolling, meditating through the Xanax she had bought from her roommate, that she probably could get prescribed to her, but if she was buying it illegally, then it was fun — If she was taking it from a doctor, then she had anxiety. So you see the difference.

Day after day, she watched what the president did. She cursed and guessed his next move. He was a part of some cabal, she knew. He wasn’t dumb, not as dumb as he seemed. He had to have some secret, evil plan. He was orchestrating this whole thing.

Every time she found a video online that wasn’t seen by the general public, she felt a little smarter. Every time she burned someone online with a quick quip, she felt like she had done something useful.

There was a tiger out there, a tiger called Coronavirus, inching its way, ever-closer. It couldn’t be seen, but it was there, and the politicians were using it, weaponizing it, using it to make her even more poor, her family even more poor.

But she wasn’t afraid of the tiger. No. She started to black out.

It was going to be all right. She knew things. She had a secret. She was smarter than everyone. She was right to be worried, but she was calm. She could handle it. She could handle it, and no one else could. They were weak and spoiled. They had to go to their doctor to get the blue pills.

But not her.

She was different, and with each secret account she followed, she became a little more different, a little more capable of surviving.

She knew better. She knew better than doctors, than politicians, than the people who buried their heads in sand, than the people who didn’t wear masks. She was special.

She was going to survive. She was going to come out ahead. She was going to make it.

Right?
Is It Safe to Be The Angry Black Woman?
By: Sondra Rose Marie
Tags: Women, Mental Health, Careers, Race, Anger

When I was younger, I was angry all of the time. I refused to tolerate rules, wayward looks, and even the hint of a diss. Talking back to teachers, arguing with strangers in parking lots, and fighting on the floor with classmates were all totally normal occurrences for me.

In college, I quickly learned to reel it in. I went to a tiny school in Appalachia, where diversity wasn’t one of the main tenants. On nights out, I was often the only person of color in the whole bar. I knew that expressing my anger could cost me in ways that it would never cost my white classmates. My tone could be considered “threatening,” my body language “dangerous,” and my words “an attack.” In order to avoid trouble, I learned to push anger down deep inside.

It hurts now to think about the things I ignored because I believed my anger was a liability. I had friends call me their “token black friend,” and one who went as far as to tell me she considered the two of us different species because she was white and I was black. “We can’t mix,” she told me, “it’s unnatural. You’ll have to marry someone like you.” It took me years to end these toxic friendships.

Eventually, I started taking dance classes and learned to express myself through movement. Over and over, anger would start to spill forth, asking me to stomp my way across the studio or driving me to move aggressively. Every movement felt like a battle between the part of me that wanted to break free and the part that wanted to stay buried. At one point, I was in the middle of a dance performance and I felt my body start to come alive with a rage so strong that it frightened me. Terrified of the intensity of my emotions, I tanked my dance, slamming myself into the ground and effectively pushing that rage back inside where it continued to burn.

But once my anger had stirred, I couldn’t put it back to sleep. My college friends continued to do or say or do wildly inappropriate things, emboldened by years of silence on my end. I couldn’t take it anymore and, one by one, I said goodbye to those relationships.

Now that I could feel my anger, I was unsure of how to react to their comments. I didn’t know how to express it in words, so I started to cut ties. No one tried to fix or save the relationships, not one of these friends reached out to talk about my sudden silence. I realized that these people had never truly been the friends I wanted or needed. That revelation hurt, but it also freed me of most of the guilt I felt for my choices.
The Main Mistake of Physicians and Medical Students Trying to Learn Programming
By: Paul Windisch
Tags: Data Science, Science, Programming, Coding, Medicine

2. Why people with a medical background get stuck in tutorial hell

Photo by JC Gellidon on Unsplash

In most countries, it is not easy to get into medical school. You most likely need really good grades, good performance on standardized tests, impressive extracurricular activities and if you’re really unlucky, a combination of all these things. This creates a selection bias. The traits that enable you to become a physician, are the ones that make you successful in school and university. Things like planning ahead, not causing trouble and being extremely well-prepared for exams are almost mandatory to fulfill the entry requirements of medical schools. In a programming project however, you almost never feel really well-prepared, especially as a beginner. You have a rough idea how you want to approach a problem and research most of the information as you go. For many medical students and physicians, this feeling of almost complete unpreparedness is extremely uncomfortable and something they try to avoid by doing more courses, reading more books and never actually programming on their own.

When you have completed medical school, the situation is even worse because of the principles that medical education has engrained in your brains. You spend a long time, sometimes years, during your preclinical education on learning things like the different enzymes of glycolysis before you set foot on the ward. You need to plan and study for even bigger standardized test. If you acquire lots of knowledge prior to a clinical rotation, you are more likely to get a good evaluation.

While some of these things have their place in medicine (after all, ‘move fast and break stuff’ ist not a good mantra for the operating room), it gets you into the habit of wanting to feel super prepared for situations where your knowledge is put to the test.
Apple Silicon
By: Gargi Bhattacharya
Tags: Software Development, Technology, Apple, Tech Newletter, Technews

The transition to Apple Silicon has been long coming and developers are finally able to start adapting their apps for ARM-based Macs. A new Mac running Apple Silicon launches in 2020, with the entire line expected to be transitioned within 2 years. Between virtualization software and live-app translation of Intel-based apps, Apple has developers and consumers covered. The company plans on supporting their Intel Macs for the next few years, but it is clear that custom ARM silicon is the future for Mac.

Apple Silicon and its advantages

Following more than a decade of chip architecture experience gleaned from the iPhone and iPad, Apple has prepared the way for Apple Silicon on Mac with mac OS Big Sur, Mac Catalyst, and several other developer platforms.

Apple Silicon Ecosystem

The first custom processors made by Apple were made out of necessity because Intel did not want to design chips for the iPhone. It was because of this that Apple was able to build its processors for the iPhone and ensure complete vertical integration with the software. The A-series chips went on to become the most powerful and efficient mobile chip sets available, and Qualcomm and even Intel could not keep up.

The Apple Silicon Transition

The Developer Transition Kit will be a Mac Mini with an A12Z

Apple has provided a Developer Transition Kit that can be ordered by developers using the “Universal App Quick Start Program.” The DTK is a Mac mini running on an A12Z with 16gb of RAM and 512gb of storage, and must be rented for $500 then later returned to Apple. With this kit, developers can get started making apps run native on mac OS and Apple Silicon. However, the hardware is not all Apple has included to help with the process.

Universal 2, Rosetta 2, and Virtualization software will make the transition smooth

Virtualization

Virtualization software will also run on Apple Silicon Macs, but the extent of what and how is not fully known yet. Apple has demonstrated Linux use through virtualization apps like Parallels desktop. Users who need Windows on their Mac may be left out of the transition, as Apple made no mention of the platform during the presentation nor Boot Camp. Apple mentioned that other platforms like Docker will also work on Apple Silicon and developers will be able to take full advantage of the software.
My First Story on Medium Went Viral
By: Stephanie Gruner Buckley
Tags: Technology, Viral, Passion, iPhone, Writing

Ever since my daughter was born, I’ve worked as a freelance writer and editor. Pre-Covid, business was good. Then the virus struck and my work disappeared, or was offered at dramatically reduced rates.

Each day, I scrolled through my LinkedIn contacts and sent pitches to drum up work. Nada.

One day on LinkedIn, I scrolled by Steve LeVine, a former colleague, and Editor at Large at Medium. I’d been meaning to look into Medium. I love writing, but hate pitching, and wanted a respectable place to self-publish.

I reached out to Steve. He asked if I had a particular focus area, and encouraged me to pitch various Medium publications. I decided to write about parenting (my primary occupation) and chose a subject foremost on my mind: my daughter’s iPhone obsession and how much she’d changed as a result of using — and us letting her overuse — the device. I called the story: My Daughter was a creative genius, and then we bought her an iPhone.

Modern Parent posted it on November 4, the day after the US election. I was thrilled a Medium publication took the story but concerned about the timing. Who would notice my story given most people were following politics? 178 people it turned out. The next day, another 257 saw it. I was so happy.

Then on November 6, views shot up to 2,000. By November 7, daily views exceeded 14,000. People from Asia, the Middle East, Europe and the US started tweeting it. Since then, total viewership has surpassed 200,000. Much to my surprise, the story had gone viral.

I’ve since published 23 more stories but only three have had more than 1,000 views— meaning most have earned less than a couple of bucks each. And so, back to reality.

My conclusion: writing for Medium is like playing golf. You hit one great shot, but then keep playing round after round hoping to hit another.

On the upside, I have connected with readers and fellow writers all over the world, and that’s a great joy. I’ve discovered so many good writers and stories on Medium. There aren’t enough hours in the day to read them all.

I’m not sure why the story went viral, but these things probably helped:
Summer is Over, but Sun Safety is Important Every Season
By: Sally Cohen
Tags: Health, Performance, Healthcare, Nonprofit, Fitness

Sun safety & hydration. These two probably aren’t the first things you think about on a beautiful summer day in Hawaii, but they should be and at Special Olympics Hawaii’s 2017 State Soccer & Bocce Competition, they were brought to the forefront.

A Special Olympics Hawaii soccer team celebrating after their match.

Volunteers from the Healthy Athletes Program’s Health Promotion discipline, engaged Special Olympics athletes, families, spectators, and coaches and provided education on sun safety and hydration lessons through interactive games and activities.

The messages in Special Olympics Health Promotion are designed to be simple and easy actions that participants can take year-round to protect their skin and stay hydrated so they can compete at their best. Below are some of the key points shared with athletes, coaches, volunteers and families on these important health topics:

SUN SAFETY: Being physically active outdoors is healthy and can keep you fit and help you get the vitamin D you need, but it is important to be sun smart when practicing, working, and competing outside.

Safe sun practices can protect us from: skin damage, skin cancer, heat stroke, and heat exhaustion.

Use a layered Approach for Sun Protection

Use a broad spectrum sunscreen with at least SPF 15 to protect exposed skin & reapply it every 2 hours, after swimming, sweating, or toweling off

2. Seek shade, especially during mid-day hours

3. Wear a hat, sunglasses, and protective clothing to shield skin.

HYDRATION: Water is fuel for sport!

Drinking the right amount of water is important for your health and can help your athletic performance.

Set a goal to drink 5 bottles of water every day. Your bottle should be 16–20 oz. or 500–600 ml

Best Times to Drink Water:

Drink water at each meal and snack during the day.

• Drink at least 1 bottle of water during sports. Ensure you are drinking water before practice or exercise, during practice or exercise, and after practice or exercise

5 Signs of Dehydration:

Check out more tips about hydration in our Fit 5 Guide!

1. You feel thirsty

2. You are tired or sluggish

3. You have a headache

4. Your mouth is dry

5. Your urine is dark yellow or brown

Check out our Choose to Change Cards for Sun Safety and Hydration as well as our Fit 5 Materials for some easy reminders, tips, and resources on how to stay hydrated and safe in the sun.

Remember, the summer may be over, but sun safety and hydration are year-round activities!