teleren/devto huggingface dataset:
5 tips to learn coding as a beginner!
Tags: programming, beginners, webdev, tutorial
Published: 2022-08-26 07:59:00

## Introduction
Learning something new can be hard, and learning to code can be harder when your method of learning is wrong. In this article, I’m going to show you some useful techniques I personally used to learn how to code and I still depend on them to learn new stuff every day.

## Have a roadmap
Before starting your learning, search for a roadmap. A roadmap is like a compass, it lets you know where should you start from, what should you learn and where will you arrive. Without a roadmap, you’ll get lost in the huge quantity of different resources available on the Internet.

## Learn from documentations
Personally, I prefer official documentations rather than watching long videos. Video tutorials can make you get bored because you feel unproductive; you just watch someone doing something, so you lose focus immediately. But reading, in general, make your brain do an effort and you feel productive. This feeling pushes you to learn more and more.

## Take notes
We all agree that there is a lot of stuff to learn. Although our brain has a huge capacity, it will get tired if you force it to remember lots of things. This problem can be solved by taking notes. From my own learning experience, taking notes can be funny. Use a pen and paper to write down what you learned (only the essentials and things you’re sure you will forget). If your handwriting is bad use the Notion platform instead 😉.

## Document your journey
Share your achievements with others via social platforms like LinkedIn, Twitter, and Reddit. You will meet amazing people like you who are sharing their goals, what they learned, their next steps… etc. This will give you the motivation to keep learning and developing your skills.

I recommend doing the #100DaysOfCodeChallenge challenge. You have to code for 100 days continuously and share your progress with the hashtag above. This will help you stay disciplined and will learn a lot during that 100 Days.

## Build, then learn
Always remember: when you focus only on the syntax you aren’t learning anything! you’re memorizing the syntax only. This won’t make you a real developer. Instead, spend some time learning the core of your chosen language, get a project idea and start building it. Get stuck? Stackoverflow is your friend!
VS Code Disable 3-way Merge Editor
Tags: vscode
Published: 2022-08-26 07:55:54

There has been a lot of comments regarding Microsofts decision to change the default Merge Editor in VS Code. See this Github Issue that blew up: https://github.com/microsoft/vscode/issues/157361 🔥

TL;DR
To switch back to the regular Merge Editor make this change in your `settings.json` 
```
"git.mergeEditor": false
```
Also make sure that `merge-conflict.decorators.enabled` is `true` (which is the default). In my feverish attempt to disable the new 3-way Merge Editor I flipped a couple of switches I shouldn't have... :)

Btw, there is a PR to change the default back to `false`: https://github.com/microsoft/vscode/pull/158544

Update: The PR has been closed. It seems the VSCode maintainers are determined to use the new merge editor, but make it easier to switch back.
Giskard - Open-source & collaborative CI/CD platform for ML teams
Tags: learning, intelligence
Published: 2022-08-26 07:46:24

Giskard provides interfaces for AI & Business teams to evaluate and test ML models through automated tests and collaborative feedback from all stakeholders.

Giskard speeds up teamwork to validate ML models and gives you peace of mind to eliminate risks of regression, drift, and bias before deploying ML models to production.

[https://www.giskard.ai](https://www.giskard.ai)
Dispatching an Action Event in Redux (notes from Freecodecamp)
Published: 2022-08-26 07:27:14

Notes in QnA format

**1.What is the method used to dispatch (send off do something) actions to the Redux store? How is this done**
dispatch, is the method that we use to dispatch actions to the Redux store, we do it by passing the value returned from an action creator and then sends an action back to the store

**2. What does an action creator return ?**
An action creator returns a type property that specifies the action that has occurred. Then the method dispatches an action object to the Redux store , based on the previous example here https://dev.to/naveenkolambage/how-to-create-an-action-and-an-action-creator-in-redux-freecodecamp-notes-3836  following two lines are equal 

`store.dispatch(actionCreator());
store.dispatch({ type: 'LOGIN' }); `

**3. How would we run dispatch in the following scenario ?**
`const store = Redux.createStore(
  (state = {login: false}) => state
);`

`const loginAction = () => {
  return {
    type: 'LOGIN'
  }
};`

Answer
 
{% gist https://gist.github.com/NaveenDK/2c70051b4453fabcbda0a833917e3f67.js %} 

**Knowledge check**
1) What is the method used to dispatch an action?
2) What does an action creator return ?
3) How would we run dispatch in the following?
`const store = Redux.createStore(
  (state = {login: false}) => state
);`

`const loginAction = () => {
  return {
    type: 'LOGIN'
  }
};`
M1 and React Native (Not a headache)
Tags: reactnative, ios, mobile, apple
Published: 2022-08-26 07:23:00

For anyone who has worked on or works on React Native, there's no denying that iOS setup, development, and distribution is **FAR FAR FAR** more difficult than that of Android.
The situation kinda takes a turn for worse with the new CPU architecture, _viz._ M1 that Apple rolled out a year or two back. There's no denying that M1 is no less than a tech marvel and we don't expect anything less from Apple; but you sure wanna yell out a couple of words out loud to an architecture that just refuses to run a couple of basic commands that used to run as smooth as butter previously.

The most common issue that pops up with this new architecture is the very simple command we execute known as:
`pod install`

You can expect all pods to be installed without any hiccups but the pods that cause an issue in their installation are:

> **boost**
> **glog**

Let's tackle these issues one by one.

- 
**BOOST**

Installing pods for boost results in an error similar to =>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eqtew07rn7qqv7i22tfx.png)

In short, the error states that it could not place an authorised request to `jfrog.io` and is crashing with a 401 unauthorised request. The solution to this couldn't be simpler. Just execute the following command and you're golden:

```
cd ios && rm -rf Pods && rm -rf Podfile.lock && rm -rf build && pod deintegrate && cd ..
```
 Once you have done this, pod install should move past installation of boost and then hang up on `glog`.

PS: You might run into many solutions asking you to install the ffi gem and execute a command like
             `sudo arch -x86_64 gem install ffi`

You may give it a whirl but it definitely fails (at least it did for us saying that **_the architecture specified is invalid_**) so there's no absolute guarantees that this would most certainly work.

- 
**GLOG**

Pod installation for glog mostly crashes with an error that looks something like:
`error: C compiler cannot create executables`.

Once again, the solution is pretty simple. This time instead of one though, we wanna execute 2 commands:
```
sudo xcode-select --switch /Applications/Xcode.app
cd ios && pod install
```

.

Here's one to hoping this article proves helpful for you :D
If you are facing any other issues or if the aforementioned solutions don't seem to pan out for you, feel free to drop the same in the comments down so we may take it forward.
Bot-Moderator for Telegram chats. Introduction
Tags: python, beginners, tutorial, bots
Published: 2022-08-26 07:14:33

## Overview 😎

Good day everyone! Starting with this post, I'm starting a series of articles on developing a **bot-moderator for Telegram chats**. During them, we will consider the following topics: **filters**, **state machine**, **middleware**, **internationalization**. For each article, I will provide a code that you are free to use.

## What the bot can do? 💪

By adding it to the chat, you can:

- Check whether the user who entered the group is not a robot:

![Entering the chat](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d5wws48m1pkpbmr0bkd0.PNG)

- Kick or ban user:

![kick or ban](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hec66iz9ebi9a92qko5i.jpg)

- Mute and unmute user:

![Mute and unmute](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/51ejvhtu5bol3syt1pmf.jpg)

- List of all commands:

![list of all commands](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h3i727cw5nv03pdjdcpi.PNG)

## How to start writing a bot? 🤔

First of all, I recommend that you read my first two articles in the tutorial [series](https://dev.to/mezgoodle/series/19322). But don't be disappointed if you don't fully understand them. My articles are suitable for those who have never developed bots. All you need to do is download the files from this [repository](https://github.com/mezgoodle/devto-posts/tree/main/bot-moderator/final-part).

## References 🔗

- [First part file structure](https://github.com/mezgoodle/devto-posts/tree/main/bot-moderator/final-part)

Thank you for reading! ❤️ ❤️ ❤️
DevOps isn’t just about developing: The importance of collaboration
Tags: devops, beginners, discuss
Published: 2022-08-26 07:13:37

Remember I talked about the pillars of DevOps, and what DevOps actually is?

{% link https://dev.to/mishmanners/the-pillars-of-devops-what-is-a-devops-engineer-3i8m %}

Well, I wanted to dive a little deeper into the importance of collaboration and why it is a pillar of DevOps.

## Not code, collaboration

A lot of people hear the word "DevOps" and they immediately think CI/CD. All thoughts center on coding and nothing else. This isn't everyone obviously, but many people believe DevOps is a tool, a platform to help get code deployed out into the world. This is part of it but not the only part. DevOps is as much a cultural change, a mindset, and practices as it is about the tools and products used.

![Fistbump teamwork](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6krp6t6hllusez9ym8om.jpg)
_Image: Antonio Janeski via Unsplash_ 

Collaborating and working together as a team is really important. It allows people to bring different perspectives to the table and makes for better products and services for your customers. Working together isn't anything new, and if you've ever worked in a team, you'll know that a good team is able to get things done more efficiently and effectively.

The right team with good collaboration can beat a team or organisation with highly skilled workers, yet poor collaboration and communication. Not only does teamwork and communication go a long way to building better products and services, it will also boost morale throughout the workplace so have good talent retention.

People don't want to leave a team they feel loyal to. A team that treats each of its workers like valued members and encourages each of them to play to their strengths.

## Teamwork

One of the things that is so important for collaboration is teamwork. Just because everyone is "talking" doesn't mean everything is being done effectively. By working together and playing to each other's strengths, everyone can achieve more.

Breaking down tasks and assigning them to individuals or smaller teams goes a long way to ensuring your goals are met in a timely manner.

But this kind of teamwork goes the other way too. Working in small siloed teams is good for breaking down and completing small tasks. However, good teamwork needs to happen across the whole company to ensure they are successful.

![Quidditch quadball sport](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rqcoyjp9aw803i3fr90o.jpg)
_Image: James Layh via Facebook_

I'll share more about working across multidisciplinary teams in my next post.

## Discuss

Are you effectively collaborating in your workplace? What are some of the things you and your team are doing to encourage communication and collaboration?
ARMS-redis-ts
Tags: redishackathon, typescript, redis
Published: 2022-08-26 07:12:01

### Overview of My Submission
This is the final project I built, [ARMS-redis-ts](https://github.com/Otumian-empire/ARMS-redis-ts). I used a typescript because of the errors I was getting and I learnt a lot. The idea was to use redis for caching. I did that in [ARMS - integrate-redis-for-caching](https://github.com/Otumian-empire/ARMS/tree/integrate-redis-for-caching). The performance was really good and I decided to rewrite it using redis as the primary database. I used the [redis-om](https://www.npmjs.com/package/redis-om) nodejs package to  provide the object mapping for Redis. The structure was similar to the previous database scehmas, [ARMS](https://github.com/Otumian-empire/ARMS).

### Submission Category: 

Wacky Wildcards

### Language Used

JS/TS/Node.js

### Link to Code

{% embed https://github.com/Otumian-empire/ARMS-redis-ts %}


* _Check out [Redis OM](https://redis.io/docs/stack/get-started/clients/#high-level-client-libraries), client libraries for working with Redis as a multi-model database._
* _Use [RedisInsight](https://redis.info/redisinsight) to visualize your data in Redis._
* _Sign up for a [free Redis database](https://redis.info/try-free-dev-to)._
Kurma Nabi
Published: 2022-08-26 07:08:19

Kurma Nabi adalah Kurma Ajwa yaitu kurma yang mempunyai ciri-ciri khusus yang dapat tegas membedakannya dari tipe buah kurma lain, yaitu di antaranya: Kurma tersebut memiliki warna hitam. Seperti kita ketahui bersama, bahwa dari kacamata umum buah kurma biasanya berwarna coklat. Walaupun, tak bisa dikesampingkan ada pula selain kurma tersebut yang bercorak hitam.

Kemudian, buah kurma tersebut pun dapat dikenali dari guratan-guratan putih kecil-pendek-tipis pada kontur nya. Seperti terdapat garis-garis halus tertulis di sana.

Perkara rasa, kurma tersebut sudah diketahui sebagai buah kurma yang rasanya moderat, tidak terlalu manis. Tekstur buahnya soft (empuk) ketika dikunyah, tak mirip karamel yang lengket ataupun permen jajanan anak kecil.

Kurma Ajwa dan Islam

Kurma ini memiliki posisi 
spesial di dalam Agama Islam, karena ia pernah disampaikan oleh Rosululloh seperti diriwayatkan pada hadits-hadits tentang manfaat kurma ini.

Nabi mengatakan bahwasannya mengkonsumsi Kurma Ajwa di pagi hari sebanyak tujuh butir dapat menahan racun dan sihir pada hari itu. Nabi juga menyampaikan bahwa kurma tipe ini berasal dari surga.

Maka, dari sisi sejarah, kurma ini dinamakan pula dengan Kurma Nabi.

Rosululloh juga menyebutkan secara detil area tumbuh buah kurma yang dimaksud, yakni dari area bernama Aliah di arah Kota Madinah, yang sekarang dibawah pemerintahan  Kerajaan Saudi Arabia.

Guna Kurma Nabi

Salah Satu 'ulama Islam yang mempelajari terapi ala Rosululloh yakni Imam Ibnul Qayyim menjelaskan bahwa lebih khusus lagi bagian badan yang bisa diobati menggunakan buah kurma ini adalah organ liver (hati).

Buah Kurma tersebut menetralisir racun yang pada dasarnya difilter oleh bagian tubuh ini, yang mungkin masih bersarang di bagian itu setelah gagal diolah liver. Seperti kita ketahui bersama, di antara fungsi hati yakni menetralisir racun.

Nah, Kurma Ajwa medukung performance hati dalam melaksanakan tugasnya atau bahkan membersihkan racun yang membekas di sana, saat hati susah ataupun lemah dalam melaksanakan tugasnya.

[Toko Kurma Nabawi](https://www.ajwakurmanabi.com)

Kami menjual Kurma Ajwa atau Kurma Nabi dalam packing 1/2 kilo dengan harga oke bagi Anda semua. Silahkan hubungi kami melalui Whatsapp (WA).

Selamat menikmati…
Kurma Ajwa
Published: 2022-08-26 06:57:43

Kurma Ajwa adalah Kurma Nabi yaitu kurma yang mempunyai ciri tersendiri yang dapat jelas membedakannya dari jenis kurma selainnya, yaitu di antaranya: Buah kurma ini memiliki corak hitam. Sebagaimana kita mahfumi bersama, bahwa dari kacamata global buah kurma biasanya berwarna coklat. Walaupun, tak dapat dibantah ada pula selain buah kurma tersebut yang berwarna hitam.

Selanjutnya, buah kurma ini juga bisa dikenali dari guratan-guratan putih kecil-pendek-tipis pada kontur buahnya. Seakan ada garis-garis halus tertera di sana.

Perkara rasa, kurma ini sudah diketahui sebagai kurma yang tastenya moderat, tak terlampau manis. tingkat kekerasan kurma ini soft (lembut) saat dilumat, tak mirip gula goreng yang merekat, atau gula-gula jajanan anak kecil.

Kurma Ajwa dan Islam

Buah kurma tersebut mempunyai tempat 
istimewa di dalam Agama Islam, sebab dia pernah disebut oleh Rosululloh seperti diriwayatkan di hadits-hadits seputar manfaat buah ini.

Rosululloh mengatakan bahwa memakan Kurma Ajwa pada pagi hari sejumlah tujuh biji bisa menahan racun juga sihir di hari itu. Beliau juga mengatakan bahwa kurma tipe tersebut asalnya dari surga.

Maka, secara sejarah, kurma ini disebut pula dengan Kurma Nabi.

Nabi juga memberitahu dengan terperinci lokasi tumbuh buah kurma yang dituju yakni dari area bernama Aliah pada arah Kota Madinah, yang sekarang diperintah  Negara Arab Saudi.

Guna Kurma Nabi

Salah seorang ulama Kaum Muslimin yang meneliti pengobatan ala Rosululloh yakni Imam Ibnul Qayyim menjelaskan bahwasannya lebih khusus lagi bagian badan yang bisa diobati menggunakan kurma tersebut adalah organ liver (hati).

Kurma ini menetralisir racun yang memang difilter oleh anggota tubuh ini, yang mungkin masih bercokol di sana sebab gagal diproses liver. Seperti pembaca ketahui bersama, di antara fungsi liver adalah membersihkan racun.

Nah, Kurma Ajwa membantu kerja liver saat melaksanakan fungsinya, ataupun bahkan membersihkan racun yang membekas di sana, saat hati susah atau lemah saat melakukan fungsinya.

[Toko Kurma Nabawi
](https://ajwakurmanabi.com)
Toko Online Kami menyediakan Kurma Ajwa atau Kurma Nabi dengan kemasan 1/2 kilo dengan harga oke untuk Pembaca semua. Silahkan kontak toko kami melalui Whatsapp (WA).

Monggo...
Linux audiophiles: What do you think?
Published: 2022-08-26 06:53:08

We can all agree that pipewire, pulse, and alsa are not... flawless, but sound has always been one of those subjects that sparks a lot of controversy.

Enter the realm of the audiophile, where you employ expensive hardware (dac/amps), and you begin to understand why sound doesn't sound as good as it could.

How have you adjusted your setup to sound "just right" then? Killing unnecessary daemons or processes or using a real-time kernel? the CPU in some manner modified?

All elements and conditions that could have an impact on your overall perception of audio. between the casual listener and the music creator.
Browser extensions - Popup page modifications
Tags: html, javascript, webdev, beginners
Published: 2022-08-26 06:47:28

We already created a basic extension that [made all the websites we visit pink](https://daily-dev-tips.com/posts/browser-extensions-our-first-extension/), but what if we want that action to only happen when we click a button inside our popup extensions?

Well, in this article, we'll learn just that, and even better, we base the color of our [local storage](https://daily-dev-tips.com/posts/browser-extensions-using-storage/) that we implemented in a previous article.

If you wish to follow this article, use this [GitHub branch](https://github.com/rebelchris/popup-extension/tree/options) as your starting point.

## Popup extension modifies a page

What we want to achieve today is that by clicking a button inside our popup extension, the color of the active tab changes.

![Browser extensions - Popup page modifications](https://cdn.hashnode.com/res/hashnode/image/upload/v1660670380498/wVYOY4Bk5.gif)

We'll first need to add some new permissions to our `manifest.json` file.

```js
{
  "permissions": ["alarms", "notifications", "storage", "activeTab", "scripting"],
}
```

The new ones are `activeTab` and `scripting`.
Which do the following:

- `activeTab` allows us to modify and retrieve the active tab
- `scripting` allows us to inject scripts via the browser

Now let's go ahead and modify our popup page. Open the `src/App.jsx` file and add a button in the render section.

```js
return <button onClick={colorize}>Colorize 💖</button>;
```

Now let's add this `colorize` function.

```js
const colorize = async () => {
  const [tab] = await chrome.tabs.query({ active: true, currentWindow: true });
  chrome.scripting.executeScript({
    target: { tabId: tab.id },
    function: changeColor,
  });
};
```

This looks super complicated, but don't worry. I'll guide you through this.

First, we need to fetch the active tab. We can use the tabs query for this.

Once we have the active tab, we can invoke the chrome scripting API.
We call the `executeScript` function, which can inject a script or simple function on that tab.
In our case, we inject the `changeColor` function.

We can then add this function to this file to be used.

```js
const changeColor = () => {
  chrome.storage.sync.get('color', ({ color }) => {
    document.body.style.backgroundColor = color;
  });
};
```

This function will read out local storage and grab the color from it.
Then we'll set the documents body to that color.

And voila!
With the click of a button, you're able to change any website!

> Note: Remember that we [added the colors in local storage](https://daily-dev-tips.com/posts/browser-extensions-custom-options-page/)? You can play around by changing the color in your options.

You can also find the complete code on [GitHub](https://github.com/rebelchris/popup-extension/tree/page-modifications).

### Thank you for reading, and let's connect!

Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on [Facebook](https://www.facebook.com/DailyDevTipsBlog) or [Twitter](https://twitter.com/DailyDevTips1)
Tale of DALL-E-2, A creation of future.
Tags: machinelearning, datascience, python
Published: 2022-08-26 06:39:00

**Welcome to carried future by machine!**
The best artistic instrument ever conceived by a human being, DALL-E2, is regarded as a sign of doom for the creative sector. I find it quite fascinating that we can create works of art worth a million dollars in only seconds with only words.

It is simple to observe everything graphically and capture it with the help of this machine learning tool, but it also heralds a grim future. Imagine wishing to keep a dream in your memory and storage. Think about the perspective that might result in a lovely scenario that we could discuss later.

Even while everything has its own north and south poles, which depend on various clumps of knowledge and skill, I firmly think that no machine can match the texture created on a raw canvas.

I'll close my note on you by showing you the visuals that this artificial intelligence software produced to depict what I was thinking. Enjoy.

1. Astronaut playing basketball in space with a cat.
2. Sketch drawn by future robots.
3. Robot helping human who has goat legs.
4. Shiva meditating in space with all the galaxy in background.
5. End of the human being captured by a satellite.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ihct9oiydit7p9vptetf.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i0tnun2ysrwrc09bi7kd.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uray41oulnkkcagbbh2q.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7pa300fwg2x0gpg0ruxd.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7cq156jzfs7qpme5pxr2.png)
Fundamental Equivalences, Oh my.
Tags: computerscience
Published: 2022-08-26 06:17:27

It's 11:13pm on 8.25.22 and I'm tired, so I'll keep it short. 

Fall quarter starts 9.21.22. 

But I wanted to get a head start on school so I also enrolled in the self-paced UND 208: Discrete Math course. 

And, well... I can tell this is going to be a toughie. I don't know why I thought working full-time and going to school part-time would be manageable, especially given the fact that my effort muscle hasn't been worked in a very long time. 

Anyway, I have a million ideas for how I should be spending my time when not working on school work. I'll get into those some other day.