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.

Sunday, August 9, 2015

Firefox : Stop displaying sites when I open a new tab

You can change your new tab to a blank screen, or any URL of your choice.
(1) In a new tab, type or paste about:config in the address bar and press Enter. Click the button promising to be careful.
(2) In the search box above the list, type or paste newtab and pause while the list is filtered
(3) Double-click the browser.newtab.url preference and enter your preferred page:
  • Page thumbnails (default) => about:newtab
  • Blank tab => about:blank
  • Built-in Firefox home page => about:home
  • Any other page => full URL to the page

Friday, August 7, 2015

Password Protect a folder without any Software

Create Your Password Protected Folder

Before you get started you need to create a folder that will house your password protected folder, this is just an ordinary folder and can be located anywhere and named anything.
image
Navigate into your newly created folder and create a new Text Document. This can easily be done from the context menu.
image
Open the document, now paste the following code into the contents of the document:


cls 
@ECHO OFF 
title Folder Private 
if EXIST "HTG Locker" goto UNLOCK 
if NOT EXIST Private goto MDLOCKER 
:CONFIRM 
echo Are you sure you want to lock the folder(Y/N) 
set/p "cho=>" 
if %cho%==Y goto LOCK 
if %cho%==y goto LOCK 
if %cho%==n goto END 
if %cho%==N goto END 
echo Invalid choice. 
goto CONFIRM 
:LOCK 
ren Private "HTG Locker" 
attrib +h +s "HTG Locker" 
echo Folder locked 
goto End 
:UNLOCK 
echo Enter password to unlock folder 
set/p "pass=>" 
if NOT %pass%== PASSWORD_GOES_HERE goto FAIL 
attrib -h -s "HTG Locker" 
ren "HTG Locker" Private 
echo Folder Unlocked successfully 
goto End 
:FAIL 
echo Invalid password 
goto end 
:MDLOCKER 
md Private 
echo Private created successfully 
goto End 
:End
 
Change the PASSWORD_GOES_HERE text to the password you want to set. Now go ahead and save the file as locker.bat.
image
Once the file is saved as a batch file you can delete the original text file.
image
Now run your batch file by double clicking on it–the first time you run it, it will create a folder called Private. This is where you can store all your secret things. When you have finished adding all your stuff to the Private folder, run locker.bat again.
image
This time you will be asked if you sure that you want to lock the folder, press the “Y” key and hit enter to lock your folder.
image
You will see that your Private folder quickly disappears.
image
If you run the script yet again, you will prompted for a password.
image
If you enter the same password as you set in the script the Private folder will reappear if you enter the incorrect password the script will just Terminate.

How to See the Files Again

Most people don’t know how to show system files, but anybody who has some experience will probably be able to quickly figure it out in the Folder Options. To see the files again, all you have to do is uncheck the boxes for “Show hidden files, folders, and drives” and uncheck the box for “Hide protected operating system files”.

But any ordinary user who unchecks the box will most probably be scared off by the warning message that appears.

The second way someone could comprise the folder is to open the batch file and read your password. It’s definitely not a really secure way to hide your files, but it is fun.
Attribution note: We found this script on dozens of different web sites going back many years. We have no idea who first created the script, so we’ve omitted any sort of attribution link. If you do have proof that you first created the script, contact us and we’ll adjust the article accordingly.

If You Forget Your Password

Seems like once a week somebody writes in asking how to figure out the password they set. And the answer is really simple: Right-click on the locker.bat file and choose Edit.

Then you can see the password you set in the file.