Posts by Isvaldo Fernandes • 1,690 points
35 posts
-
4
votes2
answers643
viewsA: How to send an error message to view
Solution, there is a method in the DSL call dedicated to this "hook" Securityconfiguration http.authorizeRequests() .antMatchers("/home", "/").authenticated()…
-
0
votes2
answers793
viewsA: What HTTP methods can a Crawler not track?
This is independent of Crawler, you can simulate any request. Curl curl --request POST 'http://www.somedomain.com/' curl --request DELETE 'http://www.somedomain.com/' curl --request PUT…
-
4
votes2
answers643
viewsQ: How to send an error message to view
I am a little lost here, I would like to put a parameter in the view to inform the user that his password is wrong, expired etc. the problem that spring-security identifies.…
-
5
votes2
answers73
viewsQ: Audio compatibility problem with firefox API
I’m using the API to emit some sounds, the problem is that in Firefox I can’t get around mp3, but how can I include other formatting in that code? How can I add another font ogg for example? I’m…
-
1
votes2
answers3565
viewsA: Difference between operating system and mobile platform
I believe it’s the same thing, but seen in different ways. When it comes to android operating system, we are referring to the system able to manage the resources of the phone hardware... Now when we…
-
1
votes1
answer107
viewsA: Java website software integration
You need to enter the URL and capture the information within the element you want. Here’s how to access a java URL: public static void main(String[] args) { URL url; InputStream is = null;…
-
0
votes1
answer482
viewsA: JUNIT Eclipse - java.lang.Classnotfoundexception
I managed to solve, it was not the best solution but I got. The mess I made with eclipse was in the file . This is hidden in the Workspace folder (if you use the default folder). To view the file…
-
4
votes2
answers3807
viewsA: What’s the best language for Restful?
There is no language that is best for REST so directly. I’ll leave a recommendation, Python ! There are many Interesting tools to develop RESTFULL python API among them Web2py,Django Web2py Doc…
-
0
votes1
answer482
viewsQ: JUNIT Eclipse - java.lang.Classnotfoundexception
All my tests using JUNIT no longer work. I tried unfortunately to remove all the /bin and some other configuration files. project .classpath. OK so far was already a lot of nonsense, then I tried to…
-
1
votes2
answers9322
viewsA: How to push remote branches?
Come on, first see how your repository is git status You’re in the right branch ? Has commit missing ? Branch is Outdated ? None of the above ? Case branch wrong git checkout ResultadoAPI If there…
gitanswered Isvaldo Fernandes 1,690 -
3
votes1
answer2070
viewsA: Java Arraylist - Overriding values
You need to create new instances of this Person object you created public class exercicio { public static void main(String[] args) { Scanner input = new Scanner(System.in); Operacoes acao = new…
-
1
votes0
answers128
viewsQ: How to capture pid of processes that are accessing x service
I would like to know a way to monitor all processes that are using a service/ system functionality, more specifically want monitor processes requesting and modifying the position of mouse, I tried…
-
1
votes1
answer334
viewsA: Problems using the switch on JS
You can separate the date into 2 pieces, and reassemble the contents like this $(document).ready(function(){ var $sort = $('a'); var $list = $('.galeria'); var $listLi = $('a',$list);…
javascriptanswered Isvaldo Fernandes 1,690 -
1
votes1
answer288
viewsQ: Reset pointer address after being incremented several times
I have the following code #include <stdio.h> #define T_INT 5 int main(int argc, char *argv[]) { int v[T_INT],i; int *p = &v; /* Preenchendo o vetor*/ for (i=0;i<T_INT;i++){ v[i] = i; }…
casked Isvaldo Fernandes 1,690 -
1
votes2
answers1138
viewsQ: Is there an Interpreter for C?
I would like to test small chunks of C code in the same way I can with Python, opening the terminal and testing command by command, this would be possible with c?…
-
2
votes2
answers1138
viewsA: Is there an Interpreter for C?
I found the Picoc Click on the link and download the installation files Open in a folder and type in make | make test terminal Execute Picoc by passing parameter -i, thus . /picoc -i you can run…
-
3
votes3
answers2928
viewsA: How to replace in html string only in texts within (between) tags?
If you want to replace only the content of the tags, you can do so var html = $.parseHTML('<b> ola mundo</b>\ <a href="hehehe"> vem mundo </a>\ <div> nao troque o mundo…
-
2
votes2
answers3962
viewsA: Taking System Time in C
A simple "way" to calculate the time difference using little code #include<stdio.h> #include<time.h> int main(int arc, char *argv[]) { clock_t t1, t2; // duas variáveis para guardar o…
-
6
votes1
answer291
viewsQ: How to build a Web2py query by quantifying the difference between days
I’m using Web2py (Python), query using the DAL I wonder if it’s possible to pick up the difference in days, something close to that Example #!/usr/bin/env python # -*- coding: utf-8 -*- resultado =…
-
3
votes2
answers1271
viewsA: Does the memory consumption of a variable increase each time it is used?
The answer to your question is nay, if you define a variable it allocates a space in memory, this space will be used until the famous Garbage Collection find it necessary to free up space.…
-
1
votes1
answer178
viewsA: How to insert an audio/mp3 using Cakephp?
Following the documentation of that helper the exit would be like this: <?php echo $this->Html->media('audio.mp3'); ?> // saida <audio src="/files/audio.mp3"></audio>…
-
23
votes4
answers55577
viewsA: How to validate client-side CPF with script?
Its code does not work for many reasons, among them, when you copied the source came some tags as entities, the tags for came like this "<" ">", has a flying "j" serving as…
-
5
votes5
answers1721
viewsA: Is it possible to change the type of the variable in Java?
No, java variables are immutable, but, just out of curiosity, you can give a "steal", changing the object but keeping the variable. public static void main(String[] args) { Object a = 1; a = new…
-
1
votes1
answer344
viewsA: How to put a footer as a footer without using css or javascript?
Not, not in the right way... The tags have only one semantic sense, that is they are not pre-estillized to work according to their goal, these new tags came to give a harmony in the construction of…
html5answered Isvaldo Fernandes 1,690 -
14
votes2
answers17517
viewsA: Real difference between point operator (.) and arrow operator (->) in C?
Both are equivalent, there is an advantage in using one or the other, usually the copier has something called "syntactic sugar", which is actually a facilitation to write the code, this is very…
-
4
votes1
answer376
viewsA: In Django why does the is_authenticated method always return True?
Quick response This method appears in models.Anonymoususer and models.User, and, User objects will only exist if you are authenticated, otherwise you will have an instance of Anonymoususer with…
-
1
votes1
answer80
viewsA: Can you determine a line of code for each browser?
You can do this in many ways... Javascript "pure" var BrowserDetect = { init: function () { this.browser = this.searchString(this.dataBrowser) || "Other"; this.version =…
-
7
votes1
answer1791
viewsA: How to make an animation by replacing images
You can use API Canvas to change the images giving the impression of movement, build maps, and use all the features of javascript/Html5 to give interactivity to your images Take this example, a coin…
-
11
votes3
answers1588
viewsA: How to filter data entries in PHP
Objective response ! strip_tags() allows other types of insertion of XSS then use htmlspecialchars() echo htmlspecialchars($Variavel, ENT_QUOTES, 'UTF-8'); Long answer..... Let’s start by parts,…
-
1
votes1
answer860
viewsA: How to use jQuery + Ajax with Java EE
So your problem is conceptual, you need to understand how this requests engine works, you could use JSON to return several parameters on the page. Example of JSON use in your case: { "erroempty": {…
-
2
votes5
answers2474
viewsA: How to select a checkbox and recover data in the database?
Your question is very generic, yet you can provide the example you want You need the following steps to accomplish this goal ! Create a javascript monitoring to detect when the checkbox has been…
-
1
votes1
answer1256
viewsA: Error trying to connect to a local Mysql database
Configure your Database according to this tutorial: #1 – Edite o arquivo: sudo nano /etc/mysql/my.cnf #2 – Altere a seguinte linha: #bind-address = 127.0.0.1 #Deixando assim: #bind-address = 0.0.0.0…
-
6
votes3
answers3722
viewsA: Connecting LED via USB
Not why... you can not do it in a "Beautiful" way, a solution would be to turn off and on the USB output, but I am almost sure that OS will not let you do it so easy. USB is fully dedicated to…
c#answered Isvaldo Fernandes 1,690 -
2
votes2
answers7557
viewsA: How to Save Read Chained List in File?
You can write the data in a vector or in a Struct, depends on the implementation you will do, put some references at the end of the answer. see an example of how to write an array of integers in the…
-
12
votes5
answers6659
viewsA: Browserify + Nodejs [Node: File or directory not found]
I had this same problem, installed it here and solved (: sudo apt-get install nodejs-legacy I couldn’t solve by creating symbolic links, I don’t know if my example applies to this situation, but…