teleren/devto huggingface dataset:
Numbers and stats of my side-project
Tags: jobopportunities, remotework, careergrowth, workfromhome
Published: 2023-07-08 03:23:07

🌟 I did it! I've added an incredible number of new job opportunities and expanded our database with more sources for remote work. 💼💻

📊 Here are some numbers that speak for themselves:

🔹 Over 20,000 jobs now available in our database. That's right, over twenty thousand amazing opportunities just waiting for you! 🌟

🔹 We currently have more than 2,500 active job listings. These are real-time opportunities that you can apply for right away. 🚀

🔹 And guess what? We have over 500 remote jobs available! The future of work is now, and we want to make sure you have access to the best remote positions out there. 🌐

🔹 To make all this possible, we have expanded our job data sources to include 10 new ones. We want to ensure you have access to the most comprehensive and up-to-date job listings. 📈

With these new additions, we are confident that you'll find the perfect job that suits your skills, interests, and lifestyle. Whether you're looking for a remote position, a part-time gig, or a full-time career, we've got you covered. 🌟

---

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

---

💡 So, what's next? It's time for you to explore the vast array of opportunities we have curated just for you. 🌍

🔎 Remember, the key to finding your dream job lies in being proactive, staying updated, and taking advantage of the resources available to you. 📚

💪 I've to continue improving the project. There is much to do. 😅

✨ Let's start a discussion! What type of job are you currently looking for? Share your thoughts and let's connect. 👇🗣️

 #JobOpportunities #RemoteWork #CareerGrowth #WorkFromHome
Which is better option GCP,AWS or Azure?
Tags: cloudcomputing, aws, gcp, azure
Published: 2023-07-08 02:20:36

The choice between Google Cloud Platform (GCP), Amazon Web Services (AWS), and Microsoft Azure ultimately depends on your specific requirements, preferences, and the nature of your project. Each cloud platform offers a wide range of services and features, and the "better" option varies depending on your needs. Here's a brief overview of each platform:

Google Cloud Platform (GCP): GCP is known for its strong data analytics and machine learning capabilities. It offers services like BigQuery for data warehousing and analysis, TensorFlow for deep learning, and a variety of other cloud services. GCP is often favored by companies with a focus on data-driven applications and advanced analytics.

Amazon Web Services (AWS): AWS is the most mature and widely adopted cloud platform. It offers a comprehensive set of services covering computing power, storage, databases, networking, and more. AWS has a broad customer base and provides extensive scalability, flexibility, and reliability. It is often a popular choice for startups, enterprises, and companies looking for a wide range of services and global infrastructure.

Microsoft Azure: Azure is Microsoft's cloud computing platform, providing a broad array of services similar to AWS and GCP. It integrates well with other Microsoft products and services, making it appealing to businesses that already use Microsoft technologies. Azure also offers strong support for hybrid cloud deployments, combining on-premises infrastructure with cloud services.

To determine the best option for your specific needs, consider factors such as:

Required services: Evaluate the services and features offered by each platform and determine which aligns best with your project's requirements.
Pricing: Compare the pricing structures and models of each platform, including the cost of storage, computing, data transfer, and additional services.
Scalability and flexibility: Assess the scalability options and flexibility provided by each platform to ensure they meet your growth potential and adaptability needs.
Support and documentation: Evaluate the quality and availability of support resources, documentation, and community forums for each platform.
Integration and compatibility: Consider your existing technology stack and determine how well each platform integrates with your current systems.
Compliance and security: Assess the compliance certifications, security features, and data protection capabilities offered by each platform to ensure they align with your regulatory requirements.
Ultimately, it is advisable to conduct a thorough evaluation and consider conducting a proof-of-concept or trial period with each platform to determine which one best suits your specific needs.
How to set up a development env to Rails app with Docker and PostgreSQL on WSL2
Tags: docker, rails, postgres, webdev
Published: 2023-07-08 01:32:13

For development, I don't guess configuring Dockerfile and docker-compose (just if you want, sure) is necessary. 

## Pre-reqs

This short tutorial was built using WSL2, integrated docker, ruby 3.2.2 and rails 7.0.6.

## Getting Started

We're going to basically create a new rails application, raise and connect the docker postgresql container with the app. 

I like creating my projects in `~/projects`
`$ mkdir ~/projects && cd projects`
`$ rails new myapp -d postgresql`

You don't need the postgresql installed, just the necessary packages to run it. If you have a problem with the pg gem, make sure the following packages are installed.   

on ubuntu
`$ sudo apt-get install libpq-dev`

on arch ` $ yay -S postgresql-libs` or just `$ sudo pacman -S postgresql-libs`

After this, you can raise the container with the postgres replacing the {} for the name that you want.

`$ docker run --name {container_name} -e POSTGRES_PASSWORD={password} -e POSTGRES_USER={username} -p 5432:5432 -v {path}:/var/lib/postgresql/data -d postgres:14.2-alpine`

This command will raise the container binding the 5432 port and setting the volume, you can change the postgres:14.2-alpine for another image. 

Now you have to set the /config/database.yml with the right params to connect in the postgres container.

Your file will be like this:
```
default: &default
  adapter: postgresql
  encoding: unicode
  pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
  host: localhost
  port: 5432
  password: {your_password}
  username: {your_username}

development:
  <<: *default
  database: {myapp_development_db}

test:
  <<: *default
  database: {myapp_test_db}

production:
  <<: *default
  database: {myapp_production_db}
  username: {your_prod_username}
  password: {your_prod_password}
```

I put the password and username in default, but the best is to have a user and password for the dev, test and prod. And put all the values on a .env file.

If all occur well you just have to run 
`$ rails s`
and you can start your app development.
Everyday Special Knowledge of IT
Published: 2023-07-08 01:05:32

`If there are errors or questions, just respond~`
### 20230708
- CPL: **-128** is an invalid signed char integer, and it is of a trap representation, so `SCHAR_MIN` in <limits.h> does not consider it.

### 20230709
- CPL Practice: In some implementations, `free()` will do nothing when the argument is `NULL` (normally `0`), so if we operate memory directly by `malloc()` and `free()`, something bad may be invisible for us. Thus, setting the pointer null after `free()` may not be a better behaviour for us to debug our projects.

### 20230801
- Care about the buffer type! Any short string excluding new-line characters won't be shown on the screen or other devices before the specific points. For example, `printf("-"); while(1) sleep(1);` won't make you see the output by default.
tiny TIL - same site vs same origin for cookies
Tags: cookies, todayilearned
Published: 2023-07-08 01:01:57

---
title: tiny TIL - same site vs same origin for cookies
published: false
description: small explanation of the difference between same site and same origin. Bonus warning of how same site strict may be exploited
tags: cookies,til
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6ghfimfhx4oj6a16cith.png
published_at: current
published: true
---


TIL the difference between `same site` and `same origin` 

Same site applies if two URLs share 2 things:
- The Top Level Domain (`.com`, `.io`, `.app`, ...) **plus** one level of the domain name (`example.com`, `tamagui.dev`, `datasette.io`, ...)
- The same schema (`http` or `https`)


Same origin will match the full URL, including the port.

So, if you want to share a cookie across different subdomains in your application, you should be able to use `SameSite=Strict`

Extra:
On [Portswigger Lab: SameSite Strict bypass via client-side redirect](https://portswigger.net/web-security/csrf/bypassing-samesite-restrictions/lab-samesite-strict-bypass-via-client-side-redirect) they describe a way to bypass this protection if you are using client side (javascript side) redirects, and your server exposes a vulnerable endpoint.

Their example uses a change email endpoint that accepts a get request.



Their example uses a change email endpoint that accepts a get request.
Sales tax registration and filing in the USA
Tags: salestax, ein, irs, tax
Published: 2023-07-08 00:06:44

In the United States, businesses are often required to register for sales tax purposes and file regular sales tax returns. Here is an overview of sales tax registration and filing in the USA:

## Sales Tax Registration:

## Nexus Determination
Nexus refers to a sufficient connection or presence in a state that triggers the obligation to [collect and remit](https://www.fzcoltd.com/us-sales-tax/) sales tax. Businesses need to determine if they have nexus in a particular state based on factors such as physical presence, economic activity, or click-through agreements.

## State Registration
Once nexus is established, businesses must register for sales tax with the appropriate state tax authority. Registration can typically be done online through the state's tax agency website. The process may involve providing [business information](https://www.fzcoltd.com/ein-number-for-non-us-business/), such as entity type, EIN, and contact details.

## Multiple State Registration
Businesses that have nexus in multiple states may need to register for sales tax in each state where they meet the nexus criteria.

## Sales Tax Filing:

## Collection and Reporting
Registered businesses are responsible for collecting sales tax from customers on taxable sales and reporting it to the state tax authority.

## Filing Frequency
Each state sets its own filing frequency requirements, such as monthly, quarterly, or annually. The frequency is based on factors like sales volume or liability. Some states may also offer options for businesses to file on a prepayment basis.

## Sales Tax Returns
Businesses need to file sales tax returns with the relevant state tax authority, reporting the sales made, taxable transactions, and the amount of sales tax collected during the reporting period.

## Payment and Remittance
Along with the sales tax return, businesses may be required to remit the collected sales tax to the state tax authority. Some states provide online portals for payment and remittance, while others accept checks or electronic funds transfer.

It's important to note that sales tax regulations and procedures can vary among states, including exemptions, tax rates, and thresholds. Therefore, businesses should consult the specific guidelines and requirements of each state where they have sales tax obligations. Utilizing sales tax software or consulting with tax professionals can help ensure accurate collection, reporting, and remittance of sales tax.
VAT registration and VAT filing service in EU
Tags: vat, tax, ecommerce, accountant
Published: 2023-07-07 23:48:52

In the European Union (EU), businesses that meet certain criteria are required to register for Value Added Tax (VAT) and file periodic VAT returns. VAT registration and filing services are available to assist businesses with these [obligations](https://www.fzcoltd.com/eu-vat-registration-and-filing/). 
Here's an overview of VAT registration and filing services in the EU.

VAT Registration:

## Eligibility
Businesses are typically required to register for VAT if they exceed the VAT registration threshold in the country where they have a taxable presence or if they make taxable supplies of goods or services in another EU member state.

## Registration Process
The specific process for VAT registration varies by country. Generally, businesses need to complete an application form and provide relevant information about their business, including legal entity details, contact information, and estimated turnover.

## Assistance
VAT registration services, including accountants, tax advisors, or specialized firms, can help businesses navigate the registration process, ensure compliance with local requirements, and submit the necessary documentation to the tax authorities.

## VAT Filing:

VAT Returns
VAT-registered businesses are typically required to file periodic VAT returns, providing details of their [taxable sales](https://www.fzcoltd.com/vat-service/), input VAT (VAT paid on purchases), and the resulting VAT liability or refund.

## Filing Deadlines
Each EU member state has its own specific deadlines for filing VAT returns, which can range from monthly to quarterly, or annually depending on the turnover and other factors. 

## Compliance Support
VAT filing services can assist businesses in calculating VAT liabilities, preparing VAT returns, reconciling transactions, and ensuring compliance with the applicable regulations.

## Electronic Filing
Many EU countries have implemented electronic filing systems, allowing businesses to submit VAT returns electronically through online portals or designated software. VAT filing services can help businesses navigate these electronic systems.

It's important to note that VAT regulations and procedures can vary among EU member states. Therefore, businesses should seek professional advice or consult with local tax authorities to ensure compliance with the specific VAT registration and filing requirements in each country where they have obligations.
9-minute Developer Relations Compensation & Culture Survey
Tags: devrel, devex, career, resources
Published: 2023-07-07 23:46:24

Hey there! 

For those of you who do DevRel as part or all of your job, or are connected with builders who are, we're running a 9-minute 2023 [Developer Relations Compensation & Culture survey](https://commonroomresearch.typeform.com/devrelsurvey-23). 

Last year with the help of developer and DevRel communities across the internet, our 2022 survey had 147 respondents who shared their experiences to empower everyone in DevRel to have more informed compensation conversations (see our 2022 findings [here](https://cdn.sanity.io/files/vt347z5x/production/960240d351d1d59a009fe927df770c5ee3da4312.pdf)).

This year, we've included additional questions about DevRel well-being and mental health to help each other understand more about what's working, and what isn't, in the DevRel profession, with the goal of creating a healthier and more equitable space for all.

We're looking forward to freely sharing back the findings with each of you in August. In the meantime, this survey (and its analysis) are made possible with special thanks to DevRel leaders like Tessa Kriesel, Mary Thengvall, PJ Hagerty, Matty Stratton, Ed Finkler, Ahmad Awais, Wesley Faulkner, Shawn Wang, the SlashData and DevRel communities, and builders like you. So thank you.

If you have any questions, comments, or compliments, I'm here for them!

With great affection,
Rebecca

Oh! If you'd like an easy way to share this with DevRel builders in your networks, here are some linkzz:

- Direct [link to the survey](https://commonroomresearch.typeform.com/devrelsurvey-23)
- [Twitter](https://twitter.com/CommonRoomHQ/status/1671580666599809029) post
- [LinkedIn](https://www.linkedin.com/posts/common-room-hq_2023-developer-relations-compensation-culture-activity-7077314175634485248-xA3n?utm_source=share&utm_medium=member_desktop) post
- [Reddit](https://www.reddit.com/r/devrel/comments/14kntw0/were_back_2023_developer_relations_compensation/) post
- [Hacker News](https://news.ycombinator.com/item?id=36542860) post
Being Productive with my summer 2023 ⛱️
Published: 2023-07-07 23:27:41

As the sun-drenched days of summer 2023 come to a close, I find myself reflecting on an incredible season filled with exciting opportunities, personal growth, and countless moments of joy. This summer will forever hold a special place in my heart as I embarked on a remarkable journey of exploration, creativity, and hard work.

One of the highlights of my summer was joining a prestigious Human-Computer Interaction (HCI) lab. The moment I stepped into the lab, I knew I had entered a world where innovation and collaboration thrive. Working alongside brilliant minds, I immersed myself in the fascinating realm of user experience design, delving into the intricacies of creating intuitive and seamless digital interfaces.

Throughout the summer, I had the privilege of utilizing my skills and knowledge to build captivating websites for clients. The opportunity to blend artistic flair with technical expertise was truly fulfilling. Each project presented unique challenges, pushing me to think critically and develop innovative solutions. Witnessing the satisfaction on customers' faces as their visions turned into reality was the ultimate reward for my hard work and dedication.

In the midst of this whirlwind of creativity, I discovered another passion that set my soul on fire: dance. In my spare time, I dedicated myself to mastering various dance styles and techniques. The rhythm became my language, and the stage became my canvas. With boundless energy and unwavering determination, I choreographed and filmed a mesmerizing dance video that encapsulated the joy and freedom I found in movement. Sharing my passion with the world through this performance was a dream come true.

Just when I thought my summer couldn't get any better, fate smiled upon me and granted me an internship opportunity. This stroke of luck propelled me further on my path of personal and professional development. It was a chance to learn from seasoned experts in my field, honing my skills and expanding my horizons. Every day brought new challenges and insights, solidifying my passion for the work I was fortunate enough to engage in.

Looking ahead, I am excited to carry the lessons learned and experiences gained into the next chapter of my journey. With newfound confidence, I will continue to pursue my passions, fueling my desire for growth and making a positive impact in the world.

Cheers to a summer filled with hard work, creativity, and a dash of luck! 🌟 Thank you, summer 2023, for the memories that will last a lifetime. And thank you, myself, for your unwavering commitment and perseverance. You've truly made this summer one for the books. Onward to new adventures! ✨
A big HelloWorld!
Tags: discuss, hello, programming, codenewbie
Published: 2023-07-07 22:57:01

Well, hello!

Or "Olá" as we say here in Brazil. I'm Enzo, a 18 year old student and little developer that likes so much to learn new tricks!

I am a Javascript developer in my free hours, the latest application that I developed were an Email system. I used these tools to build it:

- Javascript
- NodeJS
- ExpressJS
- Sequelize

Well, these are the tools that I used to work on it, and I really liked it!
It was so challenging to build it from zero knowledge about this type of system, but my little knowledge when creating an API was very good and valuable for me to build it.

You can check it [here](https://github.com/enz0rd/Email-Prototype) if you want.

What do you guys think? I'm good for a basic and new developer?
💡 TypeScript - Template Literal Types
Tags: typescript, braziliandevs, tutorial
Published: 2023-07-07 22:31:04

**Template Literal Types** é um bglh insano que expande as possibilidades do que já era possível com o `string literals + unions` do TS, dá uma olhada!

Ele tem a mesma sintaxe do template literal string do JavaScript.

```ts
type Tchau = "tchau!"

type Salve = `Oi ${Tchau}`
```

com ele é possivel usar sua necessidade + imaginação pra fazer diversas coisas bacanas que vão agregar muito no seu projeto/type.

um exemplo bacana seria padronizar que todas as propriedades extras que adicionarmos à um type, necessitem de ter o prefixo "data_" e o suffixo "_prop", assim conseguimos criar um objeto com um padrão que vai facilitar o consumo de leitura para sabermos quais as propriedades extras que foram enviadas.

falar é fácil, mas cadê o exemplo? vamos começar criando um type EventData, ele é a nossa base para nosso objeto evento de evento.

```ts
type EventData = {
  id: string
  name: string
  step: 'first_step' | 'second_step'
}
```

ele já possui propriedades definidas, que não podem ser alteradas, mas agora precisamos enviar mais alguns campos relacionados aos fields que ele tem em cada step, poderiamos extender o type EventData e adicionar os campos, mas ao invés disso, bora usar o Template Literal Types!

```ts
type FormFields = {
  name: string
  age: number
}

type EventDataExtraProps<T> = `field_${string & keyof T}`
// aqui vamos modificar um pouco o EventData
type EventData<T> = {
  id: string
  name: string
  step: 'first_step' | 'second_step'
} & Record<EventDataExtraProps<T>, any>

const event: EventData<FormFields> = {
  id: 'sextou?',
  name: 'thayto',
  step: 'first_step',
  field_name: 'full_name',
  field_age: 22
}
```

parece complexo, mas é bem simples, em projetos grandes / libs, com um único utilitário desses, conseguimos fazer mágica nos auto_completes e na padronização do envio de determinadas propriedades!

espero que tenham aprendido algo, se não aprendeu, pelo menos leu até o final, tmj!

https://www.typescriptlang.org/docs/handbook/2/template-literal-types.html

![imagem te chamando de burro se você ainda não conhece o template literal types](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/12fb3fct25e3hcwbhr9d.png)