fabiochiu/medium-articles huggingface dataset:
Creating an Expandable Button in Swift
By: Ale Patrón
Tags: Swift, Programming, iOS, Swift Programming, iOS App Development

We’re going to build a custom expandable button in Swift, like the one below:

Expandable button

First off, it’s important to understand the view structure that is necessary to implement a component like this one.

We will create a subclass of UIView that will be composed of 5 subviews like so:

A containerStackView that will hold the menuButton and the expandedStackView A menuButton that, when tapped, will handle the expanding animation An expandedStackView that will be shown or hidden when the menuButton is tapped A dogButton that will be part of the expandedStackView A catButton that will also be part of the expandedStackView

Button Panel View Structure. The arrow signals the stack view that will be shown and hidden to emulate the expand and collapse animations, respectively.

Creating our custom UIView

Let’s start by setting up our view, which we will call ButtonPanelView . We will first create 3 instances of UIButton and 2 instances of UIStackView .

We will add dogButton and catButton as arranged subviews of expandedStackView . We will then add expandedStackView and menuButton as arranged subviews of containerStackView .

We can do some view styling (e.g. add color and shadows) as well as add any necessary constraints when the ButtonPanelView is initialized.

Animation

The animation itself is very simple; every time the menu button is tapped, we will flip the isHidden state of the expandedStackView ’s subviews (i.e. dogButton and catButton ) and of the expandedStackView itself, using UIKit ’s UIView.animate method.

We can also make some simple modifications to our animation code in handleTogglePanelButtonTapped so that the ➕ emoji changes to ❌ when the panel is expanded, and vice versa when collapsed.

Expandable button

Here’s the final implementation of our ButtonPanelView class:

Thanks for reading! You can find a full demo of the expandable button on GitHub.
La reconnaissance d’image pour tous (les développeurs) ?
By: Patrice Bonfy
Tags: AI, Inspiration, Artificial Intelligence, F8, Computer Vision

We explore promising technologies and exciting business opportunities to uncover new ideas and give them attention, work, and ressources

Follow
Liquid Percussion with Trimpin
By: Matthias Hacksteiner
Tags: Music, Audio

“Another piece by Trimpin in which drops of water, timed in complex rhythmic fugues, drip into plastic buckets & glass jars. The water falls from midi-controlled fruit juice dispensers to create precise rhythms & velocities. The water is infused with a glow-in-the-dark dye to make it more visible.

Other images: from Trimpin’s residency at the University of Michigan’s School of Art & Design.

http://playgallery.org/features/525/"
The Role of Open Source and Open Data in Responsible Data Stewardship
By: Andrew Young
Tags: Data Collaborative, Open Data, Data Stewards, Data

Data stewards across industries have used a wide array of operational and technical means to enable responsible re-use of private-sector data and to create public value through the creation of data collaboratives. A key function of data stewardship, in fact, involves identifying a fit-for-purpose approach for partnership and community engagement.

Some data collaboratives are highly cooperative and maintain restrictive data access controls—the Gender Gaps in Urban Mobility project launched by The GovLab, UNICEF, Universidad del Desarrollo, Telefónica R&D Center, ISI Foundation, and DigitalGlobe with support from Data2X, is one such example. Among other datasets, that project leveraged call detail records (CDRs) that were analyzed in a secure environment by specific, pre-selected partners. This approach was the most responsible and feasible pathway to gain insight into the gendered aspects of urban mobility in Santiago, Chile, and to assess how those insights could inform more inclusive urban planning.

Other data collaboratives are built on less sensitive data and do not require equally restrictive data access controls. A recent post from Hal Varian, Google’s Chief Economist, reflects on these more open approaches available to data stewards for unlocking the public value of their company’s private-sector data. Varian specifically describes Google’s efforts to make its research, data, and code as “universally accessible and useful” as possible.

From the post, Open Source and Open Data:

“There’s currently an ongoing debate about the value of data and whether internet companies should do more to share their data with others. At Google we’ve long believed that open data and open source are good not only for us and our industry, but also benefit the world at large.

Our commitment to open source and open data has led us to share datasets, services and software with everyone. For example, Google released the Open Images dataset of 36.5 million images containing nearly 20,000 categories of human-labeled objects. With this data, computer vision researchers can train image recognition systems. Similarly, the millions of annotated videos in the YouTube-8M collection can be used to train video recognition.”

Read more here.
How to Get What You Want From Scene Negotiation
By: Tess Dagger
Tags: Psychology, Advice, BDSM, Kink, Sexuality

Be experience inclusive rather than experience exclusive

The number of times people have come to me to negotiate and started out the gate with, I don’t do blood or needles, has been jarring. A quick scan of my Fetlife profile will give an understandable reason why — most of my pictures are bloody or have something shoved into my skin somewhere. I enjoy it greatly, but it’s not the only way I play.

Already, the idea that we have to find out exactly what we must exclude from play feels like I’ll forever be treading on the eggshells of another’s hard limits. There are good reasons to cite hard limits — in the throes of something hot, one may accidentally do something they find sexy that triggers another person and shuts off the scene entirely. This has happened to me before, and others I know as well.

However, I’ve found that I’ve had a 100% success rate negotiating scenes where my partner and I have discussed the things we’re excited to try first, and find the intersections of our excitement before we listed the hard limits. The key was that we were both holding these intersections in our minds as we played, and we didn’t feel the need to stray outside of them. Why push the limits when we already knew what would make a streamlined scene between two people? We would become so engrossed in what we were doing, we didn’t feel the need to add anything on top of that. And that’s ok.

In the instances where we couldn’t hold all that information at once, we used a whiteboard system. Hard limits were written on the board under our names, and a glance was the only reminder we needed to make sure we weren’t about to cross a line.

Inclusivity also builds the idea that the play is sexy and wanted, rather than the feeling that you’re about to enter a precarious situation. Would you rather your partner be hot and bothered for what you’re about to do, or nervous about all the lines they could potentially cross with you?

I am not saying that you should not discuss hard limits or be concerned about crossing the limits of your partner. Of course, you should be discussing these things, but, the tone and emphasis can make a great deal of impact on how you negotiate, and that can carry over into how you play.
Three Things To Try Instead Of Going On A Diet
By: Tosin Sanusi
Tags: Health, Editors Pick, Feminism, Food, Self

Three Things To Try Instead Of Going On A Diet

Healthy bodies are loved not deprived

Photo credit: Diogenes Sousa on Pexels

Disclaimer: The information provided in the following article is for educational purposes only. Please do not mistake this for medical advice.

Now that I’m home more than ever before, it’s harder to get my steps in. Thank God for this embarrassing habit of walking around the apartment listening to music through my headphones. Otherwise, I would probably never move. Pair that with the fact that there are snacks all around me (Jesse and I tear up the grocery store) and the fact that I’ve been feeling stressed (more compelled to devour aforementioned snacks) … I don’t feel my healthiest.

It’s nothing too crazy. I don’t hate my body (anymore) but that toxic little alarm in my head is going off. It’s the one that pokes at me when things fit just a bit tighter or the twin sisters are rubbing together more than usual with walking. On one hand, I welcome the extra softness and even enjoy shaking it around when I’m alone. On the other hand, controlling my appearance through strict diet restrictions gave me a twisted sense of accomplishment at one time and in brief moments, I feel tempted to start dieting again.

Whether or not you’ve struggled with maintaining a healthy weight, you’ve probably experienced pressure to diet. I remember being shocked in Doctor Lubel’s office where he told me I was about five pounds underweight during a checkup at age sixteen. I wanted to lose double that.

For me, eating healthily (which meant eating less) and exercising had nothing to do with leading a healthy lifestyle and everything to do with a twenty-four-inch waistline. Even though I knew I would never look like the girls on my thinspiration page, I liked the subconscious pat on the back that came with trying to get there anyway.

“A culture fixated on female thinness is not an obsession about female beauty, but an obsession about female obedience. Dieting is the most potent political sedative in women’s history; a quietly mad population is a tractable one.” — Naomi Wolf, The Beuty Myth

The misery of self-deprivation seemed bearable until I inevitably lost the motivation to count calories, abstain from my favorite foods, and obsess over carbs. A couple of years ago, I dumped dieting after realizing I dealt with my body from a place of punishment and hatred and that corporations are waiting open-mouthed to capitalize on my self-loathing.

It was depressing to feel a pang of guilt with every meal that didn’t look like a cornucopia of superfood. A change was long overdue but the change would not come in the form of a new weight loss program. A complete mental and emotional shift regarding food began.
Color Platform White Paper Published!
By: Color Platform
Tags: Color Platform, Blockchain, Cryptocurrency, Ethereum, Bitcoin

Scalability of Colorchain dApp

The Color Platform white paper is published! The Color Platform was designed with the slogan “Colorful dApp Store”. The Color Platform provides the Color Development Kit (CDK) to enable the easy development of blockchain services. The CDK makes it easy to develop dApps and Smart Contracts, thereby reducing overall development costs. The Color Platform is developing more than 10 Mega DApps including Color Legal, Color Medical, and Color TV. Color dApps will use a single unified cryptocurrency COL that aims to provide collective synergy to the platform.

How to Make Consensus Using PUF-based PureChain Consensus Engine

The Colorchain is also a hybrid blockchain that combines software and hardware. Traditional blockchains have been characterized by slow transaction speeds and poor scalability. To solve this problem, Colorchain has adopted Peer-to-Peer transactions and cryptographically secured PUF Chips. By avoiding third-party intervention, P2P will enable transaction speed is as fast as Visa or MasterCard.The PUF Chip acts as a “digital fingerprint” generated during the manufacturing process.

Pixel Program Process

The Color Platform also utilizes the “Pixel Program” to ensure fair distribution of Color Coins. Decentralized technology is becoming controlled by a centralized minority and is treading the same path of centralized fiat currency. Pixels utilizes a conditional distribution mechanism that promotes the distribution of Color Coins to other individuals. The Pixel Program addresses the unfair distribution of wealth, but also for giving organizations, voluntary organizations, and startups.

Download Whitepaper

Have a Colorful Day :)

Join the Chatroom to Learn More!
Dear 2010 self.
By: Tracy Nguyen
Tags: Life Lessons, Friendship, Self-awareness, Reflections, Self

Dear younger me,

I’ll start by saying that you’ve done well.

I haven’t yet completed university but you are close.

You went to a new school and have adapted well. Through the years you have made new friends and lost them throughout school. It will be the same when you finish school when you realise only a few people matter.

My advice is to cherish your friendships.

Be good to your friends especially the ones close to you. There will be hardships especially when you’re trying to fit in. Don’t get too into gossip because it has caused some issues in some years.

Be kind, never forget that.

You just celebrated 10 years with a close friend unexpectedly. It happened when you randomly met and gatecrashed her date (not really but they invited you to join).

You will become more talkative just wait for the day you meet a certain girl at the bus stop where you ultimately become the best of friends a year later. She has allowed you to be more proactive in conversations and widen your friendship circle.

Oh yeah, that boy you liked in year 5, you end up being good friends with him through to year 12. You even had two classes with him, he is a great person. Don’t stress about love and relationships, continue having crushes. I only say this because yours truly is still single and has yet to mingle.
Seberapa Cocok Keahlian Frontend atau Backend di Level Junior hingga senior? Kamu Harus Coba Tes Ini!
By: Alterra Academy Writer
Tags: Tech Skills, Alterra Academy, Recruiters, Front End Development, Backend Development

Alterra Academy is a tech talent incubator that gives everyone (even non-IT background) a chance to be a professional Tech Talent.

Follow
Building a Simple Website using Go-Template in Easy Way
By: Roberto Tambunan
Tags: Coronavirus, Website, Go, Software Development

Create Function to Fetch API

For the first step, we need to create a function to fetch the data from the API. It is and simple task, especially if you use Go as your main programming language.

After fetching the data, what we need to do is mapping them to a struct, so we can use the data later.

Map API response to Struct

There were several steps more in this part, such as, I don’t want to hit the API in every request that I receive. Instead, I use cron to hit the API to update the data every 10 minutes.

Create the Template

In this step, we need to know at least how to use HTML, CSS, and Javascript (if you need one). This template below is basically an HTML script, combined with CSS, depends on your website design.

Go Template — Example

By using a template, obviously we want to show content, so the user can receive things that we want to deliver. Because of that, we need to bind the template with the data structure from which we’ll obtain the data. To obtain the data from a struct, we can use the {{ .FieldName }} action, which will replace it with FieldName the value of given struct, on parse time. You can learn more about the template in Gopher Academy Blog.

Connect Struct and Template

There are 3 functions that usually used to parse the template,

New — Allocates a new template.

Parse — The template that you use, this function.

ParseFile —Basically the same with Parse, but written in a different file.

Must — Verify that a template is valid during parsing.

Execute — To execute the templates, inject the struct to templates, and write the result to given writer

In our case, we have already had coronavirus information data that stored using AttributeNationData struct and we have already written the template. Then what we need to do is connect them.

This is what it looks like now

In the above script, we inject AllData struct to the template. AllData struct has a slice of AttributeNationData struct inside it. Please go back to Create the Template section and take a look at the template once more, and how it handles the struct of data.

For more details, you can visit my GitHub — https://github.com/robertotambunan/corona-indonesia. Don’t expect the code to be tidy, because this was a sudden idea 😆. Please feel free to contribute if you feel there is something that needs to be added or modified to make it better. You can also see the live website here — http://corana-indonesia.herokuapp.com/
5 Great Unexpected Ways To Take Your Photography To The Next Level
By: The Art Of Photography
Tags: Photography, Creativity, Art

From “The Standouts” Series. Image by Josh S. Rose

The best way to increase your skill level in photography is to continue to learn it every day. Never assume you know everything and challenge yourself to look at the medium in new ways. I’ve been shooting since 1980 and today I get hired to do professional shoots regularly, but I still continually seek out new techniques and new ways of thinking about the medium. It keeps it all fresh and interesting to me and gets me out of my comfort zone.

My favorite photography advice is the kind that runs counter to the normal way people suggest doing things. Here’s a short list of techniques you might try that they won’t tell you about in the manual…

Ditch Your Auto Focus

Out on the street, things are moving fast and you have to be ready to get that moment quickly. To make it even harder, you not only have to get the action at exactly the right time, you have to compose. In that split second, you’re better off focusing in manual. Why? Because you can set it and largely forget it, whereas auto focus is an attention hog, constantly needling you to deal with it. This takes a teeny bit of attention off of composition and that can make all the difference in a shot. Also, auto focus just isn’t all-powerful.

Photo by Josh S. Rose, Los Angeles, 2015

For example, take a look at this image I took a few years back of a child in a public fountain. Auto focus has no way to deal with this situation. There’s foreground elements constantly in flux and messing with the camera’s AI. You might be able to lock down on the boy here, but you have to remember he’s moving, too. No, the only way to really nail this shot consistently is on manual. Find the plane the kid is on, focus and then spend the rest of the time just thinking about composition, not how to tell your camera what to shoot here.

Photo by Josh S. Rose, San Diego, 2015

There are other situations where auto focus really struggles: reflections are difficult, as are low contrast scenes and anything where your main focus falls outside your camera’s focus point area or within too small a space for your focus point to find it. Even in Sonys, where the focus area covers over 90% of the sensor, it can often take too long to get your focus point to the right spot when trying to shoot quickly.

In this shot below, taken of Mexico as seen from the United States, the small space the boy was playing in would have been near-impossible for an auto focus reticle to track consistently. Using manual focus here allowed me to not have to think about it at all. Focus and then forget about focusing and simply try to position and time correctly.
Baltimore Basilica
By: Haytham Ad-Din, The Photographic Muslim
Tags: Catholic, Photography, History, Christianity, Religion

With the Cathedral of Mary Our Queen, the Basilica serves as co-cathedral of the Archdiocese of Baltimore, which was created in 1789 and is the Premier See of the Roman Catholic Church in the United States. This distinction does not denote any status of primacy, but is a recognition of the socio-historical importance of the Archdiocese to Church development in the country. The Archdiocese is one of five American Dioceses that have two churches serving as cathedrals in the same city, the others being the Dioceses of Honolulu, Burlington, and Brooklyn, as well as the Archdiocese of Anchorage.
“Just Keep Swimming”
By: Kristin Demarr
Tags: Mental Illness, Life Lessons, Motivation, Anxiety, Depression

Photo by takahiro taguchi on Unsplash

“Just Keep Swimming”

When you have to keep going

The phrase, uttered by Dory in Finding Nemo becomes my daily, hourly mantra some days.

“Just Keep Swimming!”

Who am I kidding? Most days.

I have to keep going. I have no choice. I have four children that are counting on me.

Yes, dear reader, you are right that there is always a choice.

Giving up is a choice I am unwilling to make. Formally.

Informally, I give up so many times. Daily, and/or hourly.

Some days look like this:

I can do it! I can definitely do it! I can’t do this. Yes, you can do it! You have to do it! There is no one else who can do it for you. I can’t possibly do this. You HAVE to do it! OK, I can do this. Maybe. Maybe tomorrow.

Tomorrow is my favorite word. Today is always too overwhelming. Tomorrow sounds better. Tomorrow I will feel better. Tomorrow I will find some motivation. Tomorrow is my day, folks! I can do it tomorrow.

Guess what? The next day comes, and I say the same thing to myself.

I can do it tomorrow. I will get to it tomorrow.

It’s an endless loop.

An endless cycle of dysfunction that I don’t know how to break.

I try to make smaller lists. Lists of small manageable chunks of things I should be able to accomplish in a short amount of time, but even those small things can be overwhelming today. Tomorrow seems like it would be better.

It’s a delicate balance of treading water each day. I don’t even think I can call it swimming. Swimming implies forward motion. Progress. Swimming implies that you are going somewhere.

Photo by Gage Walker on Unsplash

When you are in the deep sea of depression, most days you can only force yourself to tread water. To do what is absolutely necessary. You do what you can do at that moment to get you to that next moment. You force yourself to do it because it has to be done.

The things that aren’t absolutely necessary can wait until tomorrow.

You have to work yourself back up to the point where you can “just keep swimming.”

Tell yourself to keep swimming until it works, and you take those first strokes. Those are the most important ones.

I may be ready to take a stroke today.

I’m going to try at least.

I need to do it today.

I can do it today.

Tell yourself loudly along with me:
Measuring the Value of Design Systems
By: Maya Hampton
Tags: Product Management, Front End Development, Design Systems, Systems Thinking, UX

If you work with design systems, here’s a scenario that may sound familiar:

You got buy-in to create a new design system, likely based on the promise of increasing the productivity of designers and front-end developers and improving speed to market.

You built a component library, UI toolkit, and documentation. You released the system “officially” and started sharing it with other product teams.

But as those who work on design systems know, building the system is only the start.

Adoption of the system is essential, but there are many adoption hurdles that must be managed across the teams intended to use the system, including prioritization, framework compatibility, and access to tools.

Even with mass adoption of system parts and pieces, the work on the system is not done — no digital system is ever really complete.

Like tending to a garden, systems are living and require constant care and feeding to really blossom.

Design patterns and brand aesthetics evolve, new accessibility guidelines are released, front-end frameworks are updated for better performance —so design systems must be adaptable, and be supported by a dedicated team to continue to grow and maintain the system.

To justify ongoing investment in your design system, you need to be able to demonstrate the value in a way that’s meaningful to the business.

And this is a perennial question I’ve come across while managing design systems: how do we measure the value and impact of the system?

We can measure the output of the team: the number of components created and shipped, the number of platforms supported, the number of tests run.

We can measure the adoption of the system: tracking component usage in Figma files and code repositories, and doing visual audits for consistent brand and UI elements.

These are great methods for tracking the health of a design system, and understanding what use cases it supports (and doesn’t support).

But there’s a big difference between delivering value, and just delivering stuff. A design system team can release a shiny new component, but if no one needs that component and it doesn’t get used, it just becomes one more thing to maintain.

And sometimes the value comes from not delivering at all. Reducing the number of component variants can make them more unified and easier to maintain. As system teams work to support multiple product teams, they also see where efforts are being duplicated and can encourage collaboration and reuse instead of endless one-off solutions.

So how do we know what is truly adding value, and how can we measure it?
Keep the Big Winners Coming!
Tags: Lottery, Bitcoin

Mahmoud at Jackpocket HQ taking a picture with the big check & collecting his $59,401 winning ticket!

Second winner of $50K or more in the past week wins $59,401 on free Take 5 ticket, setting the new Jackpocket prize record!

Big time winners keep rolling in! One week after giving out our first $50K prize, the record was broken again on Monday. A huge congrats go out to Mahmoud for winning the Take 5 grand prize earlier this week, collecting $59,401! Mahmoud won the Take 5 grand prize on a free play, the $59,401 prize now holds the new record for the biggest winner in Jackpocket history!

We had the pleasure to meet Mahmoud when he came to Jackpocket HQ and collected his winning ticket. Mahmoud first found out that he won when he received the winners ticket email Monday.

“I’m Very Happy and Excited” — Mahmoud on his recent winning ticket.

When asked how he would use the winnings, Mahmoud explained that he would use it on treatment for his mother, who was recently diagnosed with cancer. The entire Jackpocket Team would like to send our thoughts and best wishes to Mahmoud and his family, and hope for a healthy and full recovery.

Originally from Egypt, Mahmoud moved to the U.S. roughly a year ago to help his brother operate a Halal food truck in the community surrounding Queens Community College. Mahmoud first downloaded Jackpocket in August because he started working more hours and didn’t have time to keep making the trip to various bodegas. Now he enjoys playing his favorite NY lotteries conveniently right from his phone!

It’s certainly been an exciting past week for the Jackpocket Team with our two biggest winners in company history, combining for a total of $109K in winnings! Congrats to all of the recent winners, we hope to continue seeing even more down the road!

Read more about all our big winners and more by visiting our previous posts on the Jackpocket blog.

Note: Jackpocket is not currently live in New York, but we’re working with the New York Lottery to get up and running soon!
My Sadness
By: Dwight Washington
Tags: Poetry, Poems On Medium, Poet, Depression, Poem

Poem About Depression

Why do I feel like I am falling under the spell of depression,

I do not think I am due for confession,

It may be from this constant self reflection.

Why is my life filled with so many sorrows and regrets,

I bet God refuses to let me forget.

My memories are like parasites on my soul,

Which is always taking a continuous toll.

As I walk down this dark lonely path,

I am forced to do the math.

Either crawl in a corner with a bottle and mope,

Or start to climb this emotional slope.

The odds against me are great,

But a better self defense I am forced to create.

So stand beside me during this monumental task,

And just maybe I will be a able to remove this depressing mask.
Delphy Weekly Progress Updates — Dec 19th, 2018
By: Ada Gao
Tags: Blockchain, Cryptocurrency, Prediction Markets, Ethereum

Marketing Updates:

Recently, Delphy has reached alliance with TokenWorld, the purpose is to jointly promote Delphy and expand our community. (TokenWorld is a community member gathering platform, connected by KOL, and the ultimate goal is to build up a community of consensus creation and value delivery.)

Last week, there are total 59 markets initiated for “Winners Get All” module, and total participation reached 1,039. The average number of participants of each market is 18, and there are 39 attendees for the most popular market. The highest rewarding pool reached 1,336 DPYs.

The eighth round of “Winner Winner Chicken Dinner” module has started. There are total 18 attendees, and the rewarding pool is as big as 610 DPYs. Till now, there are 11 suvivors are waiting for the last 2 markets. Who will be the final winner(s)?

Product Updates:

Completed the make of optimization of buy speed in “Winner Winner Chicken Dinner” module and synchronized the code library

Completed the make of different level permission at back end

Scheduled the walkthrough of cache features

Debugged the error monitoring module

Plan of the Week:

Finish design the framework with low coupling functionality and start coding

Design the cache features optimization solution

Optimize the abnormal module storage efficiency in the code library

Thank you for your continuous upport!

About Delphy

A Decentralized mobile social platform for prediction markets. Delphy is a decentralized, mobile prediction market platform built on Ethereum. The Delphy App is a light Ethereum node running on mobile devices. Delphy uses market incentives to allow participants in a market to communicate, instantly and transparently, their wisdom regarding the outcome of upcoming events, effectively predicting the future.

These are our official social platforms:

Telegram Ann: https://t.me/DelphyANN

Telegram Chat: https://t.me/DelphyCHAT

Twitter: https://twitter.com/Delphy_org

Medium: https://medium.com/delphy

Facebook: https://www.facebook.com/Delphyfoundation/

Discord: https://discord.gg/gjWaS5M

Instagram: https://www.instagram.com/delphy_org/

Bitcointalk: https://bitcointalk.org/index.php?topic=2046622.0

Reddit: https://www.reddit.com/r/Delphy/

The Delphy Team
7 Things You Should Never Do in the Morning
By: Sinem Günel
Tags: Health, Morning, Advice, Self Improvement, Personal Growth

Planning Your Day

If you fail to plan, you’ll also fail to execute. But if you spend the first minutes of your day planning your schedule, you’ll waste enormous amounts of precious energy on that repetitive task.

“Write a to-do list to stay organized” is common productivity advice, but what most people overlook is that you’re too late if you set up your to-do list in the morning.

Yes, being organized is the key to a fulfilled life, but you shouldn’t get organized first thing in the morning.

Your plans should be ready when you get up.

Otherwise, you’ll spend mental energy on prioritizing your tasks and lack that mental power when it comes to doing all these things.

Waking up to a concrete plan for the day will help you be clearer about what you want to achieve and how to get it, but it will also allow you to focus more easily.

What to do instead:

If you want to make the most out of each day, set your priorities before going to bed.

When you wake up, your daily schedule and plan should be ready and waiting for you to tick off your to-dos.

Don’t allow yourself to feel overwhelmed in the early hours of your day. Instead, be well-prepared and set your priorities in the evening.

There’s no better feeling than going to bed knowing that you’re well prepared to tackle the next day.

And when planning your daily schedule and tasks, make sure to keep it to a minimum: Your schedule shouldn’t contain more than a few important tasks per day.

I organize my daily schedule with a simple tool called Todoist and make sure to have no more than 3–5 prioritized tasks per day.

Whenever I tried to get more big tasks done in a day, I ended up feeling overwhelmed and overstressed. This number obviously depends on the tasks you want to get done and can vary depending on your projects but on average, a maximum of 3–5 priorities is a good start.
スイスの金融局FINMAからノーアクション・レターを受け取りました
By: Icovo Ag
Tags: ICO, Finance, Japanese, Switzerland

in Both Sides of the Table
Things You Can Take
By: Marty De Jonge
Tags: Writing, Poetry, The Bad Influence, Things, 100wordstory

A name. A message. Nobody’s shit. A hike. A hit. A beating.

Notes. A page from their book. Criticism.

A walk on the wild side. Ice with your drink. Salt with your margarita. A sip. Directions. Risks. A joy ride. The red pill. The car into the shop.

What you can get. The money and run. The long way home. The trash out.

A seat. Time off. An oath. Turns. The rap for it. It all in.

A break. Everything for granted. A moment to think about it. A different route. It all back. A life. Your life. A joke.

Marty de Jonge
“Victoria Gotti: My Father’s Daughter” by Catherine Cyran (2019)
By: Rene Hirsch
Tags: True Story, USA, Catherine Cyran, Movies Directed By Women, Biography

(mediocre) Movies directed by women

2019 was a good year!

Nothing to write home about

The story is good but it’s not enough

Adding Victoria Gotti herself as narrator brings an interesting twist in the beginning but it quickly becomes boring

IMDB 5,5

Cast: Zoey Siewert, Maurice Benard, Chelsea Frei

Director: Catherine Cyran

Writers: David Schneiderman

based on the book by Victoria Gotti

Music by Brian Chan, Caleb Chan
A simple explanation of how blockchain works
By: Paul Dughi
Tags: Digital, Tech, Blockchain, Network, Bitcoin

Blockchain is the technology the underpins digital currency (Bitcoin, Litecoin, Ethereum, and the like). The tech allows digital information to be distributed, but not copied. That means each individual piece of data can only have one owner.

You may hear it described as a “digital ledger” stored in a distributed network. Blockgeeks has a good analogy to help understand how Blockchain works:

“Picture a spreadsheet that is duplicated thousands of times across a network of computers. Then imagine that this network is designed to regularly update this spreadsheet and you have a basic understanding of the blockchain.”

The information is constantly reconciled into the database, which is stored in multiple locations and updated instantly. That means the records are public and verifiable. Since there’s no central location, it harder to hack since the info exists simultaneously in millions of places.

Blockchain technology was invented in 2008, but only came into the public conversation when Bitcoin launched.

Why Is It Called Blockchain?

A block is record of a new transactions. When a block is completed, it’s added to the chain. Bitcoin owners have the private password (a complex key) to an address on the chain, which is where their ownership is recorded. Crypto-currency proponents like the distributed storage without a middle man — you don’t need a bank to verify the transfer of money or take a cut of the transaction.

William Mougayar, author of The Business Blockchain, described it this way:

Imagine two entities (eg banks) that need to update their own user account balances when there is a request to transfer money from one customer to another. They need to spend a tremendous (and costly) amount of time and effort for coordination, synchronization, messaging and checking to ensure that each transaction happens exactly as it should. Typically, the money being transferred is held by the originator until it can be confirmed that it was received by the recipient. With the blockchain, a single ledger of transaction entries that both parties have access to can simplify the coordination and validation efforts because there is always a single version of records, not two disparate databases.

Blockchain is going to be used for more than just currency and transactions. To give you an idea of how seriously it’s been studied and adopted, IBM has 1,000 employees working on blockchain-powered projects. They’ve also set aside $200 million for development. Financial and tech firms invested an estimate $1.4 billion dollars in blockchain in 2016 with an increase to $2.1 billion dollars in 2018.
深夜小報 伍號刊
By: Lumyth Kao
Tags: Mentorship, User Experience, UX Design, Product Design, UX

We are four passionate UXers from Taiwan, working across Asia and the U.S. We share our insights and work experiences to the community. UX四神湯是四位臺灣清華畢業的UX海外工作者所建立的內容平台，每週定期發布文章。內容涵蓋中美的工作環境與生活體驗、互聯網巨頭與新創公司的工作內容、設計趨勢、UX實務技能分享等

Follow
Long Before Mosul Offensive, U.S. Spooks Worried About Chemical Weapons
By: Joseph Trevithick
Tags: Chemical Weapons, FOIA, Wmd, Wib Front, Islamic State

Long Before Mosul Offensive, U.S. Spooks Worried About Chemical Weapons

Concerns and fears may still be slowing operations

by JOSEPH TREVITHICK

On Jan. 22, 2017, Iraqi troops were looking for help cleaning up an apparent chemical weapon laboratory that Islamic State terrorists set up inside Mosul University, according to Stars and Stripes. Later in January, Baghdad’s troops showed journalists from the Associated Press another chemical warfare site in the eastern half of the city.

U.S. Air Force intelligence summaries show American officials had worried about these toxic materials for months before Iraqi and Kurdish forces began the offensive. War Is Boring obtained the heavily redacted documents through the Freedom of Information Act.

“ISIL will probably continue to employ chemical weapons as a force multiplier and to exploit the weapon’s psychological impact,” intelligence analysts at the Coalition Intelligence Fusion Cell wrote in May 2016, using a common acronym for Islamic State. “Nevertheless ISIL chemically modified munitions are unlikely to be very effective due to distance from production centers, inadequate storage and poor quality material.”

Situated within the U.S.-led Combined Air and Space Operations Center at Al Udeid Air Base in Qatar, the cell includes American and other coalition personnel. Based on the records we received, the group puts out at least one comprehensive intelligence summary every week.

More than four months later, concerns and fears about deadly chemicals might be one of many factors slowing efforts to finally eject the extremists from their de facto capital in Iraq.

When Iraqi and Kurdish troops moved into Mosul in October 2016, Islamic State had already shown it was ready and willing to use chemical weapons. The next month, information analytics company IHS Markit released a report compiling data on more than 50 reported chemical attacks the terrorists had launched since 2014.
Time
By: Giulia De Gregorio Listo
Tags: Writing, Mental Health, Poetry, Love, Life

Time

A Poem

“Headache” by Natalia Drepina

I thought, perhaps, time was something I could mould.

Clear as a shattered crystal, I believed to see the ramifications

Of time and who I was in each one, in each end or dead-end

Or almost, or bare beginning.

Similar things would repeat themselves through time.

My knees would always break, and the way didn’t matter.

My head would always ache, and the reasons didn’t matter.

I’d always find a form of art to call my own, and the medium didn’t matter.

I’d always die, and when didn’t matter.

Time has been the most frightening presence.

I remember, still a child, seeing time rip the shadows from a corner

And flip them over me, turning the pages from night to day.

Suddenly I was 30 years old, flipping pages nervously,

but time gave me no time to overcome my fears.

My old selves stare from old pictures and want compromise.

They want me to promise everything will be guaranteed.

That each dream from each timeline has come true, all at once.

I’ve been postponing this to a future version of me,

Ignoring that the future is here, and I still don’t have the answer.

And I have no heart to tell them the truth.

Time led me to unimaginable places.

Stones have turned to dust beneath my feet because

They had been solely waiting for me.

I’ve seen old towns where nothing else exists

But the things I believed in.

Faith is the only thing that remains,

As flesh, as bones, and as concrete.

Time is a malleable thing, but not a line or a string.

It is the heavy cloak of wisdom.

The massive shroud that, day by day, covers us more.

It is the eyes of those before us that still gleam,

And if, very carefully, you look into the night

You might see them blinking the dark away.
Understanding Short-circuit Evaluation in Javascript
By: Gurseerat Kaur
Tags: JavaScript, Programming, Technology, Coding, ES6

Explore about Short-circuiting in Javascript to make your code clean and beautiful.

In short-circuit evaluation, an expression with logical operators ( || and && ) is evaluated from left to right. So, if the condition is met and the rest of the conditions won’t affect the already evaluated result, the expression will short-circuit and return that result.

Logical OR(||) Operator

This operator will return the first true value. So, it won’t even reach the rest of the conditions and return true as the condition is satisfied.

true || false

// true

So how can we use this?

Let’s take an example

var x;

var y = 'Gurseerat';

var z = 'This will not evaluate'; var name = x || y || z;

console.log(name);

// Gurseerat
Trello ve Clickup’a Alternatif Türk Girişimi: “Timezeta”
Tags: Trello, Hikaye, Türkçe, Startups, Girişimcilik

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.
Extract Time From Mongo ObjectID For Time Range Queries
By: Injae Lee
Tags: Hive, Presto, Mongodb

When storing massive amounts of data in data lake or data warehouse solutions with each data entry attached to an ObjectID, the timestamp data embedded in the ObjectID comes in handy for certain time range queries without unnecessary joins. Here are a few example use cases.

Summarize 12 month trailing purchase records by user creation/signup time given that user ID’s are ObjectID’s

Summarize 12 month trailing activities by user session given that session ID’s are ObjectID’s

In this article, we will look into parsing and using the timestamp part of the ObjectID in Hive and Presto queries. Before we go further, let’s first look into the anatomy of the 12-byte ObjectID and go into the queries.

Anatomy of the ObjectID

Let’s break down the Mongo ObjectID “5fee6600f75eabce97882944” as an illustration. Depending on the MongoDB version, the anatomy is different. We will look at both but the meaning of the first 4 bytes did not change.

Exclusively From MongoDB 3.2

5fee6600 | f75eabce97 | 882944

(1) (2) (3)

The first 4 bytes (1) is the creation time in seconds since the Unix epoch The next 5 bytes (2) is the random value The last 3 bytes (3) is the incrementing counter

Inclusively To MongoDB 3.2

5fee6600 | f75eab | ce97 | 882944

(1) (2) (3) (4)

The first 4 bytes (1) and the last 3 bytes (4) are the same as the later versions The second 3 bytes (2) is the machine identifier The next 2 bytes (3) is the process id

Extracting the Creation Time of the ObjectID’s

The following operations in their respective platform will result in an epoch time.

Hive

CAST(

CONV(

SUBSTRING(your_object_id, 0, 8),

16, 10

)

AS BIGINT)

Presto

FROM_BASE(

SUBSTR(your_object_id, 1, 8), -- index starts from 1

16

)

References
Fire Blooms
Tags: Haiku, Suryatapa, Poetry, Writing Prompt Response, Poems On Medium

Tree steals one piece of

the sun in — and its flowers,

Fire in the twilight.

~ Thank you, Dennett, for giving my poems a home.

~This is part of the June Writing Challenge by Sarah E Sturgis. Thanks, Sarah!
Makine Öğrenmesi ile Prognoz ve Tedavi Süreçleri
By: Ömer Özgür
Tags: Machine Learning, Veribilimicat, Prognoz, Deep Learning

Deep Learning for Survival Analysis

With the financial crisis hitting the United States and Europe in 2008, the International Accounting Standards Board…
Top 5 Ways to Finish Your Summer Internship in Style
By: Berkeley I School
Tags: Ischoolcareer, Career Advice, Internships, Uc Berkeley, LinkedIn

As the end of your summer experience approaches, make the most of every opportunity with these five tips:

1. Update LinkedIn (again!)

LinkedIn can always use some love. Did you make any connections this summer? Meet any awesome people during your internship? Before you say farewell, connect on LinkedIn. Bonus points if you give someone a recommendation and/or ask for a recommendation.

2. Have a Coffee Date

While you have time, schedule a coffee date with someone to either make a connection stronger, make a new connection, or say “thank you” for a great internship experience. Don’t have time to sit down for coffee? Send a virtual coffee card — it only takes $5 to make someone’s day (and make yourself look really good). Need ideas for who to connect with? I School alums, your supervisor, team members, other interns, and fellow I School students are great places to start.

3. Send Thank You Notes

Before you leave your internship, send thank you notes to your supervisor, team member(s), and the recruiter who helped you secure your position. Bonus points if the thank you notes are handwritten (it’s so retro!).

4. Ask for one thing

Feedback really is a gift that you should take advantage of. Instead of asking “do you have any feedback for me?”, which can feel like a daunting question to answer, ask “what is one thing I could improve on that would make me a more valuable professional?” Asking for one thing makes it easier for you to make (and show) real improvement. And remember — feedback is a gift, but it’s not one you have to take. If you really don’t believe in the feedback you’re given, consider the context, ask questions, and at the end of the day — be comfortable in who you are and make the improvements you find most beneficial.

Instead of asking “do you have any feedback for me?”… ask “what is one thing I could improve on that would make me a more valuable professional?” Asking for one thing makes it easier for you to make (and show) real improvement.

5. Serve as a Bridge

You can do your school and your internship employer a great service by serving as a bridge strengthening connections between them. Connect your internship employer with your friendly career services contact, offer to help recommend students for future internships and/or FT roles, or serve as a student representative on campus.

And as a BONUS tip…

6. Take a Beat!

School is no joke — and you’re going to need to recharge to do your best in the coming year. Take a moment to center yourself, in whatever way you find most relaxing. Get outside, explore the city where you spent your summer, or binge on that beach read/Netflix show you’ve been meaning to watch (#GLOW anyone?). Be sure you can come back excited for the school year, feeling like you’ve had a productive AND restorative summer.
10 Shocking Historical Facts They Never Taught You at School
By: Iara Kabakebji
Tags: Culture, Learning, History, Facts, Fun

10 Shocking Historical Facts They Never Taught You at School

History can be fun too!

1. The Band Actually Kept Playing as the Titanic Sank

The R.M.S Titanic when it sunk (Image source)

Just like in the movie, the musicians continued to play until the ship finally sank. Unfortunately, none of them survived.

"After the Titanic hit an iceberg and began to sink, Hartley and his fellow band members started playing music to help keep the passengers calm as the crew loaded the lifeboats. Many of the survivors said that Hartley and the band continued to play until the very end."
Netflix Is Crashing
By: Vanessa Ham
Tags: Film, Netflix, Netflix Originals, TV Series, Filmmaking

Thibault Penin

Recently there have not been as many new, and good TV shows on Netflix. And it is all because of Corona Virus.

COVID has prohibited holly wood filming, so we will start seeing fewer and fewer TV shows. I’d say that in about 6–7 months we might see a complete halt in TV show rollouts.

Jesus Loves Austin

So what are they going to do? Maybe they will have zoom TV shows. Or film from home.

Maybe we won't see any new T.V. shows, literally my heart just stopped.

Or maybe we will see more animations? But the show must go on.

If Netflix just stops I think my life will end. Just Kidding (hehe not).