Posts by Herick • 591 points
48 posts
-
1
votes0
answers30
views -
0
votes1
answer41
views -
0
votes2
answers28
viewsA: How to resize this CSS property?
Makes everything Dynamic. Removes height and width and controls with padding. #msg { margin:15px; padding: 5px 15px; color: #1b196df2; box-shadow: 5px 5px 10px black; }…
-
0
votes1
answer180
viewsQ: Browse map array with tsx
I need to traverse an array within another array with array map, in the first loop I will show the categories and in the second I will show the products, I am able to go through, but I cannot show…
-
0
votes2
answers194
viewsQ: Feedback a observable Boolean method
I have a method that should be returned a boleano according to the service response. I am unable to return true or false outside the observable. Any hints? checkPermission(route): boolean { let…
-
3
votes1
answer50
viewsQ: Enter sudo password after running Spawn command
I’m trying to make a script on Node.js to update my computer. I’m using child_process.spawn. When typing sudo apt update, it keeps waiting for the password. I have tried to inform with stdin.write,…
-
1
votes1
answer677
viewsQ: How to run python on linux Mint
I made a program in python and I would like to start it next to the system, but I don’t know how. I tried cron @reboot, but I was unsuccessful. I’m not sure how ~/. bashrc works did so. nano…
-
0
votes1
answer520
viewsQ: Change formBuilder array value
I’m looking for a solution to be able to change the value of the array in formbuilder. My code is only changing the "visual" and not what should actually be changed. follows codes. Online:…
-
0
votes0
answers107
viewsQ: formArrayName (fb.array) - html getting formControlName (value) wrong by deleting Dice from array
I am trying to remove array from Formbuilder, but by removing the array formControl values inside the input are getting wrong. product logic I made an array with three levels being { "fileimg": "",…
-
1
votes0
answers50
viewsQ: formArrayName
I am not being able to reference formArrayName="complements" that is inside formArrayName="items" I get an error on the console ERROR Error: "Cannot find control with path: 'items ->…
-
0
votes1
answer532
viewsQ: Run program on linux in an easier way (generated by Electron)
build with this command ng build --Prod && Electron-packager . gitrun --Platform=linux --Arch=x64 --icon=Assets/icons/logo.png To run the file I have to enter the project folder to open the…
-
0
votes1
answer234
viewsQ: take data in the method post
I’m sending an angular object, but I’m not getting the data on the express Node method sent with angular. this.appService.getcheckout(this.post()).subscribe(checkout => { this.log = this.log+…
-
0
votes2
answers105
viewsQ: Problems with return api in Laravel
I’m riding the return of father and daughter categories through a foreach, but the return is coming in the front-end as a object and not a array and what should I do in Laravel to the front-end make…
-
0
votes1
answer46
viewsQ: Administrative layout problem when logging in (When going through ngIf jquery crashes)
I am having problems with administrative layout + login. Both Dashboard and login are at the same application level. When the user is redirected to the login it opens the screen containing 3…
-
-1
votes1
answer370
viewsQ: Route without token protection asking for token
I am trying to register a new user who is not on the route protected by middleware token jwt, but am getting the Return. { "error": "The token could not be parsed from the request" } Follows…
-
19
votes6
answers50339
viewsQ: Indent code in Visual Studio Code
How to create a shortcut to make spaces equal between assignments? Ex: $nome = "Maria Ferreira"; $telefone = "99645876"; To $nome = "Maria Ferreira"; $telefone = "99645876";…
visual-studio-codeasked Herick 591 -
0
votes1
answer54
viewsQ: manipulating an array to mount the grid
I have an array in php and I need to group the values to be able to place them in a table>phtml Segue jsonArray You’ll always have these five types of transport. I couldn’t do much to leave here…
-
0
votes0
answers32
viewsQ: Return a query by taking data from three tables
I need the result of three tables in a query to generate a google chart. table 1: // This will be the One column SELECT SUBSTRING(dt_vencimento,1,7) as anomes, SUM(vl_valor) as valor_total FROM…
-
0
votes1
answer51
viewsQ: How to count the columns of a <td> showing the tatal at the end
I’m making a list of calls and I need to count how many absences and justifications each student has, but I’m not getting it. Someone could shed a light. I’m lost in that part. <!-- PRECISO SOMAR…
-
0
votes2
answers647
viewsQ: Catch only days of the month by removing Saturday and Sunday with JAVASCRIPT/TYPESCRIPT
How can I add only the days of the month into an array by removing Saturday and Sunday? user will inform the month and the year and with this month I pick up the days. ex: March 2018 1 2 5 6 7 8 9…
-
0
votes1
answer917
viewsQ: Angular multiple ngif Else passing parameter in template
Is it possible to make two ngIf in the angular.html? follows an example if(1=2){ }else{ if(){ } } need to do two checks. Check teacher constraint if false check classroom availability. if an example…
-
3
votes2
answers9335
viewsQ: Apply watermark without affecting text
I put an image inside a table representing the watermark, but when adding opacity in the table all content is affected. Follows CSS: table{…
-
0
votes1
answer1131
viewsA: Angular: Adding array in formBuilder or otherwise
Follows solution. I added it to the formBuilder Numbers: this.formBuilder.array([]) being like this. initializeForm(empresa) { this.form = this.formBuilder.group({ cd_empresa:…
-
0
votes1
answer1131
viewsQ: Angular: Adding array in formBuilder or otherwise
I need to add an array to formBuilder, but I don’t know how to do it (it may be in other ways). everything was going great until FK showed up. I have to send the company data plus the phone data…
-
0
votes1
answer664
viewsQ: How to consume an API using Angular 6?
How to get feedback from the post through the Component? Code: service import {Injectable} from '@angular/core' import {HttpClient,HttpHeaders} from '@angular/common/http' import {Observable} from…
-
0
votes0
answers547
viewsQ: How to get http data and show on screen with Angular 2+
I’m having trouble getting an angular request backend is returning right but I’m not able to put the variable in html. app.compoonent.ts import { Component } from '@angular/core'; import { CanLoad,…
-
0
votes2
answers4096
viewsQ: Create and manipulate array with classic Asp
How to create, feed and read the array with key and value using Asp Classic? I need to do something kind of like this. $registro[] = array( "codigo"=> "$v", "municipio"=> "$v->municipio",…
-
1
votes1
answer163
viewsQ: Problem at angular5 with Httpclient
I’m trying to do a requisicao with angular5 for learning purposes and I’m not with you, follow the console log and source code. ERROR Error: Uncaught (in promise): Error:…
-
0
votes1
answer761
viewsQ: Problems with Lazy Load Angular 5
Error adding Lazy loading Any help is welcome because I’m new at angular. I need to set up some file for this to work? app.modulets. import { BrowserModule } from '@angular/platform-browser'; import…
-
2
votes1
answer951
viewsQ: How to do pg_dump remotely
I have a server on Amazon with small storage space, I need to back up on my personal machine. if I log into the server and run pg_dump -h localhost bd > backup.sql everything works, however the…
-
0
votes0
answers253
viewsQ: Get return from xml webservice - SOAP
I’m accessing a webservice with SOAP and I need to get the contents of the tag - Message Follow the return of the webservice. /var/www/html/particular/webservice/retphp:28: object(stdClass)[2]…
-
0
votes0
answers338
viewsQ: Restoring sql server management studio database
I’m creating a developmental environment. I went into production environment I opened sql server management studio right click on tasks database > backup I’m back in the development environment I…
-
0
votes0
answers36
viewsQ: Do not start calendar (eventCalendar) with upcoming events
I would like to start the calendar by showing the events of the current month and not the upcoming events. <link href="admin/coisasDoSite/calendario/EventCalendar/css/eventCalendar.css"…
-
2
votes0
answers67
viewsQ: Session not holding value
My SESSION is not storing the values during its useful life. Here I used to demonstrate a var_dump: var_dump($_SESSION); array (size=3) 'no_pessoa' => string 'Wander Carlos' (length=15)…
-
2
votes3
answers200
viewsA: How to pick up parts of a text in php
Final code <?php function getKabum($urlCompleta) { libxml_use_internal_errors(true) and libxml_clear_errors(); $header = "X-Forwarded-For: {$_SERVER['REMOTE_ADDR']}"; $ch = curl_init();…
-
1
votes3
answers200
viewsQ: How to pick up parts of a text in php
How to pick the text apart "name":"ASUS p/ Intel LGA 1151 ATX ROG STRIX Z270E GAMING,DDR4,Aura Sync, Audio Gamer, Intel Network, SLI/CFX, Wi-Fi, USB 3.1 Front,HDMI/DP" and "price":1095.9 remembering…
-
-1
votes1
answer176
viewsQ: Wordpress with php 7+
I upgraded my server to php version 7, but I can’t access the site. It follows error message. A página de site.com.br não está funcionando site.com.br não consegue atender a esta solicitação no…
-
2
votes2
answers517
viewsQ: How to join two array
need to join two array first array array (size=11) 7100 => boolean false 7108 => boolean false 7110 => boolean false 7120 => boolean false 7130 => boolean false 7140 => boolean…
-
0
votes1
answer2013
viewsQ: Curl - Mega sena result by contest number
script by Daniel Omine modified by me. Original: /a/116727/4793 $c = curl_init(); $cookie_file = __DIR__.DIRECTORY_SEPARATOR.'megasena.txt'; curl_setopt_array($c, array( CURLOPT_URL =>…
-
1
votes0
answers36
viewsQ: Mysql doubt in fk null (Blank candidate election)
I’m doing a voting system and I need you to take blank votes what is the best option to do this? agree to pass a null value in the cd_candidate column? I can’t create a blank candidate in the…
-
1
votes4
answers424
viewsQ: Request with ajax
In my system I have an email sending module I send it through ajax. shipping to approximately 300 people on the same request. The uolhost server supports sending 150/hour so when sending 150 I give…
-
1
votes1
answer165
viewsQ: modify Chosen and ckeditor
Chosen How to modify the data-placeholder value: through javascript ex: <select data-placeholder="Para:" name="cd_aluno[]"id="cd_aluno" multiple class="chosen-select"> change the…
-
2
votes3
answers2186
viewsQ: Error "... is not a recognized built-in Function name" in SQL Server
I am not able to make an Insert in the SQL Server database. Follow my code: INSERT INTO TB_Cadastro (Cod_Vac, CodIN,Produtor, Codmal, DataVac, DataCompra, NumDoc, SerieDoc, UFDoc, CodMunDoc, Lab,…
sql-serverasked Herick 591 -
0
votes1
answer436
viewsQ: Format date to Brazilian format using webservices
How to format a data timestamp for timestamp br. ex. 2015-02-03 15:37:00 para 03/02/2015 15:37:00 Obs: the date is a text
-
0
votes1
answer806
viewsQ: Redirect with javascript
I need to redirect when the modal bootstrap loses Focus. In my code the modal doesn’t open because it redirects off screen. I need something more or less like Alert(). As soon as you click OK or…
-
0
votes0
answers34
viewsQ: Checking for PDO commit
I need to send a successful save only when COMMIT runs without. the problem is in return ajax, no done. in my HTML when an error occurs, it returns the catch error and commit ok I need to print the…
-
1
votes2
answers870
viewsQ: Problems making an ajax request
I have a requisition problem when I click save button it makes 1 request or be saved 1 time in the bank if click again it does 2 at once saving 2 times in the bank clicking again it does 3 at a time…
-
0
votes1
answer207
viewsQ: Insert with ajax and php
I’m trying to do an Insert with ajax and I’m not getting it. I understood that to do this I need 3 files html javascript(ajax) php (bank) part 1 and 2 are up and running 100% but part 3 seems to me…