teleren/devto huggingface dataset:
Sharing your knowledge as a developer
Tags: beginners, programming, career
Published: 2022-10-25 07:35:00

We have all met that developer. The one who holds on to their knowledge like Smaug hoards gold.

They seem to have this feeling, that if they share what they know it is somehow going to make them less of an expert.

What makes an expert, however, is that ability to share what they know, in a way that is accessible for others.

You don’t have to be an expert to do this. You just need to know a little more than someone else. It can be really useful to others to share your learnings along the way.

Once you have been a developer for 10 years, it can be difficult to put yourself in the shoes of the beginner.

They call this the “curse of knowledge” and it is a cognitive bias that makes people think that the person they are talking to knows as much as they do.

{% embed https://twitter.com/patio11/status/936638517676974080?s=20&t=dmTp1cnqJpfrAjdrckwXKg %}

One regret I have, as a developer, is not starting a blog sooner or keeping up a regular posting schedule.

If I started a blog when I started software development, I would be in a much better position than I am now.

A blog not only can be a great resource for other developers, it can also be another source of income. It gives you a platform to share what you know with others and it is one you actually own, unlike building an audience on social media.

I only have 46 blog posts on my website, which isn’t much considering I started in 2015. I now get around 5,000 people a month visiting my blog, but I would be getting a lot more if I had been consistent over that period.

So if you haven’t got a blog start one today, share your knowledge, you won’t regret it.

If you are looking for a free blogging platform, I can recommend [Hashnode](https://hashnode.com/). Unlike other blogging platforms, it is targeted at developers, which really is helpful when it comes to promoting your blog posts.

If your posts get featured on [Hashnode](https://hashnode.com/) they also get shared with their followers on Twitter and LinkedIn.

## 🧑‍💻 Latest from me
I am publishing new content weekly on my [blog](https://www.alexhyett.com) and new videos on my [YouTube channel](https://www.youtube.com/channel/UCm6lURZOeBVCZ5hJpqlUB-g).

🎬 YouTube - [Bad at MATH? Can you be a software developer?](https://www.youtube.com/watch?v=r2X_tuNzYrg) - If you aren’t great at maths you can still be a good developer. I cover what maths you need to know and particular industries to avoid.

🎬 YouTube - [Binary Numbers Explained for Developers](https://www.youtube.com/watch?v=g8ACeN9QMdY) - You would think developers would know binary but I find many don’t really understand it. I cover everything you need to know in this video.

📝 Article - [Binary Numbers Explained for Programmers](https://www.alexhyett.com/binary-numbers/) - For those that prefer reading, here is the above video in written format.

---

This post is from my fortnightly newsletter [Sunday Syntax](https://www.alexhyett.com/newsletter/) where I share tips, tools and actionable advice for software developers, straight to your inbox.
A Nice Developer Joke For Today
Tags: jokes, dailydeveloperjokes
Published: 2022-10-25 08:00:00

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

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

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

---

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

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

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

<!--
Joke text:
___Q:___ What did the process say after working in an infinite loop all day?

___A:___ I need a break.
 -->
TIL: installed packages in Python – list, and show
Tags: python, todayilearned, webdev
Published: 2022-10-27 12:50:04

---
title: TIL: installed packages in Python – list, and show
published: true
date: 2022-10-25 08:00:00 UTC
tags: python,til,webdevelopment
canonical_url: https://flaviabastos.ca/2022/10/25/til-installed-packages-in-python-list-and-show/
---

If your Python project has a very short list of required packages (in requirements, pipfile, etc), it’s easy to see all packages you have. But on large projects, the dependencies can run pretty long, not to mention the dependencies for the required packages. And what about learning more about those dependencies?

**`pip list `**

Will list all installed packages

**`pip show <package_name>`**

Will show information about installed packages and if you’re lucky, what other package requires that dependency

And, of course, `pip -h` will show all other pip options.

## Example:

_requirements.txt_

```
Django>=3.1.0,<3.2.0
djangorestframework>=3.12.2,<3.13.0
psycopg2>=2.8.6,<2.9.0
Pillow>=8.1.0,<8.2.0

flake8>=3.8.4,<3.9.0

```

List my packages:

```
# pip list
Package Version
------------------- -------
asgiref 3.3.1
Django 3.1.7
djangorestframework 3.12.2
flake8 3.8.4
mccabe 0.6.1
Pillow 8.1.0
pip 21.0.1
psycopg2 2.8.6
pycodestyle 2.6.0
pyflakes 2.2.0
pytz 2021.1
setuptools 53.0.0
sqlparse 0.4.1
wheel 0.36.2
```

Show more about one package:

```
# pip show pyflakes
Name: pyflakes
Version: 2.2.0
Summary: passive checker of Python programs
Home-page: https://github.com/PyCQA/pyflakes
Author: A lot of people
Author-email: code-quality@python.org
License: MIT
Location: /usr/local/lib/python3.9/site-packages
Requires: 
Required-by: flake8
```

* * *

If you found this helpful, please share this article!

> List installed packages in Python
> 
> [Tweet](http://twitter.com/share?&text=List%20installed%20packages%20in%20Python&url=https%3A%2F%2Fflaviabastos.ca%2F2022%2F10%2F25%2Ftil-installed-packages-in-python-list-and-show%2F)

_The post_ [TIL: installed packages in Python – list, and show](http://til-installed-packages-in-python---list-and-show) _was originally published at _[flaviabastos.ca](https://flaviabastos.ca/)
100 lines of code per file
Tags: codereview, coderefactoring, programming
Published: 2022-10-25 07:39:26

It has gotten to my attention that one of the biggest dev agencies in the region has a pull-request requirement that checks whether each file committed is under 100 lines long.

It seems like a pretty stupid requirement, right?

Then I tried it.

I had a class that was 133 lines long and I want to see whether I can get it under 100. As the class was already “doing one thing” it didn’t make sense to refactor it and split it into two files.

First to go were the comments 😀 Method docblocks were replaced with proper type declarations and return types. To preserve the readability, variable and method names had to be changed to be self-explanatory although a bit longer. Conditionals were extracted into separate methods.

Multiple simple IFs were combined into one, which did hurt readability a bit but it saved 5 lines 😀

Somewhat duplicated code was extracted and parametrized which allowed me to reuse methods in several locations.

And I got to 99 lines 🚀

I was skeptical about this requirement when I started but now I see its benefits. It makes you think about your code a bit more and forces you to make it more readable while also removing clutter from your files. And as strange as this may sound, it was fun doing it 😆
Basketball Backyard Court
Published: 2022-10-25 07:35:35

We are your professional basketball court builders in US. Our basketball court construction ranges anywhere from a Mini 3-pointer to a full-sized court. Interesting court designs helps you to get the maximum experience needed to increase your game. For line-marking your court, we follow the same guidelines set out by FIBA. We have your best interests at heart when designing and constructing your court. If you’re someone who loves to play at [basketball backyard court](https://modutile.com/backyard-basketball-court-flooring/) or if you’d love to get into basketball, there is no better way than with your own backyard court. It will increase the value of your property. Basketball court in your backyard encourages families to spend more time outside being active and taking a break from technology, job stress. Have fun with your kids, get a little exercise and help improve their hand/eye coordination. A basketball court in your backyard provides a safe and sound area for your children to hang out with their friends. Your house will be the go-to place on weekends; day and night. The kids can play with their basketball friends during the day and you can easily transform the space into a dance floor for parties at night.
Authentication of Users
Published: 2022-10-25 07:34:25

<h1>Introduction</h1>
<p>In this blog we are going to be talking about a simple setup to authenticate your users using sessions. Using sessions allows you to persist the user as they interact with the application.
</p>

<h1>Getting Started</h1>
<p>The first step is to set up your routes in the <code>routes.rb</code> file. We'll setup two custom routes, one for the login and one for the logout.
</p>


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

<p>The first route will direct a <code>POST</code> request to the <code>SessionsController</code> and use the <code>create</code> action. Here the <code>find_by</code> method is used to search the database for the user that is attempting to login. If the user is located in the database, that user will then be set as the user that is held in session. 
</p>
<p>By setting the user in sessions, that user will persist as the current user while they interact with the application. In the following code you can see the <code>create</code> action that was used to achieve this.
</p>


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

<p>
In the above code, you can also see the <code>destroy</code> action defined. We get to this action using the second custom route from above. In that route we direct a <code>DELETE</code> request to the <code>SessionsController</code> and use the <code>destroy</code> action.
</p>
<p>
The <code>destroy</code> action simply deletes the <code>user_id</code> from session and by doing so the user is no longer persisted so functions that require a <code>user_id</code> will no longer function.
</p>
<h1>Frontend</h1>
<p>
The final step is setting up the front end to actually make the fetch requests for logging in and logging out. First we'll look at logging in.
</p>

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

<p>
The login is handled by setting up a form for the user to enter their <code>username</code> and <code>password</code>. When they submit the for a function is called that makes a fetch request using the login path and sending the username and password. The response is then handled with an <code>if/else</code> statement. If the response is ok, then the login process can be completed. If there was a problem with the login, such as the user doesn't exist or the password was incorrect, then an error is returned and can be used to notify the user of the issue.
</p>
<p>
The final step is to handle the logout when the user is finished using the app.
</p>

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

<p>
When the user clicks on the logout button, a function is called which does a fetch request using the <code>logout</code> route and sending the <code>DELETE</code> request that will remove the <code>user_id</code> from session. 
</p>
A software engineer’s favourite command? — live checking the incoming HTTP requests
Tags: aws, webdev, cloud
Published: 2022-10-25 07:34:20

disclaimer: if you are not new to bash the ending of this article might surprise you :)

I had an EC2 instance with the Apache HTTP server installed for a static site hosted in a far-faraway region.

Latency was not an issue for the site, but it sometimes took up to 600ms to load, and this still is not that much, but the client was planning on uploading more photos and videos to attract customers from across the globe.

I wanted to leverage the [CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Introduction.html) service to cache the content closer to the customer for faster asset delivery but also relieving the database from unnecessary requests, thus shrinking the costs.

Before the CloudFront was in place, the network showed that the content was delivered in about 600ms, after setting up the CloudFront we got down to 150ms. It was a huge difference, and the client was happy. We made a good baseline for their site that when the client and customers would upload the photos and videos. The content would now be accessible without the need to worry about latency. Making this architectural change would also mean that we are not keeping the database busy with “read”-requests. Talk about all the free space for the DB writer to do its work now :)

I believe the CloudFront should be a default service to add in such situations. It is not difficult to set up and it adds a lot of benefits by means of caching for faster access, assets availability, and also for cutting down on trips between the customer and database.

Have you tried setting up CloudFront?
Do you have shell access and want to view the HTTP requests as they come to your site?

SSH to your Amazon Linux 2 and locate the apache logs by running:
```bash
$ cd /var/log/httpd/
```
and then:
```bash
$ tail -f access-log
```

([Tail](https://www.linux.com/training-tutorials/14-tail-and-head-commands-linuxunix/) to output the last part of files and -f to “follow” along as requests “log lines” are written to the access-log file)

This should show every request that you get (live) on your HTTP server :)

Use tail before and after the CloudFront implementation and see how decreased the requests would be to the server :)

How was this article for you? Is there anything I can help out in this regard? Maybe there is something you’d like me to improve och deep dive into for the next article? Please, do let me know :)

also, @maher-rj is tail still one of your favourite commands? What other commands do you use that you can’t afford not-to-have? :)

— [Saif](url);
At Home Basketball Court
Published: 2022-10-25 07:32:03

Whether you are a homeowner looking for ideas for a backyard basketball court or a landscaping professional looking for unique ideas visit our wide range of modular flooring options. We employ an innovative, centralized design and construction process that improves quality, lowers cost and streamlines installation. Beat the boredom [at home basketball court](https://modutile.com/backyard-basketball-court-flooring/basketball-court-ideas/) ; it’s a wonderful way to spend time outside with your family in the safety of your own backyard. A basketball court in your backyard encourages families to spend more time outside being active and taking a break from technology. Have fun with your kids, get a little exercise and help improve their hand/eye coordination. A basketball court in your backyard provides a safe and sound area for your children to hang out with their friends. Your house will be the go-to place on weekends; day and night. The kids can play with their basketball friends during the day and you can easily transform the space into a dance floor for parties at night.
Applying for the AWS Community Builder
Published: 2022-10-25 07:31:57

AWS Community Builder is a DevRel(Developer Relation) program operated by AWS.  AWS operates those two DevRel programs each the AWS community builder and the AWS hero.

# 1. What is the AWS community builder

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ce2rqdnwpa52pnbgwknm.png)
Official webpage : https://aws.amazon.com/developer/community/community-builders/

- One of the DevRel programs which being officially operated by AWS.

- Provide technical resources, helps and opportunities for human networking.

- Share technical knowledge about AWS and connect global tech communities.

Operated in the technical areas for each category below

- Containers
- Data (Databases, Analytics and BI)
- Developer Tools
- Front-End Web and Mobile
- Game Tech
- Graviton/Arm Development
- Cloud Ops
- Machine Learning
- Network Content & Delivery
- Security & Identity
- Serverless
- Storage
There are no restrictions on activities by category, although applications are made for each one.


# 2. What the benefits are providing?
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/je8hacboos66jneyqi0z.png)
If you participate as the Community Builder, would be invited to the Slack channel which bring together the program operators and builders.  The benefits of the Community builders introduced here are as follows.

- Connecting with others :
- Webinars & Briefings :
- Certification Exam Vouchers :
- Swag Welcome Kit :
- AWS Credit :
- A Free One-Year Subscription to Cloud Academy :
- Third-Party ISV Offers :
- Publish Content on Dev.to :
- Super sweet logos, Wallpaper & Assets
- re:Invent discount passes:
- Service beta opportunities

> WelcomeKit
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4csurpsuzsrkjze0c051.jpeg)


# 3. Ending
It would great opportunity for those who are interested in AWS technology and like sharing knowledge with community or blog.  The application is made twice a year and the duration of the activity is one year and can be extended.  I hope that many people around the world will share their know-how and knowledge about AWS-related technologies through this community activity.
Digital Drive 360
Tags: digitalmarketing, digitalmarketingcourse, digitalmarketingtraining, digitalmarketinginstitute
Published: 2022-10-25 07:31:51

[Digital Drive 360](https://digitaldrive360.com/) is one of India’s premier digital marketing institutes offering both online/offline classes in digital marketing. Learn from the best in the industry and become a digital ma
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4mulc05m30lpnt0gqd7m.jpg)rketing expert today.
Fönsterputs för din lokar
Published: 2022-10-25 07:04:55

Programmerare strävar alltid efter att utveckla mjukvara som hjälper oss att utföra vårt enkla dagliga arbete och som ökar mänskligt välbefinnande. Det råder ingen tvekan om att städning av huset eller arbetsplatsen är ett dagligt rutinarbete som inte är svårt att utföra. Därför söker företag att använda teknik i sitt dåvarande arbete, [Bofint ](https://bofint.se/blogg/kontorsstadning-kan-forbattra-produktiviteten/)Company, som använder de bästa uppfinningarna. och programvara för att utföra det städarbete som tilldelats den
9 Mind blowing Ai-powered tools That will help You Build A Brand for $0 ( Bookmarked )
Tags: webdev, react, html, productivity
Published: 2022-10-25 06:50:17


1. Remove.Bg – Remove image background with ease.

Remove Background from Image – remove.bg
Remove image backgrounds automatically in 5 seconds with just one click. Don't spend hours manually picking pixels. Upload your photo now & see the magic.

http://Remove.Bg

2. Panabee.com
is a fun AI powered name generator that comes laden with several other U.I and hosting related microservices.

Domain, App, and Business Name Generator - Panabee
Generate domain names, app names, website names, and business names online. See suggestions based on related words, translations, alternate spellings, domain extensions, and other keywords.

http://Panabee.com

3. Tribescaler.com – Write better hooks in seconds.

Tribescaler | Make Your Tweets Go Viral
Get more impressions, grow a better network and earn more money. It’s that simple. Get started for free.

http://Tribescaler.com

4. Copy.ai 
AI content generator that delivers premium results in seconds.

Copy.ai: Write better marketing copy and content with AI
Get great copy that sells. Copy.ai is an AI-powered copywriter that generates high-quality copy for your business. Get started for free, no credit card required! Marketing simplified!

http://Copy.ai

5. Namelix.com – 
Generate brand names for free.

http://Namelix.com

6. Writesonic.com– Write long-form content in seconds.

Writesonic AI Writer - Best AI Writing Assistant
Writesonic is an AI writer that creates unique, high-quality content in seconds. Try our AI writing assistant to generate SEO-friendly content for free.

http://Writesonic.com

7. Unscreen.com
– Remove video background with ease.

Remove Video Background – Unscreen
Remove the background of any video - 100% automatically, online & free! Goodbye Greenscreen. Hello Unscreen.

http://Unscreen.com

8. Jasper.ai 

Artificial intelligence makes it fast & easy to create content for your blog, social media, website, and more! Rated 5/5 stars in 3,000+ reviews.

Jasper - The #1 AI Content Platform For Business
Create content 10x faster with artificial intelligence. Jasper is the highest quality AI copywriting tool with over 3,000 5-star reviews. Best for writing blog posts, social media content, and marketing

http://Jasper.ai

9. [Elaphas](Elaphas.app)

Personal AI Writing Assistant 
for Mac.
Elephas Thinks that Your emails should look professional, blogs should be clutter-free, and your social media content should engage your audience. Elephas got all three content rewrite modes. 

It’s basically like Grammarly but with added flavour that runs on Mac 🖥 😉



Thanks for Reading down this far i hope you enjoyed by the way 
This is one of [many post i made every week on my newsletter you can subscribe here (https://aiinnovators.beehiiv.com/) i Promise you will not regret it.

Enjoy 🥂
10 Quick Tips About Engine Builder Simulator Free
Published: 2022-10-25 06:45:36

<b>examsimulator:-</b> In order to obtain the boundary and initial values for D simulation which can be close to the actual working conditions the D simulation model of the engine bee established. Referring to the combustion exothermic law equation of the Vibe model and the Woschni warm temperature transfer function which is probably validated in Equations the D simulation model of the engine bee established. The simulation <b>Engine Builder Simulator Free</b> results of the established D model were in contrast with the check records of the prototype device to revise and adjust model parameters constantly. The D fuelolinedynamic model of the engine is constructed in . 

Click Here More Info >>>>> https://dumpsarena.com/test-engine-simulator/
😎How to create modern view components in Microsoft Lists [SharePoint List Neumorphism]
Tags: giulianodeluca, sharepoint, microsoftlists, microsoftteams
Published: 2022-10-25 06:41:00

---
title: 😎How to create modern view components in Microsoft Lists [SharePoint List Neumorphism]
published: true
description: In this video tutorial, I'll walk you through every step to creating a modern list view in SharePoint online
tags: giulianodeluca,sharepoint,microsoftlists,microsoftteams
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
published_at: 2022-10-25 06:41 +0000
---

😎How to create modern view components in Microsoft Lists [SharePoint List Neumorphism]
🎬NEW VIDEO N. 296🎬
In this video tutorial, I'll walk you through every step to creating a modern list view in SharePoint online. 
We'll see how to reuse the modern components coming from an open-source project on GitHub. 

{% youtube p8GtR1F3Gvs %}