Posts by Eduardo Silva • 3,449 points
77 posts
-
7
votes2
answers1211
viewsA: Passing data between Activity Android
Use Intents. In his Activity 1, use a code more or less like this: Intent i = new Intent(getApplicationContext(), NewActivity.class); i.putExtra("id_pessoa", "1234"); i.putExtra("nome_pessoa", "John…
-
2
votes1
answer88
viewsA: Fix Sum result php mysql
Use the function number_format(): echo '<tr><td colspan="3">TOTAL: ' . number_format($total, 2, ".", "") . '</td></tr>'; Where: 1st parameter: number to be formatted. 2nd…
-
6
votes1
answer355
viewsQ: Detect when user presses ENTER
I have a jQuery code that detects when the key ENTER is pressed, but the event is also called when I use Shift + ENTER, for example. How do I detect only the ENTER? The intention is to send the form…
jqueryasked Eduardo Silva 3,449 -
0
votes1
answer393
viewsA: The constructor Service(URL, Qname, Webservicefeature[]) is Undefined
The problem was I’m using Apache CXF, which registers itself as the JAX-WS Provider in the JVM, so even though I have the jaxws-rt : 2.2 in my classpath/pom it will not be used, the fix was to…
-
1
votes1
answer467
viewsQ: Persist JPA object array
I’m trying to persist a ArrayList of Entity in JPA with the following for: EntityManagerFactory emf = Persistence.createEntityManagerFactory("PU"); EntityManager em = emf.createEntityManager();…
-
0
votes1
answer393
viewsQ: The constructor Service(URL, Qname, Webservicefeature[]) is Undefined
I am consuming a Webservice in my Java application and am encountering the following error: The constructor Service(URL, Qname, Webservicefeature[]) is Undefined public AnaliseCredito(URL…
-
1
votes1
answer795
viewsQ: Join data from 2 sheets and point differences
I have 2 excel spreadsheets, one has project management data from a fictitious company and another the same data from a fictitious factory: PLANILHA 1: Empresa ------------------------------ Projeto…
excelasked Eduardo Silva 3,449 -
3
votes2
answers566
viewsQ: 400 (Bad Request) when sending array to Spring Controller using AJAX
POST http://localhost:7001/app/workflow/execute/ 400 (Bad Request) I’m getting this error when trying to send 2 array’s to my Spring controller, but I’m getting this error, tried some solutions I…
-
1
votes1
answer667
viewsA: Error 404-Not Found Spring MVC application
Solved, but in a strange way, I detected a import of a lib that I did not possess in my classpath and the eclipse didn’t accuse me of that mistake (The import xxx cannot be resolved). When making a…
-
1
votes1
answer667
viewsQ: Error 404-Not Found Spring MVC application
I’m getting the bug Error 404-Not Found: The server has not found Anything matching the Request-URI when trying to access any url of my application, the strange thing is that the page index.jsp…
-
5
votes2
answers4723
viewsA: Anchor to another page with scroll to the content
The process is almost the same and very simple, just put the nome_da_pagina#nome_da_ancora: <a href="contato.html#maps">Nos encontre no mapa</a> But if you do this redirection by…
-
3
votes1
answer124
viewsQ: How to do an Xpath expression in an XML with multiple namespaces?
I have the following xml: <root xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <body xmlns="http://www.foo.com/bar"> <checkCredit> <CheckCreditOut> <nomeSerasa />…
-
0
votes1
answer494
viewsA: How to make a div with 100% height? (passing viewport)
Simply add the property position: fixed in his div.
-
4
votes1
answer803
viewsA: import Gotham book font with css
You are trying to import the font the wrong way, first you have to define a font-face in your style sheet, and then use it: @font-face { font-family: 'FontName'; src:…
cssanswered Eduardo Silva 3,449 -
1
votes2
answers545
viewsA: Summernote plugin fullscreen modal problem
You can fix this problem by adding the attribute z-index: -1 in class modal-backdrop. Other considerations: Make sure your modal is out of any div or element of your page, always put them before…
-
1
votes2
answers2198
viewsA: Navbar bootstrap getting behind the banner
Your code has some problems: Your navbar does not appear, it is not declared correctly or you forgot to put in the code, or is missing: <div class"navbar navbar-inverse">. Remove the classes…
-
4
votes1
answer2004
viewsA: Place search form on the right of the navbar
For this use the class navbar-right: <div class="col-sm-4 col-md-4 navbar-right">
-
1
votes1
answer538
viewsA: Give ID to a Jumbotron
You don’t necessarily need different id’s, can do using same classes, see: .jumbotron.success { background-color: #4CAF50; } .jumbotron.warning { background-color: #FF9800; } .jumbotron.danger {…
-
0
votes1
answer111
viewsQ: Adding Event Click on a Twitter Typeahead Result
I have the following js code that prepares a search field using the Twitter Typeahead: var users = new Bloodhound({ datumTokenizer: Bloodhound.tokenizers.obj.whitespace('cname'), queryTokenizer:…
-
1
votes1
answer992
viewsA: How to make a pop-up to insert an email appear when clicking a button
Hello, Maicon First of all, the answers to your question are broad, so I will answer you using 2 methods: Using only CSS + jQuery. Using a library called Bootstrap. Using only CSS + jQuery Basically…
-
1
votes2
answers1890
viewsA: Margin problem (or padding) in panel with Bootstrap list
In your case, just take the values of padding class panel-body, then to adjust the list to the panel remove the lower margin of the same, follows the code: .panel-body { padding: 0 !important; }…
-
5
votes1
answer12122
viewsA: How to increase input text and break line automatically
You can’t. The only HTML element made to have multiple lines is the <textarea>: <textarea cols="30" rows="5"></textarea> From HTML 5 you can use the attribute wrap="hard" to force…
-
1
votes2
answers461
viewsA: Compare if there is already a record in BD Mysql
Well, come on. First, your table has serious structuring problems, you do not keep (at least in this table) at any time what the customer is making the reservation, and also saves the final/start…
mysqlanswered Eduardo Silva 3,449 -
0
votes3
answers714
viewsA: Can the + symbol on a website name affect searches?
Don’t use many special characters in your page title. Search engines tend to ignore special characters. For example, Google ignores scores and other special symbols. The most commonly used…
seoanswered Eduardo Silva 3,449 -
2
votes1
answer598
viewsA: How to create CSS classes containing other Bootstrap classes
Yes! You can create a class to be used together with the Bootstrap component class, so you only change what you really want to change. See this example using the code you used in the question:…
-
1
votes3
answers3929
viewsA: pick element after being inserted into DOM with jQuery Append
I could not understand very well what you want, but it seems to me that you want to prevent the user to add 2 equal values, it is not? If so, just create a array to store the values already entered…
-
3
votes2
answers2609
viewsA: Run function only once after site loading
Using javascript only: function setCookie(cname, cvalue, exdays) { var d = new Date(); d.setTime( d.getTime() + (exdays * 24 * 60 * 60 * 1000) ); var expires = 'expires=' + d.toUTCString();…
-
4
votes1
answer153
viewsA: Sublime Text read Less file with CSS syntax
The syntax of css is different from the less, what you can and indeed the right to do is to install the Packagecontrol (should already come embedded in the sublime xD) and install the less package.…
sublime-textanswered Eduardo Silva 3,449 -
1
votes1
answer555
viewsQ: Flag characters that exceed limit in textarea like on Twitter
I have this javascript function that counts typed characters in a textarea and shows the user: function countPublishCharactersAbout(val) { var len = val.value.length; var count = 240 - len; if…
-
0
votes1
answer57
viewsA: Link does not click in small dimensions
Using the Inspecionar Elemento on your website I noticed a div calling for <div class="col-md-3 sidebar"> that positions itself in front of all the elements of the site, I took the property…
-
3
votes2
answers575
viewsA: Use <style> inside if of javascript
You cannot declare a css stylesheet within a javascript. Replace the code <style></style> for senha.style.backgroundColor = "#f00";, for example. See the example below for better…
-
1
votes1
answer91
viewsA: move_uploaded_file can’t catch a file
Add the attribute name to his input: <input id=\"arquivo\" name=\"arquivo\" class=\"upload\" type=\"file\" />
-
5
votes8
answers17275
viewsA: Difference between while and for
Both work well, but what you use will depend on your requirements. for will execute the instructions through a known sequence for (i = 0; i < 10; i++) - traverse lists, vectors, execute a defined…
-
7
votes2
answers125
viewsA: Login
Good friend, first what you need to understand is what a cookie is, come on. What is a cookie? Technically speaking, a cookie is a set of information that is stored on the user’s machine, so it can,…
-
2
votes2
answers838
viewsA: How to create a button if you are logged in to an account
Check that the session is active using the method isset(). if ( isset($_SESSION["login_usuario"]) && isset($_SESSION["senha_usuario"])) { echo "<button…
-
2
votes1
answer259
viewsA: indexing vs page generation with PHP
A user-friendly URL needs not only to be friendly to be well positioned in a search, but to have the keyword (key/search word). So the way you retrieve page content and display/manipulate* is…
-
4
votes1
answer1145
viewsA: Sass - how to compile the minified file?
sass --watch scss:css --style compressed
-
1
votes1
answer561
viewsA: Panel title with responsive pull-right button
You can use the class pull-right, or else the class close. I made an example with the use of each of these options. Now I don’t understand why you’re wearing buttons in the title of panel. <link…
-
23
votes6
answers15200
viewsA: What is and how does Bootstrap work?
Bootstrap is a front-end framework, explaining roughly, it provides you front-end components (css, Sass, Less and js) ready for you to use in your application. Bootstrap depends basically on 2…
-
0
votes1
answer739
viewsA: Use of Resultset, converting String to Array
You’re looking to ride a Array with 2 values, or 2 Array with 1 value each? Depending on the case, you can create a model and create a ArrayList of your kind. You are using toCharArray(), then you…
-
2
votes2
answers468
viewsQ: Regular expression problem in . htaccess
I have the following rules in my file .htaccess: RewriteRule ^first-login/([a-zA-Z0-9]+)$ ./first-login.php?userKey=$1&step=1 RewriteRule ^first-login/([a-zA-Z0-9]+)?([0-9]+)$…
-
2
votes1
answer205
viewsQ: Notice: Undefined index in file type field
I have a form with type fields text and file: <form id="first-setup" method="post" enctype="multipart/form-data" data-toggle="validator"> <input type="hidden" id="userkey"…
phpasked Eduardo Silva 3,449 -
0
votes1
answer6753
viewsA: Add server in eclipse option not shown
Okay, first let’s add a server in the eclipse by going up: Window > Preferences > Server > Runtime Environments > Add... Now that we have our server added, let’s check our perspective…
eclipseanswered Eduardo Silva 3,449 -
13
votes2
answers970
viewsA: Input radio that looks checkbox?
You can do this simply by using only css. What the code below does is basically re-style the label radio to look like a checkbox, hide the real radio and then replace it using the pseudo-element…
-
2
votes2
answers196
viewsA: Display dialogs when successful
You are using PDO? Modify the code for something like this: Classe Dao try { // If you want to change (Don't forget the ;) // http://dev.mysql.com/doc/refman/5.6/en/create-database.html //$sql_query…
-
16
votes1
answer1779
viewsQ: UX best practices for signage and form usability
Today I came across an interesting fact: in the last 10 years, our attention span dropped from 12 to only 5 minutes. A fact that can be confirmed by the increasing number of users of microblogs such…
uxasked Eduardo Silva 3,449 -
8
votes2
answers2831
viewsA: use PHP to know if sent email has been opened
Disposition-Notification-To What I recommend you do is add this to your email header: Disposition-Notification-To: [email protected] This is basically a request to the email client for you to…
-
13
votes3
answers1055
viewsQ: Is there any performance gain when using ternary operator instead of a conditional operator?
What is the difference in performance using conditional operators and ternary operators? Is there any significant gain or the choice of use of ternary operators is unique to code simplification?…
-
0
votes1
answer272
viewsQ: Trying blocked Phpmailer login
Good night, I have a php code that sends a simple email to the user using a Gmail account, already activated the Access to less secure apps but I’m still getting that feedback: 2015-04-01 01:24:04…
-
13
votes3
answers2689
viewsA: How to rename all tables in a Mysql database
The easy way, since 50 is a not so great number of lines: RENAME TABLE Cliente TO Cliente_PE, Produto TO Produto_PE, TabelaX TO TabelaX_PE See the sql manual. You can also do this using the…