follow me on Twitter

    Subscribe to
    Posts [Atom]


    Joe Estes's Day Off

    Monday, May 26, 2008

    I'm now working 9 days 80 hours so I have every other friday off. Last friday just happened to be that and the camera I ordered my mom happened to come in. I swung by the parents house, ripped the box opened and began filming. This video is far from entertaining and it doesn't truly capture the quality of the Canon Vixia hf10. By default the camera ships from the factory on the lowest quality setting so the first round is in degraded state.

    Labels: ,


    How to Run an Application Outside of Tomcat 5

    Wednesday, May 21, 2008

    Create a context configuration file for the Webapp in the Tomcat directory: (Tomcat Root)/conf/Catalina/localhost

    with an arbitrary name: mywebapp.xml

    and with the content: >Context docBase="/home/fred/bristle/webapps/mywebapp/web" path="/mywebapp">>/Context>

    pointing to the directory where the webapp resides.

    Labels:


    Apache Axis ElementDesc class doesn't have ElementDesc setNillable method

    Tuesday, May 20, 2008

    This is an easy fix. You need the new versions of the Axis jar files. I don't know which one it is exactly so I just imported all of them into my project.

    Labels: ,


    Add a Label List to Blogger

    Sunday, May 18, 2008


    I've finally found a way to display the Lables / Catagories that are assigned to blogger post in blogger. Big ups to Phydeaux for posting this little script where a more in depth article can be perused HERE

    >div id="labelList">>/div> >script type="text/javascript">

    function listLabels(root){
    var baseURL = '/search/label/';
    var baseHeading = "Labels";
    var isFTP = false;
    var llDiv = document.getElementById('labelList');
    var entry = root.entry;
    var h2 = document.createElement('h2');
    h2.className = 'sidebar-title';
    var h2t = document.createTextNode(baseHeading);
    h2.appendChild(h2t);
    llDiv.appendChild(h2);
    var ul = document.createElement('ul');
    ul.id = 'label-list';
    var category = entry.category;
    labelSort = new Array();
    for(p in category){
    labelSort[labelSort.length] = [category[p].term];
    }
    labelSort.sort();
    for (var r=0; r < labelSort.length; r++){
    var li = document.createElement('li');
    var a = document.createElement('a');
    if(isFTP){
    a.href = baseURL + encodeURIComponent(labelSort[r])+'.html';
    }
    else {
    a.href = baseURL + encodeURIComponent(labelSort[r]);
    }
    a.innerHTML = labelSort[r] + ' ';
    li.appendChild(a);
    ul.appendChild(li);
    abnk = document.createTextNode(' ');
    ul.appendChild(abnk);
    }
    llDiv.appendChild(ul);
    }

    >/script>
    >script type="text/javascript" src="http://www.blogger.com/feeds/USERID/blogs/BLOGID?alt=json-in-script&callback=listLabels" >>/script>

    The BLOGID found above is found in the parameters of your url string and the userid is in the parameter string in your blogger profile.

    Labels:


    Generating Stubs from WSDL Using Axis2

    Thursday, May 15, 2008

    This was a fun one. I was attempting to generate the web service stubs from a wsdl file using axis2's WSDL2JAVA.sh file. You would think that you could just plug in your own parameters into the example LINUX command in the Apache AXIS2 Hello World Tutorial.
    That command looks like: sh WSDL2Java.sh -uri http://localhost:8080/axis2/services/SimpleService?wsdl -o /path/to/my/client/code/
    When you do this you get the error: Unrecognized option: -uri
    Well if you look at what the WSDL2Java.sh actual does, it just calls the Axis2.sh delivered in the bin directory of the Axis2 implementation.
    I bypassed the first shell script and ran the follow command: sh /axis2.sh org.apache.axis2.wsdl.WSDL2Java -uri mywsdl.wsdl -o /mydirectory and it generates the file!
    To conclude I didn't do this with usual main artillery: a Mac Book Pro with Mac OS X 10.5 Leopard but rather with a um PowerBook G4 with Mac OS X 10.4 Baby Unicorn. This may have had something to with the blow up but go ahead and try er yourself and let me know.

    Labels:


    I think I need to use soap

    Wednesday, May 14, 2008


    SOAP communicates over http this is good because all servers and browsers and servers communicate in this fashion.

    Rudiments of SOAP
    Envelope - identifies xml document as a soap message(required)
    Header - (optional)
    Body - contains call and response information (required)
    Fault - provides information about errors (optional)

    In the header three attributes are defined in the default name space and these attributes define how to process the SOAP message:
    actor - are used to specify the message for a specific endpoint due to the fact that not every message is intended to only go to one place.
    mustUnderstand - indicates whether the header is mandatory or optional for a recipient to process
    encodingStyle -

    Fault:
    faultcode - A code for identifying the fault
    faultstring - A human readable explanation of the fault
    faultactor - Information about who caused the fault to happen
    detail - Holds application specific error information related to the Body element

    Labels:


    The WSDL



    WSDL - stands for Web Service Description Language
    XML Namespace - expressed as xmlns. It is used for providing uniquely named elements in an xml instance.

    A WSDL has a skeleton of the following elements:
    Porttype - the operations performed by the web service (similar to a java class)
    message - the message used by the web service (similar to a parameter)
    types - the data type used by the web service.
    binding - the communication protocols used by the web service

    A porttype has elements:
    operation - compared to a class method
    input - similar to a a method parameter
    output - similar to a method return type

    The operation has four types:
    One-way -- The operation can receive a message but will not return a response
    Request-response -- The operation can receive a request and will return a response
    Solicit-response -- The operation can send a request and will wait for a response
    Notification -- The operation can send a message but will not wait for a response

    Binding to SOAP
    The binding element has two attributes:
    name - arbitrary binding name
    type - defines the port to bind to

    soap:binding has two elements:
    style: is the kind of soap for example rpc or document
    transport: defines the soap protocol to use for example http
    operation - this element defines operations the port exposes

    Labels:


    test

    Tuesday, May 13, 2008

    iis debug problem - solution change permission on folder to allow iis

    Set an environment Variable in Mac OS X 10.4


    export JAVA_HOME=/Library/Java/Home/
    export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home

    Labels:


    Unix Commands

    Monday, May 12, 2008



    ifconfig -- allows the user to view information about the configured network interface.
    uname -a -- to view Operating System Information
    jar -tvf foo.jar -- view the contents of a jar file
    to find the users on a server: go to cd etc/passwd press more to see more.

    to find a directory or file find . -name "tomcat" -print
    To ssh into a machine you type: ssh machineaddress
    To get to a directory you type: cd then the folder below root
    To run tomcat you type: cd /Applications/tomcat55/bin/
    To start tomcat type: ./startup.sh
    To copy a file to your local machine(in a clean terminal window): scp user@localhost:/directory/foo.zip .
    Which is: scp user@machine:/directory local directory
    To show and hide hidden folders: defaults write com.apple.finder AppleShowAllFiles TRUE
    To force the kill of a tomcat process: ps ef|grep tomcat
    Then kill the individual process: kill -9 816 1017
    816 and 1017 are the process id’s
    to see all process ps –ef
    to run two programs in parallel use the | (pipe)
    to go back a directory type: cd ..
    October 30, 2007
    To run a console with a running display: tail -f catalina.out
    For example: tail -f file.txt in the directory of the file.txt
    To get back to root directory you can type: cd
    To see some of a file you can type: more filname.txt
    To find all lines with phrase you can type: grep phrase file.txt
    To show line numbers in grep type: grep –n phrase file.txt
    To show a file you can type : cat filename when in that directory: cat file.txt
    Show the date: $ date
    show the current logged in users: $ who
    show the user you are logged in as: $ who am i
    see detail about a certain directory ls -l filename
    show everything and hidden file names ls -a
    show all executable files ls -f
    list directory and subdirectories ls -R
    see one terminal full of a file: less
    show file and position in file: less -M
    help: h
    change password: passwd
    move files to a server: sftp user@server
    then: put file.txt

    chmod:
    user access: u
    group access: g
    other access: o
    read: r
    write: w
    execute: x
    add permission to entire directory contents: *
    (in order to access a directory parent directories must have execute permission all the way to root)


    Control Characters
    cancel a command: ctrl c
    delete a character: ctrl h
    erase whole input line: ctrl u
    pause screen output: ctrl s
    restart output: ctrl q
    signal end of input for certain applications or logout: ctrl d

    x windows
    calculator: xcalc &
    new terminal window: xterm &

    Popular Greps
    lsof | grep TCP will show you all your TCP connections

    Labels:


    In Preparation of The New Endeavor

    Saturday, May 10, 2008


    I will be working with some new software starting Monday. It will range from the familiar to the brand new to me. In hopes of getting a leg up on the competition I've jotted down a couple of the technologies while studying up.

    PLM - Product Lifecycle Management. The process of managing a product for its entire life from inception to transition. An propietary implementation of this complex is by Siemens called Team Center.
    DocuShare - a web based content management solution and document repository.
    OCR - Optical Character Recognition

    Labels:


    HTML textarea makes submit button disappear

    Thursday, May 08, 2008


    As we all know HTML is kind of goofy. Why do I use it? Because of a little someone I like to call the world wide web consortium, ever heard of em?

    I ran into this error while creating web application project management site for my own selfish reasons.

    It seams if you use an HTML text area like so:


    >textarea name="content" rows="17" cols="47" wrap="soft" >


    your submit button will up and disappear. If you add a closing tag like:

    >/textarea>



    If you thought you could save like 10 characters of code and just add a / to the begin tag, well guess again. It didn't work for me in Safari. It might work for you. Do it at your own risk.

    Labels: