teleren/devto huggingface dataset:
4- Django: Write a view
Tags: django, python, programming, webdev
Published: 2023-01-24 05:39:59

--- series: Django a Python web framework ---

Open the file polls/views.py For example, we open "Sublime Text" software. From File&gt;New Folder&gt; we select: PollProject folder

Then put the following Python code in polls/views.py:

```plaintext
from django.http import HttpResponse


def index(request):
    return HttpResponse("Hello, visiter. You're at the polls project.")
```

To call the view, we need to map it to a URL.

In the polls directory, create a file called urls.py select: polls&gt;right click&gt; New File&gt; Save as&gt; urls.py

In the polls/urls.py file include the following code:

```plaintext
from django.urls import path

from . import views

urlpatterns = [
    path('', views.index, name='index'),
]
```

Then open: PollProject/urls.py and past the following code in it: \`\`\` from django.contrib import admin from django.urls import include, path

urlpatterns = \[ path('polls/', include('polls.urls')), path('admin/', admin.site.urls), \] `Verify it’s working with the following command:` py manage.py runserver \`\`\`

Then, go to http://localhost:8000/polls/ in your browser.

<p>If you like the content, please <a target="_blank" href="https://www.youtube.com/channel/UCpbWlHEqBSnJb6i4UemXQpA?sub_confirmation=1">SUBSCRIBE</a> to my channel for the future content</p>
3- Django: Creating polls app
Tags: webdev, django, python, programming
Published: 2023-01-24 05:32:46

--- series: Django a Python web framework ---

Change directory to: "PollProject" folder, where *manage.py* exists. 
```
cd desktop
cd PollProject
```
To create our app, we type this command:
```
py manage.py startapp polls
```

<p>If you like the content, please <a target="_blank" href="https://www.youtube.com/channel/UCpbWlHEqBSnJb6i4UemXQpA?sub_confirmation=1">SUBSCRIBE</a> to my channel for the future content</p>
2- Django: Creating a project
Tags: django, python, webdev, programming
Published: 2023-01-24 05:30:21

--- series: Django a Python web framework ---

From the command line, cd into a directory where you’d like to store your code, for example, "Desktop"
```
cd desktop
```
Then run the following command to create a project named "PollProject":
```
django-admin startproject PollProject
```
Change directory to created project:
```
cd PollProject
```
To verify your Django project works, we run the following commands:
```
py manage.py runserver
```
Then, visit "http://127.0.0.1:8000/" with your web browser. 
If it work well, you’ll see a “Congratulations!” page:


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v8m6a1wtashpupaz6kr3.png)
Magivoid Devlog #0 - I would like to make a game
Tags: gamedev, devlog
Published: 2023-04-28 15:49:24

---
title: Magivoid Devlog #0 - I would like to make a game
published: true
date: 2023-01-24 00:00:00 UTC
tags: gamedev, devlog
canonical_url: https://tinygame.dev/posts/Magivoid-Devlog-0/
---

## Why?

I started messing about with computers about three decades ago (yikes, 2023), and I quickly gravitated towards building games. They weren’t really games at that point, but in my head that was always the goal. It was never apps or utilities, although various tools and scripts always ended up being coded to help speed things up or automate things. There was just something alluring about games.

I had played games for years before but that was on consoles like the NES and Master System with no option to explore programming. Once I got my hands on my first computer, I never looked back.

I don’t remember clearly how long various phases took, but it felt like a long time passed where I just messed around with QBasic and later Visual Basic. I remember enjoying it but feeling frustrated that it didn’t let me build what I wanted quickly enough. I somehow ended up using tools like [Klick
& Play](https://www.youtube.com/watch?v=GYvoBc1qW8Y) and later its successor [The Games Factory](https://www.youtube.com/watch?v=Y6F_rpBGRbg). It was fun times and many 2D prototypes were built, but never full games.

Once I hit the boundaries of what those early game maker tools could do, I went back to programming. I had a thing for JRPGs on the SNES, so naturally I attempted with little success to render tile based maps in a form in Visual Basic 6. That struggle lead to trying to learn C, which ended horribly and instead I went to Java and learned to build applets. I don’t remember the details, but I remember enjoying being able to render 2d graphics more easily. Eventually I went back to C and C++ and managed to learn those too.

I studied computer science and my first job out of university was a gamedev job. My path since I was a kid has been a fairly straight flying arrow into the game industry and I’ve loved every moment of it. By now I’ve shipped a few significant AAA titles and have touched my fair share of code systems. Yet, I haven’t built a game from start to finish by myself. There’s an endless graveyard of prototypes, demos, designs, and ideas, but no project that I could call completed.

I would like to change this now. I would like to make a game.

## What?

I don’t know what game I will make yet. It will likely be relatively small in scope so it can be finished. It will use Unreal Engine 5 and probably a lot of assets from the UE Marketplace. Not knowing exactly what the finished product should be is somewhat liberating. It means I can pivot, experiment and try different things until something works. We will see.

At this point in my career I know what it takes to build a game. Even as I type this I’m unsure if I will actually complete it. But who knows, maybe this time it will happen.
1- How to install Django?
Tags: python, django, webdev
Published: 2023-01-24 05:20:59

--- series: Django a Python web framework --- 

To install Django package with pip on Windows:
- Open cmd
- Inside cmd, we can write:
```
py -m pip install Django
```
You can tell Django is installed and which version by running the following command in cmd:
```
py -m django --version
```


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z56zvftro4tcwh9sf3ds.png)
CodePen Designs - 25 : Music App
Tags: codepen, css, webdev, design
Published: 2023-01-24 05:01:32

### We are excited to introduce our new series that will explore the best design ideas from the Codepen community. 

We will be publishing these each day and hope you find them insightful and inspiring as we showcase some of the most talented designers in this space.

---


#### Codepen Design - 25

<p>A music app concept by Sulton Handaya</p>

<p>Made from this Dribbble shot: <a href="https://dribbble.com/shots/16355560-Online-Music-Streaming-App/attachments/8920497?mode=media" target="_blank">https://dribbble.com/shots/16355560-Online-Music-Streaming-App/attachments/8920497?mode=media</a> </p>

{% codepen https://codepen.io/havardob/pen/JjJXqZm %}



---
## For more information

1. Check my GitHub profile
[https://github.com/amitSharma7741](https://github.com/amitSharma7741)

2. Check out my Fiver profile if you need any freelancing work
[https://www.fiverr.com/amit_sharma77](https://www.fiverr.com/amit_sharma77)

3. Check out my Instagram
[https://www.instagram.com/fromgoodthings/](https://www.instagram.com/fromgoodthings/)

4. Linktree
[https://linktr.ee/jonSnow77](https://linktr.ee/jonSnow77)

5. Check my project

- EVSTART: Electric Vehicle is the Future
[https://evstart.netlify.app/](https://evstart.netlify.app/)
-  News Website in react
 [https://newsmon.netlify.app/](https://newsmon.netlify.app/)
-  Hindi jokes API
 [https://hindi-jokes-api.onrender.com/](https://hindi-jokes-api.onrender.com/)


---
---
Beginners guide to dev.to
Published: 2023-01-24 04:30:45

Dev.to is a platform for developers to share and learn from each other. Here is a beginner's guide to getting started on the platform:

Sign up for an account: Go to dev.to and create an account using your email and password.

Complete your profile: Once you have an account, complete your profile by adding a bio, picture, and links to your social media profiles.

Explore the community: Take a look around the community by browsing articles, tutorials, and discussions. You can also search for specific topics using the search bar.

Participate in the community: You can join the conversation by commenting on articles, tutorials, and discussions. You can also start your own discussion by clicking on the "New Discussion" button.

Share your own content: Share your own content by clicking on the "New Article" button. You can write about anything related to development, and add code snippets, images, and videos to your article.

Join the Slack community: Dev.to has a Slack community where you can connect with other developers, share your work, and get feedback. To join, go to https://dev.to/slack and sign up.

Follow users and tags: You can follow users and tags on dev.to to stay updated on their content. When you follow a user, their articles will appear in your feed. When you follow a tag, articles with that tag will appear in your feed.

Be helpful and respectful: Be helpful and respectful when participating in the community. Show empathy and be willing to help others.

By following these steps, you will be able to make the most of your experience on dev.to and connect with other developers.
Switching back to zorin, wtf mongodb is not yet supported on popos/ubuntu 22.04
Tags: popos, linux, ubuntu, mongodb
Published: 2023-01-24 04:26:03

Why this shit happened with me. Now on I will aware of the development environment before upgrading oses. And will only upgrade my os after 2 years of release. So lets see '22.04 in '24.
Happy coding fella:)
ISTQB Agile Tester Certification | 3 Reasons You Need ISTQB Even As Fresher / Experienced QA - Day 1
Tags: webdev, beginners, tutorial, programming
Published: 2023-01-24 04:25:24

In this video, we are going to start a new Series, ISTQB Agile Tester Certification aka Certified Tester Foundation Level - Agile Tester ( ISTQB). 

{% embed https://youtu.be/Y6sOeozsBOc %} 

✅ Download Notes - https://sdet.live/notes


I am going to explain What is ISTQB and Why You should take the ISTQB Agile Extension certification.

✅ What is ISTQB?
The International Software Testing Qualifications Board is a software testing certification board that operates internationally. Founded in Edinburgh in November 2002, the ISTQB is a non-profit association legally registered in Belgium.

✅ What is Certified Tester Foundation Level - Agile Tester ( ISTQB)?
Foundation Level Agile Tester
Link - https://www.istqb.org/certification-p...



✅ Why ISTQB® Certification?
- High quality syllabi: all syllabi are developed and reviewed by leading testing professionals from academia and industry.
- Global recognition: certifications are recognized globally because of the consistent application of ISTQB® policies and procedures by the member boards.
- Common language: the ISTQB® Glossary provides a common vocabulary for the profession.
Objectivity: the assessment of tester capabilities is conducted independently by ISTQB® and provides objective verification of competencies.
Adherence to a Code of Ethics: all ISTQB® certified testers adhere to the Code of Ethics defined by ISTQB®.
Public Availability: ISTQB® glossary and syllabi is made freely available on the ISTQB® website and on the Member Board websites in local languages.
Openness

Link. - https://www.istqb.org/certification-p...


✅ Main Exam Syllabus
- Agile Software Development
- Fundamental Agile Testing Principles, Practices and process
- Agile Testing Methods, Techniques and Tools
Link - https://www.istqb.org/downloads/send/...


✅ API Testing –
https://www.learnapitesting.com


✅ Cypress Tutorial with LIVE Projects –
http://cypresstutorial.com


🟢 30 Days of Automation Testing
https://go.scrolltest.com/automation

🟢 30 Days of API Testing
https://apitesting.co/30days

🟢 30 Days of Rest Assured
https://go.scrolltest.com/30days-rest...


—————————————————–
👪 Join our Community – http://bit.ly/learntesting2019

✅ Automation Tester Community – https://thetestingacademy.com

🐦Follow us on Twitter – https://twitter.com/itstechmode

📖 Like us on Facebook – https://www.facebook.com/scrolltest

🎤 Listen to our Podcast – https://anchor.fm/thetestingacademy

——————————————————

 #istqb #istqbcertification #agiletester #agilecertification #agiletesting
Curated THE BEST Programing Articles from Hundreds Newsletter!
Tags: news, javascript, tutorial
Published: 2023-01-24 03:55:10

We all know every day millions programmer write and publish their articles. Thats very good because we need learning resources because as programmer we can't stop learning.

But to find THE BEST article outside there not easy - so some programmer curated hundreds article and send to us with email (called newsletter). So we can received THE BEST articles.


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

One problem is newsletter make mailbox ugly if subscribe to more than one newsletter. Manage multiple email is not easy, right?

So, I build a website for curated articles from hundreds newsletter (of course include Dev.to :-D) for programing community if want read THE BEST article.

Visit this link [https://bit.ly/3XwSgXN](https://bit.ly/3XwSgXN) to see the result.
I want to get a job
Published: 2023-01-24 03:48:32

Hello.
Gentleman and ladies.

I have always loved web development and design.
So, I suppose it's natural that I became an web developer.
I 've worked in a variety of roles and companies, which I 've learned a lot from.
Now I am ready for a new challenge.
If you have any problem or need my help, please contact to me.
03: Setup...
Published: 2023-01-24 03:38:10

## ✅ Setup project on Clickup - [link](https://app.clickup.com/37389717/v/s/90090076933)

No trouble here.

## ✅ Create AWS IAM account For project
For this I created 2 Users;

- An Admin account with `AdministratorAccess` permission, who will manage everything else (didn't wanna use the root account).
- A Terragrunt user that will provision all the resources, with the following permissions (for a start):
   1. `AmazonS3FullAccess`
   2. `AmazonEC2FullAccess`
   3. `IAMFullAccess`

## ✅ Register Route53 domain for project

No trouble here, though for this I had to message AWS customer care to enable my account to register a domain.

## ✅ Set up Terragrunt for managing terraform remote state

For now, we'll just add the `remote_state` setting in our **terragrunt.hcl** file: Link: [PR](https://github.com/rmayore/FakeST-DevOps/pull/1)

```
remote_state {
  backend = "s3"
  config = {
    bucket  = "fake-st-terraform-state"
    key     = "${path_relative_to_include()}.tfstate"
    region  = "af-south-1"
    encrypt = true
  }
}
```
ChatGPT becoming paid 💰
Tags: chatgpt, openai, ai, web3
Published: 2023-01-24 03:24:49

**_OpenAl_** has shared a waiting list on its Discord Server

where you can sign up for the Paid Professional plan which will be for **_$42/3,421_** per month.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8x5gunyxjnt84bveevcd.jpg)
Running Gitlab on Backstage locally
Tags: backstage, gitlab, webdev, productivity
Published: 2023-01-24 03:22:19

Since [Backstage](https://backstage.io/) is now the default developer portal for global teams nowadays to uplift engineering productivity, understandably, we FOMO'd 👻 and decided to do a PoC on this open-source platform built by Spotify from scratch.

The easiest way to verify if this baby 👶 works is by integrating it with our existing tech stack.

Without my typical witty backstory, I realised that I, myself, usually ignore the noise and just go straight to the steps when I'm SPIKE'ing something (see what I did there - used an agile term 🫶). Here's the steps on how I did it locally on a bare basic boilerplate level:

Cloned and installed a local copy of the [core Backstage repository](https://backstage.io/docs/getting-started/#create-your-backstage-app) with the following command:
```
npx @backstage/create-app@latest
```

Note: Follow the prompts such as running `npm run dev` and you should be able to access `http://localhost:3000`.
![localhost](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f0cqudm4get01j3f6il7.png)

Installed the [Backstage Gitlab plugin](https://github.com/loblaw-sre/backstage-plugin-gitlab) with the following command:
```
# From your Backstage root directory
cd packages/app
npm install @loblaw/backstage-plugin-gitlab
```

Added the following on the `app-config.yaml` (or `app-config.local.yaml` if you like to play safe):
```yaml
integrations:
  gitlab:
    - host: gitlab.com
      token: ${GITLAB_TOKEN}
```

Note: **GITLAB_TOKEN** can be grabbed from your Gitlab account > User Settings > Access Tokens
![gitlab](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lscgl6irof6zxm3wjx2i.png)

Selected an existing local repository and included a `catalog-info.yml` then pushed it to the remote Gitlab repository (this step automates the integration) with the following details:
```yaml
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
  name: k6
  description: performance tests
  annotations:
      gitlab.com/project-id: '41414141' # This must be in quotes and can be found under Settings --> General
spec:
  type: service
  owner: poponuts@test.com # This can be your team's distribution list too
  lifecycle: experimental
```

Note: `type` should have the value `service` to render Gitlab entity.

Refresh or re-run (`npm run dev`) the app then go to the service and you should be able to see all the Gitlab details
![catalog](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s4bu9gi0l6y6rev3a0gn.png)



Note: If you like it more fancy and have a separate Gitlab tab as per image above, the `.tsx` component files should be [customised](https://github.com/loblaw-sre/backstage-plugin-gitlab#setup).
vue3 build
Published: 2023-01-24 03:15:10

我项目中没有使用rollup但是却提示了这个错误，且项目中没看到这个default的引用，能帮帮我么！
"default" is not exported by "node_modules/_crypto-js@3.3.0@crypto-js/sha256.js", imported by "node_modules/_crypto-js@3.3.0@crypto-js/hmac-sha256.js".
file: /Users/zhujinlin/nextwork/blog/blog-v/node_modules/_crypto-js@3.3.0@crypto-js/hmac-sha256.js:2:7
1: ;(function (root, factory, undef) {
2:   if (typeof exports === "object") {
           ^
3:     // CommonJS
4:     module.exports = exports = factory(require("./core"), require("./sha256"), require("./hmac"));
error during build:
RollupError: "default" is not exported by "node_modules/_crypto-js@3.3.0@crypto-js/sha256.js", imported by "node_modules/_crypto-js@3.3.0@crypto-js/hmac-sha256.js".
    at error (file:///Users/zhujinlin/nextwork/blog/blog-v/node_modules/_rollup@3.9.0@rollup/dist/es/shared/rollup.js:2001:30)
    at Module.error (file:///Users/zhujinlin/nextwork/blog/blog-v/node_modules/_rollup@3.9.0@rollup/dist/es/shared/rollup.js:12986:16)
    at Module.traceVariable (file:///Users/zhujinlin/nextwork/blog/blog-v/node_modules/_rollup@3.9.0@rollup/dist/es/shared/rollup.js:13369:29)
ChatGPT vilão ou Mocinho?
Tags: chatgpt, javascript, python, rust
Published: 2023-01-24 02:14:07


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

O uso de modelos de IAs, como o ChatGPT, tem se tornado cada vez mais comum na indústria de tecnologia. Muitos programadores podem sentir uma certa resistência em relação ao uso desses modelos, temendo que eles possam ser substituídos. No entanto, existem boas razões para acreditar que os programadores não devem temer o uso dessa ferramenta.

Em primeiro lugar, é importante reforçar que o ChatGPT é apenas uma ferramenta. Ele foi projetado para ajudar os programadores a automatizar tarefas repetitivas, como o desenvolvimento de códigos ou uma elaboração de documentação. Isso permite que os programadores possam se concentrar em tarefas mais complexas e criativas, como a construção de novas features ou a solução de problemas complexos. Em vez de substituir os programadores, o ChatGPT os ajuda a ser mais eficientes, produtivos e possibilitando ter uma boa saúde mental.

Além disso, o ChatGPT faz parte de uma tendência na indústria de tecnologia. A automação e a inteligência artificial estão se tornando cada vez mais importantes em várias áreas, e os programadores que estiverem familiarizados com essas novas tecnologias terão maiores oportunidades de carreira no futuro. Ao invés de temer o uso do ChatGPT, os programadores devem buscar aprender mais sobre ele e se familiarizar com suas capacidades, a fim de se manter atualizado e competitivo no mercado de trabalho.

Por fim, é importante notar que o ChatGPT é apenas uma das muitas ferramentas disponíveis para os programadores. Ele não é uma solução mágica para todos os problemas que surgirem, e os programadores ainda precisam usar sua experiência, conhecimento e julgamento ao usá-lo. O ChatGPT não é capaz de substituir a inteligência humana, mas sim de auxiliar a mesma.

Em resumo, os programadores não devem temer o uso do ChatGPT. Em vez disso, eles devem ver essa ferramenta como uma oportunidade para aumentar sua eficiência e tornar-se mais competitivos no mercado de trabalho. A automação e a inteligência artificial estão se tornando cada vez mais importantes no mercado, e os programadores que estiverem familiarizados iram sempre ter sua vaga garantida.
Essential Tips for User Interface Design
Tags: webdev, design, ux, uiweekly
Published: 2023-01-24 02:03:43

One of the most important aspects of UI design is how users interact with your application. If you're looking to improve user interface design, then you should be giving this some attention. There is so much that goes into an effective UI, and it really depends on what you're trying to achieve. The best way to improve your user experience is to have an understanding of all the applicable aspects.


1. Keep it simple

Simplicity is the key to making a great user interface design. If you want your UI to stand out from the crowd, keep things simple by using a few colors and fonts. You don't need to make your UI look like it was designed by someone with a degree in graphic design—simplicity is all that matters.

2. Clear content

Your UI should be easy for users to read and understand at a glance. If there are too many elements on the screen at once, users will spend more time trying figure out what they're looking at than just reading content right away! Make sure that all of your text is clearly laid out in a way that doesn't get lost or obscured by other elements on screen.

3. Easy to use

Your UI needs to be easy for users because they'll need to be able to use it easily if they're going to interact with your app! Think about how you'd use an app yourself before designing one—do you feel like there's too many steps involved? Then make sure that whatever you're designing has fewer steps so that users won't have as much trouble getting around in your app.

4. Know your user/ target

Before designing anything, it's important that you know who will be using your product or service as well as some basic information about them such as age range, gender and interests etcetera so that when designing an interface you can make sure it appeals specifically towards them - this way people will feel more connected with each other and with what they're.

__________________________________________________________________

##Let's wrap up things!
I hope these four tips will help your UX design in some way and I'd like to hear your thoughts on UI design. For example, is there something you think is more important than the four we discussed? If so, leave a comment below telling us what it is!

Happy Coding!