teleren/devto huggingface dataset:
YAConfigLib - Dynamic Configurations in Go: Introducing Postprocessing Hooks
Tags: go, webdev, config, devops
Published: 2023-08-14 15:40:14

---
title: YAConfigLib -  Dynamic Configurations in Go: Introducing Postprocessing Hooks
published: true
description: 
tags: go, webdev, config, devops
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2023-08-14 13:20 +0000
---

Hey Gophers! 🚀

Do you struggle with configuration files in different formats like JSON, YAML or TOML in your Go applications? If yes, then you appreciate the value of a robust configuration management library. 

Today we released a brand new feature in our configuration library.

We present: Postprocessing Hooks! 🌟

Imagine, you can not only read configurations in different formats, but now you can also define hooks that are triggered directly when a configuration change is made. Previously, you could also solve this via ChangeHooks, but these ran in their own Go routine.

The decisive advantage for tasks such as

* Changing paths based on new configurations.
* Building new structures after loading configurations.
* Integrating real-time responses to dynamic configurations into your application.


Why should you try the new feature of our configuration library?

* Flexibility: read and manage configurations in YAML, TOML and JSON.
* Reactivity: Real-time actions based on dynamic configuration changes.
* Powerful: Efficient handling without the overhead of additional routines.

We are convinced that after your first experience with Postprocessing Hooks, you will wonder how you ever got along without it!

Try it out, share your feedback and let's improve dynamic configurations in Go together!

Stay tuned for more exciting updates. Have a great time programming! 🎉



https://gitlab.schukai.com/oss/libraries/go/application/configuration
Python create venv
Published: 2023-08-14 15:24:16

---
title: Python create venv 
published: True
description: 
tags: 
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2023-08-02 15:54 +0000
---
 
sudo apt-get install python-virtualenv
 

virtualenv --python=/usr/bin/python3.4 venv
From HTML and CSS Enthusiast to Future Remote Software Engineer 🚀
Published: 2023-08-14 15:21:49

Hey there, Dev community! 👋

I'm a fresh coder who's taken the first steps into the coding world through HTML and CSS. Now, I'm setting my sights on becoming a remote software engineer.

I've had a blast crafting web pages, and I'm hungry to learn more. JavaScript is up next on my list, along with frameworks like React and Vue.js to supercharge my frontend skills.

But it's not just about code. I'm honing my communication and collaboration chops for remote work success.

If you've been down this road or share the remote dream, let's connect! Your insights could be the fuel to my coding journey 🔥

#CodingNewbie #RemoteCoderWannabe
How to be the best web designer
Published: 2023-08-14 15:13:15

1.Stay Updated: Keep up with the latest trends and technologies in web design and development.

2.Responsive Design: Ensure your designs are responsive and work well across various devices and screen sizes.

3.User-Centered: Design with the user in mind. User experience (UX) is crucial for a successful website.

4.Clean Code: Write clean, well-structured code that's easy to read and maintain.

5.Performance Optimization: Optimize your code and assets for faster loading times. Page speed matters.

6.Version Control: Use version control systems like Git to track changes and collaborate effectively.

7.Security Awareness: Implement security best practices to protect user data and prevent vulnerabilities.

8.Browser Compatibility: Test your designs across different browsers to ensure consistent functionality.

9.SEO Basics: Understand basic SEO principles to create web pages that are search engine friendly.

10.Accessibility: Design with accessibility in mind to ensure your site is usable by people with disabilities.

11.UI/UX Principles: Study user interface and experience principles for intuitive and engaging designs.
Responsive Images: Optimize images for the web, using appropriate formats and sizes.

12.Frameworks/Libraries: Familiarize yourself with popular frameworks and libraries to speed up development.

13.Debugging Skills: Develop strong debugging skills to identify and fix issues efficiently.

14.Continuous Learning: Technology evolves rapidly. Commit to lifelong learning to stay relevant and grow your skills.
Unable to fetch 5min candles chart for a custom historic time range
Tags: charts, pinescript, tradingviewapi
Published: 2023-08-14 15:03:47

Unable to fetch 5min candles chart for a custom historic time range
-------------------------------------------------------------------

As a software developer, you may encounter various challenges while working on different projects. One such challenge could be retrieving a 5-minute candles chart for a custom historic time range. This article will explore some possible reasons for this issue and provide potential solutions to overcome it.

### Possible Causes

There could be multiple reasons why you are unable to fetch a 5-minute candles chart for a custom historic time range. Let's take a look at a few of them:

1.  **Incorrect API Endpoint:** Double-check that you are using the correct API endpoint to fetch the chart data. Sometimes a simple typo in the URL can lead to unexpected results.
2.  **Unsupported Time Range:** Ensure that the API supports fetching 5-minute candles for the specific historic time range you are requesting. Some APIs may have limitations or only provide data for certain time intervals.
3.  **Authentication Issues:** If the API requires authentication, make sure you are providing the necessary credentials correctly. Incorrect or expired authentication tokens can prevent you from fetching the desired data.
4.  **Rate Limiting:** Check if the API has rate limits in place. Exceeding the rate limits can result in the API blocking further requests for a certain period. Make sure you are adhering to the API's rate limits.

### Potential Solutions

Now that we have identified some possible causes, let's explore a few potential solutions:

1.  **Review API Documentation:** Carefully read the API documentation to ensure you are using the correct endpoint, parameters, and time range format for fetching 5-minute candles.
2.  **Test with Sample Data:** Start by testing the API with a smaller time range or predefined data to verify if the issue is related to the specific time range you are requesting. This can help isolate the problem.
3.  **Check Error Responses:** Inspect the API's error responses for any helpful information. The API might provide specific error codes or messages that can give you a better understanding of the issue.
4.  **Reach Out to API Support:** If you have exhausted all troubleshooting options, don't hesitate to contact the API's support team. They can provide valuable insights or assist you in resolving the issue.

### Conclusion

Fetching a 5-minute candles chart for a custom historic time range can sometimes be challenging due to various factors such as incorrect API endpoints, unsupported time ranges, authentication issues, or rate limiting. By carefully reviewing the API documentation, testing with sample data, checking error responses, and seeking support when needed, you can overcome these obstacles and successfully retrieve the desired chart data.

### References

*   API Documentation of the specific API you are using
*   Online forums and communities related to the API
*   Support documentation or contact information provided by the API provider
Sliding Buttons JS
Published: 2023-08-14 14:40:49

## Sliding Buttons JS 🚀

- Mobile application feeling on your web application 💥

I’ve created an open source JS library which you can create buttons that user can interact by sliding 🤓

DEMO and Documentation ⤵️
https://sliding-buttons.vercel.app

———-


##Follow me on:
Github: https://github.com/inancakduvan/
Twitter: https://twitter.com/InancAkduvan
Building Real-Time Applications with Apache Kafka and Apache AGE
Tags: apacheage, postgres, postgressql
Published: 2023-08-14 14:38:42

**Introduction**
To build powerful real-time applications, Apache Kafka, a distributed streaming platform, and Apache AGE, a graph extension for PostgreSQL, can be combined. This post discusses how Apache Kafka and Apache AGE can be combined to process and analyze data in real-time.

**Understanding Apache Kafka**
Using Kafka to build a real-time application will be the first step. In order to stream data reliably, scalable, and fault-tolerantly, Kafka is used. Topics, producers, consumers, and brokers of Kafka will be discussed in this lesson.

**Introducing Apache AGE**
As a next step, we will introduce Apache AGE and its integration with PostgreSQL. Through Apache AGE, developers can store, query, and analyze graph data using SQL using PostgreSQL. We'll discuss the benefits of using Apache AGE for real-time applications, such as its ability to handle high volumes of streaming data and perform real-time graph analytics.

**Building Real-Time Data Pipelines with Apache Kafka**
We'll dive into the process of building real-time data pipelines using Apache Kafka. We'll discuss the steps involved in setting up Kafka, creating topics, and configuring producers and consumers. We'll explore different data integration patterns, such as publish-subscribe and event sourcing, and demonstrate how Kafka enables the seamless flow of data between systems.

**Integrating Apache AGE with Apache Kafka**
We'll showcase how Apache AGE can be integrated with Apache Kafka to enable real-time graph analytics. We'll discuss the process of consuming data from Kafka topics and storing it in Apache AGE for further analysis. We'll explore how Apache AGE's graph database capabilities can be leveraged to uncover insights and patterns in real-time streaming data.

**Real-Time Use Cases**
We'll explore real-world use cases where the combination of Apache Kafka and Apache AGE has been successfully applied. This could include scenarios such as real-time fraud detection, social network analysis, or recommendation systems. We'll discuss the challenges faced in these use cases and how the Kafka-Apache AGE integration helped overcome them.

**Conclusion**
Apache Kafka and Apache AGE provide a powerful combination for building real-time applications that require streaming data processing and graph analytics.
BORDERLESS JS Community Day 2023 - JavaScript Global Online Conference
Published: 2023-08-14 14:33:15

Welcome to the [**BORDERLESS JS Community Day** 2023](https://wearecommunity.io/events/borderless-js-community-day?utm_source=external_devto&utm_medium=announcement&utm_campaign=borderless-js-community-day2023), a global virtual two-day conference dedicated to JavaScript innovation and expertise.

🌐 Conducted by 10 tech JS communities and powered by EPAM and Community Day-Tech Conferences, this event aims to explore the latest trends, innovations, and best practices in the world of JavaScript.


📅 Date: **20 - 21 September**
📍 Location: **Online**
📚Language: **English**

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

⚡️**Our Headliners**:
✨ Egor Miasnikov | Solution Architect | Amazon. Topic: **"GenAI on AWS (options and Demo)"**
✨ Lex IT Beard | IT Blogger, DevRel/PM | Anywhere. Topic: **"How to develop your digital brand or IT Blogging in AI Era"**
✨Nina Torgunakova | Front end | Evil Martians. Topic: **"Nano Stores"**

**📅 Agenda Highlights:**
Attendees will have the opportunity to explore an array of topics, covering everything from **fundamental coding concepts** to **cutting-edge advancements**. The conference boasts an exciting lineup of sessions, including discussions on **low-code solutions,** the significance of project managers in successful execution, the transformational power of front-end technologies in business, and insights into the future of form handling. With talks focused on **AI-led coding**, revolutionary **web frameworks**, and even a session testing attendees' understanding of **tricky JS hacks**, this event promises to be a hub of valuable insights, networking opportunities, and collaborative growth within the **JavaScript community**. 

[REGISTER TO ATTEND](https://wearecommunity.io/events/borderless-js-community-day?utm_source=external_devto&utm_medium=announcement&utm_campaign=borderless-js-community-day2023)

Don't miss your chance to be a part of this forward-looking conference that's shaping the future of **JavaScript development.**
What are your goals for the week of August 14?
Tags: discuss, motivation
Published: 2023-08-14 14:14:48

## What are your goals for this week?


- What are you building? 
- What will be a good result by week's end?
- Are you attending any events this week? 
  * Any suggestions of events to attend?
- Did you meet your goals last week?


### Last Week's Goals


- [:white_check_mark:] Continue Job Search.
- [:white_check_mark:] Blogged about A CSS Battle.
- [:white_check_mark:] Code Challenges. Did daily CSS Challenges. Hit new daily streak record.
- [:white_check_mark:]Project work. Content updates. Updated robots.txt, Made htacceess for a 404 page.
- Events. 
  * [:x:]Attend [Virtual Coffee(VC)](https://dev.to/virtualcoffee) Thursday.
  * [:x:] Other VC events if I can.
  * [:white_check_mark:] Job Fair/ company info session later in week.
- [:x:] Build some LEGO sets. 
- [:white_check_mark:] Run a weekly Slack thread similar to this post. Gonna motivate the community.
- [:white_check_mark:] Rewatch Rebels before Ahsoka series starts at the end of August. Also read A New Dawn A Rebels related Novel.



### This Week's Goals

- Continue Job Search.
- Blog.
- Code Challenges. 
- Project work
- Events
  * Attend [Virtual Coffee(VC)](https://dev.to/virtualcoffee) Thursday.
  * Other VC events if I can.
- Run a weekly Slack thread similar to this post. Gonna motivate the community.
- Build some LEGO sets. 
- Rewatch Rebels before Ahsoka series starts at the end of August. Also read A New Dawn A rebels related Novel.

### Your Goals for the week


You've read my goals so I'll throw the questions back to you.


- What are you building? 
- What will be a good result by week's end?
- Are you attending any events this week? 
  * Any suggestions of events to attend?
- Did you meet your goals last week?


![a cartoon image of a piece of peppermint candy. It has legs and is smiling. it says. "you got this!" under it is the word encouragement. but the mint is spelled M i n t.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/220n3ffegm17r1pcxxgp.jpeg)

```html
-$JarvisScript git push
```
Build a personal project is a good thing
Tags: opensource, learning, showdev, sideprojects
Published: 2023-08-14 14:12:08

Hi everyone,
I'm Alessandro, the developer behind [Breves](https://breves.it/) a service for developers.You can find more details in this [post](https://dev.to/cereal84/brevesit-a-service-that-can-help-you-to-avoid-uninteresting-job-position-1ll3).

A while back, I pondered the idea of modernizing the existing signup/login process by implementing Single Sign-On (SSO) capabilities. This shift aimed to streamline the login procedure and enhance user experience.

The service is crafted using Python and [FastAPI](https://fastapi.tiangolo.com/), this led me to  SSO-supporting libraries. Given the developer-centric nature of the service, I set my sights on integrating GitHub SSO at the very least. 

After some searching, I stumbled upon [fastapi-sso](https://github.com/tomasvotava/fastapi-sso) This library proved to be elegantly straightforward, with well-crafted examples. Encouraged by its capabilities, I decided to retire the previous signup/login mechanism in favor of GitHub SSO. The transition was seamless, and everything appeared to be sailing smoothly.

Everything seems fine except....  Why didn't login via GitLab too?

Regrettably, fastapi-sso lacked GitLab support, and I was hesitant to switch libraries. But every challenge brings an opportunity. This marked the perfect juncture to contribute to an open-source project :).

The process of contributing turned out to be surprisingly straightforward, as showcased in the [PR](https://github.com/tomasvotava/fastapi-sso/pull/43).
During the process I've learn something very usefull by following the guide lines in "CONTRIBUTING.md" file which I used in my job too.

Embarking on personal projects has numerous advantages. Not only do they enable skill growth across various domains – from mastering new frameworks to becoming adept with different libraries – but they also open doors to contributing to previously unknown open-source ventures.

My recommendation? Build something you're passionate about. Moreover, allow yourself the freedom to dive into contributing to diverse projects.


Please let me know if you want other SSO providers in my service (or in fastapi-sso library), such as [BitBucket](https://bitbucket.org/) or others.

Best regards,
Alessandro
🌟 Discover the Unmatched Joy of Laravel’s Developer Community! 🚀
Tags: laravel, coding, webdev, programming
Published: 2023-08-14 14:09:39

What sets Laravel apart and makes it the happiest developer community?
It’s not just about code — it’s about the incredible camaraderie and unwavering support that make every developer’s journey a delightful adventure.

🤝 Collaborative Spirit: From newbie coders to seasoned experts, the Laravel family welcomes all with open arms. Sharing insights, brainstorming solutions, and celebrating each other’s wins — that’s what we’re all about!

💡 Innovation & Learning: The thrill of discovery never ends here. With cutting-edge techniques, regular meetups, and resourceful tutorials, we’re constantly pushing the boundaries of development expertise.

🎉 Positive Vibes: Positivity fuels our passion! Whether it’s in forums, conferences, or virtual hangouts, you’ll find a community that thrives on uplifting one another and creating a genuinely inclusive space.

🌐 Global Network: Our happiness knows no bounds — spanning across continents, cultures, and time zones. Connecting with fellow Laravel enthusiasts worldwide has never been more exciting.

Join us in the journey of innovation, growth, and unparalleled happiness. Let’s code, collaborate, and celebrate together with Laravel! 🎉👩‍💻👨‍💻

[![image-alt-text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9wz598skqs0t9gyadgps.jpg)](https://laravel.com/)
cmd.ExecuteNonQuery() - Vb - Could not find output table
Tags: cmdexecutenonquery, vb, outputtable
Published: 2023-08-14 14:05:06

cmd.ExecuteNonQuery() - Vb - Could not find output table

cmd.ExecuteNonQuery() - Vb - Could not find output table
========================================================

When it comes to software development, encountering errors is an inevitable part of the process. One common issue that developers often face is the "Could not find output table" error when using the `cmd.ExecuteNonQuery()` method in VB.

So, what exactly does this error mean? And how can we troubleshoot and resolve it? Let's dive into the details and find out!

The `cmd.ExecuteNonQuery()` method is commonly used in VB to execute SQL statements that do not return any data, such as INSERT, UPDATE, or DELETE queries. However, sometimes when executing these commands, you may encounter the dreaded "Could not find output table" error message.

This error typically occurs when the SQL statement being executed references a table that does not exist in the database. It could be due to a typo in the table name, a missing table, or even a permission issue.

To resolve this error, there are a few steps you can take:

1.  Double-check the table name: Ensure that the table name referenced in your SQL statement is spelled correctly and matches the actual table name in the database. Typos are a common cause of this error.
2.  Verify table existence: Make sure that the table you are trying to access actually exists in the database. If it doesn't, you'll need to create the table before executing the SQL statement.
3.  Check permissions: Ensure that the user executing the SQL statement has the necessary permissions to access the table. If the user lacks the required privileges, you may encounter this error.

By following these steps, you should be able to troubleshoot and resolve the "Could not find output table" error when using `cmd.ExecuteNonQuery()` in VB.

Remember, software development can be challenging, but with a little bit of humor and perseverance, you can overcome any obstacle. Happy coding!

References:
-----------

*   Link 1: [https://www.example.com](https://www.example.com)
*   Link 2: [https://www.example.com](https://www.example.com)
*   Link 3: [https://www.example.com](https://www.example.com)
Django Vue (Axios) Cors headers + CSFR tokens
Tags: python, django, vue
Published: 2023-08-14 17:25:23

---
title: Django Vue (Axios) Cors headers + CSFR tokens
published: true
date: 2023-08-14 13:44:05 UTC
tags: #python #django #vue
canonical_url: https://finloop.github.io/posts/django-vue-cors-headers/
---
Basic CORS and CSFR settings for Django Rest Framework (DRF) + Axios:

```python
# Settings.py:
...

CORS_ORIGIN_ALLOW_ALL = False
CORS_ALLOWED_ORIGINS = [
    "http://localhost:5173",
]

CSRF_TRUSTED_ORIGINS  = [
    "http://localhost:5173",
]

CSRF_COOKIE_SECURE = True
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SAMESITE = "None"
SESSION_COOKIE_SAMESITE = "None"

CORS_ALLOW_CREDENTIALS = True
CORS_ALLOW_HEADERS = [
    "accept",
    "authorization",
    "content-type",
    "user-agent",
    "x-csrftoken",
    "x-requested-with",
    "x-xsrf-token"]
...
```

In Vuejs:

```javascript
// axios config:
xsrfCookieName: 'csrftoken',
xsrfHeaderName: 'X-CSRFToken',
withCredentials: true,
```

Read what these do before using them. I'm not responsible for any security issues that may arise from using these settings.

Bugs I encountered:

```
Reason: expected ‘true’ in CORS header ‘Access-Control-Allow-Credentials
```

## References

- https://stackoverflow.com/questions/63576338/django-check-cookiess-samesite-attribute
- https://pypi.org/project/django-cors-headers/