Interesting questions
-
0
votes1
answer6285
viewsPython prime numbers | while
I have the following problem: Write the maior_prime function that takes an integer number greater than or equal to 2 as parameter and returns the largest prime number less than or equal to the…
pythonasked 7 years, 10 months ago Pedro Henrique Santos 19 -
2
votes0
answers20
viewsMongodb collections
I have a database in Mongo with the following collections "Productsservices" and "stock" where the stock collection will inform the stock value of a record within the product and service collection…
-
0
votes0
answers53
viewsDropdown-menu does not work. jQuery.js missing
Recently I was having trouble with my dropdown menu the menu does not drop when pressed. From the searches I did, I found that it does not work due to the lack of the file 'jQuery.js' in the js…
twitter-bootstrapasked 9 years, 4 months ago Heidy Miguel 121 -
4
votes2
answers1628
viewsComparing string in php
I would like to know how to compare the contents of a string in PHP. I’m looking for a word on a line, but I don’t know what position she’s in. $ch_atend if($linha == "idle") { $ch_atend =…
phpasked 11 years, 2 months ago fabricio_wm 1,090 -
1
votes0
answers35
viewsHow does the program give the product of the 2 numbers I put on the console?
This program makes the product 2 numbers ie if I put 3 and 4 the result is 12 if put 4 and 4 is 16. But I don’t understand how does the product through the sum(x+1,y-1) and of sum(x, product(x, y-1)…
-
0
votes1
answer103
viewsError in class(x) <- setdiff(class(x), "pseries") :
I’m running multiple linear regressions on R. Initially I circled with the "pooled" effect and it worked fine. When I try to do the same with the effect "Within" and "Random" shows the following…
-
0
votes2
answers42
viewsHow can I draw an X number without repeating it in JS?
let user = require(`readline-sync`) let loteria = { totalNumeros: "", intervalo: "", numeros1: "", numeros: [], numeroexcluido: "", sortear: function () { this.totalNumeros =…
javascriptasked 4 years, 6 months ago Miguel Krug 17 -
2
votes1
answer61
viewsApplying Semantics Html5
Good morning to all. I’m doing a study in Html5 semantics and ended up with a knot in my head... I wonder if I’m applying semantics correctly. footer { position: relative; bottom: 0; width: 100%;…
-
1
votes1
answer633
viewsWorking with Autosize Form
I’ve got a hot guy with the property Autosize = True, and two Groupbox One in the middle and one in the bottom. There is a function that makes the bottom Groupbox invisible if it is visible and vice…
-
3
votes1
answer2135
viewsHow to show a notification on the screen without affecting the active application
How do I show a notification without affecting the active application? In short, I want the notification to be displayed on the screen and the active application not to lose focus, or if it is a…
c#asked 10 years, 8 months ago Jonathan Henrique 31 -
-1
votes2
answers503
viewsPassing $_FILES in a registration function
Well, I’m thinking about a way to register items in a database, but I thought: "and if the item has an image ?" So I wrote a script to send this image, however, I don’t know if it’s correct or not…
-
0
votes1
answer4579
viewsHow do I delete a specific document from a Collection in Mongodb?
The method remove() used this way: db.name_da_collection.remove(), remove all Documents from a Collection, as I do to remove a specific Document?
mongodbasked 8 years, 10 months ago Gustavo Mesquita 88 -
6
votes1
answer130
viewsWhat is the difference of syscall and call in Assembly?
The following simple code I wrote, based on a code I read in a book, was not compiling: ;myhello section .data msg db "Boa tarde",0 NL db 0xa section .bss section .text global main main: push rbp…
-
-2
votes1
answer171
viewsRedirect login screen (HTML5/PHP)
How do I redirect the login screen where there will be 3 types of user: 1-Admin 2-Employee 3-Client And each one will be redirected to different pages.
phpasked 8 years, 12 months ago Rogério Katayama 3 -
0
votes1
answer45
viewsReplace multiple substrings of a dictionary
I’m trying to make a replace, but I’m not getting it. My code: dicionario = { "uva":"R$ 5,00", "abacaxi": "15%", "abacate": "preço: N/A" } for key, value in dicionario.items(): if 'R$ ' in value or…
-
0
votes1
answer350
viewsRegex for number format
How can I create a regex (which will be used with preg_match) to the following format 1.123,12?
-
0
votes1
answer63
viewsSelect SQL SERVER PDO data for a select list with PHP
Dear ones, I have designed this code snippet so that the data received from my SQL SERVER database is listed in a select via PDO: consultationphp.: <form name="cargo" method="post"…
-
4
votes1
answer195
viewsTrying to upload JPG via Javascript and Ajax
I created the following form below on a client’s website, so that you can change a user’s photo: <form id="formulario" method="post" enctype="multipart/form-data"> <div…
-
1
votes1
answer40
viewsError trying to set Npgsqldataadapter Missingschemaaction property
I’m trying to set the property MissingSchemaAction of an object NpgsqlDataAdapter, but Visual Studio is complaining that the property does not exist. I looked at the github of the project and saw…
-
-3
votes1
answer123
viewsGenerate a string with random letters and numbers in PHP (UUID)
I created a php code that generates a name with random letters and numbers (like a UUID), something like: 7a299248-fd87-4c42-b37d-a6e50a360d10. But I see that it does not perform well in relation to…