Posts by Ricardo • 14,521 points
350 posts
-
2
votes2
answers694
viewsA: Count html pages with php
Here is an example of paging that involves a database search: <?php //conexão com o banco de dados mysql_connect("localhost","root",""); mysql_select_db("banco_teste" ); //verifica a página atual…
-
3
votes2
answers124
viewsA: Minified pages and processing for each request
You should Minificar and Compactar (note that they are different things) the HTML, CSS and JS of your site along with the images, but I work with Dwoo Templates I maintain a version without…
-
1
votes1
answer840
viewsQ: Anomalous Behavior of Google Analytics
Use the Google Analytics on my website however it has an anomalous behavior: When I open 2 to infinite pages of my site in a single browser is computed as a single active user. When I open 2 up to…
-
1
votes1
answer115
viewsQ: Error creating "Google Sitelinks"
I’m implementing a Google Sitelinks I’ve already created a Custom Search Engine from google to my website and can do searches normally by URL Publico but I will not add to Search Box on the page (is…
rich-snippetsasked Ricardo 14,521 -
2
votes3
answers74
viewsA: Problem when creating project
Use the Android Studio it has full support to Android and is liable to use the Jetbrains, Google no longer provides support for ADT (eclipse plugin for developing Android), logo o ADT tends not to…
-
0
votes2
answers602
viewsA: Eclipse (java project) - src folder error
Use the Android Studio it has full support to Android and is passive in the use of the jetbrains, Google no longer provides support for ADT (eclipse plugin to develop Android), so the ADT tends not…
-
0
votes1
answer84
viewsA: Problem on android SDK
Use the Android Studio it has full support to Android and is passive in the use of the jetbrains, Google no longer provides support for ADT (soon it is possible that this is not supporting the…
-
1
votes1
answer2904
viewsA: XAMPP - Apache error
This error is due to the fact that you already have one MySql previously installed, this MySqlthat had already installed is receiving requisitions on port 3306 and the MySql that you are trying to…
-
2
votes2
answers903
viewsA: Search through ID and attribute
To search for both (Redundant): $('#Y[data-id="X"]').html('hauahu'); To search for the id is this way with javascript pure: var x = document.getElementById("Y"); To search by class (will return an…
-
1
votes1
answer2126
viewsQ: Direct download without playback
I have an HTML file where there are some links to download, but some links are not downloading themselves but opening in the browser itself, as files . txt and . mp3, files like . rar and . zip are…
-
4
votes1
answer3038
viewsA: Directory listing of the server appears in the browser
To not list your directories, use this directive: Options -Indexes No . htaccess or directory settings: <Directory /www/pasta> Options -Indexes </Directory> Sources: Disabling directory…
-
2
votes1
answer404
viewsA: How do I know which elements (js, css) are taking the longest to render?
1st Option (Using the browser): Keystone F12 in your browser (chrome or firefox I presume). Click on the tab Network. Go to your website. You will see the time of each download of each file and the…
-
0
votes1
answer214
viewsQ: Create slide down menu Responsive
I have a set of links (which have a stylization that makes them look like buttons) on my site, they work properly when on a computer browser or tablet but when on smartphones would like to transform…
-
1
votes2
answers154
viewsA: Android studio has ndk support?
Use the Android Studio it has full support to Android and is passive of using jetbrains plugins, Google no longer provides support for ADT (eclipse plugin to develop Android), soon the ADT tends not…
-
2
votes2
answers2201
viewsQ: Display element when mouse is over an image
I have 4 elements <div> where they have a component that is only displayed when the user hovers over the <div> container (the one that has class="thumbanil") however when I move the…
-
0
votes2
answers93
viewsA: What is the right way to configure the body of the page before you start styling the other elements?
I usually arrange it like this when I can use some framework as twitter-bootstrap: I create a header using the tag <header>. I create a <div> where it will contain the…
-
6
votes4
answers12786
viewsA: How to create a java class?
Initially it is called the main method of the main class (program start), but no instance of the class (object) is created just by doing this. To create an instance of a class, it is necessary to…
-
1
votes3
answers74
viewsA: How to select information from a table without duplicate values
Just use DISTINCT SELECT DISTINCT SOBRENOME FROM ALUNOS; Alternatives: Use a GROUP BY SELECT SOBRENOME FROM ALUNOS GROUP BY SOBRENOME;…
-
0
votes3
answers2938
viewsA: Assign CSS value to an HTML via Javascript
Using Javascript pure, if you do not want/can use jquery: var elemento = document.querySelector("#teste"); elemento.style.backgroundColor = "#D93600";
-
2
votes1
answer556
viewsQ: Displaying an image instead of two using og:image
I’m using tags og: Open Graph to have a snippet customized when my website link is shared, but when I paste the link to compartilhar me is given an option of images to be inserted (via selection…
-
0
votes2
answers104
viewsA: How do images/videos adjust themselves?
An approach different from the one presented and without the use of Twitter-Bootstrap would be the use of HTML5 tags. See the example below (run it in an html file to see the correct result in…
-
2
votes1
answer572
viewsQ: Object-Oriented Multithread in Native C++11?
How is implemented the Multithread Orientado a Objetos in C++11? in java this is possible through the Class Extension Thread / Implementation of the interface Runnable and overwriting the Run Method…
-
1
votes1
answer939
viewsQ: Maintain spacing between elements but no spacing between tags
I’m removing Todos the whitespace of my files HTML aiming to have a good reduction of its size (on average 5%) however when I do it is removed the white space between the elements when the HTML is…
-
1
votes2
answers71
viewsA: Doubt about the case if switch
Use two equals signals in comparisons, the way you did was performing an assignment and this is true soon would always enter the if: $estado == 1; This way is comparing whether the valores on both…
-
1
votes1
answer48
viewsQ: Error 500 when adding redirects to errors 425 to 499
I have a file .htdocs where in it has multiple error redirects (has for all types of error HTTP, and that’s all there is in the file): ErrorDocument 400 /PROJETOS/error.php?status=error_400 however…
-
7
votes2
answers12739
viewsA: Upload Only from Images
Tag <input> <input type="file" name="arquivos" class="btn btn-success" accept="image/png, image/jpeg" multiple /> Now the button will accept only image type files with . jpeg and . png…
-
9
votes4
answers455
viewsQ: Is it appropriate to create a`CSS Sprite` with disparate images?
It is appropriate to create a CSS Sprite with images of different dimensions? Because I have exactly 20 images where their height and width are limited: Maximum image height is 60px; Maximum width…
-
4
votes2
answers191
viewsQ: Serve libraries with CDN or Own Server?
Aiming performance is more performative to use a CDN (providing the library’s full and primary version) or distributing versions of Custom Libraries (e.g.: jQuery UI that provides only the effect…
-
1
votes2
answers378
viewsA: I can’t get a form field to be sent to the email with phpmailer
Your input has two attributes name like this textarea <textarea placeholder=" Mensagem" name="Mensagem" required name=mensagem></textarea> If I understand correctly you want to send a…
-
6
votes2
answers962
viewsA: What is the difference between Encoding, Encryption and Hashing?
Simplistic definition Encoding: is the way in which character sets are mapped and manipulated. Encryption: is the process of being cryptographic a data (given any). Hashing: is the process of…
-
1
votes1
answer98
viewsQ: Cache static pages in the browser
How to make a page .html stay in browser cache for a period of 20 minutes after it is downloaded? Obs: The Page is static and there is no "Back-end" is all done with HTML, CSS and JS, is staying at…
-
0
votes1
answer45
viewsQ: Delete CSS applied to Object Brothers clicked with Javascript
How could resetar a CSS applied with Javascript via Click element? I have a table whose tr and td are created dynamically and a table table is created directly on HTML static, the td naturally do…
-
1
votes2
answers583
viewsA: Send emails with built-in HTML/CSS Cakephp
1º I used Mandriljs which is a service that sends me 12 Thousand emails for free to you (this is not spam). works as a field medium to not need a server. Access link (you need to create an account):…
-
1
votes2
answers2209
viewsA: Take larger existing value in a number array
Another simple solution would be: int max = array.get(0); for ( int i = 1; i < array.length; i++) { if ( array.get(i) > max) { max = array.get(i); } }…
-
1
votes1
answer1239
viewsA: Is there a Java function equivalent to var_dump()?
There is no equivalent in java, but I found a solution that can be useful in Soen (Link), I will translate it below: Your alternatives are to replace the method toString() from the object to the…
-
16
votes3
answers2341
viewsQ: Good practices using CSS
What are the best practices in CSS to maintain código limpo, compacto and manutenível? Should a simpler and less rigid form of selectors be used? (Scenario: There’s a div with an image inside)…
-
1
votes2
answers3587
viewsA: Catch json values in Curl return
If I understand your question correctly this way will meet with what you need: // Pega o json decodificado $jsonDecodificado = json_decode($server_output, true); foreach($jsonDecodificado as $key…
-
6
votes1
answer21883
viewsQ: How to capture parameters passed by the URL using javascript?
How to capture parameters passed by URL (GET method) using javascript? it is also possible to capture parameters passed via POST method?
-
0
votes4
answers316
viewsA: "Pure" structs (no pointer) and C error handling
Code removing a Node, in it it is possible to see the return types, see that the return is a noL (in the header noL *remove_no_lista) and that there is a return NULL at the end of the post return of…
-
1
votes2
answers1890
viewsA: Margin problem (or padding) in panel with Bootstrap list
Try to reset the edge of the panel .panel-primary { border: 0 none; }
-
4
votes1
answer3345
viewsA: How to write the percentage symbol on a string in Java?
To escape the % use two percent %%
-
10
votes2
answers256
viewsQ: Recursion in CUDA and Opencl
It is possible to work with recursiveness in parallel when working with unique technologies for parelelism (Multithread) using the graphics card as an instrument CUDA and OpenCL? if yes how is done…
-
5
votes1
answer831
viewsA: About the difference between Visual Basic and Basic
Your statement is correct according to the wikipedia and tag wiki Vb Tag VB Wiki text Visual Basic (abbreviated VB) is a programming language produced by Microsoft, and is an integral part of the…
visual-basic-6answered Ricardo 14,521 -
7
votes2
answers160
viewsQ: Prevent Insertion of Zalgo Text in Inputs
I have a Aplicação Web that has user registration, I would like to know how to prevent the user send as name, email (registration data) a Zalgo Text. Example of Zalgo Text: T̃͟͏̧̟͓̯̘͓͙͔o̤̫͋ͯͫ̂…
-
1
votes3
answers714
viewsA: Can the + symbol on a website name affect searches?
Prohibited is not however Crawlers and Spiders may not interpret the symbol with the same goal as you at the time you placed it, for they make more sense the - be a word separator, a + be a space or…
-
3
votes1
answer673
viewsA: Eclipse or android studio?
Android Studio, Google no longer supports ADT (eclipse plugin for android development), so ADT tends not to support the new Android Apiss (which is currently in evisão 22).
-
0
votes1
answer169
viewsQ: Test Web System on Smartphone
I have an application in PHP that is rotating in the XAMPP and is being accessed via http://localhost/ she’s running on the computer but I’d like to test her on my smartphone (via browser), how do I…
-
2
votes3
answers178
viewsA: Effect of filling in a line
The Easy pie Chart Plugin provides the same effect as the website presented Link to download: Download Example of use of Easy pie Chart: $(function() { //Cria um instancia $('.chart').easyPieChart({…
-
5
votes1
answer8087
viewsA: How to make an image rotate
A similar question on the Soen went against his doubt: HTML: <img class="image" src="http://makeameme.org/media/templates/120/grumpy_cat.jpg" alt="" width="120" height="120"> CSS: .image {…
-
0
votes4
answers930
viewsA: Optimize loading of images
Base 64 Perform the Encode base64 images is a very good alternative to saving charging time, how? instead of making a request to the server for an image every time, the image (encoded in Base64) is…