teleren/devto huggingface dataset:
Python for everyone: Mastering Python The Right Way
Published: 2022-02-26 18:51:16

According to Malcolm Gladwell in his blockbuster book “Outliers”,  it takes 10,000 hours of intensive practice to achieve mastery of complex skills and materials. We do have to ask ourselves though what exactly is mastering, and does it mean you have gotten everything?

We could use this 10,000 hours rule but how exactly do we use it well. First of all, we have to cultivate passion. Learning any language can be hard and without passion, you could easily give up and  stop learning. 
Doing thorough learning starting from the basics all the way through to the hard stuff. The job is to learn what  python exactly is then pushing yourself to learn how to use it.

Just as the saying goes, practice makes perfect. Consistent practice helps you keep your skills sharp and lets you learn new things every time.

Learning through use of projects is also a great way to learn python. Projects push you to learn more things, some that you wouldn't even know if you were not applying them. It helps sharpen your skills and prepare you for the real world. It also improves critical and creative thinking. It would also help you in identifying what field you are more interested in among the many applications of python.

Reading books and articles also helps in sharpening your mind. It helps keep you informed on emerging trends and furthermore helps open up your mind.

There is no shame in getting stuck. You have to normalize not knowing everything. You can source answers from peers or from googling the problems.

Learning python can be very exciting. Its many applications give a wider range for applications and very diverse projects. Therefore learning it can be quite fun, but challenging as well. This is why one needs to know how to learn it the right way.

I hope this article helps you get the right way to learn. Happy learning.
Why should you use Tailwind CSS with React/Next JS?
Tags: javascript, webdev, tailwindcss, css
Published: 2022-02-26 18:26:58

**> Tailwind is a CSS framework that drastically drops your time developing a web application.**

Let me tell you some problems, that I have faced myself with CSS.

* It is long and boring.

* It can be, sometimes, very hard to maintain.

* It's even hard imaging to scale a website whose CSS is not written "professionally" and without following some perfect writing styles.
* There're too many devices in the world. Making your website look perfect on all devices is a complete headache. And CSS just blows your mind off while doing that.

React is a JavaScript library that helps you build single-page applications easily. With the help of Tailwind, you can drastically reduce the development time and can easily focus on business ideas.

Here are some websites that I have created using Tailwind CSS.

* [Campus Landing Page](http://burhandev.me/campus/)
* [Ecommerce Website](https://internship-ashy.vercel.app/)
* [Clappys Website](http://burhandev.me/Clappys-Website/)

Not to brag me here, but these websites were completely built on Tailwind CSS and they are looking fantastic! With Tailwind CSS I could easily manage my CSS and design and focus more on my business idea. So I would suggest y'all start using Tailwind with all your projects.
Coinbase, Piyasa Durumuna Bakmaksızın Kripto Satın Almaya Devam Ediyor

Tags: coinbase, kriptopara
Published: 2022-02-26 18:21:18

Ağustos ayında Coinbase, 500 milyon dolar değerinde kripto varlığı satın aldı ve o zamandan beri çok daha fazlasını satın aldı. Coinbase'in  başarılı bir dördüncü çeyrek ve mali yıl geçirdiğine inanmak için birçok neden var. Yıldan bugüne, Coinbase'in yaklaşık %30'luk değer kaybı , aynı dönemde kripto piyasalarının %20'lik düşüşünü bile geride bıraktı.

İş Çeşitlendirmesi
Coinbase'in işi, bitcoin fiyatlarının hareketi ile ilgili olsa da, şirketin üst düzey yöneticileri, şirketin işinin, bitcoin fiyatlarının günlük dalgalanmasından çok daha fazlası olduğunu savunuyor.

Coinbase CFO'su Alesia Haas şunları söyledi:

“Hisse senedimizin, bugüne kadar yaklaşık %20 düşen kripto fiyatları ile yüksek oranda ilişkili olduğunu da gözlemledik. Dürüst olmak gerekirse bunu gerçekten anlamıyoruz, çünkü bu korelasyon pazar payımızdaki büyümeyi hesaba katmıyor… yatırımın ötesinde işimizin çeşitlendirilmesini ve yeni varlıklara ve yeni ürünlere doğru genişlerken işimizin gelecekteki potansiyelini hesaba katmıyor. " 


Coinbase, basit bir [kripto para](https://kriptobilim.blogspot.com/search/label/Kripto%20Para?&max-results=6) borsasından daha fazlası olduğunu iddia etse de, dijital para piyasasına önemli bahisler koymaya devam ediyor.  Coinbase, "son birkaç hafta içinde" ek 350 milyon dolarlık kripto para birimi aldığını söyledi. Şirketin Ağustos ayında 500 milyon dolardan fazla kripto varlığı satın almasını takip ederek, onu ABD'nin en önemli kripto varlık borsası haline getirdi. “Kriptoekonomi olgunlaştıkça” Coinbase o sırada, bu miktarı zaman içinde artırmak amacıyla tüm gelirlerin yüzde 10'unu kriptoya yatıracağını söyledi.
[](https://kriptobilim.blogspot.com/2022/02/coinbase-piyasa-durumuna-bakmakszn.html)
Developer hacktivism for Ukraine
Tags: programming, webdev, discuss, beginners
Published: 2022-02-26 18:14:41

---
title: Developer hacktivism for Ukraine
published: true
description: Ways that the development community can assist in resolving the current crisis in Ukraine
tags: programming,webdev,discuss,beginners
cover_image: https://i.imgur.com/X7XavQj.jpeg
---

## Preface

One of the issues currently in Russia is the heavy propaganda and disinformation campaigns, as well as limits on access to truthful information.

If people inside Russia were better aware of exactly what is going on in the world, the support for the war in Ukraine could start falling rapidly.

## What can I do?

### Software authors, OSS project contributors, website owners

If you own a website, have authored software, or regularly contribute to popular OSS projects, one of the options at your disposal is adding a message condemning the war, Russian actions, or overall sharing the global sentiment, or truthful information on what actions Russia has performed.

You could do this e.g. via geolocation if you don't want to bother all your users, but more global awareness is not a bad thing either.

If you have a website, you could also use geolocation to set up a blackout for Russian visitors, with a dedicated message condemning the war.

### Programmers of any level

Know how to code? Submit a PR to an existing project and propose adding such messages into the software, explain the reasoning in your PR description, and maybe try to gather support for it via social media.

Some practical ideas can be found via the various "awesome" -lists:

- https://github.com/sindresorhus/awesome

### Other members of the development community

Can't code? No problem, you can still e.g. submit issues requesting such messages to be added to projects, particularly any that are largely made in, or popular inside Russia.

Some ideas can be found from:

- https://github.com/IonicaBizau/made-in-russia
- https://github.com/igoradamenko/awesome-made-by-russians

An example of such an issue: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/11302

## Desired effect

Lots of software auto-updates, which gives an easy way to distribute such messages.

Imagine Russians starting up Firefox to check something on Yandex, and Firefox includes messages on the titlebar. Imagine browser extensions sharing similar messages, SponsorBlock refusing to block ads on Youtube for Russians, or LibreOffice giving an alert message every time you try to open or save a document.

Imagine Russian developers trying to develop software during their normal daily job being greeted with notifications from `npm`, `pip`, and other every day tools condemning their government's actions.

Imagine Telegram and other messaging software sending notifications condemning the war to everyone within Russia every 12 hours.

Imagine if inside Russia software or games started refusing to launch, phones or cars refusing to function normally until the war is ended.

Yes, people can disable updates, make forks, etc. but it would become increasingly difficult to avoid hearing the truth.
Japon Firması Rakuten Kendi NFT Pazarını Başlattı

Tags: nft, rakuten
Published: 2022-02-26 18:00:51

NFT patlaması ve benimsenmesi, geçen yıl “Beeple”dan başlayan NFT satışlarının ardından yükseldi. Bunu takiben birçok kurumsal yatırımcı ve büyük şirket Non-Fungible Tokens (NFT) yatırımlarına başladı . Benzer şekilde, bir Japon e-ticaret firması olan Rakuten, kendi NFT pazar yerinin lansmanını duyurdu.
NFT'nin benimsenmesi geçen yıl patlak verdiğinden, firma 2021'de bir [NFT](https://kriptobilim.blogspot.com/search?q=NFT) pazaryeri başlatmayı planladı. Ayrıca, Rakuten'e göre NFT pazarı, fikri mülkiyet sahiplerinin NFT yayınlamak ve satmak için kendi web sitelerini geliştirmelerine olanak tanıyan bir platform da içeriyor. Japonya'da NFT'nin büyümesi katlanarak artarken, birçok firma NFT konsepti entegre edildiğinde artacağına inanıyor. 

Japonya'da NFT Benimsenmesi %90
126 milyonu aşkın nüfusu ve anime ve manga gibi tanınmış pop kültürleri ile Japonya'dan uzmanlar bu potansiyelin farkındalar. TheCableIndex'e göre, Japonya'daki NFT'nin benimsenmesi %90'dır ve bu da uzmanların kripto koleksiyonlarının benimsenmesinde bir artış beklemesini sağlıyor.

NFT'nin dünya çapında benimsenmesinden ve bu sektörün büyük isabetinden sonra, tüm kripto pazarının dikkatini çekti. Sonuç olarak, farklı sektörlerden birçok oyuncu ve diğer etkili isimler NFT'lere yatırım yapmaya başladı.

NFT pazarının değeri artmaya devam ettikçe, Japonya'da insanların dijital sanatlara ve koleksiyon ürünlerine olan ilgisi artıyor. Ayrıca, ülkenin yerel kripto borsası Coincheck, Mart 2021'de özel bir NFT pazaryeri başlattı. “Miss Bitcoin” olarak bilinen Mai Fujimoto, Japonya'da bir NFT yardım kampanyası başlatmak için blockchain oyun ekosistemi Enjin ile ortak oldu .
[https://kriptobilim.blogspot.com/2022/02/japon-firmas-rakuten-kendi-nft-pazarn.html]
10 Best JavaScript Projects for Beginners 
Tags: javascript, beginners, tutorial
Published: 2022-02-26 17:54:08

Hey friends, today in this blog you’ll see the 10 Best JavaScript Projects or Examples for Beginners. 

I have created many blogs/videos on different JavaScript projects and in this blog, I have shown the 10 best projects out of them. 

If you want to view all JavaScript projects videos the click here to view the playlist on YouTube or if you want to view all JavaScript projects blogs then you can [click here.](https://github.com/naemazam)

1. Drag & Drop or Browse – File upload Feature
2. Search Bar with Autocomplete Suggestions
3. Quiz Web Application with Timer
4. Minimal Image Comparison Slider
5. Todo List Application with Localhost
6. Check Network Status – Online or Offline
7. Functional Pagination UI Design
8. Tic Tac Toe Game in JavaScript
9. Responsive Image Lightbox Gallery
10. Awesome Poll UI Design -Poll Widget
Adding Swagger Documentation for Rails API with rswag
Tags: ruby, rails, ror, rspec
Published: 2022-02-26 17:52:08

---
title: Adding Swagger Documentation for Rails API with rswag
published: true
description: This is the series of blogs for building api in Rails
tags: ruby, rails, ror, rspec
cover_image: https://developerblogs.github.io/assets/img/api.jpeg
---

Hi there, I just published the sixth part of **Building API in Rails**. Hope its useful for whoever reads this :) 

<a href="https://developerblogs.github.io/blogs/rails_api_series/01" target="_blank">**:one: Buidling API in Rails Part 1 :rocket:​** </a>.

<a href="https://developerblogs.github.io/blogs/rails_api_series/02" target="_blank">**:two: Buidling API in Rails Part 2 :gem:** </a>.

<a href="https://developerblogs.github.io/blogs/rails_api_series/03" target="_blank">**:three: Buidling API in Rails Part 3 :rocket:​** </a>.

<a href="https://developerblogs.github.io/blogs/rails_api_series/04" target="_blank">**:four: Buidling API in Rails Part 4 :rocket:​** </a>.

<a href="https://developerblogs.github.io/blogs/rails_api_series/05" target="_blank">**:five: Buidling API in Rails Part 5 :lock:​** </a>.

<a href="https://developerblogs.github.io/blogs/rails_api_series/06" target="_blank">**:six: Buidling API in Rails Part 6 :book:​** </a>.
Setting up your First React Native Application
Tags: javascript, webdev, reactnative, expo
Published: 2022-02-26 17:23:22

React Native is a Javascript framework which uses the full power of react and Javascript to make amazing Native applications.  React Native compiles Javascript code to Native code, so components like Text, Button, View e.t.c which are used in React Native will be compiled to the Native code of each platform (Android or IOS) . 

There are two ways of building React Native applications, The easy way using Expo or the React Native CLI way. This article will concentrate on building React Native applications using Expo. 

Expo is a framework or platform which assists us to build, deploy and view our application on android, IOS or Web from the same Javascript/Typescript codebase. it works for universal React applications.

Alright, enough chit-chat, let's get started with setting our React Native Application. You'll need the following Prerequisites to start. 

- [ ]  Node.Js Installed (install it via [here](http://nodejs.org))
- [ ]  Code Editor (Preferably VS code)
- [ ]  Internet connection
- [ ]  A can-do attitude

After checking each of these off, let's get started.  

## Step 1

Open your project directory on VS Code and install the Expo CLI by typing in your terminal: 

```bash
npm install --global expo-cli
```

## Step 2

Create a new expo project, let's call it first-rn

```bash
expo init first-rn
```


## Step 3

install Expo on your phone via the play store/ app store. 

## Step 4

Once the expo project has been created type in the following to launch the application 

```bash
// Change directory
cd first-rn

// Start the application 
npm start
```

## Step 5

After installing the expo app on your phone and after the expo app has launched, you'll see a barcode, scan the barcode with your phone camera. 

Note: On IOS you'll have to use the barcode scanner that comes with the expo app. 

You should see something like this on your phone if you’ve followed each step successfully.  


![Expo Hello world Screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wklxj4iqwm49a78wthyb.jpg)

Congratulations!! You are done, you’ve successfully set up your React Native application. Now, go on ahead and make the next big thing, I can’t wait to see what you build. 😊
Make your first React JS project by this post. Learn to code#2
Tags: react, tutorial, javascript, beginners
Published: 2022-02-26 17:22:25

Hey there, I am back with an awesome post and This post helps you make your first React JS project. IN this post, Don't skip a word. Read it all carefully.

                     **DEPENDENCIES**

For the dependencies, You need to install Node.js in your PC/Laptop. To install Node.js, Go to[](https://nodejs.org/en/). Then Install it. If you want more help then Look for it in the internet. _IMPORTANT - Always install the latest LTS version so that our whole this matches. _ If you want more detailed content, I will put a video of how to install it.

WINDOWS - [](https://youtu.be/__7eOCxJyow)
LINUX - [](https://youtu.be/OMhMnj7SBRQ)
MAC OS - [](https://youtu.be/TQks1p7xjdI)


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

                  **MAKING OUR FIRST PROJECT**

After that, Go to your ( TERMINAL IN LINUX AND MAC OS, CMD IN WINDOWS ). Then type `npx create-react-app` and then type your websites name.
For example - 
`npx create-react-app MyFirstWebsite`.

All done. Now your project has been made. Now all you have to do is run the website. But HOW?!?

                **RUNNING OUR WEBSITE**

To run our website, Go to terminal or open terminal in our React folder. Then type `npm start` or `yarn start` to run the website. It will open your website in your _default_ browser.

               **KNOWING THE FILES**

The first thing you will see will be _node modules_. It has the... the... How will I say it? It have all basic things for our Javascript to run and things like that.

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

Then is Public folder where our HTML file and our images, SVG stores. 

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

Src folder has our JavaScript files and our main coding will be done there. You can see through all the files and open it in your Text Editor. We can add our images in there also. We use images from that folder only. In the Public folder, The files will be used by the HTML file.


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

Then package.json and package-lock.json. Npm has lots of packages that people want to use over and over again. package.json provides a simple way for people to keep track of packages they use in their application. 

That's all. Enjoy learning it. Signing Out!!!
Golang HTTP Server Graceful Shutdown
Tags: go, beginners
Published: 2022-02-26 17:03:25

---
title: Golang HTTP Server Graceful Shutdown
published: true
date: 2022-02-26 17:00:13 UTC
tags: golang,beginners
series: "Sunday Snippet"
canonical_url: https://clavinjune.dev/en/blogs/golang-http-server-graceful-shutdown/
---

![Sunday Snippet #6 golang HTTP server graceful shutdown](https://clavinjune.dev/img/sunday-snippet/image.png "Sunday Snippet #6 golang HTTP server graceful shutdown")


```go
package main

import (
	"context"
	"errors"
	"log"
	"net/http"
	"os"
	"os/signal"
	"syscall"
	"time"
)

func createChannel() (chan os.Signal, func()) {
	stopCh := make(chan os.Signal, 1)
	signal.Notify(stopCh, os.Interrupt, syscall.SIGTERM, syscall.SIGINT)

	return stopCh, func() {
		close(stopCh)
	}
}

func start(server *http.Server) {
	log.Println("application started")
	if err := server.ListenAndServe(); err != nil && !errors.Is(err, http.ErrServerClosed) {
		panic(err)
	} else {
		log.Println("application stopped gracefully")
	}
}

func shutdown(ctx context.Context, server *http.Server) {
	ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
	defer cancel()

	if err := server.Shutdown(ctx); err != nil {
		panic(err)
	} else {
		log.Println("application shutdowned")
	}
}

func main() {
	log.SetFlags(log.Lshortfile)
	s := &http.Server{}
	go start(s)

	stopCh, closeCh := createChannel()
	defer closeCh()
	log.Println("notified:", <-stopCh)

	shutdown(context.Background(), s)
}
```

runtime:

```shell
$ go run main.go
main.go:24: application started
^Cmain.go:50: notified: interrupt # ctrl+c
main.go:28: application stopped gracefully
main.go:39: application shutdowned
$
```
Arrays in Javascript
Tags: javascript, webdev, beginners, programming
Published: 2022-02-26 16:55:00

Arrays in JavaScript is an object which stores a collection of multiple items in a single variable. 

Here are some important JavaScript arrays : 


```
[9,10,23,66].at(-2) //23 
 
['a','b','c'].concat('h') //['a','b','c','h']

[1, 30, 39, 29, 10, 13].every((x)=> x < 40) //true 

[1,2,3].fill(5,1,2) //[1,5,5]

[2,4,5,6,8].filter((x) => x % 2 === 0) //[2,4,6,8]

[2,4,5,6,8].find((x) => x%2 === 0) //[2]

[2,4,5,6].findIndex((x) => x%2 !==0) //2

[1,2,3].forEach(x => console.log(x)) 
//1
//2
//3

[1,2,3].includes(2) //true

['a','b','c'].join() //"a,b,c"

['a','b','c'].indexOf('a') //0
or ['a','b','c'].indexOf('e') //-1

['a','b','c'].length //3

[1,3,5,7].map((x)=> x*2) //[2,6,10,14]

[1,2,3].push(4) // [1,2,3,4]

[1,2,3].pop() //[1,2]

[1,2,3,4]reduce((prev,cur)=>(prev + cur)) //10

[1,2,3,4].reverse() //[4,3,2,1]

[1,2,3].shift() //1

[2,3,5,6].some((x) => x > 6) //false

[1,10000,5,2,2222,5555,7777,6666].sort() //[1,10000,2,2222,5,5555,6666,7777]

['a','b','c'].slice(1) //['b','c']

['a','b','d','e'].splice(2,0,'c') //['a','b','c','d','e']

destructuring
[a,b] = [10,20] //a= 10 , b=20

...(spread op)
[a,b,...rest] = [10,20,30,40,50]
console.log(rest); //[30,40,50]
console.log(a); [10];


```
One Small Step...
Tags: personal, keepgoing
Published: 2022-03-05 23:42:31

---
title: One Small Step...
published: true
date: 2022-02-26 16:24:03 UTC
tags: personal,keepgoing
canonical_url: https://www.solarwinter.net/one-small-step/
---

* * *

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

If there is anyone following me, you might have noticed that I haven’t really posted anything lately.

The reason is simple — there’s been so much going on at home that I haven’t had any brain space to write. There have been days when I could manage to watch a music video and that was about it.

And yet things like emptying the rubbish, cleaning the bathroom, they all still need to happen.

The best way I’ve found for this is to kind of sneak up on things. Rather than tell myself I’m going to clean the bathroom, I’m just getting this brush and cleaning these tiles. Rather than clearing all the stuff out of the kitchen, I’m just bringing in the bags that I’ll put the rubbish in, that’s all.

Somehow, when you do it like that, things seem to still get done. The bags are in, so you might as well put some of the stuff in them. These tiles are done, might as well do those ones.

The craziness isn’t showing any signs of going anyway just yet. But I know I still want to keep writing. So I’m going to keep doing it the same way as everything else at the moment — one step at a time.

This post? It's one small step.

* * *

Photo by [Hayley Seibel](https://unsplash.com/@seibelhayley?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/s/photos/small-step?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)
The ultimate solution to image storage.
Tags: javascript, programming, sql, python
Published: 2022-02-26 15:55:59

Have you ever wanted to store multiple images but faced limitations? Well, worry no more, I made a startup called [ImgWhale](https://imgwhale.xyz/).

> An Ad-free, api-key-less*, forever and unlimited storage service.

{% embed 
 https://twitter.com/ImgWhale/status/1495076550211178497 %}

**You can literally store multiple (fuck it, make it unlimited) images into our servers without an api-key for free***

> NOTE: This also has an premium feature for big-scale projects and non-devs.
Razorpay payment DJANGO
Published: 2022-02-26 15:50:37

# Steps to integrate Razorpay 

* Setting up Razorpay account.

* Storing API keys in settings.py

* Installing Razorpay library.

* Creating order using Razorpay API.

* Sorry, unable to save it. You might have moved your notion database to some other page, please take it back to the page where it was created.

* Creating order at backend and also creating Razorpay order.

	* Show template

	* Show views

	* render to payment.html

	* Get info of call back URL

	* Done with creating an order.

* Making payment.

* Handling payment success and failure.

	* Razorpay makes a post request

	* with the help of that handling success/failure

	* Done with payment.

	* Final checks for all platforms

	* Final checking

	* what is this project about?

![](https://notionpack-uploads.s3.amazonaws.com//tmp/tmptwn0rx41.png)

![](https://notionpack-uploads.s3.amazonaws.com//tmp/tmp0kav0r9f.png)

<br/>

[https://gist.github.com/Nishant127/ed0e02cfb0ae0da3fb82f17b21252ca4](https://gist.github.com/Nishant127/ed0e02cfb0ae0da3fb82f17b21252ca4)
Topics to explore in 2022...
Tags: career, codenewbie, computerscience, motivation
Published: 2022-02-26 15:48:01

1. Advanced Science & Math
2. AR/VR
3. Back-end Development (Web & Mobile)
4. Blockchain
5. Civic Tech
6. Community Management
7. Computer Vision
8. Compiler / Programming Language Design
9. Databases (Design & Architecture)
10. Data Science
11. Devops
12. Documentation & Technical Writing
13. Front-end Development (Mobile)
14. Front-end Development (Web)
15. Graphics
16. Hardware
17. Shell Scripting
18. Web APIs (REST & GraphQL)

Feel free to add more and let's be friends @[keshav44483499](https://twitter.com/keshav44483499)