teleren/devto huggingface dataset:
The Ultimate Cheatsheet To Mongoose Query Methods
Tags: node, mongodb
Published: 2021-09-22 12:39:23

Good morning folks,

Today, I have a compiled a cheatsheet of mongoose query methods. It contains several performance related tips and data fetching patterns like filtering, pagination etc.

This cheatsheet contains all the tips and tricks I've picked up over the last one year I've spent working with mongoose and mongodb.

You can checkout the repo [here] (https://github.com/akashshyamdev/mongoose-query-methods-cheatsheet).

Feel free to create a PR containing your own tips and tricks you known and want to share with the community.

Also, follow me on [twitter] (https://twitter.com/akashcodes) where I post about web development stuff like JavaScript, React, NodeJS and Crypto. Bye for now 🤟
Código Limpo: Que Bruxaria é Essa?!?! (Introdução - Parte 1)
Tags: cleancode, javascript
Published: 2021-09-22 12:37:06

Oi! Fiz uma tradução dos conceitos do livro ***Código Limpo*** de Robert C. Martin (Tio Bob) adaptados para o JS desse repositório do Github aqui:

{% github https://github.com/ryanmcdermott/clean-code-javascript %}

#⚠️ AVISO!!! ⚠️

Sim, há várias traduções para o português desse repositório, mas essa é a **MINHA** tradução, portanto, não tem nada copiado aqui!

Isto posto, vamos lá!

São os princípios de engenharia de software do livro ***Clean Code***, de Robert C. Martin, adaptados para o JavaScript. Não se trata de um guia de estilo. É um guia para escrever programas legíveis, reutilizáveis e passíveis de refatoração no JavaScript.

Nem todo princípio contido aqui precisa ser rigorosamente seguido e, em termos universais, pouquíssimas pessoas estariam de acordo. São diretrizes e nada além disso, porém foram sistematizadas, ao longo de muitos anos de experiências coletivas, pelos autores de ***Clean Code***.

Nosso ofício de engenharia de software possui pouco mais de 50 anos e ainda assim aprendemos bastante. Quando a arquitetura de software é tão antiga quanto a própria arquitetura, pode ser que tenhamos que seguir regras ainda mais rígidas. Por enquanto, deixe com que essas normas sirvam de critério de avaliação da qualidade do código JavaScript que você e sua equipe produzem. 

Mais um ponto: o conhecimento dessas regras não transformará você em um melhor desenvolvedor de programas em um primeiro momento e a aplicação destas não significa que você deixará de cometer erros. Cada pedaço de código começa como um primeiro rascunho, do mesmo modo que a argila molhada, que é modelada até adquirir a forma final. Por fim, nos livramos das imperfeições quando a revisamos com nossos pares. Não se maltrate por causa dos primeiros rascunhos que precisam de melhoras. Em vez disso, maltrate o código!

E aí? Gostaram? Até a próxima tradução! 🤗
Is a CS/IT degree necessary to get a job in any IT MNCs?
Tags: softwaredevelopment, programmer
Published: 2021-09-22 12:33:46


istockphoto.com

I’m working as a software engineer in an MNC and I have a IT bachelor’s degree. I have seen many out there wondering where having a CS/IT degree is necessary to land a job in any IT company. Well, this question is subjective. you will never find any objective answer for this.

Let me clear this for you.

On one hand, we can directly say no, there is no necessity of having a degree or diploma in CS/IT. One who has the fire to write code, developed applications can work on their DataStructure and Algorithms and land the job during in-campus/off-campus placement or walk-in interviews. There are many out there who don’t ask for your degree even, they just wanna know are you a problem solver or not. Can you solve a problem that is present in front of you during interviews? On experience part, if you want to have a career in IT domain then you can work on some personal project, contribute in open source for gaining experience if you don’t have any prior working experience.

One of my close friends, she was pursuing bachelor’s degree core electronic, but later she was working on her coding skill in C++ and DS&Algorithm. During the placement, She got hired as a full-stack software engineer at IBM. It is just one who has to be persistent in what she/he wants in life.

But there were some companies that came during placement and their eligibility criteria were only for CS/IT. Which is fine, they know exactly what they want or looking for. If you ask me is it worth it having CS/IT degree, then I will simply reply with No Because this is Internet era and the possibility of learning resource are no more limited. There are plenty of resources available which can help you to grow your career or land a job as a software engineer.

So, if opted for any other bachelor course but later realizes you want to go into the software/ web app development domain. Of course, you can pursue and no one is stopping you to become what you want to be.
Open AI : Getting started
Tags: openai
Published: 2021-09-22 12:21:49

I have attached below my notes related to OpenAI:

prompt: The input text
engine: four text completion engines available, named davinci, ada, babbage and curie. 

davinci :the most capable of the four, yet the slowest and most expensive if your needs extend beyond the available free tier for the API.

stop: The GPT-3 engine does not really "understand" text, so when it generates text, it needs to know when to stop. stop marker can be :.
temperature: A number between 0 and 1 that determines how many creative risks the engine takes when generating text.
top_p: An alternative way to control the originality and creativity of the generated text.
frequency_penalty: A number between 0 and 1. The higher this value, the bigger the effort the model will make in not repeating itself.
presence_penalty: A number between 0 and 1. The higher this value the model the bigger the effort the model makes in talking about new topics.
max_tokens: Maximum completion length.

OpenAI’s API provides access to several different engines - Ada, Babbage, Curie and Davinci.
 Davinci is generally the most capable engine,
 Curie can perform many of the same tasks as Davinci, but faster and for 1/10th the cost.
Choose. Build. Get Rewarded. $1.3M+ funding.
Tags: javascript, blockchain, programming, challenge
Published: 2021-09-22 12:18:04

Never heard of Lisk or the Lisk SDK, but you would like to develop a project/business with blockchain technology, and you know Javascript and/or Typescript?

Current opportunities for funding:
🔹 https://lisk.com/grant-program 👈
🔹 https://hackonlisk2.devpost.com/ 👈

Interested? ⚡ https://bit.ly/QuickStartLisk ⚡
How to Scrape Website Data using Infinite Scrolling?
Published: 2021-09-22 12:07:37

 
Consider that you are extracting products from flipkart and you also want to extract other 100 products from all the categories, however you are incapable to utilize this technique as it grabs the initial 15 products from the page.
Flipkart is having a feature named infinite scrolling therefore there are no pagination (like? page=2, page=3) within the URL. In case, it had the feature we might have entered a value in the “while loop” as well as incremented page values like we have given below.
page_count = 0
while page_count < 5:
    url = "http://example.com?page=%d" %(page_count)
    # scraping code...
    page_count += 1	
Now, let’s get back to the infinite scrolling.
“Ajax” allows any website of using infinite scrolling. However, the ajax request has the URL from which products gets loaded on the similar pages on scroll.
To observe the URL.
•	Open a page in the Google Chrome
•	After that, go to a console and right click as well as allow LogXMLHttpRequests.
•	Now reload a page as well as scroll down slowly. While the new products get populated, you would see various URLs called after “XHR finished loading: GET” and click on it. Flipkart has various kinds of URLs. The one that you are searching for begins with “flipkart.com/lc/pr/pv1/spotList1/spot1/productList?p=blahblahblah&lots_of_crap”
•	Then left click on the URL and this would be highlighted within a Network tab of Chrome dev tools. From that, you could copy the URL or open that in the new window. (here is the image)
 
Whenever you open a link in a new tab then you would see something like that with about 15-20 products every page.
 
1. You can observe that merely 15 products again! However, we want all these products”.
So, just check a URL there like Get a parameter called? start= (any number) Now for the initial 20 products, set a number to 0; and for the next 20, get a number to 21 as well as in case, there are 15 products every page with 0, 16, 31 etc. Iterate the URL in a while loop including we have showed you before and you will be done.
2. Again facing any problem the where are the images?
Just right click to view the page source about the URL, you would see the   tag having data-src=”” attribute; which is your product’s image..
It is an example about Flipkart.com only. Various websites might have various Ajax URLs and various get parameters on a URL.
Web scraping services websites might also have the “JSON” responses within Ajax URLs. In case, you get them you don’t have to utilize scraping; only access the JSON response including any JSON API that you have utilized before.
In case of any doubts please make your comments in the below section or contact X-Byte Enterprise Crawling or ask for a free quote!
Happy Scraping!
More more visit: https://www.xbyte.io/web-scraping-services.php
Today's Daily Humor For Devs - Daily Developer Jokes
Tags: jokes, dailydeveloperjokes
Published: 2021-09-22 12:00:10

---
title: "Today's Daily Humor For Devs - Daily Developer Jokes"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
published: true
tags: #jokes, #dailydeveloperjokes
---

Hi there! Here's today's Daily Developer Joke. We hope you enjoy it; it's a good one.

![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e125894734cf.png)

---

For more jokes, and to submit your own joke to get featured, check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/). We're also open sourced, so feel free to view [our GitHub Profile](https://github.com/dailydeveloperjokes).

### Leave this post a ❤️ if you liked today's joke, and stay tuned for tomorrow's joke too!

_This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit._

<!--
Joke text:
___Q:___ What diet did the ghost developer go on?

___A:___ Boolean
 -->
invalid server address: ad user sync error
Published: 2021-09-22 11:53:16

I wasted a lot of time today debugging an ad sync error. The message I was getting from my ad sync library was **invalid server address**. This was making me thing that something was wrong in the server address(ip, host, protocol etc). But after some time i figured out that was not the case because other ad functions like group search etc were working fine.

This was very weird to me, how come some actions are working and others are throwing `invalid server address` error. This was crashing my brain 🤯.

After some debugging and carefully inspecting every attribute I was providing to the ad library I finally found the issue which was I added an extra `m` in the base dn I provided e.g. `xyz.comm` instead of `xyz.com`. This was a bad case of wrong error message and shows how a small assumption or bad error message can make a simple error seem like a mind breaking error.
How to ask for technical help
Tags: teamwork, agile, softwaredevelopment
Published: 2021-09-22 11:55:18

---
title: How to ask for technical help
published: true
date: 2021-09-22 11:52:41 UTC
tags: teamwork,agile,softwaredevelopment
canonical_url: https://medium.com/chingu/how-to-ask-for-technical-help-2bb5ad7de6b5
---

Sprint 4 — Wednesday

![](https://cdn-images-1.medium.com/max/1024/1*8e0N2c_GBSFarhRL0ckTsQ.jpeg)<figcaption>Photo by <a href="https://unsplash.com/@reskp?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Jametlene Reskp</a> on <a href="https://unsplash.com/s/photos/help?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption>

Getting help starts with asking a good question.

Consider these two questions…

1. My React component isn’t returning what I want. What gives?
2. I have a React component (_Locations.jsx_) that should be returning a list of location names based on the text entered through a search component (_Search.jsx_), but is instead returning undefined. These are located in the repo https://github.com/jdmedlock/meteorite. Would someone have time to look at this to see if I’ve missed something obvious?

Do you see the difference? The first is just a complaint while the second provides the reader with information and captures their interest.

Good questions have these 5 parts:

1. Its actionable and contains contextual information the reader needs.
2. It states what is wrong, but also what the desired result should be.
3. Key elements, like the component names in the example above, are formatted so they are easy to identify.
4. It contains a link to supporting documentation. In this case the project repo.
5. It ends with the ask. In other words, what do you need? This information you put into asking a good question is the same detail you should put into issues reports as well!

![](https://cdn-images-1.medium.com/max/512/1*DzMAUO0bDnfYmG9esMEgBw.jpeg)

### Before you Go!

Chingu helps you to get out of “_Tutorial Purgatory_” by transforming what you’ve learned into experience. The experience to boost your Developer career and help you get jobs.

You can learn more about **Chingu** & how to join us at [https://chingu.io](https://chingu.io/)

* * *
How to create a JavaScript Dictionary?
Tags: javascript, tutorial, beginners
Published: 2021-09-22 11:32:24

In this short tutorial, we look at all the methods you could use to create a JavaScript Dictionary. We also look at a few limitations and caveats.

If you are new to programming or JavaScript, we recommend you read through the entire article. However, If you are just looking for the code, you can skip to the code section below.

### Table of Contents - JavaScript Dictionary
- [Are there dictionaries in JavaScript?](#are-there-dictionaries-in-javascript)
- [Creating a Dictionary](#creating-a-javascript-dictionary)
- [Adding & Deleting values](#adding-accessing-amp-deleting-values)
- [Limitations and Caveats - JavaScript Dictionary](#limitation-and-caveats-javascript-dictionary)

## Are there dictionaries in JavaScript?
No, as of now JavaScript does not include a native “Dictionary” data type. However, Objects in JavaScript are quite flexible and can be used to create key-value pairs. These objects are quite similar to dictionaries and work alike.

Dictionaries are commonly used as each value stored has a unique key, and through these keys, their respective values can be accessed. This allows a lot of flexibility while reading and storing data.

## Creating a JavaScript Dictionary
A dictionary can be created using two methods. The Object Literal method or by using the new keyword. However, we focus on the former. This is because it is very likely that you have used dictionaries before and this method follows a familiar syntax.

### Syntax using Object literals:
To create an empty JavaScript dictionary.
```javascript
var dict = {}
```
Here “dict” is the name of the object.

Initializing and creating a dictionary:
```javascript
var dict = {
  Name: "Eric",
  Age = 23
  Job: "Freelancer",
  Skills : "JavaScript"
};
```
## Adding, accessing & deleting values

Key-value pairs can be added while creating a JavaScript dictionary, however, these methods can also be used to add values.
### The code to add items:
```javascript
dict[key] = value
``` 
Here “key” refers to the name of the unique key and “value” is the respective data the key references to.

In case the dictionary already contains the name you have passed as the key, you could either rename your key or you could use the following code to update the value.
```javascript
dict.key = new_value; 
```
Accessing items is also very straightforward; the following code can be used.
### The code to access items:
```javascript
var value = dict.key;
```
Here “value” refers to the variable you are using to store the accessed key’s value.

Deleting items is also easy. We use the delete keyword to delete the item.
The code to delete items:
delete dict.key;

## Limitation and Caveats - JavaScript Dictionary:
- The new object method can also be used but keeping readability in mind, I have suggested the above method.
- Be aware of your naming convention, I would recommend using a common style for all your keys. This would help access them easily.
Code để nhận học bổng du học New Zealand
Published: 2021-09-22 11:02:45


New Zealand đang là quốc gia được nhiều bạn du học sinh mong muốn đến học. Đất nước New Zealand có khí hậu hiền hòa, môi trường trong sạch, con người xinh xẻo tương đối giống với điều kiện sinh sống tại xứ sở chuột túi. Chính do vậy, sinh viên ứng viên luôn săn tìm các suất học bổng tại New Zealand để có dịp đến trải nghiệm thời cơ học tập tại đây. Trong bài viết này, chúng ta hãy cộng nhau Tìm hiểu những suất <a href="https://hotroduhoc.org/hoc-bong-du-hoc-new-zealand/">https://hotroduhoc.org/hoc-bong-du-hoc-new-zealand/</a>
bao gồm những học bổng nào và những điều kiện học Ielts để giành lấy những suất học bổng đó nhé!
Cara Mendidik Anak Perempuan yang Baik dan Benar
Tags: pendidikan, mendidik, anak, perempuan
Published: 2021-09-22 11:02:45

Kita wajib  tahu kualitas anak perempuan ketika menjadi seorang bunda supaya kelak generasi yang kita wariskan menjadi berkualitas. <a href="https://www.adra.my.id/2021/03/cara-mendidik-anak-perempuan-usia-15.html/">Mendidik anak perempuan</a> merupakan kewajiban setiap orang tua apalagi seorang bunda yang memiliki ikatan batin yang lebih kepada anak

Mendidik fitrah seksualitas
Mendidik anak merupakan merawat, membangkitkan & menumbuhkan fitrah sinkron gendernya, yaitu bagaimana seseorang pria  berpikir, bersikap, bertindak & merasa sebagaimana pria , & kebalikannya demikian jua bagaimana seseorang wanita   berpikir, bersikap, bertindak & merasa menjadi seseorang wanita  .

1. Mengajarkan Agama Kepada Mereka
Ajarkan pada anakmu, tauhid menggunakan mengesakan Allah. Mengajarkan ibadah & kalimah thoyyibah. Dan ingat buat senantiasa mengajarkan adab & sopan santun.

2. Memupuk Kesadaran mereka menjadi seseorang wanita  
Sejak awal, kita wajib  mendidik anak supaya nir tassyabuh (menyerupai versus jenisnya).

3. Membiasakan mereka menggunakan adab yg mulia

4. Membiasakan berpakaian sinkron syariat
Membiasakan anak supaya mereka menutup aurat berdasarkan kecil. Sehingga saat telah dewasa mereka telah membiasakan. Dan ajarkan anak rasa memalukan. Lantaran memalukan merupakan sebagian berdasarkan iman.

5. Mengajarkan aneka macam ketrampilan tempat tinggal   tangga
Ajarkan secara bertahap. Agar kelak nanti bila mereka telah berumah tangga sendiri telah bisa sebagai manager bagi keluarganya sendiri.

6. Bersikap lemah lembut terhadap anak wanita
Bersikap kepada anak sangatlah penting, apalagi itu anak perempuan yang memiliki perasaan yang lembut. Orangtua sebagai wadah pendidikan anak harus mengetahui bagaimana <a href="https://adra.my.id/">cara mendidik anak</a> yang baik, agar tidak salah langkah dalam menangani masa pendidik anak.
Meet New Devart Delphi DAC for RAD Studio 11 Alexandria with Firebird 4 and Apple M1 support
Tags: dac, delphi, macos
Published: 2021-09-22 10:35:31

---
title: Meet New Devart Delphi DAC for RAD Studio 11 Alexandria with Firebird 4 and Apple M1 support  
published: true
description: Devart rolled out the new Delphi Data Access Components for just released RAD Studio 11 Alexandria with support for Firebird 4 and Apple M1 processors.
tags: dac, delphi, macOS
//cover_image: https://direct_url_to_image.jpg
---
Devart, a recognized vendor of world-class data connectivity solutions for various data connection technologies and frameworks, presented new versions of [Delphi Data Access Components](https://www.devart.com/dac.html?utm_source=devto&utm_medium=referral&utm_campaign=pr_delphidac_22.09.2021) to keep assisting software engineers in developing fast native applications. The key feature of the recently updated products is support for the newly released **RAD Studio 11 Alexandria**. 

**The release also includes such important enhancements:** 

- All Devart Delphi Data Access Components now support Apple M1 processors.  

- Devart became the first vendor of Delphi components with Firebird 4 support. 

- [UniDAC](https://www.devart.com/unidac/?utm_source=devto&utm_medium=referral&utm_campaign=pr_delphidac_22.09.2021) now includes new data providers for HubSpot and BigQuery that allow users to connect to these data sources from Delphi or C ++ Builder applications.  

- UniDAC supports the latest version of NexusDB 4.50.27. 

- LiteDAC and UniDAC support a new option - IntegerAsLargeInt, which maps SQLite INTEGER columns to fields of type ftLargeInt. 

- In addition, a new demo project for FastReport FMX is available in all DAC products. 

To learn more about the recent release, visit:     

https://blog.devart.com/delphi-data-access-components-for-rad-studio-alexandria.html 

**Delphi Data Access Components** are the libraries of components for Delphi developers that provide direct access to multiple databases, and allow developing multi-platform applications in Embarcadero RAD Studio, Delphi, C++Builder, Lazarus, and Free Pascal on Windows, Linux, macOS, iOS, and Android, for both 32-bit and 64-bit platforms. 

**About Devart**

Devart is one of the leading developers of database tools and administration software, ALM solutions, data providers for various database servers, data integration, and backup solutions. The company also implements Web and Mobile development projects. 

For additional information about Devart, visit https://www.devart.com/.
Sites to get Free Images for your Next Project
Tags: webdev, internet, images, source
Published: 2021-09-22 10:20:27

So we, as Web Developers struggle to get good Pictures or images for our Projects. As now, you may find most of the websites publishing Images. But the main issue with them is they may do a copyright claim in future. So, we must be careful in selecting random Images from the internet and using them for our project. 
Here I am with some websites which provide free stock images for your next project. You might be aware of some of them. But do check out others too. 

Here are top 10 websites I like the most: 

pixabay.com
pexels.com
picjumbo.com
unsplash.com
reshot.com
frepik.com
picspree.com
pikwizard.com
freeimages.com
stocksnap.io