Wednesday, 19 August 2015

Python in eclipse

In industry especially in Aerospace, some of the projects are based on the Python language for verification purpose. In that case developer or verifier deals with the source or application code written in python. In most of the cases it's not just couple of files to deal with but has large amount of files and it's support files too. If person need to trace code and require to find definitions of support functions and class then it becomes tedious. To make it easy, Eclipse is the solution to deal with.

Given below are steps to use Eclipse for your Python Project.

Steps to Configure Eclipse on your Windows PC:
A. Download Eclipse software for your 32/64 bit OS from internet or by other way.
B. If you are using java 32 then use 32bit of eclipse version else 64 bit eclipse version.
C. Follow the steps mentioned in: www.rose-hulman.edu/class/csse/resources...on-configuration.htm to add python plugin in existing eclipse.
D. Link with existing source so that your .py scripts and utility both clubbed together as mentioned in below steps (“Steps to create Python Project”).

Steps to create Python Project:
Please refer link file "Create Python Project in Eclipse.docx" for detail.


Steps to Run Python script from Eclipse:
Please refer link file "Steps to run python file in Eclipse.docx" for detail.

Note: Here i gave a reference of PFCC project in attached document. In general, everybody should start to referring from step 2 of this document.

For getting clear doubts one can refer link www.ics.uci.edu/~pattis/common/handouts/...eclipse/lecture.html

Tuesday, 11 August 2015

Function list for TCL file in notepad++

Method for the Function List Work for Tcl script


Hello Guys,One more good solution for notepad++.When I was doing my project i came across that function list is not visible for tcl script file and without function list ,it is very tedious to understand code or edit code.so just google it and explore some solution regarding this.Here I tried to explain solution with step by step so it is easy to understand.


Open functionList.xml file (Location : C:\Program Files (x86)\Notepad++\)in an editor.  FunctionList.xml is in the installation directory of Notepad++.
Add this line to the section with all the other association-entries.


 <association langID="29" id="tcl_procedure"/>


Add this to the section <parsers>


<parser id="tcl_procedure" displayName="Tcl source" commentExpr="(#)">
    <function
            mainExpr="^[\t ]*((proc)[\s]+)[^\n]+\{"
            displayMode="$functionName">
        <functionName>
            <nameExpr expr="[\w: ]+ \{.*\}"/>
        </functionName>
    </function>
</parser>

Now press Windows key and go to run window


Then write below line in run window

 %APPDATA%\notepad++



Then It will open window from them just delete functionList.xml file.It is actually cache file.

 Restart Notepad++.




 here you go.......

Reference For BASH script:-

http://99-developer-tools.com/notepad-function-list-tcl-bash/