teleren/devto huggingface dataset:
Navigating thy desert of despair
Tags: programming, productivity, motivation
Published: 2020-02-28 02:24:33

In the culmination of all the frustrations that had been building up in me, I threw my hands in the air, and flipped my laptop. The resounding bang that followed was akin to what I had been feeling for many days now, almost weeks. “No looking at code this entire weekend,” I resolved, and something within me settled. As a glimmer of hope started shining within me, I thought if there is any light at the end of the tunnel, I should start looking for it. I had never experienced this in all my months as an Android developer. Everything was overwhelming, activities or fragments, things I knew, and things I didn’t know but needed to know… you name it. At some point, I thought Android wasn’t for me.

As most passionate developers do, I hardly avoided code all weekend. In fact, I started looking for options. I had read about MOOC.fi and 'The Odin Project', and after a lot of deliberation, I decided on 'The Odin Project', mainly because MOOC.fi taught Java, and it is Java for Android that had me pent up all these frustrations.

The web was exciting, it was enormous, maybe more enormous than Android, but it looked exciting. I started learning things: the difference between the web and the internet and the important skills to have as a web developer. I started looking at command line, and programming seemed all beautiful and good once more. It took me one [article](https://www.thinkful.com/blog/why-learning-to-code-is-so-damn-hard/) to figure out that what I had been feeling before was just a part of a programmer’s journey.

In essence, I was mainly frustrated because I was sure my Android programming journey would end somewhere, I was just never sure where nor how I’d get there. I was just drawn with the “Mirages of Mania”–dozens of tempting resources that appeared to have all the solutions I was looking for, but didn’t. I sought The Odin Project thinking it was the salvation I needed: that it would make me a real developer, while Android would not.

Thanks to that article, I self-diagnosed and started looking for solutions. I needed a strong goal; I needed a strong path; I needed to focus and avoid distractions. You bet this is what I did. I set myself strong goals to improve my Android development skills. I started learning Kotlin, which I had been postponing for months now even though it is crystal clear is the future of Android development. I decided to level up my Java skills through Michael T. Goodrich and Robert Tamassia’s Data Structures and Algorithms. I must say the frustrations are now long gone, they have been replaced by the desire to chart forward. I don’t know if my path will work or not, but the person who suggested I was in the Desert of Despair also recommended focusing and avoiding distractions. Who am I to dispute?

It has been going not so well, but in the desert of despair, we simply persevere.
Optimize Your Notetaking With Glyphs
Tags: lifehack, notes, glyphs
Published: 2020-02-28 00:44:36

I wanted to share a quick tip that I've been using for years to make my notes (written and typed) more useful.

By nature I am a pretty disorganized note-taker.  When jotting down notes I typically work in a very scattered "mind map" layout.  I find if I try to keep to any sort of outline I tend to need to squeeze more and more notes into a confined space.  What has evolved from this is basically a messy page of notes with all shorts of connecting lines, doodles, etc.

While this fits my brain well it is often difficult to pick out the bits that I need to "take action" on.  Usually my understanding of what I have taken notes on is solid, but things like action items, additional research I need to do and other "meta" information gets lost in the structure - I guess you could call it "not seeing the trees for the forest"

Over time I have developed a short list of standard "glyphs" that I use in my written notes to help these items stand out:



	
  * `(!)` - Action item - Something I need to do

	
  * `(N)` - Note item - Something I need to document

	
  * `(?)`  - Research item - Something that needs further research

	
  * `(@)` - Contact - Someones contact information


Do you have any note-taking tips?  I'd love to hear them.
Stupid Telnet Tricks
Tags: telnet, http, troubleshooting, smtp
Published: 2020-02-28 00:42:55

As a system administrator, it is often necessary to do a "sanity check" from time to time.  Most problems become simple when you can break them down into their various parts.  Often, though, we take the services we use for granted.  We **know** that the web server is running, email "just works"...**right**???  Using some of the tricks below, you can verify that these services, in fact work, as you assumed and save yourself a lot of time and trouble.

### HTTP

```
telnet server 80
GET / HTTP/1.1
```

### SMTP
```
telnet server 25
Trying X.X.X.X...
Connected to localhost.
Escape character is '^]'.
220 sever ESMTP Exim 4.69 Wed, 07 Jan 2009 21:53:57 -0600
HELO foobar.com
250 server Hello localhost [127.0.0.1]
mail from: <a href="mailto:test@foobar.com">test@foobar.com</a>
250 OK
rcpt to: <a href="mailto:you@somewhere.com">you@somewhere.com</a>
250 Accepted
data
354 Enter message, ending with "." on a line by itself
payload
.
250 OK id=1LKlz9-0000cW-Tz
quit
221 server closing connection
Connection closed by foreign host.
```

### POP3
```
telnet mail.foobar.com 110
Trying X.X.X.X...
Connected to mail.foobar.com.
Escape character is '^]'.
+OK The Microsoft Exchange POP3 service is ready.
USER username
+OK
PASS password
+OK User successfully logged on.
STAT
+OK 6 48274
LIST
+OK 6 48274
1 11274
2 11269
3 4929
4 4461
5 13350
6 2991
.
QUIT
+OK Microsoft Exchange Server 2007 POP3 server signing off.
Connection closed by foreign host.
```

## What are your favorite telnet tricks?


I am sure most of these are old-hat to many of you, what other "stupid telnet tricks" do you have?
Como começar a estudar Java? por Leila Oliveira
Tags: java, career, developer, junior
Published: 2020-02-28 00:15:46


Escrito por @leilasoliveira especialmente para @elasprogramam

{% link https://dev.to/leilasoliveira/como-comecar-a-estudar-java-omh %}

Parabéns pra você que escolheu Java para ser a sua linguagem de programação! 😄 Você se tornará uma excelente javeira!

Mas... OK. Você já deu o primeiro passo, para onde seguir? Como estudar? Que materiais usar?

Vou falar aqui sobre minha experiência.

Quando decidi estudar a linguagem Java, ainda na faculdade, busquei por vários materiais de estudo e cai no site da [Caelum](https://www.caelum.com.br/).
Eles tinham uma página do site dedicada para disponibilizar apostilas gratuitamente sobre várias tecnologias. Por sorte, eles ainda têm essa página para download das apostilas e você poderá baixá-las, clicando aqui.

Usei a apostila Java e Orientação a Objetos e Java para Desenvolvimento Web. As apostilas falam um pouquinho de lógica de programação, mas se estiver difícil acompanhar, recomendo a leitura do artigo Lógica de programação: a base de tudo.
Você pode usar esta minha experiência para sair do lugar e começar seus estudos, ou pode procurar por outros materiais semelhantes (em outro artigo, farei um compilado de sites com materiais de estudo para linguagem Java).

A dica que vale pra tudo é: faça TODOS os exercícios, exemplos, pesquise suas dúvidas no Stackoverflow (certamente alguém já passou pelos mesmos problemas que você), nos grupos de programação (sempre pesquise primeiro antes de publicar sua pergunta), etc. Aproveite e estude um pouco de Git (é meio que obrigatório nos dias de hoje, viu!) e suba seus códigos no GitHub para todos verem seu talento!

Dica bônus: crie um projeto seu com a tecnologia que estiver usando. Por exemplo, faça um sistema para uma biblioteca usando Java para Web, imagine e anote todos os cenários possíveis (para emprestar livros, o sistema deve ter uma relação de livros catalogados, como seria o cadastro desses livros?). Aqui, não apenas Java você estudará, mas também banco de dados, front-end (html, css, javascript). É bem mais legal estudar desta forma, na minha opinião, você acaba aprendendo uma stack inteira (palavrinha da moda para conhecimento desde o front-end até o back-end).

Aqui vai uma lista de algumas tecnologias que você vai ouvir falar e que com certeza vai estudar a maioria delas:

JSF
Hibernate
Spring Framework
VRaptor
.NET Fundamentals: Arrays in C#
Tags: csharp, dotnet, techtalks, beginners
Published: 2020-03-05 04:26:42

---
title: .NET Fundamentals: Arrays in C#
published: true
date: 2020-02-27 23:00:00 UTC
tags: csharp, dotnet, techtalks, beginners
cover_image: https://i1.wp.com/killalldefects.com/wp-content/uploads/2020/02/FundamentalsArraysPublic.png?fit=768%2C432&ssl=1
canonical_url: https://killalldefects.com/2020/02/27/net-fundamentals-arrays-in-csharp/
---

The post [.NET Fundamentals: Arrays in C#](https://killalldefects.com/2020/02/27/net-fundamentals-arrays-in-csharp/) appeared first on [Kill All Defects](https://killalldefects.com).

---

Recently I had the opportunity to give an introductory lesson on arrays in C#. I enjoyed the experience of trying to present basic programming truths in a simple and accessible way and thought I’d share a YouTube version of those same materials with you:

{% youtube AKiQwuKdtTM %}

Let me know what you think and if this is something you’d like to see more of.
Using GitHub Actions With Azure Functions
Tags: serverless, azure, devops, azurefunctions
Published: 2020-02-28 00:42:04

---
title: Using GitHub Actions With Azure Functions
published: true
date: 2020-02-27 22:55:55 UTC
tags: serverless,azure,devops,azure-functions
canonical_url: https://www.aaron-powell.com/posts/2020-02-28-using-github-actions-with-azure-functions/
---

I'm back on the [Visual Studio Toolbox show](https://channel9.msdn.com/Shows/Visual-Studio-Toolbox?WT.mc_id=aaronpowell-blog-aapowell) and this time we're looking at the application we worked with [in the last video](https://dev.to/azure/creating-functions-with-vs-code-22b0) but add a bit of DevOps on it using GitHub Actions!

I've blogged about how to use [GitHub Actions with Azure Functions](https://dev.to/azure/deploying-azure-functions-with-github-actions-c5p) in the past, but that was looking at .NET functions and in this video we'll look at JavaScript Azure Functions.

Enjoy!

{% youtube s-WkdSXRDA4 %}
TokenReplace - A ColdFusion User-Defined Function 
Tags: coldfusion, cfml
Published: 2020-02-27 22:51:21

I've worked with different projects that perform tokenization differently; often it involves using different delimiters.  While researching I saw that Drupal (which I don't use) has an official [TokenReplace](https://api.drupal.org/api/drupal/includes%21token.inc/function/token_replace/7.x) function documented in their API.  I thought I'd write something similar since this this doesn't appear to be a function that Adobe ColdFusion currently has.

## Usage

### Create a string with tokens.

Here are some samples. _(I don't personally recommend using HTML brackets, pound signs or parenthesis, but some frameworks use them.)_

```
Hello {name}?  Is this {address}?  I have a special delivery for '{ccName}'.
Hello [name]?  Is this [address]?  I have a special delivery for '[ccName]'.
Hello <name>?  Is this <address>?  I have a special delivery for '<ccName>'.
Hello :name:?  Is this :address:?  I have a special delivery for ':ccName:'.
Hello <<name>>?  Is this <<address>>?  I have a special delivery for '<<ccName>>'.
Hello ::name::?  Is this ::address::?  I have a special delivery for '::ccName::'.
Hello #name#?  Is this #address#?  I have a special delivery for '#ccName#'.
Hello %name%?  Is this %address%?  I have a special delivery for '%ccName%'.
Hello -name-?  Is this -address-?  I have a special delivery for '-ccName-'.
```

### Create a data structure.

(NOTE: The token is not case-sensitive.)

```js
replacementData = {
  "name" = "Bruce Wayne",
  "Address" = "1007 Mountain Drive, Gotham",
  "ccName" = "The Dark Night"
}
```

### Use the UDF

```js
TokenReplace(Text, replacementData, "{", "}")
// Hello Bruce Wayne?  Is this 1007 Mountain Drive, Gotham?  I have a special delivery for 'The Dark Night'.
```

**NOTE:** [ReEscape](https://cfdocs.org/reescape) may be an Adobe ColdFusion-only [function](https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-m-r/reescape.html), but BlueDragon [supports](http://openbd.org/manual/?/function/reescape) it too. I'm not sure what the equivalent [Lucee](https://lucee.org/) function is. **(UPDATE: I replaced the ACF built-in function with the [REEscape UDF from CFLib](https://cflib.org/udf/REEscape).)**

## TryCF Demo

[https://trycf.com/gist/18e4d1662e8417fc824e264b2490dd1b](https://trycf.com/gist/18e4d1662e8417fc824e264b2490dd1b)

## Source

[https://gist.github.com/JamoCA/18e4d1662e8417fc824e264b2490dd1b](https://gist.github.com/JamoCA/18e4d1662e8417fc824e264b2490dd1b)

{% gist https://gist.github.com/JamoCA/18e4d1662e8417fc824e264b2490dd1b %}
Simple Stopwatch Web App
Tags: javascript, css, portfolio, webapp
Published: 2020-02-27 22:42:10

---
title: Simple Stopwatch Web App
published: true
description: a new simple project for my portfolio
tags: javascript, css, portfolio, webapp
---

I built a new small project for my portfolio. It was good practice in Javascript and CSS. Check out my stopwatch app: https://thedevbc.github.io/stopwatch/
Code available at https://github.com/thedevbc/stopwatch

Feel free to give some feedback.

The challenge with doing this in the browser is that the document can't be updated every millisecond. Hundreds of a second was possible, but it really didn't matter to the human eye. I decided to only show tenths of a second in the clock display, but then when recording values (laps) it is using time stamps which are accurate down to the millisecond.
Learning Frontend as a Backend dev
Tags: discuss, react, javascript, vue
Published: 2020-02-27 22:10:47

Hey all, I thought I'd pull the community for tips on learning Frontend development.

I've been writing backend software in various forms for many, many years now. Even so, Frontwnd feels magical and scary.

It's definitely a skill I'm missing, but I wouldn't know where to start now.

Has anyone done this particular journey? Any tips?
Uncached Go tests: avoid flaky tests
Tags: go, testing
Published: 2020-02-27 21:25:42

So, crazy about your integration tests with Go?

I was totally crazy testing my endpoints, and, for hours, I didn't know why [some tests were flaky](https://hackernoon.com/flaky-tests-a-war-that-never-ends-9aa32fdef359) in my CI environment.

But [since Go 1.10 tests are cached](https://golang.org/doc/go1.10#test).

To avoid cache, you can use:

```go
go test -count=1
```

Thanks @MarcioRodrigues and [that issue](https://github.com/golang/go/issues/24573#issuecomment-427455066).
IA, ML, DL e NN... Que tal entender a diferença de uma vez por todas?
Published: 2020-02-27 21:08:19

Qual a diferença entre esses termos:

- Inteligência Artificial
- Machile Learning
- Deep Learning
- Redes Neurais

...é uma das perguntas mais frequentes que recebo das pessoas que me acompanham no instagram. Então resolvi escrever esse artigo para esclarecer essas definições de uma ver por todas e de uma maneira bem objetiva.


-> Inteligência Artificial = Artificial Intelligence = IA = AI

Campo de estudo da computação que busca meios para fazer com que a máquina tenha capacidade de resolver problemas que normalmente são resolvidos por humanos. Algo entre os seguintes comportamentos: planejar, armazenar, aprender, racionalizar, resolver problemas, ser criativo, etc

Obs. Sempre lembrando que é difícil definir de maneira muito especifica e ter apenas uma definição, pois nós nem mesmo temos real conhecimento a respeito da inteligência humana e muito menos do limite da Inteligência não natural (artificial)

Ex. Carros autônomos, Robótica, Reconhecimento de voz e imagem, Recomendação de conteúdo...

Curiosidade: existe há pelo menos 60 anos


-> Machine Learning, = Aprendizado de Máquina = ML

Primeiramente, Machine Learning é Inteligencia Artificial, mas Inteligencia Artificial não é Machine Learning.

Aprendizado de máquina é uma subárea da IA q busca através de algoritmos fazer com que a máquina faça ações sem ser explicitamente programada. São algoritmos que analisam dados, aprendem com esses dados, extraem padrões e aplicam o que aprenderam para tomar decisões / previsões

Ex de aplicação: Recomendação de conteúdo, detecção de fraude em sistemas financeiros

Ex de algoritmos: Random Forest, Regressão Linear, Regressão logística, Árvores de Decisão, Classificação Naive Bayes, etc


-> Deep Learning = Aprendizagem Profunda = DL

É um subtipo de ML, um sistema de AUTO-ENSINO treinado por muitos conjuntos de dados e uma rede neural com camadas. Se utiliza de camadas de unidade de processamento não lineares para transformação e extração de recursos. Também representa conceitos em várias hierarquias que correspondem a vários níveis de abstração

Ex de aplicação: Detecção de células de câncer, FaceID, tradutor de idiomas

Curiosidade. Só é possível cm uma grande quantidade de dados disponíveis e alto poder de processamento


-> Redes neurais = Neural Network

São modelos matemáticos em algoritmos inspirados no cérebro humano q descrevem a inter conectividade entre unidades básicas computacionais, os chamados "neurônios"

Ex de redes: CNN, GAN, SVM, etc



E aí, ficaram mais claras as diferenças?

Se curtiu, não deixe de compartilhar este post com alguém que vive com essa dúvida! ^-^

Ah e se quiser me seguir no insta, meu usuário é @thaissa.candella
Charming Text Messages for Her 2020
Published: 2020-02-27 21:00:38

Looking for Charming Text Messages for Her or Charming Text for Her? Sending of charming love text messages can add value to your relationship. Ignite your love with these [attractive text messages](https://www.vereeke.com/long-paragraphs-for-her/) and make her love you more or be attracted to you.

Surprise her with a charming message or attractive love text messages; let her know how you feel.  Charming text messages for her is an amazing way to impress your girlfriend. Send that text Now!

Charming Text Messages for Her: Charming [Love Text Messages](https://www.vereeke.com/) for Her
Check out these charming messages to send to a girl

1.    You are my dream, I need you right now, I cannot start my day without thinking of you.  I love you

2.    You are so close to me yet so far, you are in my heart, I always feel you close to me. Longing for the day I will always be close to you.

3.    When I am down you lift my spirits when you are happy you share the joy with me. In bad and good times you are always with me. You have taught me how to love. I love you.

4.    My moments with you are magical, I cannot live without you. You are an angel to my soul.

5.    My heart has been consumed by your love, each time I fall asleep, I dream about you.

6.    The best feeling in life is to fall in love, I found my dream girl; you are the love of my life. I love you.

7.    Sweetheart, everything is meaningless without you, you are part of me.

8.    Your image is always in my mind, I can always hear my heart whispering your name and I can always see your face when I close my face, how beautiful you are. I love you.

9.    You helped me understand what life means, live to the fullest. Before you came I didn’t know what love is. I am in love with you my sweet girl.
How to quickly remove duplicates from Array & keep order
Tags: swift, ios
Published: 2020-02-27 20:56:28

#### The problem

Let’s say you have array of strings and want to remove all duplicate items. Meaning if you have this array:

```swift
let fruits = ["apple", "pear", "pear", "banana", "apple"]
```

You want each item only once.

```swift
let fruits = ["apple", "pear", "banana"]
```

#### The solution

If you know other collections in Swift, then you should know that `Set` does not allow duplicates by default. 

We can use this feature to our advantage and quickly remove the duplicates by first creating `Set` from our `Array` and then creating `Array` once again:

```swift
let noDuplicates = Array(Set(fruits))
```

This is super short and works very well. It has one possibly big **disadvantage** and that is it loses the order of items. If you don’t care about order, then it does not matter. If you know how the items should be ordered then you can just call `sorted` or `sort` as a last step and solve it this way.

### Keeping order

However in some cases you may get items from API that are ordered in particular way and you need to keep this ordering. Fortunately `NSOrderedSet` comes to the rescue.

The `NS` prefix betrays that this is not “native Swift” collection but we can use it regardless.

```swift
let orderedNoDuplicates = NSOrderedSet(array: fruits).map({ $0 as! String })
```

`NSOrderedSet` is not generic so it works with type `Any`. Meaning we are losing type safety, so we have to be careful about what items we are adding and getting back.

In the above case we know `fruits` is array of strings so we can use `as!` just fine to get back ordered strings without duplicates.
I would recommend using `NSOrderedSet` only internally or creating wrapper struct around it with generic parameter to add type safety.

By the way since we are talking about sets, there is also `NSCountedSet` that stores counts for elements.

_Is anything not clear? Do you want more information? Ask in the comments and I will do my best to help you._
Say Goodbye To Provider Hell With react-component-pack
Tags: react, javascript, typescript
Published: 2020-02-27 20:54:02

If you're developing apps with React, you may have faced something like this:

```jsx
function App() {
  return (
    <AuthProvider>
      <DataProvider>
        <AnotherDataProvider>
          <WtfProvider>
            <ThisIsGettingReallyBigProvider>
              <OhMyGodTheresMoreProvider>
                <FinallySomeRealComponents />
              </OhMyGodTheresMoreProvider>
            </ThisIsGettingReallyBigProvider>
          </WtfProvider>
        </AnotherDataProvider>
      </DataProvider>
    </AuthProvider>
  );
}
```

That's what people call Provider Hell and I created this tool to make this kind of code more readable.

Here's the same example, using the [react-component-pack](https://github.com/HorusGoul/react-component-pack) utility:

```jsx
import { createPack } from 'react-component-pack';

const ProviderPack = createPack(
  AuthProvider,
  DataProvider,
  AnotherDataProvider,
  WtfProvider,
  ThisIsGettingReallyBigProvider,
  OhMyGodTheresMoreProvider
);

function App() {
  return (
    <ProviderPack>
      <FinallySomeRealComponents />
    </ProviderPack>
  );
}
```

> *NOTE:* This utility won't allow you to pass props to a specific provider. Feel free to submit a PR 😁

{% github HorusGoul/react-component-pack %}