fabiochiu/medium-articles huggingface dataset:
Napoleon Dönemi’nde (1792–1815) Prusya Ordusu’na Bir Bakış: Piyadeler ve Süvariler
By: Ümit Kaan Usta
Tags: History, Tarih, Türkçe, Military, Germany

Yararlanılan Kaynaklar:

Charles Townsend, The Oxford History of Modern War, Oxford University Press, Oxford 2000.

Peter Hofschröer, Prussian Line Infantry 1792–1815, Osprey Publishing, Londra 2012.

Peter Hofschröer, Prussian Light Infantry 1792–1815, Osprey Publishing, Londra 2012.

Geoffrey Parker, Cambridge Savaş Tarihi (Çev. Füsun Tayanç & Tunç Tayanç), İş Bankası Kültür Yayınları, İstanbul 2017.

Claus Telp, The Evolution of Operational Art 1740–1813, Frank Cass, Londra 2005.

Peter Hofschröer, Prussian Cavalry of the Napoleonic Wars (1), Osprey Publishing, Londra 1987.

Rory Muir, Tactics and the Experience of Battle in the Age of Napoleon, Yale University Press, 2000.

Philip Haythornthwaite, Napoleonic Heavy Cavalry & Dragoon Tactics, Osprey Publishing, Londra 2013.
Cinderella But Gordon Ramsay Is The Fairy Godmother
By: Emery Schindler
Tags: Fairy Tale, Humor, Romance, Disney, Dating

Cinderella But Gordon Ramsay Is The Fairy Godmother

Disney’s next live-action remake.

Cinderalla (Disney — Fair Use) Edited by the author.

Cinderella runs out to the garden, sobbing.

CINDERELLA: It’s just no use, there’s nothing left to believe in.

Sparkly dust gathers in front of Cinderella. Gordon materializes from the dust.

GORDON: Best believe you look like you just crawled out of a sewer’s arsehole.

Cinderella cries even harder.

CINDERELLA: Oh, my. I know I do. I look awful. I can’t go to the ball looking like this.

GORDON: You shouldn’t be anywhere looking like that.

CINDERELLA: Can’t you grant wishes or perform miracles or do something to help me?

GORDON: Trust me, it’s gonna take a fucking miracle to get you ready to go anywhere.

Gordon looks over and sees the mice.

Cinderella (Disney — Fair Use) Edited by the author.

GORDON: Are these rats? What is this, a fucking refugee camp? For Christ’s sake. Listen, you teary fuck, I’ll help you get ready for the ball as long as it means I can get out of here.

Gordon pulls his magic wand out of thin air.

CINDERELLA: You will? Oh wow, how marvelous!

GORDON: Can you shut the fuck up for thirty seconds so I can work. One dress, one carriage, one horse, sound good?

CINDERELLA: Oh yes! That sounds absolutely splendid!

GORDON: Okay, then.

Gordon waves his wand. Cinderella’s torn dress is replaced by an elaborate ballgown. She spins in excitement.

CINDERELLA: It’s perfect! I can finally go to the ball!

GORDON: What do you want, a fucking medal? Dress is yours ’til midnight, after that it’s back to looking like you just got pulled out of a war zone, you got that? M-id-nigh-t, I’ll sound it out for you in case your ears were too clogged with stupid to hear me the first time.

Cinderella, not listening, gets into her carriage and waves back to Gordon.

CINDERELLA: Thank you, fairy godmother!

GORDON (whispering to himself): Idiotic cunt is gonna fuck this up, just watch.
Longing for a Leader
By: Emma Briggs
Tags: Leadership, Poem, New Zealand, Poetry, Resistance Poetry

Why can’t we have nice things?

Where is our wise woman?

When will we grow up?

Sure, egg-boy was funny, but we need something more.

Without a leader I guess we have no choice;

the people will have to rise.
Опыт разработки некоммерческого проекта силами джуниоров
By: Stanislav Mekhonoshin
Tags: Experience, Junior Developer, Nonprofit

in In Fitness And In Health
7 New Dash Apps Made by the Dash Community
Tags: Rstats, Data Visualization, Rstudio, Dash

We are always looking for new and creative ways that the community is utilizing Dash and Plotly to make their web apps.

If you’re interested in learning to make these apps yourself, a great starting point is our workshop series. Our next workshops, in Boston, will offer advanced training for Dash and R Shiny April 14–15. Chris Parmer, the creator of Dash, will be discussing this open source library for creating analytic web apps with Python. You’ll learn how to create Dash apps like the ones in this post, plus more advanced ones and the best usage of the latest Dash features.

In the meantime, check out these 7 fresh Dash apps made by the Dash community. Alternatively, you can view a variety of apps at the Dash Gallery maintained by Plotly.

Dash: build beautiful web-based interfaces in Python

1. Great Balls of Fire: NASA Fireballs Open API

This Dash app was made using fireball data from 1988 to 2017 from NASA’s Jet Propulsion Laboratory.

Dash app | Dash author: Ivan Nieto | BitBucket code

2. Zika Outbreak Explorer

This is a Dash that utilizes Plotly’s crossfilter to look at Zika incidents over time.

Dash app | Dash author: Charley Ferrari | GitHub code

3. Finding Bigfoot

Here’s an exploratory Dash app based on a Bigfoot Sightings from data.world. It demonstrates several plots (including a map), a grid layout built with Bootstrap, interactions with an input field, and caching.

Dash app | Dash author: Timothy Renner | GitHub code

4. Climate Change Life Events

Climate history and possible futures showing your important life events, inspired by Sophie Lewis.

Dash app | Dash author: Greg Schivley | GitHub code

5. Earthquake Explorer

A Plotly Dash application showing earthquake data from the US Geological Survey.

Dash app | Dash author: Giacomo Debidda | GitHub code

6. Street Quality Identification Device

The technology consists of taking pictures of the streets (with a camera installed on a vehicle) every second, and combine this information with an accelerometer data, measuring the ride quality of the streets. The first city to use this technology is the city of Syracuse and the result is below.

Dash app | Dash author: Adriano M. Yoshino| GitHub Code

7. Visualizing MRI Data

Visualization tool for (f)MRI data-sets using Plotly Dash. Submitted to the TransIP VPS competition — and it won the 1st prize!

Dash app | Dash author: Lukas Snoek | GitHub Code
Good Times
By: Martino Pietropoli
Tags: Humor, Comics, Illustration, Cartoon

Did you find this article interesting?

If you liked it and if you feel like it, leave some claps to help whoever wrote it to pay the installments of his Lamborghini Urus.

Thank you!

///

Hai trovato interessante questo articolo?

Se ti è piaciuto e se ti va, lascia qualche applauso per aiutare chi l’ha scritto a pagare le rate della sua Lamborghini Urus.

Grazie!
Destructuring Arrays In JS
By: Ndonna Confidence
Tags: Software Development, Front End Development, Beginner, Web Development, JavaScript

Photo by Artem Sapegin on Unsplash

Hi I am Ndonna Ugwuede a javaScript newbie, and as a noob in javaScript i found it hard understanding Destructuring, even after reading many materials and watching tutorial videos it was still sounding strange but thanks to Mark Zamoyta i finally got a grasp of it.

Firstly, what do you need destructuring for?

Destructuring gives us an avenue to name our Array/Object items as against the regular calling of array items with “arrayName[0]” or Objects with “object.key”.

DESTRUCTURING ARRAYS

You can destructure an array using the syntax let [name1, name2, name3] = names;

where names is an already existing array. Using an example we have an array named Cars with content [“Benz”, “Honda”, “Nissan”, “Toyota”, “Ford”] and we want to assign them to variables namely car1, car2, car3, car4, car5. Going the old school way we would to go through assigning each with:

let car1 = Cars[0], car2 = Cars[1], …. etc.

Old way of assigning names to Array Items

Destructuring has brought a simpler way to do this where you can name array items where we can name our array items using:

let [car1, car2, car3, car4, car5] = Cars;

Destructuring example

You could even assign the remaining items into another named array using a rest operator (…), if we aren’t sure of the number of items to be named.

Destructuring with a rest parameter

Another beauty is we could skip some items, if we are sure of what we need to skip. Some strategic items could be skipped by putting a comma in its place e.g we could remove our first and second item of the array using:

let [,,car3, car4, car5] = Cars;

Removing selected items while destructuring

Destructuring also works fine with/on Objects, I’ll be making another post explaining DESTRUCTURING OBJECTS IN JS, in the near future but in the meantime you could reach out to me on twitter: https://twitter.com/Ndonnauc
Advent: Home Revealed
By: Oasis Church Birmingham
Tags: Spirituality, Faith, Christianity, Christmas, Resources

Each week, we produce notes, discussion points and application questions for the Sunday talks — helping you go deeper into everything we’re looking at together and resourcing our Small Groups during the week. Use the embedded player to listen to the talk, or click here to visit Soundcloud and download it on a PC. You can also subscribe to Oasis podcasts on Spotify, iTunes or Podbean for listening on the go, and you can find the accompanying Powerpoint presentation for this week’s talk here.

Key Passages

Luke 2:1–20

Genesis 1–3

Matthew 25:31–46

Notes

Advent, meaning ‘appearing’, is a time in the Christian calendar when we reflect upon living in the time between the appearings of Christ — He has come, He will come again — and learn to live in the ‘now’ and ‘not yet’ reality of the Christian experience.

The theme of home is one that runs right throughout the Bible — starting with God creating a glorious home out of the abundant generosity of the love of the Father, Son and Spirit. Right from the start, humanity was invited to join the work of making home by expanding and extending that home to fill the earth.

But instead of building a home with the life-giving goodness of the creator at its centre, we chose to try to create one where we were at the centre, with disastrous results. God, however, is faithful, and He chose a man, Abraham, his family, and his nation, Israel, to be blessed to be a blessing, inviting them to build a home that would be a sign to welcome all in.

At times they got it right, and at times they got it wrong, but there was always a promise that one would come who truly epitomised the home that God was seeking to bring to all. That’s the announcement made to the Shepherds: home’s here. He’s here, in the person of Jesus.

Jesus reveals through his life all these characteristics of “home” that we have sought to build as Oasis:

Welcome

Authenticity

Faith

Joy

Rest

Creativity

Justice & Mercy

Honour

Through his life, death and resurrection, Jesus brings home to us, and invites us to partner with him in enjoying and revealing those attributes of home now, in whatever situation we are placed; fulfilling what has always been his design for humanity.

As those who are made for home, we find our home in him, and are now to be those who seek to make home where he is — finding him, as always, amongst the poor, the broken, the hurting, the sick and the lost — and joining with what he is already doing in our world. His action invokes our participation, even as we wait for the final fulfilment of home to come and fill the earth as the waters cover the sea.

*A couple of people have asked for the script from Rich’s talk so they can reread some of the more crafted sections of it, which is available here.

Application Questions
Love In The Ruins
By: Mike Essig
Tags: Survival, Life, War, Poetry, Lust

If you like this piece, and can afford it, please consider donating.

I no longer place poems in the Medium Partner Program. If you like my work, this is how you can show it.
The Relationship Between Earthquakes, Disease, and the Stock Market
By: Tds Editors
Tags: The Daily Pick

Photo by chuttersnap on Unsplash

By Zion Badash — 6 min read

Although we all talk about Big Data, it usually takes some time in your career until you encounter it. For me at Wix.com it came quicker than I thought, having well over 160M users generates a lot of data — and with that comes the need for scaling our data processes.
Damn Everything But the Circus
Tags: Screenprinting, Graphic Design, Corita Kent

To my shame, I only discovered Sister Corita Kent in the last few years. I came across her through her work with John Cage and the brilliant 10 Rules they created for the Immaculate Heart College Art Department. Last year SF MoMa featured some of her more political prints in the “Get with the action” exhibition (who’s title comes from Kent’s work). Every piece stopped me in my tracks. The colour, the type, the attitude, incredible work!

Damn Everything But the Circus was created in 1970. It’s a collection serigraphs of inspiring quotes each representing a letter of the alphabet, the title coming from e.e. cummings’ poem:

Damn everything but the circus! …damn everything that is grim, dull,motionless, unrisking, inward turning,damn everything that won’t get into thecircle, that won’t enjoy, that won’t throwits heart into the tension, surprise, fearand delight of the circus, the round

world, the full existence…

Pretty good mantra for life, and seems to sum up Corita Kent nicely — who would have been 100 in November (check out the proposed celebrations)

I spotted this book of the work and although nothing can do justice to the colour of the original prints this book it pretty damn good. Unfortunately the cover of copy I picked up is a little battered but inside the pages are in beautiful condition. It’s a riot.

Check out a few spreads:
How I made a mask detection algorithm
By: Galileo Parise
Tags: Deep Learning, Covid 19, Object Detection, Keras, Flask

In this scenario, I had two possible solutions:

consider anchor boxes with different shapes and perform sliding windows at multiple scales, looking for masked/not masked faces and then apply non-maximum-suppression; consider a pre-existent face detection algorithm and then perform classification over the selected box from the first algorithm.

I decided to go for the second choice, because it is a better solution in computational terms, which was crucial for real-time detection. In fact, the first choice could process even thousands of sub-images for each frame!

So, once I got the dataset, I decided to go for MobilenetV2 in order to make binary classification (“with mask” - ”without mask”) on those sub-images; this model is pretty accurate and less complex than other models: the exact mix I was looking for!

In this way I was able to turn a simple classifier into an object detection model: I could even choose a KNN, Random Forest, or another classical statistical classifier.

Model training

Keras provides weights for the original MobilenetV2 model trained on Imagenet, so I added an average pooling and two more dense layers (with dropout) on top of that to achieve my goal, obtaining the architecture depicted in the figure.

The architecture of the original Mobilenet with few additional layers.

To enhance the power of the model, I’ve added an image augmentation generator with the ImageDataGenerator class provided by Keras, both in the training set (70% of the total images), and in the validation set (20%), with the following code:

from tensorflow.keras.preprocessing.image import ImageDataGenerator aug = ImageDataGenerator(rotation_range=20,

zoom_range=0.15,

width_shift_range=0.2,

height_shift_range=0.2,

shear_range=0.15,

horizontal_flip=True,

fill_mode="nearest",

validation_split=0.2) # data augmentation on training set

train_generator = aug.flow(x_train, y_train, batch_size=BS, subset="training") # data augmentation on validation set

val_generator = aug.flow(x_train, y_train, batch_size=BS, subset="validation")

The model outstood me with surprisingly good results. Adding early stopping I prevented the model from overfitting the training data letting the model takes as epochs as it needs, and that gave me these results on the test set (10%):

Metrics of the models evaluated on the test set

And this learning curve:

Accuracy and loss of the model during training

For the face detection part, I tried both CascadeClassifier, a CV2 algorithm, both the MTCNN library, and they all gave me good results; personally, I went for the first, but even the second one should have been a great choice. CascadeClassifier detects faces and their location, so I could extract a portion of the original image for every face and pass it to MobilenetV2 as an independent image so that it can be classified.
Chegg Tutors Just Turned Away 40 Million Students
By: Alyssa Atkinson
Tags: Education, Life, Work, Self, Technology

Chegg Tutors Just Turned Away 40 Million Students

Here are my thoughts as a tutor for 5 years.

Photo by Scott Graham on Unsplash

Just a few weeks ago, I started working on an article that discussed all the ins and outs of tutoring online. I talked about why I do it, how I make money, which online platform I use, etc. Now, that article is completely irrelevant.

Just a few days ago, I received an email from Chegg Tutors with a critical message headline. It seemed alarming, so I immediately clicked on it. I skimmed the contents of it, and I quickly learned that they had decided to cease operations of the Chegg Tutors program.

They have since put out the following public statement on their website:

“We regret to inform you that Chegg Tutors will cease operations on January 31, 2021…We always strive to provide the best products for our students, and in this case, it means closing down our online tutoring platform. That being said, Chegg will continue to help students succeed via our huge suite of products.”

While I don’t tutor every day, or even every week, I have tutored regularly on the platform for about five years, and I’m sad that I will no longer be able to hop online and get paid to help students obtain a better understanding of subjects I’m passionate about, like computer science, math, and technology.
How Liberal Education Isn’t So Liberal
By: William Matthew Mccarter
Tags: Teaching, Culture, College, Students, Education

How Liberal Education Isn’t So Liberal

Students are inadequately prepared for carrying on the task of advancing Western civilization.

Photo by Jorge Fernández Salas on Unsplash

Legend has it that the greatest school that ever existed was on a street corner in Athens with Socrates engaging in a dialogue with a student or two. We Americans likely would think that this definition is quaint and cute because American education is about as far removed from this as it can get.

Instead of a meaningful dialogue using the Socratic method, American education suffers from aimlessness and confusion.

While Socrates and his students were engaged in one-on-one dialogue, America’s education factories become larger and larger and what passes for education inside them becomes less serious, less rigorous, and less effective.

Consequently, the students coming out of these factories are less equipped than previous generations, have less develop minds and even less developed characters.

Students are inadequately prepared for carrying on the task of advancing Western civilization.

Educators and policy makers have failed America’s students by failing to think hard and be imaginative about what education is supposed to entail.

Photo by Edwin Andrade on Unsplash

The problem is that most of us stop with the word “education” itself and imagine it as a kind of “hocus pocus” or “abracadabra” where miracles can happen if we would only mention the word. If there is a problem with our economy, “education” can fix it.

The belief is that since our public discourse is failing us, more “education” will cure it.

People believe that if crime and juvenile delinquency runs rampant in our cities, then “education” will save our youth. Or, if our popular culture is in the toilet and more people watch SouthPark than PBS, “education” can arrest the downward trend of our cultural literacy.

We expect to save people and people expect to be saved by a word that they cannot even define.

One of the problems is that those who are in the education profession have done away with some of the very things that were once considered the purpose of education in the first place.

There has been a concerted effort on the part of the postmodern sociologists to deny that human beings have a nature which can only be fulfilled when the higher faculties of humankind are cultivated. America’s so-called “progressive” education is a departure from the educational and intellectual ideals that have been cultivated and practiced since the time of the Israelites and Greeks from classical antiquity.

Photo by Fine Photographics on Unsplash

In order for civilization to survive — in order for absolutes like truth and values to survive — the educational system must be allowed to cultivate those truths and values that are necessary for that survival.
Bancor Protocol Use Case #2
By: Jake Vartanian
Tags: Blockchain, Decentralization, Ethereum, Smart Token, Crypto

A network of smart token changers

BNT as the mesh between tokenstoken

Token changers - the first thing that comes to mind is one of those booths in the airport where one can swap one of their paper currencies into another for a small fee. Usually we have to do this because the country that we are going into won’t accept the country that we are coming from’s money. We utilize the currency exchange rate to determine how many of which currency we should get.

Money Exchanger — Image Credit

With the increase in availability of up to date exchange rates, we don’t necessarily need a physical store to tell us the rates. Unfortunately bank accounts in their current structure make it almost impossible to effectively swap one currency for another. Our money is stuck in one form that tends to have not much benefit associated with holding it. With Ethereum and Bancor, this can all change.

Let’s assume that we have a group of 20 people who are all utilizing the same 20 Ethereum applications and often need a small amount of the various tokens to utilize the dApps. Everybody has their own portfolios/tools, and earns their income directly in one of the Ethereum standard tokens, but not everyone stores all 20 of the tokens all the time.

So the group decides to utilize the Bancor Network Token as a base for an exchange. They set up a private network of 20 token changers that each can swap between an Ethereum based token and BNT. When people get paid in their respective token, they load up the changer with whatever amount they would like, which provides them the BNT to move into the other changers seamlessly. The BNT acts as the connective mesh.

Not only does this process remove the need for an exchange, but it creates a network of liquidity between a small group of parties. A small fee for access to the network continues to incentivize the existing and new parties to add more liquidity to the exchangers. This is valuable to people if you have a lot of liquidity because it ensures that everyone will always be able to swap their tokens for the ones they want.

Learn more about Bancor Protocol
E54: Michael B. Horn — The Jobs to Be Done of Education
By: Jay Gerhart
Tags: Professional Development, Innovation, Jobs To Be Done, Podcast, Higher Education

Benjamin Franklin said, “An investment in knowledge pays the best interest.” Learn more about the Jobs to Be Done for which we hire education throughout our lives by listening to this episode, the third in our series on innovation in higher education, with co-author Michael B. Horn of the recently released book Choosing College: How to Make Better Learning Decision Throughout Your Life. Michael is the Chief Strategy Officer for the Entangled Group, an education technology studio, and a senior partner for Entangled Solutions, which offers innovation services to higher education institutions. He is also the co-founder of and a distinguished fellow at the Clayton Christensen Institute for Disruptive Innovation.

An expert on disruptive innovation, online learning, blended learning, competency-based learning, and how to transform the education system into a student-centered one, Michael has authored several books including Disrupting Class: How Disruptive Innovation Will Change the Way the World Learns with Clayton Christensen, and the Amazon-bestseller Blended: Using Disruptive Innovation to Improve Schools. He also co-hosts a podcast entitled Future U, in partnership with Jeff Selingo. Listen to this episode, and then go read his books!

@michaelbhorn @EntangledSOL @EntangledGroup @christenseninst

@SherpaPod @TheBenReport @JayGerhart

A Sherpa’s Guide to Innovation is a proud member of the Health Podcast Network @Healthpodnet -

Listen Now:
What’s going to happen to the mobile app designers after 10 years?
By: Johny Vino
Tags: Product Design, Mobile, Product Management, Visual Design, UX

Today, the phone is used to do many things, instead of call and talk to friends lol. It thus opened a door to Mobile app designers. Ten years ago, we didn’t even have an iPhone and thought Nokia was the future, so at the moment industrial designers were in demand. 20 years ago, there was a landline, and people thought we should create these fantastic dials, Mechanical engineers are in demand.

So I began to question myself when this era of mobile app designers would end.???

Therefore I advised myself these tips and wanted to share them with you.

Just have a title as Designer

Don’t chase to become a UI / UX designer, product designer, now everyone’s is like I’m an Experience designer haha.

Chase being a good Designer, look for aesthetics and brain to fix problems, heart to understand the problem of the user.

Don’t be stuck in trends & tools

Okay, I’m asking you, where are those website design superheroes from 10 years back? Many people couldn’t go from website designer to mobile app design why?

Because people spent time figuring out how to produce these animations using Maya, Flash for website design, rather than thinking about human needs, solving problems and vision for the future. When fresh technology arrived, they couldn’t handle that speed.

If there is a certain subject like new software, UI, UX and you really good in it implies its 10 years-old technology. Try to imagine and think with crazy ideas about the future and always strive to learn something new.

If people call you crazy, that means you’re moving towards the future. If people call you cool, you’re only famous only for the current trend.

People ask me how to great UX/UI designer?

The answers are U — U.

First U is YOU, you must find your style, and another U is a USER. Understanding user psychology and behavior will assist you in the creation of useful products.

Step back, look at the bigger picture

App design is good, but if you concentrate on the little thing and forget about the big picture, you’ll lag behind in your career, so stay up and back to understand what a great impact you are making and don’t get caught up in the mobile app designer bubble.

The history of humanity goes back 12000 years, and every generation believed that they were the best they ever had, but if you look back at each other all the same. It's a loop.

One person requires something that another person will make a solution in the name of innovation.

So prepare for 2030!

Recommended articles for you [Using your browser history LOL]

Before you go

👏 50 Clap if you enjoyed this article, this will tell me to write more of it!

🤔 Comment if you have something to say

🙂 Click follow Johnyvino to get updates of my recent articles

📭 Email hi@johnyvino.com for design projects
Go: Debugging with Delve & Core Dumps
By: Vincent Blanchon
Tags: Go, Debug Instrumentation, Golang

Illustration created for “A Journey With Go”, made from the original Go Gopher, created by Renee French.

ℹ️ This article is based on Go Delve 1.4.1.

A core dump is a file containing the snapshot of a program’s memory that has terminated unexpectedly. It can be used for post-mortem debugging to understand why the crash occurred and the variables involved in it. With GOTRACEBACK , Go provides an environment variable that controls the output generated when a program crashes. This variable can also force a core dump to be generated, making the debugging possible.

GOTRACEBACK

GOTRACEBACK controls the verbosity of the output when the program crashes. It can take different values:

none does not display any goroutine stack traces.

does not display any goroutine stack traces. single , the default option, displays the current goroutine stack traces.

, the default option, displays the current goroutine stack traces. all displays all the user-created goroutines stack traces.

displays all the user-created goroutines stack traces. system displays all the goroutines stack traces, even the one from the runtime.

displays all the goroutines stack traces, even the one from the runtime. crash similar to system , but also generates a core dump.

The last option gives us the ability to debug our program in case of crash. This can be a good option if you do not get enough logs, or the crash is not reproducible. Let’s take an example with the following program:

The program will crash pretty quickly:

We cannot tell from the stack trace which value was involved in the crash. Adding logs could be a solution here, but we do not always know where to add logs. When an issue cannot be reproduced, it is quite hard to write a test case and make sure it is fixed. We could iterate between adding logs and running the application until it crashes and see possible causes run after run.

Let’s run it again with GOTRACEBACK=crash . The output is more verbose since we now have all goroutines printed out, runtime included. However, we now have a core dump:

The core dump is triggered via the signal SIGABRT , which generates a core dump as disposition.

This core dump can be analyzed with debugging tools such as Go delve or GBDv.

Delve

Delve is a debugger for Go programs written in Go. It allows debugging step-by-step by adding breakpoints anywhere in the user code as well as the runtime, or even debugging core dumps with the command dlv core that takes the binary and the core dump as parameters.

Once the command has run, we can start interacting with the core dump:

The dlv command bt prints the stack trace and shows the panic generated by the program. Then, we can access the frame #9 with the command frame 9 :

Finally, the command locals prints the local variable, helping to understand what value was involved in the crash:

The channel was full, and the randomly generated number was 203,300. Regarding the variable sum , its content can be printed with the command vars that prints the package variables:
面試100多位軟件工程師後的建議
By: 胡家維 Hu Kenneth
Tags: Software Development, Interview, Programming

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.
Why Knowing Git Stash Is a Must
By: Iouri Sorokine
Tags: Software Development, JavaScript, Version Control, Programming, Git

Main Commands

Git stash

It “stashes” all your current changes. In other words, it saves them in a list to be used later. Typically, this is what you do before switching to another branch if you don’t want to commit. Please note that only the tracked files will be stashed.

Git stash list

git stash list outputs a list of your stashes. Each stash has a number, with zero being the last. The stashes are organised in a last-in, first-out manner as a stack, so you can think of it as an array where each additional stash is added by unshift . All indexes of existing stashes increase by one and the last stash is saved at index 0.

The output can look like this:

stash@{0}: WIP on feat-branch-1: 182e9e8d20 refactor profile stash@{1}: WIP on feat-branch-1: 182e9e8d20 add user custom pic

stash@{2}: WIP on feat-branch-2: 8566da5a18 add tests

stash@{3}: WIP on development: dcf86c7943 merge latest features

You can see the stash index, the name of the branch on which you were working when you created the changes, the hash, and the name of the previous commit. This helps to keep a reference when your stash list is growing. However, the changes can be unrelated to the previous commit.

Git stash pop

git stash pop applies the changes of the last stash (aka stash@{0} ) and deletes them from the list (equivalent of shifting the 0 element of the stash array). It’s convenient when you want to commit the changes and keep a clean stash list at the same time.

Git stash apply

git stash apply applies the same changes as above but does not delete the stash from the list, so you can reuse these changes later or on different branches.

Apply or pop a selected index

If you need to apply or pop any other stash than the last one, add the index at the end of the command:

git stash apply 1 git stash pop 2

Git stash clear

Resets your entire stash list. When running the git stash list command after, the terminal should output absolutely nothing.

Git stash drop
Afterthoughts
By: Alexis Busso
Tags: Relationships, Love, Memories, Breakups, Poetry

To walk this path with me

Is to be reminded of the deepest parts of the ocean,

The aperture setting on high,

All the inconsistencies — exposed.

I can convince you of stories on undiscovered planets,

That your cognitive perceptions of the world

Is a distortion of mixed senses, betraying you in seconds

Like staring into the canvas of a silhouette

The blank spaces and bold lines

Reveal multiple truths,

Yet mine is the only image you will see.

The printed polaroids, shifting with time.

Like a shooting star,

Close your eyes too soon,

And you miss the sumptuous beauty of it all.

Fleeting. Instantaneous. Dazzling.

Your destructions,

My afterthoughts.
The New Paxos Platform: Move from PAX to Dollars Instantly
By: David Wells
Tags: Blockchain, Paxos, Paxos Standard, Cryptocurrency

PAX is a digital dollar we built so money can move fast. Now, PAX can move even faster. We’re pleased to announce instant redemptions for PAX. PAX is the only crypto asset to offer this functionality, immediacy and level of confidence with no minimums, maximums or fees associated. This development comes because of our commitment to offering the most reliable, regulated and protected digital dollar to our customers. Our latest technological advancements make it possible for our users to move with ease between USD and PAX ensuring they have access to their own assets in the form they need — whether for convenience or peace of mind.

Paxos created the Paxos Standard (PAX) stablecoin to bring together the stability of USD and the efficiency of blockchain technology. We launched PAX with a 1 day redemption window, which was groundbreaking. Then we moved to four-hour windows. Now, we’re setting precedence again by offering immediate redemptions today. (Immediate creations coming soon!) This means whenever you deposit PAX on the Paxos platform, it is immediately available as USD. For that reason, there will no longer be any distinction between your USD or PAX balance on Paxos; all will be held as one, unified USD balance on our platform, and available 24/7 to send as either USD or PAX. Transact at the speed of the internet, unlike ever before.

And we’re bringing this to you within a new platform experience that lays the foundation for the future of our company. It offers a scalable architecture that not only brings our PAX and itBit products closer together, but also makes way for us to add more assets, offerings and integrations that will change how you use digital assets well into the future. With today’s news, we’re a step closer towards building the platform that will power the future of finance.

Take a glimpse at the new Paxos and get insight into how we’re envisioning a global, frictionless economy.

The new Paxos platform provides a holistic view of your digital assets.
vim-tag-comment
By: Alex R. Young
Tags: Xml, Plugins, HTML, Scripts

vim-tag-comment (GitHub: mvolkmann/vim-tag-comment, License: MIT) is another small but useful plugin by Mark Volkmann. This one adds/removes XML comments, but instead of adding a comment to each line it’ll use one multi-line comment instead.

It’s not quite as simple as wrapping a visual selection in the comment syntax, however. It’ll try to wrap a given element, so if you’ve got nested elements they’ll be included in the comment. The commands for this are ElementComment and ElementUncomment .

It comes with some built-in mappings:

tc : ElementComment

: ElementComment tu : ElementUncomment

: ElementUncomment tC : TagComment

: TagComment tU : TagUncomment

I’ve noticed people like shortcuts for commenting code. I prefer to just delete code myself, but it depends on how you work.
Why do we overload the agendas of our community experiences?
By: Fabian Pfortmüller
Tags: Events, Event Design, Community Engagement, Community Building, Network

This is part 3 of my reflection about our unhealthy relationship with time and how it affects communities (part 1, part 2). In this post I share some reflections on how our approach to time influences experience design:

I continue to attend community experiences and events that are totally overloaded. There is too much on the agenda. We are constantly running out of time. Every session would deserve more time, runs late. It feels stressful.

In most of these experiences there is usually no or very little empty space, no unstructured time. Every minute of the experience is supposed to be productive.

Reading Peter Block always reminds me how communities are a sum of the many conversations that happen within. But in our chase of productive community time, there is no more space for longer, deeper, unstructured conversations. When conversations happen, they are often in larger groups and often with clear expected outcomes. There is also very little space for serendipity, one of community’s most powerful secret weapons.

When I attend community experiences as a participant, I always lament the fact how busy the programming is. I wish there were just some space to simply be with the lovely humans around. Yet ironically, when I’m in the drivers seat and designing experiences, I’m deeply worried about open spaces. I’m afraid of the chaos that unstructured time might bring with itself. And I’m worried that people will find the event “a waste of their time”. I want to make sure that people get value for their time.

These days, every event wants to have a clear “outcome”, to produce some results. Usually that means that the bigger group is split into smaller groups, the small groups are tasked to brainstorm ideas and answer a whole list of extensive questions in 15 minutes, and then each group have 1 minute each to share out. In most events I attend, these share outs at the end aren’t very meaningful.

It isn’t that a structured and filled agenda is only bad. It definitely has important upsides: a clearly defined event framework makes people feel safe enough to actually show up to your event. People show up for the agenda and the speakers, not to simply “be”, but once they are there, the biggest value they are looking for is often relationships. And on the flip side, I have definitely been in events without agendas that felt totally chaotic and a waste of time. So we need agendas and we need structure, but we need generous, patient structures.

As you can tell, I have observations, but not really recommendations how to change it. How are you approaching this? I’d love to hear your thoughts!
Landing
By: Diem Jones
Tags: Wisdom, Life Lessons, Self Love, Poetry, Photography

Magenta Sapphire: Yael Designs/Stephan Kotlowski

While the allure of perceived grandeur is just a surface scratching, why leave the bowls of our souls unturned?

Purple is my favorite color and I we all have favorite colors, sounds, tastes and feelings…I know I not alone, but at the same time I desire not to direct or control any one’s soul, but rather spark.

I want to be a catalyst and inspire other’s to carry their own torches vs. following mine. If we revert to our bowls, then perhaps we can preserve our souls.

I was thinking, I was just saying, I was…but now I am, as the light of Spring has put pep in my step….Must change everything, that needs to change.
On Having Desires
By: Justin Fineberg
Tags: Desire, Life Lessons, Happiness, Meditation, Mindfulness

On Having Desires

How to ignore what you want and find what you need

Photo by Aleksandr Ledogorov on Unsplash

It’s not that you shouldn’t have any desires, but you should be wary of the ones you choose to pursue.

There are two different types of desires. One is born out of greed, grasping, and ego. The other comes from emptiness.

If you find yourself doing something in order to become someone, it comes from a place of grasping.

“I need to do this to be rich.” “I’m doing this to impress my friends.” “I want this so I can become famous.”

Staying free of self-images, allows us to remain more open to the changing nature of life. When we enter down a certain path filled with matters of how things should be, we set ourselves up for dissatisfaction. Our happiness is dictated not by the present moment, but a narrow, specific image that doesn’t change, even if life does.

Instead, listen to the desires that come from a mind free of self. They are instinctive and innate rather than a craved self-perception. They come from a place of wisdom, kindness, and love. They are congruent to the changing nature of the world around us.

When there’s no desire to be anyone, then you actually can be anyone.
The Magpie
By: Samuel Clarke
Tags: Poetry, Poem, Death, Life, Creative Writing

The Magpie

A Poem About Death

Photo by SK Yeong on Unsplash

A hollowed heart, a haunted soul,

A mortal corpse, now hellfire’s coal,

Filthy, forgotten, food of worms,

Tearful is the one who in flesh-grave turns.

Broken battle-tools tarnished with mud,

A soldier’s flag stained by blood,

Lost lover’s necklace across the breast,

A Magpie spots it from the nest.

Bright black wings and blacker eyes,

The Magpie dives down for its prize,

In peace it perched, and necklace pinched,

To fly home again without a flinch.

Samuel Clarke
Class Inheritance & Type casting in Swift
Tags: Inheritance, Class Inheritance, iOS, Swift, Type Casting

Class Inheritance & Type casting in Swift Doyeon Follow Dec 15 · 4 min read

Inheritance?

👉🏻 A class can inherit methods, properties and other characteristics from another class unlike structure. it can be called as class inheritance or subclassing.

👉🏻 The class inherit from is called the “parent” or “super” class, and the new class is called the “child” class.

child class can only inherit from only one superclass unlike some other languages like Python

parent class can have multiple child class

it’s allow to have many depth of parents as you want (great-grandmother, grandmother, mother, me 👵🏻 —🏻👩🏻‍🦰 — 👶🏻 )

💡 Any class that does not inherit from another class is known as a base class

The example below defines a base class called MacOS

class MacOs {

var releaseDate: String

var origin: String init(origin: String, releaseDate:String) {

self.origin = origin

self.releaseDate = releaseDate

}

func description() {

print("##made in \(origin) in \(releaseDate)")

}

}

Subclassing is the act of basing a new class on an existing class. the below snippets defines a subclass called Iphone, with a superclass of MacOs.

struct Device {

var model: String

var price: Double

} class Iphone: MacOS {

var device: [Device] = [] //an Array of Device structure above.

}

which means, the class Iphone automatically inherits all of the characteristics of MacOs such as properties and the method.

Okay, so I have two constants called oldPhone and newPhone, and initialize them with values to see the output!

⭐️ This is the simplest concept of the class inheritance

Overriding

A subclass can provide its own custom implementation of an instance method, type method, instance property, type property, or subscript that it would otherwise inherit from a superclass.

🙌🏻 Let’s get to know Inheritance deeply

I have another class named Person inherit from Iphone class with a method called screenUsed().

class Person: Iphone {

var timeUsage: Int = 0 func screenUsed(){

timeUsage += 1

}

}

what if there’s another class inherited from Person class and want to customize the method from the superclass? then you can use the override keyword to modify it.
A Homesickness Remedy for the Holiday Week
By: Cari Nazeer
Tags: Thanksgiving, Homesick, Self, Holidays, TV

Photo: Photographer, Basak Gurbuz Derman/Getty Images

Most Thanksgivings, from the moment you shrug off your coat in a relative’s hallway to start the flurry of hugs, you already know how the next few hours are going to play out.

Holiday time is a story we tell ourselves, over and over, beat by familiar beat: The smell of Grandma’s famous mac and cheese in the oven, the cousin game of touch football, the point in the night when Aunt Nancy inevitably gets a little wine-tipsy and tries to start a sing-along. You’ve done this all before. You’ll do it again.

This, obviously, is not most Thanksgivings. And as many of us prepare to spend the holiday apart from our loved ones, Veronica Walsingham shares her go-to homesickness remedy, one that still involves the comfort of well-known, well-loved stories: the TV binge.

“When you’re feeling stressed or sad about your current circumstances, reexperiencing familiar stories can bring a soothing sense of control,” Walsingham writes. And for those of us missing out on the warm nostalgia that comes with a trip back home, she explains, settling in to rewatch a season or two of an old favorite can, in its own way, conjure a bit of that feeling:

Sitting through a Friends marathon transports me to those teenage Thursday nights watching alongside my mother. Most of the jokes flew over my head at that point, but I still laughed because my mother did, and that meant something was funny. Gilmore Girls, which I first watched by myself, fills me with happiness, and the sweet sense of independence that came with finally having a show that was all mine. Sex and the City takes me to my final years of high school, when I watched extremely edited reruns on TBS and felt like an adult…While it may not fully fill the hole created by being so far from immediate family and lifelong friends, surrounding myself with my favorite fictional characters is my second best option.

Look, no television show can change the fact that this is a particularly strange and hard week in a strange and hard stretch. But absent the usual traditions that anchor us this time of year, there’s solace to be found in spending time with something you know more or less by heart.