teleren/devto huggingface dataset:
Avalanche de informações: Um App para organizar essa "bagunça"
Tags: tecnologia, google, googlekeep, app
Published: 2020-01-15 09:32:34

Diante da avalanche de informações que o século XXI nos obriga a reter, uma solução simples e que nos auxilia na organização dessas informações é o **aplicativo Google Keep**.

O objetivo do Google Keep é servir como um armazenador e organizador de informações que podem ser acessadas posteriormente e de forma integrada.

Anotar seus compromissos, listar tarefas, registrar pensamentos, armazenar objetivos, transcrever áudio em texto, transcrever o texto de uma foto, guardar links, ou até mesmo rabiscos, são algumas das funcionalidades desta simples e objetiva ferramenta moderna.

Em uma **interface simples e direta**, o Google Keep exibe as últimas notas salvas e permite a organização delas a partir de marcadores. No topo da interface existe uma barra de buscas onde é possível pesquisar pelos termos desejados.

Mas o quê mais me agrada neste App é a questão da integração com outras plataformas, por exemplo, ao salvar uma nota no mobile a mesma pode ser **acessada após alguns** segundos em um desktop ou qualquer outro dispositivo que possui um navegador Web.

(Vale resaltar que não existe um botão para salvar as notas, isso ocorre de forma automática e com 100% de precisão)

Achou interessante e gostaria de experimentar este aplicativo que é gratuito e tem versão para Android, IOS e Web? Vou facilitar sua vida e deixar o link abaixo que leva direto a loja de aplicativos.

[Google Keep - iOS](http://bit.ly/googlekeepapple)

[Google Keep - Android](http://bit.ly/keepandroid)
Free service for text placeholders
Tags: programming, webdesign
Published: 2020-01-20 12:50:56

---
title: Free service for text placeholders
published: true
date: 2020-01-15 09:22:07 UTC
tags: programming,web design
canonical_url: https://siderite.dev/blog/free-service-for-text-placeholders/
---

Original post at [https://siderite.dev/blog/free-service-for-text-placeholders](https://siderite.dev/blog/free-service-for-text-placeholders)

![Placeholder logo](https://siderite.dev/Posts/files/placeholder.com-logo1_637146769278368505.jpg)

  A little gem I stumbled upon today that I didn't know about: [https://placeholder.com/](https://placeholder.com/ "a free image placeholder service for web designers, serving billions and billions of images each year."). You use it really simple like https://via.placeholder.com/300x150?text=Placeholder, but there is also a shorter URL that looks like this: [https://placehold.it/1280x800/8020A0/FFFFFF?text=Siderite's blog](https://placehold.it/1280x800/8020A0/FFFFFF?text=Siderite%27s%20blog "Best blog around, I hear").

  The simplest syntax is https://placehold.it/300 (a 300x300 image that displays "Placeholder" and "Powered by HTML.COM").
How To Deal With Conflicts While Pair-Programming?
Tags: help, discuss, agile, career
Published: 2020-01-15 09:17:51

[Pair Programming](https://en.wikipedia.org/wiki/Pair_programming) is a technique that puts two developers in front of one computer in order to solve a programming task collaboratively. Currently, I'm constantly pairing up with a co-worker in order to find more simple solutions to complex problems and to spread knowledge between us. We each know some of our team's systems but barely know the systems on which the other is working. So far, so good.

A much more interesting aspect is that we have very different backgrounds. He's a trained software developer (three years of professional training) and used to work for a company that didn't value aspects like testing, maintainability, and code quality much. Instead, they simply shipped a lot of stuff - mostly smaller client projects. In contrast to this, I studied Computer Science at a renowned university, and - in parallel - worked for several different companies as a student developer, often on larger systems. Therefore, I've seen many different takes on the aforementioned coding aspects and have experienced - and committed - many "textbook pitfalls" myself. I learned from each of them, and I had the luxury of learning from a diverse set of co-workers and instructors.

From the previous paragraph, I hope it has become clear that both of us have very different backgrounds, their own share of experience, and quite different views on professional development. From this stems a very *strong conflict potential*. These conflicts are not personal in nature, but revolve arount testing methodology and coding style: How to name tests? How to structure them? How to cut our system into functions and methods? How small should they be? When to stop building abstractions to avoid overengineering? What to document and where? In quite some aspects, I possess more and more relevant exprience but he often has good arguments coming from his own experience. Therefore, whe often find ourselves learning a lot from each other. We also kind-of enjoy our "nerdy disputes", but they drain our energy reserves significantly, which is starting to affect our work.

Maybe some of you spent a significant time pair programming in their career? If so, how did you handle conflict-prone pairings like this? I'd really like this programming task to not only yield a good piece of software. I'd also really like to learn about managing professional conflicts such as these, where there's often no clear right or wrong solution.
How can I get better at a language?
Published: 2020-01-15 09:13:11

Hello, i've recently started learning python so i can start working on Web Apps and backends.

I've learned a lot of fundamentals and basics, i'm looking forward to continue learning Python and expanding to Django / Flask so i can make my first web apps.

Is there a way i can practice and get better?

Not tutorials, i need 1 on 1's because they are the most effective. 

Thanks in advance.
Accessing Tableau with Python
Tags: tableau, python, api
Published: 2020-01-15 09:03:19

---
title: Accessing Tableau with Python
published: true
description: 
tags: tableau, python, api 
---

You can find the Tableau SDK Python docs: https://tableau.github.io/server-client-python/docs/

In order to be able to refresh the Datasources you need to get their ids:

```
import tableauserverclient as TSC


USERNAME = ''
PASSWORD = ''
SITE_ID  = ''


tableau_auth = TSC.TableauAuth(USERNAME, PASSWORD, site_id=SITE_ID)
server = TSC.Server('https://dub01.online.tableau.com')
server.auth.sign_in(tableau_auth)

datasources, _ = server.datasources.get()

tags_to_refresh = {'production'}

# We want to refresh only the datasources with the production tag

datasource_ids = [datasource.id for datasource in datasources if (datasource.tags & tags_to_refresh)]

for datasource_id in datasource_ids:
    item = server.datasources.get_by_id(datasource_id)
    result = server.datasources.refresh(item)
    print(result)

```
How can I help a dev who struggles with questions?
Tags: help, advice, team, questions
Published: 2020-01-15 08:11:58

---
title: How can I help a dev who struggles with questions?
published: true
description: Looking for strategies to help a colleague who seizes up with direct questions
tags: help, advice, team, questions
---

One of my team struggles a bit with direct questions.  They sort of seize up a bit.  We've chatted about this and they seem to feel under pressure to supply an answer and be sure it's correct answer.  We've talked about being super well prepared and also I've demonstrated some simple strategies to buy time when the brain locks up.  I've also explained that "I don't know" is an acceptable answer.  And that getting it wrong isn't a tragedy, no one will die!

Within our team we can manage this and work with them.  But it's tough for them when working with customers.  They inevitably ask questions, on a range from desperately vague to downright rude.

Who else out there seizes up a bit when questions are fired at them?  What have you done about it?  Are there any tips or strategies I can pass along?

Thanks :)
How to switch branches in git more easily
Tags: git, tutorial, beginners
Published: 2020-01-15 07:34:49


Switching or changing branches is the most common git command which we developers use a lot. You may be still using `git checkout` command for this. But are you aware of the `git switch` command which is more easier to change branches in git?

[Git 2.23](https://github.com/git/git/blob/master/Documentation/RelNotes/2.23.0.txt)  came up with the new ‘ [**git switch**](https://git-scm.com/docs/git-switch)  ’ command, which is not a new feature but an additional command to ‘**switch/change branch’**  feature which is already available in the overloaded  **git checkout**  command.

Currently, the all-encompassing command –  [**git checkout**](https://git-scm.com/docs/git-checkout)  does many things. It can be used to  _switch branches_  and also to  _restore the working tree files_.

To separate out the functionalities, the GIT community introduced the new  **git switch branch command**  which is an attempt to start to scale back to the responsibilities without breaking backward compatibility.

**SYNTAX:** `git switch <branch-name>`


## git switch vs checkout

The new ‘experimental’  **git switch** **branch command** is meant to provide a better interface by having a clear separation, which helps to alleviate the developers’ confusion when using  **git checkout**.

One such example is  git checkout <filename> which reverses the modifications of an unstaged file and  git checkout <branchname> which switches branch.The dilemma is more when the  **_filename_**  and  **_branchname_**  are the same.

The new commands,  **git restore**  (takes care of operations that change file), and the  **git switch**  (takes care of operations that change branches) shares out the responsibilities of  **git checkout**  in a more intuitive way.

To read our indepth tutorial with more detailed examples on how to use `git switch` command, please visit -[https://bluecast.tech/blog/git-switch-branch/](https://bluecast.tech/blog/git-switch-branch/)

Also, dont forget to check my previous tutorial on [git stash](https://dev.to/irshadbluecast/how-to-use-git-stash-50ao)
Javascript Fundamentals 101 cont'd
Tags: codenewbie, javascript
Published: 2020-01-15 07:30:25

Continuing from my previous [blog post]("https://dev.to/danvyle/more-javascript-fundamentals-101-4d5d"), more javascript 101 questions!:

## What's the difference between an "attribute" and a "property"?

**Attributes** are apart of HTML markup while **properties** are defined in your DOM*.

The easiest answer I found was by subtleseeker user on Stack overflow. Paraphrased:

Attributes initialize DOM properties. Property values can change; attribute values can't.

Attributes in html represent the initial value and the DOM property can be called and will be the current value.

For example, when the browser renders ``` <input type="text" value="Bob"> ```, it creates a corresponding DOM node with a value property initialized to "Bob".

When the user enters "Sally" into the input box, the DOM element value property becomes "Sally". But the HTML value attribute remains unchanged:

```

 input.getAttribute('value') // "Bob".

 ```


## Difference between document `load` event and document `DOMContentLoaded` event?


The **DOMContentLoaded** event fires when the initial HTML document has been completely loaded and parsed, without waiting for stylesheets, images, and subframes to finish loading.

Stylesheets can slow your DOM parsing down which is why **DOMContentLoaded** is preferred over **load** for user request satisfaction.

A different event, **load**, should be used only to detect a fully-loaded page. The load event is fired when the whole page has loaded, including all dependent resources such as stylesheets and images. This is in contrast to DOMContentLoaded, which is fired as soon as the page DOM has been loaded, without waiting for resources to finish loading.

That's all for today, please leave any comments/questions/corrections in the comments. Thanks!
















###### Sources:
Huge huge thanks to github user: yangshun for aggregating the most popular JS, CSS and HTML questions and giving us his answers to it. My weekly blog posts are to go over several questions at a time to reinforce my knowledge of fundamental javascript as I grow my expertise in it. Many of my blog will be paraphrasing if not direct quote from his github. Find his tech interview handbook here and please support him!

And an additional thank you to Flatiron alum: Marissa O. who is a badass developer at Forbes magazine for directing me to his blog!


*The **DOM** stands for document object model. The DOM defines a standard for accessing documents: "The W3C Document Object Model (DOM) is a platform and language-neutral interface that allows programs and scripts to dynamically access and update the content, structure, and style of a document." W3Schools

Other sources:

https://stackoverflow.com/questions/6003819/properties-and-attributes-in-html
Docker interview questions
Tags: docker
Published: 2020-01-15 07:30:12

Docker– A well-known technology widely used and appreciated by DevOps engineers originated in 2013 and it turned out to be a big hit by the end of 2017. So what makes Docker so darn popular? The following statement about Docker will definitely give you an overview of it.

“Docker is hotter than hot because it makes it possible to get far more apps running on the same old servers and it also makes it very easy to package and ship programs.”

<H3>According to wikipedia:- </h3> 

<a href="https://www.docker.com/">Docker</a> is a set of platform as a service products that use OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels.
All the noise about Docker is happening because companies are adopting it at a remarkable rate. Numerous businesses that had already moved their server application from virtual machines to containers. As Docker is a new trend in tech town no doubt its engineers are also in demand.

<img src="https://codersera.com/blog/wp-content/uploads/2019/10/Docker-interview-questions.jpg">

Here are the<a href="https://codersera.com/blog/top-20-docker-interview-questions-for-2019/"> Top 20 Docker interviews question</a>

Thanks for reading this.
Generating a nuget package and use locally for .Net developers
Published: 2020-01-15 07:29:50


What is a Nuget Package ?
NuGet is a free and open-source package manager designed for the Microsoft development platform (formerly known as NuPack). Since its introduction in 2010, NuGet has evolved into a larger ecosystem of tools and services.
NuGet is distributed as a Visual Studio extension. Starting with Visual Studio 2012, NuGet comes pre-installed by default. NuGet is also integrated with SharpDevelop. NuGet can also be used from the command line and automated with scripts.
It supports multiple programming languages, including:
· .NET Framework packages
· Native packages written in C++, with package creation aided by CoApp
Generating a nuget package takes a simple steps.
Step 1. Right-click on your project and go to properties , select the package tab. Fill in the necessary information about the nuget package you are trying to create
Step 2: Change your project from Debug to Release. Then right-click on the project and select “Pack”. This build the project and a “.nupkg” extension file is been generated, To get the file, Open file explorer and navigate to your project, then navigate to bin>Release. 
To add the nuget package to your local repo, you must first install package console CLI . Use the following Command line to install
“Install-Package NuGet.commandline”
Step 3. Create a folder which you have an access to and drop the nupkg file in the folder . Let us say the name of our nupkg is “FileA.1.0.0.nugpkg” Then use the following command to add the nuget package in the nuget repo . 
PM >nuget add “FileA.1.0.0.nugpkg -source C:\Users\Kafka
where “C:\Users\Kafka” is the folder where our nupkg is
The above command add the nuget to our local repo . To remove the nuget from our local repo we use the following command 
PM >nuget remove “FileA.1.0.0.nugpkg -source C:\Users\Kafka
Why mobile testing services are required?
Tags: mobiletestingservices
Published: 2020-01-15 07:24:19

Mobile Application Testing empowers ventures to manufacture applications that are adaptable and available over various stages. It's a procedure to fabricate application programming by testing it for its usefulness, ease of use, and consistency. This should be possible via automation just as with manual testing. Portable applications are getting perplexing and there is a requirement for start to finish testing. Directly from whether the application is downloadable viably, works consistently, and gives a similar sort of experience across different gadgets. 

Difficulties Involved In Mobile Testing 

<a href="https://www.testingxperts.com/services/mobile-testing/">Mobile application testing</a> is a difficult element in itself. The market is dynamic and developing, the group needs to keep awake to date on each new part of the versatile world, be it the dispatch of an OS update or another telephone model or most recent computerization device or most recent patterns in testing. 

#1) Team of Required Experts: 

On the off chance that an application is mind-boggling, at that point clearly one QA can't test the entire application in solitude, subsequently, you need a group of specialists to do the testing procedure. 

#2) Short Release Time: 

Because of the expansion in the number of contenders, the clients or item proprietors would prefer not to trust that 3-4 months will discharge the application and in such circumstances, individuals who have a hands-on understanding of mechanization (and manual) testing are favored more. 

#3) Test Labs: 

For thorough OS form and telephone model testing necessities, improvement should be possible utilizing emulators or test systems however not testing. 

In such cases, you have to contribute and purchase the gadgets with the OS and model size blends, in this way it is a major venture. Henceforth testing administrations are enlisted from the individuals who as of now have such testbeds made. 

#4) Automation Tools Required for Testing: 

Versatile applications are exceptionally inclined to security dangers and henceforth the security of applications is a significant worry in the application advancement process. Aside from this, the exhibition of the application is another worry on the grounds that nobody needs to sit tight for 5-10 minutes for the application to stack the necessary data. 

Propelled devices are required for such testing and that might be an overhead expense. Alongside this, if these tests are to be done on different OS – model blends then it costs a great deal.
Introducing MonsterEngine! A high-performance web server written in Rust.
Tags: rust, ruby, c, webdev
Published: 2020-01-15 07:02:33

[MonsterEngine](https://monsterengine.org/) is a web server which is designed for [Plamo](https://plamo.org/) apps and can be used from various programming languages.
It is developed based on hyper and the Ruby version benchmarks 6 times better in performance than Puma.
I will be very glad if you could give a try! Thanks!
https://monsterengine.org/
Lazy load components in Angular
Tags: angular, performance, ivy, webdev
Published: 2020-01-15 07:01:06

---
title: Lazy load components in Angular
published: true
date: 2020-01-15 06:11:52 UTC
tags: angular,performance,ivy,web-development
canonical_url: https://medium.com/angular-in-depth/lazy-load-components-in-angular-596357ab05d8
---

### Lazy load Angular components

#### Lazy load Angular components with Ivy and Angular 9

![](https://cdn-images-1.medium.com/max/1024/1*MJ61Dr8O49DrIdFtH0NLnw.png)

Lazy loading components in Angular? 🤔 You mean lazy loading modules with the Angular router!

**No, you read correctly, lazy loading components!**

Yes, the current Angular version only supports lazy loading of modules. But Ivy offers us new possibilities.

### Lazy loading so far — Lazy loaded routes

Lazy loading is a great feature. In Angular, we get it almost for free by declaring a lazy route.

![](https://cdn-images-1.medium.com/max/1024/1*ptam80oycjvpFq8NIOq5TQ.png)<figcaption>Lazy loading a module in Angular / source: angular.io</figcaption>

The code above would generate a separate chunk for the customers.module which gets loaded as soon as we hit the customer-list route.

It’s a pretty lovely way to shrink the size of your main bundle and boost the initial load of your application.

Still, wouldn’t it be cool if we get even more granular control over lazy loading? For example, by lazy loading single components?

Lazy loading of single components hasn’t been possible so far. But, things have changed with Ivy.

[Find out more](https://medium.com/angular-in-depth/lazy-load-components-in-angular-596357ab05d8)
Do you use python virtualenv inside Docker at production?
Tags: discuss, docker, python, virtualenv
Published: 2020-01-15 05:51:35

---
title: Do you use python virtualenv inside Docker at production?  
published: true
description: Asking a question about docker and python. It actually what people do in the production environment.   
tags: discuss, Docker, Python, virtualenv
cover_image: https://thepracticaldev.s3.amazonaws.com/i/ng5p5tsx5ay27ig2t5la.jpg
---

Do you ship your container dev to the stage, stage to prod? OR, clone the repo at production server and run docker command, like, `docker-compose up --build`
UVA 10302解
Published: 2020-01-15 05:40:23

就套三次方連加公式

Σn³={n*(n+1)/2}²

把它拆開 →[n*n*(n+1)*(n+1)]/4

然後放到程式裡就好

(為什麼不能像matlab一樣有^)ಠ_ಠ

 #define _CRT_SECURE_NO_WARNINGS
 #include< stdio.h >
int main()
{
long long int a,b=0;
while ((scanf("%lld", &a)) != EOF)
{
b = (a*a*(a + 1)*(a + 1)) / 4;
printf("%lld\n", b);
b = 0;
}
return 0;
}
---
如果覺得拆開太麻煩也可以用< math.h >裡面的pow()做函式運算
其實也是大同小異ლ(◉◞౪◟◉ )ლ
 #define _CRT_SECURE_NO_WARNINGS
 #include< stdio.h >
 #include< math.h >
int main()
{
long long int a, b = 0;
while ((scanf("%lld", &a)) != EOF)
{
b = (pow(a, 2) * pow(a + 1, 2)) / 4;
printf("%lld\n", b);
b = 0;
}
return 0;
}