Friday, February 25, 2011

javascript get JSON from URL like $_GET in PHP

hy guys, i really made this script by my self.

reference is from google.com (LOL)

this script is for get the url query string like $_GET in PHP

sorry i not posting it here coz blogger can not allow my javascript :D

see thsi script in my other blog klik here

nice to share with all of you.

thanks for comeback

Saturday, February 19, 2011

function in_array in javascript

hy guys i got thi script from http://phpjs.org/ this is awesome help me on my project
thanks a lot, this function is used to Checks if a value exists in an array
just like in php (see in_array php documentation)

may you sould try it

function in_array (needle, haystack, argStrict) {
    // http://kevin.vanzonneveld.net
    // +   original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
    // +   improved by: vlado houba
    // +   input by: Billy
    // +   bugfixed by: Brett Zamir (http://brett-zamir.me)
    // *     example 1: in_array('van', ['Kevin', 'van', 'Zonneveld']);
    // *     returns 1: true
    // *     example 2: in_array('vlado', {0: 'Kevin', vlado: 'van', 1: 'Zonneveld'});
    // *     returns 2: false
    // *     example 3: in_array(1, ['1', '2', '3']);
    // *     returns 3: true
    // *     example 3: in_array(1, ['1', '2', '3'], false);
    // *     returns 3: true
    // *     example 4: in_array(1, ['1', '2', '3'], true);
    // *     returns 4: false
    var key = '',
        strict = !! argStrict;

    if (strict) {
        for (key in haystack) {
            if (haystack[key] === needle) {
                return true;
            }
        }
    } else {
        for (key in haystack) {
            if (haystack[key] == needle) {
                return true;
            }
        }
    }

    return false;
}

Thursday, February 17, 2011

"Snippet" syntax highlighting - jQuery plugin

this plugin help me build my project. I was confusing how to highlighting syntax on the page. I searching and searching and searching. lol i found this unbelieveble jQuery plugin name Snippet.

thanks for the developers who create this script, very usefull. I like it.

let me show you the link here

Friday, November 26, 2010

What is Pentaho


Pentaho is the open source business intelligence leader. Thousands of organizations globally depend on Pentaho to make faster and better business decisions that positively impact their bottom lines. Download the Pentaho here.

I already using this software for database migration, this is very usefull, easy to understand, simple navigation.
But, for first time i confuse to using it :D

thanks to pentaho.

Tuesday, May 18, 2010

displays the updated blog in the sidebar on WPMU

lets try this new trict, How to displays the updated blog on WPMU, place this code in the sidebar.php or anything you want  to place it.

<!--added by myDeveLover--><div class="sidebarbox">
  <h4><span>Blog Terupdate</span></h4>
  <?php $blogs = get_last_updated();
  if( is_array( $blogs ) ) { ?>
  <ul>
    <?php foreach( $blogs as $details ) {
    ?><li>
    <a href="http://<?php echo $details[ 'domain' ] . $details[ 'path' ] ?>" title="<?php echo get_blog_option( $details[ 'blog_id' ], 'blogdescription' )?>">
    <?php echo get_blog_option( $details[ 'blog_id' ], 'blogname' ) ?></a>
    </li><?php
    } ?>
  </ul>
  <?php } ?>
</div><!--//end by myDeveLover-->


comment is welcome...