teleren/devto huggingface dataset:
𝙷𝚘𝚠 𝚒𝚜 𝚝𝚑𝚒𝚜 𝚖𝚘𝚗𝚘𝚜𝚙𝚊𝚌𝚎?
Tags: unicode, fonts, javascript, html
Published: 2019-06-28 13:00:06

Recently I was scrolling through Stack Overflow's Jobs section and an entry caught my eye (<small>[posting](https://stackoverflow.com/jobs/274306/oozou?so=i&pg=1&offset=15)</small>):

![](https://thepracticaldev.s3.amazonaws.com/i/c2g0xsqga466qrfn5zgq.png)

The font of the title caught my attention immediately. At first, I was just curious about what the font was (as I am always looking for my next coding font). I applied my usual strategy for when I see an interesting font on the internet: open Developer Inspector and look at the styles for the font's name.

In this case, the CSS rules said this font must be Arial--but it clearly wasn't.

On a closer look, there was definitely something weird happening. The text was monospace in the browser title and in the inspector as well. So there must be something about the characters themselves that made the browser render it in monospace everywhere.

First hint, the first character was not `J`:

```js
$0.innerText[0] === 'J' // false
```

Also, if you tried to get the code points of the characters, something weird happened:

```js
> $0.innerText.charCodeAt(0)
< 55349
> $0.innerText.charCodeAt(1)
< 56953
> $0.innerText.charCodeAt(2)
< 55349
```

The first and third characters should not be the same.

When I tried to get the total length of the string, I got:

```js
$0.innerText.length() // 74
```

But counting the characters manually gets you 42. Where were the rest of the 32 characters?

When I looked at the text closer, I realized that `(`, `)`, `'`, `-`, `;` and the spaces were not in the same font as the rest of the characters. If we removed these characters we got a count of 32 (42 - 10).

So that's how it got to 74--the monospace letters were occupying two character spaces: 32 * 2 + 10 = 74. I knew this happened for many Unicode characters, most commonly in emojis. That's why the first and third characters code points were the same.

Now on to figure out what Unicode characters these were specifically. 

Some Googling to figure out what these codes meant led me to this awesome website: http://unicode.scarfboy.com

You can enter any Unicode code point and get an explanation for it. I could not find anything when I searched for the codes themselves, but pasting the character directly got me a result.

Turns out the `J` was actually named `MATHEMATICAL MONOSPACE CAPITAL J`.

This opened up a whole world of specialized​ monospace and other fancy characters meant to be used in Mathematical formula​.

*Resources:*

Full list of Mathematical alphanumeric characters:
https://www.unicode.org/charts/PDF/U1D400.pdf

A video explaining why Flag emoji are 2 characters by Tom Scott:
https://www.youtube.com/watch?v=sTzp76JXsoY

A tool to map what you write to these Unicode characters:
https://yaytext.com/monospace/
Differentiating Content Marketing, Branded Content, and Native Advertising
Tags: contentmarketing
Published: 2019-06-28 12:59:53

---
title: Differentiating Content Marketing, Branded Content, and Native Advertising
published: true
description: Content marketing is gradually gaining in popularity. This blog provides a difference between content marketing, branded content, and native advertising.
tags: content marketing
---
   ![Content Marketing](https://thepracticaldev.s3.amazonaws.com/i/g275498ijls529jw8jg4.jpg)

Key Points That Differentiate Content Marketing From Native Advertising and Branded Content

Content marketing is gradually gaining in popularity. This is because informative, relevant, valuable, consistent, persuasive and strategically deployed content is proving highly successful in acquiring leads and converting them into loyal customers.

Properly marketed content can help in the accomplishment of a brand’s promotional objectives in a comprehensive manner. The benefits accrued are evident from the research findings as shown below.

Despite content becoming such as an essential medium for nurturing leads and driving sales, confusion between ‘content marketing, ‘branded content’ and ‘native advertising’ exists among many.

The differences among these terms need to be comprehended. This would ensure that these potent promotional tools are used in the right context.

Read the full post...
https://www.consumer-sketch.com/blog/content-marketing-branded-content-and-native-advertising
Amir here from Pakistan
Tags: intro
Published: 2019-06-28 12:45:06

Hi there, I am a Graphic Designer from Pakistan. I am also a senior web developer working for Orange Mobiles for the past 6 years. I have also been a teacher for 15 years. I loved teaching, and if someone can afford my expenses I can go full time teaching for free. In the past, I have also done some 3d Modeling, Animation, and Visual Effects for TV. But I am a developer today because I love solving problems and automation.
Writing CSS in Dutch using PostCSS
Tags: css, design, webdev, beginners
Published: 2019-06-28 12:37:37

Most programming, styling and markup languages use English as their basis, but that doesn't mean other languages wouldn't work. Like a Dutch version of CSS.

[PostCSS-Dutch-stylesheets](https://kilian.github.io/postcss-dutch-stylesheets/) allows you to write CSS like this:

```
.foo {
    hoogte: 300px;
    ondermarge: 10px;
    tekstgrootte: 20px !belangrijk;
    achtergrondkleur: zwart;
    kleur: wit;
}
```

And it will turn it into:


```
.foo {
    height: 300px;
    margin-bottom: 10px;
    font-size: 20px !important;
    background-color: black;
    color: white;
}
```

I especially like `!belangrijk`.


For both the properties and values, translation lists are available:

* [Properties](https://github.com/kilian/postcss-dutch-stylesheets/blob/master/docs/Properties.md)
* [Values](https://github.com/kilian/postcss-dutch-stylesheets/blob/master/docs/Values.md)

Have a look and see if you find any favorite Dutch words :)

I suppose there might be some merit in having a translation of some of the CSS concepts if only for Dutch developers to better understand what each property does, but it was mostly something I did for fun in a couple of hours. [PostCSS](https://github.com/postcss/postcss) makes fun things like this incredibly easy.

This plugin is based on the [German version](https://github.com/timche/postcss-german-stylesheets) doing the same but for German. 

Getting postcss-dutch-stylesheets is as easy as:

`$ npm install postcss-dutch-stylesheets`

[Code is up on Github](https://github.com/kilian/postcss-dutch-stylesheets), feel free to contribute!
FlatGA - Simplified Interface for Google Analytics
Tags: googleanalytics
Published: 2019-06-28 12:23:49

---
title: FlatGA - Simplified Interface for Google Analytics
published: true
tags: Google Analytics
cover_image:  https://thepracticaldev.s3.amazonaws.com/i/2wt2ti40jj47xu7es622.png
canonical_url: https://kambanthemaker.com//posts/flatga-simplified-interface-for-google-analytics/
---

I want to introduce you my product, [FlatGA](https://flatga.io), a simplified interface for Google Analytics. I used to build many small products, and look at Google Analytics to see the performance. I always wanted only high level metrics without the information overload GA gives you. One day, I decided to take advantage of Google Analytics API and built FlatGA using VueJS frontend and NodeJS backend.

We have launched the product today on ProductHunt,[Product Hunt Page](https://www.producthunt.com/posts/flatga), do share your feedback there.

## Some important features

1. Ability to view the core metrics in a single page interface
2. You can download top referral pages, & your top performing pages as CSV
3. No information other than your public email/access token is saved. Every information is fetched in realtime from Google Analytics!

Feel free to let me know your feedback through [My Twitter](https://twitter.com/barsareillusion)!
Native web-components - styling shadow dom - how?
Tags: javascript
Published: 2019-06-28 11:55:51

Hey,

i am working on native components. Well, edge and ie seems to have many problems but browser like chrome and firefox can handle it. Looks like.

I have an index.html file that contains css classes. I would like that this classes or at least some of them work in the shadow dom of my component.

I found a way for chrome to use ::part(). With this i can give styles to my Component "share-button" - share-button::part(button) {}

Well. In chrome and opera it works very well but not in firefox (latest version).

Is there a way to ship around for browser who do not support ::part()?

Thank you
Run IDLE (Python IDE) in virtual environment
Tags: python
Published: 2019-06-28 19:16:57

---
title: Run IDLE (Python IDE) in virtual environment
published: true
tags: python
canonical_url: https://ofdigitalwater.postach.io/post/run-idle-python-ide-in-virtual-environment
---

Imagine: you are running software implemented in Python and there is a problem you would like to debug or edit away. The software resides in a virtual environment and apart from this virtual environment and a standard Python installation nothing else is installed (or is not permitted to be installed). What should you do?

You can run [IDLE](https://docs.python.org/3/library/idle.html) within the activated virtual environment with this command:

```shell
python -m idlelib.idle
```

This command opens the starting window of IDLE with Python prompt. From there you can open the file you would like to edit.

But what if you would open the Python file at once? Use this command then:

```shell
python -m idlelib.idle filename
```

While IDLE does not have all niceties of PyCharm, it is better than Notepad.exe, is almost always installed and has debugging capabilities. You might even enjoy it.

Source: [Run IDLE from a batch file](https://gist.github.com/wincentbalin/411d89dea8a0a017eb4068cf5a007b2e)
Simulating wolf pack in JS with Fenrir
Tags: simulation, javascript, html, jquery
Published: 2019-06-28 11:34:17

https://github.com/skywarth/Fenrir-wolfpack-simulator

Fenrir is an assistant to prognosticate the future of a wolfpack using vanilla Javascript and data structures.
Simulation and prediction includes:

    Changes in the environment
    Health and status of individual wolves
    Disease conditions of each wolf
    Weather events and effects
    Alpha rankings in the pack
    Mortality status of pack members
    Wild card encounters (triggered by scout event)
    Meat distribution
    Regular events
    Irregular events
Low pay
Tags: softwaredeveloper, softwareengineer, webdev, bossproblems
Published: 2019-06-28 11:33:09

---
title: Low pay
published: true
description: Payment decrease
tags: Software Developer, software engineer, web development, boss problems
---

What is the lowest amount you would take as a software engineer? I just got a pay decrease because he said I never told him I didn't have a degree...yet I told him numerous times Im still in school.
Useful web development technologies you need to know
Tags: webdev
Published: 2019-06-28 12:25:08

---
title: Useful web development technologies you need to know
published: true
tags: Web Development, web development
canonical_url: https://kevinhq.com/list-of-useful-web-development-technologies/
cover_image: https://i2.wp.com/kevinhq.com/wp-content/uploads/2019/06/Web-development-technologies-I-still-use-until-now.png?resize=930%2C512&ssl=1
---

I work as a web developer since 2010. So, it’s almost 10 years now. Many technologies and services I had used during my journey as a web developer. Some of them, though they may be not on the top of the list of popular web development tools today, is still working perfectly. I still use… 

[Read More »Useful web development technologies you need to know](https://kevinhq.com/list-of-useful-web-development-technologies/)
Quantum Machine Learning
Tags: quantumcomputing, machinelearning
Published: 2019-06-28 11:05:39

Here an interesting mixture of ML and QC. Concretely about a way to build (quantum) artificial neurons

https://youtu.be/t869K3eewn8

This is just the surface of what you could do but pay attention to the fact that we are able to encode an enourmous amount of information inside a qubit!
Textbook Quantum Algorithms (WIP)
Tags: quantumcomputing, quantumprogramming
Published: 2019-06-28 11:04:04

Here an intuitive explanation for a bunch of textbook quantum algorithms

https://www.youtube.com/playlist?list=PLsedzcQz4wyXi4TMnFo3EWF1IPo6iKxge

I do not like the fact that most of the literature out there explains them in hindsight and from the maths which in my opinion it just helps you see that it works and that it's formally correct but doesn't really help you grasp the bigger picture.
DAOBet (ex — DAO.Casino) Blockchain Performance Benchmark
Tags: blockchain, testing, qa, testnet
Published: 2019-06-28 10:52:40

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/).


Since launching our TestNet, we’ve been conducting complex tests to ensure our Blockchain project continues to demonstrate the highest standards of reliability and performance.

Today we want to share positive results from one of our most recent load tests - performed in the TestNet.

The current TestNet setup consists of 21 Validator nodes that produce the blocks, plus 6 additional full-nodes. The hardware configuration of the virtual machines running the nodes is as follows: **4 vCPU, 8Gb RAM.**

We’re using a custom-made test utility to generate random transactions and distribute them among full-nodes. This simulates real-life scenarios where Validator nodes are not publicly accessible.

We’ve been able to record the following metrics within this test environment during our benchmark period:

Transactions per second: **1000**
Average block finalization delay - seconds between block is marked as **Last Irreversible** (LIB chart) -  i.e. becomes final: **1.1** sec (with occasional spikes not exceeding 2 secs)
Nodes average CPU utilization: **49%**

![](https://thepracticaldev.s3.amazonaws.com/i/wbokj2r4ktp41rzmc256.png)

As is clear, thanks to our breakthrough RANDPA consensus algorithm with superspeed finality, we are able to achieve **greater transaction throughput** while still achieving the **minimal finalization delay**.

Please note that while we’re attempting to create as lifelike a scenario as possible, our current results are not **fully** reflective of real-world conditions, as our TestNet machines are configured on mid-level hardware.

Please keep updated with our progress, as we continue to publish our benchmark results as milestones of our future development progress and improvements.


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/).
understanding the question 
Tags: javascript
Published: 2019-06-28 10:48:13

i want to a coding in js for my project where i want to figure out a question in a paragraph, EG( hi i had pizza for my lunch , how are you ?) in this eg string i want a program to find out how are you as a question. as a human we are able to understand where the question starts .in this case i want my program to capture the question alone .
I created a simple and clean banner generator 🖼️
Tags: webdev, showdev, javascript, banner
Published: 2019-06-28 10:36:58

## [Banner 🚩](https://liyasthomas.github.io/banner)
### A simple and clean banner generator

For one of my blog post, I was searching for an online banner generator. There were many heavy-duty banner generators, with tones of useless features, but none seems to be easy and fast with all essential features.

That's why I created an online banner generator tool: [Banner](https://liyasthomas.github.io/banner) for creating banners for blog posts, Facebook covers, Medium stories, DEV.to post banners, Twitter headers, Youtube banners or Instagram visuals, etc. in only a few clicks away. Use the [Banner](https://liyasthomas.github.io/banner) to promote your e-commerce website or create the perfect product images to boost your online sales and revenue. Forget all the hassle of working with complicated design tools. Learn how to make a banner within minutes!

[Banner](https://liyasthomas.github.io/banner) is an open-source banner generator optimized for change and adaptability to fit your exact needs.

![UI](https://raw.githubusercontent.com/liyasthomas/banner/master/icons/screely.png)

With [Banner](https://liyasthomas.github.io/banner), now I can make banners in all sizes for free; I can either generate banner from random color scheme or customize from A to Z by changing the wording, color schemes, upload background image, text shadow, text size, canvas size etc.

Designing a banner is now as simple as 1, 2, 3!

1. Give a heading.

2. Customize everything!

3. Download banner.

Bonus: 🌈 I also added an option to customize canvas size: create custom or standard sizes like Medium Rectangle, Large Rectangle, Leader board or Skyscraper etc.

### [Demo 🚀](https://liyasthomas.github.io/banner)

### Feel free to contribute on **[GitHub](https://github.com/liyasthomas/banner)**

{% link liyasthomas/i-m-writing-a-book-de-coding-the-passion-project-2c07 %}

---

If you want a heads up on my next projects, or just want to chat about the web, life and happiness make sure to follow me [@liyasthomas](https://twitter.com/liyasthomas) on Twitter 💙. If any of my projects helped you please consider [making a donation](https://paypal.me/liyascthomas).

![yep](https://media.giphy.com/media/XbxZ41fWLeRECPsGIJ/giphy.gif)
Apollo and external services
Tags: graphql, apollo, javascript
Published: 2019-06-28 09:57:59

---
title: Apollo and external services
published: true
description: Use Apollo and GraphQL to access external or old internal services 
tags:
  - graphql
  - apollo
  - javascript
---

Have you ever wanted to use GraphQL and Apollo but still wanted to access some external or older API?

Well you **can**! And it is super easy to do.

First lets setup our Apollo client

```javascript
import { ApolloClient } from 'apollo-client';
import { InMemoryCache } from 'apollo-cache-inmemory';

const client = new ApolloClient({
  url: URL_TO_GRAPHQL,
  cache: new InMemoryCache(),
});
```

Now this is where things get interesting. In older versions of Apollo you would use [apollo-link-state](https://www.apollographql.com/docs/link/links/state/) which would allow you to access client data through the GraphQL queries. However, that has since been merged into Apollo Client (https://www.apollographql.com/docs/react/essentials/local-state/) :tada:

What this allows you to do is use the `@client` directive in queries to access locally cached data.

```graphql
query {
  someLocalData @client
}
```

Now that we know that we query local data through our GraphQL queries we can take our Apollo client code and add an extra property to create some local queries.

```javascript
import { ApolloClient } from 'apollo-client';
import { InMemoryCache } from 'apollo-cache-inmemory';

const client = new ApolloClient({
  url: URL_TO_GRAPHQL,
  cache: new InMemoryCache(),
  resolvers: {
    Query: {
      oldApi() {
        return fetch('https://old.api.com/get/old/data')
          .then(r => r.json());
      },
    },
  }
});
```

The `resolvers: { Query {...} }` part is the most important part of this. This tells Apollo that whenever it sees a `@client` directive in the query then to use our local resolvers for this instead of posting them to the API endpoint.

With the resolvers setup we can now create a query that looks something like:

```graphql
query {
  oldApi @client {
    id
    text
  }
}
```

But what uses does this actually have? Some examples:

- Use a new GraphQL API for newer data but still access the old API
- Create mutations that save data to an old internal API.
Do components rerender if nested in a useMemo render? (yes)
Tags: react, hooks, usememo
Published: 2019-06-28 10:32:20

_Yes, they do (of course)._

But for some reason, I just hadn't thought of it before (either way), and it made me wonder for a bit yesterday. Conclusion: yes, the virtual dom tree is memoized, but only _up to contained component instance references_, which will then handle their (re)rendering on their own terms. Another way to think of it: memoization of some virtual dom tree structure doesn't mean that it's excluded from the diffing algorithm, it only means that it's not recomputed (entirely).

Here's a small doodle to explore:

{% codesandbox magical-star-xopgm %}
Characteristics Of A Successful Education at Home
Published: 2019-06-28 10:12:10

Education should not be limited to the four corners of the classroom. Learning has always been about the interest and learning capacity of the child, and never about the school. Many schools provide education, but couple it with threats and punishments. What better way to ensure a safe learning environment for your child than to teach them at home yourself? After all, learning should be focused on the individual child. <b>Here are some ways to create a positive learning environment:</b>

* <i>Teaching your kids as a form of affection.</i> Providing them with knowledge is like hugging them. Establish an atmosphere that suggests love and care that also promote respect and trust.

* <i>Be excited during the learning process.</i> Maintain eye contact and affirming gestures. Praise them for a job well done.

* <i>Children are inherently eager and curious.</i> Children’s minds easily absorb information from <a href="https://mcessay.com/">Mс Essay</a> website. It is best to introduce a subject and then relate all other things to it. Repeating the same topic more than three times might upset their interest. Sometimes teaching them over and over again is an insult to their intelligence. Long sessions invite boredom too.

* <i>Mood timing.</i> When you are planning to conduct your class, make sure that your child is well-rested, happy and not hungry. They will become obnoxious if they are not in the mood. Never force them to learn just to stick to your schedule. When they don't feel like it, they just aren’t ready to learn. You want them to positively associate learning so that they remain excited about it.

* <i>Be in the distraction-free zone.</i> The television is on the top of this list. Seeing the TV, even if it's turned off, will remind the child of cartoons. Classes should be in a neutral room, an area that has no disturbances of whatsoever for both you and the child.

* <i>Have all of the materials ready.</i> Disorganization can also be a major distraction. Everything should be in place and be ready just in time for any activity or project. You don't really want to run to the store when you need iodine for a science project, right? Even if your child is interested in the activity, by the time you come back, he will be fascinated in something else.

* <i>Stop when it's time to stop.</i> When you notice that <a href="https://childmind.org/article/what-to-do-and-not-do-when-children-are-anxious/">your child is uneasy</a>, it may be time to stop. It could be useless to continue, and it will only leave you frustrated. The best time to stop a lesson is when your child has achieved something. For example, he finishes his math quiz with a perfect mark. This way, he will always be excited for the next lesson.

<b>Make learning fun for your child and something to look forward to in the future.</b>