fabiochiu/medium-articles huggingface dataset:
Why Are Kotlin Synthetics Deprecated and What Are the Alternatives?
By: Sahil Sharma
Tags: AndroidDev, Programming, Android App Development, Kotlin, Android

Why Are Kotlin Synthetics Deprecated and What Are the Alternatives?

Comparing which one to use: data binding vs. view binding vs. Kotlin Synthetics vs. findViewById

Photo by Louis Tsai on Unsplash

Recently Android has announced that with Kotlin 1.4.20, their Android Kotlin Extensions Gradle plugin will be deprecated and will no longer be shipped in the future Kotlin releases.

Android Kotlin Extensions plugin brought with it two very cool features :

Synthetics let you replace calls to findViewById with kotlinx.android.synthetic bindings.

let you replace calls to with bindings. Parcelize allows you to remove boilerplate and easily create Parcelables through the @Parcelize annotation.

And with the deprecation of this plugin, we will no longer be able to use these features. Don’t worry about Parcelize, as it will be now shipped as a standalone plugin: kotlin-parcelize. But this is definitely going to be the end for Kotlin Synthetics.

Now Android developers all across the globe, have, with a very heavy heart, to say goodbye to Kotlin Synthetics. But first, let's understand why Kotlin Synthetics was introduced in the first place, why it’s deprecated now, and what the options are for us apart from it.
Passion over Bitcoin: how cryptocurrencies and ICOs will be regulated in Russia
By: Alexandra Petrova
Tags: ICO, Bitcoin, Media, Regulation, Cryptocurrency

Rbc.ru

In January 2018 Russian Finance Ministry (Minfin) presented the Digital Assets Regulation Bill which defines a regulatory system for cryptocurrencies. On March 20th it was submitted to State Duma. After Minfin, Central Bank and market participants discussed the bill. Thee decided to remove a possibility of exchanging cryptocurrencies to from the document. An investment limit for non-qualified investors still wasn’t determined.

According to experts, the proposed regulation is quite excessive. In their opinion, these methods of regulation do not correspond to the innovative nature of the market and can even provoke a massive withdrawal of crypto projects from other jurisdictions.

Pavel Salas, Tokenbox CEO, believes that the draft bill is still very raw. In its current form it’s likely to kill the whole idea of ​​mining, cryptocurrencies and ICOs in Russia, as companies will continue to conduct ICO abroad. But law makers will definitely improve the bill, which is initially aimed to protect users from scam as well as to create a blockchain friendly environment within the state.

Source: https://www.rbc.ru/finances/20/03/2018/5ab125e69a79474518a5c2a1
CI/CD Pipeline for a NodeJS Application with Jenkins
By: Prashant Bhatasana
Tags: JavaScript, Jenkins, Automation Testing, Nodejs, Ci Cd Pipeline

In this article, we are talking about how to Build Node.js and React application on Jenkins with Freestyle Project.

Note: Following this article you can build Node.js and React app with npm

If you don’t have setup Jenkins on your machine please follow this article.

After setting up Jenkins we need to configure NodeJS on Jenkins.

Install NodeJS plugin

Open Jenkins: Manage Jenkins > Plugin Manager > Install NodeJS plugin.

Global Tool Configuration

Open Jenkins: Manage Jenkins > Global Tool Configuration > NodeJS

Set your compatible node version. We can set multiple NodeJS version for multiple application.

1: Build Application with freestyle.

Create a Node application job

Open Jenkins > New Item > Enter any job name> Choose Freestyle Project > Click on Save button.

2. Source Code Management > Check Git and give Repository URL:

Git URL to your repo. Take this URL from Github. It should be the format of git@github.com:{username}/{repo}.git

Credentials: Select the one you created before.

Branches to build: $branch

3. Build Environment > Provide Node & npm bin/ folder to PATH

Select the Nodejs version that is compatible with your application.

NodeJS Installation: It will display all Node version that is added through Manage Jenkins > Global Tool Configuration > NodeJS

4. Build > Execute shell:

#!/bin/bash echo "------> Install node modules <------"

npm install echo "------> Gulp webpack <------"

gulp webpack

Here I’m using webpack for my NodeJS application build tool but you can use Gulp, Grunt, Webpack,Express.js, pm2, Babel Any tool that you want to use.

2: Build Application with Jenkins Pipeline.

you can build an application with the Jenkins Pipeline project.

Create a NodeJS application job

Open Jenkins -> New Item. Enter any job name > Choose Pipeline > Click OK.

Pipeline > There 2 options for Jenkinsfile.

Pipeline Script Pipeline Script From SCM

Pipeline Script:

You can write your Pipeline code directly on Jenkins job.

Pipeline Script From SCM:

Pipeline supports fetching the DSL (Domain Specific Language) script from the SCM. Typically called Jenkinsfile and located in the root of the project.

Select Pipeline script from SCM from the definition.

from the definition. Select Git as SCM

Git URL to your repo. Take this URL from Github. It should be the format of git@github.com:{username}/{repo}.git

Credentials: Select the one you created before.

Branches to build: $branch

For both types of the pipeline, you can use this demo pipeline code.

🎊 🎉🤖🎊 🎉 Our CI/CD Pipeline for a NodeJS Application is successfully configured.

Click on Build Now.

Now, you can watch the progress in Console Output.

You can also integrate your build with slack using the Slack Notifications plugin.

You can create a Slack trigger to run this job So you don’t need to open Jenkins whenever you create the build, Just execute the slack command and your build is up and running.

Thank you for reading, if you have anything to add please send a response or add a note!
The FAA Regulations: A Blockchain For The People, Of The People, By Well, Me.
By: Shaun Thomas Villafana
Tags: Government, Regulation, Blockchain, Policy, Authentication

Introduction

Unbeknownst to most of the American citizens, there is a website called “Regulations.Gov” (currently testing their new beta-site) where the public is asked to comment. I discovered this website earlier this year (2020. Yup. Of course right?) with never having even heard of it before.

I liken the instance as to a government official sending armed troops to steal from you without notice nor reason other than personal gain and then saying

“What? I told you about it every day for two-months straight — from my basement, while I was alone. You never responded, so…”

Although I will not get into the likelihood of any government official thinking about you in their basement nor the plausibility of what contexts they may be doing so under, I will say that it isn’t too far off from the actual conduct, given that the suggestion of this being “open to the public with public awareness” is completely a joke, and they are stealing from citizens after all. We do pay their mortgage. For their third and fourth mansions.

Let me be completely clear, each illegal act, each immorally heinous deed done (-with reverence to the fact: just because there are no laws created for some things, or laws created for some things, does not mean that they are moral actions or immoral actions by default), every single politician or person of office who is guilty of an act or order which invariably harms, steals from, unjustly imprisons, impedes rights of, or otherwise causes suffering to a citizen who they are responsible to — is in betrayal of their own foundation which they sit upon and is not rightfully in seat of office or position had.

This is not something which needs to be “caught in court” to be “decided of”. It is inherent and ο de facto και a priori. Although of course, any punishment of the acts should be reserved for a court of law, the actual guilt of the matter is preeminently sustained, and as such — the guilty party by the very act and deed itself if such ever were to occur, does immediately nullify them of their position by the assumption upon the holder of the position that they were to stay honorable to their positions responsibilities, and to the measure in value of importance and aspects of their positions responsibilities.

Thereby making any and all payment attained from that point of guilt and onward -theft.

These things should be common sense. I thought they were. I knew this before I even knew the words to say it.

But, as they say, and I do like to say,

“Everything that needs to be said has already been said.

But since no one was listening, it must be said again.”

— André Gide.

Of course, everything has an irony and thus there is an opposite end to the spectrum…
Chris Moss Acid The Waiting Room [EP]
Tags: Music, Music Review, Swam404 Techno, Acid, Electronic Music

I’ll warn you now. You should buy this.

I would hate to jump on the “This is one of the best things Chris Moss Acid has done” bus, so I’m going to gingerly take the hype train. And probably end up arguing with someone sitting in my seat whilst being in the wrong carriage.

Listen to that first track. That’s some mournful beautiful Science Fiction memories Detroit rippled acid flecked Electro splendid.

The release is worth ‘Black Philip’ alone and Moss knows it. The bastard.

It’s track length is even 606. The title refers to the goat in the film ‘The Witch’

Bastard in a light-hearted British comedy way…since the Internet killed sarcasm and satire…

Now listen to that. That’s the title track, linked through to give Subwax Distribution some love, time linked to where it starts. Listen to that acid.

That’ll do.

That’s really all y0u can say. It’s pretty close to perfect.

As with much of Moss’ work there’s references and nods to television, film and pop culture all the way through. Here, the title refers to the Twin Peaks black lodge. Specifically, the red room, which The Man from Another Place refers to as the ‘waiting room’. Remember? If not, go do the thing with the ‘Peaks. There’s no way I’m getting into explaining purgatory in a techno review.

Then there’s the side eating ‘48.858275 2.294438’ — you should google maps the co-ordinates as in Moss’ own words “was where I thought of a really long repeating bassline ambient track. With a 32 bar 303 line.”

There’s Orbital hints and it seems like tempo twists and again the drifting Science Fiction reminiscent railroad feeling of transit coming up coming down, the sideways shit. This deserves to be seared into the minds of some humans working hard to recover some serotonin and adjust dopamine levels after a summer they can’t quite remember but the house wasn’t this destroyed when we started was it?

This is going to sell out fast. You should get on that. What are you doing reading this, it’s barely legible as I was dancing most of the time I was trying to review the thing. Review is a stretch. More, point you in the right direction. Over there.

Have a listen to a Chris Moss Acid set over on Moog BCN -

And here’s their promo text…

“The new signing for the sparky Polybius Trax team is called Chris Moss Acid, an Englishman who has contributed to the label’s catalogue with the EP The Waiting Room, which you can now listen to online. He has mastered all dimensions of the acid sound right through the spectrum from raver to braindanceable. With an extensive discography shared between countless labels and a lover of old-school gadgets, his live performances consist of an overwhelming acid overdose very much in the Polybius Trax style”

Out via Polybius Trax

It can be found via Juno for pre-order and likely others.
Mattel CFO calls Opening Ceremony ‘A thrill’
By: Special Olympics
Tags: Experience, Nonprofit, Sweden

I wanted to share this great post from Special Olympics Board Director and Mattel, Inc. Chief Financial Officer, Kevin M. Farr who was blown away by his experience walking in with Team Sweden in the Parade of Athletes and asked to share his excitement in the guest blog post below.

Hi from Athens Greece……we are having such an exciting time at the 2011 Special Olympics World Summer Games. In addition to the 7,000 athletes and their families from over 175 countries, Team Mattel is in force with 50 Mattel employees from 20 countries volunteering in support of the games and athletes. Last night, I had the incredible experience of being included in the spectacular opening ceremonies with over 90 talented Special Olympic athletes from Sweden! The athletes and I were very, very excited to walk into the stadium that hosted the original modern Olympics over 100 years ago! It was such a thrill to cheer and wave to the thousands of cheering fans with the Swedish team! It was an experience that I will not ever forget!!
BCH 硬分叉之亂
Tags: Bitcoin, Bitcoincash, Cryptocurrency, Sevencoin, Hard Fork

in Both Sides of the Table
Building an ocean vector map with MapTiler
Tags: Maps, GIS, Vector Tiles, Maptiler, Bathymetry

Most web maps usually focus on the land features, and the ocean is often left as a flat blue polygon. Let’s change that and make it look better ! Here are a few simple steps to create bathymetry vector tiles with MapTiler Desktop and map the ocean depths on MapTiler Cloud.

Creating bathymetry vector tiles

Ocean depth data can be found on the bathymetry section of the NaturalEarth website. Global nested polygons are downloaded as individual shapefiles, each of them coming with a DEPTH attribute from 0 to -10000 meters.

Although this data can be processed as it is, we would rather merge all the shapefiles together first in QGIS, and dissolve polygons by depth. That allows to provide a single input data source to MapTiler Desktop and makes processing faster. We then only need to adjust the desired zoom levels (z0-z5) and launch rendering to get optimized vector tiles in a few minutes.

The result is then directly uploaded to MapTiler Cloud, and a new tileset is subsequently created in the Tiles section of the related account.

Processing bathymetry vector tiles with MapTiler Desktop

Mapping the ocean depths

A map can now be created with a single fill layer using the new bathymetry tileset referenced as data source. A straightforward way to style it is to use a data expression for the fill-color property, which interpolates two color codes across the minimum and maximum DEPTH values. We may also define a color for every DEPTH value using a standard match expression, for full control on the rendered color palette.

The same bathymetry layer may be used in a line layer added on top, for highlighting the styled depths polygons. We may finally also use it in a symbol layer with a line placement to display the depth value labels on the map.

Example style expression in MapTiler Cloud advanced editor

Publishing the vector ocean map

You may add this data and style to any MapTiler map, or use it as a starting point to build your own ocean map. This is what we did in this example map, adding it to a simplified version of our Topo map style. Once published on MapTiler Cloud, the map is available through TileJSON, XYZ and WMTS endpoints as usual. Images of the map can also be generated using the Static Map API.

These steps can easily be reproduced using the free version of MapTiler Desktop and a free MapTiler Cloud account. Upgrade to one of our paid plans for faster processing and hosting larger datasets.
《Agent Quant一週》 從牛熊證分佈圖， 預示恆指本週上升？ (Vol.44–11月4日–8日)
By: Investbot App
Tags: 投資, 香港, 交易, 港股, Algorithms

investbot is strategic trading robot based on massive financial big data evaluation and machine learning to maximize profit. More details: http://bit.ly/2MWVdM6

Follow
Founding DIYBio and growing a biotech business — with Ellen Jorgensen
By: Alexander Titus
Tags: Careers, Synthetic Biology, Insights, Podcast, Biotechnology

Today I get to talk to Dr. Ellen Jorgensen, who co-founded the DIYBiology movement, inspired the world through her TED talks, and is now the co-founder of a biotechnology company using microbes as tracking tags. I had the good fortune to get to chat with Ellen and share my approach to life and we bonded over biotechnology, synthetic biology, and traveling to Alaska. One of the common themes I hear a lot is how people find their way into biotech through exploring the world rather than a simple path everyone follows. So listen to Ellen’s story and take in all her great ideas! I hope you enjoy the conversation!

You can watch the episode on YouTube, embedded above, and I encourage you to check out my YouTube channel as well. You can also listen to the episode as a true podcast on all your favorite spots, like Apple Podcasts, Spotify Podcasts, Google Podcasts, etc. The episode is also embedded below, but check out my podcast webpage for all the info you need.

Subscribe to the podcast and YouTube channel, leave a 5-star review, comment what you like, so we can do more!

You should make sure to subscribe to my newsletter and I’ll send you all these amazing conversations directly to your inbox. Its the fastest and easiest way to stay up to date, get great episodes, and join the conversation.

Subscribe to join the conversation!
How Can You Escape the Catch-22 of Self-Confidence?
By: Larry Cornett
Tags: Confidence, Success, Self, Self Improvement, Self Confidence

SELF-CONFIDENCE

How Can You Escape the Catch-22 of Self-Confidence?

An unexpected way to break the cycle

It seems impossible to be successful without some degree of confidence. But, how can you be confident without achieving some degree of success?

It’s a chicken and egg dilemma. When you see a successful, confident person, what came first? The self-confidence or the success?

I remember going to school with someone who seemingly had it all. They were smart, wealthy, attractive, gifted athletically, and had tons of friends.

But, they also were gifted with a series of disastrous relationships. One failed after another. Each time, the partner walked all over them and treated them like crap.

I found it baffling. We were talking about the latest crash and burn one day, and I said, “Why do you put up with that? You’re a catch. You don’t need to put up with that.”

As the conversation unfolded, it became clear to me that they felt unworthy of love and a good relationship. They completely lacked the self-confidence I assumed they had, and falsely projected. They were the one who felt lucky that someone would go out with them.

I had already experienced my fair share of massive failures in school, work, and life. I had failed relationships too.

I remember thinking to myself, “Damn. If that person who has it all still doesn’t feel confident, what chance do I have? I’m screwed.”
Kotlin and Dependency Injection Using Spring Value Annotation
Tags: Programming, Kotlin, Spring, Software Engineering, Java

Field Injection

Once you have the above, go and open the KotlinspringvaluedemoApplication.kt file. This class has the main function that starts up the Spring application. We are going to add some fields and a method to this class like so:

KotlinspringvaluedemoApplication.kt — Field Injection

Alright, let’s discuss what we have done here. So, we added two fields ( storeName and storeAddress ) whose values are going to be injected from the application.properties via the @Value annotation.

You can see that we put store.name and store.address as the value parameter for the annotation. This tells Spring to inject the values that have the keys as store.name and store.address in the application.properties file to their respective fields.

If you are a Java developer, you might notice that the $ character is escaped \ here and wonder why. The reason is that in Kotlin, $ is a reserved character and used for string interpolation.

Lastly, we also added a method annotated with @PostConstruct . This annotation essentially sends a signal to Spring to execute the annotated method after the dependency injection is finished. The purpose of this method in this exercise is to demonstrate that the injection works.

Let’s go ahead and run the main function:

Result of running the main function

Ta-da! We can see that Spring injected the values and our getStoreInfo printed them as expected.

Spring component field injection

We don’t usually inject values into the main class but rather into other classes within our application. Essentially, as long as the class is a Spring-managed bean, we can leverage the @Value annotation for injection. Let’s see an example of this.

Go ahead and create a new class called StoreConfiguration . The content of the file is as follows:

Here, we annotate the class with @Component . By doing this, we are telling Spring that this class is to be considered as a candidate for auto-detection when it performs class path scanning. In other words, the class will be managed by Spring as a Spring bean.

Similarly to what we did with the main class, we annotate a field size with @Value so that its value will be injected from a property that has the key store.size-in-meter-square .

Let’s run the main function and see if the value of the size gets printed with the value that corresponds to store.size-in-meter-square in application.properties :

Main function prints StoreConfiguration size value

Perfect. We can see the value of the store size gets printed, which means the injection worked.
Chainlink Creates On-Chain Oracle Directory with ENS Name “data.eth”
By: Brantly Millegan
Tags: Ethereum, Chainlink, Blockchain, Dapps, Domains

Chainlink has created an On-Chain Data Directory with the ENS name data.eth.

Each individual price feed is named with a subdomain. For example, the on-chain address for the ETH/USD Price Feed can be found by querying the ETH address record of eth-usd.data.eth. Data.eth names can be queried via the ENS Manager App, block explorers like Etherscan, as well as directly from any full node.

This improves the discoverability and readability of price reference feeds and provides developers with on-chain proof that they have connected their smart contracts to the correct price feed contract.

We hope to see other protocols adopt this practice of naming their contracts with ENS names for better discoverability and readability.

You can read more about what Chainlink is doing with ENS in their docs and on their blog.

Follow us
The Secret to Making Your Dreams Come True
By: Lucy Milanova
Tags: Life Lessons, Inspiration, Self Improvement, Mindfulness, Life

4. Doing is achieving

So, how to get ourselves to act on what we need to and want to do, however, we somehow lack self-belief and confidence, or just the initial courage to unglue ourselves from the place of procrastination and fear?

Here’s my coaching tip for you.

If you do know what you want and you also know what it requires of you, but the task itself scares you as it seems too big to imagine, too big to grasp and handle. Then there’s one simple brain-trick for you to make it less overwhelming, more realistic and achievable for your mind. And that’s dividing a seemingly big activity into smaller task portions and chunks of time.

For instance, if you wish to start writing from the scratch, or painting after years of no creativity, hand-crafting, exercising regularly, or doing a long business/ educational course online, then start by giving yourself to it for a very short time a day — let’s say 5 to 15 minutes, to begin with. Don’t push yourself into this by spending a lot of time on it at the beginning, making it an hour from a zero. It may scare the hell out of you and your mind and discourage you from continuing.

Start on a very low key and gradually develop the habit as well as the interest of doing it by adding up the time slowly. Five minutes to five minutes and you’ll soon be on an hour per task a week or even more!

Ten minutes for language learning a day is an hour in a week! That’s always better than doing nothing when you scare yourself off with too much initial commitment and time obligation.

Plus, if you start low, you are developing your interest slowly and giving yourself the time to get used to the new routine and to enjoy the activity rather than pushing yourself through it by force as it were work to be done rather than what’s giving you joy.



Another tip for achieving by doing is to start brainstorming about the activity in your mind before you start actioning on it. Do it by writing down all that is now on your mind when you just think about it — the task, dream, project. What you’ve been thinking about it all along, what it encompasses and what has to be done for it.

Once on paper, it’s more real already. Its form has changed from being an idea on your mind into a draft vision that’s now embodied on an actual paper in writing and you’ll suddenly see it differently — more clearly.

You’ll start thinking of it differently and more creative thoughts and ideas will come to you about the subject, naturally. You’ll keep expanding it further. And further with any new step you take.

And then, it’s about all about consistency and focus to make sure you continue to walk towards your dream.
We’ve Known How to Combat Dementia For Years — We’re Just Not Listening
By: Kylie Fuller
Tags: Health, Science, Society, Medicine, Life

When I started working in my first lab researching Alzheimer’s Disease, I was idealistic, determined the field would find a cure for the insidious disease in my lifetime. And I still hope we do. Alzheimer’s runs in my family like it does in many families. But my time working in the field has forced me to realize that we already know how to fend off the debilitating effects of dementia. It’s just not the answer we were looking for.

For years, I researched in and out of the lab. I took classes about the brain and dementia. I read neuroscience books in my leisure time. I consumed every bit of information the field offered on cognitive decline, dementia, Alzheimer’s, and similar diseases. From the vagus nerve to cytokines gone wrong to demyelination, I scoured every potential source of memory loss.

And everything I read, in one way or another, pointed back to the same perpetrator: stress.

“If you ask what is the single most important key to longevity, I would have to say it is avoiding worry, stress and tension. And if you didn’t ask me, I’d still have to say it.” — George Burns, 1896–1996

There are many contributors to dementia: environmental factors, health risks, neurological changes, and toxins in the body. Genetics plays a role, but in all but the most extreme cases, there’s not a simple gene that codes for dementia. As I researched these symptoms and biomarkers, the trail almost always led me back to physical or psycho-emotional stress. But in my mind, the answer had to be more complicated.

In 2010, researchers concluded that chronic stress significantly increased women’s likelihood of developing dementia. In 2013, researchers found that chronic stress quickens the onset of Alzheimer’s disease. In 2017, a meta-analysis pointed to stress as a likely contributor to dementia. In 2017, another study successfully used measures of stress to predict dementia onset.

These are four of countless studies supporting the same conclusion: stress significantly contributes to dementia. That is not to say stress is the end-all-be-all of dementia. I’ve been researching this insidious syndrome long enough to know better than that. But no one can deny that stress plays an integral role in memory loss and cognitive decline.

What negatively impacts the gut-brain relationship? Stress.

What causes cytokines and other important proteins to become toxic? Stress.

What contributes to and induces demyelination? Stress.

Stress is the key to dementia.

There’s been an answer — albeit not a perfect answer but a pretty good one — sitting in front of us all along. The problem is that stress may be a simple answer, but it is not a simple solution. Our society wants to cure dementia, but it doesn’t want to change its lifestyle.

We want a pill or an injection that we take at age 65 to keep our minds sharp and memory intact.

Scientists release study after study showing that stress exacerbates, accelerates, and predicts dementia. But we don’t listen because it’s not the quick fix we’ve been looking for.
Connect From Your Local Machine to a PostgreSQL Database in Docker
By: Lorenz Vanthillo
Tags: Database, Postgres, Postgresql, Docker, Containers

Connect From Your Local Machine to a PostgreSQL Database in Docker

A simple How To to get you up and running with Docker

Docker makes it very easy to spin up a PostgreSQL database management system. With the following command it is possible to start your PostgreSQL Docker container on your server or local machine:

$ docker run -d -p 5432:5432 --name my-postgres -e POSTGRES_PASSWORD=mysecretpassword postgres

This command will start a PostgreSQL database and map ports using the following pattern: -p <host_port>:<container_port> .

Port 5432 of our container will be mapped on port 5432 of our host or server.

Access the container on your host or server. We will create a database inside our PostgreSQL container.

$ docker exec -it my-postgres bash

Now you are ‘inside’ your container. We can access postgres and create the database.

root@cb9222b1f718:/# psql -U postgres

psql (10.3 (Debian 10.3-1.pgdg90+1))

Type "help" for help. postgres=# CREATE DATABASE mytestdb;

CREATE DATABASE

postgres=#\q

We are finished. You can exit your container ( \q ) and go to your local machine. Here you need some PostgreSQL Client tool installed:

PSQL (CLI)

PgAdmin

…

My PostgreSQL container is running on my local machine, which explains why I am connecting with localhost. If it is running on a specific server, use your server IP. (For Windows docker-machine you probably need to use 192.168.99.100).

$ psql -h localhost -p 5432 -U postgres -W Password for user postgres:

psql (9.5.5, server 10.3 (Debian 10.3-1.pgdg90+1)) WARNING: psql major version 9.5, server major version 10. Some psql features might not work.

Type "help" for help. postgres=# \l

List of databases

Name | Owner | Encoding | Collate | Ctype |

-----------+----------+----------+------------+------------+

mytestdb | postgres | UTF8 | en_US.utf8 | en_US.utf8 |

postgres | postgres | UTF8 | en_US.utf8 | en_US.utf8 |

template0 | postgres | UTF8 | en_US.utf8 | en_US.utf8 |

| | | | |

template1 | postgres | UTF8 | en_US.utf8 | en_US.utf8 |

| | | | |

(4 rows)

After authenticating you will see the mytestdb is in the list of available databases. Now you can connect with your database using \c .

For a tool like PgAdmin you can define your connection. Also, here you have to replace localhost with your server IP if your container is running elsewhere.

Create a server connection

Define your connection

Save the connection and you can connect to the database which is running in your PostgreSQL Docker container!

This post was based on a popular SO answer I gave. I hope it helps!
Relativism
By: Rebeca Ansar
Tags: Culture, Women, Human Rights, Feminism, Poetry

there are limits

to relativism-

no culture is exempt

from the responsibility

of progress.
Where is MY GOLDX ???
By: Dave Appleton
Tags: Blockchain, Gold, Hellogold, Ethereum

So how do I actually check my balance??

Etherscan

There are two ways to do this on Etherscan.

1. Follow this link to the GOLDX read smart contract page and enter your address in the box in row 10 (balanceOf), then click on Query. Please note that the really big number you see is based on fractions of a GOLDX. To find out how much you actually have in whole numbers of GOLDX you should add a decimal point inserted 18 digits from the right.

Actual value is: 0.000161679213232261

2. Paste the following in your address bar and put your address after the “=” https://etherscan.io/token/0xeAb43193CF0623073Ca89DB9B712796356FA7414?a=<your address here>

If you use Metamask you will probably see something like this:

So sad - thought I had 0.0001 or more….

Metamask rounds tokens to three places. However, if you use Metamask with MyEtherWallet (or MyEtherWallet with any other method) you can see your tokens properly.

MyEtherWallet

I have a selfie taken with Kevin and Taylor of MyEtherWallet at Devcon 3. They look fantastic but I look seriously bloated which is why the photo is buried away and you will never see it.

Also looking fantastic is the MyEtherWallet interface. Select Send Ether and Tokens, then simply enter your address (or chose your key source such as Ledger, Metamask, etc).

On the right of the screen you should now see this little pair of buttons.

Hmmm…. no GOLDX 😡

Click the button on the left (Show All Tokens) and a list of tokens appears, some with numbers (those above) but most looking like this :

What should I do now?

Clicking on a line not only loads the balance but also remembers that token so that it will be loaded next time. You will see the word Loading flash before your eyes (so fast I couldn’t capture it) and then …

Ok. Better than nothing I suppose….

Ethplorer — updated balance available

Ethplorer is aware of the existence of GOLDX in your account, it will check your GOLDX balance each time you make the request. This means that the balance shown will include any charged management fees and recent GOLDX reward allocations.

Click on the dropdown…

Please do note that Ethplorer still derives most of its information from transfers so the number of holders shown below is completely inaccurate.

Parity

Parity supports GOLDX automatically. They just call it GDX because they only allow three letters.

GDX ?? They won’t allow GOLDX 😡

Metamask Users

Try this page : https://goldendave.github.io/

Enter your address and click the button 😎

There are other cool wallets out there that we may not have contacted. Most may require some or all of the following information to add GOLDX as a custom token. Please let us know if you are having any difficulties.



Symbol: GOLDX

Decimals: 18 Address : 0xeAb43193CF0623073Ca89DB9B712796356FA7414 Symbol: GOLDXDecimals: 18

Thank you for your continued support for HelloGold, HGT and GOLDX!
How You Can Learn to Love Your Body
By: Kirsten Pietraszka
Tags: Body Image, Self Love, Body Positive, Lessons Learned, Fatphonbia

Photo by Roberto Delgado Webb on Unsplash

I believe a lot of girls and young women learn early and quickly to unlove and mistrust their bodies. I can remember the exact moment I felt betrayed by my own body: I was nine years old and my mom let me try on her wedding dress. Expecting it to be much too big (my mother was an adult, after all, and I was just a little girl), it barely fit. Not knowing anything about different body types — my mother is petite and small-boned; I’m not— I immediately took this to mean I was fat.

This betrayal is always at the back of my mind, one of many little things about myself I’ve collected over the years to create the story I had often told myself. I’m too big, too much. That betrayal, along with all the other things, are the bits and pieces I’m trying to edit out as I tell a new story about my body.

Many days, maybe even most, I love my body. I’m the heaviest I’ve ever been and I’ve just turned 30, but I have such love for myself, and have decided to let go of the rules that have bound my body for decades. Of course, there are days when I feel extremely insecure, sometimes many in a row, and I become cranky and desperate for a quick fix for the fleshy prison I’ve convinced myself I’m trapped in. I tell myself horrible stories and believe them wholeheartedly. But then, another day or two pass and I happen to wear something I especially like, take my time getting ready that morning, and shore myself up on sweet self-talk, and I’m back, knowing I’m good…and a total babe.

How am I learning to love my body? There are a lot of factors that come into it, and many are highly individual, but below is a list of things that have shaped my positive attitude about my body:
[Python] 那些好用的 Pytest Plugins
Tags: Testing, Software Development, Automation Testing, Python3, Python

Installing and Using plugins - pytest documentation

This section talks about installing and using third party plugins. For writing your own plugins, please refer to…
Meet the Digital Authority Team
By: Digital Authority Co
Tags: Team, Digital Marketing Company, Business, Digital Marketing

Hi, I’m Jason,

I founded Digital Authority to help businesses establish online authority in their niche. Prior to Digital Authority, my wife and I built a Commercial & Residential Cleaning Company and an Independent Financial Advisory Business the ‘Old-Fashioned’ way, through networking and referrals.

All was going well, with both of our companies growing nicely. Then, life happened, and our daughter was born with special needs. We could no longer market our business by spending hours and hours away from home. Instead, we had to find a way to transition online and scale our marketing efforts so they weren’t time-dependent.

That motivated me to start Digital Authority. Now, I’m excited to have the opportunity to help entrepreneurs and CEOs transition their businesses online and get a leg up on the competition.

Along with being a CEO, marketing and sales guy, I’m also a proud husband and father.
Aave V2 is Available on Public Testnet!
By: Ernesto Boado
Tags: Blockchain, Defi, Decentralized Finance, Ethereum

A while ago, the Genesis Team released this plan outlining some features to expect with Aave V2, making finance a more seamless experience. Today, Aave V2 is live on the Kovan testnet, and you can check it out here.

Since the beginning of 2020 when the Aave Protocol first launched, the Genesis Team has collected feedback from the community which has been invaluable in making improvements to the protocol. Now the governance power is in your hands, and the Genesis Team will take on the role of builders who gather popular proposals on the governance forum, and enact the updates voted on by the governance.

Aave V2 is a culmination of community feedback that brings some architecture redesign to upgrade the protocol, along with some exciting new features to push the limits of the DeFi user experience with new tools and UI/UX improvements.

You can find the whole documentation here.

How to Test Aave V2

You can test Aave V2 without spending real assets on the testnet client here! Be sure to switch your wallet provider to the Kovan network in order to use the testnet free of cost. You can get tokens to test from the faucet here — simply select the token of your choice and submit the transaction. Make sure to have ETH before using the faucet. You can find the Kovan ETH faucet here. For further instructions on how to test the Aave Protocol on testnet, including how to get ETH for testing, feel free to refer to the testing FAQ.

You can find the contract addresses for Aave V2 on Kovan in the documentation here.

Security

The code is currently under 4 audits and formal verification, results will all be published before mainnet launch. Additionally, there is an ongoing Bug Bounty up to $250 K to compensate those that discover new bugs or vulnerabilities and disclose them safely. You can find the criteria and details of the Bug Bounty process here.

What’s next?

Feel free to try out V2 on testnet! Your feedback is always appreciated. Feel free to follow Aave on Twitter for frequent updates, join the discussion on Discord, and voice your opinion on the Governance Forum!
I Got Botox
By: Sara Grace
Tags: Body

I Got Botox

The wonder drug from which you should run, screaming.

Grimace.

On my 30th birthday I sat in an office in Beverly Hills and winced while a doc shot 40 ccs of botulism into several holes that he made in my face.

Freezing my face was a big mistake. I know that now. I think. The problem is, I did it three times, each time unhappy with the result, each time going back for more. My high school once had a headmistress who became famous for accidentally shooting her lover in the back – nine times. So it was with me and Botox. Somehow, it just kept happening.

The first time, I sat for a few minutes in a waiting room before the doctor arrived. On one wall hung a giant poster of Greta Garbo. Comforting. I was following in the footsteps of the great beauties of history… by turning my face into impassive, impenetrable mask. Actually, my modern-woman’s lot was much better. I didn’t have to paste up my eyebrows with stick’um. Science would smooth my brow.

The doctor arrived. First we quickly cleared him of all possible wrongdoing with the necessary paperwork. I jokingly asked him why the price of Botox hadn’t come down yet, and he told me, very seriously, that he’s not the one profiting; he barely makes anything off a sitting.

“So you’re saying it’s a loss leader?”

He laughed and said yes. Apparently, Botox is plastic surgery’s gateway drug.

“OK, another question. Would it be possible just to clear up the line between my eyes, and leave the rest alone?”

He paused, and gave me a look.

“But what about the rest of your lines? Your forehead…” he trailed off, confused.

“I know. It’s just that it’s the line between my eyes that I’m really worried about. The rest doesn’t really bother me.”

“Well, if we cover more ground – here, and here, and here, and oh yes, probably here,” he said, dusting my face with his fingertips,” I think you’ll have a more natural result.”

I laughed.

“Natural?! We’re talking about using a toxin to disable my face.”

He laughed back – notably, without the involvement of his forehead.

“Don’t worry, I hate the frozen look. You’ll have the lift you need around your eyebrows.”

“Please don’t make me look like Joe Biden.”

“You won’t look like Joe Biden.”

I broke down pretty easily. Three days later I had the faint ability to raise the far corners of my eyebrows.
[Agency or In house?]聊聊In-House UX Designer需具備的工作技能
By: I M Faye, 聊聊 Ux 策略與商業
Tags: Careers, Design, 設計, Jobs, UX

Facebook

Log into Facebook to start sharing and connecting with your friends, family, and people you know.
Crossword
By: Not Another Tv Dad
Tags: Poetry

He sits on the loveseat’s edge,

TV blaring reruns he

didn’t watch the first time, can’t

hear them anyway, and scribbles

answers to the crossword. It

takes him two, sometimes three days.

When he finishes, he sets

that paper aside, looks all

around the room as if for

the first time seeing the walls

painted bright since the rebuild

after the fire, the kids’

pictures long gone, as they are.

He grabs the next day’s paper,

sharpens his pencil, and lowers

his eyes back to the black

and white page.
【文献】Urban Digital Twins for Smart Cities and Citizens
By: Toshikazu Seto
Tags: Smart Cities, Digital Twin, Reading

OpenCOVER

The user interacts with the scene through the 3D device and a 3D menu. A line coming out of the device intersects with…
When Things Go Wrong, Maybe It’s All Alright
By: Mary Ann Lopez
Tags: Life Lessons, Positive Thinking, Money, Self Improvement, Growth

Be Careful What you Wish For

Rule №1: Be really clear about what you want because the universe has a sense of humor

When speaking things into existence, get your shit in the right order.

I say this because, within days of again saying, “God, you’re gonna get me a new car.” I was in an accident.

The crash was in no way my fault — and I wasn’t injured. I was going straight, the driver to my right attempted to turn left in front of me.

She got a ticket. My car, Maggie Mae got totaled.

The insurance company wouldn’t pay to fix her. They’d give me a check instead.

I had no alternative but to go car shopping.

Manifesting More

Rule №2: Have a plan for when the plan you planned doesn’t go as planned

I got a cool new car, which I’ve named Pearl. She has seats that warm and that brand-new car smell, which beats the heck out of l’eau de wet dog. She is shiny and new.

I also have a loan to go with my new car.

When I spoke to God and the Universe and said you’re going to get me a car before the end of the year, I seriously was hoping it would be December.

August was before the end of the year, no arguing that point. Seems my plan and the Universe’s plans were different.

I wanted to wait to get settled and organized since I moved into a new home earlier in the year. I didn’t need a mortgage and a car payment, at least not quite yet.

The joke was on me.

When I told my brother I was buying a car, he asked, “Is it in your budget?”

“Oh, yeah!” I responded cheerfully.

It wasn’t.

Not until some woman hit me and I needed a car — kind of has to be part of my budget doesn’t it?

As, if I was a five-year-old, and my hearing suddenly became impaired with my fingers in my ears all I kind of could hear was la, la, la, la — I can’t hear you as he mentioned something about planning.

I am not five, so I replied: “I did have a plan, but this happened a few months ahead of my planning plans.”
Merancang Sistem dengan Kontrol Akses Least Privilege Supaya Bebas Dari Peretas
By: Giri Kuncoro
Tags: DevOps, Least Privilege, Security, Cloud, Build Secure Reliable Sys

Easy read, easy understanding. A good writing is a writing that can be understood in easy ways

Follow
人人檸檬茶(204篇)
By: Leonard Ng
Tags: 2004, Coffee, Apple

in Both Sides of the Table
Understanding Multiplication
By: Ilexa Yardley
Tags: Deep Learning, Virtual Reality, Machine Learning, Artificial Intelligence, Data Science

X times X is X plus X. And, also, X divided by X.

Multiplication. Addition. Division.

X times X is X plus X. And, also, X divided by X.

This is because X and X is X and X’.

Meaning, X and X is X and Y.

Meaning X and Y is zero and one.

Because zero and one is circumference. And, diameter.

Giving us the mathematical relationship between zero and one.

Therefore, multiplication is addition. Addition is division.

Zero and one is, always, one, and two. (Two is the natural limit in all directions.) Zero and one share a circular relationship with one and two.

One and two share a circular relationship, giving us, zero and one (circumference and diameter). (Zero and one share a circular relationship.)

This means two is, always, one (one is, always, two.)

This is the conserved circular relationship between individual and group (virtual and real) (all systems, disciplines). Which is the basis for artificial intelligence. Virtual reality. Machine learning. Deep learning. Learning, in general.

Conservation of the circle is the core dynamic in nature.
To Improve Your Cognitive Health, Try Taking A Seat
By: Madelyn Brown
Tags: Health, Mental Health, Science, Self Improvement, Mindfulness

To Improve Your Cognitive Health, Try Taking A Seat

Finally, research has discovered the healthy side of being sedentary.

Photo Source: Adobe Stock. Licensed by Author. FILE #: 345343182

When I am hard at work writing or editing, my body sits idle. When it’s time to rest my weary mind, I zone out on the couch and scroll through my phone, still as ever. And when I must tend to the household chores like grocery shopping, I don’t move an inch and order our weekly food for delivery.

COVID-19 and its resulting quarantine have dramatically stalled our previous routine activities. The full impact of this global increase in sedentary behavior is yet to be thoroughly studied because the total impact of COVID-19 is also yet to be known. But it is common knowledge that many of us have lost our commutes, our social activities that got us up and out of the house, gym time, and even taking a stroll to shop for groceries or leisure. Some researchers are going so far as to call this stillness phenomenon the sedentarism pandemic.

We, as a collective, are being more still, and the implications of increased dormancy to our health are worthy of being explored.

Research has thoroughly documented how movement is critical to the longevity of our bodies. Getting up and going helps everything from our sleep cycle to thwarting off certain cardiovascular diseases.

But what about our minds? A study published by Colorado State University in October 2020 discovered a correlation between sitting time and increased crystallized cognition. For some of us, that may mean that as our bodies settle ever more deeply into our couches, we may be able to settle our worries that our minds are wasting away.