Friday, 29 November 2013

PDF


Convert Any Document or Web Page to PDF
Somebody just told you that you need to have Adobe Acrobat (Writer) to create a PDF file? Guess what, you can get away from that pricey piece of software if you just need to convert some documents to pdf, without a need of fancy editing the pdf document.
Here's how. Thanks to the BullZip, who provides a Free Pdf printer. With this free tool, you can simply "print out" your document or webpage to a pdf file, just about the same way as you print it out to a printer.
  1. To get started, first follow the link above and download Free Pdf Printer from BullZip, then install it to your computer.
  2. Once you're done, you might need to close the program (or the web browser) which you're currently viewing the document. This helps refreshing the list of available printers on your computer.
  3. Once you get back to the document you want to convert, perform the same steps are you print out the document, i.e. File > Print ...
  4. When you see the Print window pop-up, select "Bullzip PDF Printer" under "Printers", then click "OK".
  5. BullZip PDF Printer will then start to analyze your document and display a new pop-up window, where you can direct it to the location you want to save the pdf file.
  6. Follow the pop-up windows and.. hola! The PDF document is created!            

                                                                                                                               
    HERE THE DIRECT LINK

hide files


Hide Files or Folders Using Command Prompt
Trick to hide files and folders using Command Prompt
The most important thing is that, once hidden with this method, the files/folders cannot be viewed by any search options even if you click "Show All Hidden Files and Folders".
Hiding the most wanted files and folders is very important nowadays and it's really a tedious job too. In order to make this tedious job an easy one, i'm going to deliver you a the trick now.
For Example: You have a folder named "collegephotos" and this folder is stored in (Disk Drive E). You think that it should not be seen by strangers who use your PC.

For that you need to follow the following instructions
  1. Press windowkey+R: Run command dialog box appears.
  2. Now type "cmd" and hit enter. A command prompt window displays.
  3. Now type "attrib +s +h E:\collegephotos" and hit enter.
  4. The folder "collegephotos" will be hidden (Note: It cannot be viewed by any search options)

    (To view this folder again, use the same command but replace '+' with '-' on both flags 's' and 'h')

Tuesday, 26 November 2013

Virus Protection


Virus Protection

Recent statistics show that an unprotected computer can be infected with a virus, worm, or Trojan in less than five minutes after being placed on a network.

Worms and Trojans are the most common forms of infection and/or compromise. They are dependant on computer systems that have not been protected with the most current security patches released by operating system and application vendors. These neglected applications and operating systems provide easy targets for hackers to exploit in order to gain greater access for their criminal activity.

Some viruses prey on uninformed computer users. They do this by embedding attachments in appealing looking e-mails hoping to trick the user into activating the virus, worm, or Trojan. Viruses can also be transmitted during file sharing using Instant Messaging services. Users should never open an attachment in an e-mail or a file received through IM unless they know and trust the sender. Viruses can come from a friend or relative as easily as from a stranger. A common indicator that a virus is attached to an email is the presence of inadequate or misspelled text or short phrases like, "Attention!!!" or "Your file is attached." in the body of the message. An easy solution for this is to be suspicious of all attachments and shared files, even those from a known or trusted source.

In addition to patching, the most important tool a user can have to protect their computer from viruses is anti-virus software. This software protects a computer system from receiving viruses and from distributing a virus if the system becomes infected. The good news is that the University of Tennessee supplies free anti-virus software to all faculty, staff, and students. You can download the software at this link:
  http://antivirus.utk.edu
Please take advantage of this FREE service.

NOTE: After you have installed your anti-virus software it is extremely important to keep it up to date.

Remember, the three most important things you can do to protect your computer from virus infection are:
  1. patch the operating system (OS) and all other applications installed on your computer
  2. be careful and selective in which attachments you open
  3. install the free anti-virus software from UT on your computer as soon as possible -- preferably before attaching it to a network.

check ur internal

java


Stp1MVC Pattern UML Diagram
Create Model.
Student.java
public class Student
{
   private String rollNo;
   private String name;
   public String getRollNo()
 {
      return rollNo;
   }
   public void setRollNo(String rollNo)
 {
      this.rollNo = rollNo;
   }
   public String getName()
 {
      return name;
   }
   public void setName(String name)
 {
      this.name = name;
   }
}
Step 2
Create View.
StudentView.java
public class StudentView
{
   public void printStudentDetails(String studentName, String studentRollNo)
{
      System.out.println("Student: ");
      System.out.println("Name: " + studentName);
      System.out.println("Roll No: " + studentRollNo);
   }
}
Step 3
Create Controller.
StudentController.java
public class StudentController
{
   private Student model;
   private StudentView view;

   public StudentController(Student model, StudentView view)
{
      this.model = model;
      this.view = view;
   }

   public void setStudentName(String name)
{
      model.setName(name);               
   }

   public String getStudentName()
{
      return model.getName();            
   }

   public void setStudentRollNo(String rollNo)
{
      model.setRollNo(rollNo);                      
   }

   public String getStudentRollNo()
{
      return model.getRollNo();                      
   }

   public void updateView(){                                                
      view.printStudentDetails(model.getName(), model.getRollNo());
   }      
}
Step 4
Use the StudentController methods to demonstrate MVC design pattern usage.
MVCPatternDemo.java
public class MVCPatternDemo
{
   public static void main(String[] args)
{

      //fetch student record based on his roll no from the database
      Student model  = retriveStudentFromDatabase();

      //Create a view : to write student details on console
      StudentView view = new StudentView();

      StudentController controller = new StudentController(model, view);

      controller.updateView();

      //update model data
      controller.setStudentName("John");

      controller.updateView();
   }

   private static Student retriveStudentFromDatabase()
{
      Student student = new Student();
      student.setName("Robert");
      student.setRollNo("10");
      return student;
   }
}
Step 5
Verify the output.
Student:
Name: Robert
Roll No: 10
Student:
Name: Julie
Roll No: 10


ADVANTAGES:
       1) handle complex data binding code in controller, if required.
       2) easy to add multiple data representation for same data.
       3) u can test complex presentation logic without u1 testing frame.


BENEFITS:
       1) We can leave  the core data alone.
       2) We can test our changes in actual environment.
       3) We have multiple versions of same data displayed.


MODEL: Encapsulates core data and functionality.

VIEW:  encapsulates presentation of data there can be many views of common data.

CONTROLLER: it accepts i/p from user and makes a request from the model for data to produce a new view.