Posts by Filipe • 878 points
16 posts
-
4
votes2
answers181
viewsA: Do not ask for credentials if user is not authenticated
Maybe you can intercept the message with the done jquery ajax method, as follows: $.ajax({ headers: { "accept": "application/json;odata=verbose", "content-type": "application/json;odata=verbose" },…
-
0
votes2
answers167
viewsA: How to use Jquery Custom Scrollbar on elements with display:None
The element can only be used by jQuery when the element is comi display:block or something similar, you could try applying the custom scrollbar as soon as the element is displayed. Ask the question…
-
1
votes6
answers2374
viewsA: How to select all "empty" elements
In this fiddle comtemplamos the collection of elements that have no value however it is only possible to obtain the initial state of the fields. Basically $('input:not([value])') takes all the input…
-
2
votes4
answers1075
views -
11
votes4
answers16118
viewsA: What is the difference between Static and self in PHP?
self serves to access class properties within itself, that is, for all instances there will only be a single value since the property is class. static is a qualifier that generates a class property…
-
2
votes3
answers24198
viewsA: Wait for Ajax return in synchronous function
In the latter case, when nothing is working: function foo () { var a = false; $.ajax({ url: "foo" // substitua por qualquer URL real }).done(function () { a = true; }); setInterval(function () { if…
-
5
votes1
answer154
viewsQ: Getting Factory null in spring sessionfactory with configured resource
The name of the class containing the SessionFactory is DataProvider and has the following implementation: @Resource(name="sessionFactory") protected SessionFactory factory; protected Class<E>…
-
4
votes3
answers589
viewsQ: Is there any way to run batch files during the build of a Maven project?
I have a. bat file that performs some prerequisites during the build of my Maven project. I want to run this file . bat automatically when I build the project I developed Is there any way to…
-
4
votes4
answers17336
viewsA: How do I copy commits from one branch to another?
Heed: You should not perform this procedure if you have already forced the push to the remote repository, as other developers may already have pull of that repository. You don’t need to remove the…
-
14
votes2
answers20956
viewsA: How do I get changes from a specific branch/branch of a remote repository in GIT?
It must use the following command if it does not have the branch on the local machine: git checkout --track -b <apelido_do_branch_local>…
-
2
votes2
answers1399
viewsQ: Configure Hibernate transactions only with Jersey API Annotations
I want to use something similar to org.springframework.transaction.annotation.Transactional Spring that configures a Transaction only using only the Jersey API. Something similar to the code that…
-
2
votes5
answers140
viewsA: Is it possible to scroll to git bash?
I believe what you are trying to do is what this post here explains. Below copy of the original text of the site: The Windows command prompt (cmd.exe) has Always been known for being underpowered…
-
5
votes2
answers1118
viewsQ: Options to generate javascript library documentation
Currently I have used much the jsdoc3 with the docstrap, however requires a large amount of third party libraries to generate documentation with node and grunt, someone knows a robust alternative…
-
10
votes3
answers671
viewsQ: A C program can tell which OS it is compiling?
I am developing a multi-platform C API and need to know if there is any way to know which OS is being compiled. For example, it could be a pre compilation directive #ifdef LINUX…
-
2
votes1
answer472
views -
5
votes1
answer925
viewsQ: How to determine which HTML file should be displayed as input in Jersey?
I’m trying to find a way to provide a correct entry page in Jersey. A login page when there is no logged in user, otherwise I should display another homepage that will call Restful services…