Posts by boolean • 486 points
27 posts
-
2
votes1
answer304
viewsA: How can I undo these 3 commits?
Before giving the command I recommend that you backup the folder with your project. The entire folder including . git files/ git reset --hard HEAD~3 Or, to be more exact, you can go back to a…
-
1
votes2
answers123
viewsA: How to simulate button click on jQuery?
Well, I would create a function for the code you want to run by the two buttons. It is not a good idea to make one button depend on the other, because if one ceases to exist the other stops working,…
-
0
votes1
answer2802
viewsQ: Using Promise.resolve(). then() correctly Error: Uncaught (in Promise): Typeerror: Cannot read Property
Hi, I have the following code: export class Page { constructor(public modalController: ModalController) { } private async openModal(value) { const modal = await this.modalController.create({…
-
0
votes2
answers93
viewsA: Runtimeexception when using colorbar() Spyder IDE
I was using the Jupyter Notebook, and I was using separate instructions to do the map-showing part. The problem disappeared when I executed all this piece at once, instead of fragmenting the…
-
2
votes2
answers93
viewsQ: Runtimeexception when using colorbar() Spyder IDE
I am a code to show the use of self-organizing maps and error appears when using colorbar function. Error happens on line colorbar(). Before that the way out was: So when I run the line colorbar().…
-
0
votes0
answers33
viewsQ: Problem with JSON extension in phpMyAdmin
Hello, I needed to reinstall the server (apache, php, mysql and phpmyadmin) and I am having this error when accessing the page localhost/phpmyadmin. Before that it was giving the same problem but…
-
7
votes1
answer689
viewsQ: Difference between @Deprecated and @deprecated
What’s the difference between @Deprecated as an annotation in the class and @deprecated in the documentation of the same? When to use one and when to use the other? /** * Combo box that shows the…
-
0
votes0
answers16
viewsQ: Test result window netbeans is not showing the tests
When I right click on a Maven project that contains Junit tests it shows the test results in the "default" output the same as the build result. I want it to show the tests in the test window and not…
-
0
votes1
answer34
viewsA: Perform query after registration with Ajax/PHP
This is because the result of the first ajax is influencing the execution of the second. Avoid putting a $.ajax inside another, the best method to do this I believe is something like:…
-
2
votes3
answers1916
viewsQ: Find WHOLE word in a C string
Hello. I need to search a word in a text. #include <stdio.h> #include <string.h> int main(void) { char *word = "dado"; // palavra a ser encontrada char *pageContent = "Ola tudo bem,…
-
1
votes1
answer81
viewsQ: Struct receiving the same struct as attribute
Hello, how can I have a "recursive" struct? A struct that takes itself as one of the attributes. typedef struct { int value; NODE[50]; } NODE; In this case, the idea is that each Node has a vector…
-
0
votes1
answer32
views -
0
votes1
answer31
viewsA: Passing map to method
Map is different from a list itself, because instead of having numeric indices (like in a vector) you can have an index of any type. As its name says Map will map each key for a value. I will…
-
0
votes1
answer27
viewsA: User accessing with only one email
Look, you can do this by storing the encryption passwords in the BD, and at the time of consulting you query by the user and test the password entered for each row returned from the bank. There is…
-
1
votes1
answer43
viewsA: How to organize my project and be more productive?
Hello, Jose, welcome to Stackoverflow. Well... I’m not advanced in PHP, but what I do with my projects currently as regards the file structure: |-root ---|class ------>Busca.class.php ---|php…
-
3
votes1
answer84
views -
0
votes1
answer248
viewsQ: Keyword 'final' for java variables
The ultimate java keyword for variables means it will only receive one value once, right? If I have several variables in a function and I know that they should not receive any value later it is good…
-
4
votes3
answers158
viewsQ: Declaration of Java variables
Is there any difference between the two statements: First: int a; int b; Second: int a, b; Which is the best? Are the variables closer in memory or is that just a myth? Is there any significant…
-
1
votes1
answer243
viewsQ: Foreign key with 3 primary keys
Hi. I have this table with 3 primary keys and I need to reference it in another table. It’s like? I was just going to put an int-type id in the monthly table to be the only primary key. But each…
-
1
votes2
answers95
viewsA: List item causing error in C program
printf("%d - %s - %s\n", lista[i].cod, lista[i].nome, lista[i].telefone); lista[i].cod is a whole, so you have to put a %d to indicate that an integer will be written and not a %s of "string".…
-
0
votes0
answers576
viewsQ: Opengl 3D cylinder and lookat
Hello, I would like to know if there is a problem in the code below. I need to draw a cylinder in the center of the window and rotate through the mouse. The code below generates a very large…
-
0
votes2
answers3281
viewsA: How to get json data from php with javascript
Try this: $.ajax({ type: 'GET', url: "http://127.0.0.1/ecoLicenseLayout/send-data.php", dataType: 'json', contentType: 'application/json', crossDomain: true, cache:false, success: function(data) {…
-
2
votes2
answers46
viewsA: Know URL read time
It could be so: long inicio = System.currentTimeMillis(); String urlNormal = "http://minhaurl"; URLConnection conn = urlNormal.openConnection(); BufferedReader input = new BufferedReader(new…
-
0
votes1
answer157
viewsA: Move_upload_file does not work
Your $caminho is already with the full name of the file and the directory it should be, only if it does not exist it is not there, you want to put it there. So try to use $_FILES["file"]["tmp_name"]…
-
0
votes1
answer49
viewsA: how to send data in xml without overwriting the previous data
Try adding an id to each . So when you add another event, add with a different id.
-
1
votes3
answers57
viewsA: How do I get this page error with this code?
Try declaring your variable $file with global scope. It must be undefined because its first use happens within an if. Also make sure your files are writable in your project directory so they can…
-
1
votes0
answers171
viewsQ: 3D cylinder with 2D lines in Opengl
How to calculate a matrix of 3D points that form a 3D cylinder and draw the cylinder using 2D lines (connecting the points of the Matrix and forming a mesh of the representation of the 3D object)?…