fabiochiu/medium-articles huggingface dataset:
Kriptomat Mobile Rewards is LIVE — Offering 1 Million Prizes
By: Žiga P. Škraba
Tags: Blockchain, Kriptomat, Ethereum, Qr Code, Cryptocurrency

For those of you who tracked the development of our new Mobile-app update via our CEO’s Twitter, you understand how exciting this new set of advancements is.

We have been working tirelessly, pulling 14-hour shifts to get this update out to you as quickly as possible.

Now it’s here and we couldn’t be more thrilled.

QR-Airdrop Feature

Inspired by Enjin Beam, the world’s first QR-airdrop system, we created our own QR-giveaway feature with the goal to lower the barrier to blockchain adoption for people that want to receive blockchain rewards when buying cryptocurrencies.

The result is a blockchain-powered airdrop system that is clean, crisp, and incredibly enjoyable.

Here’s how you can use this new QR-giveaway system:

Step 1: Download the Kriptomat app on iOS or Android

Download the Kriptomat app on iOS or Android Step 2: Complete the basic registration

Complete the basic registration Step 3: Scan the QR Code

This QR code will deliver 100 Kriptos to the first 1,000,000 people who scan it.

As you can see, this is the easiest way to receive blockchain assets, ever.

Kriptomat Rewards for Mobile

Our rewards program is probably the most advanced loyalty program that you’ve ever seen — and now it’s available on mobile.

Watch our CEO Srdan Mahmutovic as he takes us through the mobile rewards program.

The Kriptomat app now enables you to earn points, play games, collect items, craft assets, and redeem discounts.

The assets you earn within Kriptomat Rewards unlock content in over 20 games.

For a more in-depth explanation of our rewards program, please read our initial launch announcement.

What’s Happening Next?

We have been getting overwhelming demand to open up the Kriptomat Rewards program so that users who can’t trade on Kriptomat can still earn rewards.

We agree that the magic of blockchain should be available to everyone.

No one should miss out on valuable opportunities because of where they were born or where life has taken them.

That’s why we are now developing a standalone Kriptomat Rewards platform that will be accessible to anyone in the world.

No matter where you live, you will be able to take advantage of Kriptomat Rewards, have fun playing games, and collect valuable assets that can move with you through many gaming universes.

If this is the future, we want you all to be able to enjoy it.

So stay tuned, this next development sprint is dedicated to you!
How to Navigate in Today’s Job Market
By: Rajasree Rajendran
Tags: Jobs, Women Who Code, Negotiation, Job Hunting, Cold Emails

So, you are looking for a job. Unfortunately, the whole world is engulfed by the Covid-19 crisis. Like everything around us, finding a job in today’s scenario has also changed.

Are you confused about:

How to find a job in today’s market? 👩‍💻

How can you stand out among hundreds of applicants? 👩‍💻

Can I still negotiate in the current situation where everyone is happy to just stay employed? 👩‍💻

Photo by Thought Catalog on Unsplash

In a joint event conducted by Women Who Code San Francisco and Women Who Code Silicon Valley chapters, Zaheer and Zuhayeer from Levels.fyi spoke about navigating in today’s job market effectively.

Levels.fyi is the perfect pitstop to take before making big career decisions. The website helps in comparing career levels and salaries across various companies.

Now let’s find out how to navigate in a Covid-19 job market! 🌟

Finding a job during Covid-19

The current market trends show that the number of job offers has come down, with a few exceptions of companies with an increase in hiring (like Amazon), whose profits have doubled during the pandemic. But overall, there are lesser companies hiring especially for junior roles and recent graduates.

Okay, but what can we do about it?

We can focus on our job search and create inbound opportunities! 💡

Focus your job search to identify which companies are actively hiring and find out their job postings on various websites. There are multiple databases out there with details about companies that are still hiring and positions they are hiring for. Since most jobs are remote now, this is the best time to expand your horizons and not have any location constraints! ✨ 🌐

But, I don’t have enough experience!

That’s right. It is always a chicken and egg situation. 🐔 You need the experience to get a job, but you need a job to get experience! 🥚

Focus on outbound search

If you do not have the experience, you create it! Use your creativity, find a new product idea, work on developing it. Don’t have the skills to develop it? Invest in yourself and upskill! Join online groups, Slack channels, or clubs that interest you — they may have some amazing projects that you could work on! Personal projects are always appreciated by hiring managers because they are indicators that you are proactive, resilient, and inquisitive. ✨ 💻 Another great way to build experience is by contributing to open-source projects or by joining a hackathon! For software engineers, GitHub is the best source to find open-source projects. One way to navigate inside Github is to look for most starred repositories. Check other sources such as firsttimersonly to find more open-source projects and join them! 👩‍💻 ⭐️

Create inbound opportunities
Microservice Mimarisinde Haberleşme Teknikleri #1(RabbitMQ — .Net Core — CAP)
By: Furkan Güngör
Tags: Capitalism, Net Core, Microservices, Event Driven Architecture, Communication

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.
Writers: A Challenge
By: Tre L. Loadholt
Tags: Community, Lune, A Cornered Gurl, Creative Writing, Challenge

Let’s make this happen, people!

•Request to be added as a writer by emailing me at acorneredgurl@gmail.com with “Please Add Me” as the subject line and please include the link to your Medium profile. Don’t want to be a writer in A Cornered Gurl? Simply comment with your response in this challenge post, or create your own post to your profile or in another publication, however, please use the tags, “Challenge” and “Lune.”

Since this is a challenge call, all submissions received by 6:00 pm, US EDT Sunday, March 15, 2020, will be published by 7:00 pm, US EDT Monday, March 16, 2020. Any other submissions received during the week and past 6:00 pm on Thursday, March 19, 2020, will be published by 7:00 pm on Friday, March 20, 2020, US EDT. CHALLENGE SUBMISSION BEGINS NOW. ❤

Show me how you’d “lune a lover.” Bring the noise, lovelies, and as always, have fun!

*Finally, this is a read-for-all community. There will be no metered paywall or locked pieces in A Cornered Gurl. If you do not know how to unlock your submissions, please learn how to here. The Weekly Knob gives an excellent breakdown on deselecting the option to curate/distribute for paywall prior to submitting to a publication.
JavaScript Best Practices: Useless Code, Comparisons, and Eval
By: John Au-Yeung
Tags: Nodejs, Programming, Web Development, JavaScript, Software Development

No Unnecessary Function Binding

The bind method is a method of a function that changes the value of this inside a traditional function. Therefore, if our function doesn’t reference this , then we don’t need to call bind on it to change the value of this .

For example, the following function uses bind with a purpose:

function getName() {

return this.name;

}

const name = getName.bind({

name: "foo"

});

console.log(name());

In the code above, we have the getName function, then we called bind on it to change the value of this to { name: “foo” } . Then we when we call name in the last line, we see return this.name , which should be 'foo' since we changed the value of this to the object.

On the other hand, if we have:

function getName() {

return 'foo';

}

const name = getName.bind({

name: "foo"

});

console.log(name());
Living an Undeserved Dream: Thoughts from the French Riviera
By: M. Wheeler Books
Tags: Travel, Thoughts, Inner Journey, Feelings

More from France

I am a detestable person.

Currish in ways that are common to us all but in ways and amounts whose sums exceed the acceptable threshold that would allow me to consider myself equal to the minimal requirements of my own personal standard of noble character. Unfortunately, I doubt that I’ll ever be a good enough writer to qualify my indecencies adequately. So I will never waste time or effort on achieving such explanations that I have deemed unattainable. In life it is important to understand we are not perfect and move on. We move on unconsciously holding close the idea that so many have received fates, good or bad, that they do not deserve. And we still continue to hope for outcomes for ourselves that we have likely done more to repel than attract.

We are all only human.

So unapologetically without explanation of my deficiencies but with an understanding that all I have and all that I have ever aspired for is undeserved, I dream.

I dream of places, experiences, feelings and interactions that I do not condign.

While most of my dreams are forgotten, and unrealized, there is one dream that I can recollect and it feels as real as any moment I have ever lived.

On this one day during my memorable dream, I was a decent enough person to deserve the rewards of unforgettable experiences that stimulated all senses and a happiness that should only be reserved for decent people. And in this dream I was in the South of France. And during this dream I had no want to be any other place other than where I was at that time, the French Riviera.
How to thrive in chaos — what I learnt about a design studio by watching MasterChef
By: Debbie Turner
Tags: Design Process, Creativity, Constraints, Organization, Design Systems

Creativity

I am not going to talk about creativity in general but, more specifically about the power of creative constraint as a means to fuel creativity.

Constraints such as limited resources/time or budget seem like they would stifle a creative project, however the opposite is true. Constraints can benefit a project, and enable you to do your best work.

As a young designer I would often think that if this project had a bigger budget, a better brief or more time, the work would automatically be better. What I have found to be true however, is that the most interesting work comes when restrictions are imposed but, you use them to your advantage.

“Sometimes, creative work involves embracing limited resources, limited options, and limited time in order to create something unique.” — John Spencer, What Two Cooking Shows Taught Me About Design Thinking

In the context of Masterchef, chefs are given access to limited ingredients, limited time or limited tools in their cooking challenges. These challenges are often where the magic happens, as they are forced to hone their creativity.

Scott Barry Kaufman, Ph.D., author of Wired to Create: Unraveling the Mysteries of the Creative Mind, notes that creativity “involves variability — different ways of doing things” but also “involves constraints, which can either promote or preclude creativity.”

Constraints limit the choices available to us, and with that the anxiety of choice that can paralyse us and stop us from actually starting a project. If you have ever received the “open brief” you will know that this hinders rather than aids creativity. Successful creatives often impose creative constraints on themselves in order to push themselves creatively.

Damien Correll, a designer who puts imposes specific constraints in the form of tight deadlines upon himself, says: “I find [constraints] make the process a little more enjoyable and the final output is usually something I’m more proud of.”

“Constraints shape and focus problems and provide clear challenges to overcome. Creativity thrives best when constrained.” — Marissa Mayer, former VP for user experience at Google

Our brains naturally want to be efficient and our thoughts will often tread upon well worn paths of out brains, churning out the same kinds of ideas. Obstacles force us to think differently and create new pathways in our brains. Consistent constraints help you improve at connecting unrelated ideas and concepts.

Scott Belskey in his book Making Ideas Happen notes that:
The Worst People of 2020
By: Will Leitch
Tags: Mark Zuckerberg, Curt Schilling, Jared Kushner, Donald Trump, Jk Rowling

The Worst People of 2020

There were plenty to choose from.

This would have been a wretched year even if you spent it with human saints. The pandemic, fires, death, pain, so, so many lawyers … 2020 was going to be a tough sit regardless of your company. But some people made it so much worse than it had to be.

Thus, today, to close out the year, we look at the Worst People of 2020. These are the ones who brought out the worst in us and themselves, the people who made this difficult year even harder. Even through all this, I do believe that most people are, deep down, inherently good. (They just can’t get out of their way sometimes.) But not these people. These people are bad.

One note on this: I decided, when I made this list, not to include anyone who would be happy to be on it. The last decade has brought out a new ilk of terrible, the people who are purposely terrible so that they can get attention, the people whose public lives exist solely to get on lists like this one. The ones who will pretend Covid isn’t real not because they actually believe that, but because they’re appealing to the base instincts of fear and anxiety so that they might personally profit from them. I will not reward their trolling here. You have to be legitimately loathsome here, not just play-acting loathsome. Even if those two things are increasingly indistinguishable from each other.

But here are they are. Here are the worst.
The Number #1 Reason Why Most New Year’s Resolutions Fail
By: Ruth Matthews
Tags: New Year, Life, Education, Learning, Life Lessons

I always loved celebrating New Year’s eve.

Being drunk with close friends, the countdown to midnight, dancing around the kitchen at 4am, and then a big, hungover lunch the next day.

The celebration part is going to feel a little different this year.

The promise a new year brings is also something I love. I know it’s irrational to think about time this way, but something about the prospect of a new year is hugely motivating.

Setting goals, making lists, building new routines, and allowing myself to dream at the beginning of the year is also incredibly exciting.

“The magic in new beginnings is truly the most powerful of them all.” -Josiyah Martin

I don’t remember when I first learned about New Year’s resolutions as a child. I do remember watching the adults in my life fail every year at the same resolutions.

My father would vow to eat healthier, or my mother would promise to lose weight and get fitter. By the end of January, these resolutions were forgotten, and by the end of December, my parents would be at the exact same place they were the year before.

If they never worked, what was the point of even making resolutions?
Coding News Summary #1— NPM 5, Updates to React, Kotlin on Android, and more
By: Samer Buna
Tags: Coding, Nodejs, News, Programming, JavaScript

Hello!

Here are the most important things happening in the coding world this month:

Node 8 and NPM 5

Node 8 is out and it comes with NPM 5 which claims significant improvement on performance. NPM 5 is packed with new features and fixes. Most notable features are offline mode, --save by default, and a new lockfile that gets automatically created.

Kotlin Becomes First-Class Language on Android

Google has announced that Kotlin, the modern programming language developed by JetBrains that runs on the JVM, will now receive first-class support in Android Studio 3. This is a huge win for the Android community and will play a significant role in the future of Android development. Kotlin aims to have a more friendly syntax for developers in order to improve productivity and readability. Likewise, the language includes null safety, functional programming support, and imposes no runtime overhead.

React 15.5 Released

The React team has released version 15.5 which is the last major release before the highly anticipated version 16. In favor of a smaller codebase, the React team has moved PropTypes and createClass to separate packages. In addition, they've included a codemod to assist with the migration to the new patterns. The React team is also discontinuing support for React Addons, and the React Test Utils are moving from React to React DOM.

99.6% of React 16 Tests are Passing

React 16 is the most highly anticipated release in a long time. As of late-May, the server-side rendering tests are passing which puts the release date in sight. The reason for the excitement over 16 is that it includes Fiber which is a reimplementation of the core algorithm for React. The headline feature of this improvement is incremental rendering which will chunk rendering process. Luckily the API will not change, so all React users can benefit from the update without needing code changes.

Stack Overflow Introduces a Trends Tool

You can now check the trends on Stack Overflow with their new Trends tool. The tool can be used to see the rise and fall of languages and frameworks. For example, Python seems to be getting a lot of attention lately while PHP is experiencing a decline. React, Angular, and Vue are all doing very well while other frameworks appear to be in the later stage of their life cycles.

WebAssembly Cross-Browser Consensus Reached

In a huge win for the future of web development, the initial design for the WebAssembly API (in JavaScript) and binary format have been completed. The WebAssembly team represents all the major browsers, including Chrome, Edge, Firefox, and Webkit. The outcome of WebAssembly is to create a binary format for browsers which will ultimately improve performance and decrease bundle size. The teams are now hard at work integrating the WebAssembly into browsers and updating the developer tools. For the engineers that love being on the cutting edge, you can begin experimenting with WebAssembly by compiling on your own machine.

That’s all we have for you this month. Until next time!
This Meditation Exercise Builds Mental Muscle and Cures Procrastination
By: Coach Tony
Tags: Mindfulness, Meditation, Productivity, Life Lessons, Procrastination

The Awareness-Focus Loop

The reason this meditation exercise will work for many of you is because it trains a really specific mental skill, the Awareness-Focus Loop.

There are tons of feelings that sit right below your conscious mind. Unaddressed, these feelings actually guide the majority of your decision making.

Maybe you’ve heard this as the rider (rational brain) and the elephant (emotional brain).

With effort, the rider can guide the elephant. But with any distraction, the elephant takes over.

The good news is that with effort you can examine those subconscious feelings with your rational, conscious brain.

The “I am aware” exercise uses a nifty trick. For practical purposes, your language center is active only with your conscious mind.

So by framing your examination of your wandering thought as a fully formed sentence you’re guaranteed to be moving the feeling from your subconscious to your conscious.

Quite often the thought just disappears at that point because it’s too trivial to keep focused attention on.

In any case, having awoken your rational brain, you have the opportunity to bring your focus back to what you rationally want to be focusing on.

In meditation, that’s your breath. In work, that’s your current task.

A lot of people think of meditation as spiritual and/or calming. It can be. However, there’s a growing interest in meditation from high performance fields.

Hedge fund managers meditate to manage cognitive biases. Athletes meditate to reduce anxiety and get into a flow state. Even the military is taking up meditation.

For these high performance cases, the Awareness-Focus Loop is the key skill that you train during a meditation.

High performers take the “I am aware” exercise and apply it as they live their day.
What I Wish I Knew About Writing When I Was In College
By: Benya Clark
Tags: Schools, Writing, Academia, Writing Tips, College

Last week, I came across a stack of old essays that I had written in college. I graduated from undergrad over a decade ago, so reading through my old writing was a trip down memory lane.

As I read the essays, I remembered how difficult I used to find writing. Putting together a decent paper felt like pulling teeth. I’d struggle for hours on just a few paragraphs.

Looking through the finished papers, I can see that I wasn’t a terrible writer. I’ve certainly improved since then, but the essays are all clearly written and almost all of them got As.

My problem wasn’t with the finished product — it was with the process that I used to get there. I’d try to plan, write, and edit all at once, instead of breaking my writing down into steps.

When I had a writing assignment in college, I’d start by opening a blank document on my laptop, and then jump straight into writing the essay itself.

I didn’t do any written brainstorming, preferring to just think about the topic in my head. I didn’t use outlines either, except in the rare cases where a professor required it.

My first draft was also essentially my final draft. After finishing an essay, I would only do basic proofreading. Instead of saving the editing for the end, I’d edit each sentence and paragraph as I wrote.

I remember thinking at the time that brainstorming, outlining, and rough drafts would all just slow me down. The truth is, skipping these steps actually made writing way more difficult for me than it ever had to be.

Just a few minutes of planning can save hours of writing.

My aversion to planning my essays and writing rough drafts wasn’t just stubbornness though. It came from a basic misunderstanding of how to perform these steps of the writing process.
Cake Eaters of Adultery
Tags: Sex, Adultery, Affairs, Cheating, Infidelity

Cake Eaters of Adultery

When Sex at Home isn’t Enough

When does eating cake seem like a bad idea? Never in my book. I love cake. It’s my favorite dessert. Forget ice cream and mousse or puddings. They all hold their appeal, but cake is special. It’s for celebrations like birthdays and weddings. It has layers and frosting. Nothing bad has frosting, I’m convinced.

In adultery, cake eaters are reviled.

They are the ones who cheat because they want “more.” They have plenty of cake. It’s just not the flavor they want or they aren’t in the mood for it or they want pastries instead.

One potential lover was perfectly content.

No worries about weight gain or cavities. He’s got it all. The intimacy with his wife and the promise of passion with me.

“It’s so boring and predictable with her.”

What I would do to have predictable sex…

“Yeah?” I reply, biting back the urge to ream him.

Of course, it’s boring being married upmteen years.

At least you still touch each other.

“I want an FWB situation good for both of us.”

But better for you, dude.

I want a man who craves intimacy. That’s what I want.

No sex at home.

I want desperation and desire.

I need a man to look at me hungrily. The lack of touch will do that to you.

What I don’t need are empty promises.

“I’ll give you all the time I can.”

Yeah, right.

“Why can’t you just be happy with what we have?”

Because I’ll never have as much as you.

“I’m not ready for this.”

I’m not ready for your lies.

What kind of man isn’t jealous of my marriage? The guy who has enough already.

So it’s not a level playing field. We aren’t evenly matched.

The games start.

Do I answer his text right away or wait? I should wait. He never answers mine quickly.

Why?

Because he’s busy.

“I have responsibilities…” he texts.

“I do too.”

“You know I’m busy at home.”

And I wonder how busy exactly. What is his wife like? I bet they laugh together.

“I’m busy too.” But not busy enough.

I’ll never get what I need from this man.

I’m a bonus he’ll quickly forget in a few months or a year.

What I would prefer is a memory. One that sears into my retina. One that I can’t erase easily and neither can he. Of afternoons so steamy that I asked him to crank the air conditioning in the hotel room.

“Be naked. We will get sweaty,” I texted.

Devil emoji in return.

“I can’t wait,” he responds. “Room 343.”

“On my way.”

I can feel my panties getting damp from desire only imagining what we would do to each other.

I dab perfume on my wrists and powder my face in the rearview mirror in the parking lot. He doesn’t care about my shiny skin when he opens the hotel door.
Product designers: you are not late
By: Jeff Domke
Tags: User Experience, Web Development, Design, Web3, Startup

This is my salute to a post of a similar name by Kevin Kelly.

Today, I’m reflecting on my 15 years of design and product management experience, mostly at early-stage tech startups. The product designers I admire most got their hands dirty with early Web 2.0. They ushered in a new era of apps, advertising, social, and big data. They started companies that would become modern-day juggernauts: Twitter, Instagram, Airbnb, Squarespace, Vimeo and many more.

Web 2.0 was the ultimate expression of right place, right time, right people. The right distribution ecosystems were built, like iOS and Android. The right developer tools were rapidly evolving, making experimentation fast and cheap. Startup funding was aggressive and plentiful. Billions of new consumers got their first smartphone. It was a golden era for products: user experience became very, very smooth. User attention was artfully captured, retained, and monetized.

But on Web 2.0, I can’t help but feel too late. You’re too late, too. The juggernauts have network lock-in. They make huge profits selling your social life to advertisers, then reinvesting their profits into armies of new product designers, who then invent better ways to mine your attention. If you want to disrupt this status quo, good luck. On Web 2.0, we are all too late — the successful founders have built their moats, and we are left to fight over the scraps.
How To Be Better At Socializing When You’re An Introvert With Constantly Flailing Hands
By: Tab Parker
Tags: Social, Humor, Life, Life Lessons, Satire

How To Be Better At Socializing When You’re An Introvert With Constantly Flailing Hands

Finally, some tips that work.

Image by Gerd Altmann from Pixabay

Having an active social life can be difficult when you’re an introvert who prefers to be home alone because you don’t want people to witness you knocking things over as you try to control your wild hands. It’s just so discouraging when you try to socialize with someone new, but you don’t know what to say, and also you can’t stop shaking their hand, and your handshake gets faster and faster until they’re forced to push you away. We’ve all been there. Here’s how to fix it:

Practice in the Mirror

Practice telling a story in the mirror. It can be about anything, except for the problem with your hands. Start small and work your way up to longer stories. When your hands start recklessly drumming on the countertop, take a deep breath and slam them inside your vanity drawer. It’s the only way they’ll learn.

Acknowledge Strangers

This can be as simple as making eye contact with someone and nodding. Don’t wave: that will encourage your hands. Keep them hidden in your pockets, balled tightly around your behavior-correcting razor blades.

Initiate Conversation

Talk to a cashier or barista. It doesn’t have to be anything crazy. Just say hi, and ask them how their day is going. When your hand reaches out to punch the Children’s Charity donation jar across the room, use your behavior-correcting knife to skewer your hand to the counter: it can’t bash if it’s impaled! If the cashier notices, just laugh and say, “Mondays!”

Attend a Child’s Birthday Party

Interacting with children is a great way to practice talking to other human beings because kids don’t care about you or anything you say. When it’s time to open presents, the wild paper-tearing and screams of delight will awaken your hands’ craving for chaos. To prevent a Traumatic Event, ignite your behavior-correcting hand gasoline and burn your fists into submission. If any kids see, tell them you’re the real-life Human Torch. Flame on!

Make Sure You Recharge

It can be exhausting to go from indoor hermit to social butterfly, so make sure you set aside some alone time for yourself. Take your hands out of their special weighted mittens and set them free. Throw your bunny ceramics, tear some doors off their hinges, pick up the roaches in your kitchen, and rip them into confetti.

Remember, the most important thing is to be yourself — just not the self that stabbed that man in the alley. Your hands cannot afford another mess like that. Now get out there and make some friends!
Repeated String — HackerRank C++ Implementation
By: Abhishek Singh Thakur
Tags: Cpp, Hackerrank, Programming, Data Structures, Algorithms

Problem:

Lilah has a string, s , of lowercase English letters that she repeated infinitely many times.

Given an integer, n , find and print the number of letter a's in the first n letters of Lilah's infinite string.

For example, if the string s = 'abcac' and n = 10 , the substring we consider is , abcacabcac the first 10 characters of her infinite string. There are 4 occurrences of a in the substring.

Read the full problem here: Repeated String

Solution:

Let us consider that sub_str is the input string and str_len is the length of the infinite string we are considering.

When the str_len is less than the length of sub_str , we can easily calculate the number of a 's by iterating over the string.

Now, when the str_len is greater than the length of the sub_str length.

First, we will find the number of sub strings ( sub_str ) in the string we are considering.

In many cases, the size of combined sub strings is not the multiple of str_len , so few characters are left out and these characters may contain ' a '. We have to count these characters.

Now, we need to find the number of a’s in the sub_str . Let count will store number of a's in the sub_str .

Multiplying count with the num_sub_str will give us number of a's in the combined sub strings whose size is less than or equal to str_len and multiple of the size of sub_str . But there are few remaining characters whose count is stored in remaining_str_len . We have to find the occurrence of '*a8' in these characters and increment the count if it is found.

C++ Implementation on Programmercave

Other Competitive Programming Problems and Solutions

Picking Numbers

Library Fine
How to Reach Instagram’s Customer Support
By: Eduardo Morales
Tags: Facebook Marketing, Social Media Marketing, Small Business Marketing, Instagram Marketing, Instagram

And Last…

Contact the Facebook Business Support Team and submit your complaint. Currently, you can find their contact page here (if that link doesn’t work for you, you can try the Send Message icon through their FB page here), but if they change it in the future, you can also find it by Googling “Facebook Business Customer Service.” In it, you will find a chat option where you will be prompted to fill out a contact form for your complaint. Make sure to enter your ad account ID and mark Instagram when it comes to what your question is about. Be specific in describing the problem, clarify that it is regarding your Instagram page only, and click “Start Chat.”

Once you’ve submitted your claim, they usually respond through your Facebook Chat within 24 hours.

It’s a shame that Instagram places such high barriers of entry for their users to be able to complain about real issues they have on their platform, but it’s a reality and we have to work around it. This is one way to do it.

Hope it helps!

Oh, and if you’re interested in more articles about how your Instagram growth, read my others pieces on how to grow your Instagram, how to know if your Instagram is worth growing, the best Instagram bot that’s keep your account safe, everything you need to know about Instagram hashtags, the best Instagram content scheduling tools, how I make money on Instagram, how the Instagram algorithm works, how to check if you’re shadowbanned, how to create a repost account, how to pick the right Instagram username, Instagram bots in 2020, TikTok Bots, how to write an Instagram bio, how to increase your Instagram engagement, why you’re losing Instagram followers and how to fix it, how to create a visually appealing grid layout, as well as how to find the most valuable influencers on Instagram, how to measure what an influencer is worth, how to reach out to influencers, and how to measure your influencer marketing ROI.

Thanks so much for taking the time to read my article! If you enjoyed it, you can support me by signing up to my Instagram Small Business class, sharing this article and giving it a bunch of claps. You can also follow me on Instagram to get updates whenever I publish a new piece ❤
5 More Tips for Mobile App Design
By: Design Studio
Tags: Customer Engagement, Customer Experience, UX Design, Mobile Design, UI Design

1. Leave the graphic designer behind

One of the main problems why a mobile application looks great but leaves behind a poor user experience is because it has been designed by a graphic designer or a somebody who calls themselves a UX/UI designer but is actually a graphic designer in their mind.

And it’s not the fault of the designer who designed the application but of the community who fail to understand that the job role or the thought-processing of a graphic designer is not the same as that of a UX/UI designer.

While both have to work hard in their respective fields, the skills needed for both fields are different. One has to learn the skills of the other in order to understand their job.

So, if you are a graphic designer turned UX/UI designer or have hired somebody similar, the first thing you should request of your “graphic” designer is, “Please sit back, relax and do not interfere in my UX design. I’ll call you later when you’re needed.”

Yes, that’s exactly how it should be. A graphic designer tends to make things pretty. It’s not bad; it’s just that it’s not how a mobile application design works. In an application design. It’s always usability over aesthetics. So, use the logical mind all along, and at the end when you are brushing things up to make the interface look attractive, that is the best time to bring in the graphic designer.
Augur REP Token Critical Vulnerability Disclosure
Tags: Blockchain, Ethereum, Security, Augur, Audit

Two weeks ago, we finished our audit of the Serpent compiler and sent it privately to the Augur team. We found the Serpent project to be of very low quality, with 8 critical severity vulnerabilities.

A few days later, we found one of those critical vulnerabilities affected the production REP token. In a nutshell, an out-of-bounds write on the token’s reputation array allowed an attacker to modify the creation timestamp, making it believe the crowdsale was still ongoing, and disabling all token transfers. This critical severity vulnerability, if exploited, could have halted the whole REP economy, worth over $200 million.

The Complete Story

We contacted the Augur team on July 13th 2017 to privately notify them about the issue. It is important to note that the critical vulnerability was in the Serpent compiler’s code, not in Augur’s code. We proposed a mitigation plan to reduce damages to the Augur project, which was accepted by their team. It included:

1- Writing a new REP smart contract in Solidity, based on OpenZeppelin’s reusable components.

2- Auditing the new REP token contract.

3- Disclosing to exchanges and wallet providers on July 24th 2017, 25 hours before public disclosure.

4- Deploying the new REP token contract to the Ethereum blockchain.

5- Freezing the old REP token (by exploiting the vulnerability ourselves) on July 25th 2017.

6- Migrating the balances of the frozen REP token into the new REP token.

The new token was developed by the Augur team using OpenZeppelin, and audited by the Zeppelin Solutions team. Deployment, migration and related scripts were also audited by the Zeppelin Solutions team.

REP Vulnerability Explained

To understand how the old REP token could be frozen, we first need to understand the Serpent critical severity vulnerabilities used in the attack.

First, Serpent contracts can overwrite storage locations when accessing arrays out of bounds. This means that if a Serpent contract attempts to access an array at a position greater than the array’s length, Serpent won’t stop it.

Second, the Serpent language is untyped. It allows any operation to be performed on any data. Every value is a 256-bit sequence which can be used as an address, a contract, an integer, or an array. Moreover, it performs no checks on the data sent by a user on a transaction.

This got us thinking if there was a way to force the REP contract to overwrite a storage location by sending unexpected data in one of its function parameters. Turns out there is.

Here’s the old REP token contract source code in case you want to guess how the attack works yourself with the information given so far.
June Cryptocurrency Bloodbath Analysis
By: Drew Boswell
Tags: Blockchain, Ethereum, Chainfund Report, Bitcoin, Cryptocurrency

Originally written by fund manager and founder Yann Quelenn. Chainfund Reports are communicated to investors prior to publication on Medium.

The Chainfund Report 13/06/2018

13.06.2018 Share Prices — Extreme: $122.18, Dynamic: $102.51

The market is now in a complete free-fall with some investors panicking and selling all their bags. Rumours said that the strong decline was due because of the hack of Coinrail, a south-Korean exchange. $40 million have been stolen. It is being said that this has triggered fears amongst the crypto world and would explain the massive dump.

I don’t believe the Coinrail hack is the reason of the bloody Sunday that we have faced. How would that be possible that the hack of a small exchange — that actually no one knew about before last weekend — could have such a negative impact on crypto prices?

If this would be possible, the contrary should be also possible. However, over the last 6 months, Waltonchain for example has multiplied partnerships and those very important news have barely pushed the WTC price any higher.

It is then likely that the current bloodbath is due to something else. And this may be because of the coming regulations.

Investigation into Market Manipulation

The start of an explanation: The CME (Chicago Mercantile Exchange) has recently asked four exchanges to provide their trading data related to future contracts. Some crypto exchanges refused to do so and stated that the request was “too intrusive”.

It is not forbidden to think that the BTC dump is a consequence of some exchanges hiding their market manipulations as they now feel pressure of the regulator. As a result we may expect that better regulations would likely prevent or at least diminish those manipulations (Libor manipulations is anyway a good counterexample). People say “Buy the dips” maybe that would be better to say “Buy the coming regulations”.

Smells like the 2014 dump

In addition, such a dump has already occurred in 2014 in the crypto space. I persist to say the situation is not dramatic, not even close, as we are still on par regarding the growth of the overall market over the last two years.

Top exchange business is booming

It is also worth noticing that the overall number of users of Binance has quadrupled since January. https://www.ccn.com/binance-has-quadrupled-its-user-base-since-january-will-launch-eur-pairs/ The daily volume of the exchange is $1.4 billion. On top of that we learn that Binance is also entering the venture capitalism market by unlocking $1 billion to be invested in start-ups projects within the next years.

Times are definitely good to enter the market while many investors are now turning fearful ready to sell their bags. Having a long-term view on this asset class is fundamental to not be disturbed by volatilities and manipulations which can be very strong.

Talk to you next week,

Yann Quelenn
Freckles
By: Leticia Estevez
Tags: Love, Short Story, Poetry, Lovestory

In the morning, he used to count every freckle on my face and body, just to be sure I still had them all.

Photo by Mink Mingle on Unsplash
Let’s Be The Fireflies
By: Vaghawan Ojha
Tags: Poetry, Life, Fiction, Death, Poetry On Medium

Let’s not see back,

All the cynicism, the mourns, the griefs, the cries, the lives and the panic of foretold death,

Neither the beauty that lies in the world’s ocean,

We shall fly and fly like the bubbles with the infinite ages,

And boundless destinies,

Let’s explore beyond the constellation,

And find the universe of our own,

Then we shall laugh at the mirth,

Which forms the world,

As we sit in the shade of cadaver of our own;

And let’s renounce “We found our own world”

The world of innocence, the world of love,

The world of death, which rather is more lively

Than the world of lives and breath.
How I learned to live with Cognitive Dissonance
By: Jesse Wilson
Tags: Self Improvement, Mental Health, Poetry, Life Lessons, Psychology

How I learned to live with Cognitive Dissonance

An idea on how you could

Photo by Aarón Blanco Tejedor on Unsplash

Cognitive dissonance has me in a spin,

two opposing thoughts.

I question who’s going to win.

So I let logic and reason slowly creep in,

and bingo, one of them is subdued.

Oh no, but what’s that now knocking at my door?

It’s anxiety and anguish returning from their tour.

Their gifts unwelcome fill my headspace,

so I call out for calmness and serenity

to take their place.

It takes a long time for them to arrive

but first comes acceptance,

and gradually I begin to thrive.

So the next time cognitive dissonance

has me in its grips,

I am going to bypass logic and reason,

just for kicks.
The Three Best Stories I Read in the Last Week
By: Jonny Mccormick
Tags: Medium, Top 3, Best Of, Blogging, Reading

In the past week here are the three stories that spoke to me most:

Scope creep, and how to deal with it

In this piece by Sheryl Garratt she highlights how to deal with clients who are pushing teh boundaries of what you had agreed to deliver for them. As a small business owner this story spoke straight to my soul. Sheryl offers six tips for how to manage the issue of scope creep.

At the crux of this issue, though, is the fact that in many cases clients don’t actually understand the extent of the extra work they’re asking you to do.

The post was published in The Startup and can be found at:

Game Theory: A Unique Strategy To Deliver Brexit At Last?

This story comes from Darren Matthews and is in the brand new UK Politics Today publication edited by Christopher Oldcorn.

In this piece Darren relates the UK Brexit predicament to a classic case of Game Theory. It’s a thoughtful, considered piece and well worth checking out:

A Lesson for Success: Money and Cats

This post is from Leo Serafico and talks about the relationship between chasing money and chasing cats. In short, if you try and chase either it usually doesn’t end well.

I don’t want to spoil the piece but it’s worth checking out:
Balancing in Chaos
By: Stephenie Zamora
Tags: Happiness, Purpose, Grief, Life Lessons, PTSD

Everything is always expanding.

Creativity. Love. Trust. Faith. Knowledge.

Everyone is always growing and changing.

Opening. Learning. Creating. Becoming.

Everything is always ending.

Expiring. Breaking. Moving. Dying.

Life is never set in stone.

It will never be consistent or dependable.

I don’t care how many structures or routines you put in place, it will all change… sometimes in an instant. And the more tightly you grip onto the pieces you believe bring you balance, the harder you’re going to crash when it inevitably falls away.

The trick is learning how to balance on the summit of Mt. Chaos. To be quick, nimble, and trusting in your own self… your own mind and body. While we’re wired to fear change, we’re also hard coded to adapt. We’re designed to survive. To find a way. To persevere when things are most challenging. To fight against the current that tries to drag us under.

So when the ground shifts beneath your feet, trust that part of yourself that’s wired to move. To pivot. To adapt. Trust that part that’s designed to keep you alive, and learn to shift with the ground as it moves beneath you. To find a new center when the one that held you upright is no longer there.

Everything is always changing.Even when things appear to be still.

Especially when you begin counting on things as certain.

Learn to uproot yourself when your foundation falls away.

Learn to fly, floating just above the surface until it’s time to land.

And trust that you’ll know when it’s time to land, as well as where.

You’re far wiser than you give yourself credit for.
The Art of Writing
By: Priyanka Srivastava
Tags: Poetry, Never Ending Poem, Writing, Writers On Writing, Forgiveness

The Art of Writing

a poem based on never ending prompt challenge

Photo by Lina Trochez on Unsplash

The art of writing

will teach you

to forgive and forget.

That’s the only way

we poet’s find light

in the sea of darkness.

We write and burn

with time

we become love itself.

This poem is inspired by the prompt Forgiveness by Gita Das, you can read her poem here.

Not tagging anyone leaving you all with prompt Paper, if inspired to write do tag me.
Tree-watching (Your gaze)
Tags: Trees, Growth, Introvert, Anger, Poetry On Medium

Tree-watching (Your gaze)

Young Minds of Medium Anger Call

Photo taken by myself in Central, Hong Kong’s central business district. In September 2018, one of the most intense typhoons on record hit the city. Damaged tree trunks like this are common sights since then. Have people forgotten about them already?

Little did you know what it’s like to be naked. I stood in front of you unclothed, raw and profoundly vulnerable. Any passers-by could see through my put-together feelings as self-fashioning, like continents forming a map which you think can trace back to my beginnings.

I absorbed the air that you exhaled, and you inhaled the air that I exuded. It’s the least I could do, but you never said anything.

I wonder if my nakedness made me feel desired or unwanted, if it made me feel exposed or protected. But above all—I want to know if my nakedness was at all beautiful to you?

But you never said anything.
TLDR Decrypting PgBouncer’s Diagnostic Information by Ivan Vergiliev
By: Pavel Trukhanov
Tags: DevOps, Postgres, Database Administration, Database, Postgresql

Some definitions first:

pool – a set of connections to the same database for a given user.

– a set of connections to the same database for a given user. client connection – a connection from some client to PgBouncer .

– a connection from some . server connection – a connection from PgBouncer to Postgres.

Client Connections monitoring

They can be in one of 4 states: active, used, waiting or idle.

SHOW POOLS reports only two most important (from admin PoV) ones:

CL_ACTIVE – is an established client connection. Some clients are EXECUTING queries, but others may not be.

– is an established client connection. Some clients are queries, but others may not be. CL_WAITING — a client is waiting for a server connection to be available — either to be created (if pool_size and limits allow) or for other client to release a connection.

Ops/admin conclusions:

High cl_active is not a problem .

. High cl_waiting is a problem. If it’s high for long time, there are constantly more clients trying to run queries in PG than limits allow.

Server Connections monitoring