Posts by Otto • 5,653 points
186 posts
-
1
votes2
answers994
viewsA: Error 403 when trying to "synchronize project with Gradle"
If you are on a firewalled network this may be the problem following the solution No Android Studio va em File>Settings>Gradle>Global Gradle Settings and in the Gradle VM options and…
-
1
votes1
answer1708
viewsA: Centralize in vertical form with Zurb Foundation
If I’m not mistaken he doesn’t have by default as he says here, but you can do it this way: div { display: table-cell; vertical-align: middle; height: 50px; border: 1px solid red; }…
-
3
votes2
answers1814
viewsA: How to access the COOKIE on another page?
Make sure that you are not sending any output to the browser before the function setcookie(). ob_start() must stop the output before the "setcookie ()" error, but cannot be implemented correctly.…
-
1
votes1
answer118
viewsA: Error ORA-12571 encountedred in Windows Service
In his sqlnet.ora Look for --> SQLNET.AUTHENTICATION_SERVICES= (NTS) Change to --> SQLNET.AUTHENTICATION_SERVICES= (NONE)
-
0
votes5
answers1449
viewsA: Sorting in query - Leave last registration in first and then sort by a field
just use something like this order by id desc only complementing for those who failed to understand SELECT * FROM teste ORDER BY id DESC, nome ASC
-
0
votes1
answer536
views -
0
votes3
answers1765
viewsA: "php. h not found" error while installing Intl extension on Mac
See if that helps you Install some dependencies with Homebrew: $ brew install autoconf $ brew install icu4c $ brew link --force icu4c Install and check Pear/PECL (source): $ curl -O…
-
2
votes4
answers1147
viewsA: Mark checkbox if user writes input text in a table
I think that makes it practical to understand $( "#input-a-monitorar" ).keyup(function() { $('.myCheckbox').prop('checked', true); $('.myCheckbox').prop('checked', false); }); I am available for…
-
-1
votes4
answers687
viewsA: include_once has no access to properties, variables or functions of the included file
You are not managing to perform the functions as your include is giving problem: It’s like this: generic('/sistem/exemploSistema/funcoes'); It should be like this:…
-
0
votes1
answer2400
viewsA: How to get the selected Row jquery datatables
from what I’ve seen here is simple using the following command to remove the line can be adapted: $('#button').click( function () { table.row('.selected').remove().draw( false ); } ); If you need…
-
1
votes1
answer439
viewsA: Offline database
You will use JDBC In the following link has all the how to JDBC - Java + Sqlite
-
1
votes1
answer2757
viewsA: Run radio player with extension . m3u8 on Html5
You need to provide the MIME type to work properly <video width="352" height="198" controls> <source src="playlist.m3u8" type="application/x-mpegURL"> </video>…
-
1
votes2
answers1507
viewsA: How to display multiple error messages simultaneously in form?
<p><?php echo "'".$value."'<br>"; ?></p> swap for $error =. "<p>".$value."<br></p>"; at the end of the echo $error loop;…
-
2
votes1
answer469
viewsA: Maintain subdomain sessions with Cakephp
Have a configuration within the app/Config/core.php file to change the domain session cookie: Configure::write('Session', array( 'defaults' => 'php', 'ini' => array( 'cookie_domain' =>…
-
1
votes1
answer255
viewsA: Error loading PDO extension
Follow the link to the Gento-check where you check everything that is needed to run the Gento and report in case of a fault: https://gist.github.com/atomicpages/4383809 After this it is necessary in…
-
5
votes3
answers1785
viewsA: How to deal with multiple queries?
I particularly prefer to use full names that facilitate further debugging and maintenance by others. Example: $queryFuncionarios $queryDiasPlantao It makes it so much easier…
-
2
votes2
answers347
viewsA: How do I set up HHVM for a manually compiled apache?
Follow a practical step by step: Install the HHVM echo deb http://dl.hhvm.com/ubuntu saucy main | sudo tee /etc/apt/sources.list.d/hhvm.list sudo apt-get update sudo apt-get install hhvm-fastcgi…
-
1
votes3
answers666
viewsA: Function with variable amount of parameters, what better way to do?
you can use an array for the parameters or it is not necessary to define them. creates a rule to dynamically handle these values and solved your problem. I use it a lot
javascriptanswered Otto 5,653 -
8
votes2
answers8457
viewsA: Close PDO connection
Look, the simplest impossible: $pdo = null; of course this is not necessary because the connection is automatically closed after the script execution
-
2
votes1
answer4028
viewsA: How to include Bootstrap source files (Glyphicons) in Rails?
no secret is just put the css in the location you want and the images in a folder. check the configuration in css to see if you are finding the path of the images and ready without secret.…
-
-1
votes7
answers54187
viewsA: Remove letters and special characters in a select
I could do that too: select replace('12345698-35',REGEXP '^[a-zA-Z]+$','')
-
0
votes3
answers94
viewsA: Itemid = 435 being added at the bottom of the page link
So this Itemid is there for some reason, but follows below removed. $linkItemid = igUtilityHelper::getItemid($row->gallery_id); $photoList[$i]->link =…
-
1
votes1
answer252
viewsA: Ajax paging via server
So what you can do is set a variable with values coming from an input, select and the like: variavelValor = $('#idCampoAondeVemoValor').val(); "iDisplayLength": variavelValor, As said is very…
-
2
votes1
answer133
viewsA: Wordpress friendly album/? album_id={id} URL for album/{id}
See if this can help you: RewriteRule ^album/(.*)$ album/index.php?album_id=$1 [L] Probably solves your problem
-
1
votes1
answer120
viewsA: Is it possible to customize the Apache directory?
By changing the information below in httpd.conf apache starts to list the contents of the root folder. <directory /diretorio/root/apache> Options +Indexes </directory>…
-
1
votes2
answers3773
viewsA: Group and add array in Javascript
If you have more than one array you can group them using the following form: var first_json = {"name":"joe", "age":27}; var second_json = {"name":"james", "age":32}; var jsons = new Array();…
-
0
votes1
answer58
views -
1
votes2
answers251
viewsA: Apache Forbidden 403 at Elementary OS
This looks like root folder permission problems, I had the same problems in Ubuntu and Mint linux. Revise the permissions.
-
1
votes1
answer938
viewsA: Bank Access Attempt Log (Oracle 11G)
Friend I am forwarding a link with all information of oracle logs where you along with DBA can solve this problem. insert link description here…
-
1
votes1
answer197
viewsA: WP Custom Post Type
'hierarchical' => true, Treats as pages by what I understand you would like to use as a post and its categories. You need to put as: 'hierarchical' => false, And create a taxonomy for that.…
-
1
votes1
answer93
viewsA: How can I use two different banks for a Magento store?
Two seats will not be possible. You won’t be able to import the demo base to the second store, you’ll have to assemble it yourself. I’ve been through this.
-
0
votes1
answer355
viewsA: Wordpress Search for post
You’d have to send your form action to a location where the search is processed by what I see in the code: <form action="<?php echo esc_url( home_url() ); ?>/" method="get"…
-
1
votes1
answer246
viewsA: Error showing products in the Gento store
Looks like you’ve been installing a module incompatible with your version of Magento, huh? Invalid method Mage_catalog_block_product_view_type_simple::displayProductStockStatus Is it some module to…
-
1
votes1
answer648
viewsA: How to send an email confirmation to the registered user through Wordpress?
To email with WP you can do this way: <?php $to = "[email protected]"; $subject = "Learning how to send an Email in WordPress"; $content = "WordPress knowledge"; $status = wp_mail($to,…
-
2
votes5
answers7529
viewsA: How to search recursively using grep
I still think the best thing could be grep-ir "word" . to search for any case sensitive occurrence
-
0
votes2
answers80
viewsA: Taking the last position on the bench
could do something like this case inserted at the time echo $this->Albun->getInsertID(); Insert the code here by taking the last inserted in the base for the table echo…