Difference between elder and older

Question: I have been having some difficulties telling the difference between elder and older. Would you help me?

Answer: Whether there is any difference between the two depends on the sentence.

Sam is older than Ed.
Sam is elder than Ed.

Sam is the older brother.
Sam is the elder brother.

Source: http://www.usingenglish.com/forum/ask-teacher/46910-difference-between-older-elder.html

Categories: Uncategorized

jQuery.noConflict – Resolving conflicts with other javascript libraries that use $() function

One of the reasons that make a software popular is its extensions and plugins. jQuery has plenty of plugins that do almost anything you want, from simple button hide to full blown galleries. Plugins let non developers easily add functionality they need to their websites and there are times when one might include more than one javascript library such as prototype.js, YUI or mootools with jQuery. They all use $ as their main function name. Including second library might brake the behavior of the first one. To resolve such cases jQuery introduces .noConflict() method.

When you call .noConflict() jQuery will return $() to it’s previous owner and you will need to use jQuery() instead of shorthand $() function.

.noConflict() usage example (From jQuery Docs site)

<html>
  <head>
  <script src="prototype.js"></script>
  <script src="jquery.js"></script>
  <script>
    jQuery.noConflict();
    // Use jQuery via jQuery(...)
    jQuery(document).ready(function(){
        jQuery("div").hide();
    });
    // Use Prototype with $(...), etc.
    $('someid').hide();
  </script>
  </head>
  <body></body>
</html>

You can also use the following code snippets to still use $() in your code, but with one drawback, you will not have access to your other library’s $() method.

// Method 1
jQuery(document).ready(function($){
    $("div").hide();
});

// Method 2
(function($) {
    /* some code that uses $ */ 
})(jQuery);

TIP:
Don’t forget that you can always assign jQuery to any other variable name to use it as your shorthand: var $_ = jQuery;

Article source: http://jquery-howto.blogspot.com/2009/07/jquerynoconflict-resolving-conflicts.html

Categories: jQuery

The Complete Guide for jQuery Developer

“The Complete Guide” for jQuery Developer

by Chirag Chamoli

Have you ever had to develop something yourself only to find out that there had already been a plugin developed?

Don’t you enjoy dreaming about what you could have on your site and finding the right plugin right away?

Then you should find this list of jQuery resources useful to do whatever you want and become a better jQuery developer. In this guide you will find the following materials:

jQuery Rocks
  • Getting Started: introductions to jQuery from a very basic level
  • Tutorials: learn how to do simple and advanced things to your websites
  • Most Useful Plugins: use existing solutions to your problems with UI, images, forms, etc
  • Lists: mine other lists for overlooked items
  • For Designers: find just what a designer needs from jQuery
  • Cheatsheets: download jQuery cheatsheets to code easily
  • Blogs: subscribe to people, writing about jQuery
  • Books: read the books to become a jQuery guru
  • Notable Links: check out interesting links about jQuery

Show details

Categories: jQuery

Add some days with a given date on PHP

Suppose you add some days with a date, then you may use following one:

<?PHP

$howManyDays = 14;
$mdate            =    “02/04/1980”;
$myDate            =    explode(“/”, $mdate); // m/d/Y
$nextDate          =     mktime(0, 0, 0, $myDate[0] , $myDate[1]+$howManyDays, $myDate[2]);
$mdate            =    date(“Y-m-d”,$nextDate);
echo $mdate.”<br><br>”;

$mdate1            =    “1980-02-04”;
$myDate            =    explode(“-“, $mdate1); // Y-m-d
$nextDate          =     mktime(0, 0, 0, $myDate[1], $myDate[2]+$howManyDays14, $myDate[0]);
$mdate1            =    date(“Y-m-d”,$nextDate);
echo $mdate1;

?>

Categories: PHP

If code is poetry, then WordPress is epic.

December 8, 2009 Leave a comment

If code is poetry, then I think WordPress is epic. What do you think?

Categories: Uncategorized

Learning ExtJS

November 23, 2009 2 comments

I am currently trying to learn ExtJS, a great javascript library I have seen ever. BUT,  it seems to very hard to me as a newbie.  A very simple tutorial written by Anis uddin Ahmad of right brain titled of Extjs quick start guide for jQuery Developers is very helpful. If anyone have more site like this for newbie, may share with me on this blog.

Categories: ExtJS

Using MikroTik API with PHP application

March 9, 2009 1 comment

I am currently working with MikroTik API to interface with our in-house development MAC billing software BP-CRM (bracNet Parters CRM) by PHP with MySQL. For that, I am currently searching of various resources about those. If anyone have any idea about that, may contribute in this blog.

Categories: MikroTik API