teleren/devto huggingface dataset:
Creating the work page - part 9
Tags: javascript, webdev, beginners, nextjs
Published: 2022-10-16 08:23:05

What would our portfolio be without a dedicated work page, right?

Let's get started on creating this. Hopefully, we can reuse some of the components we already created when [working on the homepage](https://daily-dev-tips.com/posts/styling-the-featured-work-section-part-7/), as we see for the [blog page](https://daily-dev-tips.com/posts/creating-the-blog-page-part-8/).

As a reminder, the work page looks like this in the design file.

![Design of the work page](https://cdn.hashnode.com/res/hashnode/image/upload/v1665036864757/BUU9u5POV.png)

## Creating the work page

Let's start by adding a new page to our pages directory. We'll call this file `work.js`.
The rough outline for it will look like this:

```js
import Head from 'next/head';

export default function WorkPage() {
  return (
    <div>
      <Head>
        <title>NextJS Work</title>
        <meta name='description' content='Generated by create next app' />
        <link rel='icon' href='/favicon.ico' />
      </Head>
      <section>
        <div>
          <h1>Work</h1>
        </div>
      </section>
    </div>
  );
}
```

We can reuse all the classes we used in yesterday's [blog page](https://daily-dev-tips.com/posts/creating-the-blog-page-part-8/).

```html
<section className="px-6">
  <div className="max-w-4xl mx-auto">
    <h1 className="text-3xl font-bold mb-6 p-4">Work</h1>
  </div>
</section>
```

Now let's add some mockup work components we created before.

```js
import Head from 'next/head';
import Work from '../components/work';

export default function WorkPage() {
  return (
    <div>
      <Head>
        <title>NextJS Work</title>
        <meta name='description' content='Generated by create next app' />
        <link rel='icon' href='/favicon.ico' />
      </Head>
      <section className='px-6'>
        <div className='max-w-4xl mx-auto'>
          <h1 className='text-3xl font-bold mb-6 p-4'>Work</h1>
          <Work />
          <Work />
          <Work />
          <Work />
        </div>
      </section>
    </div>
  );
}
```

Let's see how it looks when we run our app and visit the work page.

![Designed work section](https://cdn.hashnode.com/res/hashnode/image/upload/v1665037576180/aNvvMT3Ww.png)

Wow, this one works out of the box. Thank you, reusable components.

You can also find the completed code for today on [GitHub](https://github.com/rebelchris/next-portfolio/tree/part-9)

### Thank you for reading, and let's connect!

Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on [Facebook](https://www.facebook.com/DailyDevTipsBlog) or [Twitter](https://twitter.com/DailyDevTips1)
Choosing a Framework
Tags: go, api
Published: 2022-10-16 06:51:46

---
title: Choosing a Framework
published: true
description: Setting up a new backend project and I was faced with a decision to make: what factors do I have to keep in mind before deciding to use a REST API framework for my backend?
tags:  go, golang, api
# cover_image: https://res.cloudinary.com/morelmiles/image/upload/v1665652551/go_scstxo.png
---
![banner](https://res.cloudinary.com/morelmiles/image/upload/v1665652551/go_scstxo.png)


A couple of days ago, I was faced with the task of choosing a tech stack for a new project. At the back of my mind, I knew that I wanted to use Golang due to:

- It's statically typed (I do not to use an external type system, e.g if I chose Javascript)
- Simpler syntax (only 25 reserved words)
- Concurrency
- Blazing fast
- Easy to learn

But, then I had to choose a framework to use for the API. 🤔
Below are the questions that guided my thinking before making the decision.

- What factors did I have to keep in mind?
- What framework has the features that any project would need (e.g CORS) while building an API?
- What are the pitfalls that I need to avoid e.g performance and complexity?
- Which framework has a lower learning curve for the rest of the team (both present and past)?
- Which one has better documentation and support online?

I ended up choosing Gin, because:

- It's fast (It used a radix tree-based routing to speed things up)
- Middleware support
- Simpler
- Supports different data formats: JSON, XML & HTML.

#### Conclusion

The above is a mental framework that could be applied whenever faced with making a technical decision, e.g relating to frameworks or a language.
The popular adage, "It depends", holds true in this case. Be ready to realistically look at the pros and cons of each technology before making a decision.

This article first appeared on personal website [https://luigimorel.co](https://luigimorel.co)
How to earn money with Fiverr 2022 | what we need to do?
Published: 2022-10-16 07:48:30

Remote working has been a famous style in current years. One on line market the place you can show off your capabilities and get paid for the work you do is Fiverr. Knowing how to make cash on Fiverr can provide countless work opportunities, giving you a dependable move of earnings from any phase of the world.


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

A normal false impression is that Fiverr jobs pay $5. However, this is now not actual as you can set your personal fee and make lots of greenbacks relying on your trip and the carrier you’re offering.

## How To Make Money on Fiverr: 7 Lucrative Seller Categories
**1. Graphic Design**

If you’re a photo designer, Fiverr is the proper region to promote your services. If you sketch logos, garments or cards, think about developing a gig on Fiverr. Starting costs for brand clothier gigs vary from $5 to over $1,400. so for that you need the given software to start it easily:

## [CorelDRAW Graphics Suite 2022](https://rahim-soft.com/coreldraw-graphics-suite-2022-portable-free-download/)

## [Adobe Illustrator](https://www.adobe.com/products/illustrator.html)

## [Adobe Photoshop](https://www.adobe.com/products/photoshop.html)

## [CorelDRAW Graphics Suite 2021](https://getsafeinfo.blogspot.com/2021/03/coreldraw-graphics-suite-2021-free.html)

## Copywriting

Wordsmiths are in high demand on Fiverr, which is what makes copywriting a lucrative gig. As a copywriter, you can review products, write blog posts and website landing pages or author books. A top-selling copywriter commands as much as $795 to create a brand story. **for rewriting articles you need these websites.**

## [SmallSeoTools](https://smallseotools.com/article-rewriter/)

## [RewriterTools](https://rewritertools.com/article-rewriter)
Importance Of Lists
Tags: a11y, testing, screenreader
Published: 2022-10-16 07:44:22

_Semantic structure is the foundation for accessible markup, as they properly convey information to the user through the accessibility API via screen readers._

In this article, let's take a closer look at how a screen reader interacts with a list, provided it is written with correct semantic HTML.

## Access lists with a screen reader 

When the screen reader encounters a list, it announces that it is a list and how many elements the list contains.

Depending on the type of list, the screen reader reads the list slightly differently.

### Ordered lists
Ordered lists are written with a parent element `<ol>` containing child elements of `<li>`.
The screen reader announces e.g. _list_, _3 items_, _1 list-element 1_, _2 list-element 2_, _3 list-element 3_.

### Unordered lists
Unordered lists are written with a parent element `<ul>` containing child elements of `<li>`.
The screen reader announces e.g. _list_, _3 items_, _bullet list-element 1_, _bullet list-element 2_, _bullet list-element 3_.

{% embed https://youtu.be/wnl-4N7Cfeg %}

### Description lists
Description lists are written with a parent element `<dl>`, a term element `<dt>` containing child elements of `<dd>`.
The screen reader announces e.g. _description list_, _3 items_, _term_, _term element_, _child element 1_, _group_, _child element 1_, ... . 

## Access lists with a screen reader (live demo)

I am using VoiceOver on the MacBook Air. I tried it in Safari, Chrome and Firefox, it worked the same everywhere.

The `Control + Option` combination is often referred to as `VO`.

Let's take a look on how I went through the lists in this example. To read the page use `VO + A`, to stop it use `Control`.

You can find the example to test it on your own on codepen.

{% codepen https://codepen.io/YuriDevAT/pen/eYrXxjP %}

Methods| Screen Reader | Browser | Command
--- | --- | --- | ---
Show All Lists | VoiceOver | Safari | `Control + Option + U` (to open rotor*), but `List` was not shown in the web rotor, even though I selected the item in the settings* | 
Navigate from One List Item to the Next | VoiceOver | Safari | `Control + Option + Command + X`

_*I did research on other browser/screen reader combination. I found out that with JAWS with Chrome or Firefox you can do `Control + L` to show all lists._

![Voice Over settings where the list is one of the selected items in the web rotor.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pfh1790vuw1ud5k8mydi.png)

**Note:** If you have further information on this I would be happy if you could share in the comments.


---

### Follow me for more accessibility content on:
Website - [accessibilityfirst.xyz](https://www.accessibilityfirst.xyz/)
Instagram - [accessibilityfirst.xyz](https://www.instagram.com/accessibilityfirst/)
LinkedIn - [accessibilityfirst](https://www.linkedin.com/company/accessibilityfirst/)
Hi, It's my first post from East.
Published: 2022-10-16 07:31:41

Hi. My name is austin.
I'll been writing tech blogs for 3 years, but now, I am going to try writing blog with English.

I 'm a senior in college, and major in Computer Science. I use the Python, JavaScript and Golang. Foucs in front and back end Software developing. Such as, I built the.top


I 'll been practicing my English write skill in dev.to and communicate tech with you.
Understanding Python's slice assignment
Tags: python, beginners, programming
Published: 2022-10-16 07:26:27

### Basic syntax

In order to understand Python's slice assignment, you should at least have a decent grasp of how slicing works. Here's a quick recap:

```py
[start_at:stop_before:step]
```

Where `start_at` is the index of the first item to be returned (included), `stop_before` is the index of the element before which to stop (not included) and `step` is the stride between any two items.

Slice assignment has the same syntax as slicing a list with the only exception that it's used on the left-hand side of an expression instead of the right-hand side. Since slicing returns a list, slice assignment requires a list (or other iterable). And, as the name implies, the right-hand side should be the value to assign to the slice on the left-hand side of the expression. For example:

```py
nums = [1, 2, 3, 4, 5]

nums[:1] = [6]        # [6, 2, 3, 4, 5]   (replace elements 0 through 1)
nums[1:3] = [7, 8]    # [6, 7, 8, 4, 5]   (replace elements 1 through 3)
nums[-2:] = [9, 0]    # [6, 7, 8, 9, 0]   (replace the last 2 elements)
```

### Changing length

The part of the list returned by the slice on the left-hand side of the expression is the part of the list that's going to be changed by slice assignment. This means that you can use slice assignment to replace part of the list with a different list whose length is also different from the returned slice. For example:

```py
nums = [1, 2, 3, 4, 5]

nums[1:4] = [6, 7]    # [1, 6, 7, 5]        (replace 3 elements with 2)
nums[-1:] = [8, 9, 0] # [1, 6, 7, 8, 9, 0]  (replace 1 element with 3)
nums[:1] = []         # [6, 7, 8, 9, 0]     (replace 1 element with 0)
```

If you take empty slices into account, you can also insert elements into a list without replacing anything in it. For example:

```py
nums = [1, 2, 3, 4, 5]

nums[2:2] = [6, 7]    # [1, 2, 6, 7, 3, 4, 5]   (insert 2 elements)
nums[7:] = [8, 9]     # [1, 2, 6, 7, 3, 4, 5, 8, 9] (append 2 elements)
nums[:0] = [0]        # [0, 1, 2, 6, 7, 3, 4, 5, 8, 9] (prepend 1 element)
nums[:] = [ 4, 2]     # [4, 2]         (replace whole list with a new one)
```

### Using steps

Last but not least, `step` is also applicable in slice assignment and you can use it to replace elements that match the iteration after each stride. The only difference is that if `step` is not `1`, the inserted list must have the exact same length as that of the returned list slice. For example:

```py
nums = [1, 2, 3, 4, 5]

nums[2:5:2] = [6, 7]  # [1, 2, 6, 4, 7] (replace every 2nd element, 2 through 5)
nums[2:5:2] = [6, 7, 8] # Throws a ValueError (can't replace 2 elements with 3)
nums[1::-1] = [9, 0]  # [0, 9, 6, 4, 7] (reverse replace, 1 through start)
```

---

_Do you like short, high-quality code snippets and articles? So do we! Visit [30 seconds of code](https://www.30secondsofcode.org/) for more articles like this one or follow us on [Twitter](https://twitter.com/30secondsofcode) for daily JavaScript, React and Python snippets!_ 👨‍💻
Create 3d logo with DALL·E 2
Tags: ai, javascript, webdev, machinelearning
Published: 2022-10-16 07:04:40

Today I found a great article by Jacob Martin where he wrote the whole process of how he used DALL·E 2 to generate the logo for OctoSQL.

After reading that I thought to try it out myself. Here is what I got:

**Prompt:** 3d letter 'a', logo, digital art, drawing, in a dark circle as the background, vibrant, cheerful, bubbles


![3d letter a, logo, digital art, drawing, in a dark circle as the background, vibrant, cheerful, bubbles](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fwa1944308qi8ehyf14d.png)


**Prompt:** 3d umbrella, logo, digital art, drawing, in a dark circle as the background, vibrant


![3d umbrella, logo, digital art, drawing, in a dark circle as the background, vibrant](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s5oqlukao4gz79t6z52k.png)


**Prompt:** 3d umbrella, logo, digital art, drawing, in a orange circle as the background


![3d umbrella, logo, digital art, drawing, in a orange circle as the background](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/auhuj608vsiuf3b1n4xx.png)

Jacob Martin's Article:
https://jacobmartins.com/posts/how-i-used-dalle2-to-generate-the-logo-for-octosql/
React Native vs Flutter
Published: 2022-10-16 06:34:03

The phenomenon of mobile apps dramatically affected the world of development. With over 3.6 mobile users worldwide, the creation of mobile apps requires new solutions that are less time and effort-consuming. In 2021, there are two main hybrid frameworks for app development, Flutter vs React Native. And the popularity of both of them keeps rising. 

42% of developers choose React Native for building apps, while Flutter is chosen by 39% in 2020. The third popular framework is Cordova that is chosen by only 18%! Flutter has already been used by over 2 mln of developers, and 500,000 use it monthly. The numbers are really impressive, but they mostly depend on the popularity of mobile apps among users. The matter is, 92% of mobile users spend time with apps and social media, and only 8% use web browsers. For business owners, presenting on all platforms is obligatory, and they won’t miss a chance to attract clients via various channels. 

However, for most businesses developing native apps for each platform is an unbearable waste of time. Therefore, they are looking for some technologies that would help in developing cross-platform mobile applications. And here they start wondering what is better: React Native vs Flutter? Indeed, hybrid apps are the best solution for the business. The segment of hybrid apps is growing fast, and it seems that in several years, hybrid apps will displace native apps.

What About you ? 

Which one you think is better ?
How to Create Splash Screen in Flutter Application
Published: 2022-10-16 06:33:54

A splash screen is an initial screen that will get displayed properly when the user launches the app, earlier than the main page loads. It may also be the app’s welcome screen that gives a simple initial experience when a mobile game or program is launching. The splash screen is only a display screen that permits users to look at something while the {hardware} is loading to the current software program to the user.

The common elements of a splash screen contain a company name and brand logo or a title. In this tutorial, we’re going to see how a splash screen is created in the Flutter application.

Here we are going to clarify the methods to add a splash screen in our Flutter application [Read More...](https://techzpad.com/splash-screen-in-flutter)
Cộng tác viên
Published: 2022-10-16 06:05:29

Cộng tác viên (CTV) là những người lao động tự do, cộng tác với một doanh nghiệp, tổ chức hay cá nhân nào đó để làm việc mà không cần phải bỏ vốn hoặc đến trụ sở công ty mỗi ngày. Có thể nói, Cộng tác viên là nghề tay trái của nhiều người hay nhân viên khi họ sử dụng thời gian rảnh để kiếm thêm thu nhập cho mình.
Nếu muốn tìm việc làm cộng tác viên nhanh và hiệu quả, bạn có thể ghé nền tảng công nghệ tuyển dụng tại Việc Làm Tốt để tham khảo các tin tuyển dụng [việc làm online](https://www.vieclamtot.com/tags/viec-lam-online
) từ những công ty, doanh nghiệp uy tín ở mọi ngành nghề.
[https://www.vieclamtot.com/tags/viec-lam-online
](https://www.vieclamtot.com/tags/viec-lam-online
)#vieclamonlinetaivieclamtot #vieclamonline #timvieconline #tuyendungonline #vieclamtuxa #vieclampromote #vieclam #vieclamtot
Stop Xcode 14 from signing pods (React Native solution)
Tags: reactnative, xcode, swift
Published: 2022-10-16 06:04:36

From version 14 Xcode has now started signing external pods, which causes problems in React Native versions below 0.70.3:

```
[...]/ios/Pods/Pods.xcodeproj error project: Signing for "React-Core-AccessibilityResources" requires a development team. Select a development team in the Signing & Capabilities editor.
```

To solve this you need to upgrade Reach Native to at least 0.70.3, which can be a somewhat daunting task. In the meantime you can set xcconfig rules in your Podfile post install block to stop Xcode from signing these pods (React-Core):

```ruby
installer.target_installation_results.pod_target_installation_results.each do |pod_name, target_installation_result|
       if pod_name.to_s == 'React-Core'
           target_installation_result.resource_bundle_targets.each do |resource_bundle_target|
               resource_bundle_target.build_configurations.each do |config|
                   config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
                   config.build_settings['CODE_SIGN_STYLE'] = 'Manual'
               end
           end
       end
     end
```

Some people have reported being denied in app review after doing this, while others report being approved without issues.
Shoutcast broadcasting upstreaming in android
Published: 2022-10-16 04:50:24



I've checked the many blogs and forums and github but nothing found related/help for implementing shoutcast v1 or v2 in android, only ref which is helpful I've found in github is this:

https://github.com/fatihsokmen/android-icecast-broadcast

but above code only work with icecast server and also very limited use and files which is used for broadcasting is *.so files so we can not change or override the exiting methods.

is there any guide or helpful link or source code which I can use to build shoutcast broadcasting in
how to generate pdf in django in other languages?
Tags: django, xhtml2pdf, pdf
Published: 2022-10-16 04:50:22

I use xhtml2pdf to generate pdf in django.
The pdf generation smooth for the english language. But i have to generate pdf in nepali language, how can i do it?

```
from django.template.loader import get_template
from xhtml2pdf import pisa

def generate_pdf(request):
    template = get_template('pdf_template.html')
    html = template.render({'title':'abc', 'data':'नमस्कार'})
    result = BytesIO()
    
    try:
        pdf = pisa.pisaDocument(BytesIO(html.encode('utf-8')), result)
    except Exception as e:
        return HttpResponse(e)
    if not pdf.err:
        return HttpResponse(result.getvalue(), content_type="application/pdf")
    return None
```

The issue here is "UnicodeEncodeError: 'latin-1' codec can't encode character".
How-to: encourage the read to click on links
Published: 2022-11-06 03:07:18

---
title: How-to: encourage the read to click on links
published: true
date: 2022-10-16 03:30:27 UTC
tags: 
canonical_url: https://write.as/kelvintaywl/how-to-encourage-the-read-to-click-on-links?pk_campaign=rss-feed
---

We communicate to our readers in documentations, responses, and also comments. Today's communication tools allows us to include links easily in many ways.

This sentence [includes a link within itself](https://www.w3.org/DesignIssues/LinkMyths.html), but does not stop you from reading the entire message.

I find such links useful when the linked article is **supplementary** to your message.

In situations where I want to direct the reader to click on the link explicitly, I find it best to simply show them raw below:[https://www.w3.org/DesignIssues/LinkMyths.html](https://www.w3.org/DesignIssues/LinkMyths.html)

Personally, I find that showing the link raw (as-is) at the end helps:

1. draw attention, especially if the main point is about the linked article
2. to allow readers to inspect the link URL, which can help in credibility too

[buy Kelvin a cup of coffee](https://www.buymeacoffee.com/kelvintaywl) ☕
Can we trick our brain into wanting to do things we don't want to do?
Tags: code, your, brain
Published: 2022-10-16 03:16:18

## Who rules his mind, rules his life.
Have you ever wondered the secret behind other people's productivity? Have you ever felt discouraged when people around us read how many books or talk about their goals? Or are you dealing with the 3rd episode of course, which you started 2 months ago? 

There are some moments in our working life that prevent us from doing business. However, even in this state, we can easily hang out on social media. 

So why?
To find the answer, it is useful to take a look at our processing center, our brain. Remember, who rules his mind, rules his life.
Brain`s task is to protect ourselves by following the path of least resistance. So instead of starting a hard job, brain finds it more reasonable to wander around on Instagram. 

We tend to do things that are easy and things that make us feel better, rather than challenging our brains. One of the main reasons for this is that our brain tends to do things that will provide dopamine in an easy way. 

Here, the most important factor is our dopamine release. Sometimes even knowing that this is the reason can help us prevent things. This can become a habit if we constantly start doing things that our brain feels comfortable with. 

That's why we should try ways to make things we don't enjoy doing enjoyable. And we should keep our minds away from the factors that can lead us to easy. After getting a habit over time, we can develop it further.

We can write and talk a lot about this subject, but because I am tired, you can research it yourself in more detail from the sources I left below.

https://www.psychologytoday.com/intl/blog/the-athletes-way/201405/the-neuroscience-pleasure-and-addiction

https://medium.com/azoth/why-some-people-are-more-successful-than-others-the-dopamine-connection-fd4c4b6ffa18

https://medium.com/mind-cafe/how-to-trick-your-brain-into-liking-hard-things-f305430b3a7f

https://www.linkedin.com/pulse/5-ways-trick-your-brain-being-more-productive-richard-bliss/?trk=articles_directory