<< < 24 25 26 27 28 29 30 31 32 33 > >>   Sort: Rank

Verify Java Plugin for Chrome
How to verify if Java Plugin is installed or not in my Chrome browser? The easiest way to if Java Plugin is installed or not in Chrome browser is to: 1. Run Chrome browser. 2. Go to http://java.com/en/download/in stalled.jsp3. Click the "Agree and Continue" button It will tell you if your browse has...
2015-07-17, 624👍, 0💬

Updates are disabled by the administrator on Chrome
When I go to "About Google Chrome" on Chrome menu, I see the "Updates are disabled by the administrator" message below the version number. How can I enable Chrome updates? Chris, Here is how to fix “google chrome updates are disabled by the administrator” provided by P&T IT BROTHER: If your goog...
2015-07-17, 596👍, 0💬

Make Synchronous XMLHttpRequest Call
When making AJAX calls with XMLHttpRequest, how to force it to be synchronous?
2015-07-03, 533👍, 0💬

Difference of encodeURI() and encodeURIComponent()
What is the difference between the encodeURI() function and the encodeURIComponent() function in JavaScript?
2015-07-03, 510👍, 0💬

main method is a standard method used by JVM to execute any java program(Java SE). - Can we declared main method with final m
main method is a standard method used by JVM to execute any java program(Java SE). - Can we declared main method with final modifier? Yes we can define main method with final modifier. package instanceofjava; public MainDemo{ public static final void main(String [] args){ } }
2015-07-01, 436👍, 0💬

main method is a standard method used by JVM to execute any java program(Java SE). - What are the possible main method declar
main method is a standard method used by JVM to execute any java program(Java SE). - What are the possible main method declaration with String[] args? public static void main(String[] args){ } public static void main(String []args){ } public static void main(String args[] ){ } public static void mai...
2015-07-01, 449👍, 0💬

main method is a standard method used by JVM to execute any java program(Java SE). - Can we write static public void main(Str
main method is a standard method used by JVM to execute any java program(Java SE). - Can we write static public void main(String [] args)? Yes we can define main method like static public void main(String[] args){} Order of modifiers we can change. package instanceofjava; public MainDemo{ static pub...
2015-07-01, 433👍, 0💬

main method is a standard method used by JVM to execute any java program(Java SE). - Why the arguments String[] args?
main method is a standard method used by JVM to execute any java program(Java SE). - Why the arguments String[] args? String array variable name args : by the naming conventions they named like that we can write any valid variable name.
2015-07-01, 442👍, 0💬

main method is a standard method used by JVM to execute any java program(Java SE). - Why the name main?
main method is a standard method used by JVM to execute any java program(Java SE). - Why the name main? This is the name which is configured in the JVM.
2015-07-01, 480👍, 0💬

main method is a standard method used by JVM to execute any java program(Java SE). - Why main method return type is void?
main method is a standard method used by JVM to execute any java program(Java SE). - Why main method return type is void? main method wont return anything to JVM so its return type is void.
2015-07-01, 430👍, 0💬

main method is a standard method used by JVM to execute any java program(Java SE). - Why main method is static?
main method is a standard method used by JVM to execute any java program(Java SE). - Why main method is static? To execute main method without creating object then the main method oshould be static so that JVM will call main method by using class name itself.
2015-07-01, 464👍, 0💬

main method is a standard method used by JVM to execute any java program(Java SE). - Why main method is public?
main method is a standard method used by JVM to execute any java program(Java SE). - Why main method is public? To call by JVM from anywhere main method should be public. If JVM wants to call our method outside of our package then our class method should be public. package instanceofjava; public Mai...
2015-07-01, 437👍, 0💬

Royal Caribbean vs. Carnival, Which Stock is the Better Buy?
Royal Caribbean vs. Carnival, Which Stock is the Better Buy? Two of the leading cruise liners in the industry include Royal Caribbean (RCL) and Carnival (CCL). As two large cruise liners, they have similar strengths and weaknesses. Nonetheless, there are distinctions between the two stocks which mig...
2015-07-01, 514👍, 0💬

Facebook Comments for WordPress
Useful PHP Code Snippets for Developers - Facebook Comments for WordPress &lt;div id="fb-root">&lt;/div> &lt;script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en...
2015-07-01, 571👍, 0💬

The Real Way To Check Uploaded File Type
Useful PHP Code Snippets for Developers - The Real Way To Check Uploaded File Type &lt;?php // Here we specify all the type of files we want to accept $extension = array("application/pdf", "image/jpeg", "image/png", "image/gif"); if(isset($_POST['submit'])){ exec("file -i ".$_FILES['inputName'][...
2015-07-01, 879👍, 0💬

WordPress – Scheduling Posts for RSS
Useful PHP Code Snippets for Developers - WordPress – Scheduling Posts for RSS function publish_later_on_feed($where) { global $wpdb; if(is_feed()) { // timestamp in WP-format $now = gmdate('Y-m-d H:i:s'); // value for wait; + device $wait = '5'; // integer // http://dev.mysql.com/doc/refma n/5.0/en/...
2015-06-19, 421👍, 0💬

Validate email Address
Useful PHP Code Snippets for Developers - Validate email Address function is_valid_email($email, $test_mx = false) { if(eregi("^([_a-z0-9-]+)(\.[_a -z0-9-]+)*@([a-z0-9-]+)(\.[a-z 0-9-]+)*(\.[a-z]{2,4})$",$email)) if($test_mx) { list($username, $domain) = split("@", $email); return getmxrr($domain, $m...
2015-06-19, 409👍, 0💬

How to generate an authentication code in PHP ?
Useful PHP Code Snippets for Developers - How to generate an authentication code in PHP ? <?php # This particular code will generate a random string # that is 25 charicters long 25 comes from the number # that is in the for loop $string = "abcdefghijklmnopqrstuvwxyz012 3456789";for($i=0;$i
2015-06-19, 434👍, 0💬

Unzip a Zip File
Useful PHP Code Snippets for Developers - Unzip a Zip File <?php function unzip($location,$newLocation){ if(exec("unzip $location",$arr)){ mkdir($newLocation); for($i = 1;$i //Use the code as following:
2015-06-19, 416👍, 0💬

username, password and date validation with php
Useful PHP Code Snippets for Developers - username, password and date validation with php
2015-06-19, 372👍, 0💬

url, email and ip validation with php
Useful PHP Code Snippets for Developers - url, email and ip validation with php
2015-06-19, 363👍, 0💬

How to short URL Function with PHP ?
Useful PHP Code Snippets for Developers - How to short URL Function with PHP 45){ $length = $length - 30; $first = substr($url, 0, -$length); $last = substr($url, -15); $new = $first."[ ... ]".$last; return $new; }else{ return $url; } } ?> // USAGE <?php $longurl= "http://www.google.com/search? q=...
2015-06-19, 380👍, 0💬

How to get short urls for Twitter with PHP
Useful PHP Code Snippets for Developers - How to get short urls for Twitter with PHP
2015-06-19, 328👍, 0💬

How to get users’ IP Address with PHP
Useful PHP Code Snippets for Developers - How to get users’ IP Address with PHP function getRealIpAddr() { if (!empty($_SERVER['HTTP_CLIENT_ IP']))//check ip from share internet { $ip=$_SERVER['HTTP_CLIENT_IP'] ;} elseif (!empty($_SERVER['HTTP_X_FORWA RDED_FOR']))//to check ip is pass from proxy { $...
2015-06-19, 339👍, 0💬

<< < 24 25 26 27 28 29 30 31 32 33 > >>   Sort: Rank