Skip to main content

Posts

Showing posts with the label software Tools

Agile Methodology with SCRUM Framework Basics

Software development activities can be managed and taken care with different life cycle models. These life cycle models has became legacy since few years. Few of the available Software Development Life Cycle Models in short SDLC are Win-Win Model and Waterfall Model etc. These traditional models has different phases of development.           1. Requirements            2. Analysis            3. Design            4. Implementation            5. Test           6. Documentation  and 7. Maintenance  In SDLC, the above stages are freezed one after the other. If developer is in Design phase and realized that there could be a possibility of change in requirements, then it is not possible to go back one phase and fix in Requirement phase.  These scenarios and use cases has brough...

Java desktop GUI.

Graphical user interface in short GUI makes computer users easy to understand and use the application software comfortably. Almost all modern programming languages allows application developers to develop GUIs. Java has AWT/Swing as default API as part of Java Foundation classes in short JFC which are shipped with JDK. Hence these toolkits can be used directly in our applications with out adding external libraries like jars to our application's class path. But there are some other toolkits which found useful and industry endorsed in developing GUI.      SWT       JFaces [Framework for SWT]      Java FX      Swing      AWT AWT: Abstract window toolkit is available since java first version. AWT uses native operating system resources like Fonts, colors and components like table, tree, dialogues, windows etc. Few notable points about AWT: AWT is heavy weight. It uses OS resources There are l...

Java Multi threaded programming basics

All modern computer hardware architectures and operating systems are capable and optimized for multi processor system and multi threaded system.  Process Vrs Thread: Process is heavy weight where as Thread is light weight. Thread is light weight because process uses it's own address space and thread shares the Process's address space. So Threads are considered to be subset of a process. more over threads consumes less OS resources in terms of physical memory and uses CPU time at most. Junior programmers think concurrency is hard.  Experienced programmers think concurrency is easy.  Senior programmers think concurrency is hard.                                                                                    _ Java Concurrency Essentials by Martin ...

Eclipse Java Editor Shortcuts

Eclipse Oxygen Java editor Shortcuts helps in editing source code more comfortably. Frequently used default shortcuts are listed below.  Description Shortcut Delete Line CTRL + D Copy Line CTRL + ALT + Down Arrow Add method level, class level, member level Comments SHIFT + ALT + J Format Java Source code CTRL + SHIFT + F Make line commented CTRL + / Make multiple lines [block] commented   CTRL + SHIFT + / Search selected similar word within the source document CTRL + K Select line from beginning to end SHIFT + End key Select line from end to beginning SHIFT + Home key Select Word by word in same line CTRL + SHIFT + Right Arrow Move line above ALT + Up Arrow Move line below ALT + Down Arrow Shortcuts can ...

WMI - Windows Management Instrumentaion

WMI is a windows Library used to get the information like no of processes running currently in the computer and their event notifications like process creation modification and deletion notifications, cumputer's name, version, Win32 processes list etc The information above mentioned can be fetched not only from local PC but also the remote machine too.. WMI can be accessed through a query langauge in two ways they are: 1. WBEMTEST.exe [GUI Tool] 2  WMIC- stands for WMI Commandline tool 3. Programatically [using Powershell and VBScript] 1. wbemtest.exe:       How to start          1. go to start                2.  go to Run                  3. Type wbemtest.exe                  4.  the following window opens up. Queries that can be run with this tool 1. Usual queries 2. Not...

Apache Commons Exec API for executing exe files from java program

In my previous post http://java-gui.blogspot.in/2016/12/api-for-executing-exe-files-from-java.html     you have seen using traditional java API to execute exe files from java program. but it is proved that it is not an ideal solution for  programs which handles IO operations and for async executables. you can find more advantages of Apache Commons Exec library over traditional API in the below link.               http://commons.apache.org/proper/commons-exec/index.html Simple example that uses the Exec library: // class to pass the command ex: cmd.exe and its arguments... CommandLine command = new CommandLine("ping"); // arguments to the command object can be passed in 2 ways... command.addArguments("localhost") ; command.addArguments("-t") ; command.addArguments("-count");    or command.addArguments(new String[]{"-t", "-count"}); //handling the IO operations gracefully using LogOutputStream abstract c...

API for executing exe files from java program.

The traditional API for calling the executable in java program is using the Runtime, Process and their methods like exec(command), waitFor() methods respectively. a simple example to execute a notepad.exe from java program using the above API is given below. Process process = Runtime.getRuntime().exec("notepad.exe"); the above code is used to launch the notepad.exe executable from java program. if there are multiple commands needs to be passed then the code would be.... String[] command = {"cmd.exe", "/C", "echo ", "%TEMP%"};  Process process = Runtime.getRuntime().exec(command); the above snippet is used to execute multiple commands in a java program. this code prints the environment variable TEMP on to the console. Handling standard output produced by the above code: BufferedReader input = new BufferedReader(new InputStreamReader(process.getInputStream())); String output = ""; String line = ...

Java IDE for Learners:

           Simple editors like Notepad, Gedit, edit+  definitely allows us to write a program, but it is always difficult to code, debug and manage even smaller applications. and profession IDEs like Eclipse, Netbeans JDeveloper are definitely not suitable for beginners.[They are pretty advanced to students]            What if we have an IDE which allows the learners to understand the basic coding principles of java, Fundamentals of Object Oriented Programming[OOP] with the pictorial representation along with syntax highlighting, scope highlighting and other cool features?.. sounds good right.                                           BlueJ is a simple Java based IDE developed by Kent university for the beginners and students of Java programming language. The coolest thing about BlueJ is it not only allows ...