Managing Datapower instance from AWS - changing date and time and synchronizing time with NTP
1. It turned out that if Datapower runs on Linux - it doesn't have NTP service available:
https://www.ibm.com/support/knowledgecenter/en/SS9H2Y_7.5.0/com.ibm.dp.doc/ntp-service_global.html
http://www-01.ibm.com/support/docview.wss?uid=swg21991499&myns=swgws&mynp=OCSS9H2Y&mync=R&cm_sp=swgws-_-OCSS9H2Y-_-R
2. Datapower inherits NTP configuration from its OS environment
3. Install NTP on redhat: https://www.tecmint.com/install-ntp-server-in-centos/
4. Then do all steps from
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/sect-Date_and_Time_Configuration-Command_Line_Configuration-Network_Time_Protocol.html
5. It is worth to remember that ntpd will not start on boot if chrony is enabled. In order to disable it - perform all steps from here: http://thegeekdiary.com/centos-rhel-7-enable-ntp-to-start-at-boot-after-fresh-install-disable-chrony/
6. Now if you restart your instance ntp will be enabled but in order to configure correct time zone for datapower you need to go to your console Administrator - Device - Time Settings
7. If you also need to change time zone on your redhat please take a look at these links:
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/set-time.html
środa, 17 maja 2017
piątek, 28 kwietnia 2017
AIX - installing software, scp and others
In order to test your app on AIX you can lease AIX daily/monthly etc from : https://www.siteox.com
SSH:
ssh -X -p 8822 yrwbko@cloud.siteox.com (password will be given by siteox)
SCP:
firstly install sshpass then:
sshpass -p "password" scp -P 8822 /path/your-file root@cloud.siteox.com:/target-path
To install wget on AIX follow:
http://letmehelpyougeeks.blogspot.com/2012/09/installing-common-softwares-like-wget.html
To check public IP of your instance:
curl ipecho.net/plain
To install unzip/zip:
1. Download unzip rpm from http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/alpha.html
2. sshpass -p "pass" scp -P 8822 ~/Downloads/unzip-6.0-3.aix6.1.ppc.rpm root@cloud.siteox.com:/opt/
3. rpm -ivh unzip-6.0-3.aix6.1.ppc.rpm
Useful:
https://www.ibm.com/developerworks/aix/library/au-aix_cmds/
Installing java:
1. Download .bin folder from IBM site,
2. SCP bin folder to AIX
3. chmod a+x ....bin
4. If you have issues with disk space use for example chfs -a size=+2G /opt
5. IATEMPDIR=/opt/tmp
export IATEMPDIR
6. ./....bin and follow instructions (set java path )
SSH:
ssh -X -p 8822 yrwbko@cloud.siteox.com (password will be given by siteox)
SCP:
firstly install sshpass then:
sshpass -p "password" scp -P 8822 /path/your-file root@cloud.siteox.com:/target-path
To install wget on AIX follow:
http://letmehelpyougeeks.blogspot.com/2012/09/installing-common-softwares-like-wget.html
To check public IP of your instance:
curl ipecho.net/plain
To install unzip/zip:
1. Download unzip rpm from http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/alpha.html
2. sshpass -p "pass" scp -P 8822 ~/Downloads/unzip-6.0-3.aix6.1.ppc.rpm root@cloud.siteox.com:/opt/
3. rpm -ivh unzip-6.0-3.aix6.1.ppc.rpm
Useful:
https://www.ibm.com/developerworks/aix/library/au-aix_cmds/
Installing java:
1. Download .bin folder from IBM site,
2. SCP bin folder to AIX
3. chmod a+x ....bin
4. If you have issues with disk space use for example chfs -a size=+2G /opt
5. IATEMPDIR=/opt/tmp
export IATEMPDIR
6. ./....bin and follow instructions (set java path )
środa, 5 października 2016
How to change text inside the component to have vertical position
Assuming that your text is inside span component you can just add css:
Primefaces Datatable with editable rows, add button and remove button
So the goal is to implement something like that:
So as you can see we have editable component. It is possible to add new row. When the row is being edited Apply button is disabled and also when you add new row the row is automatically set to edit mode.
Let's take a look at the implementation:
This is an implementation of a from containing datable:
As you can see we used jsf compositions here. Take a look at the implementation of datatable:
And finally bean implementation:
Notice that Remove button inside third column is in the same line as Edit, Check and Close buttons. This is not a default behaviour - in order to achieve that you need to add following css:
So as you can see we have editable component. It is possible to add new row. When the row is being edited Apply button is disabled and also when you add new row the row is automatically set to edit mode.
Let's take a look at the implementation:
This is an implementation of a from containing datable:
As you can see we used jsf compositions here. Take a look at the implementation of datatable:
And finally bean implementation:
Notice that Remove button inside third column is in the same line as Edit, Check and Close buttons. This is not a default behaviour - in order to achieve that you need to add following css:
Implementing commandButton which looses focus after onmouseup
I noticed that on chrome - commandButton from Primefaces doesn't loose focus after clicking on it. This is different behaviour than on Firefox. In order to change it you need to just add attribute
onmouseup="this.blur();"
So your commandButton implementation may look like this:
onmouseup="this.blur();"
So your commandButton implementation may look like this:
<p:commandButton
id="moveUpButton" process="@this" immediate="true"
onmouseup="this.blur();" update="orchestrationTaskDiagram moveDownButton moveUpButton"
actionListener="#{projectAdminBean.moveUpActionListener}"
icon="ui-icon ui-icon-arrowthick-1-n" title="Move Task Up"
styleClass="ui-panel-titlebar-icon ui-corner-all ui-state-default"
disabled="#{!canSaveChanges or !projectAdminBean.editMode or !projectAdminBean.isMoveUpEnabled()}" />
sobota, 28 marca 2015
How to determine which version of Windows you are running
Go to your Command Prompt and enter the following commands:
wmic os get caption wmic os get osarchitecture
piątek, 20 marca 2015
Using files from resources in your tests
import java.io.File;
import java.net.URISyntaxException;
import java.net.URL;
URL infoFileURL = ProjectServiceImplTest.class.getResource("/log4jINFO.properties");
testLogFileWithINFOLevel = new File(infoFileURL.toURI());
import java.net.URISyntaxException;
import java.net.URL;
URL infoFileURL = ProjectServiceImplTest.class.getResource("/log4jINFO.properties");
testLogFileWithINFOLevel = new File(infoFileURL.toURI());
Subskrybuj:
Posty (Atom)