RSS

My quotes

  • Don’t try to control others ,Control yourself
  • If you have a problem ,talk to multiple people , At last talk to your parents.
  • As siblings if you grown up fighting each other ,they start loving each other once they v grown up.
  • If you have a bad day  force your self to hang out friends who can make you laugh.
  • Girls couldn’ t concentrate on their work when they have problems ,so talk to them and distract their attention for something else,you may not solve the problem but it ll lessen the stress. Btw I don’t know about guyes :P
  • In life you have to be responsible for the things that you don’t have control of . That simply sucks ..
  • Pay attention to earn people besides earning money.If you know how to deal with people ,You can get done anything.But never have friendships for benefits, it doesn’t work.If so once revealed the truth they become your biggest enemy .
  • The world is digital ,most of the time it is 0 or 1 , true or false ,win or lose ,success or fail .Among all transition is the hardest .
  • Among all your friends you will have few close friends .. that s your inner circle
  • Mom is the only person who likes you and loves you, for who you are .. Everyone else  need small/big adjustment(s)
  • When we were kids we cry for getting what we want. When we become adults we silently cry for forgetting what we like
  • If something hurts you. First question is the suffering is worthwhile.. Otherwise get over it ..
  • Mom you are the best.. :)
  • You know what falling in love is a sin.. Sometimes it kills you everyday.. :’(
 
Leave a comment

Posted by on January 1, 2013 in Life

 

Tags:

Murphy’s law

The simplest explanation for Morphy’s law is “Anything that can go wrong it will go wrong”.
few real life examples are;

  • Say You have a friend who is going out for lunch.And one day you don’t bring your lunch.While your friend has left out for lunch
    you just call your friend and tell her to bring a lunch packet for you .First she says ok. and suddenly she says I don’t have money.
  • You go to leisure park on a holiday morning.They said that park is open after 4.pm
  • You take lunch from a restaurant.You go through the desert menu.You wanted to eat ‘gulabjan’ and try to order .But waiter says actually we don’t have it today
  • You are asked to develop a software component .After implementation you test it thoroughly and inform your boss that your assignment has finished.When your boss looking at your work.He try to perform something that you didn’t test.
  • You plan for a weekend trip.So you try to make an early reservation for 1st class seat.But all 1st class seats were reserved while you are making the reservation.
  • You are going to make your favorite meal .In the half way through you run out of cooking gass
  • You are about to deliver your baby.Everything is fine.But you don’t want to take a risk and you try to get the baby in 37 weeks.But just before 37 weeks complete you get hospitalized and you barely save your life.The doctor says that “You know this is a very rare case,you r lucky to save your life ”
  •  
    3 Comments

    Posted by on June 9, 2010 in Life, Uncategorized

     

    Tags: , ,

    dojo.io.iframe.send -TypeError in IE

    I tried to use dojo iframe submission for uploading a file.This is what I did.
    I have a html form named elementForm enctype set to multipart/form-data

    In my js I tried to submit this form

    function uploadPic(){
    dojo.io.iframe.send({
    method: "post",
    form: "elementForm",
    url:"save_picture_element.htm",
    preventCache: true,
    handleAs: 'json',
    load: successElementUpload,
    error:errorElementUpload,
    sync: true,
    timeout: 10000
    });
    }
    function successElementUpload(response,ioArgs){
    }
    function errorElementUpload(Error){
    alert(Error);
    }

    In FF this works .But in IE (7&8) I got this error
    TypeError:getElementsByTagName(…).0.value is null or not an object
    and IE generated a Http GET request instead of Http POST request.
    I found same question being asked in dojo mailing list

    Solution
    It seems that the problem is with form action.In html form I haven’t specified the form action but in js I have specified that (method: “post”).
    But in IE form action is not set to POST.Since it generates a default GET request.
    So I tried setting form action in HTML form itself.Inside form tag set (method=”post”).Then it worked in IE also :)

     
    Leave a comment

    Posted by on March 30, 2010 in dojo

     

    Tags: ,

    Mbuni MMSBOX – Mms VAS Gateway

    I tried to install cvs version of Mbuni which can be downloaded from Sourceforge.

    As I found the mbuni project can be downloaded from the following link. http://sourceforge.net/projects/mbuni/

    Released version can be found in  http://www.mbuni.org/downloads/1.4.0/mbuni-1.4.0.tar.gz

    I used the source code compilation method.

    First I needed to install several dependencies of Mbuni

    Installed Kannel patched version found in mbuni site.

    Installed AMR Encoder Decoder and given patch

    Above steps are mandatory, otherwise there ll be compilation errors in mbuni.

    For  basic installation I followed following steps

    Inside mbuni source folder

    chmod +x  configure

    ./configure --with-kannel-dir=DIR

    DIR is where my kannel  installation is. I installed Kannel in /usr/local/kannel.

    So DIR = /usr/local/kannel

    Compile mbuni source


    make
    make install

    by default  `make install’ will install all the files in

    /usr/local/bin and /usr/local/lib.

    For alter the default installation directory try

    ./configure ––help

    Try out the options available

    For  configure the mbuni vas gateway I used the  sample configuration file provided with mbuni.

    Configuration files can be found in  doc/examples folder.

    I used mmsbox.conf file for configuring the vas gateway.

    I copied the mmsbox.conf file into  /etc/

    cp mmsbox.conf /etc

    Im mmsbox need to add following configurations

    1. Communicate with operator mmsc(s)
    2. Communicate with VAS application.

    Communicate with operator mmsc.
    Modify the group mmsc

    group = mmsc
    id = local
    mmsc-url = http://mbuni:test@localhost:1982/soap
    incoming-username = user
    incoming-password = pass
    incoming-port = 12345
    type = soap

    id – is a mandatory field
    mmsc-url – url address of the mmsc.
    Normally mmsc needs to configure vas application with short code,vas_usrename ,vas_password,vasp-url ..etc
    So VAS application can send messages to mmsc using

    http://vas_username:vas_password@mmsc_host:mm7_port

    Here I have used Mbuni mmsc as my mmsc. I configured VASP account in mmsc.conf.

    group = mms-vasp
    vasp-id = newscorp
    type = soap
    short-codes = 111,1234
    vasp-username = mbuni
    vasp-password = test
    vasp-url = http://user:pass@localhost:12345/

    Here vasp-url is the url of vas gw
    Any incoming message to shortcode 111 or 1234 will post to vasp-url
    user:pass is the incoming-username and incoming-password of vas gw.
    localhost – Vas gw host
    12345 is the port which vas gw listens for messages from mmsc

    In mmsc-url
    mbuni:test is vasp-username and vasp-password
    localhost – mmsc host
    1982 –mmsc mm7 listen port
    When a VAS application sends a message to VAS GW ,VAS GW will post messages to mmsc- url .

    Communicate with VAS application

    Group mms-service can be used to send message to VAS application

    group = mms-service
    name = me
    post-url = http://localhost/test-mbuni.php
    catch-all = false
    http-post-parameters = fx=true&images[]=%i&text[]=%t&skip=1
    accept-x-mbuni-headers = true
    pass-thro-headers = X-NOKIA-MMSC-Charging,X-NOKIA-MMSC-Charged-Party
    keyword = test
    omit-empty = no
    suppress-reply = true
    service-code = regular

    According to my mms-service configuration
    messages which has the word test will post to http://localhost/test-mbuni.php
    Vas gw only passes images and text content to service.

    Catch message sent to post-url

    I have configured a vasp account in my mbuni mmsc.which has the shortcode of
    111,1234. So when I send a mms to shortcode 111 or 1234,mmsc should send the message to VAS GW and
    VAS GW should route to the message into correct mms-service (mm7 application).
    According to my mms-service configuration,incoming message which has text ‘test’ will route to test-mbuni.php

    test-mbuni.php will get a message which has following format.(multipart/form-data)


    POST /test-mbuni.php HTTP/1.1
    Host: localhost
    Connection: keep-alive
    User-Agent: Mbuni/cvs-20091014
    X-Mbuni-Message-ID: qf1032.5.x293.98
    X-Mbuni-MMSC-ID: newscorp
    X-Mbuni-LinkedID: o-8n-qf1029.5.x876.70@mmsc
    X-Mbuni-From: 172.16.11.18@unknown
    X-Mbuni-TransactionID: Mbuni-qf1032.5.x293.98
    X-Mbuni-To: 111
    X-Mbuni-Message-Date: Wed, 17 Feb 2010 10:03:49 GMT
    X-Mbuni-Received-Date: Wed, 17 Feb 2010 10:03:52 GMT
    Content-Type: multipart/form-data; boundary=_boundary_800406929_1266401032_C_s_bd914252053
    MIME-Version: 1.0
    Content-Length: 435
    --_boundary_800406929_1266401032_C_s_bd914252053
    Content-Disposition: form-data; name="fx"
    true
    --_boundary_800406929_1266401032_C_s_bd914252053
    Content-Disposition: form-data; name="text[]"; filename="This_is.txt"
    Content-Type: text/plain; charset=utf-8
    This is 4 test
    --_boundary_800406929_1266401032_C_s_bd914252053
    Content-Disposition: form-data; name="skip"
    1
    --_boundary_800406929_1266401032_C_s_bd914252053--

    Capture mms content

    This is a sample php script which extracts mms content and save them as separate files.


    $uploaddir = '/var/www/html/';
    foreach ($_FILES as $i => $file) {
    $part = $_FILES[$i];
    $uploadfile = $uploaddir . basename $part['name'][0]);
    if(move_uploaded_file($part['tmp_name'][0],$part['name'][0])) {
    echo "File is valid, and was successfully uploaded.\n";
    }
    else {
    echo "File upload error!\n";
    }
    }

     
    7 Comments

    Posted by on February 18, 2010 in mmsc

     

    Tags: , , , , , ,

    Mms Vas Gateway

    According to my interpretation VAS gateway operates between MMSC(s) and VAS Application(s).
    It switches messages between mmsc and vas application

    mmsc and vas gateway

    Protocol between MMSC and MMS VAS GW is MM7.

     
    Leave a comment

    Posted by on February 17, 2010 in mmsc

     

    Tags: , ,

    MMS TO EMAIL & EMAIL TO MMS

    After installed mbuni mmsc,now I can send mms mobile to mobile. This is using MM1 interface.There are
    sevral MM interfaces available in Mbuni.
    It supports essential MM interfaces.MM1,MM3,MM4 and MM7.

    MM1 – Interface between mobile and the mmsc
    MM3 -Interface between MMSC and external servers
    MM4 -Interface for foriegn MMSCs
    MM7 -Interface between VASP s (Value added service providers)
    This post is about how to configure mbuni mmsc for sending mms as an email and vise versa.

    Mbuni communicates with SMTP/Mail interface for delivering mms as an email or email as a MMS.

    MMS2EMAIL
    First take a look how to deliver mms to email account

    For that purpose we need to install MTA(Mail transfer agent)like postfix,or we can use default sendmail also.

    Install and configure postfix (sendmail) for sending mails.

    Then set the following parameter in mbuni mmsc.conf file

    send-mail-prog = /usr/sbin/sendmail -f '%f' '%t'

    we can set these parameters also
    mms-notify-text = "You have received a multimedia message from %S, go to XXX to view it"
    mms-notify-unprovisioned-text = "This is a test"
    mms-to-email-txt = "This is a multimedia message (HTML suppressed)"
    mms-to-email-html = "This is a multimedia message powered by Mbuni"
    mms-to-email-default-subject = "This is a multimedia message"

    restart mbuni .Lets use mmssend utility to check mms2email functionality.

    mmssend -f [from no] -t [valid email] -m sample.mms -b /etc/mmsc.conf

    After that check logs

    EMAIL2MMS

    For this configuration we need mail transfer agent (postfix) .We need to tell postfix how to route emails to mbuni.
    I used the method stated in this link
    Other than that I needed to give access rights to postfix to access mbuin log files (access log ,mmsc.log)
    set permisson of Mbuni log file folder
    chmod 644 logfolder/*

    In mbuni configuration I need to set the
    email2mms-relay-hosts
    This is to specify which domain that mbuni gets email messages.Mbuni only accepts messages from that domains.Here I needed to add mbuni’s own domain name also as a relay host.If mbuni mmsc connected with other operator mmscs
    need to add that host names also.And there after need to configure group “foreign mms gateways configuration MM4″

     
    1 Comment

    Posted by on November 29, 2009 in mmsc

     

    Tags: , , ,

    Webcam not working with skype

    I was using Skype in my Fedora 9 (kernel release -2.6.25-14.fc9.i686)machine and tried to use the ETEL E-10 phone as a web cam .
    When I tried to test my video device in Skype screen remained as a black ,
    and got following errors

    Skype V4L2: Could not find a suitable capture format
    Skype V4L2: Could not find a suitable capture format
    Starting the process…
    Skype Xv: Xv ports available: 33
    Skype XShm: XShm support enabled
    Skype Xv: Using Xv port 57
    Skype Xv: No suitable overlay format found

    For solving the issue I had to install libv4l libraries
    Libraries for fc9 can be found here
    Or simply install with yum install libv4l

    Then I started skype giving following command line arguments
    LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype
    more detail explanation found in this article

     
    Leave a comment

    Posted by on November 29, 2009 in technology, Uncategorized

     

    Tags: ,

     
    Follow

    Get every new post delivered to your Inbox.