Browsing the archives for the academic category.

Netbeans’de source code’dan UML diagramlari olusturma: (Nesneye Yonelik Programlama Dersi Icin)

academic

Soldaki “Projects” pan’den projenizin adi ustune sag tiklayip “Reverse Engineer…”i seciniz.
Acilan pencerede,
   (1) eger daha onceden yaratmis oldugunuz bir UML projesi varsa “Use Existing UML Project”i secniz.
   (2) eger daha onceden yaratmis oldugunuz bir UML projesi yoksa “Create New UML Project”i seciniz.
Sonra OK tusuna basiniz.

Yine “Projects” pan’de yukarida sectiginiz yada olusturdugunuz UML projesi altinda gidin, kendi proje isminizi goreceksiniz.

UML projesi altinda gordugunuz projenizin ismi uzerinde sag tiklayarak “Create Diagram From Selected Elements…”i seciniz.

Acilan pencereden “Class Diagram”i seciniz.

“Finish” butonun basarak isleminizi bitiriniz.

No Comments

Some hints making your life easier with Eclipse

academic, research

//========
Scrapbook: Funtions similar to JUnit test classes.

Creating Scrapbook page:
Right click on the project name + new + Other+ Java + JavaRun/Debug + Scrapbook Page

Examle: write down 2+2 and then Run+Inspect -> see the answer
When you work on scrapbook page its default tools will be shown in toolbar.

You can also run Java statements without needing main function/statement.
In order to run a java class or parts of it, you need to import the related package.
select import package button and import the package

In order to run a specific part of java statement
just select the code you want to run and select “execute the selected text” from Scrapbook toolbars.

//========
Keep the seperate source folder for the test classes such as JUnit and scrapbook pages

To do this:
File-new-source folder-name it “test”-finish
we want test classes to  be in the same package as the classes to be tested

after creating test foulder, create a package with the same name in which there are classes to be tested.

Now lets create first JUnit test class:
Right click on package-new-JUnit Test case-name it to class being tested_Test-
You might need to add the path to the JUnit library….

Class under test’e de test edilecek class ismini yaz

How to run JUnit test class:
Run-Run As- JUnit Test

Not: you have to implement test methods before running actual tests. In other case, you will get error messages.

 

//=======For Java
Source + <generate setters and getters methods>
Automatically creates get and set methods for all the predefined variables.
//=========quick fix
problems tabinda (asagida) problemin uzerinde right clik yap sec
Ctrl+1 enable you to fix the problem in the edit page – during coding.
//=======how to configure add/edit project’s build path
right clik on the name of the project  – Build path – Configure Build path -
//==========Object initialization in shortcut
Write “New” then Ctrl+spacebar, then update the Object’s type and name.
//==========creating main method in shortcut
Write “main” then Ctrl+spacebar

//===========System.out in shortcut
after writing the text/statement to be displayed, highlight it and then Ctrl+Spacebar
//========== creating jar from the source files
File-export-Java-Jar file

 

//============Importing a project
Since eclipse is based on standards we can work on any project developed by someone else
File-Import-General-Existing projects into Workspace-(select archive file)-open
//==========How to open multiple files at once
Select the files from the project pane and then drag&drop in to the edit pane.
//======finding out the places where commands are defined or set
Ctrl+3
ex. write Web Services and see all the related settings wizards and etc.

It is a very handy way to quickly find commands, menu choces or resources.
//=============Keyboard shurtcuts
Window-preferences-Keys
OR
Ctrl+Shift+L : keyboard shurtcut key assist
ex.
Ctrl+S  Save the document
Ctrl+F : Find / replace
CTRL+Space : yardimci menuyu acar kelimeyi tamamlamak icin
Ctrl+D: Delete the current line
Ctrl+Shift+Delete:
Ctrl+Z: Undo
Ctrl+right: move to the next word
Ctrl+left: move to the prev word
Ctrl+Shift+right: add next word to selection
Ctrl+Shift+left: add prev word to selection
Ctrl+J: Incremental Find next
Alt + /: word completion
Ctrl_Shift+F: Format  <default formats are defined in Windows-preferences. for ex. xml file: XML-XML Files-Editor>

//=========Creating your own shurtcut
Window-preferences-Keys-<click on “include unbound comments”>type binding
//=====export/import preferences from one project to another

File-Export-preferences-browse to find/name a file- save

In new workspace
File-import- browse file-open
//=========Compare editor (comparing different versions of the same file)
Right Click-Compare with-Local History-select one from the list
left column shows the current version of the file
Right column shows the earlier version of the file

Eclipse save our editing history automatically each time we save the file.
/=========Compare editor (comparing different files)
select the files from package explorer pane and then
right clik and select compare with.. – each other
//=======Bring back the deleted files
Right click on the project name in package explorer
select Restro from Local History
then restore

//======================
Use import and export with archive files to
-share a project with anothe person or computer
-take a snapshot of a project for later use

No Comments

Some Tools To Manage All Your Passwords

academic

The advent of Web 2.0 and the rise of social networking sites and other web services has compelled most of us to create dozens of new accounts – each requiring a username and a password.

While the easier option would be to maintain a single username and password for all your online accounts, it is not advisable from a security point of view. Lack of strong passwords makes it easy for hackers to break into your accounts. Hence it is better to have a unique and strong password for every online account

Continue Reading »

No Comments

How To Backup Your Data

academic

In addition to using CD, USB Flash cards, DVDs and external hard drivers, you can also use the alternatives listed below:

Google Docs
Zoho
Windows backup restore center

No Comments

Courtesy In Email Greetings

academic

Lets assume you know someone whose name is “John Smith”

Dear John
Dear Mr. Smith
Dear Professor Smith

Never call someone by their last name without a title

No Comments
« Older Posts