teleren/devto huggingface dataset:
My Journey of 50 days of Code with Scaler Academy.
Tags: beginners, programming, python, 365daysofcode
Published: 2022-02-02 16:17:23

I took mechanical engineering👨‍🔧as subject for my graduation but had always been interested towards Computer Science👨‍💻since my first year at college. One of my best friend in college was a guy from CSE department and whenever I used to go to his room I will enquire with him what he is reading, which subjects are being taught that semester and if he was doing any competitive programming problem I would also take a glance.

But unfortunately due to reasons like unencouraging environment towards CS/coding and due to the teaching method of my Intro to Programming teacher I became detached and even repented code.

And with passage of time, I sticked to mechanical curriculum and joined a construction firm👷‍♂️. There I felt no need/drive to learn code. But parallelly I was also observing that same friend who got placed at a very respectable offer and then went on to get further increments at other organizations. This again sparked fire in me to learn coding. Also during my tenure at my firm I also realized the inculpabilities if you don't know how to code.

I started with Scaler Academy Community #365daysofcode on 10.12.2021 and frankly speaking the rewards/goodies were one of the prime motivation🤑. I started with **CodeWars** as I found it very beginner friendly and I had been coding with Python on it now and then. Below is my first submission. 
![first submission](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3ttb3wupint9mheelpom.png)
After that I continued to code daily but hit a roadblock after a week when I had to travel to and from Delhi in one day for work. In order to prevent my streak I used offline Android compiler Pydroid3 from IIEC and coded during my train journey.

Subsequently, I started 30 days of code challenge on HackerRank but was unable to continue after day 21 as I was unable to understand Data Structure concepts. To prevent this failure to demotivate me I again started doing easy problems on CodeWars to regain my confidence.

And I am happy to share that on Day 47 I ranked upto **4 kyu**😊.
![Ranking Up on CodeWars](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o382zd291jmu7bkt48m9.png)

I had also maintained dedicated folder for this challenge⏬
![Folder](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mgwox2o5h8hmewb7c70h.jpg)

Recently I had decided to learn Java from basics to advanced along with DSA concepts and for that I had started free JAVA DSA course by Kunal Kushwaha. I will also start with Head First Java book (waiting for 3rd edition) in upcoming weeks so that I can make my #365DaysofCode impactful💥.
Game Dev 1/45
Tags: gamede, beginners, helloworld
Published: 2022-02-02 16:01:34

Day 1, Hello, World (please! Moving forward)

Getting Started

Hello World, This is the first day, I really need to make it real! Not only title on Facebook or Twitter that I show people, "I'm an indie game developer!" I almost 44, I told myself "I really need to do my own game but nothing more nothing less than just a word that I told myself repeatedly.

Today I couldn’t turn back to myself anymore, and I have to prove myself that I'm a game developer not only a title that anyone can tell, but only one can be. Let see how it goes..

I will bring you guy to talk about my #gamedev that I will be mostly do and design by myself, well what is the engine or tools do I have to use ? Honestly, I don't know yet! Okay, I know that should be the first thing to make a choice, SO WHAT!?

I love c/c++ than the other (actually I prefer to use c than c++) but you know game concept and design should be the first thing that I have to do and after that will be picked up the tools.

So, Game Design, Game Concept, Game Play must be the first! I will be mostly coding, but I will take this time for clearing concept. For any Language, you must have the language installed in your system, I will skip this part because it's very basic. For other languages as my consideration.

Tasks #01

    [3 Days] Concept and Design
    [2 Days] Put theme to paper
Thank you dev.to community
Tags: github, rust, start, api
Published: 2022-02-02 16:00:11

Hi community,
Just wanted to say **Thank you(!!!)** to everyone that viewed my [previous post](https://dev.to/guyl99/from-enterprise-product-through-open-core-to-openapi-validator-our-journey-527c), especially for the ones that starred our [GitHub repo](https://github.com/blst-security/cherrybomb), because of you we reached Rust's GitHub trending repos, and I would just like to say Thank you everyone!

GitHub repo: [https://github.com/blst-security/cherrybomb](https://github.com/blst-security/cherrybomb)
TYPES OF PYRAMID IN PYTHON
Published: 2022-02-02 15:40:28

1) n=int(input("enter the number"))
 for i in range(n):
     for j in range(i+1):
         print("*",end=" ")
     print()    
OUTPUT:

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

2) n= 6 #int(input("enter the number"))
for i in range(n):
    for j in range(n-i-1):
        print(" ",end=" ")
    for j in range(1,i+1):
        print(j,end=" ")
    print()
OUTPUT:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k1voenm1n32p6sd2xbo7.png)
   
3)n= 6 #int(input("enter the number"))
for i in range(n):
    for j in range(n-i-1):
        print(".",end=" ")
    for j in range(1,i+1):
        print(j, end=" ")
    print()

OUTPUT:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fc0cut5hmawafolzpdgm.png)
Cmpgen | CLI to genarate React.js component
Tags: react, node, npm, cli
Published: 2022-02-02 15:33:44

Compgen is a component boilerplate code genaration Command Line Interface (CLI). It will generate JS file, CSS/SCSS/SASS file with index.js file for your react component. You can install it globally with NPM. With the command:
`npm install cmpgen -g`

To use it. Go to the folder where you want to create the components, open the terminal, and type:
 
`cmpgen FooterComponent -i -c sass`

- FooterComponent is the name of the component.
- We want an index.js file in the component directory so -i flag is passed.
- -c is for specifying the type of stylesheet. In this case, it is a sass file.

If you want to use Cmpgen with a project you can make a **confg.cmpgen.json** file in the root of your project and open the root folder in the terminal. There you can define the dir parameter for specifying the directory where the component will generate. Config file with all available options: 
`{
  "dir":"./project/",
  "index":true,
  "css":"sass"
}
`

The official documentation link:[https://devnops.tech/cmpgen/](https://devnops.tech/cmpgen/)
Github: [https://github.com/TanvirMahin24/cmpgen](https://github.com/TanvirMahin24/cmpgen) 
NPM: [https://www.npmjs.com/package/cmpgen](https://www.npmjs.com/package/cmpgen)
Do you know that if you're using VARCHAR(10) on SQLite you can store 1-million characters anyway?
Tags: sqlite, varchar, text, length
Published: 2022-02-02 15:30:11

---
title: Do you know that if you're using VARCHAR(10) on SQLite you can store 1-million characters anyway?
published: true
description: VARCHAR is TEXT type on SQLite database
tags: 'sqlite, varchar, text, length'
cover_image: 'https://raw.githubusercontent.com/campelo/documentation/master/posts/sqlite/assets/cover.jpg'
canonical_url: null
id: 976317
---

###### :postbox: Contact :brazil: :us: :fr:

[Twitter](https://twitter.com/campelo87)
[LinkedIn](https://www.linkedin.com/in/flavio-campelo/?locale=en_US)

---

## SQLite is typelessness

Yes, it's true! According to [SQLite dataypes documentation](https://sqlite.org/datatypes.html), except only one exception, you can store any kind of data you want in any column of any table, regardless of the type declared datatype of that column. The only exception are **INTEGER PRIMARY KEY** columns. So, you can pay attention for that.

## Warning for automated testing

If you have automated tests and you think that all of your code is working with SQLite, maybe you should to consider making some tests and running them on your server databases (MSSQL, Oracle, PostgreSql, etc.).

When you use datatypes like **CHAR, VARCHAR, BLOB, CLOB** all of them will be **TEXT** datatype having **UNRESTRICTED** length how you can find [here](https://www.sqlite.org/datatype3.html). 

> (ex: "VARCHAR(255)") are ignored by SQLite - SQLite does not impose any length restrictions (other than the large global SQLITE_MAX_LENGTH limit)

Look at this sample: 

```SQL
CREATE TABLE MyTable(
    MyColumn VARCHAR(3)
);
```

You should keep in mind that it will work differently using SQLite and any other databases. So, if we try this query bellow in a Oracle DB, it won't work.

```SQL
INSERT 
    INTO    MyTable (MyColumn) 
    VALUES  ("my string with more than 3 characters");
```

But if you use the same query on a SQLite DB, it will work perfectly.

## Conclusion

It's always important to know how a tool works to avoid future problems or, at least, you can ready if they arrive. 

I'm here only to share with you some of new things that I find working. I hope that is as important to you as it was for me.

## Typos or suggestions?

If you've found a typo, a sentence that could be improved or anything else that should be updated on this blog post, you can access it through a git repository and make a pull request. If you feel comfortable with github, instead of posting a comment, please go directly to https://github.com/campelo/documentation and open a new pull request with your changes.
Paul's Software Developer Digest - 2022 Top Technology Predictions from the IEEE Computer Society 
Published: 2022-02-02 15:28:09

The following article from IEEE was very informative.  It gave me common-sense insights into the future of technology in 2022.

To download the article, you will need to provide an email address.

My takeaways from the article:

- The Covid pandemic accelerated the adoption of remote technology
- This remote technology will remain and increase in use
- The remote technology touches many areas, including:
  - Self Care (Food and goods ordering, healthcare, psych care, etc.)
  - Social networking
  - Work
  - Education
- The tech areas that support remote technology include:
  - AI (Healthcare, predictive ordering, etc)
  - Infrastructure (Cloud computing, devices, home networks, etc)
  - Security (Data, privacy, identity, etc)
  - Software (Client and server for remote connection)

Here is some information on IEEE:

> The IEEE Computer Society is the premier source for information, inspiration, and collaboration in computer science and engineering. Connecting members worldwide, the Computer Society empowers the people who advance technology by delivering tools for individuals at all stages of their professional careers. Our trusted resources include international conferences, peer-reviewed publications, a robust digital library, globally recognized standards, and continuous learning opportunities

[Page to download the document](https://www.computer.org/2022-top-technology-predictions)
Read Articles and EBooks for Free
Published: 2022-02-02 15:22:23

# Read paid articles for FREE

Have you ever experienced frustration when you browsing and come across a good article which has your answer and you want to read it but could not as it is paid article and you have to take a subscription of at least one month to read it and you don't want to take one-month subscription just for a single article, here is the solution.

Go to this website [http://12ft.io/](http://12ft.io/) it will unlock the page for free and you can read the whole article without paying any money.

## Steps

- Go to the website or page which you want to read
- Copy the URL
- Visit [http://12ft.io/](http://12ft.io/) and past the URL in the box
![Screenshot 2022-02-02 at 8.09.04 PM.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1643812781819/4KhHjmVef.png)
- Now the page is unlocked and free to read
<center>
OR
</center>

-  write 12ft.io in front of the URL

## Support

Also, don't forget to help the developers for their hard work.


# Get Books for Free
If you love reading books and don't have money to buy them but need it. There is a website called PdfDrive and Zlib which provides free books and can be downloaded in the form of  PDF, EPUB, and MOBI.
![Screenshot 2022-02-02 at 8.15.04 PM.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1643813128809/N8qDjWjUN.png)
<center>PdfDrive - [click here](https://www.pdfdrive.com)</center>
![Screenshot 2022-02-02 at 8.15.56 PM.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1643813175288/hT2QC3oMx.png)
<center>Zlib - [Click here](https://z-lib.org)</center>

# Follow me
Follow me on Twitter [@jyotirmoydotdev](https://twiter.com/jyotirmoydotdev/) and GitHub [@jyotirmoydotdev](https://github.com/jyotirmoydotdev/)  to know the latest news in tech and to learn beginner-friendly articles about development.
Music and Code
Tags: music, dotnet
Published: 2022-02-02 15:01:55

{% youtube SBjQ9tuuTJQ %}
I am at this very moment listening to  [The Pretender](https://www.youtube.com/watch?v=SBjQ9tuuTJQ&ab_channel=foofightersVEVO) 
by **Foo Fighters**. I like listening to music. I work as a .Net developer. I feel music and coding come together to me. Every song adds a different enthusiasm to code. Repetition does not bother at all. Repeat mode in a music player is similar to recursion in code. Shuffle mode is great to make the code more dynamic. Fingers on the keyboard produces harmony sometimes. It feels great doing multitask.
I made a browser extension that teaches you the best VS Code hotkeys
Tags: javascript, webdev, vscode, productivity
Published: 2022-02-02 14:58:52

Hello developers!
How many VS Code hotkeys do you know?


I've been using VS Code for many years but still learn new ones that improves my productivity, such as Ctrl+D to selects the word at the cursor, or the next occurrence of the current selection. Extremely useful when coding JS and css.

To improve my productivity and keep learning new ones everyday, I built a beautiful browser extension that teaches you a Hotkey every time you open a new tab.

I'd be happy to hear your feedback!

The extension is called [Hotkey Hero](https://hotkeyhero.andersaberg.com/) and is available for both firefox and chrome.

Best,
Anders
Topt 5 sorting algorithms
Tags: algorithms, sort, javascript, programming
Published: 2022-02-02 14:58:26

**Sorting algorithms** are a set of instructions that takes an array or list as an input and arrange the items into a particular order.

**Why sorting algorithms are important?**
Since sorting can often reduce the complexity(level of complex) of a problem, it is ah important algorithms in computer science.

1. **Selection Sorting:** This sorts an array by repeatedly finding the maximum elements (considering ascending order) from unsorted part and putting it at the beginning.

![Selection sort visuals](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lgfk39b2e401cjbyivcu.gif)

2 **Bubble Sort:** This is the simplest sorting algorithms that works by repeatedly swapping the adjacent element they are in wrong order.


![Bubble Sort visuals](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d248zvy5qdojxwu7vl8t.gif)

3 **Insertion Sorting:** This is the sorting algorithms when the sorted array is build having one item at a time. The array elements are compared with each other sequentially and they are arranged simultaneously in some particular order.


![Insertion Sorting Visuals](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vrnrr5rmvhhnponer2fh.gif)

4 **Merge sorting:** This is a divide and conquer algorithms it divides the input array into two halves, call itself for the two halves and then merges the two sorted halves.


![Merge sorting visuals](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/idnrdtznaagy2je37vtd.gif)

5 **Quick Sort:** Like merge sort, quick Sort is a divide and conquer algorithms. It picks an element as pivot and partition the given array around the picked pivot.


![Quick Sort visuals](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/stsam2p6p8y89qn6uyjy.gif)
Minha Experiência Frustrada Com Github Actions E AWS
Tags: githubactions, aws
Published: 2022-02-02 14:55:43

Durante quatro dias eu tentei fazer o CI/CD de uma aplicação que usaria AWS Lambda. Foram quatro dias frustrados.

Minha aplicação era uma API com FastAPI. Para usar AWS Lambda em uma aplicação com FastAPI, eu não poderia usar Chalice (*[according to this](https://github.com/aws/chalice/issues/1427)*). Então, usei Mangum como *handler* e S3 para enviar o projeto como .zip e este ser usado como função pelo Lambda.

O problema aconteceu quando o Github tentou ler os secrets que eu adicionei como AWS credentials e isso simplesmente não funcionou. Tudo isso funciona em minha máquina com o credentials verificado.

Enfim, minha opção será mudar o projeto para funcionar com o Chalice ao invés de FastAPI. Espero que haja suporte para FastAPI pelo Chalice no futuro. Mas, por enquanto, essa foi minha experiência.
#Pythong script: URL download through request is giving error
Tags: python
Published: 2022-02-02 14:52:45

`headers={'user-agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36',
...                                  'accept-language':'en-US,en;q=0.9,bn;q=0.8','accept-encoding':'gzip, deflate, br'}

url='https://www.nseindia.com/api/equity-stock?index=fu_niftybank'
r = requests.get(url,headers=headers).json()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\ProgramData\Anaconda3\lib\site-packages\requests\models.py", line 900, in json
    return complexjson.loads(self.text, **kwargs)
  File "C:\ProgramData\Anaconda3\lib\site-packages\simplejson\__init__.py", line 525, in loads
    return _default_decoder.decode(s)
  File "C:\ProgramData\Anaconda3\lib\site-packages\simplejson\decoder.py", line 370, in decode
    obj, end = self.raw_decode(s)
  File "C:\ProgramData\Anaconda3\lib\site-packages\simplejson\decoder.py", line 400, in raw_decode
    return self.scan_once(s, idx=_w(s, idx).end())
  File "C:\ProgramData\Anaconda3\lib\site-packages\simplejson\scanner.py", line 79, in scan_once
    return _scan_once(string, idx)
  File "C:\ProgramData\Anaconda3\lib\site-packages\simplejson\scanner.py", line 70, in _scan_once
    raise JSONDecodeError(errmsg, string, idx)
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)`
Security Vs Convenience
Tags: security, aws, hacking, cybersecurity
Published: 2022-02-02 14:43:20

This article tells you how Security and Convenience are inversely proportional to each other. Let’s start

I am going to explain **security relation with convenience** using Seesaw Example.
One of the most important responsibilities of a **Cyber Security Professional** is to keep this **Seesaw level.**
If you make one side too high, the other will suffers.

If we make our system too strong, then it will be very challenging for people to use our system. A strong policy means you are going to add more authentication processes due to which your work will slow down. People may be frustrated by filling out authentication forms. People will start writing their codes on sticky notes and will attach them with their working tables. This can cause privacy loss.

If we don’t make strong security policies. This can cause an increase in **Data Breaching**.

While making policies, we should keep in mind that these policies will not slow down your production rate.

Feel free to add your views about this topic in the comment section.

Thanks for Reading!
Follow Learn & Grow for more articles on Cyber Security.
Make your Dev faster with these VScode extensions!!
Tags: webdev, beginners, tutorial, react
Published: 2022-02-02 14:42:59

Hi everyone, 
here are some helpful extensions which will make your web development really fast.

## 1. Auto Close Tag

Automatically add HTML/XML close tag.

## 2. Auto Rename Tag

Automatically rename paired HTML/XML tag.

## 3. Better Comments

Add user friendly comments to your code.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/83pmaah04466osl0mgyw.PNG)

## 4. GitLens

Track what is happening on your repo directly from your code editor.

## 5. Prettier

Well, no one wants messed up code so indent it easily with this extension.

## 6. Project Manager

If you don't use this then start now!!(sheesh...)

## 7. Tabnine
     
It provides you with best suggestions even across multiple components and files.

## 8. Turbo Console Log

Everyone wants to check there code by using console but that's so hectic. This helps you select any variable and automatically console log it. (Heaven!!)

**If it helped you then do like it for more such posts.**
4 ways "this" will be created in Javascript.
Tags: javascript, typescript, es6
Published: 2022-02-02 14:04:29

Let's say you have a ultra complex &#x1F923; `getUser()` function which prints the value of `this` object in console.

The value of `this` will change on basis how the function is being invoked with respect to the **context**.

```
function getUser() {
  console.log(this);
} 
```

---

## 1. Calling a function with **_name_**.
```
/** "this" holds  window object. **/
getUsers(); 

```




## 2. Calling a function with **_object property_**.
```
let someObject = {  
    getUsers: getUsers 
};

/** "this" will be someObject:{}  **/
someObject.getUsers();

```




## 3. Calling a function with **_call, bind & apply_** methods.
```
let someObject = {  
    name: "Suraj" 
};

/** "this" will be someObject:{...} **/
getUsers.call(someObject);

```



## 4. Calling a function with **_new_** keyword.
```
  /**  "this" will be getUsers {} object **/
  new getUsers();

```

---


_That's was a short explanation on `this` creation i know &#128515; but that is all you may need to know about `this` creation for now._


_In next blog we'll deep dive into the usage of `this`._
My first "game" created with javascript.
Tags: beginners, javascript, programming, gamedev
Published: 2022-02-02 13:59:08

Hi everyone, I'm practicing with vanilla javascript and I tried to create a game to beat the time by typing random words.
[This is the game.](https://lucapu88.github.io/speed-typer-game/) I accept constructive criticism and opinions on everything.
[Here is my repository,](https://github.com/lucapu88/speed-typer-game) I would like to have some suggestions on how to improve the code I wrote, I would be very happy if you help me improve.
Beginners guide to visual communication
Tags: ux, visual, communication, design
Published: 2022-02-02 13:57:53

{% youtube Yl2G9IEoBN0 %}
Hi!
It is said that seeing is believing, so let’s take a closer look at visual communication. About its importance and tips on how to use it effectively tells Olga, our UX/UI Designer. 

Enjoy! You can also read the article at [Frontend House](https://frontendhouse.com/experts-zone/beginners-guide-to-visual-communication-experts-zone-12).