teleren/devto huggingface dataset:
Resource Management Feature and 2FA Disabling by Mnemonics
Tags: crypto, cryptocurrency, blockchain, gambling
Published: 2019-12-25 11:39:35

Join the discussion in DAOBet Telegram groups:

- [International community [EN]](https://t.me/daobet)
- [Validators group chat](https://t.me/daobet_validators)
- [Game developers group chat](https://t.me/daobet_developers)

Join our social media to keep up to date with all the announcements: [Twitter](https://twitter.com/daobet_org/), [Facebook](https://facebook.com/DAObet.org/), and [LinkedIn](https://linkedin.com/company/daobet/).


When it comes to managing resources, prudence and a careful approach to ensuring full use of all of the technical capabilities of the hardware are key. The [DAOGroup](https://dao.group/) team knows all too well how its users treasure the opportunity of fully and freely disposing of all of their available resources and is acting by introducing a number of important features in the latest release of the [DAOWallet](https://daowallet.com/).

The resource management feature is being introduced in full to provide users with more functions for disposing of their digital assets. Basically put, staking is the purchase of CPU, NET and RAM resources. Those resources are needed for carrying out transactions in the [DAOGroup](https://dao.group/) ecosystem for users and dApps.

It is a dangerous world out there and an even more dangerous online environment, where unscrupulous individuals are always trying to get their clammy hands on the personal access data of honest users. Security features are the key to maintaining the safety of user funds and keys. Since staking is an additional security feature, [DAOWallet](https://daowallet.com/) will be implementing it as well.

But the problem of security is exacerbated by the fact that users are often careless themselves in adhering to basic security protocols. It is common for users to lose devices with 2FA features or uninstall the applications for 2FA, either making their data openly available to anyone willing to take advantage of it or losing access to their own data.

We at [DAOWallet](https://daowallet.com/) have security and convenience in mind all the time and have thus introduced the function of 2FA cancellation by recovery phrase. Such an approach makes DAOGroup-connected applications even more secure, even in case the user loses their device.

The DAOBet blockchain is continuing to develop as new functions are constantly being added with more to come. As Shakespeare’s Iago said, “There are many events in the womb of time, which will be delivered.” The same applies to [DAOGroup](https://dao.group/) and its many products. Stay tuned for more news and updates.


Join the discussion in DAOBet Telegram groups:

- [International community [EN]](https://t.me/daobet)
- [Validators group chat](https://t.me/daobet_validators)
- [Game developers group chat](https://t.me/daobet_developers)

Join our social media to keep up to date with all the announcements: [Twitter](https://twitter.com/daobet_org/), [Facebook](https://facebook.com/DAObet.org/), and [LinkedIn](https://linkedin.com/company/daobet/).
The ladder of life
Tags: life, lesson
Published: 2019-12-25 11:27:23



![Man climbing the ladder](https://images.unsplash.com/photo-1500472141701-084e6fa44840?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=750&q=80)


There is a single ladder that we all are climbing.

All of us want to get to the top.

Every one of us wants to get at the top with their respective goals and desires.

It's a big ladder.

You're at some particular step in the ladder at any particular instance of time in your life.

Above someone, and below someone. Every time.

You'll be neither at the top nor at the bottom.

Realize this.

**What that means?**

- There is always a chance for improvement and also there is always a chance to lift someone on the ladder by helping them.

- The person you're looking up to is also not at the top, he is also in between. So, reaching there does not guarantee that you'll not ask for more. We'll always ask for more, that's our human nature. Desire.

- You're not above or below `X` in all aspects of life. In some aspects, `X` is above you and in others you're.  

---

But there are certain **rules** to keep in mind while climbing the ladder.

1. Don't compare your 6th step with someone who is at the 20th step. Everything takes time and eventually you'll get there.

And if ever your comparison muscles kick in, make sure to analyze and know the starting point of the one with whom you're comparing yourself with.

2. Don't rush. Climbing more steps without enjoying the process is not the goal. Climb + Enjoy the process.

---

### Age does not matter

Most of us think that it's the age that determines our position on the ladder. Why? Because we've been programmed to look up at this ladder with the time axis.  We think that older ones are and should at the top and the younger are just starting. But it's not.

Age does not determine the position.

It's you, your dedication, your work ethics, values and principles, all that matters.

I've seen guys with 10-20 years older than me at the very bottom of the ladder. And I've also seen guys younger than me at the top of the ladder. 

Internet is also playing an important role in nullifying the effect of age. Read more [**here**](https://rishabhgarg.me/internet-gap).

It's not the age that determines the position but the starting time plus the dedication that matters. 

---

**Why this realization is important?**

Multiple reasons:

- Gratitude: It helps me to be grateful for all of the things I've even at the lowest point in my life. Remember: You're always in between.

- Realizing that you're neither the smartest person nor the dumb person free you.

- Imposter syndrome: It no longer eats me like the way it used to. 

- Dunning-Kruger effect: Not this one too!


Originally published at https://rishabhgarg.me


---

**Peace and Power
Rishabh**

---
Searching object name attached Attachment
Tags: salesforceapex
Published: 2019-12-25 11:06:39

---
title: Searching object name attached Attachment
published: true
description: 
tags: Salesforce Apex
---

I had to extrace object name attached Attachment object when I copy object records to new Salesforce Org.

```Java
// Get Attachments
List<Attachment> atts = [SELECT ParentId From Attachment];
Set<Id> idSet = new Set<Id>();
for (Attachment att : atts) {
    idSet.add(att.ParentId);
}

// Get Object Name
Set<String> objSet = new Set<String>();
for (Id rid : idSet) {
  Schema.SObjectType name = rid.getSObjectType();
  objSet.add(String.valueOf(name));
}

// dump
System.debug(objSet);
```
Metro 4 - What is it?
Tags: css, javascript, html, metroui
Published: 2019-12-25 11:01:41

Hello! My name is Serhii Pimenov. I'm a web developer from Kyiv, Ukraine, and I would like to briefly introduce my project - [Metro 4](https://metroui.org.ua).

[Metro 4](https://metroui.org.ua) (early Metro UI CSS) is a free (MIT license) and [open-source](https://github.com/olton/Metro-UI-CSS) toolkit for developing with HTML, CSS, and JS in **windows Metro style and not only**. You can quickly prototype your ideas or build your entire app with a responsive grid system, extensive prebuilt components, powerful plugins, usefulness routines, and a big demo project. Starting with version 4.3, the project no longer has any dependencies, such as jQuery.

Metro 4 is a comprehensive project that contains:

* Base styles
* 100+ components
* JS tools and routines
* Extensive [guide](https://metroui.org.ua/intro.html)
* [Builder](https://builder.metroui.org.ua) for creating custom components set
* Big demo project - [Pandora](https://metroui.org.ua/themes/pandora/)
* Additional repo for [React](https://react.metroui.org.ua) version
* [Sandbox](https://github.com/olton/Sandbox) \- demo project, built with Metro 4

Work on the project continues. New versions are released once every one to two weeks. I provide very fast feedback on errors found through [GitHub Issues](https://github.com/olton/Metro-UI-CSS/issues).
Why if there is a bug in production, everyone asks QA "Why can't you find this bug"
Tags: qa, codequality, testing, behavior
Published: 2019-12-25 10:47:45

---
title: Why if there is a bug in production, everyone asks QA "Why can't you find this bug"
published: true
description: 
tags: #QA #quality #testing #behavior
---

Dear folks, I've been being a QA engineer for over 6 years now.

In almost every company, when there is a bug happened, every responsibility is put on QA. I feel like QA is working for developers, project managers, and PO. Not for the company.

Is it a common thing, or it's just happened in my country?

From my point of view, and always is, QA can't guarantee the product works fine even for the simple bug.

If there is a bug happened, it's everyone's responsibility.

We as QA can only make sure to prevent them, to catch them early (Well, if we are put in development team early, sometimes after they develop all the features they send to us :( ).

What's your thoughts? Are you feeling the same? Does QA need more respect from others?

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/xnfavxxz34zh4tdjmtak.jpg)

Peace!!!
Building JavaScript assets offline, before deploying to the web server
Tags: javascript, webdev
Published: 2019-12-25 10:36:47

**I have always wondered why I have to run `yarn build` scripts online on Heroku / Netlify / Now.sh**; which takes time, does not guarantee to succeed and HTML / JavaScript / CSS are cross platform anyway.

Long time ago, I have found [gh-pages](https://www.npmjs.com/package/gh-pages) and wrote a blog about it -- https://www.polvcode.dev/post/2019/08/gh-pages -- which is mostly about publishing to GitHub Pages, and Heroku.

However, there are problems with GitHub Pages; namely, new pages doesn't always update promptly after repeated deployment. There are these kind of problems in Heroku / Netlify / Now.sh.

Lately, I have one another way for Netlify, which is [Netlify CLI deploy](https://github.com/netlify/cli/blob/master/docs/commands/deploy.md), so I just pust `"deploy": "yarn build && netlify deploy --dir dist"` in my `package.json`. Netlify also offers a way to test a real website online (with hash, so that the name doesn't collide).

So, back to the real question, **why do I have to run build script for static JavaScript / CSS / HTML assets online**, again?
06 Tips to Make Your Website Attractive in 2019!!
Tags: career, design, beginners
Published: 2019-12-25 10:35:47

Krayoncraft.com
Top 06 tips to make your website attractive
Now before we begin, please keep in mind that this is not an in-depth article on “UI Development“, this article is more like a palette cleanser to help you develop a more clear aesthetic vision for the design of your website or any other product.

#Tip No. 01 – Get Inspired from the visionary
When you think of a great visionary that shaped the era of personal computing for the people of 21st century then “Steve Jobs” is the one that comes to your mind. Now some people will comment that he was not the greatest but the point is, its not whether he is great or not.

The point lies in the simplicity of the designs of his products, the way he made them look and feel premium. Though almost every Apple product was designed by Jony Ive and his team, it was Steve jobs who inspired them and gave the approval on the final look and that’s the part of the reason why Apple products were considered as the greatest.

Clean and Simple But Premium
Clean and Simple But Premium
Once you understand that, it becomes simple. Today’s design standards for the computing products are inspired from the aesthetic and premium looks of the Apple products and that has even affected the Web development, App development and Software development fields.

The designers are approaching for more cleaner and premium look and you should take the same route and add your own touch to the trend.

Here are some facts for “Why clean and premium look is great for the web design?”.

Clean design helps readers to focus on the content as it affects the 70% of the readability rate and improves session time.
 

Google likes it! Their newly introduced material design 2.0 standards focuses more on the interactive part but they are emphasizing on clean & premium feel even more.
 

Get your math formula right :- Good design + Good content = More visitors.
 

Every other company that runs their business via Smartphone App or Websites is approaching the minimalist way.
 

Clean and Premium look or the minimalist way for websites works especially great for the startups who want to give premium feel to their brand.
With that being said we move forward with our second tip to make your website attractive.

#Tip No. 02 – Using illustrations to make it more appealing
Use of illustrations on website to make your website attractive
Use of illustrations on website to make your website attractive
Now if you try to research about trendy website designs, then you will notice that majority of web designers are using cool illustration along with minimalist look to make their website feel more premium. To make your website attractive you can also use illustrations in your websites.

TO CONTINUE VISIT- https://krayoncraft.com/make-your-website-attractive/
Double ampersand trick in SASS with React
Tags: scss, css, react, cssinjs
Published: 2019-12-25 09:57:11

---
title: Double ampersand trick in SASS with React
published: true
description: I've recently seen a cool SCSS trick in a React component styled in emotion and wanted to share it with y'all.
tags: scss, css, react, css in js
---

I learned a cool little trick last week while reviewing a PR and wanted to share it with everyone. This is pretty useful if you're using a library like **emotion** with **React**.
 

```javascript
const StyledButton = styled(Button)`
  && {
    padding: 0;
  }
`
```

When I saw this, first I thought, they meant to style the Button component and redundantly included one ampersand (which i see some devs quite often do by mistake), the second one would then be a typo. But when I checked what it does in the Inspector, it was actually overwriting the default styling of the Button component like this:

```scss
.css1234--Button{
  // padding: 24px; -> overwritten
}
.css5678--StyledButton.css5678--StyledButton{
  padding: 0;
}
```

Repeating the class name with double ampersand will carry the priority above and overwrite the default styling coming from the Button component. 
My mind is blown and I am bewailing the years of never having heard this trick and trying to overwrite everything with `!important` (when ordering the rules according to the cascade wasn't an option)

I'm really not sure how known this is but I thought it's super cool.
I hope you find that useful.

Please share your ampersand tricks with me via pm or comment below <3
Digital Transformation in Banking
Tags: digitaltransformation
Published: 2019-12-25 09:55:56

![Digital Transformation in Banking](http://perfectial.com/wp-content/uploads/2019/12/Digital-Transformation-01.jpg)

Digital transformation in banking (retail and consumer banking) has so far been quite narrow. Some financial firms have made efforts to get out on social channels (to where the prospects are) and streamline common front-office operations. But that’s about where their modernization ended. Lending, deposits, and other core activities are still mostly run on complex and monolithic legacy systems, though a few companies now have a digital veneer over their antiquated architectures.

70% of banks are now actively reviewing their core banking platforms, according to a McKinsey survey from May 2019.

Types of transformation:
- Rip and replace
- Parallel cores
- Modernize
- New Base Platform
- Passive observation

View blog and read more about [Digital Transformation in Banking](https://perfectial.com/blog/digital-transformation-in-banking/). The post appeared first on [Outsourcing Web Development Company Perfectial](https://perfectial.com/).
Real-Time Big Data Analytics
Tags: iot, bigdata
Published: 2019-12-25 09:49:54

![How to Protect Streaming Analytics](http://perfectial.com/wp-content/uploads/2019/12/Real-Time-Big-Data-Analytics-03.jpg)

According to IDC, about 30% of data generated in the world will be real-time in nature by 2025. This has enterprises hastily experimenting with technical solutions and hoping to find a comprehensive platform that will help them tackle the challenges of real-time big data analytics.

IoT and Big Data are interrelated: Plenty of IoT applications have arisen in manufacturing, healthcare, smart energy, and agriculture in recent years, and they’ve been the main producers of big data for companies across these fields. The insights from big data analytics, on the other hand, is generally what firms use to enhance and streamline IoT services.

View blog and read more about [Real-Time Big Data Analytics](https://perfectial.com/blog/real-time-big-data-analytics/). The post appeared first on [Outsource Web Development Company Perfectial](https://perfectial.com/).
Working with Redis in Python
Tags: redis, python, automation, nosql
Published: 2019-12-25 09:37:45

---
title: Working with Redis in Python
published: true
description: 
tags: #Redis #Python #automation #NoSQL
---
I.What is Redis:
Redis is a NoSQL databases that is extremely fast, support caching and store value in different format.
Sometimes, if your data is uncategorized or you want to get it fast, you should think of Redis.

II.Installation:

Please go to [Redis-official site](https://redis.io/download) for download and install Redis in your local environment.

After that, to check if it's working.

```javascript
redis-server

```
You should see the following like:

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/vvyhxixmwi61wqtfhfn1.PNG)

After that, to access to the local running server via command line, you can use

```javascript
redis-cli
```

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/3eokjqat0pubhdbnyw43.PNG)

III.Work with remote redis via command line:
For example you need to work with the redis-cluster remote (Check out what is [redis-cluster](https://redis.io/topics/cluster-tutorial), you would need to know what is the domain name, what is the password for authen..
1. Connect
The command would be like

```javascript
redis-cli -h host_name -a pass_word -c
```
-h for the hostname

-a is for the password

-c is for automatically redirect if the node is moved.

2. Common command:
keys * : to get all the key
info: to get information about redis-cluster
get: to get the value of key

IV.Sample project for working with Redis:

I write some sample code for working with Redis-cluster using redis-cluster-python.

```javascript
def test_masters_slaves():
    from rediscluster import RedisCluster
    nodes = [{"host": f"hostname",
              "port": "6379"}]
    r = RedisCluster(startup_nodes=nodes, password="xxxxx", skip_full_coverage_check=True, decode_responses=u'utf-8')
    all_keys = r.keys("*")
    print(f"\nKeys are : {all_keys}")
    print(r.get('coccoc-music-api:ALL_SOURCES'))
```
You can checkout the source code in [here](https://github.com/cuongld2/redis-interaction).

Hope this helps!

Notes: If you feel this blog help you and want to show the appreciation, feel free to drop by :

[<img src="https://thepracticaldev.s3.amazonaws.com/i/cno42wb8aik6o9ek1f89.png">](https://www.buymeacoffee.com/dOaeSPv
)

This will help me to contributing more valued contents.
New React Select Box!
Tags: typescript, react, javascript
Published: 2019-12-25 09:10:55

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/pgyv9h0wgq7fpafh3soo.gif)

A flexible React select box written in Typescript which allows you to see the menu items besides each other.

Github URL: https://github.com/sepehr1313/react-select-tile
Demo URL: https://sepehr1313.github.io/react-select-tile.html
Top Business Ideas for Secondary Source of Income | Viewham
Published: 2019-12-25 08:48:32

Many Intellectual entrepreneurs never get settle on a single source of income. They always thrive for alternate income ideas. A wide network of students, youngsters, beginners, entrepreneur, and who’s not everyone has their own business idea. But lack of guidance or assistance, many wonderful <a href="https://viewham.com/businessideas"> business ideas </a> just remain as ideas.

Viewhams visionary online business idea-sharing platform is filling the gap by discussing your idea. It is the right platform to share or post your business ideas. As of now, many ideas got assistance and went live into the market. Next, it's your turn to make your dream come true.
How are poor APIs designed and what processes birth them
Tags: discuss
Published: 2019-12-25 08:36:34

---
title: How are poor APIs designed and what processes birth them
published: true
tags: discuss
---

There are well-designed APIs, and there are APIs that are badly designed.  It's a no brainer that a well-designed API makes life easier for everyone.

While there are lots of articles on APIs best practices, I would like to know how poor APIs are designed and what processes birth them.

Thanks for your contributions.
ZZT-OOP
Tags: zzt, oop, tutorial, programming
Published: 2019-12-25 06:56:52

Merry Christmas, please enjoy this fun walk into a DSL of an old computer game. 

ZZT was an early video game by Epic's founder Tim Sweeney. It was a two dimension ascii based DOS game.

The game comes with a level editor which allows you to build your own games. To build a room you place objective on the screen. Many of the objects have pre defined behavior and can not be edited, the interesting ones are those that can.

Let's start with some basics. Since these objects live in a game world the language focus on how to operate in that world. 

```zzt
\north
```

This moves the object upward on the screen. The four cardinal directions are available for navigating the screen. The object can also interact with players properties 

```zzt
#take health 5
#give ammo 10
This message is shown to the player
```

Code flow is executed from top to bottom and includes labels and goto. 

```zzt
:loop
Hello world 
/idle/i/i/i/i
#goto loop
```

Now that we have a way to navigate to specify code let's name our object, done as the first line of the object code. 

```zzt
@niceguy
#end
:punch
Ouch, that hurt
#end
:greet
I love shooting 
#give ammo 3
#end
:touch
#give torch 7
#goto punch
```

This provides a niceguy with different code paths (punch, touch, greet). Let's build another object.

```zzt
@badguy
Where are you? You will be sorry when I find you. 
:loop
/seek
#if contact then caught
#goto loop
:caught
#send niceguy:punch
#take health 20
#take ammo 7
#take tourch 6
/idle
#end
```

This character will move toward the player and if he comes in contact, he punches niceguy. That is what `send` does is causes execution to run on the other object.

Often in object oriented programming calling a method is referred to as sending the object a message. ZZT OOP, method calls are sending the object a message.

Update;

Hene is on of my games : https://museumofzzt.com/file/l/where.zip
Plan B Responds to Bloomberg Editor's Outburst On Stock-To-Flow
Tags: litecoin, bloomberg, cryptonews, bitcoin
Published: 2019-12-25 07:40:29

Plan B, the crypto trader who made stock-to-flow charts for Bitcoin famous in the decentralized space has responded to the criticism from Bloomberg Market's editor Joe Weisenthal on the reliability of Stock-To-Flow ratio for determining Bitcoin's price. Plan B in his tweet called out Bloomberg's editor for his limited knowledge on the chart and also pointed out to the blunder of 2018 where he has predicted the value of Bitcoin to reach zero.
He wrote,

"Last year (2018) you compared bitcoin to tulips and predicted BTC would go to zero in 2019 or 2020. Have You No Shame?"

Read Out More 👉 https://www.cryptoknowmics.com/news/plan-b-responds-to-bloomberg-editors-outburst-on-stock-to-flow