Posts by Felipe Paz • 358 points
31 posts
-
0
votes1
answer188
viewsA: Desktop app, using Electron and nodejs
Tries <script src="./data-user.js"></script> <script type="text/javascript"> function sendData(){ dataUser(document.getElementById('nome_cad').value,…
-
0
votes1
answer255
viewsA: Search database data with Nodejs
Make a call ajax to your server Nodejs. The return of that call you populate your charts. How are you working in the pattern MCV, front and back should communicate by endpoints, i.e., ajax requests…
-
0
votes2
answers477
viewsA: Nodemon and Nodejs
You install the nodemon with npm install --save-dev nodemon or with yarn yarn add -D nodemon In your package.json, you let "scripts": { "dev": "nodemon teudiretorio/server.js" }, To rotate, just…
-
0
votes2
answers159
viewsA: nodejs installation on Ubuntu
The repository of NodeJS for Ubuntu is outdated. Remove the NodeJS sudo apt remove --purge nodejs* Then install via nvm curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh |…
-
0
votes2
answers181
viewsA: Mongoose error or nodejs
You created Schema but did not export that instance. Basically, yours schema needs to be "listened to" wherever he is called, for that, you need to exportar this instance. To do that export, if you…
-
-2
votes1
answer31
viewsQ: Hosting server exchange for websites
A colleague of mine wants to transfer his website to the server that hosts my websites. What I’d like to know is what I really need for this exchange to be made? The agency that owns his website,…
hostingasked Felipe Paz 358 -
0
votes1
answer48
viewsQ: Generate new Error and get this error in the controller catch
In my API made in Node, i make user creation from a service: exports.create = async(data) => { try { let verifica = await UsuarioModel.findByUsername(data.username); if(verifica) throw new…
-
0
votes1
answer70
viewsA: Good practices on a GET request (Laravel API)
Depends on your need. If you just want to get essential user data after login it would be a good practice to search at once in the database, thus avoiding unnecessary requests. Since you already…
-
1
votes1
answer69
viewsA: Jquery code is not executed
Exchange the document ready for document on. Try this: $(document).on("change", "#opcao", function() { alert($(this).val()); }) <script…
jqueryanswered Felipe Paz 358 -
6
votes2
answers164
viewsA: Search field with rounded edge
You can use the border-radius. .container { box-sizing: border-box; background: #0699CD; width: 100%; padding: 20px 10px; } .content { background: #33CB33; width: 100%; box-sizing: border-box;…
-
0
votes1
answer1178
viewsQ: Change Timezone javascript
I have an application hosted on Heroku. So, every date that is generated there in the api and returned to the front, always returns with a day delay. Already my front, is staying at Hostinger, so…
-
0
votes3
answers57
viewsQ: Map two arrays and delete item not found
I have an api on Node and I have the following situation: I am the master user and create a usuário A to any employee. That usuário A has the permissions Permissions user A…
-
0
votes1
answer257
viewsQ: Close a modal after completing the action in the quasar framework
I have this modal as a son Component: <template> <q-modal v-model="opened" :content-css="{width: '40%', minHeight: '300px', padding: '0 15px'}" no-esc-dismiss no-backdrop-dismiss>…
-
2
votes1
answer41
viewsA: Change properties of a single element that repeats over and over again on my page
There may be easier ways, but this way, if I understood correctly, I could do it this way: $(document).on("click", ".readmore", function(e) { let el = $(this);…
-
0
votes1
answer60
viewsA: How to get a file stored with nodejs and multer?
Solution. In my app.js, i inserted app.use('/dist', express.static(path.join(__dirname + '/dist')));
-
0
votes1
answer60
viewsQ: How to get a file stored with nodejs and multer?
In the API, in Nodejs, which I’m doing, the user sends the image to the API and, using multer, the image is stored. All the tutorials I saw for this situation, the Node is using a Preprocessor like…
-
0
votes1
answer406
viewsQ: Upload File Nodejs
I’m breaking my head here to try to upload images with Nodejs but it’s being "Freud". I am developing an api where you will have access from three domains. So the structure of my api is basically:…
-
2
votes1
answer1113
viewsQ: DOM manipulation with Vuejs and Jquery
I am using the pure materialize together with pure Vue to make my own admin template, that is, I managed the project by Vue init and put in index.html the links to the css and js of materialize. The…
-
1
votes0
answers43
viewsQ: Nosql and MYSQL - when to use?
The question may be a little generic but I don’t know how to be more specific. When to use a nosql database and when to use an sql? 90% of banks or more have relationships. clientes se relacionam…
-
1
votes0
answers114
viewsQ: Cross-orgin with Laravel and vuejs
In my dilemma to publish my application I am facing some problems. I am making the front separate from the back. The frontend is in vuejs and the backend in Laravel (being only an API) On the server…
-
0
votes1
answer565
viewsQ: Python and pymysql connection
I’m creating a login system and user records. I created a model to do the insertion and controller, validating the information and step for the model to save, however, my model is not working. Here…
-
1
votes1
answer356
viewsQ: Configure virtual host on Ubuntu
I’m trying to set up the virtual host on my Deepin OS and nothing I did works. Before you mark the question as duplicate, all the alternatives I saw here on the forum I tried and did not succeed, I…
-
0
votes0
answers46
viewsQ: Select record from each mysql category
How do I get the two records with the highest view of each category? I have 7 categories and would like to pick up the two items with higher views of each of these 7 categories.
-
0
votes0
answers16
viewsQ: Query via get with Laravel
How do I pass data via get from a form? When I do Submit, the url is meusite.com/pesquisar?termo=algumtermo&categoria=algumacategoria . How I pass these two parameters termo and categoria to the…
laravel-5.5asked Felipe Paz 358 -
0
votes0
answers19
viewsQ: Search a table or other with PHP
What I would like is this: I have two tables, being tabelaA and tabelaB. I want the term searched if not found in a table, to be consulted in the other table. I don’t know if there’s anything that…
-
1
votes1
answer641
viewsQ: Restricted pages according to user permission - vuejs / Standard
How to allow or prevent a user from accessing a particular page? Let’s say the user is not allowed to access the page finanças. Where do I inform on the route of vuejs the access permissions of this…
vue.jsasked Felipe Paz 358 -
0
votes1
answer1659
viewsQ: Make include css and js files with vuejs
I’m studying the implementation of Windows and vuejs and using as template the admin Lte. My question is: no index.html vuejs, I put all the base css and js files. But when the page requires a…
vue.jsasked Felipe Paz 358 -
0
votes1
answer156
viewsQ: Something setInterval style for PHP
Is there a function in PHP that schedules a certain routine? What I would like is to turn the day, in case, 00:00, a script, in php, was fired to perform a certain task. It would be more or less the…
-
-1
votes2
answers1354
viewsA: Change div size by hovering the mouse
You can do all this with css. Below is an example I made: <div class="container"> <div class="bloco"> <div class="botao"> <a href="">Saiba Mais</a> </div>…
-
1
votes1
answer451
viewsQ: Import js file in vuejs and Laravel template
I am creating a simple application and need to import some specific js and css files on a given page but how do you do that? In my template (Login.Vue) I tried <script>…
-
0
votes1
answer292
viewsQ: Refresh page conflicting between Windows and vuejs
I’m studying the integration between Windows and vuejs, however, when I configure the routes through the Vue-router, when doing a refresh on the page, the Windows does not find the page or so, I…