Original content

Protected by Copyscape Plagiarism Checker

Tuesday, November 8, 2016

Eclipse: Problem with new maven project : Error in pom or during build

When I created a new maven project, I received the following error.

Failure to transfer org.codehaus.plexus:plexus-io:pom:2.0.2 from https://repo.maven.apache.org/maven2

This is not the complete error message. But a part of it.

It looks like the maven plugin in eclipse was not resolving the dependencies. So, I built the newly created maven project using the stand alone maven tool which is not a plugin in eclipse (i.e., from the command prompt using "mvn clean install"). It resolved the dependency without issues. And a refreshing of the project inside eclipse has resolved the error indication in pom file.

Sunday, July 26, 2015

Windows 10 - DVD drive not displayed in File Explorer

Hi, I am using windows 10 preview edition. No doubt, there are many other people out there too trying this new version and may be facing my same problem.

My DVD drive was not displayed under file explorer and this was after I upgraded from windows 7 to windows 10. I tried around three solutions when I google. Below solution from the microsoft support webpage solved my problem. Hope this will solve yours too.

https://support.microsoft.com/en-us/kb/314060


Copy of the steps I followed from the above link is below,

Note To use this method, you must be logged on to Windows as an administrator. Or right click and select run as administrator when opening the regedit.exe

Microsoft has a warning for the users, so please be correct when updating the registry. Before you modify it, back up the registry for restoration.

To create the registry subkey,
 
  1. Type regedit in the Run box, then press Enter. If you are prompted for an administrator password or for a confirmation, type the password, or click Allow
  2. Locate the following registry subkey:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\atapi
  3. Right-click atapi, create new Key with the name Controller0.
  4. Right-click Controller0, create new DWORD(32-bit) Value with the name EnumDevice1.
  5. Right-click EnumDevice1 and Modify, Type 1 in the Value data box.
  6. Exit Registry Editor and restart.
 My problem got solved, hope yours will too ;-)

Sunday, February 15, 2015

Image resize in java - pass image as byte code and write the output byte code as image file

In this code, variable “byteImageValue” is the actual image byte code.

        byte[] byteResizedImageValue;
        try {
              ByteArrayInputStream inputStream = new ByteArrayInputStream(byteImageValue);
                     ByteArrayOutputStream baos = new ByteArrayOutputStream();
                     byte[] imageInByte = null
                     BufferedImage bufferedImage = ImageIO.read(inputStream);
                     int intResizeWidth = bufferedImage.getWidth()+25;
                     int intResizedHeight = bufferedImage.getHeight()+10;
                     BufferedImage resizedImage = new BufferedImage(intResizeWidth, intResizedHeight, BufferedImage.TYPE_INT_ARGB);
                     Graphics g = resizedImage.getGraphics();
                    
                     g.drawImage(bufferedImage, 0, 0, intResizeWidth, intResizedHeight, null);
               g.dispose();
                     ImageIO.write(resizedImage, "PNG", baos );
               baos.flush();
               imageInByte = baos.toByteArray();
               baos.close();
               byteResizedImageValue = imageInByte; 
              } catch (IOException objImageIOException) {
                     // TODO Auto-generated catch block
                     throw new ScriptException(generalErrorCode,
                    "Invalid image." + objImageIOException.getMessage());
              }

Wednesday, December 10, 2014

Installing maven plugin in Eclipse


  • Go to help – Install new software.
  • Add... pick a name with the above URL as Location.
  • Once the list loads, under "General Purpose Tools", check "m2e - Maven Integration for Eclipse".
  • Continue with the installation & restart.
Source: http://stackoverflow.com/questions/25255824/issue-faced-while-installing-m2e-on-eclipse

Saturday, February 1, 2014

GTA IV not starting showing a black cmd prompt

Check for minimum required directX version in the PC. Guess minimum version is 11. Then download and Install the "Microsoft Visual C++ 2005 SP1 Redistributable Package (x86)".  This may resolve the issue.

Best tamil virtual keyboard with word suggestions

Best Tamil virtual keyboard I would suggest is Google input. It's word suggestion is wonderful. Don't search anywhere! :-)

Monday, August 13, 2012

SIM CARD SLOT IN DELL XPS

Guess few of you would have searched for the way to use your SIM Card slot in Dell XPS or any other laptop devices(Check the manual for the slot to insert the SIM).

Having SIM Card slot is not enough to use the SIM Card for connecting to internet, you should check the availability of the WWAN(Wireless Wide Area Network) hardware in the device. Attached the snap of a Dell XPS15 showing the place where you can find the slot to install the device.


If the device is already install, you can use the SIM card slot right away after installing the necessary drivers.