Minggu, 14 Agustus 2016

NetBeans Platform Training

NetBeans Platform Training

It’s official now: The JasperReport Visual Designer will be released as an open source project. Genomatix , the software company I’m working for, has decided to let me release the JasperReport Visual Designer, most likely under the CDDL license. Thanks for the comments and for the offer to contribute. I have created Project “jarvis” on java.net, there is no content yet, but I will add screenshots and the roadmap during the next days.


I improved the usability of the visual designer a lot during the last two weeks, and I hope to be ready with this part by the end of the week.

I will have to a lot of cleaning up in the sources and update them with the new license until I can release some code. I’m planning to have an initial prerelease before the end of this year. Everyone is blogging about switching IDEs these days. I guess trying eclipse for a while might really be helpful for for improving netbeans. One thing that I really liked about eclipse is, that there are mirror sites for update centers. I think this is something netbeans should also provide. We are currently porting a Rich Client Application to netbeans, and this is one thing I was really missing. I also asked Roumen for this feature at the NUG in munich.

Seems that everytime a module has been updated the user needs to select a mirror for the next module-So I had to check repeatedly, wether my update was again stuck, because eclipse needed another mirror site for a module. The list always contained the same mirrors, so I don’t think this is necessary.   From that point of view, I like the netbeans solution better.

Maybe there is a way to combine the better user experience of netbeans and still have mirror sites by letting the user define default mirror-sites for update centers. Another way might be to let users select the mirror sites for all modules at the beginning of the update instead of interupting the whole process for that.
I have added drag&drop support, resizing and baseline support to the JasperReportEditor .

I also had a hard time finding out how to activate some of them, and today there was a posting about how to activate undo/redo, so I thought I should share my findings on this:


All you need to do is override your Topcomponents getUndoRedo() method.


1. Add a variable to your topcomponent:


  private UndoRedo.Manager undoRedoManager = new UndoRedoManager();


2. Add the following code:


  public UndoRedo getUndoRedo(){
       return getUndoRedoManager();
   }
     UndoRedo.Manager getUndoRedoManager() {
       if (undoRedoManager == null) {
           undoRedoManager = new UndoRedoManager();
           undoRedoManager.setLimit(50);
       }
       return undoRedoManager;
   }
     // [Undo manager performing undo/redo in AWT event thread should not be
   //  probably implemented here - in FormModel - but separately.]
   static class UndoRedoManager extends UndoRedo.Manager {
       private Mutex.ExceptionAction runUndo = new Mutex.ExceptionAction() {
           public Object run() throws Exception {
               superUndo();
               return null;
           }
       };
       private Mutex.ExceptionAction runRedo = new Mutex.ExceptionAction() {
           public Object run() throws Exception {
               superRedo();
               return null;
           }
       };
             public void superUndo() throws CannotUndoException {
           super.undo();
       }
       public void superRedo() throws CannotRedoException {
           super.redo();
       }
             public void undo() throws CannotUndoException {
           if (java.awt.EventQueue.isDispatchThread()) {
               superUndo();
           } else {
               try {
                   Mutex.EVENT.readAccess(runUndo);
               } catch (MutexException ex) {
                   Exception e = ex.getException();
                   if (e instanceof CannotUndoException)
                       throw (CannotUndoException) e;
                   else // should not happen, ignore
                       e.printStackTrace();
               }
           }
       }
             public void redo() throws CannotRedoException {
           if (java.awt.EventQueue.isDispatchThread()) {
               superRedo();
           } else {
               try {
                   Mutex.EVENT.readAccess(runRedo);
               } catch (MutexException ex) {
                   Exception e = ex.getException();
                   if (e instanceof CannotRedoException)
                       throw (CannotRedoException) e;
                   else // should not happen, ignore
                       e.printStackTrace();
               }
           }
       }
   }


3. To show that it works you can add some example undoable edit (e.g. in the constructor):


 undoRedoManager.addEdit(new UndoableEdit() {
            public boolean addEdit(UndoableEdit anEdit) {
                return true;
            }
            public boolean canRedo() {
                return true;
            }
            public boolean canUndo() {
                return true;
            }
            public void die() {
            }
            public String getPresentationName() {
                return "my edit";
            }
            public String getRedoPresentationName() {
                 return "my edit";
            }
            public String getUndoPresentationName() {
                 return "my edit";
            }
            public boolean isSignificant() {
                return true;
            }
            public void redo() throws CannotRedoException {
            }
            public boolean replaceEdit(UndoableEdit anEdit) {
                return true;
            }
            public void undo() throws CannotUndoException {
            }
        });
              

In the last blog of this series we have added some basic support for IzPack via a module suites build script and an Install script. Now we will edit the scripts to make the installer a little more useful. I don’t now how I could tell the Installer to unzip the file we have added, so we’ll use ant to unzip the distribution file generated by the build-zip task. Afterwards we will edit the IzPack-installer.xml to pack it again.


1. Add a new target “build-unzip” to your modules build.xml and alter the izpack target to depend on it

      
        <izpack input="${basedir}/IzPack-install.xml"
                output="${basedir}/IzPack-install.jar"
                installerType="standard"
                basedir="${basedir}"
                izPackDir="${basedir}/"/>
   


2. Alter the IzPack-install.xml to pack the directories . Replace the occurrences of  by your applications name:
       
            The base files
           
            " targetdir="$INSTALL_PATH"/>
            .conf" targetdir="$INSTALL_PATH//etc/"/>
            .conf"/>
       
   
8<------8

The new file definition for .conf will overwrite the default file. The parsable tag indicates that your .conf contains variables that the installer will replace with their values during the installation.

3. Now you need to supply this file (.conf) and add it  to your module suites root dir:

8.conf---8


 # ${HOME} will be replaced by JVM user.home system property
default_userdir="${HOME}/.${APPNAME}/dev"
default_mac_userdir="${HOME}/Library/Application Support/${APPNAME}/dev"

# options used by the launcher by default, can be overridden by explicit
# command line switches
default_options="-J-Xms24m -J-Xmx64m -J-Dnetbeans.logger.console=true -J-ea"

# default location of JDK/JRE, can be overridden by using --jdkhome  switch
jdkhome="$JAVA_HOME"

# clusters' paths separated by path.separator (semicolon on Windows, colon on Unices)
#extra_clusters=

The $JAVA_HOME variable will be replaced by IzPack with the current Runtime.

4. Now run the install task. The installer built from this will create the correct directory structure. If you install on your own machine the installed application can be launched from the bin directory.
2

Online Medical Coding and Billing Classes

Online Medical Coding and Billing Classes

Are absolutely adamant in providing you all the related information in case you  are seeking online courses and classes in the field of medical billing and  coding. Medicine is a very vast field and medical billers and coders are  becoming a very significant component of this very community. These  professionals are in high demand whether it is an inpatient hospital or an  outpatient hospital, various health care organizations, clinics etc. these  professionals are being needed to accomplish the strenuous task of compiling a  patient’s record and his/her medical bill according to the insurance companies  codes. These professionals tend to be the intermediates between the insurance  companies and health care providers/practitioners/patients. And, this is the  reason that the courses and certifications being offered in this very line are  getting very high in demand. With this, no less emphasis is to be laid upon  online classes and courses being issued for this field.
                         
Getting certified courses and getting yourself  enrolled in reputed and credible online classes in the field of medical billing  and coding is no more a myth. With Onlinemedicalcodingandbillingclasses.com, this  can be achieved very conveniently. There are many such students who would be  looking forward to join online classes for medical billing and coding courses.  It happens many a times that it becomes very difficult to work and study side  by side especially if both require the physical presence. With the help of  online education option, it has become very convenient to seek guidance and  learning with convenience and without any hassle and tension. Same is the case  with online medical billing and coding classes.
                         

 There is a huge number of such  students who work somewhere else in the morning or night and who want to  acquire certifications in this very line. We at  Onlinemedicalcodingandbillingclasses.com intend to offer all the related  information regarding online classes and courses being offered in this very  line. There are various online institutions and  schools that offer online classes for medical billing and coding courses. There  are many such locally operating institutions as well which offer virtual education  side by side.
                         

 We at Onlinemedicalcodingandbillingclasses.com have got a  compilation of varied schools and institutions offering online classes for this  very field. Medical billing and coding is a vast field and different students  want to go for different specialization subjects in this very field. We have  got varied level of online courses and classes being initiated in the field of  medical coding and billing. A student is to select a school and then, the type  of course and class which he/she intends to attend.  In case, any visitor feel some sort of  difficulty as how to choose and select a specified class, our customer care  representatives are there for twenty four hours assistance.
                        These online classes are to be joined according  to the individual needs and requirements. As an initial learner, you will be  introduced to basic level courses and you will be offered advanced level  classes if you already have acquired some basic certification. Onlinemedicalcodingandbillingclasses.com  is there to offer every sort of help in this regard. Besides providing the  information about these online courses and their respective online classes,  students are guided as well in order to make the right selection. These online  classes will not only make them avail these courses with convenience rather  will open up new opportunities in form of a better future as well.
   
2

Sabtu, 13 Agustus 2016

Online Medical Billing and Coding - Making Use of Efficient Tools

Online Medical Coding and Billing Classes

Medical billing and coding are two parallel fields  that are based on efficient application of specialized skill sets.  Our society today is based on the electronic  maneuvering of data and resources, with minimum delays and instant results.  Clients, customers, businessmen and working professionals all see time as a  valuable commodity where the mere wastage of time may be considered as a lack  of efficient management, threatening to impact the company’s credibility and  performance expectations. The same rule applies to the field of medicine and  its associated fields where data management of numerous patients, their billing  details, health insurance claims’ reimbursements and numerous other records etc.  need more narrowed attention now than ever before. This is where online medical  billing and coding systems come into view as one of the most reliable and  fastest ways of achieving both workplace efficiency and client satisfaction  alike.
                         
Nowadays a large number of health care facilities, offices  and health insurance providers are employing the use of intelligent web-based  billing soft-wares to improve their efficiency by manifold. How does an online  medical system help solve your problems? The answer is simple. Online billing  softwares reduce the manual paperwork in offices, transferring the whole data  to the electronic system where it can be handled and managed more proficiently.  Not only are the claims and medical reports received and sent via the internet  but the tracking and checking of payments is also easier. Scanning the claims  for errors or issues before the actual submission is also an added  advantage.  These billing soft-wares come  with a plethora of smart features to reduce data entries while also enabling  efficient patient data management from history to demographics and most  importantly the billing statements. When it comes to medical-claim tracking, medical  billers also need to deal with cases such as reimbursement denials. A good  online medical billing solution will also feature a denial management system  along with a medical reports collection feature to assist a medical biller.
                         
The implementation of online billing systems gives  medical billers the added ease of enabling their patients access their  information via the internet. This means that your patients can actually  confirm the status regarding their claims’ reimbursement from their homes.While there are numerous online soft-wares available  for medical billing; the same holds true for medical coding. A company  implementing an online medical coding system is automatically multiplying its  healthcare productivity by manifolds. The biggest advantage of online medical coding  software is that it offers instant codes for the various diagnostic cases as  well as for their treatments.
                         

Most soft-wares also come with free access to ICD  codings. With the medical codes accessible right on the coders screen, the  entire process is completed with minimal delay. In addition, being an online  solution, automatic code updates ensure that the codes are most up-to date and  accurate.The use of smart tools for medical coding and  billing reduces the chances of errors associated with each step. The billings  are made to the correct account and with the correct codes assigned to each  case, the efficiency levels are greatly enhanced in any health care system.
                         
Even though the internet has emerged as one of the  most powerful tools in todays world, the threats and scams assocated with it  are no less. While seeking online medical coding and billing solutions ensure  that the web environment promised is secure with no breaches in the software’s  security feature. The more reliable and secure your online resources are, the  better will be your healthcare management system.
   
2

Jumat, 05 Agustus 2016

Android : How to Setup Android for Eclipse IDE

In this topic, you will learn how to setup android for eclipse ide, what softwares are required for running an android application on eclipse IDE. Here, you will be able to learn how to install the android SDK and ADT plugin for Eclipse IDE. Let’s see the list of software required to how setup android for eclipse IDE manually.

Install the SDK

Download and install the Eclipse for developing android application

Download and install the android SDK

Install the ADT plugin for Eclipse

Configure the ADT plugin

Create AVD


 1.. Install the Java Development Kit (JDK)


For creating android application, JDK must be installed if you are developing the android application with Java language.


Click here to Download JDK


 2.. Download and install the Eclipse IDE


For developing the android application using eclipse IDE, you need to install the Eclipse. Eclipse classic version is recommended but we are using the Eclipse IDE for JavaEE Developers.


Click here to Download Eclipse IDE.


 3.. Download and install the android SDK


First of all, We need Android SDK. If you have not Android SDK Click here to Download Android SDK.


 4.. Download the ADT Plugin for Eclipse


ADT (Android Development Tools) is required for developing the android application in the Eclipse IDE. It is the plugin for Eclipse IDE that is designed to provide the integrated environment.


For downloading ADT, you need to follow these steps :

Start the Eclipse ID, then select Help > Install new software…

In the work with combo box, write https://dl-ssl.google.com/android/eclipse/


3. Select the checkbox next to Developer Tools and Click next.4. You will see, a list of tools to be downloaded here, Click next.5. Click finish.6. After completing the installation, Restart the Eclipse IDE.


 5.. Configure ADT plugin


After the installing ADT plugin, now tell the Eclipse IDE for your Android SDK location. To do so :

Select Window manu > preferences

Now select the android from the left panel. Here you may see a dailog box asking if you want to send the statistics to the Google. Click Proceed.

Click on the browse button and locate your SDK directory e.g. my SDK location is C:\Program Files\Android\android-sdk.

Click Apply button then OK.


 6.. Create an Android Virtual Device (AVD)


For running the android applications in the Android Emulator, you need to Create an AVD. for creating AVD follow this steps :

Select the Window manu > AVD Manager

Click on the New button, to create new AVD

Now a dailog appears, write the AVD name e.g. AndroidPhone. Now choose the target android version e.g. Android 2.2.

Click on Create AVD.Next Topic     ⇒ Hello Android Example
2

Kamis, 04 Agustus 2016

Android : Hello World Example

In this session, you will know about how to create the simple Hello World application in Android. We are creating first simple example of android using Eclipse IDE. For creating this follow this steps :

Create new Android project

Write message (optional)

Run Android Application


 Create Android Application


The first step is to create a simple Android Application using Eclipse IDE. Follow the option File > New > Project > Android New Application wizard from the wizard list. Now give name of your application as HelloWorld using the Wizard window as follows :


Click On Next and follow the instructions provided and keep all other entries as defult till the final stpe. Once your project is created sucessfully, you will have following project screen —


 Anatomy of Android Application


Before you run your app, you should be aware of a few directories and files in the Android project –


 S.N.Folder, File & Description


    1srcThis contains the .java source files for your project. By default, it includes an MainActivity.java source file having an activity class that runs when your app is launched using the app icon.


    2gen


This contains the .R file, a compiler-generated file that references all the resources found in your project. You should not modify this file.


    3bin


This folder contains the Android package files .apk built by the ADT during the build process and everything else needed to run an Android application.


    4res/drawable-hdpi


This is a directory for drawable objects that are designed for high-density screens.


    5res/layout


This is a directory for files that define your app’s user interface.


    6res/values


This is a directory for other various XML files that contain a collection of resources, such as strings and colours definitions.


    7AndroidManifest.xml


This is the manifest file which describes the fundamental characteristics of the app and defines each of its components.


Following section will give brief overview few of the important application files..The Main Activity File


The main activity code is a Java file MainActivity.java. This is the actual application file which ultimately gets covered to a Dalvik executable and runs your application. Following is the defult code generated by the application wizard for Hello World Android app. –


Here, R.layout.activity_main refers to activity_main.xml file located in the res/layout folder. The onCreate() method is one of many methods that are figured when an activity is loaded.


 The Manifest File


Whatever component you develop as a part of your application, you must declare all its components in a manifest.xml which resides at the root of the application project directory. This file works as an interface between Android Operating System and your application, so if you do not declare your components in this file, then it will not be considered by the OS. For e.g., a default manifest file will look like as following file.–


Here … tags enclosed the components related to the application. Attribute android:icon will point to the application icon available under res/drawable-hdpi. The application uses the image named ic_launcher.png located in the drawable folders


The  tag is used to specify an activity and android:name attribute specifies the fully qualified class name of the Activity subclass and the android:label attributes specifies a string to use as the label for the activity. You can specify multiple activities using  tags.


The action for the intent filter is named android.intent.action.MAIN to indicate that this activity serves as the entry point for the application. The category for the intent-filter is named android.intent.category.LAUNCHER to indicate that the application can be launched from the device’s launcher icon.


The @string refers to the strings.xml file explained below. Hence, @string/app_name refers to the app_name string defined in the strings.xml file, which is “HelloWorld“. Similar way, other strings get populated in the application.


Following is the list of tags which you will use in your manifest file to specify different Android application components:

 element for activities

 element for services

 elements for broadcast receivers

 elements for content providers


 The Strings File


The strings.xml file is located in the res/values folder and it contains all the text that your application uses. For example, the names of buttons, labels, default text, and similar types of strings go into this file. This file is responsible for their textual content. For example, a default strings file will look like as following file −


 The R File


The gen/com.example.helloworld/R.java file is the glue between the activity Java files likeMainActivity.java and the resources like strings.xml. It is an automatically generated file and you should not modify the content of the R.java file. Following is a sample of R.java file −


 The Layout File


The activity_main.xml is a layout file available in res/layout directory, that is referenced by your application when building its interface. You will modify this file very frequently to change the layout of your application. For your “Hello World ” application, this file will have following content related to default layout −


This is an example of simple RelativeLayout which we will study in a separate chapter. TheTextView is an Android control used to build the GUI and it have various attributes like android:layout_width, android:layout_height etc which are being used to set its width and height etc.. The @string refers to the strings.xml file located in the res/values folder. Hence, @string/hello_world refers to the hello string defined in the strings.xml file, which is “Hello World“.


 Running the Application


Let’s try to run our Hello World application we just created. I assume you had created your AVD while doing environment set-up. To run the app from Eclipse, open one of your project’s activity files and click Run icon from the tool bar. Eclipse installs the app on your AVD and starts it and if everything is fine with your set-up and application, it will display following Emulator window
2