… :( Another brick

And my weekend is ruined. Damn the brick :(.

Disappointment ?

Well, nothing to disappoint. Maybe there is a bigger chance waiting for me. Now, work harder.  

Deploy Nimrod Portal on QCloud

Initial plan is to have 4 servers:

  • one for portal: 4 cores
  • one for webservice: 16 cores
  • one for nimrod file server: 4 cores + 1TB
  • one for programs: 2 cores + 200Gbs

 

Plan changed. 1TB will be mounted to teh Nimrod Web Service. NFS Server will be set up here as well.

Problems mounting 1Tb into NimrodWebService in QRISCloud:

  • ext3 is not in /dev/vdc
  • sudo mke2fs -S /dev/vdc
  • sudo mke2fs -j /dev/vdc
  • The last two steps will create ext3 in the volume
  • mount normally.

Now more the home directory to that newly mounted volume. I will have 1Tb of storage. http://embraceubuntu.com/2006/01/29/move-home-to-its-own-partition/

Mount /mnt to /nimrodtemp and /home to /nimrodfs. Temp files will be uploaded and put in /nimrodtemp, then will be moved to corresponding location. /nimrodfs is read only. This is for security.

Now config tomcat so that it stores config file in /mnt

 

* steps used to enable AAF: 1) using HTTPS

1) follow this one: http://scottseeker.blogspot.com.au/2012/09/liferay-61-tomcat-with-apache-front-end.html to serve liferay on port 80.

2) enable HTTPS.

The configuration is in dropbox

 

Now create custom login module.

 

Working with AAF now.

 

Now redirect logout page to its non https page. Done.

 

 

So now:

- the user can choose to go with AAF or traditional username and password

- if logout, the user will be redirected back to the normal page

Vaadin java – javascript datatype

Values in the Shared State and in RPC calls are converted between Java and JavaScript using the following conventions:

  • Primitive Java numbers (byte, char, int, long, float, double) and their boxed types (Byte, Character, Integer, Long, Float, Double) are represented by JavaScript numbers.
  • The primitive Java boolean and the boxed Boolean are represented by JavaScript booleans.
  • Java Strings are represented by JavaScript strings.
  • List, Set and all arrays in Java are represented by JavaScript arrays.
  • Map<string, ?=””> in Java is represented by JavaScript object with fields corresponding to the map keys.
  • Any other Java Map is represented by a JavaScript array containing two arrays, the first contains the keys and the second contains the values in the same order.
  • A Java Bean is represented by a JavaScript object with fields corresponding to the bean’s properties.
  • A Java Connector is represented by a JavaScript string containing the connector’s id.
  • A pluggable serialization mechanism is provided for types not described here. Please refer to the documentation for specific types for serialization information.

 

And here: https://vaadin.com/wiki/-/wiki/Main/Using+complex+Java+types+from+JavaScript

Seems like it accepts JSONArray, JSONObject as well.

Follow

Get every new post delivered to your Inbox.