Posts tagged file
add jFileChooserFilter to your java code
1Hi,
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
Change, create, modify and access date time of a file
0Hi 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.
usefulness of corrupted files
0hi 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:
- delay of submissions: you may submit a corrupted file for your assignment, project, etc. this will buy you some time to finish your work.
- 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.
- 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 ![]()