teleren/devto huggingface dataset:
Accidental post
Tags: doessomeoneevenread, accidentalpost
Published: 2022-05-12 16:30:56

Ah, I was just trying posting stuff from different mediums, so here's this article and turns out, there isn't a delete button in here 😆 #ForeverSufferings.

Btw, if you're here, thanks for checking out my profile since I'm sure you didn't get this in your recommendations and I don't know how to get rid of this post lol bye buddy
It's time to bring software and hardware together
Tags: software, discuss, programming, hardware
Published: 2022-05-12 16:19:41

I have a thought that keeps running through my head.

In the last decade the evolution of software has been exponential.
But I think we have reached the peak where our main interaction with technology is limited to touching a touch screen and consuming content (mostly videos).

It's time to take technology to other parts of life, to maximize every analog tool we still use.

Focus technology on solving real-life problems with real-life tools rather than thinking in a metaverse.

What do you think about this?
Real time data check notifications with MongoDB
Tags: productivity, tutorial, mongodb, database
Published: 2022-05-12 15:58:50

Sometimes error logs don't pick up serious logic problems in your apps and your database's integrity is compromised.

This week's Speed Run shows you how to quickly build a data integrity monitoring system to alert you whenever you have malformed or incorrect data in your MongoDB database.

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

"Check ups" were coined by Ryan Laughlin at RailsConf 2018. You can watch his entire presentation on how they helped him and his team at SplitWise to detect logic bugs in their code:

{% embed https://www.youtube.com/watch?v=gEAlhKaK2I4 %}

This same pattern will work with relational databases as well, like MySQL, Postgres and others.

We'll send ourselves a Slack message if impossible data is present in our database, so we can investigate and fix before more data causes downstream issues in our apps.
How to deploy apps from GitHub to Heroku
Tags: github, heroku, programming, webdev
Published: 2022-05-12 15:58:09

Some weeks ago, the [Heroku’s GitHub integration](https://devcenter.heroku.com/articles/github-integration#enabling-github-integration) was deactivated due to an issue where some tokens of private repositories in GitHub were compromised and attackers were potentially able to download and access source code of those repositories. More info regarding the issue in [a blog post from Heroku](https://blog.heroku.com/we-heard-your-feedback).

There are many posts, threads on Twitter and videos about alternatives to Heroku, however, for those who want to keep using it as platform provider with a similar behaviour as the official integration, there are some alternatives without put too much effort on it like using GitHub actions. 

## GitHub Action - Deploy to Heroku
[Deploy to Heroku](https://github.com/marketplace/actions/deploy-to-heroku)  is a GitHub action that allow to deploy to Heroku by using NodeJS commands under the hoods. The official documentation is pretty clear and complete, so to use this action (as any other action 😛) we just need to follow some basic steps.

In this case we are going to use [The Procfile | Heroku Dev Center](https://devcenter.heroku.com/articles/procfile) but there are also options to application using docker configurations.

* Make sure the folder named `.github/workflows/` exists.
* Create or modify the `YAML` file that contains the GitHub action we want to use to deploy.
* Add the `akhileshns/heroku-deploy@v3.12.12` to your job.

```yaml
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      .... other steps 

      - name: Deploy to stage
        uses: akhileshns/heroku-deploy@v3.12.12
        with:
          heroku_api_key: ${{secrets.HEROKU_API_KEY}}
          heroku_app_name: ${{secrets.HEROKU_APP}}
          heroku_email: ${{secrets.HEROKU_EMAIL}}
```
* Set the environment variables in the repository using the action. Go to **Settings -> Security -> Secrets -> Actions**.

![Add secrets to GitHub](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/47xijhouyiprv8w27ovm.png)

* Execute the job and check that it is able to finish the deployment successfully.

![Job execution success](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7yjlj4fgoq3f9bujadn9.png)

I have tried other options to make a deployment to Heroku from GitHub like using the Heroku CLI commands directly but in terms of simplicity and easiness I believe this is one of the easiest way to get close to how it was working before with the official integration.

If you like this post you can find more in https://jeisson.dev/blog/ and follow me in twitter @jeissonflorez29 👋
Our new homepage is online
Tags: opensource, microservices, news, luos
Published: 2022-05-12 15:45:50

After a few days of design, reflection and development, we are happy to share with you our new homepage! 
⏩ https://www.luos.io/

Designed around clearer and more essential information about Luos, you will now be able to discover more easily our open source project, our eco-system and our community.

Feel free to send us your comments on this new presentation, we are always improving our platforms.

Our new homepage was made with Docusaurus
Build Your Own Random Quote Machine With ReactHooks
Tags: javascript, react, webdev, beginners
Published: 2022-05-12 15:45:35

Alternatively, you can fork this random quotes machine hosted on GitHub, and then the job's done.


## Deployed: 🤯
https://dazzling-souffle-ae8422.netlify.app/


## Version Control + Documentation 🤐
https://github.com/JavascriptDon/ReactJS-Quote-Machine


## License: 📝

This project is under the MIT License (MIT). See the LICENSE for more information.



## Contributions:
Contributions are always welcome...

🔹 Fork the repository
🔹 Improve current program by
🔹 improving functionality
🔹 adding a new feature
🔹 bug fixes
🔹 Push your work and Create a Pull Request
#Python 🐍 – Webserver App to receive binay content and save this as a file locally
Tags: englishpost, flask, python
Published: 2022-05-12 21:57:58

---
title: #Python 🐍 – Webserver App to receive binay content and save this as a file locally
published: true
date: 2022-05-12 15:34:48 UTC
tags: EnglishPost,EnglishPost,Flask,Python
canonical_url: 
---

Hi !

The title of the post is enough to describe the next piece of code:

#### Webserver App to receive binay content and save this as a file locally

Here it is.

{% gist https://gist.github.com/elbruno/286168cfdda38f5f07a6e4feec5edbc5 %}

And, while we perform some posts to the http endpoint, we can start to see the local files in the same folder of the python file.

![save files locally](https://brunocapuano.files.wordpress.com/2022/05/save-files-locally.jpg?w=893)

Happy coding!

Greetings

El Bruno

More posts in my blog [ElBruno.com](https://www.elbruno.com).

* * *
My first live coding interview experience
Tags: programming
Published: 2022-05-12 15:23:20

So, today I had my coding interview at 9 AM for coding bootcamp fullstack NodeJs. The test was pretty simple, make a function to return the biggest value in given array. So, I used PHP to solve it easily. Unfortunately, my compiler didn't run my code because I didn't expect it to happen. Three minutes had been wasted, luckily, the interviewer suggested me to use online compiler and it worked! The function returned the expected result. But still, I felt bad because my compiler didn't run and wasted so much time. Well, at least the interviewer knows my solution works. What do you think? Do any of you have similar experience?
How I conquered my phone addiction
Tags: productivity, news, startup
Published: 2022-05-12 12:33:13

👋 Hey DEV community, I'm Ondrej. This is my story, how I turned my addiction into a business solution. ⬇️

I was always someone that had full control over his life, privately and professionally. But the more time I spent on my phone, the more I lost control over my life. No conversation without me checking my phone. The funny and upbeat Ondrej in private life? Gone. The ambitious and focused Ondrej in work life? Gone.

I reached my lowest when my boss approached me one day after a meeting. She told me to never turn on Tinder during meetings again. 😅 The scary thing was that I wasn't even aware of having used it. 🙈 This was the moment when I knew I needed to change my life...

I was trying every possibility out there : disabled notifications, turned my phone black and white, and even deleted all social media apps. Each brought a short-term relief, but sooner than later my brain found a workaround. And there I was again, back at the mindless scrolling game. 🤯

There was one point where I wanted to give up. 😓

Luckily, a friend recommended me the book Indistractable and I started exploring how my brain 🧠 was unconsciously programmed to reach for the phone every time I felt the slightest discomfort.

Once I understood the psychological part behind my addiction, I started to deep-dive into the topic and read many books and papers. With a lot of effort and patience, I finally managed to get back the control. Not only over my phone, but also my life. 💪🏼

During this time, I found out that a lot of people were suffering from excessive screen time. I wasn't the only one. And all of a sudden, there it was! 💡 The idea of helping other people overcome their (phone) addiction. Together with my co-founder Killian we decided to build the right solution to it:

Meet [Zario](https://www.producthunt.com/posts/zario-digital-wellbeing) - our first MVP of the solution that we've just launched on [ProductHunt](https://www.producthunt.com/posts/zario-digital-wellbeing).

It changed my life, will it change yours? 😉

And now it's your turn. Download the app. Try it out. Share your personal story with unwanted smartphone habits, your thoughts on the app. We'd love to hear from you!
What resources would you recommend to anyone looking to become a better software engineer?
Published: 2022-05-12 15:05:11

_This is an anonymous post sent in by a member who does not want their name disclosed. Please be thoughtful with your responses, as these are usually tough posts to write. Email sloan@dev.to if you'd like to leave an anonymous comment or if you want to ask your own anonymous question._

***

I feel like I've become a little stagnant in my growth as a developer. Hitting a plateau is never fun, and I really need some more options to go to whenever I want to learn a new skill. Do you know of any good sites or places to go so I can become a better developer?
Created AnonPasteBin Using appwrite's Anonymous Login functionality
Tags: appwritehack, svelte, javascript, webdev
Published: 2022-05-12 15:00:25

### Overview of My Submission
I came to know about appwrite on March 11th so had literally 1 day to submit the project...... but it turns out it's a dead simple setup for any developer and I've to say it's an amazing dev experience.

So I made this Anonymous Pastebin Project AKA "AnonPaste"  to test out the anonymous login functionality provided by `appwrite` and how it works behind the scenes.

The project is dead simple, it does following:

* As soon as you are on the create paste page you are automatically logged in using anonymous login.
* When you create a paste after providing `title` and `text` it saves and redirects the user to the `View Paste Page`.
* View Paste Page extracts the `ID` of the document AKA paste from the route and uses it to load the document AKA paste and show it to the user.


### Submission Category: 

* Web2 Wizards


### Link to Code

{% embed https://github.com/sharadcodes/appwrite-pastebin-devto-hackathon %}


### Additional Resources / Info

Video Demo:

{% embed https://youtu.be/9kno7tn_al4 %}

Screenshots:

![Home](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t4384xtz96kkj9khelux.png)

![Create Paste Page](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8hs6l1hbdduiclvddv1s.png)


![View Paste Page](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ey0rui2nggiydgonmq3o.png)
Introducing DUMB a blogging web app 🌳
Tags: appwritehack
Published: 2022-05-12 14:55:07

## Overview of My Submission
[Note]: # (Share what you built, how you built it, and the inspiration behind the idea! Please make sure the project links to the appropriate GitHub repository, and includes the [Apache-2 permissive license](https://www.apache.org/licenses/LICENSE-2.0)  and README.)

### My Journey 👀
So on April 13 I decided to build an application using Appwrite. My goal was to learn Appwrite. So I decided to clone https://dev.to and called in DUMB.to, coz why not ? 😹

And yeah I completed my applications, Its not like dev.to, but I took the idea of sharing posts. I created a blogging web app with some cool features.

- login
- register
- create post
- view post
- delete post
- search post
- like post
- comment on post
- edit profile
- notify whenever there is an even (like/comment)

I used Appwrite and Next JS to build this. It was tough.

![Its hard](https://media.giphy.com/media/3o7WIpD2wiA4qNyqMU/giphy.gif)

Using Appwrite was shooting your foot with gun, Its hard. I tried to use Appwrite functions, but the docs didn't show that much. I spent days figuring out how to make `index` work. So many things didn't work as expected 🚶‍♂️.

But I really enjoyed using Appwrite (I guess). I really loved how it handles user authentication, how they provide permission. And how easy is to setup etc. Appwrite is in its early stage. I'm looking forward it to grow big 🙂

### Submission Category: 
Web2 Wizards


### Link to Code
{% embed https://github.com/octoi/dumb.to %}


### Additional Resources / Info

- [Hello Appwrite x Dev Hackathon 👋]
(https://dev.to/fadhilsaheer/hello-appwrite-x-dev-hackathon-18jo)
- [Github code](https://github.com/octoi/dumb.to)
- [Appwrite](https://appwrite.io)
- Screenshots

![Feed](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/czab5sq0te2pdqlbwxtq.png)
![New post](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4mvy5j3n3swdhftn3pju.png)
![Post](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kmkvwen7yn3fu8c7x6ft.png)
![Comments](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rv69bi7mpg7l37nmhdst.png)
![Notifications](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g5bhk1tryx89s9j31wnu.png)
![Settings](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bue11nde5ppndpf9pviy.png)
Data Structures and Algorithms - Doubly Linked List
Published: 2022-05-12 14:47:50

I believe this will be very brief as a doubly linked list is basically the same thing as a singly linked list with the exception that each node will not only have next pointer but a previous pointer as well.  In that manner a doubly linked list may traverse bidirectionally as well as start at either the tail or the head.  So for the pop() method you could just start from the tail and then traverse one down and set it's next value to null.  So much more efficient than having to traverse it all the way up.  This does add a little complexity however when adding / removing a node since we have to account for the dual connecting nodes.  And by default a DLL uses more memory than a SLL however it does have more flexibility as you can see here.  So which one is right to use?  I guess that would depend on each individual situation and if memory is something to be accounted for, which it should, then in that case the SLL would probably be the way to go.  


I was very curious about memory allocation and a couple of other small nuances and stumbled across this page: [DLL vs SLL ](https://www.educba.com/doubly-linked-list-vs-singly-linked-list/).  According to them the memory difference is 4bytes (SLL) vs 8bytes(DLL) so what I gather there is that other pointer literally doubles the memory allocation.  Good to know and there are some other cool comparisons if you'd like to check them out.  

So as per this "series" here is a link to my github repo where I created the Doubly Linked List class.  [Doubly Linked List](https://raw.githubusercontent.com/bradisrad83/javascript-data-strucutres/main/Data%20Structures/DoublyLinkedList.js).  I'm sure there are many other ways of implementing these methods and there are probably some that I have left off so feel free to comment on it.  Again sorry for the short content but as you can see the Doubly Linked List is extremely similar to a Singly Linked List so this is all I have.
Flutter 3.0 - Better web-app lifecycles
Tags: flutter, dart, news
Published: 2022-05-12 14:33:06

It finally happened, version 3.0 of Flutter is here!!

One of the most exiting things for me is, that we can now better control web-app lifecycles. This post will give an overview of this new feature. If you want to see a more general changelog, check out [this](https://medium.com/flutter/whats-new-in-flutter-3-8c74a5bc32d0) post, or [this](https://dev.to/frezyx/flutter-release-300-whats-new--4c3a) other one by [@frezyx](https://dev.to/frezyx)

We can also customize how a Flutter app is initialized on the web using the _flutter.loader JavaScript API. This API can be used to display a loading indicator, prevent the app from loading based on a condition, or wait until the user presses a button before showing the app.

This was a big missing piece for building web apps with Flutter. At least for me.

We can now:

* **Add a splash screen**
* **Add a loading indicator, while loading resources.**
* **Add a plain HTML interactive landing page displayed before the Flutter app.**

### The initialization process now looks like this:

* **Loading the entrypoint script**
  * Loads the main.dart.js script and initializes the service worker.
* **Initializing the Flutter engine**
  * Starts Flutter’s web engine by downloading required resources.
* **Running the app**
  * Prepares the DOM for your Flutter app and runs it.

Let's see an example, which adds a loading indicator:

```html
<html>
   <head>
      <!-- ... -->
      <script src="flutter.js" defer></script>
   </head>
   <body>
      <div id="loading"></div>
      <script>
         window.addEventListener('load', function(ev) {
           var loading = document.querySelector('#loading');
           loading.textContent = "Loading entrypoint...";
           _flutter.loader.loadEntrypoint({
             serviceWorker: {
               serviceWorkerVersion: serviceWorkerVersion,
             }
           }).then(function(engineInitializer) {
             loading.textContent = "Initializing engine...";
             return engineInitializer.initializeEngine();
           }).then(function(appRunner) {
             loading.textContent = "Running app...";
             return appRunner.runApp();
           });
         });
      </script>
   </body>
</html
```

This post is just an overview on the new lifecycle for web apps, for an in-depth guide, check out [Customizing web app initialization
](https://docs.flutter.dev/development/platform-integration/web/initialization)
Purposeful Organization
Tags: organization, programming, productivity, career
Published: 2022-05-12 14:23:03

I recently published a post on Hackernoon about how to be more organized as a developer, and how that organization can help boost your career.

**TLDR**
Here's the point. When you're writing software, you follow basic principles like: "A class should have a single purpose" or "a function should have a single purpose". Do you notice anything similar in those two statements? In order to write clean, testable code we need to ensure it has a single purpose. Why not follow that mentality for everything else that you do? Everything in your development life can be grouped by singular, purpose-driven folders.
Your email, notes, bookmarks, and files can all be organized in a way that is purposeful and easy to manage. This alleviates stress and anxiety around the simpler tasks in your day. 

Read more on Hackernoon: [https://hackernoon.com/4-tips-that-will-help-you-become-more-organized-as-a-developer](https://hackernoon.com/4-tips-that-will-help-you-become-more-organized-as-a-developer)
VS Code: It's taking a while to configure your breakpoints"
Tags: productivity, vscode
Published: 2022-05-12 14:12:59


I love using VS Code to run and debug local scripts. However, I had noticed that starting up the task in debug mode sometimes took a really long time. 

I also got the warning pictured here with the text, "_It's taking a while to configure your breakpoints. You can speed this up by updating the 'outFiles' in your launch.json._"

![VS Code Warning](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mja7wq6rj9o878jxurg1.png)

This is likely because, when working in a mono repo, there are a lot of files that the task runner tries to load into the debugger so that it can configure your breakpoints.

## Javascript Task Configuration

This was the task configuration from my `launch.json` file. This task just ran a Javascript file, meaning for debugging, I did not require any source maps.

```
 {
    "type": "node",
    "request": "launch",
    "name": "Generate Cypress Config",
    "runtimeExecutable": "npm",
    "cwd": "${workspaceRoot}/grid-packages/ag-grid-docs/documentation",
    "runtimeArgs": [
        "run-script",
        "generate-cypress-config"
    ],
    "port": 9229,
    "skipFiles": [
        "<node_internals>/**"
    ],           
    "resolveSourceMapLocations": [
        "${workspaceFolder}/**",
        "!**/node_modules/**"
    ]
}
```

Simply setting `sourceMaps` to `false` caused the task to startup pretty much immediately saving me a lot of time!

```
"sourceMaps": false, 
```

## Typescript Task

However, if you are running a Typescript task you will need source maps loaded if you want to debug it. This is when we need to follow the instructions of the warning and set the `outfiles` config property. 

I set this to the folder containing all the files that would be included in the given task run. Even if this still included some extra files, restricting to a small subset and ignoring node_modules gave a huge boost in startup speed.

```
"outFiles": [
    "${workspaceFolder}/grid-packages/ag-grid-docs/**/*.js",
    "!**/node_modules/**"
],
```
You should match the `.js` files and not the sourcemap files directly. 

## Conclusion

Don't ignore warnings when they are giving you a hint that could improve your productivity!

You can read how VS Code does [source map discovery](https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_source-map-discovery) from their documentation for a more complete picture.
Frustra¿what? en el sector Tech
Published: 2022-05-12 13:45:29

Mi memoria es un almacen de datos que he ido recopilando con el paso del tiempo y cada zona tiene asignada un nombre específico. Tenemos la zona emocional, la creativa, la de las ideas, etc, y he tenido que crear una especial a la que le he llamado Tech, la cual está conectada a las demás, porque sino, no tendría fuerza suficiente como para existir. 

En esta zona encontraréis de todo lo que mi visión ha podido captar hasta ahora en modo resumen: tarjetas perforadas, discos floppy, ordenadores Intel i386/486, servidores, portátiles, por el lado más hardwariano y Windows 95, Turbo C++, Visual Basic 6, Linux, PHP, Active Directory, HTML, JavaScript, React, por el lado más softwariano. Tampoco nos olvidemos de las skill no tan técnicas, Discord, Slack, Notion, Agile, etc, que forman parte de mi día a día.

Todo esto es aprendizaje constante, pero cuando entras en este sector que va a 3000 por hora, nadie nos advirtió de lo que sería lidiar con la frustración, el síndrome del impostor y la ansiedad.

¿Cuántos de vosotros os habéis sentido de que no valéis nada? ¿De qué hagáis lo que hagáis nunca es suficiente? ¿De compararte inevitablemente con alguien y pensar de que por qué a esa persona le sale y a ti no? ¿De querer tirar la toalla y dejar de lado algo que tanto te motiva y te gusta?

No tengo una respuesta exacta para esto, pero si os puedo decir que todos nos hemos sentido y nos sentimos así en algún momento de nuestra vida tech, y es que a veces se hace duro lidiar con x situaciones que se nos presentan delante, pero es en ese momento en el que hay que aceptar todo lo que nos está pasando y tratar de lidiar con ello lo mejor posible. Miedo, inseguridad, cambios,