Showing posts with label General. Show all posts
Showing posts with label General. Show all posts

Friday, 13 July 2012

Eclipse - Shortcut Keys



1) Ctrl + Space – Intelli-sense or auto completion 

2) How do I get line numbers?
Go to Window -> Preferences -> General -> Editors -> All Text Editors and check Show line numbers.




NOTE: You can also change the color appearance.

3) How do I get soft tabs?
        To get soft tabs (tabs replaced by spaces) as you type, go to Window -> Preferences -> Java -> Code style-> Formatter and select the profile Java Conventions [built-in]. This should be set correctly to  give soft tabs.

    You can create your own profile by clicking Show...; for soft tabs, go to Indentation un-check Use tab   characters. After making your changes, you will be prompted for a name for your new profile.





4)      Global Search - One of my favorites is Ctrl + Shift + G, which searches the workspace for   references to the selected method or variable.



5)       A complete list of shortcuts can be seen with Alt + Shift + L. Going through that list is sure to teach you a few new tricks about Eclipse.





 6) Ctrl + O - Doing it once gives you the ability to quick search/jump to methods in the class you have already open.Doing it twice, gives you the same ability but then for all methods in the current class plus super classes. Very handy!

7)  Ctrl + F6 - toggle between tabbed editors.




8) Ctrl + E - List of open editors.

9)  Ctrl + F3 and Ctrl + O also show the list of the functions in a class.




10)  Ctrl + T - type hierarchy 




11)      Ctrl + Shift + R - will open a dialog for you where you can type the name of method which u wish to open.





12)      Add getter and setters for particular field:
                       write String temp and press (Ctrl + 1) after selecting the field


    you will get an option to add getters and setters for that field.





13)      To quickly do a rename that doesn't require full analysis of dependencies in other files, write String temp and press (Ctrl + 1) after selecting the field you will get an option to rename.





14)  Edit -> Quick fix will produce effect of Ctrl + 1

15)      Ctrl + L - to go to specific line number.





16)      To find a matching bracket select an opening or closing bracket and pressCtrl + Shift + P or select Navigate > Go To > Matching Bracket. You can also double click before an opening or after a closing bracket - this selects the text between the two brackets.

17) To create a delegate method for a field select the field's declaration and invoke Source > Generate Delegate Methods. This adds the selected methods to the type that contains a forward call to delegated methods. This is an example of a delegate method.


   

18)      F4 To display hierarchy view of current class.





19) Ctrl + Shift + O - To manage imports automatically.

20) Ctrl + 3 –  Check this out.





21) Ctrl + Alt + H - Open Call Hierarchy.





22) Ctrl + Mouse Click - takes you to the declaration or definition

23) Ctrl + Q - Go to the last edit location.

24) Alt + ← and Alt + → - Hop back and forth through the files you have visited.

25)  ALT + Shift + C  - To change method signature.    



Thursday, 5 July 2012

Top 10 Websites to Convert Images to Favicons Online for Free

A favicon (short for favorites icon) is a square icon displayed in the browser’s address bar and the bookmarks. As per Wikipedia, there are three sizes for favicons: 16×16, 32×32 and 64×64, but in fact, the standard and most common size is 16×16.
A favicon to a website is just as a trademark to a company, that’s why people care about it. The easiest way to create a favicon is to convert any of your image to an ico file, and below 10 websites are available for you to do that online for free:

1. Dagon Design Favicon Generator Tool

Dagon Design Favicon Generator Tool lets you upload a JPG, PNG, or GIF image and easily convert it to a standard 16×16 favicon.ico file. The max size of image you can upload is 100 KB.
Go to Dagon Design Favicon Generator Tool

2. Favicon.ru

Favicon.ru is workable for BMP, JPG, GIF or PNG format images, which size should not exceed 300 KB. Besides uploading an image from your computer, you can also enter an image url from the internet. The image can be cropped, and the favicon also can be edited.
Go to Favicon.ru

3. Dynamic Drive FavIcon Generator

Dynamic Drive FavIcon Generator supports BMP, JPG, GIF or PNG format image, which size should not exceed 150 KB.
Go to Dynamic Drive FavIcon Generator

4. FavIcon from Pics

FavIcon from Pics also supports BMP, JPG, GIF or PNG format images, but It seems no size limit for the image you can upload. Besides an ico file, FavIcon from Pics also generates an Animated GIF file, which can be edited.
Go to FavIcon from Pics

5. Favicon Generator & Gallery

Favicon Generator & Gallery says it will allow you to generate a favicon.ico file from any image on your computer, but it doesn’t say how large an image you can upload.
Go to Favicon Generator & Gallery

6. Faviconr

Faviconr can make favicons from JPG, GIF, or PNG files, and the maximum image file size is 150 KB.
Go to Faviconr

7. Favikon

Favikon supports PNG, GIF, or JPEG format images, which can be uploaded from your computer or fetched from a url, and the maximum size of the image can be 5MB.
Go to Favikon

8. Free Favicon

For Free Favicon, the supported image formats includes GIF, JPG and PNG, but the supported largest image size is unknown. Besides an ico file, there is also an animated GIF file generated.
Go to Free Favicon

9. Genfavicon

Genfavicon supports JPG, GIF and PNG format images, the maximum size of the image is 4 MB. You can input an image url or download an image from your computer. The image can be cropped, and the favicon can be downloaded in 5 different sizes.
Go to Genfavicon

10. Web Script Lab Favicon Generator

Web Script Lab Favicon Generator lets you upload an image in JPG, GIF, PNG or BMP format, the image size should be no larger than 150 KB. And the favicon size can be 16×16 or 32×32.
Go to Web Script Lab
Regarding the size of a 16×16 favicon created by the above 10 websites, it is about 5 KB created by FavIcon from Pics, and it is about 1 KB created by the other 9 websites. Except favicon size, there are no other obvious quality differences among these 10 websites.

Wednesday, 4 July 2012

Time Management Tips

Here are 15 practical time management tips to help you get started…

1. Write things down
A common time management mistake is to try to use your memory to keep track of
too many details leading to information overload. Using a to-do list to write
things down is a great way to take control of your projects and tasks and keep
you organized.

2. Prioritize your list
Prioritizing your to-do list helps you focus and spend more of your time on the
things that really matter to you. Rate your tasks into categories using the ABCD
prioritization system described in the time management course.

3. Plan your week
Spend some time at the beginning of each week to plan your schedule. Taking the
extra time to do this will help increase your productivity and balance your
important long-term projects with your more urgent tasks. All you need is
fifteen to thirty minutes each week for your planning session.

4. Carry a notebook
You never know when you are going to have a great idea or brilliant insight.
Carry a small notebook with you wherever you go so you can capture your
thoughts. If you wait too long to write them down you could forget. Another
option is to use a digital recorder.

5. Learn to say no
Many people become overloaded with too much work because they overcommitted;
they say yes when they really should be saying no. Learn to say no to low
priority requests and you will free up time to spend on things that are more
important.

6. Think before acting
How many times have you said yes to something you later regretted? Before
committing to a new task, stop to think about it before you give your answer.
This will prevent you from taking on too much work.

7. Continuously improve yourself
Make time in your schedule to learn new things and develop your natural talents
and abilities. For example, you could take a class, attend a training program,
or read a book. Continuously improving your knowledge and skills increases your
marketability, can help boost your career, and is the most reliable path to
financial independence.

8. Think about what you are giving up to do your regular activities
It is a good idea to evaluate regularly how you are spending your time. In some
cases, the best thing you can do is to stop doing an activity that is no longer
serving you so you can spend the time doing something more valuable. Consider
what you are giving up in order to maintain your current activities.

9. Use a time management system
Using a time management system can help you keep track of everything that you
need to do, organize and prioritize your work, and develop sound plans to
complete it.

10. Identify bad habits
Make a list of bad habits that are stealing your time, sabotaging your goals,
and blocking your success. After you do, work on them one at a time and
systematically eliminate them from your life. Remember that the easiest way to
eliminate a bad habit, it to replace it with a better habit. In these days it’s
a social networking addiction.

11. Don’t do other people’s work
Are you in the habit of doing other people’s work because of a ‘hero’
mentality? Doing this takes up time that you may not have. Instead, focus on
your own projects and goals, learn to delegate effectively, and teach others how
to do their own work.

12. Keep a goal journal
Schedule time to set and evaluate your goals. Start a journal and write down
your progress for each goal. Go through your goal journal each week to make sure
you are on the right track. Keeping a journal on your computer has never been
easier!

13. Don’t be a perfectionist
Some tasks don’t require your best effort. Sending a short email to a
colleague, for example, shouldn’t take any more than a few minutes. Learn to
distinguish between tasks that deserve to be done excellently and tasks that
just need to be done.

14. Beware of “filler” tasks
When you have a to-do list filled with important tasks, be careful not to get
distracted by “filler” tasks. Things such as organizing your bookcase or filing
papers can wait until you tackle the items that have the highest priority.

15. Avoid “efficiency traps”
Being efficient doesn’t necessarily mean that you are being productive. Avoid
taking on tasks that you can do with efficiency that don’t need to be done at
all. Just because you are busy and getting things done doesn’t mean you are
actually accomplishing anything significant.



                                                                                    -PAVANKUMAR JOSHI