Buzitweet
Tweets of Busy..Buzzy.. {Whatever you name it}'s World
RSS
    0

    Short Film – Change For A Dollar

    A change for a Dollar changes lives of many people. A man giving change of one dollar to many people and those pennies making bigger changes to their life. A really touching video.

    153 days ago • Uncategorized

    0

    Nostalgia – simple bubble sort in PHP

    PHP
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    <?php
    $A = array(5,3,7,1,9,4,2);
    for($i=0;$i< count($A); $i++)
    for($j=0; $j < $i; $j++)
    if($A[$j] > $A[$i])
    list($A[$i], $A[$j]) = array($A[$j], $A[$i]);
    print_r($A);
    ?>

    156 days ago • Programming

    0

    Problem: Get the file type in shell/terminal (unix) independent of the file extension

    Answer: Use linux command file to get the file type from file header. Eg, if you have a image file without extension, file myfilename will give you the header info:

    eg:

    Shell
    1
    file myfile

    myfilename: JPEG image data, JFIF standard 1.01

    159 days ago • Programming, Technology • Tags: command, file, header, linux, shell, type, unix

    0

    Change browser Address Bar using javascript without page reloading

    Usualy way of doing this is window.location=”path/here”, but this will reload the page.

    If you can load the data using Ajax, you can update the location without reloading the page or without using #

    JavaScript
    1
    2
    3
    4
    5
    window.history.pushState("object or string", "Title", "/www.buzitweet.com");
    //To replace a history, we can use:
    window.history.replaceState("object or string", "Title", "/www.buzitweet.com");

    GitHub is an example for this: https://github.com/urbanairship/ios-phonegap-plugin

    Won’t work in IE :)

    159 days ago • Programming, Technology

    0

    Problem: PhoneGap accessing external url issue in iOS or (any other phone)

    Answer: It is because of whitelisting issue. Got to the project folder and edit PhoneGap.plist file.

    Change value of OpenAllWhitelistURLsInWebView from false to true, also add your host name under ExternalHosts node

    XHTML
    1
    2
    3
    4
    5
    6
    7
    8
    9
    <key>OpenAllWhitelistURLsInWebView</key>
    <true/>
    <key>ExternalHosts</key>
    <array>
    <string>www.mydomain.com</string>
    </array>

    159 days ago • PhoneGap, Programming

    1

    Upload a file using PhoneGap

    JavaScript
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    // Get image handle
    var largeImage = document.getElementById('id-of-your-image'); //or uri path from a library or taken camera pic
    // Show the captured photo
    // The inline CSS rules are used to resize the image
    largeImage.src = imageURI;
    var options = new FileUploadOptions();
    options.fileKey="file";
    //options.fileName="your-wished-filename.ext";
    options.mimeType="image/jpeg";
    var params = new Object();
    params.value1 = "testing";
    params.value2 = "param";
    options.params = params;
    var ft = new FileTransfer();
    ft.upload(imageURI, "http://yourdomain.com/upload.php", win, fail, options);
    // Make sure you use your own site!
    &nbsp;
    // Success reporting
    function win(r) {
    alert("Code = " + r.responseCode);
    alert("Response = " + r.response);
    }
    // Error reporting
    function fail(message) {
    alert('Failed because: ' + message);
    }

    159 days ago • PhoneGap, Programming

    0

    Awesome shadow play just using hands (Never seen before)

    “Lets Culcutta Surprise you” is really an awesome video created just using hands silhouette and this is of course, unseen before. A must watch

    164 days ago • Short-Movie • Tags: culcutta, silhouette

    0

    Mr Techno – Technopark Short Movie Winner

    This is an old video shot an Technopark, Kerala, India. It got first price in that short movie competition. It is very old, but still happy to share with all.

    164 days ago • Indian, Short-Movie • Tags: competition, india, kerala, mr, shortmovie, techno, technopark, winner

    1

    One year in 40 seconds (Video)

    One year is shot continuously using a standing cam and fastened to 40 sec video. Really interesting

    167 days ago • Crazy

    0

    Why this Kolaveri – Kids Version (Sonu Nigam’s Son)

    Kolaveri Song, Sung by Sonu Nigam’s Son. Lyrics altered slightly for kids version. Superbb!!

    168 days ago • Indian

    1 2
    © Buzitweet 2012
    Powered by WordPress • Themify WordPress Themes