Interesting questions
-
1
votes1
answer3898
viewsC file manipulation (skip lines)
Hello, I’m having a problem to skip lines in a file, I use fgets(), but it always prints the first line of my file. I also did some tests, and for some reason, there is only one iteration and x…
-
1
votes3
answers333
viewsHelp to filter a JSON with jQuery?
I have this code that filters a JSON object: var filtrar = function (horamin, horamax) { var data = JSON.parse(JSON.stringify(json.aPesquisa)); let result = data.filter(item => { let voos =…
-
0
votes2
answers2452
viewsHow to align a button at the bottom of a DIV
How to move a button (link) to the bottom of a DIV? <div class="item-info"> <h3><a href="https://www.lookandsoul.com.br/produto/cinto-fivela-dupla-preto/">Cinto fivela dupla…
-
2
votes3
answers360
viewsInput type="text" field does not fill data with more than one word
When loading a data into an input only the first word is loaded. Example: '</form> <input type="text" value='.$result->name.' >'; $result->name contains the value "Hello World".…
-
1
votes1
answer123
viewsChange widget CSS when menu is pinned to top
I’m using the Sticky-top bootstrap class to pin the menu to the top. But I wish that as long as the menu was not fixed, the icon would not appear. I mean .menu-principal img, I would like when the…
-
-3
votes1
answer173
viewsIn a login system, will all tables be connected with the user table?
I am creating a system for barbershop and would like to make a login system for each user, where the user would register his trade, employees, etc. In my database I have the barber and customer…
-
4
votes3
answers857
viewsDollar next to number in Tostring format
When I try to format a value using .ToString("c2") do . NET the symbol of the coin comes stuck with the number. This makes the formatting ugly and wrong to my point of view. Example:…
-
2
votes1
answer163
viewsDoubt filter with Line, ASP NET MVC
I have a question on a filter using Linq, I have a critical object Inside criticism has a ienumerable I need to return a list of criticisms that the status of the last critical move equals 2 But the…
-
0
votes2
answers356
viewsAngular 5 + Ionic 3: I can’t send headers in API requests
I am consuming an API through a post method and need to command the Authorization header. I am doing it as follows: public post(resource, body, authorization = false): Observable<any> { const…
-
0
votes1
answer35
viewsMysql, SELECT and JOIN in tables with NULL columns
Folks would like help with my comic. I have three questions to answer and I can answer only the third, as I answer the others? 1) Which carriers are present in only 1 category? 2) Which carriers are…
-
1
votes2
answers421
viewsDoubts of python
I’m new to python, and I’m looking to make a system, where you fill out a questionnaire, and consequently it already prints in html to just paste in the forum. What I rode was the following: from…
-
0
votes1
answer31
viewsJquery replaceWith deletes element when exchanging in several places
I’m having a problem with the function call replaceWith of Jquery. I have a variable that is storing an HTML structure, this structure I want to render in several different places (this works when I…
-
0
votes1
answer163
viewsProblems with Android Studio
Today I migrated to Android Studio, I was using until today Eclipse + ADT to develop for Android. So I gave the run in the application and gave this error: the module cannot be android library I…
-
0
votes1
answer61
viewsHow do I make a char vector recognize a line break?
The code is like this #include <iostream> #include <fstream> using namespace std; int main(){ char frase[30]; char j; int i=0; do{ cin>>j; if(j!=' '){ frase[i]=j; i++; } }while…
c++asked 5 years, 1 month ago Victoria Moraes 9 -
0
votes1
answer63
viewsMongodb - Error running find geospatial $near
I have a collection with the following documents. { "_id" : ObjectId("5c6bb6b492647b15f80038a1"), "loc" : { "type" : "Point", "coordenadas" : [ -41.104658, -20.963387 ] } } I’m running the find:…
mongodbasked 7 years, 1 month ago Elton Barcelos 1 -
0
votes3
answers2504
viewsinclude php does not work
I have the following directory tree: .var ..|--www ......|--site ..........|--index.php ..........|--all ..............|--controller ..................|--conexao.php (classe) ..............|--model…
-
0
votes0
answers14
viewsSequelize Error: Sequelizedatabaseerror
Hello, I am building my application on Node and using postgres database. I come across the following error: SequelizeDatabaseError: column \"zipcode\" of relation \"users\" does not exist" My model…
-
1
votes0
answers66
viewsHow do I select imported data in R?
I need to analyze my data with PCA on R (version 3.3.2), and the tutorial I have from an older version does not seem to apply. I imported the data in .xlsx and according to what I know, I need to…
-
0
votes1
answer48
viewsAdapt button display more Ivs to hide the displayed Ivs
I have a session that has many cards and they are displayed by clicking the button to load more that displays 4 in 4 as shown in my script: JS: $(function () { "use strict";…
-
0
votes1
answer27
viewsRequesting data stored in the localStorage
I am using Google Translate on my site, and it is working perfectly, but when updating the page it returns to the default language of the site, the data appears saved in Localstorage and even then…