Interesting questions
-
-1
votes1
answer28
viewsPass inputs from one page to another in php
Hello, I’m studying php, and my teacher asked to Create a PHP page containing a form with 3 fields. After clicking on SUBMIT, on the second page assemble a new form with another 3 fields. After…
-
1
votes1
answer437
viewsLogical deletion of SQL Server records
We have the culture of making only logical exclusions in the application, keeping 2 fields where 1 is the date of exclusion and another char that gets’S' or 'N'. When we perform searches for deleted…
-
4
votes2
answers255
viewsHow is it different to declare a variable with and without "@" in Ruby?
What is the difference between these two possibilities? //com @ @post = Post.find(params[:id]) //sem @ post = Post.find(params[:id]) Normally in controllers is used with @, but in office each views…
-
1
votes1
answer219
viewsCalling screen with Fragment
I created a screen with a list view based on Fragment native android studio, but I did not find solution to "call" this screen from a button. public boolean onNavigationItemSelected(MenuItem item) {…
-
1
votes1
answer181
viewsHow to convert a character to its corresponding hexadecimal in the ASCII Ruby table?
I am using Ruby and have the string "AwX" in hexadecimal. I can write to the screen using the following command: puts "\x41\x77\x58" But I want to do the reverse: I have a string "AwX", but I want…
-
0
votes0
answers209
viewsIs there a way to connect to a socket server hosted as localhost by CMD?
I wonder if there is any way to run my server in python socket and connect to it using command prompt. Is there any way to do it?
-
1
votes1
answer41
viewsCode works on console, but when I call it in document does not work properly
I have a code that works perfectly running on the console but doesn’t work when I call it by clicking on a document button. Function of my code: Read a file .csv and separate words between semicolon…
-
2
votes1
answer1183
viewsDifference between JS Dates - Error momentjs
I need to calculate the difference between two dates reported. I need to know the results in years and months and days. I used the momentjs library in conjunction with Angularjs. By setting the…
-
0
votes0
answers106
viewsHow to update a table with multiple fields
Next, I have a form, inside this Form several Input with vectors, example <tr> <td style="vertical-align:middle"> <input type="checkbox" name="Checks[]"…
-
15
votes2
answers399
viewsHow does Python structural matching (match declaration) work?
Recently, the Pattern matching structural version was introduced 3.10 (still in alpha) Python. For this, the keywords match and case. Were, in the notes of release, included several examples, among…
-
1
votes1
answer98
viewsC - Double popping size
I’m doing an IQA (Water Quality Index) exercise where I need to do a series of accounts. I created the functions and everything but always the result always comes out as it is in the image, I have…
casked 9 years, 8 months ago Joaquim Amorim 11 -
2
votes1
answer224
viewsTimeout to Upload FTP file in PHP
Friends, I am trying to develop the upload of files to FTP by PHP. When running it it successfully connects to the FTP server. However, the page keeps loading until a timeout and does not finish…
-
2
votes2
answers907
viewsMount Stored Procedure Dynamic Query in SQL Server
need to mount a conditional query with stored Procedure, to make clear my problem I will expose here to sp with what I want to work, note the end where I use Ifs, this there the problem. USE…
-
-1
votes2
answers78
viewsDisplay different messages on a Javascript site
Good afternoon. I’m learning Javascript and started a project to calculate a person’s BMI. I researched how to sum two numbers using inputs in HTML and based on the code used for the sum, converted…
-
21
votes2
answers15006
viewsHow to prevent content selection with CSS?
How to prevent text/content selection from my CSS web page? This would be extremely useful for buttons, anchors, tags and other elements that could be selected without user interest...
cssasked 12 years, 2 months ago Kenny Rafael 6,698 -
2
votes1
answer141
viewscreate custom mask
How do I create a custom mask for a particular field? The mask will be in the following format: ____OB_____ (4 numbers + OB + 5 numbers) The image below shows the example I want to follow:…
-
0
votes2
answers151
viewsCalling a service . py inside another . py
Good afternoon, you guys! I researched a lot on the internet and did not succeed, I have the following problem to solve: I have 3 Python services installed on Windows(example1.py / example2.py /…
-
1
votes1
answer222
viewsDatabase with problems for accentuation
The Mysql database did not have accentuation support, I changed the encoding to the utf8_general_ci standard and now started to display the data correctly in the client, but still the words get…
-
0
votes1
answer468
viewsPick key value set with hyphen
I am trying to access the value of the url-tool key, but it presents the following message: Notice: Use of undefined constant autenticacao - assumed 'autenticacao' in SimpleXMLElement Object (…
-
0
votes1
answer127
viewsHow do I resolve the error: Method getClientOrinalExtension does not exist, no upload de imagem com o Laravel 5.4?
Once again, I really need your help. You are giving me the following error when uploading the image to Laravel 5.4: Method getClientOrinalExtension does not exist. Next is my controller and view:…