teleren/devto huggingface dataset:
А давно ли 8 считалась свежей версией NodeJS...
Tags: javascript, программирование, кодинг
Published: 2019-10-03 08:46:53

---
title: А давно ли 8 считалась свежей версией NodeJS...
published: true
date: 2019-10-02 22:29:54 UTC
tags: JavaScript,Программирование,Кодинг
canonical_url: https://blog.risingstack.com/update-nodejs-8-end-of-life-no-support/
---

Сегодня в ленте сообщение: "Update Now! Node.js 8 is Not Supported from 2020". Вот тебе и раз. Я еще вчера подумал, не обновить ли 8-ю версию на своем VPS-е. Решил, что... лень, не горит пока. А теперь придется переходить на 10-ю. Или сразу на 12-ю, "чтобы 2 раза не бегать"?
Workaround for Karma and Chrome headless on Windows Subsystem for Linux, ala WSL
Published: 2019-10-30 00:21:39

---
title: Workaround for Karma and Chrome headless on Windows Subsystem for Linux, ala WSL
published: true
date: 2019-10-02 22:26:00 UTC
tags: 
canonical_url: https://justinribeiro.com/chronicle/2019/10/02/workaround-for-karma-and-chrome-headless-on-windows-subsystem-for-linux-ala-wsl/
---

Windows Subsystem for Linux (WSL) is a vastly useful thing. When I do work on Windows for those certain projects, WSL has made my life significantly easier.

One the gaps however is that running Chrome headless within WSL is difficult. I’m not blaming WSL for this (it’s basically a namespace problem which I’d expect). There are workarounds to be sure, usually involving single process and disabling the GPU, but in a recent demo I was running showcasing [open-wc](https://open-wc.org/) and [karma](http://karma-runner.github.io/latest/index.html), I was in a bind for a workaround on short notice. The fix is it’s faster and easier to point to the pre-installed Chrome binary on Windows.

Doing this requires setting the `CHROME_BIN` env variable, which will allow chrome headless to work without issue when using karma:

```
~/src/jdr-wc-template master\* ➜ export CHROME\_BIN=/mnt/c/Program\ Files\ \(x86\)/Google/Chrome/Application/chrome.exe ~/src/jdr-wc-template master\* ➜ yarn test yarn run v1.19.0 $ karma start --coverage START: \<your-component\> ✔ has a default property hello ✔ allows property hello to be overwritten Finished in 0.055 secs / 0.038 secs @ 15:23:16 GMT-0700 (Pacific Daylight Time) SUMMARY: ✔ 2 tests completed TOTAL: 2 SUCCESS
```

This is actually one of the cooler things about WSL; you can integrate executables between environments.

Will this fix all your headless chrome problems in the WSL? Probably not; some of my basic headless examples don’t run in this configuration. But if you need to run some tests real quick like, this fix just might be for you.
Visit My Website !
Tags: python, webdev, django
Published: 2019-10-02 22:15:43

Hello everyone

I have recently develop a forum for developers (for any languages) to share that you want, questions, thinkings and so on.

I will continue to develop everyday to improve this website so go there and feel free to say me that you think(bad or good) about my website.

url : http://dani75i.pythonanywhere.com/
Build Personalized Discord Bots with Python and WayScript
Tags: python, showdev, discuss, productivity
Published: 2019-10-02 22:10:08

{% youtube sWpAfML5h0I %}

In this video we'll look at how we can build custom commands onto a WayScript discord bot using python programming, discord, and [WayScript.com](https://wayscript.com)

Python Code:
```
import re

keywords = inputs['keywords']
result = inputs['result']
discord_message = inputs['Discord Message Text']

command = re.compile(r'\![a-z]*')
matches = command.findall(discord_message)
print(matches[0])
found_keyword = matches[0]
print(keywords)
position = keywords.index(found_keyword)
action = result[position]

outputs['action'] = action
```
Get Hacking! - Hacktoberfest 2019 is here!
Tags: hacktoberfest, raise, resilientcoders
Published: 2019-10-02 22:01:21

---
title: Get Hacking! - Hacktoberfest 2019 is here!
published: true
description: A simple guide to start participating in Hacktoberfest!
tags: Hacktoberfest, Raise, Resilient Coders
---

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

It's October! And that means it is time for Hacktoberfest! 

Now is the perfect time to contribute to open source projects on github. 

To get started, sign up for hacktoberfest using your github account [here](https://hacktoberfest.digitalocean.com/profile).


Once you are signed up, you can look for projects to contribute to on the hacktoberfest [homepage](https://hacktoberfest.digitalocean.com/#projects). You can filter by language to see specific issues. Once you start creating pull requests, they will be tracked on your profile page on the hacktoberfest site! Complete 4 pull requests and win a prize! 


Here are some projects you can contribute to if you rather search on github or Dev:

https://dev.to/t/hacktoberfest

https://github.com/topics/hacktoberfest


There are also a ton of events to attend around the world. Check out the [events page](https://hacktoberfest.digitalocean.com/events) to see if there are any near you!

Once you complete your four pull requests, make sure to celebrate and post about your success on the [hacktoberfest completion thread](https://dev.to/devteam/hacktoberfest-completion-thread-2n6a)! 


#### Additional resources:

Some nice guides on how to make your first Hacktoberfest contribution:
[How to start contributing to Open Source](https://dev.to/mrahmadawais/how-to-start-contributing-to-open-source-at-hacktoberfest-with-a-github-pull-request-onedevminute-1ce1
)

[How to Start Contributing to Open Source at #Hacktoberfest With a Github Pull Request #OneDevMinute](https://www.youtube.com/watch?v=4RvIFvmZA3o)



[Official DEV Hacktoberfest post](https://dev.to/devteam/hacktoberfest-starts-in-six-days-3hi2)

[An unofficial hacktoberfest swag list](https://github.com/crweiner/hacktoberfest-swag-list)

[A good twitter thread for contribution ideas](https://twitter.com/ossia/status/1178686897130016771)


--------------------------------------------------------------

### Have a project you want completed? Contact [Raise!](https://raise.dev/)

We are a group of [software developers](https://raise.dev/#devs) guided by two [senior coaches](https://raise.dev/#mentors) who are happy to help make your project a reality!

**Projects:**

#### [Hactoberfest 2019 site](https://hacktoberfest.digitalocean.com/)




--------------------------------------------------------------

Need to hire some awesome devs? Check out [Resilient Coders](https://www.resilientcoders.org/)! The bootcamp I graduated from! :)
Xamarin 101: Part 1 - Introduction to Xamarin
Tags: xamarin, tutorial, beginners, mobile
Published: 2019-10-02 21:51:46

---
title: Xamarin 101: Part 1 - Introduction to Xamarin
published: true
description: Ever wonder what Xamarin is? Step right up & get a quick overview!
tags: xamarin, tutorial, beginners, mobile
series: xamarin101
---

# The Introduction to Xamarin

Cross-platform mobile apps. C#. iOS, Android. .NET. Shared Code. Xamarin.Forms.

All of the terminology can be a little confusing. This short video below though takes the confusion out of it and explains what exactly Xamarin is, how it works, and how it can make you - a .NET developer - productive in mobile development right away.

{% youtube JH8ekYJrFHs %}

## Learn More!

There's lots of great documentation - but here's where to start to make the most of your time!

* [A self-paced learning course on how to create an app with Xamarin.Forms](https://docs.microsoft.com/learn/modules/create-a-mobile-app-with-xamarin-forms/index?WT.mc_id=xamarin101-c9-masoucou)
* [A self-paced learning course introducing Xamarin.iOS](https://docs.microsoft.com/learn/modules/introduction-to-xamarin-ios?WT.mc_id=xamarin101-c9-masoucou)
* [A self-paced learning course introducing Xamarin.Android](https://docs.microsoft.com/learn/modules/introduction-to-xamarin-android?WT.mc_id=xamarin101-c9-masoucou)

Happy mobile coding! And as always, if you have any questions - please ping me on Twitter at [@codemillmatt](https://twitter.com/codemillmatt).
What's your dream technical interview process?
Tags: discuss, career, interviewing
Published: 2019-10-02 21:28:18

We all know that the interview processes in tech can be pretty broken. But what's your dream process? Besides just being handed the job, obviously. What do you think would show off talents and skills necessary for the job you'd want and would be a fun and informative process for you?

I'll start. This would be for an infrastructure engineering position at a mid-to-senior level. My dream process would conversation with recruiter + manager to gauge fit for the team. Then, a time-boxed _small_ code challenge in a language of my choice, anonymized. Then, I'd like to have a series of short-answer questions, also anonymous, that have to do with my specific field. This would be things like "Explain load-balancing", "In your experience, what are pros and cons of microservices", "How does an identity aware proxy work?" If it could be tailored to be resume, that'd be great!

If I passed those, then it'd be an "on site" half day of 4-5 interviews with the team. I want to meet people I'd be working directly with and mostly doing deep technical dives into my past work and comparing it to their specific challenges. I'd also like to meet with leader of the org, either CTO or VP to ask some questions about culture. I don't want to do any puzzles not related to the job. I don't want to whiteboard unless it is for either party to explain the architecture of a previous project better. I want to prove technical skills by thoroughly talking through problems I've solved in the past, though I'm willing to bring code from those projects if necessary.

So, what's your dream process?
Fixing Burnout: an unproductive cycle that will hold you back
Tags: codenewbie, beginners, productivity, career
Published: 2019-10-02 21:07:06

Burnout in tech is common:
As a software engineer, I find myself overworking due to imposter syndrome, sitting at a desk all day, grinding in high-pressure situations.

After dealing with this both when I was learning the ropes, and on my first job as a web developer, I decided to take a new approach to the way I work to avoid burnout.


Please consider subscribing by clicking [here](https://www.youtube.com/mattupham?sub_confirmation=1) if you found this information useful! 

**If you prefer video format, check it out, here:**
{% youtube 0KYDieyoIBw %}
[Burnout | Fixing the unproductive cycle](https://www.youtube.com/watch?v=0KYDieyoIBw)


I've found myself setting ridiculous arbitrary deadlines and forcing myself to do anything to get my work done before that. 

This results in staying up late, sleeping in until the very last minute, rushing to work / the office, having a less than ideal day with productivity, and then beating myself up mentally for not doing as well as I'd like.

This is a continuous cycle that happens over and over, until I get depressed and then lose days of productive work to depression. 

I'm taking a new approach to the way I work / live, which has been working out well lately:
1. I'm only staying focused on the things that matter to me right now (work, learning advanced technologies, health, social life, and sleep).
2. I'm using my time slots more productively, taking breaks when I need to, and listening to my body when exhaustion hits
3. I'm focusing on wrapping up work at midnight, and waking up around 7:30am consistently (I've found that my body needs 7.5 hours of sleep)
4. Focusing on the overall process of consistency, and growth over the long term. Rushing everything (at least for me) usually ends in burnout.
5. Being grateful for the small things, being proud of accomplishments, decoupling self-worth from my work, not comparing myself to others

I've been trying out this new system for a week, and feeling a lot better about the work that I'm doing. 

Do you usually fall into the burnout trap? What have you done to overcome this?

Join our growing [Discord](https://discord.gg/9RGdMcF) community! 

**Subscribe Here**
[YouTube - Matt Upham](https://www.youtube.com/mattupham?sub_confirmation=1)

If you have any questions about breaking into the tech industry, DM me on Instagram [@mattupham](https://www.instagram.com/mattupham)

Thanks for reading!
Sync Strategy — The Core of Monnos

Published: 2019-10-02 20:53:46

Understand what it is and discover the power of our core functionality.

When the theme CRYPTO is raised, people usually think it is too complicated, that is something still distant and that will take time to become a reality applied in people’s daily lives. Caution! You may be surprised, recently facebook signaled an intention to launch its own blockchain infrastructure and cryptocurrency — LIBRA, which would be made by itself and viable and preferably traded by Wallet Calibra.


In addition, currently, the volume of resources in the crypto-economy already represents 0.58% of the total volumes added of the 10 largest STOCK EXCHANGES in the globe.
When you start using crypto you will see a new world opening up, the sooner you start experiencing it, the better it will be to understand its real potential. In order to empower those already dealing with crypto, as well as facilitate access for new users, MONNOS creates SYNC STRATEGY functionality. It consists of giving all APP users the opportunity to make their strategies public, these strategies will be ranked and the user can choose to follow or not.
Through SYNC STRATEGY the MONNOS clients accumulate knowledge with the expertise of others, share his learning by making public the strategies he creates, and even have the option of risk dilution.
Try MONNOS! 


Our APP is now available on:

ANDROID: https://play.google.com/store/apps/details?id=com.monnos.android

iOS: https://apps.apple.com/br/app/monnos-compre-sync-bitcoin/id1476884342
Attitude of Gratitude
Tags: attitudeofgratitude
Published: 2019-10-02 20:43:02

Oct. 2 2019

I am so happy to be here, and feel so blessed to have this opportunity.
In my first blog I will discuss gratitude as being one of the most important aspects of my healing journey that has ultimately lead me here, to new blessings.
My greatest blessing is my greatest lesson, and for that I am forever grateful. 
Some of my greatest trials have led me on the path I am on today.
I have begun the wonderful healing process of accepting my past experiences as exactly what I needed to bring me to the blessings of today. 
Every day I will remember to feel that gratitude and share it with others. 

“Gratitude is the wine of the soul. Go on. Get drunk!” — Rumi
Should desktop sites have a max-width?
Tags: design, layout, discuss
Published: 2019-10-02 20:31:32

I'm looking for opinions on the above. Personally, I when view sites on my 27" monitor that are full width, they tend to look less than ideal. Whereas, my laptop seems to really suit the format. However, having a load of white/grey on either side may be received negatively?

So for my first post, I thought I would see if the community has opinions on the subject?
Весёлые айтинки :)
Tags: ithumor, айтишныйюмор, шутки, мемы
Published: 2019-10-03 08:48:44

---
title: Весёлые айтинки :)
published: true
date: 2019-10-02 20:27:33 UTC
tags: it-humor,айтишный юмор,шутки,мемы
canonical_url: https://sun9-13.userapi.com/c857428/v857428200/935cd/WB_Xs3X8iS8.jpg
---
![](https://sun9-13.userapi.com/c857428/v857428200/935cd/WB_Xs3X8iS8.jpg)

Ежедневная юмористическая рубрика.
If web was made to be device and screen agnostic — How come it’s not?
Tags: discuss, design, development
Published: 2019-10-02 20:24:42

I just saw this video where Miriam Suzanne talks about how web was built to be device-agnostic and how that’s the reason CSS is built the way it is — with its (in)famous cascade. And I love that web. It’s cool and nice... Until it’s not.

We have clients that want pixel perfect websites (yeah, they’re not extinct); That think the focus outline style is strange and ugly and want it gone; That straight up say stuff like: “Those people are not my target group!”.

We have designers that come up with stuff that can’t even be rendered on screen without burning through the client browser’s resources. And then the client comes and says something like: “It works fine on my latest $5000 laptop.” Or even worse: “Why is this epilepsy attack-causing animation so slow? And make it more flashy!”

How did we get here? What happened?

How did the web that was made so people could share information free of constraint became this heavy and bloated thing that can be used properly only latest and fastest machines with fastest internet connection?

And I know about progressive enhancement, but that means not everyone will be able to see this eye-bleeding monstrosity we’re building and everybody needs to see it, no one can escape! And it takes more time/money to build it.

`</sarcasm>`

This is something that I’ve been pondering over for some time now and I want to know what other people think and maybe find some answers. 

And here’s the video I mentioned at the beginning: [Why Is CSS So Weird? - YouTube](https://youtu.be/aHUtMbJw8iA). It’s awesome, I suggest you watch it.

Comments, go!

And where else do I post this so those clients and/or designers can see it and possibly offer some answers?
Algorithm Optimisation: A Real Example - My insights
Tags: cpp, ruby
Published: 2019-10-02 20:21:52

@steadbytes


This week I read [Algorithm Optimisation: A Real Example](https://dev.to/steadbytes/algorithm-optimisation-a-real-example-4988) and I recommend you all to read it too.
It's a good article.


I do think some items can be improved and I'll elaborate on them here.

* When dealing with a large range , plots should be logarithmic to improve visibility. In [Algorithm Optimisation: A Real Example](https://dev.to/steadbytes/algorithm-optimisation-a-real-example-4988) the plots are in raw values , making the different curves and points on the curves unusable.

* When benchmarking , we should remove outliers , the samples set being used by [Algorithm Optimisation: A Real Example](https://dev.to/steadbytes/algorithm-optimisation-a-real-example-4988) `[1000 , 10000 , 100000 , 500000 , 1000000 , 2000000 , 5000000 , 10000000 , 20000000 , 50000000 , 100000000 , 200000000 , 500000000]`
Sample points `1000 , 10000` are too small and are too susceptible to noise (the buffer size used is 4096). From my tests these sample points vary too much and their results doesn't reflect the 10X size difference.

* When benchmarking , we should run the same test multiple times , one iteration isn't enough. For example , the machine used to run might be under a different load and if we only run once we won't be able to mitigate this effect. Hence I used [Benchmark IPS](https://github.com/evanphx/benchmark-ips) to run each test multiple times.


Furthermore , while the actual solution given by [Algorithm Optimisation: A Real Example](https://dev.to/steadbytes/algorithm-optimisation-a-real-example-4988) is very good and show out of box thinking.
I suggest a different , much simpler solution that also have better performance.

[Algorithm Optimisation: A Real Example](https://dev.to/steadbytes/algorithm-optimisation-a-real-example-4988) still requires a `malloc` call the size of the file being read.
My proposed solution is instead of using the innovative linked list , we simply allocate all the memory needed beforehand and read the file directly into out result variable.

```
while ((read_len = read(fd, *data + len, BUFSIZE)) > 0) {
      len += read_len;
    }
```

This gives us almost 2X on our largest sample point of `100000000`.

![Original vs. Improved vs. Improved2](https://thepracticaldev.s3.amazonaws.com/i/vheui9vbn33s09zxsatt.png)
![Improved / Improved2](https://thepracticaldev.s3.amazonaws.com/i/dlpy4smagnqml8gwh3jq.png)

[Code gist](https://gist.github.com/ohaddahan/ac1140f4a7b8b159defb0cd9b6af8f46
)
On .NET Episode: Migrating EDMX projects to Entity Framework Core
Tags: dotnet, database, entityframework, developertools
Published: 2019-10-02 20:21:40

Entity Framework is an object-relational mapper (aka ORM) that enables .NET developers to work with various databases using a common set of .NET objects. The main benefit with ORMs in general is the reduction in the amount of plumbing code required to connect and interact with the database.

As a part of the Visual Studio tooling, Entity Framework supported [mode- first](https://docs.microsoft.com/en-us/ef/ef6/modeling/designer/workflows/model-firstWT.mc_id=ondotnet-devto-cephilli) and [database-first](https://docs.microsoft.com/en-us/ef/ef6/modeling/designer/workflows/database-first?WT.mc_id=ondotnet-devto-cephilli) approaches that relied on the Entity Framework Designer. Both of these approaches stored the data model in an EDMX file; a xml based format for representing database models.  

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/5lwr4h6aunl23emc0iuw.png)


With Entity Framework Core, the recommended and supported way for creating database models for your applications is using the [code first](https://docs.microsoft.com/en-us/ef/core/modeling/) approach. If you're migrating your project from Entity Framework to Entity Framework Core you'll have to convert your EDMX based models over to use code first instead.

> Entity Framework 6.3 is supported on .NET Core 3.0, and it also supports the code first approach. You can read more about that [here](https://docs.microsoft.com/en-us/ef/ef6/what-is-new/#ef-630?WT.mc_id=ondotnet-devto-cephilli).


In this episode, Entity Framework PM Diego Vega joins Christos to give us a through walkthrough of porting an Entity Framework EDMX model over to Entity Framework Core.

{% youtube rRhBX2653Sg %}

If you liked this video and would like to see some more of our .NET content, please subscribe to our [.NET Developers YouTube Channel](https://www.youtube.com/channel/UCvtT19MZW8dq5Wwfu6B0oxw).


## Useful Links
* [What’s new in EF Core 3](https://docs.microsoft.com/en-us/ef/core/what-is-new/ef-core-3.0/?WT.mc_id=dotnet-devto-cephilli)
* [Porting from EF 6 to EF Core](https://docs.microsoft.com/en-us/ef/efcore-and-ef6/porting/?WT.mc_id=dotnet-devto-cephilli)
* [EF Core Power tools](https://marketplace.visualstudio.com/items?itemName=ErikEJ.EFCorePowerTools&WT.mc_id=dotnet-devto-cephilli)
* [Migrating from EF 6 to EF core](https://channel9.msdn.com/Shows/On-NET/Migrating-from-Entity-Framework-6-to-Core?WT.mc_id=dotnet-devto-cephilli)
Why RunKit is the Best REPL for Node.js
Tags: node, runkit, javascript, repl
Published: 2019-10-02 14:44:37

---
title: Why RunKit is the Best REPL for Node.js
published: true
description: Explain why I love RunKit
tags: node.js, runkit, javascript, repl
---

![JavaScript IDE](https://thepracticaldev.s3.amazonaws.com/i/r1o7btvxmm3qrzzxtbug.jpg)

I have something to admit... I'm a RunKit addict. It is simply fantastic!
There are many use cases, I'd like to share. But first, what is RunKit?

## What is RunKit?

It is a node.js [REPL](https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop). Of course node.js comes with it's own REPL:

```bash
node

> 1 + 2 
> // 3
```

So why bother with RunKit? NPM. RunKit comes with every NPM module pre-installed. That is crazy powerful! Let's proceed to some use cases.

## Use Cases

### 1) You want to audition an NPM module

If you want to try a module without installing it first, RunKit is your friend! Let's see a quick example. Say for instance you want to try `date-fns`.

![RunKit sample with date-fns module](https://thepracticaldev.s3.amazonaws.com/i/yoh3uabcw13taoufzhmj.png)

How is that for a quick feedback loop? Keep in mind you are not limited to a single module. You can require as many as you'd like.

### 2) Embedded Code Samples

So what, we already have `gist` right? Well, RunKit embeds are executable and modifiable. That's right, you can try the code inside an article or documentation page!

[Embed RunKit](https://runkit.com/docs/embed)

### 3) Saved Snippets

RunKit also saves your notebooks to your account. I find this extremely useful. I find myself going back to my saved notebooks weekly.

That's about it for now. Please share anything I missed in the comments :)