teleren/devto huggingface dataset:
I'm back on track and you should too!
Published: 2021-07-25 07:13:47

![braden-collum-9HI8UJMSdZA-unsplash](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gdeoigj8avhmx6w60o45.jpg) *<center> <small> [Image from From <a href="https://unsplash.com/photos/9HI8UJMSdZA" target="_blank">unsplash.com</a>] </small> </center>*

Hello again 👋

Hope you are doing safe and healthy. This pandemic has sure made a huge not-so-good effect on all of us. Let's hope that fades away 🙏

Now, to the matter! It has been more than two years since I blogged on this site. That's the longest break I have ever taken since I started writing. Besides that, my time on pet projects was also reduced considerably. I always had some excuse to skip writing, like, **I don't have time, there is a deadline coming up, I don't have any ideas to share, the idea I'm having is not worth sharing**, so on among others. Honestly, I prioritize other things over writing (Maybe, I'm lazy!  😅)


![Drag Racing](https://media.giphy.com/media/h8ZRVXhlb39ZSNKlGv/giphy.gif) *<center> <small> [Image from From giphy.com] </small> </center>*


When I look back on my two years of "not writing" I can see that there was sufficient space for more innovation on my path as writing was one of the major drives that **pushes me to innovate and upgrade myself**. Also, writing helped me to **refine my ideas a lot in the past, clears my mind, and improves my concentration**. I'm missing that "me" time!

Now, I understand that this is the apt time to resume my blogging habit. I'm gonna set a realistic interval to publish a blog - which I have to decide soon! I'll keep this space updated on the same. If you are also like me, halted your blogging habit, perhaps you can resume too at the earliest. The longest the break, the hardest it will be to resume back! (from my experience 😉)

See you all in my next blog 👋
Assertion in Python Programming
Tags: programming, codepen, python, devops
Published: 2021-07-26 01:48:49




Hello dear readers! welcome back to another section of our tutorial on Python. In this tutorial post, we will be studying about Assertions in Python.

What is an Assertion?
An assertion is a sanity-check that you can turn on or turn off when you are done with your program testing.

The easiest way to think of an assertion is to link it to a raise-if statement (or to be more accurate, a raise-if-not statement). An expression is tested and if the result comes up false, then an exception is raised.

Assertions in Python are carried out by the assert statement, the newest keyword to Python, it was introduced in version 1.5.

Python programmers often place assertions at the start of a function to check for valid input, and after a function call to check for valid output.



The assert Statement
When an assert statement is being encountered, Python evaluates the accompanying expression, which is hopefully true. If the expression is false, then an AssertionError exception is raised by Python.

Syntax
The syntax for assert statement is -

assert Expression[, Arguments]

If the assertion fails, Python uses ArgumentExpression as the code argument for the AssertionError. The AssertionError exceptions can be of course caught and handled like any other exception using the try-except statement, but if it is not handled, they will then terminate the program and then produce a traceback.

Example
Below is a function which converts a temperature from degrees Kelvin to degrees Fahrenheit. Since zero degrees Kelvin is as cold as it gets, then the function bails out if it sees negative temperature -

#!/usr/bin/python

def KelvinToFahrenheit(Temperature):
   assert (Temperature >= 0),"Colder than absolute zero!"
   return ((Temperature-273)*1.8)+32

print KelvinToFahrenheit(273)
print int(KelvinToFahrenheit(505.78))
print KelvinToFahrenheit(-5)

Output
When the above code is executed, it will produce the following result -

32.0
451
Traceback (most recent call last):
   File "test.py", line 9, in <module>
      print KelvinToFahrenheit(-5)
   File "test.py", line 4, in KelvinToFahrenheit
      assert (Temperature >= 0),"Colder than absolute zero!"
AssertionError: Colder than absolute zero!

Alright guys! This is where we are rounding up for this tutorial post. In our next tutorial, we are going to be discussing about the Object Oriented Programming in Python.

Feel free to ask your questions where necessary and i will attend to them as soon as possible. If this tutorial was helpful to you, you can use the share button to share this tutorial.

Follow us on our various social media platforms to stay updated with our latest tutorials. You can also subscribe to our newsletter in order to get our tutorials delivered directly to your emails.

Thanks for reading and bye for now.
Something you may not know about the Javascript "Switch" statement...
Published: 2021-07-26 04:25:24

The switch statement is used to perform different actions based on different conditions.  You use the switch statement to select one of many code blocks to be executed.  The following "if then" statement, where x could be any value but will only give a result with 0 or 1:
```
if (x===0) {
    text = "Zero";
} else if (x===1) {
    text = "One";
} else {
    text = "No value found";
}
```
...can be re-written as this "switch" statement:
```
switch (x) {
  case 0:
    text = "Zero";
    break;
  case 1:
    text = "One";
    break;
  default:
    text = "No value found";
}
```
TIP: You always need to include the "break" command if you want the switch to stop when it finds a match.

One thing to keep in mind, Switch cases use strict comparison (===).  The values must be of the same type to match.  A strict comparison can only be true if the operands are of the same type.
In the above examples, "0" would not return a match but 0 would.

But what if you wanted to switch on something like this:
```
if (time < 10) {
  greeting = "Good morning";
} else if (time < 20) {
  greeting = "Good day";
} else {
  greeting = "Good evening";
}
```
You might think you could do it like this:
```
switch(time){
    case (<10):
        greeting = "Good morning";
        break;
    case (<20):
        greeting = "Good day";
        break;
    default:
        greeting = "Good evening";
}
```
But switch comparisons do not work that way.  Switch follows these rules:
- The switch expression is evaluated once.
- The value of the expression is compared with the values of each case. (Since the values can not be compared, they can not match)
- If there is a match, the associated block of code is executed.
- If there is no match, the default code block is executed.

But here's one thing you can do.  Since the value of the expression is compared to the values of each case, if you set the value of the expression to 'true', then you can make any case value an expression that would evaluate to true (or false) to test for a match.  For example, we already know the above switch expression will not work.  But if it were rewritten as follows:
```
switch(true){
    case (time < 10):
        greeting = "Good morning";
        break;
    case (time < 20):
        greeting = "Good day";
        break;
    default:
        greeting = "Good evening";
}

```
...then you could use "switch" as alternative to the "if then" JavaScript statement.

The more you know!
LGMVIP- Internship Experience
Published: 2021-07-27 16:55:55

Hello Everyone,

I am <a href="https://www.linkedin.com/in/rutuj-runwal/">Rutuj Runwal</a> and in this post I will be sharing my experience as a Web Developer Intern at Let's Grow More(LGM) through their Virtual Internship Program that I had joined for July 2021.

It was a well-structured internship and as a Web Developer Intern I was expected to complete at least 2 out of the 3 listed tasks using relevant technologies. The tasks were as follows :-
Beginner Level Task :- Create a Single Page Website using HTML, CSS and JavaScript. The website had to follow a predefined design pattern along with a few creative changes. 
Intermediate Level Task :- Create a Web Application using ReactJs. The application had to feature an API call to display user data. It also featured a loader to be displayed while the data was still being fetched.
Advanced Level Task :- Student Result Management System using HTML, CSS, JavaScript, PHP and MySQL.

I have successfully completed the first two tasks and had learned a lot in this process.
<b>Beginner Level:</b> I always use bootstrap 5.0 as my go-to library when designing single page applications. It provides you with flexibility and creativity for your website while still maintaining responsiveness throughout your website. It was a good experience to design the webpage according to a predefined design and add extra bits into it to get an immersive experience. 

<b>Intermediate Level:</b> I was exploring the wonderous capabilities that ReactJs had and I had already made a few projects using ReactJs earlier: <b><a href="https://rutuj-runwal.github.io/easynotes/">Notes App</a></b> and <b><a href="https://molog-media.netlify.app/">MoLog Marketing</a></b> But I had never used external data from firebase or any API etc into my sites. Thus, this task gave me an insight into using API’s in react and it was the perfect time for me to understand more about React through this task. I used react-bootstrap to set up a clean UI to display the data. I also added a “Load More” functionality into my page to fetch and display more data onto my app.
<img src="https://lh4.googleusercontent.com/Tx3Xa99y-O01VoD4QNJXXv5chnuj5C5Rk8NFTDo0hsxIvJ89AMfrgn-K_sjACiUf2xG0tVC6vjkqCq3-wMzC=w1920-h942-rw" alt="Rutuj Runwal's Web App">

<b>Features:</b>
<ul>
<li>Fetch and Display API Data</li>
<li>Responsive Design</li>
<li>Load More button to get more data</li>
</ul>
All the source code is present on my Github: <a href="https://github.com/Rutuj-Runwal/LGMVIP-WebDev">here</a>

Thus, It was a wonderful experience and an opportunity to explore more. 

Let's Connect: <a href="https://bit.ly/let_us_connect" style="text-decoration:none;color:red;">Linkedin</a>

Hey Reader, I have also created a **Anti-malware app**: <a href="https://dev.to/rutujr/context-menu-malware-scanner-using-python-57j2">Click Here👀</a>
Hacker tools Proxybroker
Published: 2021-07-26 17:28:45

ProxyBroker
===========

.. image:: https://img.shields.io/pypi/v/proxybroker.svg?style=flat-square
:target: https://pypi.python.org/pypi/proxybroker/
.. image:: https://img.shields.io/travis/constverum/ProxyBroker.svg?style=flat-square
:target: https://travis-ci.org/constverum/ProxyBroker
.. image:: https://img.shields.io/pypi/wheel/proxybroker.svg?style=flat-square
:target: https://pypi.python.org/pypi/proxybroker/
.. image:: https://img.shields.io/pypi/pyversions/proxybroker.svg?style=flat-square
:target: https://pypi.python.org/pypi/proxybroker/
.. image:: https://img.shields.io/pypi/l/proxybroker.svg?style=flat-square
:target: https://pypi.python.org/pypi/proxybroker/

ProxyBroker is an open source tool that asynchronously finds public proxies from multiple sources and concurrently checks them.

.. image:: https://raw.githubusercontent.com/constverum/ProxyBroker/master/docs/source/_static/index_find_example.gif
🔥Latest Animation & Incredible Spinner🔥
Tags: animation, spinner, css, html
Published: 2021-08-05 13:01:03

Hey lovey dear!
Today I wanna going share some Latest and incredible Animation created with just CSS and HTML by **__Wow Rakibul__** . Really it's very amazing and so lets see:


{% codepen https://codepen.io/wowrakibul02/pen/xxdaowz %}
 <iframe height="300" style="width: 100%;" scrolling="no" title="" src="https://codepen.io/wowrakibul02/embed/preview/xxdaowz?default-tab=css%2Cresult" frameborder="no" loading="lazy" allowtransparency="true" allowfullscreen="true">
  See the Pen <a href="https://codepen.io/wowrakibul02/pen/xxdaowz">
  </a> by Wow Rakibul (<a href="https://codepen.io/wowrakibul02">@wowrakibul02</a>)
  on <a href="https://codepen.io">CodePen</a>.
</iframe>
The 4 Best Color Sites on the Internet for web developers
Tags: webdev, productivity, uiweekly, design
Published: 2021-08-05 15:35:01

#### If you are a designer/web developer/etc, then you must know the pain of choosing colors.
![crying](https://media.giphy.com/media/l4HoaTxnFw3RH1p7y/giphy.gif)

> 
## Color is a power which directly influences the soul. - Wassily Kandinsky

Many people, including myself,  find it hard to choose colors. With endless options/various, picking the perfect color to use in your design or presentation is at times overwhelming and may even feel impossible.

![choosing](https://media.giphy.com/media/3oipPTHYlTpCw8oBBy/giphy.gif)

### But why should you struggle when you can use these 4 free online tools.


#### 1. [Coolors](https://coolors.co): 
Coolors is my favorite, allows you to create your color palette or get inspired by thousands of stunning color schemes. It's just perfect 

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1628164155697/lFYX34Zt_.png)

#### 2. [My Color](https://mycolor.space) :
We all have colors that we like, for example, I love dark tones. This tool generates color palates based on your favorite color, so if you like blue, it will generate colors that go alongside blue.

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1628164260385/jP6vAB4eQ.png)

#### 3. [Color Hunt](https://colorhunt.co): 
Choosing colors is like a hunt, it's either you find the color you like or return empty-handed. This tool helps you discover the perfect palette for your next project and also inspires with new colors pallets each day

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1628164090770/NYPBgWgWY.png)

#### 4. [ColorMind](http://colormind.io):  
This tool uses deep learning to generate color schemes, for example, you can even upload any picture of your choice, and it will generate color palates from that picture

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1628164397152/SvwyLc9nU.png)

__________________________________________________________________

## Summary:

Choosing colors is hard, but its not impossible; by using the tools listed above, you will be able to find amazing colors to use in your project, presentations, designs, or anything that involves colors.

Best of luck utilizing these free assets on your future visual communication projects or presentations.

If you enjoyed this post, follow me on on [twitter](https://twitter.com/khazifire/) for similar content.
Why is everyone so excited about PolyWork? First impressions aren't good!
Tags: discuss, healthydebate, webdev
Published: 2021-08-05 17:22:14

Hi, just wondered what I was missing (as I am sure there is something!).

Just signed up to [PolyWork](https://www.polywork.com/) with a VIP code and I just don't get it?

I spent ages scrolling through the never ending list of tags to add to my profile (which had repeated tags all over the place), weird but I get the concept. 

Anyway got it all set up and...now what? I added a link to a post (the editor is not great...and you can't add `alt` descriptions so I had to improvise...so that immediately puts a big nail in the coffin for me anyway) - great, now what?

Headed over to the "multiverse" - nothing really makes me want to follow anyone on there as it is just a list of names, went to "space station"...sure maybe I will contact a couple of investors but yet again it seems very basic and limited.

I have yet to see a feed with articles or anything like that to give me ideas of who I want to follow. 

The whole thing is slow and clunky, having to press a couple of times to get pages to load.

So please, what am I missing...is it all marketing hype with the "invite codes" rubbish and the pretty graphics, or do they actually have something special and I am just not getting it (and if that is the case, could someone tell me how I am *meant* to be using it!).

Thanks in advance.
🧩 Spring Cloud Messaging With AWS and LocalStack
Tags: spring, java, aws
Published: 2021-08-05 18:04:49

### 📚 Learn how to simulate #AWS services locally using LocalStack with a #Spring Boot application. 

### <br>

**TL;DR:** This article demonstrates the use of LocalStack and how it can simulate many of the AWS services locally. We will use Spring Cloud Messaging to create a publisher-subscriber sample application. We will use Amazon SNS and SQS to do that.

The sample app can be found [here](https://github.com/maniish-jaiin/spring-cloud-messaging-sample).

## Spring Cloud Messaging With AWS and LocalStack

### Introduction

With an ever-growing demand for cloud services, Spring provides amazing support to integrate with Cloud providers and relevant services. [Spring Cloud for Amazon Web Services](https://spring.io/projects/spring-cloud-aws) is one such project that makes it easy to integrate with AWS services using familiar Spring APIs.

In this article, we will look into a simple application that acts as a message producer and a consumer using Amazon SNS and SQS. On top of that, we will not create an AWS account or use AWS services directly from AWS. We will instead use LocalStack, which will allow us to create AWS resources locally.

The sample app can be found [here](https://github.com/maniish-jaiin/spring-cloud-messaging-sample).

### Pre-requisites:

1. Basic knowledge of AWS, [AWS CLI](https://github.com/aws/aws-cli), and related services like Amazon SQS.
2. Basic knowledge of [Java 11](https://docs.oracle.com/en/java/javase/11/docs/api/index.html) and Spring Boot `2.4.7`.
3. [Docker](https://docs.docker.com/get-docker/) and [Docker Compose](https://docs.docker.com/compose/install/) for the setup.

[Read more...](https://auth0.com/blog/spring-cloud-messaging-with-aws-and-localstack/?utm_source=content_synd&utm_medium=sc&utm_campaign=aws)
What's the difference between a Developer and a CTO?
Tags: discuss, management, career
Published: 2021-08-06 10:17:29

---
title: What's the difference between a Developer and a CTO?
published: true
description: How would you explain the difference to your mom?
tags: discuss, management, career
//cover_image: https://direct_url_to_image.jpg
---

In my opinion it can be summarised like this:

Dev: Technology is key!
CTO: Technology is a tool!

Don't get me wrong, it's important to be good at your craft, but in the end you will not be measured by how clean your code is, but by achieving your companies goals!

Or how would you describe the difference?
How to See Which Branch Your Teammate is on in Webstorm

Tags: webdev, productivity, programming, tutorial
Published: 2021-08-09 12:44:29

*“What branch are you on?”* is often the first question you ask when a teammate says *“The tests aren't passing”* or *“The build failed”*. Here’s how you can get an answer to that question without even needing to ask.

In Webstorm, open up the Team Window by clicking GitLive on the bottom tool window bar.



![Webstorm-full-ide.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1628254250014/ldMs-fiu3.png)


This will show a list of your teammates, if they are online (or away) and the issue they are currently working on. Locate the teammate you are interested in and click the arrow on the left-hand side of their avatar.


![team window-scaled 1.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1628254282439/KoKG15Dpa.png)


Now you will see all the repositories they have cloned including the name of their current branch! 



![branch name- scaled 1.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1628254297037/eDt_8Fkea.png)




**NOTE**: If an issue has been connected to the branch you’ll see the issue name instead, if that's the case just hover your cursor over the issue name and a tooltip will appear showing you the branch name (and even the commit hash)




![issue and branch name-scaled 2.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1628507276877/on8tPVqHA.png)


Don't have the GitLive extension installed yet? You can find it [here](https://plugins.jetbrains.com/plugin/11955-gitlive) and, if you need help setting it up, follow the instructions in [GitLive docs](https://docs.git.live/docs/installation/).
Another 5 Helpful Python String Methods
Tags: python, beginners, codenewbie, programming
Published: 2021-08-07 00:19:12

Hello, I'm [Aya Bouchiha](developer.aya.b@gmail.com), 

this is the **part 2 of 5 useful python string methods**.

+ [part 1](https://dev.to/ayabouchiha/5-useful-python-string-methods-4pe7)

## capitalize()

**capitalize()**: this string method converts to uppercase the first letter of the first word in the specified string.

```python
first_name = "aya"

print(first_name.capitalize()) # Aya
```

## isalpha()

**isalpha()**: checks if all string's characters are alphabets letters **[A-z]**.

```python
print('AyaBouchiha'.isalpha())   # True
print('Aya Bouchiha'.isalpha())  # False
print('Aya-Bouchiha'.isalpha())  # False
print('AyaBouchiha 1'.isalpha()) # False
print('Aya Bouchiha!'.isalpha()) # False
```

## isdigit()

**isdigit()**: checks if all string's characters are digits.

```python
print('100'.isdigit())     # True
print('12a'.isdigit())     # False
print('100 000'.isdigit()) # False
print('+212-6000-00000'.isdigit()) # False
print('12a'.isdigit()) # False

print('3\u00B2') # 3²
print('3\u00B2'.isdigit()) # True
```

## isalnum()

**isalnum()**: checks if all string's characters are alphanumeric (alphabets, numbers).

```python
print('2021'.isalnum()) # True
print('30kviews'.isalnum()) # True
print('+212600000000'.isalnum()) # False           
print('dev.to'.isalnum()) # False  
print('developer.aya.b@gmail.com'.isalnum()) # False   
print('Aya Bouchiha'.isalnum()) # False  
```

## strip()

**strip(characters(optional))**: lets you delete the given characters (by default => *whitespaces*) at the start and at the end of the specified string.

```python
print(' Aya Bouchiha  '.strip()) # Aya Bouchiha
print('   +212612345678  '.strip(' +')) # 212612345678
print('Hi, I\'m Aya Bouchiha'.strip('Hi, ')) # I'm Aya Bouchiha
```

### Summary

+ **capitalize()**: converts to uppercase the first letter of the first word in the specified string.
+ **isalpha()**: checks if all string's characters are alphabets letters.
+ **isdigit()**: checks if all string's characters are digits.
+ **isalnum()**: checks if all string's characters are alphanumeric.
+ **strip()**: deletes the given characters (by default => *whitespaces*) at the start and at the end of the specified string.


### Suggested Posts

+ [All You Need To Know About Python JSON Module](https://dev.to/ayabouchiha/all-you-need-to-know-about-python-json-module-5ef0)

+ [Youtube Courses, Projects To Learn Javascript](https://dev.to/ayabouchiha/youtube-courses-projects-to-master-javascript-3lhc)

+ [part-1: 5 Useful Python String Methods](https://dev.to/ayabouchiha/5-useful-python-string-methods-4pe7)

+ [5 Helpful Python Math Module Methods](https://dev.to/ayabouchiha/5-helpful-python-math-module-methods-44gf)

To Contact Me:

email: developer.aya.b@gmail.com

telegram: [Aya Bouchiha](https://t.me/AyaBouchiha)

Have a great day!
My First Post on Dev.to
Tags: firstpost, welcome, programming
Published: 2021-08-07 23:26:21

Hey dear!
This is my first post on Dev.to 😀

Let ME just introduce myself
Name - Oluwakeji Onabajo
Country - Nigeria (I love ❤ traveling)
Occupation - Student
Languages I know as at now: PHP together with JavaScript, HTML and CSS
Currently learning new programming languages and technologies.

I've read a lot of cool articles on this here and finally decided to sign up for an account on Dev.to. Looking forward to create lovely contents here.

Show some love 💕