fabiochiu/medium-articles huggingface dataset:
JavaScript Solution of Trapping Rain Water
By: Gulgina Arkin
Tags: Trapping Rain Water, Programming, JavaScript, Leetcode, Raindrop

Problem:

Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.

The above elevation map is represented by array [0,1,0,2,1,0,1,3,2,1,2,1]. In this case, 6 units of rain water (blue section) are being trapped.

Example: Input: [0,1,0,2,1,0,1,3,2,1,2,1]

Output: 6

It seems like an unsolvable problem, don’t worry, we’ll “tackle” it together.

First, let’s see some key points to consider. The given array is non-negative integers. Thanks to this example image, the width of each bar that represents each element in this array is 1. We need to compute how much blue square the map can contain. Does this help? If not, let’s draw examples to make sure we understand the problem.

Example 1

Example 1: Input: [0,1,0,0,2,3,2]

Output: 2

Example 2

Example 2: Input: [2,1,0,2,2,0,2]

Output: 5

Seen from the examples above, the problem is asking about how much blue squares can the empty spaces contain.

Like in example 1, the first integer is 0, but there is no element to its left, so it doesn’t trap water. The second element is 1, to its left, it’s 0, smaller than 1, the second element doesn’t trap water. The third element is 0, to its left, it’s 1, greater than 0, so the third element traps the left element value amount of raindrop, which is 1. To its right, the fourth element is 0, which is equal to the value of the third element, of course, one drop of rain flows to the fourth element. The fifth element is 2, to its left, there isn’t a greater element than 2, so we don’t add any raindrops over the top of the fifth element. The sixth element is 3, like the fifth element, we can’t find greater value to its left, to its right there is no greater value element either. We can also analyze the second example one by one.

And so on and so forth, how many drops of waters can be trapped, is related to the left greatest and the right greatest values of each element. We compare between the left greatest and the right greatest, choose whichever is smaller, and make sure to trap enough raindrops in the position of the element to be equal to the smaller value. And return how many raindrops we trap at the end. We need two pointers to make sure to find the left and right greatest value.

Solution:
Corporate instant gratification
By: Joseph Emmi
Tags: Business Strategy, Digital Transformation, Corporate Culture, Technology, Business

Corporate instant gratification

Focus on the problems that really matter

Reactiveness as a strategy is not a great way to operate. It is time to stop acting like we know what we are doing and start thinking about what needs to be properly done. The problem with this, is that it might require for us to stop and analyse the circumstances, the environment, the possibilities and our weaknesses, which means that we will not be able to do the things that we are supposed to be doing on regular basis, or what in reality happens, we are not seen by others like doing what we are meant to be doing.

We can’t afford to stop, stopping is not productive, let’s continue marching and eventually we will get to where we want to be… Somehow…

There’s no point for teams and companies to perform activities that cannot be fully delivered, what for in the first place?

One of the main problems many organisations face is this idea that doing anything is always good and better than not doing anything at all, while on the hand they are also preaching their aim towards efficiency and productivity.

Why would you invest time and money in doing something that it is not clear how to move it forward or if it can be materialised at all? It doesn’t make sense.

How to change this? Focus on what really matters, focus on improving the things that truly need to be improved, the ones that required to be fixed and that will an impact when achieved. Are these more complex and difficult? Most likely yes, but that’s also why

They require the attention They are usually deflected

Start with them, and step by step the rest will usually follow, rather than go back and forth with small solutions that provide temporary relief but not in depth long-lasting impact.

Quick fixes and small victories are ok, but they are just that, quick and small, and that’s what they are meant to be, nothing more, nothing less, a band-aid, on top a small wound so we can keep moving forward. Do you know someone that applied a band-aid for years? No, right?

As companies move into what, for them, are new terrains, agile, MVPs, quick-wins, and many more that seduce them into feeling dynamic and responsive, a new type of threat might be appearing, the possibility of an endless number of “quick-wins” emerging all over the company, with little thought given into what to do next or how to progress them, while putting on the side the focus or time into solving the actual problem.

These quick solutions might be indeed helpful right now, making the job better, easier or even faster for many, but as a business, it is important to not forget that if something is created to be temporary it has to be treated like that, otherwise is going to become your new default solution and stay there forever.

If they are meant to be quick and small solutions, treat the like so, otherwise, these are nothing more than corporate instant gratification.
Webinar Recording: Predicting food and feed risks with the use of data science
By: Digital Leaders
Tags: Flood Risk, Digital, Technology, Data, Data Science

Written by Louise Stokes, Director, Digital Leaders

The innovative use of data has truly transformed the way the Strategic Surveillance team at the Food Standards Agency predict and identify emerging food and feed risks. Their effective use of open data and use of data science techniques, combined with an agile way of working has enabled the business and technical teams, to work together as one team — evaluate and investigate use cases, speak a common language, build iterative prototypes — enabling a faster, better and collaborative response to business problems.

In this webinar we hear from Jesus Alvarez-Pinera, the Head of Strategic Surveillance from the FSA and Nitin Gangwani, Senior Manager and Project Lead from Cognizant on how the application of data science is helping the FSA to build a bigger picture of the food system, predict emerging food risks and vulnerabilities before they become a risk to public health. The webinar is packed with data-driven insights and share useful information on:
ServiceNow app development
By: Peter Zalman
Tags: Product Design, Servicenow, Service Design, Itsm, Cx

The goal of this article is to introduce the service management domain and ServiceNow app development to a newcomer. It is a collection of public resources and my reflections and tips. I would like to encourage you to comment with your own tips and links to make this a collaborative effort.

Service Management is an exciting domain that exceeds designing for digital and physical products. It focuses on the holistic experience of a customer (CX — Customer Experience) or a company employee (EX — Employee Experience). In our day-to-day practice, we design, develop, and maintain digital products that serve both our customers and service teams. We do all of this at the scale of an enterprise environment with the highest expectations on security requirements and an intricate map of various system integrations. The user interaction channels might vary and typically involves Emails, Web portals, Backstage Workspaces, ChatBots and mobile apps.

A sample of Service Backstage Workspace.

Product vs. Service

The line between the Product and Service is often blurry, and our success is measured through the success of the service.

Imagine yourself having a frustrating experience with food delivery where the food ended up being swapped, costing you money, and leaving you hungry. I bet the last thing you think of is “but the app was good.”

Tools used in Service Design and Product Design.

ServiceNow ecosystem

Some companies deploy ServiceNow as a fixed feature-set platform with out-of-the-box modules. We aspire to bring the best experience to our customers and often integrate ServiceNow with other best-of-breed systems. This puts a lot of emphasis on our Platform knowledge and insights — are we re-inventing something already available? Are we planning to develop a feature that is already on the product roadmap?

To enter the ServiceNow world, I recommend starting with the Knowledge video library. If you are a Product Manager or Product Designer, I recommend dedicating part of your future professional learning to the platform knowledge. There is plenty of available learning and certification courses available once you get access to the environment.

Design Guidelines

Underlying principles of good design practice are the same for B2C, B2B, enterprise software, or a public website. But the execution within ServiceNow ecosystem might be fundamentally different.

Blogosphere

ServiceNow is a vital platform with a large development and Partner ecosystem. Watching these blogs will give you great insights into the Platform evolution.

Twitersphere

I created a Twitter list with interesting people and companies to watch, ServiceNow included. If you are a Twitter person, I encourage you to watch other enterprise companies such as Box Developers, Microsoft Design or even Salesforce. They are all a great source of inspiration about what is happening in the world of enterprise software.
Umut Göktedir, Gök İçtedir
By: Ayberk Bıyıklı
Tags: Şiir, Düz Yazı, Edebiyat, Türkçe, Deneme

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

Check your inbox

Medium sent you an email at to complete your subscription.
A Week in Hell
By: Jason Weiland
Tags: Mental Health, Facebook, This Happened To Me, Health, Social Media

I’m not well. I don’t even know if I’ll be able to finish this tonight, but I have to try. I have to try to make sense of the thoughts and feelings swirling around in my head.

My mind is chaos. Voices are gibbering at the edges of where my subconscious meets the stuff I form to make sense of the things that are happening right now. I hardly know what I’m writing, but I’m going to continue pounding on the keyboard with my index fingers until something like sense starts to print itself on the page.

About a week ago, I knew something was very wrong. The signals in my brain were all mixed up. It was more than the panic and anxiety that had filled me every day since my episode last month. It was something dark at the fringes, and instead of running scared to my bed, I took to Facebook. I decided that I wasn’t going to let another chance for me to document the insanity of my episodes go by without doing something.

May 21, 2019, at 9:01 am

“I was going to do my usual thing and complain because my brain is shit and I can’t go any amount of time without spiraling down, but I realized that whining only makes things worse.

I am trying to write. It’s all I want to do. Sometimes I can get out a paragraph, but most of the time it’s a word or two. This will be the most I’ve been able to get out today.

I don’t want to give in to despair, but it’s hard to keep a positive attitude when I’m trying my best, but I keep getting poked with the shitty end of the stick.

I know I’m farther along than most people who have the same diagnosis. Many people I know with an illness this severe are so heavily medicated, they can’t get out of bed.

I fight the voices, the anxiety, the panic, the depression, and the random racing thoughts. I fight it every minute of every day. I stuck my middle finger in the face of the doctors who told me I would end up institutionalized.

I have a family and a life, but I’m barely holding it together.

Thanks for listening. I didn’t want to turn this into a rant, but I’m sick and tired. I can’t control my mind. All I want to do it work to support my family and have some measure of happiness and fulfillment.

I’ll keep battling, but I’m weary.”
5 Novels That Helped Me Understand Mental Illness Better
By: Sara A. Metwalli
Tags: Mental Health, Books, Health, Self, Relationships

I remember the first time I had an anxiety attack. I was 13 years old. My parents are traditional religious people, for them, there was nothing that religion can’t solve. When I told my mom about my symptoms, she said “go pray — you will feel better.

For years after that, she managed to convince me that every time I had an anxiety attack it was because I was a bad person and need to get closer to God. Once I do, it will go away.

I didn’t even know that what I was having were anxiety attacks. I only figured it out after I left home and went to university. Still, my mom wouldn’t admit that what I was having is a mental problem. She couldn’t, after all, she didn’t want to be viewed as the mom of a ‘crazy person’.

Mental illness has always been surrounded by stigma and discrimination everywhere. Society views various types of mental disorders through the same lense, causing individuals to internalize their feelings.

In my culture, however, and my relatives, in particular, mental illness was all covered under one umbrella: being crazy.

I believe that the main reason societies view mental illness in a degrading way is that they don’t understand it. This lake of comprehension triggers fears in our hearts. Everyone fears what they don’t know. And so, they fear mental illness and those who struggle with it.

The results?

They discriminate against mental illness. Forcing others to hide their symptoms so we won’t outcaste them.

But, the solution is simple; it’s simpler than you might think. The solution is understanding. If they put ourselves in the shoes of those struggling with mental illness, they can understand them. Once we do, they can support them and encourage them to get the help they need.

Now, that I understand my condition better, I can help myself cope with anxiety. One of the best ways I found that helped me understand mental illness better is reading.
I have no milk
By: Rev Dr Sparky
Tags: Poetry, Writing Life, Personal Development, Literature, Spirituality

I have no milk

Reluctant poetry in iambics

I have no milk to give the world;

I have no blood or tears.

I have no sweat to prove my work,

my willingness to please;

too long I toiled and strove and dreamed

and no cathedrals rose.

So what remains when I am pressed?

Not riches; hardly those.

I spent it all, held nothing back;

Tore petals from the rose.

When all there was is all there is,

I give my words, my breath.
Remove Toxic People.
By: Tim Denning
Tags: Self Improvement, Entrepreneurship, Leadership, Life, Startup

The case for detoxifying

In my situation, there was a temptation to stay. This might sound totally ridiculous given what I just explained but hear me out.

Sometimes you can be so caught up in a toxic culture full of toxic people that it becomes the norm. The downside of walking away and the uncomfortable experiences that follow can seem too much.

Staying in a toxic environment is the worse idea. My rationale for that statement is that when I was knee deep in the shit of my own toxic work environment, I began to become toxic myself. It’s not in my nature yet the toxicity was slowly taking over even though I tried to pretend it wasn’t.

The number one reason to detoxify your life and leave these toxic people behind is that exposure to them will not do you good.

It’s only when you escape these toxic people that you can see what you were trapped in and the negative effects of a life such as this.

No matter how hard it is for you, never surround yourself with toxic people.
Concentration/ Ordinary
By: J.D. Harms
Tags: Poetry, Home, View, Image, Landscape

Concentration/ Ordinary

A Poem

Photo by Michael Bourgault on Unsplash

The gloom that was the dawn

left us

to define the afternoon

differently/ Trapped in vicious

memory circles

awaiting judgement\ diagnosis?

Swimming without a net

into a bottle of

ink

Laid up into the next

frustration; that moment taking on

accumulation to the next

The crooked fence posts

lines of barbed wire

consigning the whole landscape to

a troubled graph

Representing the world

has gone dry in the mouth
Sense of an Ending (Poem for 2021)
By: Liam Heitmann-Ryce
Tags: Hope, Poetry, Future, Optimism, 2020

Sense of an Ending (Poem for 2021)

The future is brighter

Image courtesy of the author

I think I sense an ending,

I think I feel it now –

I wasn’t quite sure when, or even really how,

But look ahead, at the new year

That’s rolling out ahead of me:

I only hope, respectfully,

We’ll have a better start.

Do I feel it in my heart?

Do I feel it in my bones?

No, I don’t, but if I can,

I will condone

A healthy dose of brighter cheer,

Of looking out and thinking clear

As to what this new year brings,

A second chance to leave the things

That pull us out of line:

The wasted chances, the thwarted time,

The punishment that had no crime.

Yes, we stayed inside and, yes, we kept our distance —

But did we ever have a choice?

No, not for a single instance,

Did we wish to separate

From those we love and celebrate,

But we did

To keep them safe,

But we did

To give them space,

Which they didn’t want

But simply had to have.

Now I sense an ending, now I feel a change,

Shall we all expand our range,

To wrap our arms around

A newer opportunity,

A second chance to breathe?

Because with one goodbye,

This is the year we leave.

Few will feel much sorrow,

Few will wish to keep

The image of a illness

That cut the spring out of our leap.

We have now a second chance,

Allowing memories to seep;

Let’s hope that we do better,

Let’s surface from the deep.
Breitbart-ary
By: Ramya Deshpande
Tags: Women, Breitbart, Poetry, Women in STEM, Tech

“There Ought to Be a Cap on Women Studying Science and Maths“

– This drivel he defends,

For us fragile women do not have the mettle to contend

with the ferocious competition. We drop out because we cannot cope, shouts out

Milo Yiannopoulous, twice the college dropout.

Any soul sound in the head,

To acquiesce to Breitbart’s drivel, he shall never be compelled.

Or so I held,

Until I scrolled down and beheld

Horrific ignorance unparalleled.

keyster

you highly intelligent creature,

you should receive widespread acclamation

for so astutely figuring out that we have no aspiration.

rhcrest

you know best,

so we should just take a rest

and let you define what we should do with our life

for we do not choose careers to contribute to mankind, improve society, seek independence

no, we just want to be a wife.

oh susan

how cleverly you discern

that only men do the work their jobs require

while all women wallow in mire.

mrminwinc

truly, I applaud you

for contributing to the discussion such a relevant breakthrough.

You deserve a Nobel

for conducting a survey so well

and applying its findings to serve all of womankind as well.

retiredfire

some are quite the liars,

to falsely tell you that they can do science.

Only you can enlighten them as to their physical abilities

so why did they commit themselves to such obvious impossibilities?

WalterBannon

thank you for pointing out to me the reality

that Marie Cure was a fantasy.

Ada Lovelace, Lise Meitner and my fellow women at Caltech are in shock

For it turns out that we don’t have the “chops”.
The Farm That Feeds Me. Thank You Cards
By: Karie Luidens
Tags: Capitalism, Community, Comics, Farming, Agriculture

The Farm That Feeds Me

Part 1: Thank You Cards
Sterling Trader
By: Oleksiy Kuryliak
Tags: Stocks, Trading, Stock Market, Day Trading, Markets

Sterling Trader Pro is a full-featured Level II Direct Market Access (DMA) trading platform designed for active traders & professionals whose strategies depend on fast execution, deep liquidity routes, and professional market scanning tools. The terminal includes advanced pinpoint accuracy for order routing and management and real-time profit/loss capabilities, making it particularly suitable for trading groups.

Asset Managers, Hedge Fund Managers, and Prop Groups have powerful Account Management tools with simultaneous multi-account transactions; pre & post trade allocations; trade analytics, and competitive commission volume rebates.
Creating LocalStorage Wrapper With TypeScript
By: Oleh Zaporozhets
Tags: Nodejs, API, Programming, Typescript, JavaScript

Developing

So, it should be an abstract class with a generic (I will explain what it is for a little bit later):

Let’s add a property that will contain our real storage. Before we do it, we also need to describe the interface that can be stored in this property:

As you can see, the code above exactly repeats browser localStorage . It’s exactly what we need.

Here is the abstract class with the property:

Where can we get the real storage? Of course, from the constructor with the help of the getStorage function. It returns browser localStorage by default:

So in production, we don’t have to do any extra work. But while testing, we just need to pass the function with IStorage as the returning value.

Let’s begin to add methods. Before we start, I have to say that all methods will be protected because they shouldn’t be visible outside of the class/instance and only inheritors should have access to them.

The first one is get :

Here is the T , our generic that we pass to the abstract class. We did this to achieve extra type safety. The method returns a value of null .

Before getting data, we should pass it. The next method is set :

I reckon everything is clear.

There are only two methods left: clearItem and clearItems to remove one single key or an array of them:

Our final code:

OK, since we have only the abstract class, we have to create an instance. But before that, let’s describe enum with all the keys that we are going to use. In our case, this class will be responsible for tokens:

As you can see, we’ve passed Locals to the Storage generic. This means that only keys from this enum can be used in the get , set , clearItem , and clearItems methods.

It makes sense to use singleton because it will be enough to have a single instance of our Token class.

We have added a private access level to the constructor to prevent the creation of an instance. Also, an instance property was added to cache the class instance. The static method getInstance will return the cached instance or create a new one.

Now we are ready to create methods that will deal with our data:

These methods above will be used to operate with an access token. As you can see, we use protected methods from our abstract class.

Let’s do the same for a refresh token:

Also, we need to delete our data somehow:

The final code is below:

Usage:
plot your data, Luke!
By: Muhammad Iqbal Tawakal
Tags: Data Visualization, Data Science

When people ask for average of a certain variable, most of the time they implicitly assumed that the underlying distribution is in some form of a Normal distribution. This is a sensible assumption, because due to Central Limit Theorem (CLT), Normal distribution pops up in many, sometimes unexpected places. Life is also much simpler when the distribution is Normal, as the average value also acts as midway point (median), and also the most likely value (mode).

Three different distribution, each have their own distinct shape but almost similar value in average

However, in real world, not everything follow the Normal distribution. It makes giving the average value from such distribution meaningless and not making sense, as illustrated in the figure above. That is why, in my opinion, the single foremost things to do before even doing any analysis is to display the whole distribution instead of just calculating some summary number.

Histogram might be your most popular way of doing this. However, the most significant drawback of histogram is that the result can change dramatically if you pick the different way of binning.

Different binning, different result, different interpretation

That is why I personally recommend to use Kernel Density Estimate (KDE) to do this. Sure, different values in kernel bandwidth can lead to either smooth or coarse looking distribution, but the overall shape is generally preserved.

Then your main weapon would be method displot from seaborn package which is actually a wrapper for 3 different methods altogether; histogram plot, kde plot, and a rugplot. There are also others more exotic plot, like swarmplot or violinplot, but for most of the cases basic distplot function call will serve you just fine and answer most of the questions.

Sure swarmplot looks cool, but it can take a lot of time to plot if you have humongous number of data, and the end result might be too cluttered for practical interpretation

If somehow you don’t like the result, maybe because the extreme longtailness, or any other reason, you might want to perform the KDE manually and then plot it by yourself. Jake Vanderplas has excellent post to choose the most suitable implementation on the wild. Check it out here.

Lastly, don’t forget to always
韩国加密货币ICON分
By: Harrison Goldsmith
Tags: 数字货币, Icon, 以太坊, 区块链

We are a consultancy group focused on creating a healthy Blockchain ecosystem and assisting projects to reach their full potential

Follow
Best Trades of the Week on MPX
By: Collins Brown
Tags: Trading, Blockchain, Ethereum, Bitcoin, Cryptocurrency

Here are some of the trades from yesterday in sBTC, a short Bitcoin token traded on MPX, with a Price Cap of $14,000. If the price of Bitcoin goes above the Price Cap, the contract settles.

Let’s focus on the five 1 lot buys in sBTC around $400. When the trader entered these positions, BTC was near $13,600. If the price of Bitcoin goes above the Price Cap, the token expires resulting in a maximum downside of each of these positions of approximately $350 to $450 (the executed price of sBTC).

The trader got short exposure to ~$13,600 BTC per sBTC token they bought.

The leverage implied by this position was about 35x!

We all know BTC came screaming off $14,000 area. At the time of writing, the positions are still open and marked to market up about $4,000. Great work with a 100% return in less than a day!

Update: 4 out of 5 sBTC were exited with an average price of ~$1,700 making this trade a $6,500 winner!

How does all of this work?

We make it easy to get short (sBTC) or long (LBTC) leveraged Bitcoin (as an ERC-20 token) on the Ethereum blockchain. Here are a few articles on how these tokens price and trade.

TLDR: Our contracts have a Price Cap and Price Floor that pre-defines the maximum profit and loss of any trade.

That means you know exactly what you are risking at all times. Sorry guys! No more #BitmexRekt. Also, because the maximum loss is defined, the contract is always fully collateralized with no margin calls or socialized losses.

Below is a screenshot of our order book. Notice the leverage column. The amount of leverage changes with the price.

For sBTC — as bitcoin goes up we get closer to the Price Cap which decreases the maximum downside of sBTC and in turn reduces the price. Long story short, the closer we get to the Price Cap the more leverage implied by the position.

This is seen in the below order book for sBTC. As the price of sBTC goes down the amount of leverage increases.

Soon we will release a more in depth look at how leverage works soon as a part of our MPExplained educational blog series.
Drone Employee won Next-Generation Security Award at GoTech 2017
By: Vitaly Bulatov
Tags: Pitching, Blockchain, Robotics, Startup, Drones

On October 12, GoTech 2017 forum was held in Moscow. It was organized by the GoTech fund which is engaged in the search and development of technology companies and it is the largest GoTech competition in Russia and Eastern Europe. The veterans of the venture industry select the best technology start-ups and partner companies select projects for investment and joint projects.

Drone Employee visited the forum, took part in the startup competition and now we are happy to share our impressions and achievements.

Speakers and program

Key topics at the forum were criteria for the success of young companies in the world market, ways and secrets of attracting investments for technology companies and partnership opportunities with global technology companies. In addition, experts discussed commercial prospects and ways of introducing VR, AR, computer vision and artificial intelligence. Marvin Liao — Managing Partner 500 Startups, David Yang — founder of ABBYY, Michael Breidenbruecker — co-founder of Last.fm were among the speakers of the forum.

Meetings and contests

During the forum we talked with investors and journalists, as well as discussed the possibilities of implementing drones in business. Gazprom showed interest in the issue of gas pipe audit: now the company spends time and money on personnel who are looking for rust on pipes manually. We suggested using an unmanned fleet of drones based on our software which significantly reduces costs. They highly appreciated our solution and offered to discuss possible cooperation.

LocoTech has faced a similar problem: they need to check the state of the locomotives and the railway infrastructure along the entire length of the railway tracks. They agreed with us that drones are great for this task.

The contest of technology companies was held by several large companies in different nominations: Google, Dell EMC, Beeline, Raiffeisenbank. We are glad to announce that Drone Employee became the winner in the nomination Next Generation Security from Kaspersky Lab! Our competitors were 121 projects, but we have proven the importance and advantages of using blockchain for drones.

As a reward we got access to the business incubator of Kaspersky Lab, the opportunity to launch a project together and receive funding. In addition, we were invited to the Web Summit — the largest technology conference in Lisbon!

To conclude, we want to thank GoTech team for this great opportunity. GoTech is an amazing event that gave our project a powerful push forward. And now we are going to pierce the heavens!
Steer by the Stars
By: Bill Adler
Tags: SciFi, Music, Science Fiction, 50 Word Stories, Pentina

Steer by the Stars

There’s always a way home

Photo by Bill Adler

“That last laser blast knocked out our navigation system, Captain.”

Jamison surveyed the ashen faces of his bridge crew and rested his hand on the navigator’s shoulder. “We’ll make it back to Earth.”

“How, sir?” His lips trembled.

“A sighting scope, sextant, and sky chart. We’ll steer by the stars.”
How to load Keras h5 model format from Google Cloud Bucket
By: Anurag Bhatt
Tags: Google Cloud Platform, Python, Keras, Machine Learning, TensorFlow

When I was deploying my models due to the large size of it’s very difficult to move them from one environment to another and if I want to access them from anywhere it’s quite hard. So, I got to know why I don’t just upload them to google cloud storage bucket with proper versioning and access any version from any time and anywhere. So, here are the steps.

Step 1: Upload your saved Keras model which is in .h5 format in the bucket.

Step 2: Create Service Account key. So, you can access files from the cloud storage bucket.

Step 3: Now install these python packages gcsfs for accessing bucket files and h5py to read h5 format files.

pip install h5py

pip install gcsfs

Step 4: Now, run the below code to access your model.

from keras.models import load_model

import h5py

import gcsfs PROJECT_NAME = 'testone'

CREDENTIALS = 'cred.json'

MODEL_PATH = 'gs://testarticleone/1/model.h5' FS = gcsfs.GCSFileSystem(project=PROJECT_NAME,

token=CREDENTIALS) with FS.open(MODEL_PATH, 'rb') as model_file:

model_gcs = h5py.File(model_file, 'r)

myModel = load_model(model_gcs)

FS is the file system object.

PROJECT_NAME is the name of your project where your cloud bucket is located.

CREDENTIALS is the path of your service account JSON file.

MODEL_PATH is the path of your model in the bucket.

In myModel you will get your model now you can use it to predict.

And, if you are using preprocessing, tokenization, or padding before sending it to the model and you got the pickle file you can also upload it to bucket and access it just follow the below code make sure your token file is in .pkl or .pickle format.

import pickle TOKEN_PATH = 'gs://testarticleone/token.pkl' with FS.open(TOKEN_PATH, 'rb') as handle:

myToken = pickle.load(handle)

TOKEN_PATH is the path of your token file in the bucket.

In myToken you will get your token file and use it to preprocess your input.
3 Signs You Are Chasing Success the Wrong Way
By: Younes Henni
Tags: Self Improvement, Inspiration, Personal Development, Life, Motivation

1 — You obsess with “to be” and neglect “to do”

“I want to be a leader, a successful entrepreneur, a famous writer. I want to be happier, smarter, sexier.”

The problem with these aspirations is that they are self-centred.

A mentality centred around your desires and dreams is an alarming sign you are heading the wrong path to success. Because people don’t care about what you want to be; they only care about what you have to offer.

Solution:

Shift your obsession from the self to whom you should serve. Sometimes all it takes to propel your career is a serious commitment to providing value to others.

Legendary success, the Barak Obama or Jeff Bezos kind of success, is only possible by working for a cause bigger than yourself. As US Aire Force legend, John Boyd, once said:

“To be somebody or to do something. In life, there is often a roll call. That’s when you will have to make a decision.”

“Who do I wish to be?” is the wrong question to ask. Instead, ask yourself: “What can I improve in my community, my country, and the world?”

To be or to do? Which way will you go?
Hacker Noon Acquires Crypto Disrupted, the Podcast by Trent Lapinski
Tags: Hackernoon Podcast, Mergers And Acquisitions, Crypto Disrupted, Technology Podcast, Hackernoon Letter

Hacker Noon Acquires Crypto Disrupted, the Podcast by Trent Lapinski

The cryptocurrency podcast will join Hacker Noon to make a more mainstream tech podcast — THE HACKER NOON PODCAST!

Trent Lapinski will take over as the host for the upcoming weekly Hacker Noon Podcast. The first episodes will be released in late September. You can subscribe today by visiting https://Podcast.HackerNoon.com.

Over the last calendar year (Aug 17 — Aug 18), Hacker Noon stories have generated 95,000,000+ pageviews. To date, this has been text stories, but in a recent Hacker Noon survey, 71% of readers said they would like to listen to a Hacker Noon podcast. We also will be upping the production value of the podcast with the help of musician Derek Bernard.

Early guest commitments for the new Hacker Noon podcast include:

Trent Lapinski first made his impact on Silicon Valley covering Steve Jobs keynotes in his teens, and later in his twenties building tech startups. Now in his early thirties, Trent is a future-focused technologist, journalist, hacker, and former startup founder with a successful exit.

The Hacker Noon podcast will explore new mediums for delivering the truth about how the tech industry actually functions. Read press: Tech Startups, Business Wire

If you’d like to sponsor the podcast, please email Partners@HackerNoon.com.
Pooping is Important to Me. Regularly moving bowels are the best…
By: Nathan Foolchand
Tags: Body, Writing, Life, Health, Short Story

Pooping is Important to Me

Regularly moving bowels are the best bowels. The opposite is true when they are not.

My wife enters the room and proudly exclaims, “I just did a huge poo.” It had been a while since her last bowel movement, and now she is light on her feet again. She glides around the room effortlessly and tucks her belt in a notch tighter.

Some people find it hard to poo, apparently. It’s a thing. And it’s a thing for my wife at the moment because she’s pregnant. “The growth of a baby inside her belly pushes internal organs together and puts pressure on her colon,” said the doctor.

“Laying down after inserting a suppository up into your anus is a weird feeling”

I have no such issues. I can almost move by bowels on request. I went twice today at work alone. And including the post cup of tea, pre-shower poo which I execute as part of my morning routine, I’m on three for the day. I used to be a three- a- day- guy just at work but COVID-19 caused the closure of the lunchtime buffet in the canteen, meaning I can no longer access the beetroot salad.

Photo by Clay Banks on Unsplash

The only time my digestive system has ever failed was when I fractured my leg after crashing a motorbike. As a painkiller, I was given Co-codamol tables. They’re a mix of codeine and paracetamol. They stopped the pain fine, but there were grave side effects. The doctor at the hospital conveniently forgot to mention that they draw water from your stool, making it tougher to excrete waste. After four days without action and a stomach the size of a bowling ball, I felt the fear of God within. This just doesn’t happen to me!

“It wasn’t a smooth operation; I had to work for it. I felt like an assassin who had to grapple with their victim before ending their life”.

A friend, who is a qualified doctor, recommended I take some mild over the counter medication which would gently move things along in the next 24 hrs. Under no circumstances was that going to happen. I’d been bitten by a rattlesnake, and I needed the anti-venom immediately. Otherwise, I was a dead man.

Laying down after inserting a suppository up into your anus is a weird feeling. It gives a burning sensation in your stomach as if it’s singeing the feces away from your intestine walls. It’s uncomfortable, but comforting in the fact that you know it’s working. After waiting 40 minutes or so, it was time.

It wasn’t a smooth operation; I had to work for it. I felt like an assassin who had to grapple with their victim before ending their life. The slit to the throat came in the form of a softball type mass exiting my body. Its impact on the basin could be measured on the Richter scale. I wondered if the plumbing in my apartment was up to the task, but it proved me wrong, thankfully.

Those days, however, are well behind me. Occasionally I go for a sit down wee, scroll on my phone, and realize I’ve pooed. I much prefer it that way.
How to Submit Stories to The Story Hall
By: Hawkeye Pete Egan B.
Tags: Writing, The Story Hall, Storytelling, Submitting, Friends Of Cowbird

Please note — due to an overwhelming response, and both active editors of this publication currently being overwhelmed with life demands outside of Medium, we are currently not accepting any new writers to The Story Hall. We simply can’t keep up with the demand at this time. We do plan to return to be fully open for new writers and hope to get situated to where we can do a proper job editing submissions, but for now, we need to take a breather.

Kirstin Vanlierde

If you would like to be considered as a writer for The Story Hall, here’s what to do:

Send an email to:

lieve.woordjes@kirstinvanlierde.be, or

petebridgeman@hotmail.com

requesting to be a writer on The Story Hall. Include a link to a draft story on Medium, or a story previously posted on Medium, and your profile name.

Once you have been added as a writer to the Story Hall, you will be notified. You can then submit a story for publication on the Story Hall by:

Drafting your story on Medium,

Clicking on the three dot (…) icon to the left of the bell icon that is to the left of your avatar icon on the top right of the page,

Click on “add to publication”,

Click on the circle above The Story Hall,

Click “Add Draft”.

Back at the top of the page, click on Ready to Submit,

Add up to 5 tags where indicated,

Click Submit to Publication.

It may take a little while, but rarely more than a day or two, for your story to be added to the Story Hall.

If there are any concerns or clarifications needed before posting your story to The Story Hall, you will be promptly notified.
Permission
By: Gretchen Lee Bourquin, Pom-Poet
Tags: Depression, Blank Verse, Self Love, Poetry, Courage

blank verse (iambic pentameter, no rhyme scheme)

Photo by Cory Bouthillette on Unsplash

She wraps herself inside her flannel tomb

to ward off chills that rival winter’s breath.

She wonders how she’ll dare to grant herself

a chance to move outside her inner shell,

and pull herself from self-inflicted death.

She cannot tell them why she should deserve

the privilege to search for confidence.

There’s always someone better, so she thinks.

Her tears well up and stab like swallowed knives.

She wipes her eyes to slowly face the day.

Yet, still, behind a failed distorted glass,

beneath the muck that’s wrapped around her heart,

there grows a soft and subtle seed of hope,

that only wants to see the light of day.

Tomorrow, she will find a string of pride,

and braid together strands to grant her strength.

And bit by bit, she’ll bring on Doubt’s demise,

forgetting all the days she almost quit.
Steve Forbes and Sebastian Thrun
By: David Silver
Tags: Self Driving Cars, Udacity, Autonomous Vehicles

My old boss and friend, Sebastian Thrun, spent an hour talking with my current boss, Steve Forbes.

They cover AI, transportation, digital medicine, autonomous flight, Udacity, the future of technology, and more. You even get to hear Sebastian talk about a refrigerator flirting with a dishwasher.

(I contribute Forbes.com; it’s a stretch to call Steve Forbes my “boss”. I’ve actually never met Steve Forbes myself, but just go with it.)
We’ve got a hung parliament: now what?
By: Roop Gill
Tags: Politics, Jeremy Corbyn, UK Election, Elections, Hung Parliament

The results are in and astonishingly, we have a hung parliament.

Labour have gained 29 seats, taking them to a total of 261 seats. Meanwhile, the Conservatives have won 317 seats.

In the UK, a party must win 326 seats to secure an absolute majority. Otherwise, we’ve got a hung parliament on our hands.

What’s a hung parliament?

A hung parliament means no party has won enough seats in a general election to have a majority in the House of Commons.

Since 1929, only two UK general elections have resulted in hung parliaments: 1974 and 2010.

Remember this? Courtesy: Getty Images

What happens when there’s a hung parliament?

One of two scenarios, realistically:

1) There will be a frenzied round of talks between party leaders and their negotiating teams to put together a coalition government, like the Tories and the Lib Dems did in 2010.

2) One of two party leaders opt to go at it alone and run a minority government. The issue with this is that the (new) prime minister will have to rely on smaller parties when support is needed to pass laws.

So, who will be the prime minister if we have a hung parliament?

Still Theresa May. She’ll be in charge and stay in No 10 until it’s decided what the new government would look like.

According to the Cabinet Manual, she’ll also have a chance to form government until 13 June — which is when the parliament is scheduled to meet again.

But what if she resigns?

Then Jeremy Corbyn will be first in line to have a go at forming a government.

Wait… what is a “government” at this point? Coalition government?

Not necessarily. The only test for whether a government can be formed is whether it has the confidence of the House of Commons.

—

The election might be over but we suspect there’s still plenty of action to come: it’s going to be a busy weekend for the party leaders.
Auster at Salon du Livre Paris
By: Carol Mann Agency
Tags: Salon Du Livre Paris, Paul Auster

Paul Auster, Umberto Eco, Salman Rushdie and Doris Lessing were among the 90 international guests of honor at the 2010 Salon du Livre de Paris. The six-day public festival, which celebrated its 30th anniversary this year, kicked off on March 26 at the Porte de Versailles exhibition center. According to Publishers Weekly, more than 2,000 authors and illustrators were in attendance and took part in over 5,000 book signings.

[caption id=”attachment_308" align=”aligncenter” width=”300" caption=”Paul signs books at the Salon du Livre on March 27, 2010.”]

[/caption]

[caption id=”attachment_309" align=”aligncenter” width=”300" caption=”Photos courtesy of Eliane Bénisti”]

[/caption]
There Are Ghosts Around Every Christmas Tree
By: Victoria Ponte
Tags: Love, Grief, Death, Self, Christmas

Pexels

There Are Ghosts Around Every Christmas Tree

Don’t Be Afraid

I sat alone tonight looking at the Christmas Tree. Naturally, it brought up memories of the people who had sat and done this with me in the past. Some have passed away. Others drifted off. One drifted off first, then passed away.

My friend’s father died the day before yesterday. I called with my condolences while I sat alone and looked at the tree. Now, his dad will forever be a ghost around the Christmas tree.

Have no fear. Only love.
DataOps Aphorisms
Tags: Dataops, Agile, Data Science, Aphorisms

We speak to a lot of people about the ideas behind DataOps. Sometimes, the shortest phrase captures the idea the best.

The dictionary defines an Aphorism as aph·o·rism /ˈafəˌrizəm/ (noun):

a pithy observation that contains a general truth.

So we collected many of the things we have been saying in conferences, sales calls, and during customer implementations and created this rotating gif. Let us know what you think!

DataOps Aphorisms

Here is the list of DataOps Aphorisms: