fabiochiu/medium-articles huggingface dataset:
公開鍵暗号の1つであるRSA暗号をGolangで実装してみる
Tags: Golang, Crypto, Rsa, Go

注意: ところどころ簡素化してあるところはあります

公開鍵暗号とは

https://ja.wikipedia.org/wiki/%E5%85%AC%E9%96%8B%E9%8D%B5%E6%9A%97%E5%8F%B7

流れ

2種類の素数p,qを準備する(p != q)

各素数の積 Nを計算 (p * q)

各素数から1を引いた値の最小公倍数Lを計算 lcm((p-1) * (q-1))

L未満でその値と互いに素な任意の値 Eを準備(公開鍵)

Lを法として公開鍵との積が1となる任意の値 Dを準備（秘密鍵）

EとNを使い暗号化

DとNを使い復号

2種類の素数p,qを準備する(p != q)

本来であれば、ある程度大きい素数を疑似乱数生成器で作る必要があるが、今回は学習も兼ねて、2つの値を自身で設定できるようにしてある。

※また、学習のためなので int 型としているが、本来はもっと大きな数値を扱える型としたほうが良い

var p, q int

fmt.Println("enter two defferent primary numbers")

fmt.Println("like 17 19")

fmt.Scan(&p, &q)

各素数の積Nを計算 (p * q)

N = p*q

※このNは公開情報である

Nが大きい値の際に、素因数分解が現実的な時間で解読不可能なことを利用している。

(計算量的安全性)

Nの値としての推奨は 1024–4096ビット(Wikipediaより)

各素数から1を引いた値の最小公倍数Lを計算 lcm((p-1) * (q-1))

秘密鍵と公開鍵を作るためにLを準備する

ユークリッドの互除法を使い計算

L := culcLeastCommonMultiple(p-1, q-1) func culcLeastCommonMultiple(a, b int) int {

c := a * b

if a < b {

tmp := a

a = b

b = tmp

}

r := a % b

for r != 0 {

a = b

b = r

r = a % b

}

return c / b

}

L未満でその値と互いに素な任意の数Eを準備(公開鍵)

gcd(E,L) = 1

こちらは簡易的に、毎回乱数を取得して、それが互いに素か調べて当てはまった場合それを公開鍵とするようにしている。

E := makePublicKey(L) func makePublicKey(l int) int64 {

rand.Seed(time.Now().UnixNano())

r := rand.Intn(l)

for greatestCommonDivisor(r, l) != 1 {

r = rand.Intn(l)

}

return int64(r)

}

最小公倍数をユークリッドの互除法で取得し、それが1となるまで実行

func greatestCommonDivisor(a, b int) int {

if a < b {

tmp := a

a = b

b = tmp

}

r := a % b

for r != 0 {

a = b

b = r

r = a % b

}

return b }

Lを法として公開鍵との積が1となる任意の値Dを準備（秘密鍵）

// E*D mod L = 1 となるEを探す

こちらも簡易的に繰り上げ式で対象の値を取得

D := int64(makePrivateKey(E, int64(L))) func makePrivateKey(e int64, l int64) int64 {

i := int64(2)

for i*e%l != 1 {

i++

}

return i

}

Let’s 暗号化

//planText^E mod N

// planText^E mod N

cryptgram := new(big.Int).Exp(big.NewInt(planText), big.NewInt(E), big.NewInt(N))

Let’s 復号

// cryptgram^D mod N

res := new(big.Int).Exp(cryptgram, big.NewInt(D), big.NewInt(N))

全コード

https://github.com/kooooohe/RSA/blob/master/main.go

終わりに

今回は小さい数値しか暗号化、復号できませんが。

大枠流れはつかめると思います。

普段何気なく使っているものを、自分で実装するというのは楽しいですね

参考:

https://ja.wikipedia.org/wiki/RSA%E6%9A%97%E5%8F%B7

https://www.amazon.co.jp/%E6%9A%97%E5%8F%B7%E6%8A%80%E8%A1%93%E5%85%A5%E9%96%80-%E7%AC%AC3%E7%89%88-%E7%A7%98%E5%AF%86%E3%81%AE%E5%9B%BD%E3%81%AE%E3%82%A2%E3%83%AA%E3%82%B9-%E7%B5%90%E5%9F%8E-%E6%B5%A9-ebook/dp/B015643CPE/ref=sr_1_1?__mk_ja_JP=%E3%82%AB%E3%82%BF%E3%82%AB%E3%83%8A&crid=1MKMKETE6NUVZ&dchild=1&keywords=%E6%9A%97%E5%8F%B7%E6%8A%80%E8%A1%93%E5%85%A5%E9%96%80&qid=1600837948&s=books&sprefix=%E6%9A%97%E5%8F%B7%E6%8A%80%E8%A1%93%E5%85%A5%E9%96%80%2Cstripbooks%2C479&sr=1-1
Moist Panties Aren’t Always As Sexy As They Sound
By: Tracey Folly
Tags: Women, Humor, This Happened To Me, Sexuality, Satire

Being a woman is harder than it seems.

One challenge associated with being a woman is having moist panties. Having moist panties might sound sexy to some people. In the right circumstances, it certainly can be. However, in the wrong circumstances, it’s just another inconvenience that comes along with the blessing and the burden of having a vagina.

I have found that one of the worst times to have a little extra steam rising from between one’s legs is when sitting on a friend’s leather car seats, and I wish I could say I hadn’t learned this from experience. Alas, I have on more than one occasion turned around while getting out of someone’s car and noticed a wet smudge precisely in the spot where I was sitting.

My friend drives a silver sedan with black leather seats, and I can’t ride in her passenger seat without leaving behind a telltale line of moisture. I’ve tried many different techniques to smear away the evidence of my presence upon disembarking including discreetly wiping it with the edge of my sleeve and sliding out of the car in such a way that my left pants leg absorbs the dampness.

So far, I don’t think she’s noticed.
Recap งาน TensorFlow Dev Summit 2018
By: Sirinart Tangruamsub
Tags: Machine Learning, Artificial Intelligence, TensorFlow, Technology, Data

in Both Sides of the Table
Between Two Sets HackerRank Challenge
By: Abhishek Singh Thakur
Tags: Cpp, Programming, Coding, Coding Interviews, Hackerrank

Between Two Sets HackerRank Challenge

Problem :

You will be given two arrays of integers and asked to determine all integers that satisfy the following two conditions:

The elements of the first array are all factors of the integer being considered The integer being considered is a factor of all elements of the second array

These numbers are referred to as being between the two arrays. You must determine how many such numbers exist.

For example, given the arrays a =[2, 6] and b = [24, 36] , there are two numbers between them: 6 and 12 . 6 % 2 = 0 , 6 % 6 = 0 , 24 % 6 = 0 and 36 % 6 = 0 for the first value. Similarly, 12 % 2 = 0 , 12 % 6 = 0 and 24 % 12 = 0 , 36 % 12 = 0 .

Read the full problem here: Between Two Sets

Solution :

First we sort both the arrays in increasing order because values can be entered in any order. Let the first array is factors and second array is multiples (See conditions 1 and 2).

std::sort(factors.begin(), factors.end());

std::sort(multiples.begin(), multiples.end());

The range of integer being considered is from last element of factors to first element of multiples. Let that integer is num . So num = { factors.back(), ... , multiplies.front() } .

unsigned short num = factors.back();

unsigned short times_multiplied = 2;

Here num also contain integers that are not multiples of 2 and 6 for eg. 7, 11, 13, 15 ... To make program efficient num should contain multiples of factors.back() i. e. in the above example multiples of 6. So num = {6, 12, 18, 24 } and the numbers which satisfy the above two conditions are 6 and 12 .

num = factors.back() * times_multiplied;

times_multiplied++;

Bool variable is_multiple tells if a number is multiple of the num and is_factor tells if the num is the factor of a number.

bool is_multiple = true;

bool is_factor = true;

If is_multiple is true for all the elements of factors and is_factor is true for all the elements of multiplies for a num then that num belongs to between the two arrays and our count variable is incremented by 1.

for (unsigned int i = 0; i < factors.size(); ++i)

{

if (num % factors[i] != 0)

{

is_multiple = false;

break;

}

}



for (unsigned int j = 0; j < multiples.size(); ++j)

{

if (is_multiple && multiples[j] % num != 0)

{

is_factor = false;

break;

}

}



if (is_multiple && is_factor)

{

count++;

}

For C++ Implementation visit Programmercave

You may also like

Kangaroo HackerRank Challenge

Roy and Code Streak HackerEarth Challenge
物理攻撃力を高めてPCとPS4でボイチャしてみる方法
Tags: ゲーム, 日記, PS4, PC

in Both Sides of the Table
Capitalism
By: Andrew Wlos
Tags: Resistance, Social Justice, Resistance Poetry, Haiku, Capitalism

Living a life I believe in. Urbanite of New Orleans; receptive to jazz 🎵⚜️🎨🎶🎷🎺🎨 Instagram:@king_of_da_chill Twitter:@AndrewWlos

Follow
From AID to DAI: combining transparency with stability
Tags: Charity, Bitcoin, Cryptocurrency, Blockchain, Nonprofit

After long months of communication with charities, we detected a stumbling block on the way of immediate wide-scale adoption of AIDChain among charities: the volatility of cryptocurrencies. Not only does it slow down the AIDChain adoption but also poses a challenge for the mainstream use of cryptocurrencies as such because it deteriorates their ability to store value and act as a means of payment.

It is worth noting though, that far not all fiat currencies possess these qualities either and crypto is still ahead of the competition with its lower transaction costs, the absence of governmental control, immediate transfers 24/7, including cross-border, etc. — which is why we’ll always advocate it and promote it among charities.

And today we found a way to eliminate this downside of crypto while retaining its merits for AIDChain users by integrating a stable coin into the AIDChain platform — DAI by MakerDAO. In the future, we might also integrate other stable coins as technology never stops evolving and better options might appear. But meanwhile, we’re more than sure that this introduction will lead to a breakthrough in our negotiations not only with major international charities but also with smaller organizations who are especially discreet when storing their hard-fought funds.

Since we require all our charities to spend donations without converting to fiat in order to allow everyone to see how they’re using the funds, the charities often have to hold the donated crypto for a while before transferring it to their service providers or final beneficiaries. Therefore it’s crucial to ensure that the received donations don’t lose their value while they’re awaiting to be spent — which is exactly what we’re going to achieve by integrating DAI in our system.

From now on, the DAI token will be used as the main currency to store donations in, meaning that all donations accepted through AIDPay will get automatically converted into DAI and further used by charities to pay their suppliers, employees, beneficiaries, and other sorts of contractors.
I Trust Absolutely Everything The Media Tells Me
By: Matt Lillywhite
Tags: Politics, Election 2020, News, Humor, Satire

Satire

I Trust Absolutely Everything The Media Tells Me

I watch the news for 12 hours per day so I’m very informed

A lot of people say that watching the news is terrible for your mental health. But I disagree. It gives you important information about everything that’s happening in the world. Therefore, I’m extremely informed as I watch the news for 12 hours per day.

I will always be better than you. I will always know more than you. I am always hungry for new information. That’s why I get CNN to spoon-feed everything directly to me.

Everything the media says is always within my best interest. They know what’s good for me. It’s the absolute truth. They never have a financial incentive to push stories that drive fear and anxiety. That would be extremely disingenuous. Hence, why I trust everything the media tells me.

I’ll happily stay at home for the rest of my life if the news anchors at CNN say it’s a good idea. There’s a pandemic going on. I don’t care if the virus has a 99.8% survival rate for people aged 20–29 (like me). I need to panic.

I’ve already got the next ten years planned out. I’ll hide in my basement and quarantine myself from the rest of society. I’ll be safe as my family and friends can’t reach me there. Anyway, who really needs hugs or attention? All I need is an internet connection so I can continue to watch the news.

I want the lockdowns to last forever. It doesn’t matter if two-thirds of restaurants could be out of business by January. Nor does it matter if the country is taking on massive amounts of debt that will take decades to repay. We need to shut everything down. The economy doesn’t matter. That’s what the media told me.

Many scientists say that the chances of catching Covid-19 while taking a walk along an empty beach are tiny. But the media told me the virus is dangerous. That’s why I’m happy they shut the beaches as they obviously want to look out for my safety. Thanks for that.

I don’t care if new facts emerge about a news story. I like to stick with the narrative I’ve been given. Listening to different perspectives is just a waste of time. After all, I already made up my mind when I was most frightened.

I have a lot of political views. Specifically, the right ones. Everyone who disagrees with me is just misinformed. I feel sorry for them. So whenever someone has an opposing viewpoint, I always recommend to watch the news for 12 hours per day. That’s how they can become informed…. like me.
4 Ways Emotionally Intelligent People May Interpret Stress
By: Saarim Aslam
Tags: Life Lessons, Mental Health, Personal Development, Psychology, Self Improvement

Whether we acknowledge it or not, stress has both positive and negative impacts. However, we have unfortunately associated stress with negativity. The emotionally intelligent people will tell us that this is false and that we can actually be flexible in our approach to stress to utilise it in positive ways.

Psychologist Dr Daniel Goleman says that two key components of emotional intelligence are self-awareness and self-regulation. Self-awareness is the ability to understand and recognise your emotions, whereas self-regulation involves being flexible and expressing the appropriate emotion.

This tells us that the emotionally intelligent are able to recognise when they are stressed, figure out why and then adapt their emotion to the situation to help them progress. Studies have shown that high emotional intelligence is associated with less job stress, predicts happiness and is central to being resilient.

When you think about the huge entrepreneurs — Bill Gates, Jeff Bezos or Warren Buffet — their emotional intelligence needs to be high to be able to tolerate the stress they come under. If they aren’t able to interpret and deal with stress appropriately, would they have been able to succeed?

Emotional intelligence can be taught and applied. As psychologist Delphine Nelis found, training individuals in emotional intelligence resulted in a “significant increase in emotion identification and emotion management abilities.”

A good way to do this is to examine how emotionally intelligent people interpret stress and apply this to our own lives to reduce distress, increase happiness and keep fighting in the face of adversities.
“Remember your baptism, and be thankful.”
By: Jason B. Hobbs Lcsw
Tags: Baptism, Grace, Spirituality, Religion, Christianity

I remember my baptism.

I was nine or ten years old and the minister was a fellow by the name of Frankie Hodges at Marie Baptist Church in Dublin, Georgia. This was a Southern Baptist church so we had a baptismal pool behind the pulpit. There were these two swinging doors that looked a lot like shutters on a house. These shutters would swing out whenever the minister and the person to be baptized were in their places, like a drama that was being acted and re-enacted.

The water was cold, really cold. But in I waded … with Rev. Hodges … to be dunked like all good Baptists would be.

Whenever I was baptized, it really did feel like a show that was being put on for an audience. Those shutters I mentioned were like curtains to be pulled back so that the spectators could see the event. The only people that really had anything to do were myself and Rev. Hodges.

It almost made you nervous. I mean I had seen people snort and cough as they came up out of the water and you hear stories about skinny little Baptist preachers who couldn’t quite hold up some big burly guy that he was baptizing.

There was a fear that you and you alone were doing this. This was your action. But I don’t think of it quite in that way anymore.

If baptism is anything, it is God’s action. It is God’s promise to us, to all of us. And it is something in which we all participate. That is why I now cannot imagine a service that includes baptism but doesn’t include a response by the congregation. We are all in this together. We as Christians are the community of the baptized.
Auditing, History of database modifications with Hibernate — Envers Solution !
By: Blog Moove-It
Tags: Hibernate, Envers, Auditing, Java Ee, Java

Envers is one of the Hibernate’s project sponsored by Redhat. Works with Hibernate and Hibernate Entity Manager.

Aims to enable easy auditing of persistent classes. For each audited entity you must annotate your persistent clases with @Audited, a table will be created, which will hold the history of changes made to the entity.

The idea is very similar to CVS or Subersion. Each transaction with updates, deletes or inserts made in the database with hibernate generate a new revision number. One transaction is one revision.

Envers provide a simple way to retrive your data of a revision using: revision number, date, queries with min and max function between others.

You can use Envers wherever Hibernate works: standalone, inside JBoss AS, with JBoss Seam or Spring.

It’s very easy …

@Entity

@Audited

public class Usuario {

public enum Rol{

EMPRESA, ADMINISTRADOR,MESA_ENTRADA;

}

private Long id;

private String usuario;

private String contrasenia;

private Rol rol;

@Id

@GeneratedValue

public Long getId() {

return id;

}

public void setId(Long id) {

this.id = id;

}
The Data-Driven Citizen
By: Dana Bullister
Tags: Design, Civictech, Data Visualization, Local Government, Data

How critical data is conveyed to the public and our project to do it better

Dana Bullister, Information Design and Data Visualization Masters Candidate, College of Arts, Media, and Design, Northeastern University bullister.d@northeastern.edu

As an undergraduate computer science/cognitive science double major, I was fascinated by how even complex concepts might be effectively conveyed to broad audiences. One of my favorite class readings, in fact, was an essay called “The Science of Scientific Writing.” This essay makes the bold claim that complex topics — even intricate, obscure scientific ones — may be communicated in a way clear and accessible to readers of many backgrounds and levels of expertise. By leveraging universal principles of how people process information, the authors show how simple changes in writing style can dramatically increase comprehension. I believe that the same framework may be used in other, more visual communication channels to add clarity to previously impenetrable muddle.

Nowhere is making complex topics accessible to broad audiences more critical than in the domain of enabling a functional democracy. The democratic system, by its nature, requires that ordinary people understand and decide on a mind-bogglingly wide array of highly complex issues like international economics, healthcare infrastructure, legal procedures, and more. Or, at least, it requires a level of understanding sufficient for selecting the best candidate to decide for them, which in itself may be far from easy. At a moment in history marked by viral misinformation, it is clear our systems for public communication have broken down. Social and political factors are acutely involved here, not simply barriers in technology or poorly designed fact sheets. Nevertheless, an effective civic data communication infrastructure remains a necessary, even if not sufficient, component of any transparent and well-functioning democratic system. Such an infrastructure forms the foundation of an informed citizenry and representative body, productive public discourse, and, ultimately, more intelligent policy decisions.

In this post I will review research literature and other sources that shed light on some key questions core to this communication design challenge:

How do ordinary lay people process data and statistics?

What are the current constraints and approaches to sharing civic data?

How do citizens evaluate these current practices?

And finally, how might these design practices be improved to better facilitate citizen comprehension of relevant civic information, more data-driven advocacy, and better policy making?

These insights will be used to inform a larger research initiative, undertaken with Professor Rahul Bhargava of the School of Journalism and Media Innovation and the Department of Art + Design at Northeastern University, as well as in collaboration with an external community-based organization. We plan to collaboratively prototype a design product aimed at improving on existing tools for communicating civic data.
TikTok Yasaklanmalı mı?
By: Betul Colak
Tags: Socail Media, Tik Tok, Privacy, Children Rights, Data Protection

After studying the English language in the U.S., I started law school at Bahçeşehir University in 2016. I am interested in IT Law.

Follow
Your Habits Are Your New Identity
By: Chad Prevost
Tags: Two Minute Takeaway, Books, Psychology, Self Improvement, Authors

You become your beliefs one small vote at a time. It’s a good reminder that if you really want to establish a habit, you should inhabit the identity of what you are becoming.

In Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones, James Clear emphasizes:

“You do not rise to the level of your goals. You fall to the level of your systems.”

He certainly makes a powerful argument as to why. There are a lot of books on habits, and a lot of great ones, but recency bias notwithstanding, Clear is convincing. He tracks his own progress in such a systematic and orderly way.

Change is so hard. Even to just start a new habit. We get so proud of ourselves when we do start a new habit. We always begin with the best of intentions, and sometimes we really do stick with the habit for a while. Then, almost inevitably, we tire. We lose focus. We decide the commitment isn’t worth it. We hit an obstacle, get derailed, and never quite come back around.

That’s why Clear emphasizes the idea of identity-based habits. If you’re looking for change that could actually endure the test of time, then it’s going to have to be because you are this new person. It’s the highest level of habit formation. The bottom level is the outcomes we want to see. The second level is the process we put in place to achieve the outcomes. Only then do you get to your identity shift.

Clear writes:

“In my experience, when you want to become better at something, proving your identity to yourself is far more important than getting amazing results. This is especially true at first.”

I also recommend this powerful book because Clear really covers the bases. He gives credit where credit is due, and he constantly re-evaluates ideas and interprets them into his own originally constructed ideas.
Little joys of life
By: Lakshmi Narayanan L
Tags: Joy, Sunrise, Poetry, Morning, Life

Hitting the snooze for 5 more minutes, multiple times,

Sleeping in, and listening to the wind chimes;

Waking up gingerly, and rubbing your eyes,

Stretching out slowly, and wishing that time never flies;

Staring out the window to see leaves covered in dew,

Oh you know, that moments like these are only a few;

Wafting up the favorite aromas of your brew,

Momentarily distracted by the sounds made by the crew;

A chirp, a hustle, a pleasant din,

Enjoying the morning is not a sin;

Exchanging pleasantries without a strife,

Wishing you celebrate the little joys of life…
給爸媽的輔具該怎麼選？專業輔具家業者分析給你聽
By: Tony Zeng
Tags: 輔具, Health, 健康, 親子, 生活

in Both Sides of the Table
Launching at the End of a Sprint
By: Morgan J. Lopes
Tags: Startup, Agile Methodology, Software, Entrepreneurship

For the last few years, we’ve been doubling down on our sprint-based approach to software engineering. Unfortunately, one trend hasn’t seemed to change. When we say ‘development ends’, clients seem to hear ‘the product is ready to launch’.

There should always be a buffer between when software engineering completes development and when customers are invited to partake. Ideally, this gap is measured in weeks, not days or hours. There should be time for documentation, support, training, and communication. When the last line of code is freshly written, it’s unlikely those elements are ready for public consumption.

Assuming the sprint involved engineers actually writing code, the software product needs to be tested. There’s a myriad of other services and configurations required to ‘get off the ground’. To name a few:

System Emails need to be configured

Code and database changes deployed to the production environment

Custom domain setup and propagated

Your product has been tested and proven capable of holding up

Promising the product to customers and clients on the last day of a sprint puts everyone on edge. Not only does it leave zero room for error but further stresses an already complex process.

Apart from the more ‘technical’ issues that need to be set up and checked, there are a number of non-technical checks that need to be made:

Your customer support team will need to be hired and fully trained

Everyone in the company — executives, marketing, customer support, development, etc. — will need to be made aware of the launch and ready to field questions or requests from customers

You’ll need yo create your plan to track user behavior and make sure the metrics you track are most important for your team

The last day of a sprint cannot be the first day of product launch.
Looking for Colour
By: Kaustuv Ghosh
Tags: Ice Cream, Literature, Race, Poetry, Art

Photo by Brooke Lark on Unsplash

An ice-cream cart is the best place to look for colour.

If you are really that smart, you will look at the chart.

The different hues of blues, yellows, browns and rainbows

Have fingers jabbing at them during that magic hour

Between dinner at sunset and a late supper.
The importance of self-talk
By: Regina Carbonell
Tags: Life Lessons, LGBTQ, Mindset, Self Improvement, Love Yourself

What’s the first thing you tell yourself when you wake up in the morning?

I’m not talking about the first thing you say out loud, but what is the first voice you hear inside your head?

Do they say “heck yeah, I’m so excited to start my day!” or “oh, no, morning again…”?

“selective focus photography of man's reflection on a broken mirror” by Fares Hamouche on Unsplash

“Identify demeaning self-talk and rewrite it”

If your answer is anything within the lines of “shit, fuck, damn, oh shut up!, not again…” I hear you. And you can train your brain to welcome you in the mornings with something like “sun’s bright today, smile gorgeous, what a great night!, mhhh good morning…” and others.

We are a bunch of habits put together and that’s our life. You pick your habits and that’s you and your everyday. I know, it sounds sad, but it’s actually pretty amazing.

Because that means that you can change your life by changing tiny little habits like brushing your teeth once more every day, quitting a bad habit like smoking (says while lighting one) or by telling yourself nice things more often.

Edited by Regina Carbonell

Today I will only teach you ONE exercise that you need to practice over the next 21 days. If you fail one day it’s alright. Just start over your 21 days.

Every time you tell yourself something cruel or negative, you need to repeat yourself a positive counterpart.

Find some examples of my own:

Clumsy bastard: no I am not clumsy, I was not paying attention. Pay more attention and you’ll do better. Pay more attention and you’ll do better. Pay more attention and you’ll do better.

I’m so fucking stupid: no I am not stupid. I am clever. I just made a mistake. I am not stupid, I am clever. I just made a mistake. I am not stupid, I am clever. I just made I mistake.

I’m a fucktard//I’m too clumsy//feel overwhelmed by “silliness” feeling: I forgive myself for not being perfect. I am awesome as I am, clumsy and all. I forgive myself for not being perfect. I am awesome as I am, even when I don’t know better. I forgive myself for not being perfect. I’m fucking ducking awesome pawsome as I am. Being clumsy, silly and accepting my mistakes is part of me being amazing.

We all feel stupid, wrong and a bit crazy sometimes. Being your weird self is part of being awesome. Don’t lose yourself on being average. Remind yourself daily how much you love yourself. That you are allowed to be wrong and make mistakes in order to grow and that the people that loves you are humans too therefore, flaws.

I love you loads, and so should you.
Apple Snatches AI Startup to Smarten Siri
Tags: Apple, Siri, Voice Assistant, AI, Technology

Voysis uses artificial intelligence to improve a digital assistant’s ability to understand a person’s natural language while shopping. Apple reportedly wants it to help give Siri a boost.

By Justin Herrick

Apple has acquired another artificial intelligence startup, according to Bloomberg.

Voysis, a Dublin-based startup, will join Apple and aim to improve Siri’s ability to understand a person’s natural language. It focused on shopping-related voice commands, but Voysis’ technology should grow under Apple’s guidance to support general inquiries as Siri integrates with other apps.

E-commerce companies used Voysis’ technology to offer enhanced product search results through their apps. Bloomberg noted an example in which the user utters phrases such as “I need a new LED TV” and “my budget is $1,000.” Voysis’ technology understands the phrasing and sifts through a partner’s database to return appropriate products in search results. Clearly that’s useful to Apple if it can serve product search results within Siri rather than redirecting to an app immediately, or if Apple just wants to better understand a person’s natural language altogether.

Siri acts as an excellent digital assistant, but some users still feel that it falls short of what competitors offer. Alexa integrates with a countless number of platforms, and Google Assistant taps into an unbeatable knowledge graph. Apple, however, might turn out with a dominant digital assistant within the next few years. In addition to Voysis, Apple acquired startups including Turi, Laserlike, and Xnor.ai in recent years. Each of them targets artificial intelligence through specialized technologies.

Apple didn’t disclose the terms of its deal, and a spokesperson told Bloomberg that it will not discuss what’s next. Perhaps the Cupertino-based company will detail the future of Siri during its online-only Worldwide Developers Conference in June, but don’t expect anything major as some of the acquisitions occurred within the last couple of months.
The award has found its winner!
Tags: 3d, Festivals, Animation, Cartoon, Storytelling

Or better said, the award has reached its winner!

The festival called NAFF (Neum Animated Film Festival), which takes place annually in Bosnia and Herzegovina, has awarded the animated film “Dji. Death Fails”.

Franky speaking, it was a long time ago, in July 2014. And the prize was awarded for the best soundtrack. So, we give special thanks to those, who have worked on it:

Music theme — Gogol Bordello, and the sound design — Alexander Bulgarov and Yuri Scutaru.

Finally the reward has reached us! The post offices are still working.

tigan.md
Wizards
By: John Bysinger
Tags: Wizards, Poetry, Technology, Science

Wizards.

Wizards of the new millenia.

We look in the stories of old and they talk about wizards dreaming up new fancy things with their magic.

What if they really did exist?

These wizards conjured up new realities with their minds.

By pure intent and knowledge, they were able to make fantastical creations reality.

We look back and think just how silly this sounds.

Casting spells, reading tea leaves, conjuring animals, changing materials.

They all sound right from the pages of a story book.

But if we look at it in perspective,

These creations would have been ahead of their time.

Things that may not have even been concieved if not for the wizards.

Now lets skip forward to today.

Is intent all we need to conjure up things so fantastical to our world?

We as a people, have dreams, just look at the movies.

We dream of travelling far away.

We dream of travelling at the speed of light.

In K-Pax he talks about travelling on a beam of light.

In Star Trek, they beam themselves places.

What if we had wizards making this dream come true in our reality?

We do have them, but instead of alchemy and spells, they’re using bosons and quarks, quantum information, and light.

Today I read (in several reputable news sources) that some of these wizards work at the Max Planck Institute for Quantum Optics in Garching, Germany.

These wizards have managed to teleport an object a distance of half a meter, and this isn’t just some subatomic particle either.

They moved an object made of thousands of billions of atoms (still microscopic, but huge on a quantum scale.)

And they did it by entangling the quantum information of the object into a beam of light.

They made matter teleport on a beam of light.

The world dreamed it, and the wizards created it.

What other dreams will the wizards conjure into reality next?
I Can’t Find Anything Good to Read
By: Stephen Sovie
Tags: Anger, Promotion, Medium, Writing, Publications

I Can’t Find Anything Good to Read

And that pisses me off

Image by 安伦 李 from Pixabay

Today was a cold and snowy day. A perfect day for me to stay home, pay bills, do laundry and finish some other chores. Oh yeah, and I had some leisure time to read some Medium articles from people I follow. Besides my car was in the shop for a new starter and I couldn’t go anywhere. I figure I had a good couple of hours to relax and read, without any hindrances.

I opened my laptop and went to the Medium homepage and began searching for articles from the people I follow. I went to the section titled “New from your network”. I clicked on it and I started to scroll down. This didn’t take long. What the hell? There were 27 articles! I follow over 2K people and that’s all the articles that came up?

I started searching the Homepage. Then I got pissed. All of the articles on the top of the pages are from Medium publications. How the hell do I find articles from people I like to read? Then I started scrolling down the articles on the left-hand side of the homepage, where articles are separated under headings such as “Based On Your Reading History”, “Popular on Medium or other categories I had shown an interest in. There seemed to be no definite order of the articles. Some were recent and some were months old.

I spent some time here and finally said “bullshit” as I realized I could be here for days scrolling aimlessly. I noticed that I had already read many of the stories that interested me, quite a long time ago. I kept staring at the page in hopes that suddenly the path to those articles recently published by my favorite writers would appear in front of me. The more I stared the angrier I got. There is no easy way to keep up with my favorite authors unless they only publish in Medium owned publications, which I don’t think they do. Then it hit me. If I can’t find them, they can’t find me!

After my anger subsided I ascertained the only way I would be able to read new articles from my favorites was to manually put their name in the search line at the top of the Medium page. And that would be the only way my followers can find my new work. Sad! I spent most of the rest of my free time this afternoon trying to figure out a way for “not so famous writers” such as myself to be noticed and ways I could follow what is new from those I like to read. I came up empty-handed.

Other than the time-consuming effort of searching for our favorite writers’ new work, the only somewhat efficient way to read some articles is on the daily threads of the Medium Facebook groups. I gave up searching, for now, and instead, I spent the rest of my leisure time bitching in this extremely short story. I feel better now, but I still wish there was a better way.
Waffle House
By: Kenneth Johnson
Tags: Memory Management, Microfiction, Friday Fix, Memories, Life

50-word story prompt: Forget / Remember

Johnathan Weiss/Shutterstock.com

Damn! I’m supposed to be at Waffle House at 7 a.m.

Don’t ask me how I forgot to set my alarm because

I forgot.

I rolled up to WH at 7:15. Not bad, I thought. Inside,

I scanned the room thinking now if only I could remember

why I’m here.
A lesson, from Better Call Saul
Tags: Netflix, Television, Storytelling, TV

At this point it is safe to say that Breaking Bad is one of the most known and recognised TV series in the recent time, if not ever. Let’s just take this fact into account: this article from The New York Times shows that a recent study made by Netflix itself revealed that Breaking Bad is [still] one of the most binge watched shows in the streaming platform. That’s huge.

And just ask around, I bet most of people will tell you that they have watched it whether they liked it or not. It’s a big phenomenon. And that is important to highlight because this is not a conventional show, it’s one that raised the bar in storytelling by presenting a story in a way that only a few do and that can be seen as boring by many. Among the multiple effective things Breaking Bad did, is the fact that they were really worried about telling the characters’ arcs in the most complete sense, specially the main one, and do it in a way in which it felt like real life.

But all this success and uniqueness that Breaking Bad brought, made me think that Better Call Saul was going to be just a copy of it for the sake of making more money out of the world Breaking Bad had created.

After watching Season 1 of Better Call Saul last year, I was thankful to know that they were not copying Breaking Bad or relaying on its stories to make this a good one. And now, after finishing Season 2, I confirmed that storytelling can be done with inspiration and even imitation at some levels, as long as it’s not a copy but a source to make a good job and tell a story.

Nothing is original, at least not entirely. But that doesn’t mean copying, literally, is right. Better Call Saul treats its characters the way Breaking Bad did, as elements of the story that have to be developed as much as they need and no matter how long it takes. The main plot and subplots are explored in a way that most of shows don’t do, because they are too rushed, but not here. And the good thing is that Better Call Saul, even though it makes use of some characters from Breaking Bad, doesn’t sort this only as a way for people to remember them and the previous show, but to tell their story and guide the plot the way it’s intended.

Aesthetically, both in the photography and art department, you know this is Breaking Bad’s universe but with some added features, with some changes; long shots are common, wide angle ones tell more than we imagine, and the care in composition is impressive to the level in which is obvious that every single shot is thought carefully.

To me, this is a true lesson and eye opening experience as a viewer and someone who also tells stories through audiovisual products, because society might teach us that we need to be original, and that’s true, as long as you recognise that originality isn’t being completely unique (because it is impossible) but being inspired about things and “adapt” them to your objectives and way of living, or in this case on what you want to tell and how you want to tell it.

Follow us on Twitter and Facebook!

We are Chevy, Sole, Stef and Susan.
Flutter Quick Tip: Changing the Splash Color of ListTile
By: Rob Jones
Tags: Dart, Flutter, Programming

After seeing a ton of different answers about changing the splash color of different widgets, namely ListTile , here are two quick ways of doing it:

Be sure to check your specific widget, as some (such as RaisedButton and IconButton ) already have splashColor and highlightColor properties you can set without having to modify or add a Theme.

Option 1: Set it in your app’s ThemeData

Caveat: This option will change ALL widgets using splashColor or highlightColor to the colors you set, so if that doesn’t work for you, go for Option 2.

In your main.dart file, add ThemeData to your MaterialApp ‘s theme property (if it isn’t already there). Within ThemeData , add the splashColor and highlightColor properties. The splashColor property is the color that spreads from the tap position. The highlightColor is the color that fills in the ListTile . Change these to your desired colors.

Changing the main theme changes everything

Option 2: Wrap your widget in a Theme widget

This will override the Theme set within MaterialApp and apply it only to its children. If you can’t change the properties of ThemeData in MaterialApp , this method will work better.

Wrap your widget of choice in a Theme widget. The splashColor property is the color that spreads from the tap position. The highlightColor is the color that fills in the ListTile . Change these to your desired colors.

Two themes for two widgets

As you can see above, you can set a whole new theme without altering the main theme set within MaterialApp .

Final note: If your splash effect isn’t looking just right, try adding a level of opacity to the highlightColor :

highlightColor: Colors.blue.withOpacity(.3);

This will accentuate the splash effect better than an opaque color.

That is all — bye now.

Code:
What’s My Name?
By: Paul Maplesden
Tags: Friendship, Joy, Compassion, Beauty, Poetry

We all need a steadying hand on the shoulder, a smile or a hug during difficult times.

When life can seem dark, there are people around us and aspects of our own selves that can lift us up, reassure us and help us to face the future with more confidence and hope.

The darkest hour is often just before the dawn, and it’s only by experiencing the more difficult times of life that we can contrast and appreciate the beautiful, brilliant and joyful ones.

Taking a moment to understand who else is there for us, whether that’s another person or a reliance on our own strength of character, attitude and resilience can be a very powerful way for us to walk our paths, lighting the way for ourselves and others.

What’s My Name? — A Poem

Wipe away your tears my friend,

For in the darkness I am there,

At your behest I gladly come,

And bring myself to share,

A sense of light and mirthful joy,

I cast upon thee now,

Sadness lightens, a smile brightens,

Unknit thy troubled brow.

And if in the dark, you seem to dwell,

Well I’ll try to lift that too,

Darkness and fear, they’re not part of me,

So you know I’ll not find them in you.

And if in reflection, your thoughts find a place,

Be sure that rejection’s not the same,

And dreams of the past, they have a time,

But happiness comes from my name.

With an ambling gate and tuneful mirth,

I’ll bring you to your rest,

Fear and anger, they’re left at my door,

And joy can dwell in thy breast.

But if you want to get some attention,

You have to know the name to call,

And you can be certain of my gentle affection,

So forget me not, and I’ll bring it all,

To you.

Themes, ideas and background for this poem

This poem is based on the simple idea that we never have to face anything completely alone. We all have reserves of strength and hope inside us that can help us to face challenging times and difficult circumstances. Our close friends and family are but a simple request away, a quiet plea for help, love or companionship. Such love is unconditional; if we really need the help and we call the name, someone will come.

We never have to endure everything by ourselves, instead we can reach out or inwards, find respite and make a better way forward. This mid-length poem is comprised of three stanzas of eight lines each, for 24 lines in all. The rhyming scheme in each verse is ABAB.

Themes explored in the poem include:

Not having to face life alone. and there being someone else there to help you through

Remembering that our difficult circumstances don’t continue forever and that we can change our attitude and opinion of them, but that we might need help to do that

Having the courage to ask for help through difficult times, whether that’s aid from ourselves or the family and friends that we’re closest to

Understanding that our past and what we’ve been through don’t completely define us

As you read this poem, here are some ideas for further contemplation and exploration:
This Is the Pain You Can Actually Run Through
By: Alyssa Atkinson
Tags: Health, Personal Development, Fitness, Self Improvement, Running

This Is the Pain You Can Actually Run Through

And why you should.

Photo by Bruno Aguirre on Unsplash

I was in my sophomore year of college, coming off of my best indoor track season to date. Everything was clicking. Workouts had been going incredibly well. I had raced personal bests in every distance from the mile up to the 10k.

I capped the season off with a shiny new 3k personal best time of 9:43, and earned all-conference honors. Now, it was time for a one week break between seasons to recharge.

I spent the week doing as little as possible. I ate as much junk food as I wanted, stayed up late, and didn’t take a single step that I didn’t have to. And as usual, the first week back after my break was a tough adjustment.

Physically, my body felt as though it had forgotten how to run.

The act of running itself felt less fluid. Every single day, my body ached. My confidence in my abilities had vanished. And the workout days were the hardest part.

There was one huge barrier I had to re-adjust myself to in order to get back to crushing my runs and races — my mental block. In one short week, I had already forgotten how to work through the mental pain that comes with running hard.

Luckily, the wounded mind is something you can actually train through. Here’s why you should, and how you can do it.
The Nimiq Community Update: Open source
Tags: JavaScript, Bitcoin, Nimiq, Cryptocurrency, Blockchain

*This article is an informative piece of literature, some aspects maybe factually incorrect and maybe subject to change in the future. None of the projects listed within this article should not be viewed as endorsements and due diligence should be practised. This is not financial advice.*

Want to support the writer? Donate some NIM to: NQ41 NUAG 25KF 244P FVJ7 ERPU X669 RN27 1GB2
The Barrette
By: Rhonda Marrone
Tags: Mother Daughter Bond, Grief And Loss, Memories, Poetry, Poem

Photo by Baran Lotfollahi on Unsplash

Looking for something new to pull my hair back with,

A sparkling barrette that belonged to my mother reveals itself.

It’s been in the same bag for a year,

One long year since she passed away.

Nonchalantly, I pull out the barrette.

Wrapped around, hanging down loosely

Is one hair

One of hers

Frozen

I stare

I touch it as though it might disappear.

Is it really here?

A hair with her DNA

I wrap it around my finger,

Around the barrette.

What do I do now?

What do I do with this treasure?

Throw it away?

Photo by guille pozzi on Unsplash

Unable to discard this precious gift because

It has her DNA

But I have her DNA…

Her body created mine

I don’t need her hair.

But how do I pluck it off of the barrette

After it’s been sitting here

Undisturbed for a year after her death?

It’s a gift

Do I take the hair off

Clip the barrette into my hair

Just like that

like it was never there?

I could leave her hair and

Let it mingle with my own

my mother and me

coexisting on my head

like she lives in my heart

I can do none of that

And I watch as my fingers move

The hair is wrapped gently around the barrette

And placed upon a shelf

Where it can be seen and touched anytime.

The barrette and hair, a special gift.

my photo

Mine and mine alone
Special Relativity Rebooted — Part 2
By: Kieran D. Kelly
Tags: Neoclassical Physics, Relativity, Neoclassical Relativity, Physics, Block Universe

In 1908 German Mathematician Hermann Minkowski showed how Einstein’s work on “Relativity” could be mathematically understood in geometric terms as a theory of a “4-Dimensional Spacetime”…

“Minkowski Spacetime”, as it is now known, is an idea that Einstein didn’t like initially — he thought it was too abstract, more pure mathematics than pure reality. However, he later came to embrace the idea, when he began to realize that it could provide a pathway to a more generalized theory of relativity…

With the introduction of the concept of 4D Spacetime (and its apparent confirmation in the General Theory of Relativity), “Space” and “Time” were no longer considered separate arenas, independent from each other. Going forward there was only to be an integrated spacetime; a “four-dimensional continuum”.

The concept of the spacetime continuum drove Einstein (and others) to introduce another new concept — the concept of “The Block Universe”.

Today, most physicists believe we live in a universe in which all space and all time co-exist, as a “block” of 4-dimensional spacetime. In such a universe, the past, the present, and the future are all on an equal footing.

According to physicists, our intuitive sense of the “Flow of Time” is merely an “illusion” brought on by the fact that we live “inside” this Block Universe. And so despite the fact that Spacetime and the Block Universe are things we can never see, or test for, directly; physicists assure us they are indeed Reality.

The strangeness associated with Special Relativity is often described, by physicists, as being “extremely counter-intuitive”. But is reality really this “weird”, or could the current understanding of Special Relativity just be missing the bigger picture?

In this second part of Special Relativity Rebooted we will be using the postulates of NCR to uncover the true “Physics of Time”…