Monday, September 18, 2017

Installing Maven in Mac

1. Download apache-maven-3.5.0-bin.tar.gz from Apache maven website.
https://maven.apache.org/download.cgi

2. extract the above file in any directory in your machine(lets refer as: <directory_maven>)

$ cd <directory_maven>
$ ls
(should list all contents)
$ export M2_HOME=/Users/<your username>/<directory_name>/apache-maven-3.5.0

Ex(in my machine): /Users/sriramkukkadapu/Downloads/apache-maven-3.5.0

Note : above path can also be something like /usr/local. provide accordingly.

$ export M2=$M2_HOME/bin

3. This is a important step. JAVA_HOME should be configured properly.
To check the current JDK home. go to the root folder in ur user(just do cd.. multiple times). 
Then go to /Library/Frameworks/JavaVM.framework/Versions/
here you will find current JDK version. Ex jdk1.8.0_144.jdk (in my machine)

Now form the below path with your JDK Version Replaced.

/System/Library/Frameworks/JavaVM.framework/Versions/<Your JDK Version>/home

Ex(My machine) : /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/home

Now Set JAVA_HOME Variable.

$ export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/home

4. Setting Path Variable to Java_Home/bin.

$ export PATH=$M2:$JAVA_HOME/bin:$PATH

5. Done, Now check maven version

$ mvn –version


Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-04T01:09:06+05:30)
Maven home: /Users/sriramkukkadapu/Downloads/apache-maven-3.5.0
Java version: 1.8.0_144, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8

OS name: "mac os x", version: "10.11.6", arch: "x86_64", family: "mac"

Hope it is useful :)

Thursday, August 10, 2017

How to schedule a Batch File to run automatically in Windows 10/8/7

here are occasions where you might need to schedule to run a batch file automatically in your Windows. In this article I’ll suggest a tip on how to schedule a Batch file automatically using Task Scheduler.

Schedule a Batch File to run automatically

Step 1: Create a batch file you wish to run and place it under a folder where you have enough permissions. For example under C drive.
Step 2: Click on Start and under search, type in Task and click open Task Scheduler.
                


Step 3: Select Create Basic Task from the Action pane on the right of the window
                schedule a Batch File to run automatically


Step 4: Under Create Basic Task, type in the name you like and click Next.
                


Step 5: From the Trigger select the option you like and click Next.
                


I chose Daily and clicked Next, which brought me to this screen.
                


Step 6: Then click on Start a Program and click Next.
                


Step 7: Now click on Browser and select the batch file you like to run.
                

Step 8: Finally, click on Finish to create the Task.
Now that we have created a Task, we have to make sure it runs with the highest privilege. Since we have UAC settings we have to make sure that when you run the file it should not fail if it does not bypass the UAC settings.
So click on Task Scheduler Library.
                


Then double click on the Task you just created.
Step 8: Click on Run with Highest privilege then click OK.

Monday, April 17, 2017

Java Eclipse Console doesn't show whole output - How to resolve ?

What are the preferences for the console? Especially check the settings "Fixed width console" plus "Limit console output". Maybe your console simply can't hold that many characters in one line.

[EDIT] Now Eclipse eventually has to cut the data in the console since it doesn't have infinite amounts of memory. If the console is still cut off, you can use this trick: Open the "Run Configurations" dialog (Found in the drop down menu for the green "run" button).
The tab "Common" tab has options in the "Standard Input and Output" group at the bottom to save a copy of all output in a file. You can then use your OSs tools to examine this file.
Also note that very long lines can make Eclipse slow (i.e. it can hang for a couple of seconds). 

This is due to a bug in the regexp matching patterns for Exception stack traces. If that happens, limit the line length to 1000 characters or less.
This is especially a problem with Spring which sometimes creates exceptions that have 50'000 characters in the message.

If you have a similar problem with the CDT Global Build Console, see here: Eclipse CDT Build Console output not displaying entire compiler output



Output will be saved to the selected file. It worked for me. Hope it is useful for others too.



Friday, March 31, 2017

VIdeo on how to use Linkedin

Friends I made this video, to share my knowledge on how to use Linkedin.

Pls watch it. Very useful. Try to use LinkedIn in the way mentioned in video and try to get referrals for various companies.



Below Video is with LinkedIn Old UI. Just sharing this for reference, This is more in detail. You can try the same tricks in new UI.


Also share with your friends.

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

Hi Friends,

Today i am going to show how to use LinkedIn[New UI] to connect with people from various companies.

And some search techniques too.

1st of all you need to create your profile completely. I will show my profile for example.

See i have added all details, company, project, responsibilites etc
Education, finally Resume also you should upload.

So once your profile is created you can go ahead and add connections to your network

There are types of connections.

1st connections - Are the people who you are directly connected with. Lets see
So all these are my 1st connections.to whom i can send message directly

2nd connections - Are the connections of my connections similar like facebook - friend of my friend. For such connections you can send a request.

Let us search for ex : Infosys HR lets ee who are all my 1st connections

Right side we can see 3 buttons, in that select 1st connections

I have more than 100 1st connections to whom i can directly message. Sounds wow :)

Lets say i want to add more people from infosys, then deselect 1st connections and select 2nd connections

See you will get connect button enabled, so just send request thats it. If you open their profile. it wil show your invitation is pending.

Once people accepts your invitation, they will be part of your network.

In connections everything is listed here according to recently added date, so recent connection comes 1st, this will make things easy as you know who you added recently you can directly message them. Als you can filter your connections like this,

But i suggest to filter connections from search page itself, that is more accurate and you can directly 2nd connections in the same screen. This is the screen i spoke about.

Lets see how to do some filters. Lets say i want to add all Test Managers in infosys. Select current company as Infosys, this is because if they worked previously in infosys and now in some other company, still it will show in your result, but we need who is currently working in infosys so we need to select current company as infosys. Got it :)

So send request to all these. 

Like this you can search any profile. Lets say informatica domain i want to connect to managers in various companies, lets see how to search. 

Lets search for ABAP guys in all the companies

Ok now see we are getting connections from various location, lets filter only bangalore people.see we got only bangalore connections

So this is how we can use the new linked in which has the latest UI :)

We have already shared a video earlier on how to use linkedin[old UI] as LinkedIn has upgraded ;) we are sharing this new video.

Refer to old video as well, it has more(good) info like this. You can try those things here in new UI.

Pls share this video with all your friends.

All the best friends!!

Old video link you can see in description

Link to the Video - Youtube

Firefox - Selenium - Fire Path is not visible in Firebug - Solution

Steps to resolve this problem:

  1. Open firefox
  2. Type about:config in the explorer
  3. click on the I uderstand button
  4. Now in the search box enter "browser.tabs.remote.autostart.2" (without quotes) and hit enter
  5. Set the value as false ( you need to click the property to toggle the values)
  6. close the firefox and open again
  7. Launch firebug ...Now you should see your fire path and firefinder back

Thursday, January 12, 2017

How to Run Unix commands in Windows [Unix-like environment for windows]

Cygwin is a Unix-like environment for windows
It can be obtained from: www.cygwin.com

Below are notes on how to install and setup cygwin for access to group computers.



Download setup.exe   from www.cygwin.com.

Run application from your local harddrive.

Chose next on first screen.

Select "Install from Internet" and click next.



Enter preferred installation (Root) directory and click next.



Enter a temporary installation directory and click next.



Select "Direct Connection" and click next.



Select a download site and click next. 
(Any site that you can connect to is fine. Some sites are more stable and/or faster than others. Try to pick one that works for you.)



Select the packages you want to install and click next.
Packages you may want to install include:
opennssh
bc
python
keychain (for ssh key pairs)
gv
ghostscript
emacs
vi
grace
tcsh
gnu compilers
tetex
aspell
xfig
transfig
ImageMagic
gnuplot
rsync

xinit
(important for installing X-server)



Please note sometimes you may get a download incomplete and the setup application will return to step 8. Simply select another server and continue the installation process. 

Once the installation is complete, click Finish and continue with the Setup section. 
DO NOT RESTART AT THIS TIME!


Setup Notes:


Setup Windows Environment Variables:
Open your System Control Panel:
Select [start]->Control Panel->System



Click on "Advanced System Settings", then select "Environmental Variables" under the "Advanced" tab of the "System Properties" Control Panel.



In the Environmental variables window select new under "Variables for User" window.



Edit "User Variable" as follows:
Variable name: HOME
Variable value: Path to where you want your home directory
e.g. C:\user\username\Documents

In the Environmental variables window select Path under "System Variables" window.



Edit "System variable" as follows:
Append "; C:\cygwin\bin" to Variable value: (semicolon is very important)



Select "Ok" to close both "Environmental Variables" and "System Properties" windows.

Creating link for starting X-windows:
Create a shortcut to C:\cygwin\bin\Run.exe (on your desktop is probably a good place to do this).
Right click on the shortcut and select properties.
Under Target in the Shortcut tab enter:
C:\cygwin\bin\run.exe /usr/bin/bash.exe -l -c /usr/bin/startxwin.exe
You may want to change the icon:
Select "Change Icon" and chose a preferred icon.
Select "Ok" to close the Properties dialog box.
To allow X-windows to start upon boot, place the your new shortcut in [Start]->[All Programs]->[Startup]<\ul> 
Now is a good time to restart...

Setup and configuring cygwin files.
(Only necessary if your admin account differs from your user account) Create a new user and set a default user home directory other /home/username:
Using the terminal started by X-windows:
type: mkpasswd -c -p /cygdrive/c/Users/username/Documents >> /etc/passwd
edit /etc/passwd using your favorite editor. You will need to remove the extra username after Documents in the home path. 

For easy use of the terminal create a startxterm.bat file in C:cygwin/bin. A reasonable xterm file looks like:

@echo off
SET DISPLAY=127.0.0.1:0.0

REM Startup an xterm, using bash as the shell.

%RUN% xterm -geometry 120x40 -sb -rightbar -e /bin/bash -l

Save the file and you are done!


Start X-windows using the shortcut (it may already be started if you placed the file in your startup directory and rebooted).

Use the startxterm.bat file to start a terminal. (You may want to create a shortcut to this for easy use.)

Thursday, June 23, 2016

How to Fix the Issue - Wifi Frequently Drops connection in Windows 8.1


First bit: We’ll disable it in power management: Slide the mouse down to the bottom-right corner, then once your right-side navigation thing pops up go to the top ‘Search’ (ClassicShell: Press the Windows key In the text box at the bottom) type “Edit power plan” and click the result.

Change advanced settings. Open up the “Wireless Adapter Settings” then “Power Saving Mode” and make sure it doesn’t disconnect your wifi to save power by setting (at least AC, but I went with both because I live life on the edge). Switch it up to Maximum Performance which should stop it from disconnecting at random.

I say should, as it didn’t actually work very well for me. After a (longer, to be fair) while it disconnected again. As it turns out there’s another place to control a similar setting.

Second bit: Go into your network settings. Control panel again.. Mouse to the bottom-right, ‘Search’ again. This time type “Control panel” and click the result. From here we want “Network and Internet” and then “Network and Sharing Center” and from there “Change adapter settings” (It’s on the left hand menubar)



Right click your wifi adapter -> click Properties -> click Configure -> click Power Management


Uncheck the box “Allow the computer to turn off this device to save power”. That should do the job.

This worked for me. Hope it will help for u too.