teleren/devto huggingface dataset:
Netstat without Netstat inside Containers
Tags: containers, docker, kubernetes, netstat
Published: 2020-07-23 15:07:58

A very hardcore but simple way to view open connections and ports open for listening in any Linux container. Use the following command even inside any bare bones container without netstat and such tools:

`grep -v "rem_address" /proc/net/tcp`

The output will be something like this
```
   0: 00000000:1F40 00000000:0000 0A 00000000:00000000 00:00000000 00000000     0        0 6106109 1 ffff889f5ff35800 100 0 0 10 0
   1: 00000000:0C6D 00000000:0000 0A 00000000:00000000 00:00000000 00000000     0        0 6112091 1 ffff889ee7e96000 100 0 0 10 0
   2: 611F820A:0C6D E61E820A:A5E6 01 00000000:00000000 00:00000000 00000000     0        0 6122922 1 ffff889d2b712800 20 0 0 10 -1
   3: 611F820A:0C6D E61E820A:A5EE 01 00000000:00000000 00:00000000 00000000     0        0 6118270 1 ffff889e736e3000 20 4 21 10 -1
   4: 611F820A:1F40 F21F820A:DE3E 01 00000000:00000000 00:00000000 00000000     0        0 6119808 1 ffff889e78be7000 20 4 3 10 -1
   5: 611F820A:0C6D E61E820A:A5FC 01 00000000:00000000 00:00000000 00000000     0        0 6128773 1 ffff889e78bf2000 20 4 33 10 -1
```

The two left columns are source address and port and destination address and port in hex. The first two rows in this example correlate to listening ports (the destination is all zeros) and the rest are open connections.

To get this in a bit more human readable form you can run the following command that should also work inside most containers:

`grep -v "rem_address" /proc/net/tcp | awk 'function hextonum(str, ret, n, i, k, c) {if (str ~ /^0[xX][0-9a-fA-F]+$/) {str = substr(str, 3);n = length(str);ret = 0;for (i = 1; i <= n; i++) {c = substr(str, i, 1);c = tolower(c);k = index("123456789abcdef", c);ret = ret * 16 + k}} else ret = "NOT-A-NUMBER";return ret} {y=hextonum("0x"substr($2,index($2,":")-2,2));x=hextonum("0x"substr($3,index($3,":")-2,2));for (i=5; i>0; i-=2) {x = x"."hextonum("0x"substr($3,i,2));y = y"."hextonum("0x"substr($2,i,2));} print y":"hextonum("0x"substr($2,index($2,":")+1,4))" "x":"hextonum("0x"substr($3,index($3,":")+1,4));}'`

The output will be similar to this:
```
0.0.0.0:8000 0.0.0.0:0
0.0.0.0:3181 0.0.0.0:0
10.130.31.97:3181 10.130.30.230:42470
10.130.31.97:3181 10.130.30.230:42478
10.130.31.97:8000 10.130.31.242:56894
```

If you want to understand how this command works - leave a comment!
Suggestions for making a scalable web app
Tags: react, node, help
Published: 2020-07-23 14:56:09

Hello, i have to make a web platform with backend and database that does the following:
track students progress,has tutors,students and organization admins,
allows to upload documents,
do checklists for tasks,
create users, delete, edit.
Also checkout payments and memberships for members of a school.
It will have an AR module to check biometrics, magnetics , facial recognition... (this is for opening doors if you are validated), this luckily i have done before with a raspberry pi and a cheap camera,
just generating a QR upon register.
i was thinking doing the FE in Rect,
which is the tech i KNOW.

But im new to BE, i was thinking on starting with NodeJS with a framework or middleware.

And i have experience with noSQL/firebase/firestore and i wanted to know if its the smartest choice.    Im a fan of firebase, so i would love to make a backend with some integration with to firebase , or frontend integrated with firebase. 

Just in case, im an advanced unity developer, but im new to backend, the ReactJS part is cake for me, but backend and some technical stuff about making it scalable is the issue.


extra questions:
1) is it good to use firebase?
2) is it good to use NodeJS or just plain cloud functions in firebase
3) should i use NodeJS or NetCore (i have unity background so c# is easy for me, also OOP)
4) SQL or NoSQL?
5) How much time would it take you personally? , tell me about your experience
Dica rápida: Paginando no MSSQL com Offset e Fetch
Tags: sql, database, braziliandevs
Published: 2020-07-23 14:55:38

Olá!

Este post é uma dica rápida para paginação usando o T-SQL no Sql Server.

É muito comum precisarmos de paginação mas, muitas vezes, este processo é realizado diretamente no código da aplicação e acaba exigindo a carga de um alto volume de dados na memória para que, em seguida, ocorra seu particionamento em páginas. Não preciso dizer que teremos um enorme desperdício de memória e, no caso de uma aplicação C#, um trabalhão para o Garbage Collector, que precisará excluir da memória os dados não utilizados.

Pois bem, este problema pode ser resolvido muito facilmente utilizando duas instruções que complementam o `Order By`: `Offset` e `Fetch`.

Primeiro, vou mostrar um exemplo de consulta utilizando os recursos e, em seguida, explico como a mágica acontece:

```sql
CREATE PROCEDURE [dbo].[CustomerPagedList]
	
	@Page INT,
	@PageSize INT

AS
BEGIN
	
	SET NOCOUNT ON;

    SELECT 
		Id, 
		FirstName, 
		LastName
	FROM 
		Customer
	WHERE 
		BirthDate >= '2000-01-01'
	ORDER BY
		Id
	OFFSET 
		((@Page -1) * @PageSize) ROWS
	FETCH
		NEXT (@PageSize) ROWS ONLY

END
```

Parece fácil. Não? E é mesmo!

A instrução `Offset` vai pular a quantidade de linhas informada. Neste caso, se `@Page` receber 2, e `@PageSize` receber 10, serão 10 linhas. Já a instrução `Fetch` , seguida de `Next`, vai devolver apenas a quantidade de próximas linhas informada depois do `Offset`. Neste caso, usando o exemplo anterior, sendo `@PageSize` 10, serão retornadas apenas as próximas 10 linhas, de 11 a 20.

Com essa abordagem você consegue definir um subset de registros a obter de sua base, sem a necessidade de obter todos os registros e usar uma estratégia de, por exemplo em C#, `Skip` e `Take` via Linq. Isso reduzirá o tráfego de dados entre a base e a aplicação, economizará memória (e trabalho do Garbage Collector), aumentando assim o desempenho das consultas paginadas da sua aplicação.

Gostou? Me deixe saber pelos indicadores! Dúvidas? Me envie pelos comentários que respondo assim que puder.

Até a próxima!

> Referências:
> [SELECT – Cláusula ORDER BY (Transact-SQL)](https://docs.microsoft.com/pt-br/sql/t-sql/queries/select-order-by-clause-transact-sql?view=sql-server-2016)
A huge thank you to our CodeLand 2020 sponsors!
Tags: codeland
Published: 2020-07-23 14:39:32

---
title: A huge thank you to our CodeLand 2020 sponsors!
published: true
description: Offering a massive thank you to the amazing companies that have made CodeLand 2020 possible.
tags: codeland
//cover_image: https://direct_url_to_image.jpg
---

A huge thank you to the amazing companies that have made [CodeLand:Distributed](https://dev.to/codeland) possible.  These organizations stepped up to support the conference and community, despite the shift to "distributed" and the risks associated with the new format.

Please check out their sponsor booths.  There are some great career opportunities and some **really cool** digital swag.

{% link https://dev.to/github/hi-we-re-github-and-we-re-excited-to-be-at-codeland-32dg %}
{% link https://dev.to/twilio/ahoy-we-are-twilio-and-excited-to-join-you-for-codeland-2020-1274 %}
{% link https://dev.to/coderbyte/hi-codeland-we-re-coderbyte-and-we-re-here-to-help-you-level-up-your-interview-skills-g2k %}
{% link https://dev.to/getstream_io/hello-we-re-stream-and-we-proudly-support-codeland-4ncm %}
{% link https://dev.to/vonagedev/hey-codeland-we-re-vonage-and-we-can-t-wait-to-meet-you-1hak %}
{% link https://dev.to/harperdb/hey-codeland-we-re-harperdb-and-we-make-data-management-easy-throughout-your-coding-journey-1f7b %}
{% link https://dev.to/azure/hi-codeland-we-re-microsoft-and-we-want-to-empower-you-to-do-more-50c8 %}
{% link https://dev.to/gitcoinco/hi-we-re-gitcoin-and-we-re-super-excited-to-be-at-codeland-43l9 %}
{% link https://dev.to/ergosesh/hi-we-re-ergosesh-and-we-are-thrilled-to-be-at-codeland-3lbk %}
{% link https://dev.to/launchdarkly/launchdarkly-is-proud-to-be-here-at-codeland-3cnd %}
{% link https://dev.to/dottechdomains/hello-we-re-tech-and-we-re-here-to-give-you-the-domain-name-you-ve-always-wanted-but-couldn-t-get-pp7 %}
{% link https://dev.to/digitalocean/we-re-digitalocean-and-we-re-excited-to-be-here-with-you-33hc %}

Thanks again!
GitHub: A social networking site for programmers
Tags: github, git
Published: 2020-07-23 14:33:01

"What Gmail is to email, GitHub is to writing software."

This blog is about my experiences and my views on GitHub. It doesn't talk about the various features it offers and how things work on GitHub. Maybe I'll write a separate blog for that :)

I remember coming across this name, 'Github' in the beginning of first year of my engineering. I was attending a workshop conducted by some of my seniors which was mostly based on what GitHub is and how is it helpful for any programmer in today's world. 

So what exactly is GitHub?
There’s a follower-following count in GitHub but it’s not Instagram. A sidebar shows who is trending but it’s not Twitter. One can use emojis to display current status but it’s not WhatsApp. It has several elements of a popular social media platform, but it is not one. If I were to give the best, brief description of GitHub, I'd say that Github is a platform where programmers maintain their projects and meet other developers with similar interests and passion. It's a platform used by around 50 million software developers to host their coding projects, most of them open-source — meaning others can access their codes and modify them to create better versions if they feel like. 

What YouTube is to content creators or Instagram is to influencers, GitHub is to developers around the world. It is here that they find validation and a means to express themselves in the language(s) they know best — Java, Python, C, Ruby,… you get the drift.

The platform allows developers to collaborate with fellow developers from around the world. For a community that stays isolated from the mainstream world and never gets its moment under the sun,  
GitHub is where developers find their place to discuss, enhance, learn and collaborate with people who essentially understand who they are and what they do. It hosts a community which was a long time coming and still has a long way to go!

One thing I like the most about GitHub is that there's no room for gender bias. It's a very wholesome community with like-minded people. It's not like any other social media platform where women are targeted and mocked for doing something people might not approve of. I personally knew some amazing #WomenWhoCode before joining Github and it's amazing how it has helped me widen my network even further.

I've started looking at code differently ever since I've joined GitHub. I used to freak out on seeing any popular repositories and the code that resided within them. With time, it has only helped me to analyse the code in a better way and understand the gist of the project. 

I could go on and on talking about how GitHub has changed my life as a developer. Let me know about your views and  experiences in the comments section 😄
🤔 What is the worst technology advice you have received?
Tags: career, discuss
Published: 2020-07-23 14:31:19

We work in a very comprehensive area, which involves many technologies and approaches, we often ask for advice and help from other people, but sometimes help causes more problems, often because it is polluted with points of view, noises and discontects that end up distorting what you would like to learn or use from original use or idea, could you share your experiences with this type of situation?
Fantastic experts, and where to find them!
Tags: discuss
Published: 2020-07-23 14:23:17

A friend is encouraging me to start a podcast, and the immediate task is to build a list of at least 20 experts in the field of research — in the public or private sector — to discuss their methods, experiences, successes, and failures among other things.

If you could listen to anyone: who would it be; and what would you ask them?

As a bit of background, the purpose is to support the product I'm working on, the [Under Cloud](https://app.theundercloud.com/), with a range of resources from experts designed for the target audience of student and professional journalists.
`node index.js` which variations do you use?
Tags: javascript, discuss, babel, node
Published: 2020-07-23 14:17:36

- Pure `node index.js`, nothing more -- but [which ECMA version, on which Node version](https://node.green/)?
- [@babel/node](https://babeljs.io/docs/en/babel-node), i.e. `babel-node`
- TypeScript's [ts-node](https://github.com/TypeStrong/ts-node)
- `deno run index.ts` -- you spelt `node` wrong.
- Restartable variants, e.g. [nodemon](https://nodemon.io/), [node-dev](https://www.npmjs.com/package/node-dev), [ts-node-dev](https://www.npmjs.com/package/ts-node-dev)

Also, do you use non-pure version in production? What about NPM library publishing?
Cheat sheet for Linux Hacking 😅
Tags: devops, linux, security
Published: 2020-07-23 14:12:40

Good eve fellow folks, Just came across this image in internet today wanted to share with you all. Just benefit out of it. Happy Hacking 😅

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/qm0ovmhoxfcaq105t9vq.jpg)
Where are you attending CodeLand from today?
Tags: codeland, discuss, watercooler
Published: 2020-07-23 14:10:53

---
title: Where are you attending CodeLand from today?
published: true
description: Sharing our set-ups as we enjoy CodeLand 2020
tags: codeland, discuss, watercooler
//cover_image: https://direct_url_to_image.jpg
---

Today's [CodeLand Conference](https://dev.to/codeland) is Distributed, meaning we're able to gather as a community with developers of all backgrounds and experience levels all around the world.

Where are you attending from today?
Practice programming for free at Practice.dev

Tags: webdev, beginners, codenewbie
Published: 2020-07-23 13:59:50

Hi there,

https://practice.dev is an open-source platform where developers can solve programming challenges that reflect problems from real projects.
We focus on creating tasks from frontend and backend only.
Testing is automatic based on the provided URL.
The website is free and open-source.

Github http://github.com/practice-dev/

Thanks,
Łukasz
CodeLand Speaker Post Round-Up
Tags: codeland
Published: 2020-07-23 13:58:58

---
title: CodeLand Speaker Post Round-Up
published: true
description: A list of the speaker posts for CodeLand 2020
tags: codeland
//cover_image: https://direct_url_to_image.jpg
---
#### _Update: talk and panel recordings available here:_
{% youtube V6nAePEEAZQ %}

---

In addition to the full schedule available at [dev.to/codeland](https://dev.to/codeland), I wanted to provide a round-up of the amazing speaker post that you'll be hearing from today.

Plenty of these speakers will be joining the livestream to answer your questions after their talks, so be sure to leave your questions and comments in their individual talk threads).  **We’ll be randomly rewarding some of the commenters that leave engaging and thoughtful questions with free CodeLand stickers.**.

Enjoy the conference!

{% link https://dev.to/saronyitbarek/what-i-learned-from-6-years-of-building-codenewbie-ba0 %}
{% link https://dev.to/erikaheidi/the-art-of-programming-with-erika-heidi-261 %}
{% link https://dev.to/brianverm/live-exploiting-your-open-source-dependencies-with-brian-vermeer-3g %}
{% link https://dev.to/gs0510/printing-floating-point-numbers-with-gargi-sharma-24fl %}
{% link https://dev.to/alexlsalt/being-utterly-fearless-in-your-pursuit-of-learning-to-code-with-alex-morton-5o0 %}
{% link https://dev.to/joshpuetz/salary-negotiation-for-people-that-hate-to-negotiate-with-josh-puetz-1f76 %}
{% link https://dev.to/luckynkosi/to-kill-a-working-drone-flying-drones-with-twitter-bananas-and-webapis-with-lucky-nkosi-4l98 %}
{% link https://dev.to/joekarlsson/an-introduction-to-iot-with-joe-karlsson-2b8l %}
{% link https://dev.to/terceranexus6/freedom-of-security-with-paula-de-la-hoz-51fk %}
{% link https://dev.to/daraghbyrne/25-ways-mindfulness-and-meditation-help-in-my-career-as-a-software-developer-4anb %}
{% link https://dev.to/vaidehijoshi/the-cost-of-data-with-vaidehi-joshi-1mhi %}
{% link https://dev.to/nickpalenchar/the-whale-the-container-and-the-ocean-a-docker-tale-with-nick-palenchar-2hj6 %}
{% link https://dev.to/amitlzkpa/seeing-sound-with-amit-nambiar-18ik %}
{% link https://dev.to/ben/why-forem-is-special-with-ben-halpern-1d61 %}
{% link https://dev.to/rukiaasm/working-smarter-5-steps-to-getting-unstuck-with-rukia-sheikh-mohamed-1932 %}
{% link https://dev.to/chloecondon/using-cognitive-services-and-mario-kart-to-create-astrology-with-chloe-condon-3ek1 %}
{% link https://dev.to/humblefool_2/machine-learning-on-the-edge-with-sangeetha-kp-5509 %}
{% link https://dev.to/captainsafia/you-and-me-learn-all-about-http-with-safia-abdalla-3nd0 %}
{% link https://dev.to/mlimonczenko/accessibility-matters-how-to-build-apps-for-everyone-with-miranda-limonczenko-1lpm %}
{% link https://dev.to/naeohmi/emoji-encoding-unicode-and-internationalization-with-naomi-meyer-34d3 %}
{% link https://dev.to/shanselman/the-art-of-computers-with-scott-hanselman-2mld %}
{% link https://dev.to/nocnica/changing-the-default-branch-name-on-github-3aon %}
{% link https://dev.to/annthurium/fighting-imposter-syndrome-with-iot-with-tilde-thurium-2mol %}

Happy Coding!
Day 21 of #100DaysOfCode
Tags: 100daysofcode
Published: 2020-07-23 13:49:15

Today's Progress: Added a menu on the back layer and branded icon, and finished the final version of the shrine app.

Link to work: https://github.com/Kyawkhaing444/Shrine-Flutter-App

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/4bn16lyt65p4qh973cf4.gif)
Web scraping project ideas in python
Tags: python, codenewbie
Published: 2020-07-23 13:44:08

What to collect data from the internet? Web scraping is a great way to gather data. Here are a few projects:

### Lyrics Generator
Writing a song can be tricky. To make your own hit song, scrape song lyrics from music websites and add data into a text file.

### Company and consumer analysis 
Data from business and consumer trends shows data from various industries. Understanding what sells and what doesn't can help with marketing.  

### Text generator 
Thinking about becoming a great author one day, use a text generator to create a poem or short story. 
 
### Movie reviews
Big cinema lover? Web scrape movie reviews and analysis them to build the perfect movie marathon.  

### Job boards
Use web scraping on job boards to collect data on occupations and job requirements for hiring. 

Know any more ideas or suggestions?
What Is The Impact Of Covid-19 On CRE? Phoenix American
Published: 2020-07-23 13:40:56


Our latest white paper examines the initial impacts of the COVID-19 pandemic crisis on commercial real estate across the United States. CRE & COVID-19 Winners, Losers & the Road Ahead, A Trends Outlook Report analyzes the effects on commercial real estate of the first three months of the pandemic crisis and the outlook for the rest of 2020 and beyond.

The paper draws on our observations as a <a href="https://www.phxa.com/">fund administration</a> provider, conversations with the client sponsors of real estate funds as well as interactions with partners, intermediaries and other participants in the industry. Our twenty-plus years as a fund sponsor as well as forty-plus years as a provider of fund administration services provides a unique perspective on current events in commercial real estate.

<a href="https://www.phxa.com/news/how-is-covid-19-impacting-the-commercial-real-estate-fund-space/">Read More</a>

<b>Contact Details:</b>
415-485-4500
<a href="https://www.phxa.com/fund-accounting/">Fund accounting</a>

<b>Visit Reference Profile Websites:</b>
<a href="https://bit.ly/3eSAHKN">https://bit.ly/3eSAHKN</a>
<a href="https://www.phxa.com/transfer-agency">Transfer agent</a>
<a href="https://bit.ly/3jvX7F6">https://bit.ly/3jvX7F6</a>
<a href="https://bit.ly/2E4Jnkm">https://bit.ly/2E4Jnkm</a>
<a href="https://bit.ly/2OGBZhn">https://bit.ly/2OGBZhn</a>
<a href="https://bit.ly/3jqROGX">https://bit.ly/3jqROGX</a>
<a href="https://bit.ly/3jsBMMD">https://bit.ly/3jsBMMD</a>
<a href="https://bit.ly/2ZR32Na">https://bit.ly/2ZR32Na</a>
<a href="https://bit.ly/2BndhPR">https://bit.ly/2BndhPR</a>
<a href="https://bit.ly/3jzyg3m">https://bit.ly/3jzyg3m</a>
<a href="https://bit.ly/2D4gTqk">https://bit.ly/2D4gTqk</a>
<a href="https://bit.ly/3hnIIsG">https://bit.ly/3hnIIsG</a>
<a href="https://bit.ly/3eNzZOU">https://bit.ly/3eNzZOU</a>
<a href="https://bit.ly/2WNO6xv">https://bit.ly/2WNO6xv</a>
<a href="https://bit.ly/30FXbcL">https://bit.ly/30FXbcL</a>
<a href="https://bit.ly/39ltYrz">https://bit.ly/39ltYrz</a>
<a href="https://bit.ly/2Bpr0Wp">https://bit.ly/2Bpr0Wp</a>
<a href="https://bit.ly/3hvuHcE">https://bit.ly/3hvuHcE</a>
<a href="https://bit.ly/2ZRODk5">https://bit.ly/2ZRODk5</a>
If you could turn back time... if you could find a way!
Tags: watercooler, timetravel, question
Published: 2020-07-23 13:30:35

If you could go back to when you first were learning software development, what advice or warnings would you give yourself?


I would tell myself the following: 
* Don't get caught up in new technologies or buzzwords. 
* I would encourage myself to learn JavaScript really well, and HTML and CSS. 
* I would encourage myself to build the sites and projects I wanted to do, but made up excuses for. 
* I would tell myself not to measure my value based on others who had more experience than me. 
* I would remind myself that although it's not about the money I need to press for being paid what I am worth and not under sell myself. 
* I would be more picky at what jobs I took. 
* I would assure myself that I was a fake, and if I continue to work hard I will be a valuable asset. 


What about you?
How To Learn New Technologies
Tags: productivity, programming, tips
Published: 2020-07-23 13:27:30

---
title: How To Learn New Technologies
published: true
description: How to learn any new technology when you're a newbie
tags: productivity, programming, tips
cover_image: https://assets.mkdev.me/posts/covers/000/000/012/original/mkdev_article.png
---
Learning new technologies as a beginner is extremely hard! In this video, Kirill Shirinkin will give one rule, distilled from over a decade of experience, which will allow you to learn new technologies in shortest time possible.

{% youtube kPo7J54fNFM %}

***

*You can always hire [our mentors](https://mkdev.me/en/specializations) and learn directly from them!*
Unary operators in Javascript Objects
Published: 2020-07-23 13:18:04

A unary operator is an operation with only one operand.

Plus sign (+) can function as an Addition Operator and also as a Unary Version in Javascript Objects.

As an arithmetic addition operator: It takes numerical values (literals or variables) as their operands and return a single numerical value.
 
Both + and - operators have unary versions, where they operate only on one variable. 
When used in this fashion, + returns the number representation of the object, while - returns its negative counterpart

The unary plus operator converts its operand to Number type.

The unary negation operator converts its operand to Number type and then negates it.

{% jsfiddle https://jsfiddle.net/6wu1kxr8/1/ %}
Meet Seashell, a new edge computing platform for modern workflows
Tags: discuss, iot, raspberrypi, seashell
Published: 2020-07-23 13:16:57

Hi there,

Check out this project we are working on:  www.seashell.sh

It is a platform to setup and manage cloud infrastructure, devices, and applications for IoT edge projects from a single dashboard. 

Think of it as a control plane for the whole lifecycle of a connected product. As of now, the platform supports the whole Raspberry Pi family, but support for new hardware will be added in the near future.

We are still at an early stage, and would love to get any feedback so that we can shape the platform according to the needs of developers out there. 

Any comment/idea/criticism is much appreciated :-)

Cheers!