Posts by Fellipe Soares • 890 points
26 posts
-
0
votes1
answer650
viewsA: How to grab only the post image in wordpress?
I usually use this function below to return the URL of the first image of the post in Wordpress: /* * Esta função retorna a primeira imagem associada ao post * Source:…
-
1
votes1
answer1833
viewsA: Grab Link from the product category and display a list with the sub-categories of the Woocommerce product
You can list categories using the function get_categories(), and pass the parameter taxonomy as product_cat. Example: <?php $taxonomy = 'product_cat'; $orderby = 'name'; $args = array('taxonomy'…
-
2
votes1
answer113
viewsA: How should the perfect backup of wordpress blog be done?
A "complete backup" of Wordpress can be accomplished by storing the following data: Database: The will be the information of your posts, pages, system settings and also some plugins and themes.…
-
0
votes1
answer126
viewsA: Suffix added to Wordpress site URL
As far as I could search the forums of Wordpress, this is a known, recurring error of the plugin’s Geolocation configuration Woocommerce with some configuration of cache active. Research source. It…
-
1
votes1
answer1981
viewsA: Problem "The requested URL /wp-login.php was not found on this server." in wordpress, what to do?
If you have changed the file directory to the site root, you should add the lines as follows on wp-config.php (without the folder WordPress in the end): define('WP_HOME','http://prologis.ufsc.br/');…
-
0
votes1
answer52
viewsA: wordpress - post type link friendly
I believe you resolve this issue simply by adding guia-empresas as a general category, and the others (nome-categoria) as "daughters" of this category. This can be done on the option Father from the…
-
2
votes1
answer3721
viewsA: How to remove redirect loop in Wp?
First check if the domain configured on WordPress that is correct: If you’re having trouble accessing the Dashboard, you can add the settings to the file wp-config.php and go up via FTP :…
wordpressanswered Fellipe Soares 890 -
1
votes2
answers2498
viewsA: Is there a modeling tool for Nosql database?
To Datastax maintains the Datastax Devcenter, which is a tool exactly for what you seek. I couldn’t find any free solution (or open-source) for this resource.…
-
2
votes2
answers757
viewsA: How to deploy with Wordpress
The first thing you need to keep in mind is: I need to see the core of wordpress? You won’t have a problem with the deploy, as it will treat the project as a whole. For this, keep in mind that any…
-
3
votes2
answers87
viewsA: How to install plugins in separate accounts?
I find two ways to accomplish this. The first is by automating the plugins when updates are available. Configuration is performed via filter, and may even be limited to a few plugins: function…
wordpressanswered Fellipe Soares 890 -
1
votes1
answer76
viewsA: Remove duplicate records from a table
First a query will be required to return the number of flights of an airplane, grouped by company: select v.cod_companhia t_comp, count(v.cod_voo) as t_voo, v.cod_aviao as t_avi from voo v where…
-
6
votes1
answer153
viewsA: How do branches in GIT work in relation to SVN?
The answer is in documentation. At each commit, are created snapshots of that same file in the directory of Git. As branches are like pointers that always point to a snapshot. In the example below,…
gitanswered Fellipe Soares 890 -
1
votes1
answer811
viewsA: Change php reply email
One option is to use the method addReplyTo class PHPMailer. Implementation: $mail->AddReplyTo = "$to_resposta"; Link to the Documentation.…
phpanswered Fellipe Soares 890 -
4
votes2
answers117
viewsA: Detect if the site has crashed
Basically it is possible to identify if a host or server is available by performing a ping through his hostaname or IP. An example of ping that worked (i.e., the host/site is standing): Pinging…
serveranswered Fellipe Soares 890 -
3
votes1
answer266
viewsA: Query to multiple tables in mysql
I was able to perform the query as follows: select distinct a.tailnum from aviao a, voos v, fabricante f, modelo m where a.year < 2000 and f.nome = 'Boeing' and v.cancelled = 1 and a.tailnum =…
-
4
votes1
answer115
viewsA: How to include current date in a generated Javadoc?
You can configure this template/template in the Eclipse preferences. Go to Windows/Preferences. In the Editor -> Templates option, add a new one and in the "Template/Pattern" section you inform…
-
1
votes1
answer336
viewsA: Git merge did not go as expected
The process you have executed is the correct one in your intention. As you can check in this example extracted directly from Git SCM. So what may have occurred is that the moment you returned to the…
-
2
votes2
answers501
viewsQ: Error canceling file import in Excel
I’m building a Macro for importing a file in Excel. At some point, when the file location is requested, in case the Worksheet cancel import option, the following error message is returned: Excel…
-
2
votes2
answers1386
viewsA: How to renumber table Ids in Mysql?
Another solution to the scenario presented, ONLY if there are no relationships in this table: SET @contador = 0; UPDATE `tabela_vendas` SET `tabela_vendas`.`id` = @contador := @contador + 1; Source:…
mysqlanswered Fellipe Soares 890 -
7
votes1
answer5094
viewsA: Setting up Tomcat 7 in Eclipse results in HTTP Status 404
This is a common configuration behavior of Apache Tomcat in Eclipse. This is because when the server is created within Eclipse the metadata (temporary information inside the Servers folder) of the…
-
2
votes1
answer670
viewsA: Using Dropbox as a repository for Netbeans 8 projects on Windows
One of the main advantages of Git is the fact that it is a distributed versioning tool. That is, each developer can contribute code to other repositories and at the same time can maintain a public…
-
1
votes1
answer161
viewsA: Outputtext only updates after Tomcat Restart
I found a solution to the problem. I identified that in reality the problem only occurred when the attribute dtPrevistaAplicacao class Vacinacao.java was being sent to the bank with an object of the…
-
1
votes1
answer161
viewsQ: Outputtext only updates after Tomcat Restart
I’m using Tomcat 7, Eclipse Juno (on Windows 7) and Primefaces 5 for my application. After registering some information in the database (vaccines for vaccination booklet), access a screen…
-
6
votes1
answer662
viewsA: Windows problem, does not recognize other RAM
Windows with 32-bit has limited RAM capacity, so even acquiring more memory, the operating system does not recognize due to limitation. The limit of the 32-bit system is 4GB. In fact, it is the…
windowsanswered Fellipe Soares 890 -
2
votes1
answer34
viewsA: "Terminated" message with git add wp-content/
The Git is used for file versioning, not for directories. If you still want to use this directory even if it is empty, use a file .gitignore, and edit it to not recognize files within it in…
gitanswered Fellipe Soares 890 -
6
votes4
answers21058
viewsA: How to push local folder to Github
I had a very similar problem when I started versioning with Git + Github, and this problem occurred when the remote directory was not created for 'origin''. This requires the following command: git…