Interesting questions
-
0
votes1
answer280
views"Absent expression after unary operator '-'" when trying to install postgres by Docker
code: docker run \ --name postgres \ -e POSTGRES_USER=spirit \ -e POSTGRES_DB=spiritSt \ -e 5432:5432 \ -d \ postgres was following a tutorial and it worked normal but on my pc I have this error: No…
-
6
votes2
answers554
viewsHow to create a Function and call your methods without using new, similar to jQuery’s $ ?
The $ (jQuery dollar) is a Function, however it is possible to access its methods as if it were an object through the operator ".". Someone could explain, in what way I could do this in a Function…
-
1
votes1
answer1809
viewsHow do I make crontab run a shellscript?
Guys I have a . sh and I’m having difficulty making it run on crontab every minute Example I have my file . sh /var/www/exec/checarservidor.sh it is with due permissions. add it to crontab * * * * *…
-
3
votes2
answers300
viewsLoop with "for" in a form with equal field sets
I have a data capture of a form where are fields 5 sets of equal fields. I want that at the time of capturing for my array, I do not need to repeat: array[1] = post1, array[2] = post2 I know you can…
-
-1
votes1
answer58
viewsCall Function while holding down
Good afternoon, I’m trying to do a function to perform an action while keeping an item from a list pressed pro x minutes, but I’m not finding a solution to this. Does anyone have any idea how I can…
-
0
votes1
answer135
viewsInsert v-for data into css class in Vuejs2
<template v-for="d in data" > <a :key="d.id" class="zone{{d.value}}" href="{{d.code}}" >{{d.name}}</a> </template> This example just doesn’t work, how can I pass the values…
-
1
votes1
answer57
viewsWhen programming an ARM microcontroller, is it possible to change your clock after running Systeminit()?
I resumed my studies on ARM this month, and one question that has long been bothering me and I haven’t yet managed to put the test in my testing environment is whether I can change the…
-
2
votes2
answers3254
viewsResizing image with canvas and Javascript
How to reduce the size of an image with JavaScript? I’m using canvas to resize, reduce the size in proportion and convert to jpeg. The problem occurs when I try to save the image, since I cannot…
-
0
votes1
answer454
viewsGet way of the project
I have a project JSF and would like to return the project path in a String. This path has to take the folder webapp as root. How I do ?
-
0
votes1
answer843
viewsVS code Do not autocomplete html or css tags on a Blade
I am using Vs code to edit HTM,CSS,PHP. code when I edit code with extension . html and type the html or css tags, it autocompletes showing the command options normally. When this code is performed…
visual-studio-codeasked 5 years, 8 months ago Fabio Henrique 2,156 -
2
votes0
answers86
viewsHelp with Mysqli procedural to object-oriented class migration
Hello, good afternoon. I started to migrate a Mysqli class from procedural to Object Oriented and two functions of that class left me in doubt. During the migration of functions fetchRow and…
-
1
votes1
answer228
viewsPick the fields of a Select and pass to viewmodel
Guys I own two Selects Multiple where their function is to change values as shown in the image below: The first in real is a Dropdownlist where he searches the bank’s information, follows its code:…
-
1
votes1
answer23
viewsWhich correct way to use Reverse(); in a given element id
I have in Document HTML a certain element that has ordinal numbers from 0 to 9. I’m trying to use the method reverse(); to reverse the order of numbers in my element. The logic should be: 1- capture…
javascriptasked 9 years, 7 months ago Diego Henrique 2,916 -
5
votes2
answers83
viewsDesign based on the VS2015 spa template. How the service is generated
I created a project using the SPA template in Visual Studio 2015, to learn and understand, but I found this example very complicated. I still don’t understand where the service is mounted and…
-
2
votes1
answer1213
viewsRecover textarea value in form . serialize()
I’ve always used generic function, but I’m having a problem recovering the value of textarea. I use a text editor on textarea, the Ckeditor. Here follows the function I’m using: function…
-
-1
votes1
answer123
viewsChange logo automatically with Fade
I would like to add on my HTML site, a fade logo color change effect, be it javascript or jquery. For example: Change of: To: Among other images, adding all: 10 img’s. Fade effect and automatically,…
htmlasked 10 years, 5 months ago Marlon Leandro 40 -
1
votes1
answer241
viewsDocker
I am setting up a development environment with Docker. In it I need NGINX (webservice) PHP 7.2 (app) MARIADB 10.3 (database) In the container app I must install Composer, I will work using Windows.…
-
3
votes1
answer1692
viewsEmail sending works locally but not on a remote server
I have a problem sending email using a server I created in a data center hired. Email sending works locally normally, although SMTP is in a well-known hosting company (I saw that they allow 20…
-
0
votes0
answers133
viewsHow to know what is generating this error by this log?
I created a Navigation Drawer following an example, but I would like to know why this error, have how to know by log? http://pastebin.com/RAf5Eswz 10-27 10:50:26.045: W/Trace(18420): error opening…
androidasked 11 years, 3 months ago Israel Sousa 1,362 -
0
votes3
answers71
viewsBecause when I click the button, you don’t calculate?
I’m making a simple calculator with Javacript and when I type the values in input they are grouped and not summed up what I am doing wrong? follows the code. <!DOCTYPE html> <html…
javascriptasked 6 years, 6 months ago Dom Domdomdom 192