Posts by Smith • 204 points
13 posts
-
0
votes0
answers9
viewsQ: Why do I need to locally import Ionic components into Vue if they work without import?
Today I started a project in Ionic and Vue 3. I have no previous experience, so I followed the documentation and some tutorials. Overall, even the project launcher does this local import, so I…
-
1
votes2
answers260
viewsA: Algorithm that creates a Python queue
This question has become a little difficult to understand, but I’ll try to put it in context. I hope it helps. Regarding the queue, I will use a literal, with people. I will take as something basic…
-
1
votes0
answers30
viewsQ: How do I place a Node application on Heroku that runs full-time and is not an api?
Objective: to run Puppeteer on Heroku for at least 8 hours a day, without interruptions. I have a simple program on Puppeteer, it basically operates some accounts on websites and that’s it. That’s…
-
2
votes1
answer269
viewsQ: how to use Vue.js interpolation in a Jango template?
Django uses a template syntax tool, called jinja2, which allows interpolation in the html document using double keys. Unfortunately, Vue.js uses interpolation in the same way. <p id="exemplo">…
-
0
votes1
answer204
viewsA: Why are arrays inside an object Undefined in the request of the api using Xios?
Basically, what occurred was an error in passing the data to the state of the React: constructor() { super(); this.state = { data: '' }; } The fact that the data object was instantiated as a string…
-
2
votes1
answer204
viewsQ: Why are arrays inside an object Undefined in the request of the api using Xios?
I created an api that sends this information: { title: 'algum título', content: ['vários parágrafos'] } The method that receives the data is as follows: async componentDidMount() { let response =…
-
0
votes2
answers66
viewsQ: Promise executed out of order, how to resolve?
I’m using the setTimeout function in the form of Promise, following the example of the Mozilla documentation. It turns out that the callback function is running before the end of the counter,…
-
0
votes1
answer197
viewsQ: how to make a password generator without using multiple loops?
As you can see the program below "generates" several strings of unique characters. The intention here is not to create a specific algorithm for this, it is just an example. The case study is about…
-
1
votes1
answer112
viewsQ: Why do lists (arrays) behave differently than common variables in Python?
Two examples that I think defines my question well, the first is the function: a = [1, 2, 3, 4, 5] def soma(l_item): l_item[0] += 10 soma(a) print(a) >>> [11, 2, 3, 4, 5] It is changed by…
-
0
votes1
answer91
viewsQ: How to get real-time function values in javascript?
Hello, I am almost completely Noob in Javascript. I did some projects in Django and decided to expand some knowledge. One problem I always had was to call functions and get their values in real…
-
0
votes1
answer1188
views -
-4
votes1
answer58
viewsQ: How to create a website with the server pc using only Python?
summary explanation think of the site as an app. I need to create a mobile app that accesses functions on the pc via commands. when it comes to handling the commands and the function call I even…
-
0
votes1
answer21
viewsQ: How do I pass data between apps on the same network?
I plan to make a custom application to help in the automation of some jobs on the computer, but it needs to run the commands on the mobile. The application part itself in no problem at all, but I…