Wednesday, June 22, 2016

Bypass excel csv formula conversion on fields starting with + or -

When you create a csv file with some entry start character is minus(-) or plus(+)  it will not open correctly in Microsoft EXCEL.

I have found few solutions for that and you can try out any format which will suits for you.

I java coding I tried "StringEscapeUtils.escapeCsv(String args)"  method which comes with apache "commons-lang.jar" and it did not resolve that.

Some how I found the correct manipulation


The csv entry I have is
------------------------------------------------------------------------
1,ERROR,- no file(s) to resolve.,null
------------------------------------------------------------------------

This will not show correctly. most of the time excel cell will look like "#NAME?"

to get the correct excel file conversion from csv, we can do following

1. add space before minus(-)
2. add space before minus and put the whole line within quotes
3. add equal sign(=) before also

so solution will looks like

----------------------------------------------------------------------------
1,ERROR, - no file(s) to resolve.,null
1,ERROR," - no file(s) to resolve.",null
1,ERROR,=" - no file(s) to resolve.",null

----------------------------------------------------------------------------


you can do same with plus sign(+)

Tuesday, June 21, 2016

Perfoce resolve after merge

Perforce is a nice tool. We do lots of merges and it's really handy to know few commands when you resolve. Otherwise opening each and every file in the tool and accept merge is a hassle. If you anyway , takes accept merge when there are no conflicts, then best way to resolve using a command as whole change list


below is the way to run command.
eg: you may need to resolve chnagelist 210153

>p4 resolve -am -c 210153


this will produce an output for each file inside the change list as below.

========================================================

d:\Test.java - merging //Source_Code/Test.java#2
Diff chunks: 13 yours + 2 theirs + 3 both + 0 conflicting
//Test1.java - merge from //Source_Code/Test1.java
d:\Sample.java - merging //Source_Code/Sample.java#46
Diff chunks: 30 yours + 0 theirs + 1 both + 0 conflicting
//ServerError.properties - ignored //Source_Code/ServerError.properties
================================================

* if you resolve single file

>p4 resolve -am "d:\work\.classpath"

====================== output may look like below================
d:\work\.classpath - merging //Source_Code/.classpath#2
Diff chunks: 1 yours + 1 theirs + 0 both + 0 conflicting
//WORKSPACE/work/.classpath - merge from //Source_Code/.classpath








Monday, February 29, 2016

Setting screen size to fit the monitor, when login to remote machine

I have been working on a remote environment . I logged to remote desktop using "Remote Desktop Connection" in windows.
to adjust the screen size fit to the monitor follow below steps.

1. click "Remote Desktop Connection" in windows menu.
2. you can see the dialog box. enter your IP.
3. In the dialog box, left bottom corner click "Show Options"
4. go to "Display" tab
5. in the "Display" tab you will find "Display Configuration"
6. drag the slider to fit your screen, most probably to "Large" side. So drag the slider to right.


Thursday, January 28, 2016

bucket (AWS bucket)

bucket is a logical unit of storage in Amazon Web Services (AWS) object storage service, Simple Storage Solution (S3). Buckets are used to store objects, which consist of data and metadata that describes the data.
An S3 customer must create a bucket before he can store data in Amazon's public cloud and specify access privileges for the bucket by using the AWS Policy Generator. Although customers are not charged for creating buckets, they are charged for storing objects in a bucket and for transferring objects in and out of buckets.
There is no limit to the number of objects a customer can store in a bucket, but each AWS account can only have 100 buckets at one time.

Thursday, January 21, 2016

Cannot find javax.ejb.** in eclipse project

I created an eclipse Project to test simple ejb application.

Then I created simple Session bean. Bean import  " javax.ejb.** " and Annotations.
Eclipse project cannot find the javax.ejb  classes



---------------------------------------------------------------------------------------------

import javax.ejb.LocalBean;
import javax.ejb.Stateless;

/**
 * Session Bean implementation class Addition
 */
@Stateless
@LocalBean
public class Addition implements AdditionRemote {

    /**
     * Default constructor.
     */
    public Addition() {
        // TODO Auto-generated constructor stub
    }

}

--------------------------------------------------------------------------------------------------

Solution:
Need to add a jar which has above classes
I have downloaded glassfish. Glassfish is a server use to run ejb. So it has ejb support jars with in it
Add "javaee.jar" as an external jar

Steps
------
1) In Eclipse, right click on the project --> properties --> java build path

2) Click on add external JAR

3) Add c:\glassfish4\glassfish\lib\javaee.jar (Your directory path to this JAR can of course be different.)

Click  "Ok "the dialog, and now Eclipse should be able to see javax.ejb.* classes.


Monday, January 18, 2016

unikernel

A Unikernal is an executable image that can execute natively on a hypervisor without the need for a separate operating system. The image contains application code as well as all the operating system functions required by that application.

Unikernels are usually built using compilers that leverage library operating systems, which are collections of libraries that represent an operating system's core capabilities. This allows a unikernel developer to selectively include only those library components required to make an application work. Traditional operating system functions, such as network or file system handling, are selectively compiled in to the final executable on an as-needed basis.

Unikernels use a fraction of the resources required by full multipurpose operating systems, such as Linux or Microsoft Windows Server. Their diminutive size enables sub-second startup times and high deployment densities unmatched in traditional server virtualization. Additionally, the minimal footprint of the library OS functions and the absence of traditional operating system utilities greatly reduces the attack surface available for exploitation by malicious hackers.

Some unikernel build systems leverage type-safe languages like Haskell or Erlang, while others can bind to more common languages like C, C++, or Java. Not all applications are suitable for unikernels. Applications that require multiple processes in a single VM are not good candidates, but a huge number of traditional application images could become much smaller and faster when recompiled as unikernels.

Numerous unikernel build systems are available from multiple sources, with the open source community leading the way. Some of the more popular unikernel systems include MirageOS from the Xen Project incubator, Drawbridge from Microsoft, Haskell Lightweight Virtual Machine (HaLVM), LING (formerly Erlang on Xen), OSv, Project Guest VM Microkernel, IncludeOS, rump kernels which leverage NetBSD's library of OS functions, ClickOS created by NEC Laboratories Europe, and Clive from researchers at the Universidad Rey Juan Carlos of Madrid (Spain).

Friday, January 8, 2016

IBM application Server - Introduction

I have been studying about IBM WebSphere Application server for a little while and thought of sharing what i have gathered with you all.
I will write set article from first step describing
  • IBM WebSphere Application Server
  • How to download WAS
  • How to select WAS for you requirement
  • IBM forum and frequently asked questions page.




WebSphere Application Server (WAS) is a software product that performs the role of a web application server. More specifically, it is a software framework and middleware that hosts Java based web applications. It is the flagship product within IBM's WebSphere software suite. It was initially created by Donald Ferguson, who later became CTO of Software for Dell and the first version was launched in 1998.


Developer

Website
Initial Release
1.0  22 June 1998; 17 years ago
Stable Release
8.5.5 / 14 June 2013; 2 years ago
9.0 / 14 March 2014; 19 months ago
Written in
Available in
English, French, German, Brazilian-Portuguese, Czech, Hungarian, Italian, Japanese, Korean, Polish, Russian, Spanish, Simplified Chinese, Traditional Chinese
Type
Commercial(Do not download yourself – contact IT)
Version History
https://en.wikipedia.org/wiki/IBM_WebSphere_Application_Server#Version_history
Software Product Compatibility Reports
http://www-969.ibm.com/software/reports/compatibility/clarity/index.html


System Requirements


Downloads
What’s New
Memory
Minimum 1 GB of physical memory recommended