Interesting questions
-
2
votes1
answer1168
viewsProblems with localhost application with Angularjs and Nodejs
I’m having some questions and problems trying to create a server with nodejs. The point is I have an application developed with Angularjs very simple and want to do another in nodejs which basically…
-
1
votes2
answers67
viewsConvert Data Sqlserver
I would like to convert02/01/2018 for 2018-01-02 00:00:00.000, what I found on the internet so far was: select CONVERT (datetime, '02/01/2018', 120) Who returns to me2018-02-01 00:00:00.000, a…
-
0
votes1
answer81
viewshttppostedfilebase null after reloading the page, (image upload)
Is there any way I won’t lose data from HttpPostedFileBase? my action makes a check, and in case of failure the page recharges with the image in the form and I have to make the call again, then…
-
2
votes2
answers781
viewsGroup items by a field into different arrays
$resultado = $modelSga->getConsultaSga($ano, $mes, $unidade); foreach ($resultado as $res) { $idServico = $res->id_serv; $servico = array(); if($idServico != $idServicoAnterior) {…
-
1
votes1
answer299
viewsCreating projects in Ruby on Rails
I need to create a system that will be the following: A common user view page that will access the site with a login and password for your area A page where a company X will check its registered…
-
0
votes1
answer126
viewsDoubt about openssl_encrypt security
Hello, I have some doubts about this method of encrypting data, because I intend to use between version 5.6 and the current version of PHP and I have doubts if it will run smoothly. I have the…
-
3
votes2
answers93
viewsDo you really need to specify the HTML element before the class in the selector of a CSS rule?
I don’t know if that’s true for everyone, but the only element I’m interested in is <div>. For example: div.classe1 { /*...*/ } .clase1 { /*...*/ } What is the difference between the two…
-
4
votes0
answers52
viewsObject and Procedural Oriented Programming in PHP at the same time
Guys I have a PHP system that I have been developing for over a year. It was written practically procedural, because I adapted better, and I find it simpler to work. My question is the following:…
-
1
votes1
answer48
viewsFailed to Replace ID with PHP Team Name
I am consuming a web service in php, I created a function to compare championships and return me the id of the teams that will play or will play, in another url, I have the name of the teams and the…
-
1
votes1
answer33
viewsPDO(prepare) analyzes number of characters?
My question is simple: Imagine I have a table Nome and in it an attribute nome which is a varchar(10). If I use the command $preparado = $con->prepare("INSERT INTO Nome(nome)…
-
-1
votes1
answer1134
viewsRuby installing Opencode GEM (Tray)
I’m new to Ruby, and a client wanted me to create a template using famashop http://www.tray.com.br http://dev.tray.com.br/hc/pt-br/articles/206159587-Iniciando-um-tema I am following the developer…
-
1
votes5
answers585
viewsFooter content does not cover the entire screen
I’m making a footer at the bottom of the page. It’s already all right and it doesn’t occupy every screen nor with container-fluid: Follow the footer code: <footer class="container"…
-
0
votes3
answers192
viewsSwap String content for "$"
I have a string with a content and I need to make a replaceAll, but the text to be replaced contains a "$" dollar sign and this causes the error Illegal group reference. Example: String texto="teste…
-
-1
votes1
answer44
viewsI’m having trouble inserting PDO data
I have checked this code several times and I did not find the error, please help me find and correct... echo"email = ".$email. "<br>" ; echo "ddd = ".$ddd ."<br>"; echo "telefone =…
-
0
votes2
answers580
viewsjQuery/AJAX: a single form that can be submitted to different urls (POST or PUT)
I have the following scenario: I have a form that serves to register or change a teacher; To register I have a button at the top that calls the modal to do the POST; To change I have a button in…
-
-4
votes1
answer80
viewsChange Scrollbar via CSS in Chrome
I put border-Radius in my scrollbar, but there are leftovers when the background color is changed, and I would like to know how to remove : I’d like to keep it that way: Where you can’t see the…
-
1
votes2
answers660
viewsCreate "forgot password" links on Android
Hello, does anyone know how to create a link button to reset password as the image below, and when clicked open another Activity?…
androidasked 8 years, 8 months ago Matheus Emanuel 33 -
1
votes1
answer272
viewsHow to start an array with the value the user type is possible?
If all allocated memory is defined at the time of compilation, then how is this possible: int num{0}; cin >> num; int array[num]; From what I understand, this could only be possible if using…
array c++ memory-management allocation variable-declarationasked 7 years, 10 months ago silash35 483 -
0
votes1
answer705
viewsLoad Link in Modal
Run the code - The explanation ta on execution. then read the code document.getElementById("edt").style = "block"; $(document).ready(function() { $("#LinkChamar").click(function() {…
-
-1
votes1
answer118
viewsDiscord.js is not expecting the return of the function
I am developing a BOT where I need to make a request (GET) for an API that returns me a JSON. This part is apparently working properly, I put this request in a separate file and created a function…