teleren/devto huggingface dataset:
Python unique list, in order
Tags: python
Published: 2021-12-07 02:54:55

Do you need to remove duplicates from a list, and keep it in order?

```
xs = [1, 3, 2, 2, 5, 4, 1, 5]
```

The [set type](https://docs.python.org/3.8/library/stdtypes.html#set-types-set-frozenset) will return one of each element:

```
>>> set(xs)
{1, 2, 3, 4, 5}
```

But not in order, because a set is an _unordered collection_.

```
>>> for x in set(xs):
...     print(x)
... 
1
2
3
4
5
```

Instead, first construct a set from the list, then a list from this set, in the right order with the [sorted](https://docs.python.org/3/howto/sorting.html) function, like so:

```
>>> xs = [1, 3, 2, 2, 5, 4, 1, 5]
>>> list(sorted(set(xs), key=lambda x: xs.index(x)))
[1, 3, 2, 5, 4]
```

Quiz: When does the above construct _not_ work?
Cool Python Project 4: Calculator
Tags: python, calculatorproject, coding, abhidevelopssuntech
Published: 2021-12-07 02:16:54

Hi Everyone! Welcome to Cool Python Projects!
In this post I will be showing you how to make a Calculator in Python. Please remember to follow me to stay updated on any new projects.

Python Code:

```python
def divide (user_number_3, user_number_4):

   result1 = user_number_3 / user_number_4

   return result1

def add (user_number_3, user_number_4):

   result2 = user_number_3 + user_number_4

   return result2

def multiply (user_number_3, user_number_4):

   result3 = user_number_3 * user_number_4

   return result3

def subtraction (user_number_3, user_number_4):

   result4 = user_number_3 - user_number_4

   return result4

def main ():

   user_choice = input("Do you want to a)add or b)multiply c)divide d) subtract - Enter a, b , c, or d ")

   user_number_1 = int(input('Enter first number '))

   user_number_2 = int(input('Enter second number '))

   if user_choice == 'a':

       result = add(user_number_1, user_number_2)

       print('The result is: {}'.format(result))

       print("Hope you had fun with our calculator!")

   if user_choice == 'b':

       result = multiply(user_number_1, user_number_2)

       print('The result is: {}'.format(result))

       print("Hope you had fun with our calculator!")

   if user_choice == 'c':

       result = divide(user_number_1, user_number_2)

       print('The result is: {}'.format(result))

       print("Hope you had fun with our calculator!")

   if user_choice == 'd':

       result = subtraction(user_number_1, user_number_2)

       print('The result is: {}'.format(result))

       print("Hope you had fun with our calculator!")

main()
```

I hope you enjoyed this Python project.

[All the projects code in the series](https://sites.google.com/view/devpythonprojects/home)
Cool Python Project 3: Next Leap Year
Tags: python, leapyearproject, coding, abhidevelopssuntech
Published: 2021-12-07 02:14:59

Hi Everyone! Welcome to Cool Python Projects!
In this post I will be showing you how to make a Leap Year project that tells you when the next leap year will be. Please remember to follow me to stay updated on any new projects.

Python Code:

```python
print("In this app you will know when the next leap year is this year a leap year.")

what_is_leap_year = input("Do you know what a leap year is? a)YES or b)NO? ")

if what_is_leap_year == 'a':

   print("Awesome!")

elif what_is_leap_year == 'b':

   print("I will tell you.")

   print("A leap year happens every 4 years when February has 29 days, understand.")

   print()

print("Next I will tell you if it is a leap year now.")

what_year = int(input("What year is it? "))

division = (float(what_year/4))

if division.is_integer():

   print('The year {} is a leap year'.format(what_year))

else:

   print("It is not a leap year.")

division_int = int(division)

for x in range(2):

   next_division = division_int + 1

   next_leap_year = next_division * 4

   print('The next leap year will happen in {}'.format(next_leap_year))

   division_int = division_int + 1

print("I hope you liked this calendar game!")
```

I hope you enjoyed this Python project.

[All the projects code in the series](https://sites.google.com/view/devpythonprojects/home)
Cool Python Project 2: Guess that Number Game
Tags: python, guessnumbergame, coding, abhidevelopssuntech
Published: 2021-12-07 02:09:23

Hi Everyone! Welcome to Cool Python Projects!
In this post I will be showing you how to make a Guess that Number Game in Python. Please remember to follow me to stay updated on any new projects.

```python
import random

print("I have thought of a number between 1 and 10. But I will not tell you, you have to guess it.")

the_number = random.randint(1, 10)

username = input("What is your name? ")

if username == 'Abhinav Gupta':

   print("Hello Abhinav Gupta, my name is Alexa.")

user_int = -1

while user_int != the_number:

   user_input = input("Guess a number between 1 and 10. ")

   user_int = int(user_input)

   if user_int > the_number:

       print('Oh No {0}, Your guess {1} is too high!'.format(username, user_int))

   elif user_int < the_number:

       print('Uh Oh, {0} Your guess {1} is to small!'.format(username, user_int))

   else:

       print("YOU GOT IT, WELL DONE!")

print("Well Done, take rest now.")
```

I hope you enjoyed this Python project.

[All the projects code in the series](https://sites.google.com/view/devpythonprojects/home)
Baby Steps
Tags: aws, career
Published: 2021-12-07 02:07:23

It's been a minute, but I haven't given up on my challenge! I took a detour for a little bit to focus on the AWS Solutions Architect certification, which I needed to complete by the end of the year for a work-sponsored program. I took the test on Saturday and I passed!

Now back to the challenge, which is giving me a bit of a headache trying to tie the API Gateway with Lambda, but it will probably take a bit (read: a lot) more research. I'll get there though!

Never quit and never surrender!
Cool Python Project 1: Birthday Estimator
Tags: python, birthdayproject, coding, abhidevelopssuntech
Published: 2021-12-07 01:50:40

Hi Everyone! Welcome to Cool Python Projects!
In this post I will be showing you how to make a Birthday Estimator in Python. Please remember to follow me to stay updated on any new projects.

Python Code:

```python
import datetime

def get_birthday_from_user():

   year = int(input('What year were you born? '))

   month = int(input('What month were you born? '))

   day = int(input('What day were you born? '))

   user_bday=datetime.date(year,month,day)

   return user_bday

def compute_days_between_dates(bday2,today2):

   bday2 = datetime.date(today2.year,bday2.month, bday2.day)

   days3 = bday2 - today2

   print(days3, type(days3))

   return days3.days

def print_birthday_information(bday4):

   if bday4 < 0:

       print('Your Birthday was {0} days ago!'.format(-bday4))

def main ():

   user_bday2 = get_birthday_from_user()

   today = datetime.date.today()

   days_to_bday = compute_days_between_dates(user_bday2,today)

   print_birthday_information(days_to_bday)

main()
```

I hope you enjoyed this Python project.

[All the projects code in the series](https://sites.google.com/view/devpythonprojects/home)
Benefits of Acrylic Glass For Storefronts
Tags: acrylicglass
Published: 2021-12-07 01:44:31


A storefront is the first point of contact between potential buyers. Therefore, it is important to attract customers by having an attractive storefront. Using acrylic glass sheets for your storefront is an excellent way to make a statement to customers and other businesses in the neighborhood. This article explores the benefits of acrylic glass for storefronts. The advantages of acrylic sheeting are numerous. You can save on installation costs and avoid having to replace existing windows.

## Benefits of Having Acrylic Glass:

### One of the major benefits of acrylic glass for storefronts is its high transparency.

This allows customers to easily see your store and helps save energy and money on artificial lighting. Because acrylic glass sheets are highly durable, they can last for decades, even if they are knocked over. The sheet is also extremely easy to cut and install, making it convenient for large-scale installations. This makes it a great choice for a wide variety of uses.


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

### Second, compared to glass, acrylic is significantly lighter.

You can easily load a large sheet of acrylic into your truck bed and transport it to another location. Similarly, glass is difficult to transport and can break easily, resulting in a dangerous situation. In museums, most objects on display are protected by laminated glass, which has vapor barrier and non-warping properties. Since acrylic is cheaper, it is a better choice for less-sealed enclosures.

### Third, Unlike glass, acrylic is not prone to breaking and will not break into small pieces.

This makes it safer for small children. Furthermore, acrylic is much clearer than glass and transmits 92% of visible light compared to 90% for glass. Therefore, it is a better choice for storefront windows and glazing. 


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

### Fourth, acrylic is strong enough to withstand a high-impact impact despite having a lower density than glass.

It has a tensile strength of over 10,000 pounds per square inch and high impact resistance of six to seventeen times that of ordinary glass. Unfortunately, its low density makes it much easier to install than glass, leading to a weakened structure. However, **[acrylic glass](https://bcjplastics.com.au/why-perspex-acrylic-is-better-than-glass/)** is also less expensive to buy than glass, so you can save money while building your shop front.

Unlike glass, acrylic is much lighter than glass. This makes it easy to load large acrylic sheets in a pickup bed. Installing large acrylic sheets is easier than installing a conventional glass storefront. And it's not just attractive; it is a safer option than glass. For example, a modern storefront with acrylic panels can be easily customized and has a unique design.
Crypto meets Voxels
Published: 2021-12-04 23:05:26

Greetings,
I had the opportunity to work on some blockchain studies within the coffee shop. While taking on the studies and talking to some fellow developers within the space, I was able to come across the world of Cryptovoxels. A metaverse that is truly phenomenal is only the small words to be stated for it's bigger than I thought. Hearing the term metaverse used quite frequent these days sparked interest so I wanted to learn more. Who would've known just like that a metaverse would be traveled by Orion!? 

Cryptovoxels is a virtual world and metaverse which is powered by Ethereum. The players buy land and build many things such as art galleries and stores where you can buy digital and physical goods. Events are thrown within the world using built in tools such as text and chat. I had a chance to review the mighty world and there is so much to see. Created my avatar as well as made created a space using build tools, I can truly see much potential in the metaverse.

Outside the build tools that are simple to understand while building, I was able to visit some amazing parcels. Yes, parcels is the terminology that is used of the land which users purchase. The parcels are sold on Opensea.io in which runs a pretty penny like other metaverses such as Decentraland and The Sandbox. I like how they implement the voxel art which can be created using MagicaVoxel to expand many artist dreams. If you are one who wants to explore the world of Cryptovoxels I highly recommend you do. 

More info in future post.
Build your LaTeX documents with GitHub Actions
Tags: actionshackathon21
Published: 2021-12-07 01:36:18

[Instructions]: # (To submit to the GitHub Actions x DEV Hackathon 2021, please fill out all sections.)


### My Workflow
[Note]: # (Please make sure the project links to the appropriate GitHub Actions repository, and includes [an open source license](https://choosealicense.com/) and README.)

LaTeX is a high-quality typesetting system, and it's the de facto standard for the communication and publication of scientific documents.

I think the Git version control system fits perfectly when it comes to collaborative, scientific writing. It's superior to the Google Docs style of Overleaf.

Installing a full LaTeX system takes up a considerable amount time and space on your hard drive. I heard about [Tectonic](https://tectonic-typesetting.github.io/en-US/) during the [PackagingCon 2021](https://packaging-con.org/)  and immediately I knew that's the kind of stuff I want to deploy on GitHub Actions.

> _Tectonic is a modernized, complete, self-contained TeX/LaTeX engine, powered by XeTeX and TeXLive. (...) Tectonic **automatically downloads support files** so you don’t have to install a full LaTeX system in order to start using it. If you start using a new LaTeX package, Tectonic just pulls down the files it needs and continues processing. The underyling “bundle” technology allows for **completely reproducible document compiles**._

**Usage:**

Choose one of the following options:

- Open a [**Build request**](https://github.com/epassaro/texbuilder/issues/new/choose) and submit your LaTeX code.
- [**Fork the repository**](https://github.com/epassaro/texbuilder), apply your changes to `build/main.tex` and open a pull request.

A link with your results will be posted on the corresponding issue/pull request.

**Demo:**
- https://github.com/epassaro/texbuilder/issues/1
- https://github.com/epassaro/texbuilder/pull/2

### Submission Category: 

[Note]: # (Maintainer Must-Haves, DIY Deployments, Interesting IoT, Phone Friendly, or Wacky Wildcards)

Wacky Wildcards


### Yaml File or Link to Code

[Note]: # (Our markdown editor supports pretty embeds. Try this syntax: `{% github link_to_your_repo %}` to share a GitHub repository)

{% github epassaro/texbuilder %}


### Additional Resources / Info

[Note]: # (Be sure to link to any open source projects that are using your workflow!)

[Note]: # (Be sure to include the DEV usernames of your collaborators, if any)

[Reminder]: # (Submissions are due on December 8th, 2021 (11:59 PM PT or 2 AM ET/6 AM UTC on December 9th)

{% link https://dev.to/epassaro/build-a-latex-document-by-opening-an-issue-or-pull-request-2gh6 %}
Importance of QA on a team
Tags: codequality, qualityassurance, agile, agileteams
Published: 2021-12-07 01:08:24

Have you ever had the doubt about, what does it means deliver a quality product? or, what does it means to work based on quality? Well, this questions have an easy but tricky answer, because quality depends on the perception of each person, so, based on this, let me show you what is my perception of quality. In general Quality means deliver a functional product that achieves the expectations of our stakeholders (yeah based on software delivery of course), but, for me, Quality also means, that the team is proud with the product that we are presenting to the stakeholders (insert emotional music here).

Ok, now that we understand the most common definition of Quality (we don't use the one that says "Quality means absence of errors" because, based on Quality Principles, Absence of error are a Fallacy) we need to understand from where this Quality comes from, as I mention before, in my perception of Quality, the whole team is responsible of achieving the best Quality level possible for the product, most of the people tends to asume, that the Quality Assurance person or the Tester are the only one responsible of doing this, that is true (in some way) because we should always have a Quality Champion (QC) on our team, who is in charge of negotiate with everyone to define the best practices that will adapt to the project Quality Strategy (QS) but, at the end, this will always be a team responsibility to understand, practice and improve what everyone defined on it.

My main purpose here is, make people understand that Quality is not a person or department, quality is a commitment that a team uses to define the best practices that can be applied to their specific project (there is not a common path or a typical Quality Strategy for all the teams).

To finish this post, I’ll let you know some desired activities that I get from my stakeholders on the QA activities that I performed on a team:

- Define with the team and maintain the QS.
- Guide the team on keeping track of what we defined on the QS.
- Perform testing activities like static and dynamic testing (manual and automated testing).
- Be aware in the coming activities and the actual activities that the team is performing to raise flags when needed.
- Give the QA perspective in the team activities like deployments, pipelines, developments, business activities, etc.

I can type a complete book about this topic but I’ll leave it here for the moment, this is my first post and I’ll try to continue giving the expertise that I get from my daily activities and I hope that I can guide the people in understanding QA inside the development industry.
100 días de código: 32, 33 y 34 tres días sin codificar lo suficiente.
Tags: spanish, 100daysofcode, webdev
Published: 2021-12-07 00:41:34

Photo by [JUNHØ](ttps://unsplash.com/@junhochak?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) On [Unsplash](https://unsplash.com/t/travel?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)`
  
¡Hey hey hey!

Bienvenidos a este día 34 en el cual les contare como fue el fin de semana. Ya les adelanto que, como todos los anteriores, he estado ocupado incluso para programar.

Solamente he podido codificar muy poco rebasando los mínimos del reto por poco estos días.

Comencemos con los días:

### Antier:
- Practique 15 min de Touch Typing.
- Avance con algunas secciones del proyecto de mi biblioteca sobre todo en unos cambios en el maquetado.
- Aprendí un poco sobre de TypeScript con ayuda de la documentación.

### Ayer:
- Modifique y arregle los estilos para hacer responsivo el diseño del proyecto biblioteca.
- Practique 30 minutos de Touch Typing.
- Codifique un poco un proyecto propio en Electrón.

### Hoy:
- Me puse manos a la obra para crear una aplicación de biblioteca mas completa que básicamente seria un CRUD. Avance bastante en ella en cuanto a la codificación pero aun me falta bastante.
- Practique 15 min de Touch Typing.

Me siento un poco alegre por mis avances con el proyecto de la biblioteca pero creo que debería replantearme mis prioridades para no consumir demasiado tiempo en un proyecto en concreto.

Espero que te vaya super bien en sus proyectos y animo con ello, ¡tu puedes!
Adiós mundo!
Reviewing PR'S
Tags: opensource, osd600
Published: 2021-12-07 00:25:09

Hey Everyone :) Been a while...Yeah school is a lot...

Anyways right into business. This is just a quick recap/summary of my thoughts on the process of reviewing PR's which was required for an assignment. 

### Details

So for this assignment one of the tasks is to review a 2 PR's from a classmate. This was easy enough although it wasn't super substantial, the PR's can be found [here](https://github.com/Seneca-ICTOER/IPC144/pull/140) and [here](https://github.com/Seneca-ICTOER/IPC144/pull/119) with my reviews.

### Overall Thoughts

Reviewing is just as important as writing code. This becomes even more crucial the bigger and more complex the project gets. Having someone review your code is great for learning as well as a great learning opportunity for the reviewer as well. As I said the scope or the PR's weren't complex so the reviews were a bit meh but it is a good first step into the convention of reviewing :)
App Idea 
Published: 2021-12-07 00:21:24

##If you could build an app or website or technology of  any kind. What would it do?

During my last summer internship, I participated in a Volunteer Time Off activity that was so much fun. It was through an NGO that focuses on representing poor neighborhoods on the google maps. Basically this was a mapping activity for societies that are impoverished and left out of google maps because they are presumed irrelevant. I really enjoyed this activity and understood the power of representation. These societies lacked access to representation on google maps hence their restaurants roads and business couldn't benefit from google reviews, gps systems, uber, lyft and so many other services that require google maps. That activity made me think of the number of poor people who lack access to the most basic needs like food.   I would build a website that gave people access to resources especially food. Most homeless people or families go hungry because they cannot afford food yet restaurants, school dining facilities  and hotels end up throwing food at the end of the working shifts that is not eaten. I would partner with the community leaders to create a site where restaurants can post un used food that is in great condition at the end of each working day so that families in need of food can have it rather than the food going to waste. 
 

##Who would it be for? What would they use it for? How would you use it?
This site would be for connecting people that desperately in need of food with restaurants that are willing to donate uneaten food at the end of shifts that was doomed for waste if not purchased. I would try to convince active collaboration  with community food banks since they have databases of people that are facing food crisis. These people would be given exclusive access to the site before opening it up to the rest of the community incase there is extra food that is available.   

##If money was no concern , time no concern what would you do with your life and the skills you have assembled if you could dedicate to one thing?

If money was no concern, I would focus on ensuring every child has  access to great education that is not focused on getting a job and money but rather developing their full potential in whatever they are passionate about. 
So many people lack access to the most basic needs like food water shelter and good health. Access to education that focuses on encouraging the curiosity to keep learning but at the same time free from quotidian worries like school fees and grades would lead advancement in fields of medicine research and technology. I would wish for the next generation to live a happy fulfilled life full of love, joy, happiness and greatness.
PidCoin (personal internet data coin)
Tags: blockchain, database, datascience, help
Published: 2021-12-06 23:33:34

Hello. I am looking for help to make this project called PidCoin a reality. It is a decentralized and open source project. The main idea of ​​the project is to restore dignity and value to all Internet users. You can see more information at PidCoin.org
Thank you