Posts by Ramos • 612 points
146 posts
-
1
votes1
answer72
viewsA: Format a table’s value
You can try: function formatDate(date) { var d = new Date(date), day = '' + d.getDate(), month = '' + (d.getMonth() + 1), year = d.getFullYear(); if (month.length < 2) month = '0' + month; if…
javascriptanswered Ramos 612 -
1
votes1
answer114
viewsQ: How to insert a Tooltip into an input field
The user of my system, uses notebook and inputs, not of a form but of filter, do not appear 100% on the screen of it, but it is normal, is responsive to some extent the project I have already walked…
-
0
votes1
answer325
viewsQ: How to merge the two applications that are in a separate Gitlab?
I took a job where the staff has two versions. I’ll explain better: One company A transferred a client to another company B, both of IT. Company A passed a version and the backlogs to company B.…
-
0
votes2
answers1039
viewsA: Table in Postgrethe ID field is not auto incremented
@Murilo Portugal I’ve solved, I’ve done all of the things you suggested and other tests here, but the mistake is that in the field id in the column Default, as in the following image, the:…
-
0
votes2
answers1039
viewsQ: Table in Postgrethe ID field is not auto incremented
I’ll explain my problem: In my SQL system already came the error in INSERT, stating that the id field, which is autoincrement is stating that it is null: INSERT INTO cliente_sub_grupo…
-
1
votes1
answer37
viewsA: I removed all Wordpress Posts Tags, but continues showing on Google
After much research, the answer was to create a lock via bot. I created a Robots.txt file with: Disallow: /tag/ I sent this file to the root of the site. In Google Console I asked to reindexar the…
-
-2
votes1
answer37
viewsQ: I removed all Wordpress Posts Tags, but continues showing on Google
Doing SEO maintenance of my site, I deleted all TAGS registered by many are no longer valid: Wordpress link for editing tags: wp-admin/edit-tags.php?taxonomy=post_tag In Yoast SEO, in the…
-
0
votes1
answer143
viewsA: Advanced Custom Fields plugin works on Localhost but not on Hosting
Today, day 13/05/2019 released an update and back to work....
-
-1
votes1
answer143
viewsQ: Advanced Custom Fields plugin works on Localhost but not on Hosting
I made my theme on Localhost and used the Advanced Custom Fields plugin, everything ok. When I send the theme to the server, I install the Advanced Custom Fields plugin, the "Create Fields" button…
-
0
votes1
answer25
viewsA: Problem with link in Wordpress with page-nameDaPage
From the administrative area, there are the "Page Templates". When you put: /* Template name: Fale com um Consultor */ This name is displayed. Just set the template on the page.…
-
1
votes2
answers145
viewsQ: How to create a single page in Wordpress for a post-type?
I created a specific Post-type in functions.php: // Meus posts types function meus_posts_type() { // Testemunhos register_post_type('testemunhos', array( 'labels' => array( 'name' =>…
-
0
votes1
answer25
viewsQ: Problem with link in Wordpress with page-nameDaPage
I created post_types for the administrative area in Function.php: // Meus posts types function meus_posts_type() { // Testemunhos register_post_type('testemunhos', array( 'labels' => array(…
-
0
votes1
answer103
viewsQ: Wordpress - How to get thumbnail in an HTML tag with CSS and PHP?
I have a CSS that is like this: .cid-rlWhG48NmK { padding-top: 60px; padding-bottom: 0px; background-image: url("../../images/background4.jpg"); } And my HTML calls it this way: <section…
-
2
votes4
answers7933
viewsQ: How to upgrade Node.js from version 8 to 10 on Linux Ubuntu, via SSH?
I tried several tutorials on the internet before coming to post the doubt here on Stackoverflow and no tips worked. My repository is with version 8 of Node and the same, even removing, back. I need…
-
0
votes1
answer164
viewsQ: How to search a JSON registry with Angular 2x?
I have a JSON in this format: [ { "agencia": "2342342", "digito_agencia": "2342", "numero_conta": "234234", "digito_conta": "23423", "_id": "5bff1a63a617f53414766c27", "createdAt":…
-
0
votes0
answers28
viewsQ: How to access data contained in two Collections at the angular?
I have a JSON that has the data of the person and another Collection with "countsJogadors", how do I make my listing also show what is in "contasjogadors"? My JSON: { "nome": "Ramos Janones",…
-
0
votes1
answer834
viewsQ: How to Get Specific JSON Data with Angular 2x?
I have an answer that I turn into JSON this way: const resposta = JSON.stringify(response); console.log(resposta); Give me the feedback on console.log this way: [{"nome":"Ramos…
-
1
votes1
answer69
viewsQ: Check JSON Login Result with Angular 2x
My service to enter has: entrar(data: any): Observable<any> { console.log(data.email, data.senha); return this.http.get(`${this.baseUrl}/` + '?email=' + `${data.email}` + '&senha=' +…
-
0
votes0
answers129
viewsQ: Angular 2x application configuration error
I did some ***** in the advice that Visual Studio Code gives in some configuration file and what was working perfectly, now when running the ng serve gives the error to follow: ERROR in…
-
2
votes1
answer977
viewsQ: Reuse component in another component and get child data in Angular
I made a zip code search component this way: I created the component, its HTML is: <fieldset [disabled]="isLoading"> <div class="row col-md-6"> <div class="row"> <div…
-
0
votes1
answer3946
viewsQ: How to Make Ascents with the Sidenav Component of Angular Material Design
I made a menu using the Sidenav of Angular Material Design in this way: <mat-sidenav-container class="sidenav-container"> <mat-sidenav #drawer class="sidenav" fixedInViewport="true"…
-
0
votes1
answer263
viewsQ: Console error: Can’t bind to 'formGroup' Since it isn’t a known Property of 'form'
I’m using Angular 6 I’m creating a form: The form: <app-layout> <div class="card"> <div class="card-header"> Novo Post </div> <div class="card-body"> <form…
-
0
votes1
answer1437
viewsQ: NODE.JS - Error: Route.get() requires a callback Function but got a [Object Undefined]
In my roters I create: var express = require('express'); var router = express.Router(); var service = require('./../services/users'); router.get('/login', service.login); router.get('/register',…
-
0
votes1
answer115
views -
0
votes1
answer513
viewsQ: How to read an array string in Ionic/Angularjs or Javascript and move to directives?
I passed parameters to another TS with: console.log('Data', navParams.get('sessoes')); That shows me this result: {data: "2018-09-11", weight: "200", sessoes: "20", repeticoes: "2", notas: "teste"}…
-
0
votes1
answer357
viewsQ: How to send data to a modal in Ionic 3 from a Storage?
I have a list and a register. The Register is a modal and works well: The View of the Register: <ion-header> <ion-navbar color="dark"> <ion-title>Adiciona Sessão</ion-title>…
-
1
votes1
answer115
views -
0
votes1
answer125
viewsQ: How to get the result of a JSON where the result is HTML and in the Ionic View render the HTML?
I have a JSON where the contents of some fields are HTML, I would like to present the HTML in the Ionic View already rendered. This is the JSON: [{"data":"2018-09-05","categoria":"1","desafio":"…
-
1
votes1
answer87
viewsQ: SQL statement in Mysql with KURDATE(), does not display API result with PHP
In this SQL what is wrong? SELECT top.id_topatletas, top.idusuarios, top.posicao, top.workout, top.data_inicio, top.data_fim, user.idusuarios, user.nome FROM top_atletas top INNER JOIN usuarios user…
-
0
votes1
answer145
viewsQ: How to pass data from one screen to another with Native Localstorage and Ionic 3?
I would like to know how to pass data from one item to a form in another view, using Ionic 3’s Native Localstorage. I created a preview as shown below: import { Injectable } from '@angular/core';…
-
0
votes0
answers344
viewsQ: Error running Ionic Cordova run android --emulate
I don’t know what it is. I’ve given reward without right answer in a previous question. I’m almost leaving the project. What I’ve already done: I had to format the PC, until then working well. When…
-
0
votes1
answer1831
viewsQ: Android Target and the Android SDK not found or installed... but it is all installed, how to solve?
I had to format my PC, Windows, and installed everything again: Java, Git, Python, Android Studio, Node, Ionic 3, Cordova, everything. And it was running before normal. Now I’m with this error, not…
-
0
votes1
answer518
viewsQ: Cordova: Android SDK is not set up properly. Make sure that the Android SDK 'tools' and 'Platform-tools' Directories are in the PATH variable
How to fix this error while running command: Ionic Cordova Platform add android ? ionic cordova platform add android > cordova platform add android --save Using cordova-fetch for…
-
1
votes1
answer29
viewsQ: How to pass a Javascript value, to a PHP form, and submit as a POST method?
How to pass a Javascript value to a PHP form and submit as a POST method? I have a script: if (cc.isValid()) { $('#debug').text(cc.hash()); var verifica = cc.hash(); // $('#debug').text(verifica);…
-
3
votes1
answer39
viewsQ: PHP SDK Moip: What tag to use for Banks when in Online Debit?
In the following example, for debit with Banco Itaú, it works perfectly: $payment = $order->payments() ->setOnlineBankDebit('341', $expiration_date, 'http://localhost/federais/')…
-
1
votes3
answers179
viewsQ: How to remove character from a String and turn it into integer value with PHP?
I need to convert an entire string and removing the "R$ " from the value. $valor = $_SESSION['valor']; echo $valor; Return the string: R$ 25,00 I need you to take the R$ and return the entire…
-
0
votes1
answer10
viewsQ: Go to a given link according to Radio Box with PHP
I have the following code. How can I determine a URL by passing parameter, as per the option in a selected Radio Box? <!-- Button trigger modal --> <button type="button" class="btn…
-
0
votes1
answer97
viewsQ: Turn the results of an HTML form into HASH with Jquery and Javascript
I’m trying to see the credit card hash informed to test with Moip, but my Javascript does not show me on screen, returns me [Object, Object], I would like to see the full hash to pass to Moip. PS:…
-
1
votes1
answer261
viewsQ: How to get a JSON result in Ionic 3, but echo result in PHP
I need to get the result from my JSON which could be "Registration already exists." or "Register Successfully." In my register, I am doing this way: submit(){ var nome = this.data.nome; var celular…
-
0
votes1
answer593
viewsQ: How to Get Specific Return Data from a JSON with Ionic 3
I believe it’s simple, but coming out of Ionic 1 to 3 has changed so many things. I need to take all my Json returns from this routine (I actually need the user ID and log in localstorage):…
-
0
votes1
answer57
viewsQ: Hide a HTML5 and CSS button when on Smartphone
I made a responsive web application, which when you arrive at Checkout has two buttons: Print and Save. Only that the user (customer) on the smartphone clicks to print, even if there is no printer.…
-
1
votes1
answer357
viewsQ: Reduce fonts or break text in Bootstrap 4 or HTML5
The names of people in my HTML, when responsive, has a break, as shown in the following image: The name Sanderson, the "N" goes down? Follow the HTML snippet: </section> <section…
-
-1
votes1
answer208
viewsQ: Bad Request 400: When accessing API with Ionic 3
I’m getting on my console the Bad Request 400 response to my API call: My app.api.ts in the app folder is: export const MEAT_API = 'http://localhost:1337' And my main code is: submit(){ var link =…
-
3
votes2
answers983
viewsQ: Limit R$ value in field input with HTML5 and CSS3 with Javascript
I need to limit the value in R$ input field of a form. The form is like this: <div class="container"> <form> <div class="form-group"> <label for="dinheiro"><b>Desejo…
-
1
votes1
answer74
viewsQ: Upgrading from IONIC 1 to 3: How to log in to JSON?
I’m migrating from Ionic 1 to 3, and how many changes. I created my login API, with token: Here I put my authorization code to access the API. And here the result in JSON: ion-content padding…
-
0
votes1
answer376
viewsQ: CSS button Misaligned form input, but correct for other types of CSS call
I have a form with the code to follow: div class="container"> <!-- Formulário de Login --> <form action="validacao.php" target="_blank" method="post"> <fieldset>…
-
0
votes1
answer598
viewsA: Error compiling Ionic 3 with Cordova: Cordova node_modules Cordova-common src superspawn.js:169:23
I removed the Facebook plugin and it worked....
-
0
votes1
answer598
viewsQ: Error compiling Ionic 3 with Cordova: Cordova node_modules Cordova-common src superspawn.js:169:23
In Ionic 3 with Cordova when I give the command: Ionic Cordova run android --emulate Give me the following message: BUILD FAILED in 3s at ChildProcess.whenDone…
-
1
votes1
answer951
viewsA: Ionic 3 Error Compiling for Android: Error: Failed to transpile program
All it took was the command: Ionic doctor check And make the corrections.
-
0
votes1
answer951
viewsQ: Ionic 3 Error Compiling for Android: Error: Failed to transpile program
When I give the command: ionic cordova build android --debug It makes the mistake to follow, but in ionic serve normal wheel... what I’m doing wrong? Error: Failed to transpile program at new…