Interesting questions
-
-1
votes1
answer46
viewsError in C Stack implementation
I am typing the code that is presented in a book and compiling gradually. Mistakes happen where they are "//???????????". Another detail, in the statement of the structure, where we see *Stack, in…
-
0
votes0
answers23
viewsVuejs mutiplo modulos
Good afternoon, you guys. I have a small problem executing the command "npm run serves" in my powershell appears the following problem to solve: There are Multiple modules with Names that only…
-
10
votes3
answers15565
viewsWhich regular expression can I use to remove double spaces in Javascript or PHP?
What regular expression can I use to remove excess white space? I mean, leave them with the amount of normalized spaces. Example Of: $string = 'Estou no Stack Overflow em Português '; To: $string =…
-
-3
votes1
answer200
viewsHow to open "Save As" in a Java application?
I am trying to create an application that takes a user input stores in a variable and saves the input in a directory informed by it through the "save as" windows, but I can only access the file…
-
2
votes1
answer59
viewsError handling is not occurring
In the code below I treated the error only that after treating it still appears the quantity name (I sent the photo below to facilitate understanding). How do I make him not show the quantity name?…
-
2
votes1
answer92
viewsGo inside to compare if there are equal values
I need to do one to check if inside my array this.variacaoForm.value.variacoes has a sku like the other, I tried something like: for(let i=0;i<this.variacaoForm.value.variacoes.length;i++){…
-
1
votes0
answers334
viewsXampp server does not access from my ip
I have the XAMPP server installed already configured it to list 8080 and servername localhost 8080. my Firewal is activated and my router is with the door 8080 open. I use a router INTELBRAS WRN300.…
-
1
votes1
answer38
viewsHelp for this query
Good afternoon Guys, I have these two tables that relate to know how many times a user accessed the system: And I have this query: select nome_usuario, count(id_log) as qtde from logs as l left join…
mysqlasked 9 years, 9 months ago Eduardo Santos 754 -
-2
votes1
answer23
viewsLaravel - Use JOIN + COUNT
I have two tables, one for users (users) and another for companies (Companies). I need to select the data of each company and know the amount of users per company. This select in mysql works the way…
-
-1
votes1
answer71
viewsHow to order query in MYSQL by relevance? (first results that the term is in the title, then in the content)
I have a table as follows: id|nota|titulo |ingredientes 1 | 3 |pão de batata|batata;farinha;agua;ovo 2 | 2 |bacalhoada |bacalhau;batata;pimentão 3 | 1 |batata frita |batata When I do a search that…
-
4
votes0
answers40
viewsWhat are parser combinators?
Recently, studying on techniques of Parsing, found out about parser combinators, which seems to be a more functional approach to realize the parse of a sequence of characters. What is a parser…
-
0
votes2
answers742
viewsJquery load function does not work
Even following the official documentation of Jquery, my script does not work. Something from day to day. I do not know if I changed something unintentionally. Follows code below <!doctype…
jqueryasked 9 years, 7 months ago Paulo Sérgio Duff 1,201 -
0
votes1
answer2571
viewsPopular dynamic select with javascript
I have two select, and I want the second select only to show the data depending on the selection of the first. What I lack is 'popular' the second select, because I already have the necessary data…
-
0
votes2
answers383
viewsWhy can’t I erase an object with Hibernate?
I have on a screen a process table and want to delete one of them. This is a piece of mine datatable: <p:column headerText="Excluir" style="width:68px"> <p:commandButton…
-
0
votes1
answer178
viewsProblems when clicking an input
Good afternoon, Sometimes I can’t click an input from a form to fill it out but in others the form works normally without any problem. This happens sporadically and, as a rule, happens to me in…
-
0
votes0
answers27
viewsHow to implement the Marker Cluster plugin using Yagajs/leaflet
I want to implement the plugin Marker Cluster in my project using the yagajs/Leaflet. In the Marker Cluster documentation, they say I simply need to use the following code: var markers = new…
-
2
votes1
answer1388
viewsimagejpeg is not saving image
Follow the code, then the question. $localDiretorioFoto = "img/mensagens/"; $img = $_FILES["foto"]["tmp_name"]; $imgg = getimagesize($img); if($imgg["mime"] == "image/jpeg") { $nomeFoto =…
-
3
votes1
answer123
viewsMethod Call with Matrix Parameters
I’ve always created vector methods using: void exemplo(int vetor[], int qtd){ // Código... // ... } And I never had problems, but I’m trying the same with matrices and I get an error void…
-
1
votes1
answer98
viewsLaravel - Database - unique data only from the logged-in user id
I’m having a problem in Laravel, in checking the unique data, I want you to check whether data is unique only in user id. I have a table called empresas_cadastradas, and what I want you to do is for…
-
0
votes2
answers286
viewsToggle in a div next to (or below)
I need to manipulate a div from the click on another div. Basically, one is on top of the other, I want to click the top one and so the bottom one runs the event .toggled(). But one cannot be inside…