Posts by Bruno Rozendo • 1,339 points
48 posts
-
1
votes1
answer67
viewsQ: How to redirect request when @Preauthorize returns false
I’m learning about the Spring MVC and Spring Security. How do I redirect the page when the following line returns false within a @Controller ? @PostAuthorize(" hasRole('page')") If the line above…
-
0
votes1
answer1587
viewsA: How do I place an image that will scroll over the background and under the texo?
I guess what you’re missing is knowing which property you should use. For this I strongly recommend the following study script: Understand the property display of css Ex: What difference between…
-
1
votes0
answers152
viewsQ: What should @Preauthorize do?
I’m creating a simple crud with spring-mcv and spring-security. Everything is running perfectly spring-security.xml <b:bean id="handlerWeb1"…
-
0
votes1
answer292
viewsA: App appears message "app stopped" on another device
It’s written in the error message FATAL EXCEPTION: main Process: lcorp.com.temonibus, PID: 28206 java.lang.OutOfMemoryError: Failed to allocate a 101254116 byte allocation with 16772688 free bytes…
androidanswered Bruno Rozendo 1,339 -
0
votes1
answer62
viewsA: Spring Security permissionEvaluator not invoked
After a lot of reading, I got: spring-security.xml <http auto-config="true" use-expressions="true"> <expression-handler ref="expressionHandlerWeb" /> </http> <b:bean…
-
0
votes1
answer62
viewsQ: Spring Security permissionEvaluator not invoked
I’m trying to use my own permissionEvaluator, but the spring is not recognizing/invoking my settings. My current situation: package com.brunorozendo.security; import java.io.Serializable; import…
-
1
votes3
answers524
viewsQ: include library in C is required?
I came across the following situation: Ubuntu 16.01 gcc --version gcc (GCC) 6.3.0 Copyright (C) 2016 Free Software Foundation, Inc. This is free software; see the source for copying conditions.…
-
1
votes1
answer94
viewsQ: Why does code Blocks compile using g++ in a project configured as "C"
I’m learning C and using Codeblocks, I went on File > New > Project > "Console Application" > "GO" > Next and the question appears Please select the language you want use. I select C.…
-
1
votes1
answer269
viewsQ: Pass variable from daughter page to parent page in jsp
I’m making a simple crud in java using jsp and servlets. And I came across the following situation: I have a layout.jsp which makes the include of another dynamic page, which in this case will be…
-
1
votes1
answer4117
viewsQ: Convert ISO-8859-1 string to UTF-8 in java
My goal is to create a converter ISO-8859-1 for UTF-8. I already have this code: import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.IOException;…
-
3
votes1
answer48
viewsQ: Profile network java (jdbc)
What tool can I use to evaluate the response time of a request (jdbc) Ex: query = "SELECT * FROM v$version WHERE banner LIKE '%Oracle%'"; ResultSet rs = stmt.executeQuery(query); // linha de cima ⋀…
-
4
votes0
answers51
viewsQ: Sum of profiles in the Maven?
Setting: I have 10 customers, 3 of them use Websphere , 10 use Tomcat, 7 use jboss. in the pom.xml <profile> <id>cliente01</id> <dependencies> <!-- depencias para…
mavenasked Bruno Rozendo 1,339 -
1
votes0
answers115
viewsQ: Windows auto increment environment variable
Short question I need a variable environment in windows that is auto increment: setx /a PORT=1000 and every time you call %PORT%: setx /a PORT=%PORT%+ 1 the result would be: echo %PORT% 1001 echo…
-
1
votes1
answer119
viewsQ: Diff Ignore blank spaces and line breaks
Does anyone know any diff tool capable of ignoring all blank spaces and line breaks? Ex: File1.html <html> <head> <title>Title</title> File2.html <html><head>…
diffasked Bruno Rozendo 1,339 -
1
votes0
answers164
viewsQ: Redirect domain, using domain provider setting?
I have 2 domains http://brunorozendo.com.br and http://brunorozendo.com The http://brunorozendo.com.br is hosted on github. Can you do the http://brunorozendo.com redirect to the…
-
2
votes2
answers467
viewsQ: Diff without comparing spaces or line break
Someone knows some program capable of making a diff of 2 files, but that do not compare spaces or line breaks. Ex: I have a text file that can have spaces or line breaks. I don’t care about…
diffasked Bruno Rozendo 1,339 -
1
votes2
answers92
viewsA: Eclipse EE shortcut list
Window > Preferences > General > Keys > Export CSV
eclipseanswered Bruno Rozendo 1,339 -
1
votes2
answers92
viewsQ: Eclipse EE shortcut list
I searched the official documentation and did not find. There is only the Eclipse SDK. It is possible to export a PDF or list of ALL Eclipse EE Luna shortcuts?…
eclipseasked Bruno Rozendo 1,339 -
1
votes1
answer354
viewsA: Validate rich:Legend earlier than other rich:Legend
I found the problem! Actually my code is correct the problem was another framework I’m using (Jboss SEAM 2.2), what happened: <rich:calendar ... value="#{dataInicio}" // Essa referência é criada…
jsfanswered Bruno Rozendo 1,339 -
0
votes1
answer354
viewsQ: Validate rich:Legend earlier than other rich:Legend
I have 2 date fields, the second may not be previous first, but I’m not able to validate. Every time you enter the validation dataInicio ALWAYS IS null. From what I’ve seen of the life cycle of jsf,…
jsfasked Bruno Rozendo 1,339 -
1
votes1
answer164
viewsA: Difficulty with AJAX picking nodes values
function Xhr(){ try { return new XMLHttpRequest(); }catch(e){} try { return new ActiveXObject("Msxml3.XMLHTTP"); }catch(e){} try { return new…
-
4
votes1
answer2652
viewsQ: Eclipse Dark in windows
Eclipse Luna was released, and with a new theme available "Dark", always liked darker themes, because of a photosensitivity. In linux the Dark theme is perfect because the scrollbars, the handle of…
-
5
votes1
answer197
viewsQ: What is the difference between Hotdeploy and Publish, Start and with
When I add Tomcat to the eclipse some options appear to me : Start be Publish. How these relate to the hotdeploy?…
-
1
votes2
answers338
viewsA: JSON performance to power an entire website
As a suggestion: tried to use the http://jekyllrb.com/, He’s a CMS who doesn’t work with DB, to run it locally you need ruby and python, after the post is ready, you build ("compiles") and it…
-
2
votes3
answers3201
viewsA: Putting favicon on multiple pages on the same site
The favicon is inserted into the page by html. Faveicon from Stackoverflow <link rel="shortcut icon" href="//cdn.sstatic.net/br/img/favicon.ico?v=dc8ddf0e4768"> Just who each page points to a…
-
3
votes1
answer124
viewsQ: What is the difference between Start and Publish on an Eclipse server?
When I add Tomcat as a server in Eclipse, it appears Start and Publish. What’s the difference between them?…
-
1
votes1
answer1228
viewsA: Original site does not accept CSS that on localhost is working
The most likely cause must be the path that was used in localhost is different in production. Using firefox open the debug (hotkey F12, not firebug) Console > Clear all, and leave only the Net…
-
4
votes1
answer107
viewsQ: Debug Java in Eclipse, excluding classes/packages
My application uses JSF/Hibernate, and a number of other add-ons (jar). When I have to thresh, a page, he stops at breakpoint and after a few Steps (debug) it falls inside the jar of the JSF. You…
-
2
votes1
answer148
viewsQ: Software to query’s JPA
Is there a client (like: pgadmin3, Oracle SQL Developer, Mysql Workbench) for JPQL queries? I have a jpa project, and I need to debug the generated jpql’s. I saw that Squirrel does it, but for HQL.…
-
3
votes2
answers404
viewsA: Using Mysqli, error query
Just change the line while ($resultado = $consulta->fetch()) { for while ($resultado = $consulta->fetch_array()) {
phpanswered Bruno Rozendo 1,339 -
6
votes3
answers8575
viewsA: Why is it recommended to use the "in" unit instead of "px" for fonts?
Em is a relative unit of measure, i.e. 1em may have different sizes depending on the context. The value default of 1em is equal to that of the font-size father of the element. Ex <!DOCTYPE…
cssanswered Bruno Rozendo 1,339 -
1
votes2
answers2365
viewsA: Simulate javascript keystroke events
I made a little script, I believe it’s not the solution, but I believe it might lead you to a. <!doctype html> <html lang="en"> <head> <meta charset="UTF-8">…
-
7
votes2
answers181
viewsQ: How to show the changes made in a SVN review?
I have a review number on svn. How do I (command line) show the changes that have been made in this revision? As far as I could: svn log -r XXXXXX But that way it only shows the text of Commit.…
-
2
votes2
answers1259
viewsQ: How to search within an SVN repository for a change in a file type?
How can I do a search for all the changes made to a file type (in my case *.js) in a range of revisions. Best explained: I have a client saying that after an upgrade in the software a functionality…
svnasked Bruno Rozendo 1,339 -
1
votes2
answers1006
viewsA: How to install Zftool (windows, linux)
My solution Create a folder where zftool will be in my case c:\server\zftool Download the zftool.phar in http://packages.zendframework.com/zftool.phar and put inside the folder above Still inside…
-
2
votes2
answers814
viewsQ: How do you tell Maven that one module depends on another?
I have two modules and each depends on the other. How to say this on Maven dependencies?
mavenasked Bruno Rozendo 1,339 -
3
votes1
answer566
viewsQ: Delete file by command line with different type
It has 2 directories, their contents are the same, but in one of them there can only be java files and the other only files that are not java In the Resources folder are those not java src main…
-
0
votes2
answers20486
viewsQ: How to change the encoding of multiple files from ISO-8859-1 to UTF-8?
I have a project (in java) with more than 100 files, some of them are in ISO others in UTF8. How to change the encoding of all ISO files to UTF-8 without losing the special characters ?…
-
2
votes2
answers155
viewsA: Questions about using Git
I recommend you read Git Guide. Some considerations: You can create a local repository, then add an origin you can clone a project At the end the 2 above will give the same result. After having a…
-
1
votes2
answers452
viewsQ: How to make the return of a query (PDO) bring me an array already?
I have that I have : Periodo | Cliente _________________________ jan2014 | Cliente A jan2014 | Cliente B The one I want : array( 'jan2014' => array( 0 => 'Cliente A', 1 => 'Cliente B', ) )…
-
4
votes2
answers21088
viewsA: How to make these Divs responsive?
Using the Media Queries in CSS, you can do this. See the example below, taken from the site www.maxdesign.com.au. The code is simple, and with a quick analysis you understand the code. <!DOCTYPE…
-
0
votes2
answers1006
viewsQ: How to install Zftool (windows, linux)
How to install zftool on windows and linux?
-
1
votes3
answers408
viewsA: What is the best way to create PHP-related posts?
Most likely you will have to do the system that will suit you. There are CMS’s (Drupal, Wordpress), but you would have to make a migration from your system q depending on the situation can be much…
-
2
votes8
answers56968
viewsA: PHP echo Special character problem ("ç")
Option 1: See the encoding of your php page. There are 2 places to see: when on a server (Ex apache, iis) the pages are served with a defalut encoding (in the case apache is utf-8). File encoding,…
-
18
votes5
answers17559
viewsA: Mysqli vs PDO - which is the most recommended one to use?
It will depend on your project, the PDO difference is not as big as stopping, as an example, the Drupal which is a lord CMS uses PDO, and as an example the eclipse uses the drupal in its market…
-
8
votes3
answers1115
viewsA: Classic ASP out of IIS? Windows x64
I was able to solve it using IIS Express ( @Onosendai tip). I had to make some adjustments because my machine is x64. I did the downlaod http://www.microsoft.com/en-us/download/details.aspx?id=1038…
-
6
votes3
answers1115
viewsQ: Classic ASP out of IIS? Windows x64
Does anyone know any program/server capable of running classic Asp (Vbscript, Jscript) and other than IIS ?
-
0
votes3
answers1142
viewsA: Parallax Animation and Fade for Web
I recommend this Parallax 1 To begin with, it’s simpler and gives you a central idea of how it works. Only move to the next one when you’re 101% sure what’s going on in the code. Parallax 2 this one…