Saturday, March 28, 2015

There are still marketing videos from IBM that I like.



After the absolute bad marketing video about verse i have found this nice video about one of the best sources of IT knowledge regarding IBM products. The IBM Redbooks.


Unfortunatly there have been no new real Redbooks for IBM Collaboration products since the introduction of the not so good IBM Red Wikis. I hope they will go back to the normal redbooks format in the future.

Sunday, March 22, 2015

In Java 0 is not always equal to 0

I am a big fan, of the Java BigDecimal class for arithmetic operations. It provides fast and easy to use methods to do calculations in arbitrary precision. But last week i have got a bug report that in one of my programs a check whether a BigDecimal variable is 0 returns a wrong result. Here is the code:


if(value.equals(BigDecimal.ZERO))
 System.out.println("Value is zero");
else
 System.out.println("Value is not zero");


The check for a zero value has always worked, but suddenly last week it stopped working and after some investigation i have found out, that it stops working, because the scale of the value has changed from zero, to two. When you have a look in the java doc of the equals method you see, that this works as designed.

This method considers two BigDecimal objects equal only if they are equal in value and scale (thus 2.0 is not equal to 2.00 when compared by this method.

As a workaround for this problem you can replace all your equals method to compareTo which only compares the value and not the scale of the BigDecimal object. 

if(value.compareTo(BigDecimal.ZERO)==0)
 System.out.println("Value is zero");
else
 System.out.println("Value is not zero");

Tuesday, March 10, 2015

Software problem data for QTETHRD has been logged during debug session in RDI

A RPG developer in our company had problems to debug an interactive RPG program. He wants to hold the program with the hold button while the program is waiting on user input, but it does not work and after some time the debugger in RDI (Rational Developer for IBM i) stops and the program on the IBM i runs without stopping at breakpoints.

The QSYSOPR message queue shows an error message CPI93B9 "Software problem data for QTETHRD has been logged. Refer to help text for additional information." at the same time the debugger in RDI crashes. In the corresponding problem entry there is a Symptom string "5770 SP/QTETHRD MOD/QteRetriev MSGMCH1004RC117" logged. We could not find any helpful information in the joblogs or in the QHST log.

After some investigation we found out, that the root cause of this problem is that the developer had not the special authority "*JOBCTL" After adding this special authority to the userprofile with "CHGUSRPRF USRPRF(USERNAME) SPCAUT(*JOBCTL)" our RPG developer is a happy camper again.

Wednesday, March 4, 2015

Replication in Notes fails with error file does not exist

Last week i had the problem that a user who got a new replica of his mail file does not get new mails again. Every time he start the replication of his mail file he got the error "File does not exist" in the replicator tab.  The replication log shows that the replica is sending data to the server, but does not get any data from the server.

Replication never recieved file does not exist


Wednesday, February 25, 2015

External USB keyboard does not work when connected to Dell Dockingstation on boot

Today we had the problem that we can not enter the Truecrypt password on the external keyboard connected to a Dell Dockingstation with a new Dell Latitude Laptop. But after we have typed in  the password on the Laptop keyboard  and windows has booted the external keyboard works without problem. We have tried many things like updating the BIOS and other keyboards, but nothing worked. So we compared the BIOS config value by value with a working Laptop and found out that the Setting "Fastboot" in the "Post Behavior" section is the problem. When it is set to Minimal the USB ports are not initialized and the external keyboard is not working, but when it is set to "Thorough" the external keyboard works without problem. So if you have the same problem go and check your BIOS Settings.

External keyboard does not work on boot Bitlocker

Sunday, February 22, 2015

Dolby Digital 5.1 Ausgabe bei Netflix und Amazon Instant Video

Ich bin ein großer Fan, der Streaming Dienste von Amazon und Netflix. Das einzige störende war bisher, dass es immer wieder Probleme beim Abspielen von 5.1 Inhalten über meine Heimkinoanlage gab. Meistens erhielt ich nur ein Stereo Signal, obwohl die Inhalte als 5.1 in der Benutzerschnittstelle von Netflix bzw. Amazon markiert waren. Als Abspielgerät verwende ich eine Playstation 3 die über HDMI mit einem Onkyo NR 636 verbunden ist. Heute habe ich mich einmal im Detail mit den Einstellungen der Playstation 3 befasst und die Einstellungen gefunden, die ein problemloses Abspielen von 5.1 Inhalten sowohl von Netflix als auch von Amazon Instant Video erlaubt.

Wählen Sie in den Einstellungen die Sound Einstellungen aus.


Saturday, February 21, 2015

Download customized IBM i CUM and Group PTFs without Java applet trouble.

Everybody who knows me, is aware that i am a big Java fan, but there is one thing in Java which does not work, Java applets. So it will be no surprise that i really hate the whole process to download Cumulative or group PTF's with fix central. The whole process depends on a java applet, which fails most of the time for security reasons.

Java fails for security reasons

In older releases the use of the green screen "SNDPTFORD" command was not a workaround because it was limited to download only small PTF's and not big PTF groups. But recently i noticed that this command was enhanced so that it is able to download PTF's to optical images. I will show you how easy this is and i am pretty sure that you will never ever use Fix Central again.

Thursday, February 12, 2015

Fastest way to upload iso images to your IBM i

When you plan an upgrade for your IBM i, you need to upload the iso images of the new release  you have downloaded from IBM to your IBM i. The easiest way is to use a network share with Netserver, but the upload of 30 GB over a file share can be very slow. It is much faster to upload the images with FTP. In this tutorial i will show you how this works without the use of additional software:

ad