Interesting questions
-
7
votes1
answer4778
viewsHow to read content from a Javascript site?
I would like to know how to read content from other web pages using javascript or some library only. For example, from a remote news site, in this case: www.terra.com.br. And I would like to create…
-
1
votes2
answers315
viewsdelete from a row of the selected table
I have the following div: <div id="div_conteudo" align="center"> <div id="header"> <input type="button" name="Delete" class="botao1" style="float: right; margin-right:-12%">…
-
5
votes1
answer71
viewsHow to create a heatmap for a calendar?
One of the graphs I find most interesting is called, in English, heatmap Calendar. Perhaps its most common application is in github, that displays our collaborations in the last year with the chart…
-
1
votes0
answers91
viewsHow to choose coloring algorithm between Welsh/Powell and DSATUR?
When should I use Welsh/Powell and when should I use DSATUR? For what type of graph each algorithm works best?
-
2
votes1
answer109
viewsRead and display a PDF inside a zipped folder without extracting it
Is it possible to do this or do I really have to extract the file before to later read it? In my code I’m doing so: string zipPath = @"C:\Users\Analistas\Desktop\ZipFile.zip"; using (ZipArchive…
-
0
votes1
answer702
viewsFailure to generate TXT file by routine for printing in VBA/Excel
The form below refers to the code under VBA (Excel) presented below. This code refers to the printing of a spreadsheet on Excel by name "Imprint", as shown in the figure below. By the parameters…
-
2
votes1
answer101
viewsRun addslashes function on all Insert fields
I am using the PHP code below to make an Insert in the Mysql database: $sql = "INSERT INTO acolhidos ( situacao, nome, dataNasc, nacionalidade, naturalidade, cidadeNasc, cpf, ... updateLogin )…
-
0
votes1
answer161
viewsHow to limit a div draggable from overtaking the corner of the screen?
Guys I have an app that has a div floating that the user can drag inside the screen, only with the draggable() jquery lets the user drag the div beyond the screen and many times it fails to bring it…
-
0
votes0
answers110
viewsPersist child objects with parent id 1:N
Guys I’m having difficulty in relationships with Hibernate, I have a 1:N relationship between Provider and Address (1 provider may have N addresses). My problem is this, when I try to persist a…
-
-1
votes1
answer89
viewsShould I use Thread.Sleep() for my program not to occupy the processor?
I have a small group of classes that implement a game of Snake with two players, the game is working as expected. But I’m using one while infinity that is operating at the maximum speed that the JVM…
javaasked 5 years, 11 months ago Pirategull 659 -
0
votes1
answer470
viewsError in Mongoose findOne
I’m getting Error: Invalid argument to findOne(): 'texto pesquisado' when executing the findOne mongoose: const User = mongoose.model('users', mySchema); const query - 'texto pesquisado';…
-
-1
votes1
answer40
viewsProgram only works once
Talk guys, I’m uncrossing python and I’m putting together a simple program that will gradually divide the modules, add treatments etc... The problem is this: in the code below, the program only…
-
1
votes1
answer319
viewsMultiply 2 fields in Jtable
I’m trying to get a 2-field multiplication on Jtable but I can’t do it Specifically the Quantity Field and Unit Value to multiply and give the Total Value Tela do Jtable package Telas; import…
-
3
votes1
answer8878
viewsGenerate table Insert script in sql server
Using Sql Server 2012. I made a query with the title above and did not bring anything in the search. I have a BD and need to take it elsewhere. Therefore, the best way is to generate a script of all…
-
0
votes1
answer4449
viewsHow to fix these and other errors: Failed to Convert from type [java.lang.String] to type [java.lang.Long] for value 'list'?
I’m implementing an example of a book about Spring Boot, but, after executing, while trying to access the route /clientes/list or else, /clientes/view in the browser appear the following errors:…
-
0
votes1
answer232
viewsLogin with permissions Laravel 5
I have a login system with permissions done with Auth do Laravel, where there are options "Student" and "Teacher" to choose. For example: if he is a teacher, he will come back with a screen to…
-
3
votes2
answers3436
viewsHow to mount a JSON return?
I have this code, below, where I manipulate some data. But after, I need to transform into a JSON object, as the example below. <?php function mostraContasEntrada($id_empresa){ $pdo = conectar();…
-
0
votes1
answer271
viewsShow and hide <table> in Javascript with arrows
Good morning! For example I have a page with the content in a table, in a <td> the text appears and in the other <td>the image. And by clicking the next arrow you should show the…
-
1
votes2
answers722
viewsHow to update a table by ID?
I have a table and in it I have a icon with the event onClick, the script until then is doing his job which is to change the state of true for false, if this is clicked. My job is to update this…
-
2
votes2
answers697
viewsSorting objects in a Json without id in Angularjs
How can I sort the display of a Json object array in Angular, ng-repeat? orderBy? and this json has no id to do this ordering, I would like to be able to sort it by sequence of "last added".…