teleren/devto huggingface dataset:
Bẫy dầu trên máy lạnh là gì? nên biết như thế nào
Published: 2019-09-29 02:45:02

Đối với người sử dụng máy lạnh, cụm từ  “bẫy dầu” vẫn còn là khái niệm khá mới mẻ. Vậy bẫy dầu trên máy lạnh là gì và vì sao nên sử dụng? Hãy cùng Điện Lạnh Trần Hùng tìm tìm hiểu nhé!
Xem thêm : https://dienlanhtranhung.net/nen-mua-may-lanh-hang-nao/

1Bẫy dầu trên máy lạnh là gì? Hoạt động như thế nào?
Bẫy dầu là một đoạn ống đồng được uốn thành hình 2 chữ U nối tiếp nhau hoặc 2 chữ U ngược nhau và thường được đặt tại vị trí đường gas để bẫy dầu không cho dầu (dùng để bôi trơn dàn nóng) theo gas về dàn lạnh, tránh làm giảm hiệu năng trao đổi nhiệt và gây hư hại dàn lạnh. 
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/2f5jjni5yh0hyxjr7adm.jpg)
Người ta chế tạo bẫy dầu bằng cách lấy một đoạn ống uốn đồng đường hồi (ống to) lắp giữa dàn nóng và dàn lạnh thành dạng “cổ vịt”. Mỗi lần dầu đọng ở “cổ vịt” sẽ bịt kín đường hút, lúc này máy nén sẽ tập trung toàn lực và dễ dàng hút dầu về. Cứ mỗi một độ cao ta sẽ uốn một cái (khoảng 3m thì uốn 1 cái).
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/cmlafw66ecwu8bamufr1.jpg)
2Vì sao lên sử dụng bẫy dầu trên máy lạnh
Sở dĩ cần bẫy dầu là vì ở một số trường hợp có địa hình không thích hợp, bắt buộc ta phải lắp cục nóng điều hòa đặt cao hơn cục lạnh. Khi đó dầu máy đọng lại trên đường ống và chảy vào dàn lạnh dẫn tới tình trạng làm giảm hiệu quả trao đổi nhiệt tại dàn lạnh. Đồng thời tình trạng này làm giảm hiệu suất và tuổi thọ của dàn lạnh. 
Vì vậy, Khi khoảng cách dàn nóng cao hơn dàn lạnh từ 3m trở nên thì thợ thường sẽ phải lắp đặt thêm hệ thống bẫy dầu để hạn chế tình trạng thiếu dầu gây ra bởi lốc (do không thể hút dầu về).

3Các lưu ý khi lắp đặt bẫy dầu
Bẫy dầu điều hòa thực chất chỉ là một công đoạn trong cả quá trình lắp đặt máy điều hòa, vì thế nếu như bạn không có thời gian để tìm hiểu kiến thức, thì hãy nhờ đến những trung tâm sửa chữa điều hòa.
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/dccgnqabc9ynqxhd1yrl.jpg)
Ngoài ra, do áp lực của môi chất lạnh và dầu nên dầu có thể bị tách khỏi máy gây tổn thất dầu. Máy nén sẽ hỏng nếu dầu bôi trơn bị ít đi.
Xem thêm : https://dichvudienlanhthuduc.wordpress.com/2018/03/10/sua-chua-may-lanh-o-thu-duc-phuc-vu-nhanh-nhat-24h/


Còn với đường ống nhỏ, ngắn thì dầu sẽ quay về máy nén trong một thời gian và phần ngưng đọng cũng nhỏ, nhưng khi đường dài thì người ta phải bổ sung dầu và lắp đặt bộ tách dầu để nó không lưu chuyển xa gây đọng dầu trên đường ống và thiết bị làm tăng trở lực cũng như khả năng lưu chuyển. Nhiều dầu quá sẽ thay đổi tính chất của môi chất tăng áp suất nén.
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/0fvtqn5bkv7yl18euepz.png)
Javascript Learning From Scratch -00003
Tags: javascript, beginners, deliaslan, khanacademy
Published: 2019-09-29 11:21:02

****** this is the point of aligment hierarchy.
****** eğer büyük nesneyi sonra çizer ve kesişim içerisinde olursa küçük olan nesne alt katmanda kaldığından görünür olamaz.

----first drawing 

rect(76, 45, 250, 300); // face

rect(126, 250, 152, 60); // mouth

rect(140, 150, 30, 30); // left eye

rect(240, 150, 30, 30); // right eye

rect(175, 345, 50, 50); // neck

// unibrow
line(140, 129, 270, 129);

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



----second drawing

rect(126, 250, 152, 60); // mouth

rect(76, 45, 250, 300); // face

rect(140, 150, 30, 30); // left eye

rect(240, 150, 30, 30); // right eye

rect(175, 345, 50, 50); // neck

// unibrow
line(140, 129, 270, 129);

output: ![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/z4dj3djaqtclyk1oo9kn.png)
Tabs to change category wordpress woocommerce
Tags: help, wordpress
Published: 2019-09-29 11:20:30

I want to create category tabs where I can change products based on the chosen category. I would like the feature below (you can click on the category tab and the product will change)

https://vip-restaurant.vamtam.com/shop-home/#tab-1-5-breakfast

One solution I can think of is I create a jquery tabs and use woocommerce shortcode. However, I am not sure if it is the correct way in wordpress

```
[products category="salad"]
```

In the example above, I can see that when changing the tab, the url changes as well. I dont know how to do it. Please help

Could you guys show me how to do it? Thanks very much
Adicionando um novo projeto na lista da #Hacktoberfest 2019
Tags: opensource, contribuition, contribuição, hacktoberfest
Published: 2019-10-06 14:14:08

---
title: Adicionando um novo projeto na lista da #Hacktoberfest 2019
published: true
date: 2019-09-29 11:00:00 UTC
tags: open source,contribuition,contribuição,hacktoberfest
canonical_url: https://jtemporal.com/adicionando-um-novo-projeto-na-lista-da-hacktoberfest-2019/
---

A lista de projetos brasileiros para contribuir nesse Hacktoberfest de 2019 é gerada automáticamente usando algumas mágicas do Liquid. Então, vamos ver como podemos adicionar um novo projeto nessa lista por meio de um _pull request_?

<center>
<img src="https://jtemporal.com/images/showtime.gif" alt="Gif com o genio do alladin live action falando 'É hora do show!'">
<small><i>É hora do show!</i></small>
</center>

## Materiais

1. Um navegador (eu vou usar o Firefox, mas você pode usar o que preferir);
2. Uma conta no GitHub;
3. Disposição.

_Nota da autora_: existem inúmeras formas de fazer esse _pull request_ (PR), aqui eu vou ensinar um formato usando o navegador para que você possa fazer sua contribuição mesmo que você não tenha conhecimentos profundos de git. Se você já tem prática em contribuir com projetos no GitHub, pula direto [para essa seção](https://jtemporal.com/adicionando-um-novo-projeto-na-lista-da-hacktoberfest-2019/#revisao) que tem uma lista de passos menos detalhada do PR que deve ser o suficiente pra você fazer a sua contribuição.

---

Para continuar lendo clica no botão aqui de baixo pra seguir lá pro outro blog 👇



[![](https://jtemporal.com/images/clique-aqui-para-ler.png)](https://jtemporal.com/adicionando-um-novo-projeto-na-lista-da-hacktoberfest-2019/)
A brave move by Brave
Tags: browser, blockchain, ads, rewards
Published: 2019-09-29 09:48:58

---
title: A brave move by Brave
published: true
description: The technology behind brave browser and ads network
tags: browser, blockchain, ads, rewards
---

**Current online ads landscape**
Advertisers and publishers are always in search of targeting the right user group and the actual presenting of ads to the user. Users are the most undervalued actor of the use case. The ads intrude into the viewing area, uses up bandwidth, make the overall experience poor. In most cases, the users enjoy the service for free by viewing the ads e.g. Youtube. 

Brave browser has taken this use case and improvised to make it a win-win situation for all. Here is what Brave has done.

**Brave Browser**
Brave itself is an open-sourced browser specialized in ad and website tracker blocking and private browsing capabilities. And it does it efficiently.

####Now to get to the technology behind brave.

*Brave* is Google's Chromium web browser like other browsers like chrome, partners with search engine [DuckDuckGo](https://duckduckgo.com/). The browser has added [Tor](https://en.wikipedia.org/wiki/Tor_(anonymity_network)) for private browsing. The browser has combined its capability with a blockchain-based platform to connect the advertisers with the consumers with no multilayered middlemen. The network that brave would connect to is the first of its kind blockchain-based digital advertising platform called [TAP network](https://tapnetwork.io/). Braves network is based on Etherium blockchain and it uses a token Called Basic Attention Tokens (BAT) as the cryptocurrency for rewards for the users or viewers of the ads. The browser gives users an option to opt-in viewing ads and only those users will see ads as a notification separated from the content that they are viewing. 

![Brave Ad](https://thepracticaldev.s3.amazonaws.com/i/l1qyplwfdk57d4w3tlyj.png)
 
Brave Ads are shown to the user based on the data that is stored locally to the user's browser and hence it does not require a remote tracking system and users data to be sent out.
The browser also gives you the option to choose how frequently you want to view the ad. 

![BAT Network](https://thepracticaldev.s3.amazonaws.com/i/phzgvuj4plyezu11s3xc.png)

This use-case of online advertisement implementation on top of a blockchain network is clearly a disruptive one that opens up a lot of possibilities. The token that users collect can be claimed back as any fiat currency or tip content writers, encouraging them to produce more quality content. At the time of writing 1 BAT (0.00093990 ETH) = USD 0.160672.
Machine learning para proyectos de seguridad
Tags: machinelearning, cybersecurity, python, sklearn
Published: 2019-09-29 09:35:07

---
title: Machine learning para proyectos de seguridad
published: true
description:Machine learning para proyectos de seguridad
tags: machine learning,cybersecurity,python,sklearn
---

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

https://speakerdeck.com/jmortega/machine-learning-para-proyectos-de-seguridad

En esta charla se explicarán los conceptos sobre el machine learning aplicados a la ciberseguridad a través de diferentes casos de uso y ejemplos. Además, se explicarán los principales algoritmos que podemos utilizar para comenzar a desarrollar sistemas de seguridad utilizando distintas técnicas como regresión, árboles de decisión y clustering. Finalmente se mostrará un caso de estudio aplicado a la detección de malware.
Weboldal készítés
Tags: weboldal, keszites, webdev
Published: 2019-09-29 08:20:41

<h1>Weboldal készítés</h1>
<p>Weboldal készítés kis és középvállaltok részére a Flow Design segít Önnek és cégének profi weboldala beindításában, legyen szó weblaprol, webshoprol, wagy akár összetetteb weboldalakról.<br>A <a href="https://flow-design.hu">weboldal készítés</a> és weblapkészítés legelső pillanatától kezdve oda figyelünk, hogy weboldala keresőoptimalizált és reszponzív legyen. Fontos számunkra, hogy az Ügyfél elégedett legyen a végeredménnyel ezért a <a href="https://flow-design.hu">weboldal készítés</a> folzamán állandó kapcsolatban vagyunk Ügyfeleinkkel.<br><br>
<a href="https://flow-design.hu"><img src="https://thepracticaldev.s3.amazonaws.com/i/qhcku76xo02r77g3sejc.png" alt="weboldal készítés">
</p></a>
Hi I'm Vinay, a SRE who likes to help people solve problems. Ask Me Anything!
Tags: ama, devops, help, career
Published: 2019-09-29 07:29:23

Hi everyone! 

I'm Vinay Hegde, a Site Reliability Engineer with 6+ years of hands-on expertise in deploying, scaling & troubleshooting production applications on infrastructure distributed across diverse cloud / co-located environments to ensure high availability.

At all the organizations I've worked with, I've also built the requisite tooling for faster development workflows (_such as deploy pipelines, configuration management, scripts for daily tasks, etc.._), effective monitoring (_i.e: Infrastructure / Application_), debugging complex issues across the OSI stack (_e.g: Entire DC Outages, Disaster Recovery_), conducting technical assessments & interviews to scale up teams among others.

---

If you have any questions about SysAdmin / SRE / DevOps, blogging, career tips, side projects or anything else - please feel free to ask away!
Java Deep Learning Cookbook
Tags: java, machinelearning, books
Published: 2019-09-29 04:25:20

Hello Everyone,
I have been working on a publication: "Java Deep Learning" since Jan 2019 and expected to be released on this October. If you are interested to know more about it, here is the GitHub page:
https://github.com/rahul-raj/Java-Deep-Learning-Cookbook

You are welcome to clone the repository and explore DL4J (Deep Learning for Java)
JavaScript String: Extract a portion of string
Tags: javascript, beginners, webdev
Published: 2019-09-29 03:26:34

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/33i11tm6qt5pbg6ma128.gif)

Created this comic gif to depict how substring method can be useful to extract a portion of string. 

But always remember **strings are immutable**, so substring or any other method when applied to a string does not mutate the original string. It instead returns a new string.

Enjoy this saturday creation!
Véspera de Piscina
Tags: ptbr, piscine, fortytwosp, diary
Published: 2019-09-29 03:15:49

Zero hora de domingo. Dia 29 de Setembro. Véspera de Piscina.
A ansiedade bateu forte e devo estar a 15 dias sem produzir conteúdo por aqui.
O que fiz nos últimos dias:
- terminei o curso de Git e GitHub para iniciantes (e aprendi a usar VIM) [aqui](https://www.udemy.com/course/git-e-github-para-iniciantes/)
- terminei o curso de Shell Script para iniciantes [aqui](https://www.udemy.com/course/conceitos-de-programacao-em-shell-script/)
- tentei aprender regex [aqui](http://aprenda.vidageek.net/aprenda/regex)
- participei de mais um Hackathon, o OpenHack da [Shawee](https://shawee.io/)
- fui ver minha mãezinha no Rio e pedir a benção para essa piscina
- Adiantei  matérias da faculdade de Engenharia de Computação que faço na [UNIVESP](http://univesp.br).

Já arrumei minhas malas. Hoje ainda me mudo para São Paulo para os próximos 28 dias.
Dia 30 começa essa jornada.
What is Immutability?
Tags: scala, javascript, react, beginners
Published: 2019-09-29 03:05:04

Immutability seems like an advanced topic, but it really isn't.

You may have heard about **immutability** in context to **Functional Programming**. However, you can take this idea and apply to any programming language.

Watch this video to learn from a day-to-day example.

The code in the end is written in **Scala**, but you can easily code this in JavaScript, Python, Ruby, Java or any other language.

Please let me know if you have any questions. I would be happy to give the examples in other languages if you folks need!

Keep learning and Keep sharing!
My Favorites Pandas Tricks
Published: 2019-11-20 16:46:57

---
title: My Favorites Pandas Tricks
published: true
date: 2019-09-29 00:00:00 UTC
tags: 
canonical_url: 
---

In this post I will be writing about my favorite tricks about pandas that I use when doing some data analysis.

- Finding unique values

```
import pandas as pd
data = pd.read_csv('https://gist.githubusercontent.com/tiangechen/b68782efa49a16edaf07dc2cdaa855ea/raw/0c794a9717f18b094eabab2cd6a6b9a226903577/movies.csv')
data.Film.unique()
```

This will print only unique values in `Film` column in the csv.

- Filtering Data

Lets say in the dataset you are only looking for movies that had audience score above 50 and were comedy only. You can use filtering in this case which is really useful.

```
new_data = (data.Audience score % > 50) & (data.Genre == 'Comedy')
```

- Saving to `csv`.

Pandas have a function that allows you to save data to csv file. For instance in order to save all the unique movie names we have to convert it to a data frame

```
uniq = data.Film.unique()
out = pd.DataFrame(uniq)
out.to_csv('uniq.csv')
```

This will create a csv file of unique names.

- `Groupby`

This allows us to group data into groups. For instance if we want to look at the count of movies according genre we can use `groupby`.

```
data.groupby('Genre').Film.agg(['count'])
```

This will out put the total numbers of movies for each genre. You can also use other parameters like `sum` , `mean` and `median`.

- String Operations

You can also use string operations when working with text data.

```
lower case a specific column

data['Genre'] = data['Genre'].str.lower()
```

This will lowercase your `Genre` column in the data. you can also use `upper()` for uppercase and you can also apply your own regex by using `replace`.

Anyways these were my favorite things about pandas and I hope you enjoyed reading it. Let me know in the comments what’s your favorite thing about pandas.
Simple Explanation of Pointers in C++
Published: 2019-09-28 23:24:15

Every variable has a location in memory and every memory has an address. A pointer is a variable that has the address of another variable. It's denoted by the asterisks symbol (*). So let's take a look at a number variable with the value of 3.
```int num = 3;```
The address of num would be where the value 3 is located in memory. It's marked with the ampersand symbol (&). If we console log the address, it would look something like this: 0x7ffeeb3989888. The address is going to look like some long line of numbers and letters.
```cout << &num; // prints 0x7ffeeb3989888```
Now here is the tricky part with pointers. They point to the address of num and also have access to the value of num, but the pointer and num are not the same value. Remember that pointers are only holding the value of the address of num. When we print out the line myPtr, it will print the address of 3.
```*myPtr = &num;
cout << myPtr; // prints 0x7ffeeb3989888```
But, if we print out *myPtr, it will print out the value of the address. The asterisk symbol will indicate that you are trying to access the variable it points to. ```cout << *myPtr; // prints 3```
And that's the basic of pointers! It's a simple idea, but easy to get lost in if you don't keep track of what's pointing to what. The most important thing to know is that pointers are not the same as the variable it is pointing to. Pointers are only pointing to the address. For a quick look at what we were doing, this is what the code example looks like: 
```
cout << "Address of num (&num):" << &num << endl; //displays address of num
cout << "myptr value at address (*myptr):" << *myptr << endl; //access the variable it points to
cout << "myptr contents (myptr): " << myptr << endl; //the variable stored in myptr
cout << "myptraddress (&myptr): " << &myptr << endl; //display address of pointer
```
The Tech Lead Coaching email list is now free!
Tags: career, leadership
Published: 2019-09-28 22:45:25

---
title: The Tech Lead Coaching email list is now free!
published: true
description: Writing a paid newsletter on Substack seems like a great idea, and it is, but it's inconsistent with my goal of trying to help as many folks as possible.
tags: career, leadership
---

Hey Tech Leads,

Yesterday was my birthday, so as my gift to you, I'm making the Tech Lead Coaching email list free (again). 

![Happy birthday to me](https://thepracticaldev.s3.amazonaws.com/i/rye6flo71ht99iqg6ziz.gif)

It was an interesting experiment to create a paid newsletter. I think it's a great idea and Substack seems to be nailing it. I even think it could make a ton of sense for a nichy, valuable area, like making more of your career as a tech lead.

That said, my goal isn't to make a ton of money off my ideas or insight. My goal is--truly--to try to make your life as a tech lead a little bit better and more effective.

Having worked for lots of terrible tech leads and been one myself, I honestly believe our tech industry would be a whole lot better if we had better leads.

So I hope you'll join me on this journey! Gratis.

[Get on the list for $0/month](https://michaelrice.substack.com)
Edit Your Website Live In Google Chrome by using document.designMode
Tags: productivity, chrome, devtools
Published: 2019-09-28 21:26:35

---
title: Edit Your Website Live In Google Chrome by using document.designMode
published: true
cover_image: https://thepracticaldev.s3.amazonaws.com/i/2khp927h1i1w7ew9dimz.gif
description:
tags: #productivity #chrome #devtools
---

I was on my [twitter](https://twitter.com/arbaoui_mehdi), reading stuff, then suddenly I see a tweet which shows a cool feature that I never thought exist, this feature is `document.designMode` which allows you editing the entire document directly, this property is set by default to `off`, let's change it to `on` and see the MAGIC HAPPENS.

![Google Chrome document.designMode](https://thepracticaldev.s3.amazonaws.com/i/2khp927h1i1w7ew9dimz.gif)

```js
document.designMode="on"
```

Credit:

{% twitter 1177559150563344384 %}
Need suggestion on how to create a CI/CD pipeline for my dockerized app
Tags: devops, docker, help
Published: 2019-09-28 21:01:52

Hi all, I've been working as a Python based backend engineer for quite a while and recently I've become obsessed with DevOps and SRE related technology. I have started learning docker and also dockerized my first django app using docker-compose. But now I'm a bit lost on how to make this better. 

As far as my limited knowledge goes, I should at least set up a CI/CD pipeline and try for a zero downtime deployment using Kubernetes. However I don't have any clue about any of these things apart from a few names (e.g Ansible, Terraform, Kubernetes, Docker Swarm etc.) 

Can any courageous adventurer help this lost wanderer to find his way? :p
Resume reviews/tips post?
Tags: resume, jobs
Published: 2019-09-28 20:32:19

---
title: Resume reviews/tips post?
published: true
description: A post to share/seek opinions about resumes
tags: resume, jobs
cover_image: https://au.hudson.com/images/default-source/insights/resumes/resume-examples.png?sfvrsn=afc9a83b_5
---

I am in the middle of my _job haunting_ process, and it got me thinking .. 
the last post I saw where we shared and rated each others resumes I got to see was in 2018. Can we do this again now?

There are lots of tips that have major affects on our resume perception that most of us do not know. Including how the resumes scanning software work, what is a convenient format, and what are the most crucial points someone needs to have in her/his resume.

Job seekers, please share a link to your resume below.
Experts, please give share us some of your time and knowledge by rating our resumes.

[My resume](https://docs.google.com/document/d/12fgzwsB9LgtgIRZetlfBWqHwJj81VQqiopQHhXG8fAo/edit?usp=sharing)
Overwhelmed and lost, how to code in 2019?
Tags: discuss, beginners, help
Published: 2019-09-28 19:18:32

I've been trying to code for the last 2 years. I got to say that it was more of a hobby then a full time commitment as I'm still in high school, but I'm completely lost. Best case scenario, I would like to be able to work as a developer this next summer as a part job. My problem is that I feel like I don't even **know** how to code, I know Python syntax, HTML, CSS, C#, Git, but I'm overwhelmed by all the libraries and frameworks and this and that. It feels like all I know is useless to create something. I'd want to create a website, but what do I use? Django, React or/and Node.js? *Oh I could try using that WordPress thingy I keep hearing about*, hell it's something ***TOTALLY*** different. I "know" how to code, but I can't find a way through all these resources, it's overwhelming.

From this, I have a question: How to "learn to" code in 2019?

This is a rant and a cry for help, SOS.

Sincerely yours, Jay
Things you did not know about hoisting in Javascript!
Tags: javascript, webdev, node, explainlikeimfive
Published: 2019-09-28 19:14:28

## So you think you know javascript, right? 

What do you think would be the output of this code snippet?

![Question 1](https://thepracticaldev.s3.amazonaws.com/i/meg7llpwlia4g8recsp6.png)

### it's `2`

Stumped yet?

What about this question? What do you think is the output this time?

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

### its `undefined`

Confused? Well, let us clear that confusion. Here's a short video that I created concisely explaining the concept:
https://www.youtube.com/watch?v=ncq_PE3T0WI&t=18s
Java Deep Learning Cookbook
Tags: java, machinelearning, books
Published: 2019-09-28 18:43:20

Hello Everyone,
I have been working on a publication:  "Java Deep Learning" since Jan 2019 and expected to be released on this October. If you are interested to know more about it, here is the GitHub page: 
https://github.com/rahul-raj/Java-Deep-Learning-Cookbook

You are welcome to clone the repository and explore DL4J (Deep Learning for Java)