Initializing Page Data Model loading and Hang – RAD IBM version 8.5.1

Ni Hao! 

Initializing Page Data Model loading and Hang – RAD IBM version 8.5.1 ?

rad_1

Can’t stop the Initializing Page Data Model,

My Solutions:

Delete the folder .projects
<Worspace_Directory>\.metadata\.plugins\org.eclipse.core.resources\.projects

Stop and start RAD again.

 

Selamat Mencuba!

 

How to add compare function in Notepad++

Hi Good Day , 你好! , Anih Agah , Nama rita Nuan,

How to add compare function in Notepad++

  1. Open your Notepad++ , then go to menu Tab on the Top, Plugin Manager > Show Plugin Manager , Search for compare.

1

2. Tick the compare option, click Install – & Yes if you want to Update , or No if you don’t want to update your Notepad++.

2

3. After done Installed the plugin, then you can open your two files you want to compare, then at the first file – go to Tab and click Plugins > Compare > Compare (click it) or shorcut key – CTRL+ALT + C,

3.jpg

4. Above image show comparison between two files source codes. with + green show there are new line , and – minus is empty. 

5. If you guys using notepad ++ v.7.3.3 , its doesn’t have any top tab plugins, so what you must do is, install manually.

on your Directory installer : Notepad++\plugins

create your folder such as \config

then download this notepad compare plugin from Github. add this downloaded files to Notepad++\plugins\config\

fndong_notepadplus_1

After that, go to notepad++ application, click on ( Settings > import > import Plugin(s).. ) the go plugin directory and get the comparePlugin.dll.

Then you can use the comparator plugin. 

Selamat Mencuba , Good Luck !

 

 

 

 

Create first simple angular js 2 project

Good Day !

Create first simple angular js 2 project

1) getting the tools – prerequisites:

a) node.js :- https://nodejs.org/en/download/

1.1. Test the node – open your Command Prompt in windows : node -v   ( node.js is runtime environment and Javascript library)

1.2. Test the npm – Command Prompt : npm -v
1.3. getting the typescript
npm install -g typescript

image1

then after finish program typescript make sure to compile the typescript to convert to javascript. ( Browser cannot read typescript)

1.4. run the compile the typeScript :
npm install -g typings

– if the  results command are error – such example:

npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.

– Solutions : add your company proxy , by run the command script :
run:
>npm config set proxy http://IP.IP.IP.IP:proxy

1.6. Then we need to install Angular-CLI Global  (make sure to go to your directory project): 
> npm install -g angular-cli

angularjs

1.7. Create new project for the first angularjs2:
> ng new RegisterUserApp

angularjs2

Create a Provider Web Service and Web Service Client (JAX-WS) + Apache Tomcat

Create a Provider Web Service and Web Service Client (JAX-WS) + Apache Tomcat

1). Open Eclipse, Create Dynamic Project ( WebServiceWSDL ), choose server tomcat, Next and Finish.

4webServices.jpg

2). Set the package – com.fndong.ws – in the /src. Create java Class – CalculateAdditional.java

package com.fndong.ws;

public class CalculateAdditional {
    public double addtheValues(double firstnumber, double secondnumber ) {
       double plus = firstnumber + secondnumber;
       return plus;

    }
 
}

3). Right Click on file CalculateAdditional.java -> Web Services -> Create Web Service

6webServices.jpg

  • First configuration : select start service
  • Second Configuration : select Test Client
  • Tick the Checkbox true (Publish the Web Service & Monitor the web Service)

Click Finish.

4). Then it will created the sub project folder for web service client testing “WebServicesWSDLClient“.

calculate.jpg

5). Run on Tomcat – for run web service client test .

webserviceclienttest.jpg

SELAMAT MENCUBA!

Create Simple Java Adapter for MobileFirst Foundation 8.0 IBM – Eclipse

Create Simple Java Adapter for MobileFirst Foundation 8.0 IBM – Eclipse

1.) Open Eclipse ( I used Eclipse Mars) , Create New Maven Project in Eclipse.

mavenproj_adapter.jpg

2.) Add the Archetype (using – adapter-maven-archetype-java) :

mavenproj_adapter2.jpg

3.) Add the Group Artifact.

Group id : (is your domain) com.fndong.mfp

Artifact id:(Your Project name) AdapterMfp

mavenproj_adapter3.jpg

  • Click Finnish button.

mavenproj_adapter4.jpg

  • It will generate the structure of java project with pom.xml

4.) Building an adapter. – Using cmd windows with mfp -mobilefirst CLI.

  • Go to Root project , type this command : mfpdev adapter build

mavenproj_adapter5.jpg

5.) Run the MobileFirst Foundation Server 8.0, so you can deploy the adapter to console.

  • Run Mobilefirst CLI command : mfpdev adapter deploy -x

mavenproj_adapter6.jpg

6.) Check the mobilefirst console :

console_adapter.jpg

7.) Testing the AdapterMfp application, Click Adapter application and click tab Resources > Click button View Swagger Docs.

7.1.) test the Restful GET

test_get_rest.jpg