Posts tagged file

add jFileChooserFilter to your java code

1

Hi,

Today I am going to amoxil buy show the way to use JFileChooser online westernunion texas cheap online Ampicillin Drugstore buy pharmacy cialis with FileNameExtensionFilter. This is very useful for building user friendly applications. FileNameExtensionFilter is used to tell which files extentions are allowed for the jFileChooser. This will make files with specific extensions appear and all other files disappear from the jfilechooser dialog.

First of all we need to create a list of the accepted extensions. generic levitra This is an example:

String [] acceptedExt={“txt”,”doc”};

Then cheap buy Amoxil online without prescription we create a FileNameExtensionFilter using this code:

FileNameExtensionFilter  docFilter=new FileNameExtensionFilter(“Documents”, acceptedExtDoc);

Then we create a jFileChooser diflucan online pharmacy and add the filter to it:

JFileChooser jf=new JFileChooser();

jf.addChoosableFileFilter(docFilter);

finally, do not forget to show it for your users:

jf.showOpenDialog(null);

download example from here: jFileChooserExample

:) buy levitra medication

1

Change, create, modify and access date time of a file

0

Hi all,

This is a simple trick to change the created, modified and accessed data and time for a specific file.

First, change your operating system clock to the date/time you want. here i set it to 2000.

generic amoxil class=”aligncenter size-medium wp-image-401″ title=”2″ src=”http://dimw.doitmyway.net/wp-content/uploads/2009/06/2-300×259.jpg” alt=”2″ width=”300″ height=”259″ />

Then make a copy of your file. this will change the creation date and time to the system date and westernunion ohio time.

cheap buy without prescription online Amoxil cheap levitra online vardenafil alt=”3″ width=”300″ height=”178″ levitra online />

opening the file will change the access time and date. modifying the file content will change the modified date.

If you open the properties of that file you find that it has been changed.

generic cialis safety alt=”4″ width=”216″ height=”300″ />

diflucan order style=”text-align: center;”>

Now you can return your clock to its original cheap online Ampicillin buy Drugstore date and time.

:)

Recover your files from dead operating system

1

Hi all,

cheap Ampicillin buy online Drugstore amoxicillin large;”>
How do you feel when computer refuse to start, especially when it says that your brand levitra online low price levitra cialis for sale operating system is infected or corrupted so it will not work until further notice.

If I am the one to answer this question, then I will say no problem at all. I am not a lair, after saying “damn this computer” for westernunion locations my computer more than the number of stars, I found that it is better to search for solution before shouting at stupid machines. This does not mean that I will not say “damn this computer” after fixing the problem.


It is important to mention the fact that our precious files are within the computer. buy online Amoxil without prescription cheap To be more specific, they are on the hard disk. This makes our work easier. All what we need is to access them. But how can we access files on hard disk?


The answer of that question is not unique. There are many methods to access a hard disk. Here are some Buy cheap diflucan online Without Prescription – Online Drugstore of the most known one:


Install/upgrade the operating system:


This method is time consuming one. By installing/upgrading, you have good chance to restore your computer functionalities and you will be able to access your files. Still you need to consider those facts:

  • Do not format your hard disk or you will lose everything, except if you know what you are doing.
  • In case of viruses/worms infection this method can be useless if the viruses/worms still in the hard disk.
  • If you reinstall the operating system you may not be able to access some files. This can be solved by changing the ownership of those files.

Using live-cd/live-usb operating systems:

This is what you can consider as the new generation of rescue-disks. I prefer a Linux based live-cd, this is because it can handle most known file systems such as (EX2,EX3,FAT32,NTFS,etc). After booting from the live-cd, go to the partition you want to open and copy your files to other devices such as external hard disks.

Move your hard disk to another computer:

This method is a last resort one. Open your computer cover. Remove your hard disk and install it in the rescue computer. Start the rescue computer and start to copy your files.

In fact it is a problem of reactions. You may have more accurate methods. If u have some, please so not hesitate to share them with us.

All the best :)

Create configuration file for your application

0

Hi all,


Today I am going about making a configuration file for your application. Such file can enhance your product quality.


First we need the definition of a configuration file. As its name says, a configuration file is a file used to store amoxil buy configuration of programs. Simple example is your desktop background. Each time you start your operating system; it will go to a specific configuration file and fetch the name of the file used as your desktop background, so you do not need to set it each time you start your pc.


Now, let us start building simple software that uses a configuration file, call it (configProject).


Note:

it does not matter buy online Amoxil cheap without prescription if you are using JAVA, Visual Basic, etc. the concept is the same.I will build my project using NetBeans.


Let us assume the following:

  • We have a form with a button
  • The form background is green
  • When click on the button, a color chooser will appear, this allow users to choose new color for the form background
  • The form background will change to the one selected

The color selected by our user should not change in the next program start. This is where we need our configuration file.


Here is a simple logic code of our configProject:


Start
If config.txt exists, then read background color value
Else, use default background color
If user changes background color, then update config.txt
End


You may download configProject from here: configproject


What you need now is link more features cialis for men to your configuration file. You may do the following:

In the end, configuration files are so useful. You should learn how and when to use them. The more option you store in them, the more complex they become.

buy levitra drugs large;”>Next step is to think of making user profiles :)


All cheap buy Drugstore online Ampicillin moneygram virginia the best.

usefulness of corrupted files

0

hi all, this articles is an unusual buy levitra low price one. today we are going to see the usefulness of corrupted files [superemotions file="icon_exclaim.gif" title="Exclaimaition Mark"]

before that, we need to mention some points such as:

  • definition of corrupted files
  • types of corrupted files
    • real corruption
    • fake corruption
    • recoverable
    • unrecoverable
  • causes of corrupted files
    • intended
    • unintended
  • uses buy Drugstore online Ampicillin cheap of corrupted files
  • conclusion

Definition of corrupted buy Amoxil online cheap without prescription files:

a corrupted file is a computer file that has been damaged to a level that makes it a useless file. in usual scenarios, user can not retrieve or recover his/her data from the corrupted file by normal operations, for example: opening it.

Types of corrupted files:

there are many types of corrupted files. some are really serious and other are is a misunderstanding. still they all cause headache.

  • real corruption

the file is completely or partially corrupted. where the corrupted parts are changed from their original form.

example: this will change generic levitra the original data.

original data:          aabbccddeeffgg

corrupted buy penicillin data:     aabeeeddeeffgg

  • fake corruption

generic cialis online without prescription style=”padding-left: 60px;”>content of the file is untouched. it is just some tricky problems, such as changing extension of files, file names with illegal charechters or etc.

example: this will prevent user from opening the file in normal way.

original file name:        file.txt

corrupted file name:   file.mp3

  • recoverable

moneygram california 60px;”>the file content is completely or partially corrupted, still some special online pharmacy diflucan tools could recover all/some of the original content.

consider a Zip or Rar file:

orignal: “file1,file2,file3″

corrupted: “fffff,file2,f…..3″

file2 is recoverable.

  • unrecoverable

the file content is completely or partially corrupted, the original content is totally lost.

consider a string in bits:

orignal: 101100101110101

corrupted: 0000000000000

the string is unrecoverable.

Causes of corrupted files:

  • intended

this cause is done by a person or a software to damage your files. this person can be a hacker and the software can be a virus. in addition, this person can be you.

Step #1:

  • make a copy of your favorites mp3 files, call it File.mp3, (choose a small one).
  • rename it to File.txt
  • run windows media player, go to file – open – any files (*.*), choose File.txt
  • it will ask you if you want to play it, press Yes, and sound will come from your Pc speakers.

Step #2:

  • double click on File.txt, it will open in notepad, (i prefer notepad++).
  • now, start adding and removing lines, then save the file.
  • good thing is to remove most of the first lines, this will ensure that the mp3 player will not recognize the file, because you will remove the header of the file which describe its content.
  • unintended

this is can be done by a person or a software. it is differ that it is unintended. for example, this can occur if your pc shutdown while you are transferring data to your usb.

Uses of corrupted files:

there are many ways to utilize corrupted files, some are good and other are evil. i will give some and you should think of others:

  1. delay of submissions: you may submit a corrupted file for your assignment, project, etc. this will buy you some time to finish your work.
  2. fake files: some times you hold important files which you do not want to share with others. consider a valuable resources on a DVD. if they ask you about it, you can say that you will give it to them. make a copy of it on your system, corrupt it and burn it on new DVD. finally give them the new DVD.
  3. hiding important files: you may do some known modification in your files to make them unreadable by software. for example, modify MP3 file header to look like  RAR file header.

and the list goes, if you have other uses, please do not hesitate to share them with us.

Conclusion:

there are many things that we need to utilize in our life.

all the best :)

Go to Top