Posts by Matheus • 1,783 points
80 posts
-
1
votes0
answers48
viewsQ: ADD CONSTRAINT USING INDEX LOCAL
I have a table signed by DATA_HORA and I would like to create CONSTRAINT forcing the use of INDEX LOCAL instead of GLOBAL, but I am facing the following error. That’s possible? Relatório de erros -…
-
0
votes3
answers324
viewsA: Add <option> automatically each month
Using the library Momentjs it is possible to create a select by automatically populating every current month according to a range. So the code is clean and easy to understand:…
-
0
votes2
answers897
viewsA: Download Zip Files via blob array
With the help of @LR10 links, the only change I needed to make to make the download work was at the time of $http.get, where it failed to set what would be the responseType. With the adjustment, it…
-
0
votes2
answers897
viewsQ: Download Zip Files via blob array
I have a rest in java where I return a byte[] of a ZIP file. If I access the URL of the API by the browser, the file is downloaded normally without error. But if I try to download the file through…
-
1
votes3
answers3147
viewsA: Unity 3d: Passing information from one scene to another
Arthur, to solve this problem you can use an empty object with a script GameController to save the information of the first scene. With the script created just add the method Dontdestroyonload so…
-
0
votes3
answers781
views -
3
votes1
answer56
viewsQ: Angularjs ignores content-type for GET requests
In my Angular 1 application, I’m using $httpProvider to be able to set the content-type by default in all methods, but for GET methods, it does not send in its header. How can I force the angular to…
-
8
votes1
answer81
viewsQ: User without access to resources mapped in the Security-role of the web.xml
What is the behavior of security-role of web.xml when the user does not have access to project resources? It is default for Weblogic to return a 404? This status is configurable? There is the…
-
-3
votes1
answer1838
viewsQ: Where to insert JS and CSS files into HTML?
Thinking of performance, in which part of HTML should I insert CSS and JS files. I know which JS files should be inserted before closing the tag </body> not to block charging and if possible…
-
0
votes1
answer1072
viewsQ: How to configure my htaccess?
I currently have a linux server on linode.com, where I have a java application running on a Tomcat. From this, I would like to perform some settings in the file htaccess. My problem is that on the…
-
0
votes1
answer1784
viewsA: "is not a valid java home jdk"
Reading the oracle documentation for Weblogic, o . jar must be installed from the folder \bin of the JDK. C:\Program Files\Java\jdk1.7.0_15\bin\java -jar wls_121200.jar…
-
0
votes1
answer1784
viewsQ: "is not a valid java home jdk"
I’m trying to install Weblogic 12c from a . jar. I execute the command java -jar wls_121200.jar , but CMD returns to me This installer must run using the Java Development Kit (JDK), however, C:…
-
0
votes2
answers1818
viewsA: How to make a pop up appear after pressing a button using Jquery UI
When using $( function() {, you are executing the instruction at the time of page ready and not when the button is clicked. $( function() { $( "#dialog" ).dialog(); }); Follows the function to your…
-
3
votes1
answer7662
viewsQ: How to break the line by passing the size of the div?
I have this problem rendering text without spacing. How can I fix it?…
-
2
votes1
answer150
viewsA: Problem with show/Hide
Follows the function: By clicking on the botao_ver_opcoes, is recovered its attribute data-id-jogador After, is held a each by all div with id opcoes- and executed a hide. At last a show to the…
-
0
votes4
answers196
viewsA: Similar function to indexof() in Javascript
It’s okay to use the indexOf, but there is a way to make code cleaner using array map var strErro = "teste teste teste"; var erros = ""; var erro = ["erro1", "erro2", "erro3", "tempor"];…
javascriptanswered Matheus 1,783 -
1
votes0
answers31
viewsQ: How to create a Charts in excel via javascript
I need to implement a solution in which I have to build a charts in the excel using javascript/angular. I already have the charts rendered on screen using chartsJS, but I need to export them to…
-
0
votes1
answer79
viewsA: How to detect the selected dataset in a Charts
I solved the problem by applying the getElementAtEvent instead of getElementsAtEvent. The function was thus: var activePoint = event._chart.controller.getElementAtEvent(click); var _datasetIndex =…
-
1
votes1
answer79
viewsQ: How to detect the selected dataset in a Charts
I am using the following code to detect the dataset, however INDEX comes wrong, where the value would be the Charts index and not the dataset. I need to retrieve the label of the dataset…
-
6
votes3
answers179
viewsA: Why does CSS work with "fake" HTML elements?
Elements fakes are treated as Divs by modern browsers. That’s why they work. This is part of the HTML5 standard itself that introduces a modular structure to which new elements can be added. Custom…
-
2
votes3
answers1104
viewsQ: How to create a property of an object dynamically?
I’m currently doing it this way, but it occurs error in giving build in the project: function AddSelectOption(name, item) { vm.item = { name: item["name"], [name]: item[name] //Erro nessa linha };…
-
0
votes2
answers147
viewsA: Does not work when pressing certain sequence of buttons, with js and html
In this Function, when clicking on register a hide on the edit button and vice versa. Clicking cancel again displays all buttons. $("#operacao").on('click','a', function () { if($(this).attr("id")…
-
3
votes3
answers313
viewsA: Dynamically generated ajax tags are not viewed by jquery
Thiago, I think the mistake is in $('.id_aluno').click(function () { $('#campo_aluno').val(this.text); }); because the event is tied in the element that is already created, and as you mentioned, is…
-
0
votes1
answer392
viewsA: How to define the image format when saving the file using "html2canvas"?
Can be solved by making an adaptation in function saveFile javascript Canvas2Image. The idea is to create an element anchor via JS, set the toDataURL() and file name along with its extension and run…
-
1
votes2
answers380
viewsA: Integration between Spring MVC and JPA
I managed to solve my problem by creating a dataSorce on my server (Glassfish) and referencing on persistence.xml Stayed like this: spring-context.xml <!-- ***** JPA CONFIGURATION ***** -->…
-
1
votes2
answers380
viewsQ: Integration between Spring MVC and JPA
I’m trying to integrate the Spring with JPA but so far I have not had success in this configuration. One of the doubts is whether I can configure the bank through the spring-context.xml. Follow the…
-
0
votes2
answers2611
viewsA: How to call an ajax inside another?
Mas o ajax de fora não espera o de dentro terminar para finalizar. It doesn’t wait because it’s asynchronous requisitions. Set in ajax call the option async: false…
-
0
votes1
answer43
viewsA: Problem with Hover
In your class CSS .item-works:hover .sub-works you can use -webkit-animation-fill-mode: forwards; to persist the final state. .item-works:hover .sub-works { animation-name: hoverwork;…
-
1
votes1
answer1065
viewsA: System to measure distance between 2 locations on my website
One of the options is to use the API do Google Maps. It returns the distance between two addresses and the average time it takes between the two points. Ex:…
-
0
votes1
answer475
viewsA: Add class to multiple elements, one at a time in Jquery
Try to implement your logic using setInterval(), where it is executed in a defined interval, and can be stopped performing the function. var timerId = setInterval(function () { //Faz alguma coisa…
-
1
votes1
answer171
viewsA: 'Transaction is not active' after receiving error for not being able to delete
You’re probably creating the factory and the manager in the construtor, but every operation must be closed to conexão. The "correct" implementation would be to create Factory and manager in each…
-
1
votes1
answer584
viewsA: Json Post Unsupported Media Type Spring MVC
I solved the problem by changing my configuration spring-context.xml. Lib:com.fasterxml.jackson.databind.jar Add to spring-context.xml <!-- Configure to plugin JSON as request and response in…
-
1
votes1
answer584
viewsQ: Json Post Unsupported Media Type Spring MVC
I’m performing a POST using ajax data format JSON for a controller in Spring MVC, but the server is refusing such a request Unsupported Media Type stating that the type is not supported. Have some…
-
6
votes2
answers2043
viewsA: Reading String until you find a certain character
String str = "432d+321"; String res = str.split("\\+")[0]; // res = 432d. Obs: for meta caracteres, should use the '\\'. \ , ^ , $ , * , + , ?…
-
1
votes1
answer992
viewsA: Filter and pagination
The idea of paging with filters is you "save" which filter the user selected for when they click on other pages, the filter is not lost. A practical example Let’s say I have a select containing the…
-
5
votes2
answers677
views -
1
votes1
answer921
viewsQ: Java - implement serializable
What are the benefits for the system in implementing this interface in some java class? What changes having a class that implements compared to one that does not have the implementation, based on…
-
3
votes1
answer663
viewsA: User has exceeded the 'max_user_connections' Resource (Current value: 4)
Here’s the answer for everyone with the same problem regarding c3p0 configuration. Error was fixed just by setting the hibernate.connection.provider_class in the xml. As far as I have read, without…
-
2
votes1
answer663
viewsQ: User has exceeded the 'max_user_connections' Resource (Current value: 4)
I have a problem regarding open connections in the database, where error is occurring if the application tries to create more connections than the limit. Assuming the application creates and closes…
-
2
votes0
answers125
viewsQ: C3P0 Connection Pool
I have the following properties in my Hibernate XML to Connection Pool taken off the internet: <property name="hibernate.c3p0.min_size" value="4"/> <property name="hibernate.c3p0.max_size"…
-
4
votes3
answers323
viewsA: Optimize Ajax Search that Shows Slowness
You can check through string.length. The function would look like this: <script type="text/javascript"> $('#nome').keyup(function () { var chars = (this.value); if(chars.length > 4){…
-
1
votes1
answer71
viewsA: 2 functions in javascript in the same div
Can be easily solved by defining a global variable. <script> var open = true; function openNav() { document.getElementById("mySidenav").style.width = "250px";…
-
1
votes1
answer30
viewsA: Error In Unity5 Code
Method void Animating (float h, float v) should be declared so void Animating (float h, float v){ } The second mistake is the fact that probably floorHit is not a Vector3. If you want to decrease…
-
1
votes2
answers328
viewsA: Do you know about cookies?
Javascript Cookie There is a very detailed api for working with Cookies through Javascript, in an easy and well documented way. Follows: https://github.com/js-cookie/js-cookie Import: <script…
-
3
votes3
answers68
viewsA: Unity5 engine error in code
Error is in function void Animating (float h, float v); Where the right would be for you to set her off void Turning ()
-
2
votes1
answer70
viewsQ: What’s the real gain from using Mootools!
Not only in the manipulation of elements in Dom, but in its object-oriented architecture. What is the real gain in using instead of Jquery. We take as an example a simple stock control system, with…
-
0
votes1
answer34
viewsQ: Dynamic request between development and production environment
I would like to know how to solve the request problem between a local and production environment. Example: I have a JS function that takes the application content and concatenates with the request.…
javascriptasked Matheus 1,783 -
4
votes6
answers2011
views -
0
votes2
answers64
viewsA: Can I only use HTML5 Form Validation for Client-side validations?
Must use? Yes, is a great and fast way to validate a form, since the user can immediately know if he entered a wrong data. This saves waiting time for an HTTP response, and saves your server from…
-
0
votes3
answers97
viewsA: Each does not work
$('#lista-noticias .box-noticia .conteudo-noticia').each(function() { $(this).find("a").replaceWith("<span>abcd</span>"); }); Follows: https://jsfiddle.net/4gj5subt/…