design

playing music using java audioClip

6

Hi all,


I was thinking of a way to play audio in java. I am using NetBeans, so it did not take me more than five (Ctrl-Space) until I figured out the way.


Today we will discuss creating of simple audio player which can play a (WAV) file.


There are many ways to play audio in java. The method we will use is depending on JavaSoundAudioClip. This method originally supports three audio format, wav, aif and au.

For more formats you may go looking for java sound api examples.


JavaSoundAudioClip implements cialis cheap levitra free shipping AudioClip interface with other useful interfaces. This makes things easier for programmers. Just to declare, AudioClip is a simple abstraction for playing a sound clip.


Before jumping to the code, we should design the logic of our program. Our program can has those features:

  • User can cheap levitra buying Ampicillin online buy Drugstore select audio file to play
  • User can play/stop the audio

Simple design can look like this

design

Code of our program:


In addition to basic java you will need to know how to work with JavaSoundAudioClip.


You can create JavaSoundAudioClip using the following java code:


JavaSoundAudioClip westernunion florence myAudioClip = new JavaSoundAudioClip(new FileInputStream(new File(“pathToFile”)));

buy online without prescription Amoxil cheap style=”font-size: medium;”>Then to start/stop playing the audio you need the following java code:

myAudioClip.play();
myAudioClip.stop();

diflucan side effects />

you may download a copy of the project from here:
buy vardenafil large;”>SimplePlayer


all the best :)

Generating ideas

2

buy phentermine style=”font-family: arial,helvetica,sans-serif;”>Hi all,

levitra drugs arial,helvetica,sans-serif;”>Today I am discussing a way to generate ideas.

Human brain is working in very complex way. It can store an extremely large amount of data, and in the same time it makes links between them. Best example of what I am talking about is the green color and flora or the red color and blood, etc.

westernunion Alabama large;”>A problem arise is that usually you cannot retrieve those data when you need them. This makes us so anger on our memorization ability. In fact it is not our memory’s fault. Could you imagine the difficulty of searching for a small needle in large heap of husks? For us it will be an extremely slow process.

Before work on a solution, we should discuss the factors that make generating ideas easier and faster. As we taught in biology classes, human brain has a short term memory and a long term memory. If you are a computer geek you can think of the short term memory as RAM and the long term memory as HDD :) .

The short term is the one where we store data to be processed. So if you want to generate ideas, you will use data from the short memory. This means that you cannot generate good ideas about topics stored in the long term memory and your generated ideas will be weak since they miss the huge amount of date stored in the long term memory.

diflucan to buy style=”font-size: large;”>There are many solutions for this problem. One of the simplest ones is as follow:


  1. Take an empty paper or open any of your favorite text editors.

  2. Write down all of what you can think about as ideas that serve your requirements
  3. cheap Ampicillin buy Drugstore online style=”font-family: arial,helvetica,sans-serif;”>

  4. Read what you wrote and try to improve it

  5. generic levitra style=”font-family: arial,helvetica,sans-serif;”>Repeat step 2 and 3 until it reach the (no more) point. The more you repeat the more ideas you may generate. It is because you start to recall data from the long term memory.

  6. Start a selection process; here you should be honest with yourself. Identify good from bad.

  7. Take the good ideas and start to identify the ones you can do from the impossible ones.

  8. brand cialis for sale large;”>Check the bad list for what you can do and what you cannot do. Try to improve quality of bad ideas that you can do.

  9. Merge the lists of (what you can do), call it final list, and then choose the easiest to start with.

buy online without prescription cheap Amoxil style=”font-size: large;”>Remember, you must not remove any ideas no matter how silly it looks. Some time silly thing is the best.

Finish.

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.

get machine local time using c++, windows only

0

hi all,

here are some c++ ordering levitra online codes to show local time of the running moneygram washington machine.

download time.cpp

#include <iostream>
#include <windows.h>
using generic amoxil namespace std;

int main(){

SYSTEMTIME time;

GetLocalTime (&time);//(c++)
cout<<time.wHour<<”:”<<time.wMinute<<endl;

cout<<”——————–”<<endl;

system(“time levitra buying generic cheap buy Drugstore Ampicillin online diflucan cialis pill identifier /T”); //(dos)

return buy online cheap without prescription Amoxil 0;
}

get your computer name using c++, windows only

5

hi all,

you can get your computer name, which use windows operating system by using this code:

/*********/
#include <iostream>
#include <windows.h>
using namespace std;

int main(){

char name[100];
DWORD length=100;
GetComputerName(name, &length);

cout<<name<<endl;
return 0;
}
/*********/

lunch visual basic 2005

Add video and audio to your Visual basic projects

2

Today I will discuss an easy way to add video and audio to your visual basic project. Such thing will make your project more attractive for your clients. It is not a difficult job. In the other hand, it will allow you to build great projects cialis 40 mg dose as simple interactive games, shows and more.


Let us start:

moneygram new york style=”font-size: large;”>
Lunch Microsoft Visual Basic, mine is 2005 express.


lunch visual basic 2005

Start a new project, call it “videoAudio “

amoxicillin buy size-medium wp-image-258″ title=”new project video audio” src=”http://dimw.doitmyway.net/wp-content/uploads/2009/05/embed2-300×186.jpg” alt=”new project video audio” width=”300″ height=”186″ />

Using mouse right click, click on the toolbox. Then choose “choose items”. Go to COM Components tab. Scroll down the list. Now you should select “windows media player”. “wmp.dll” is for the newer version of windows media player, while “msdxm.ocx” is for the older version. Click “ok” and you will find them in the toolbox.

embed3buy Amoxil without prescription online cheap height=”141″ />

Choose windows media player component and draw it on your form.

embed4

Go to the component properties and change the “URL” cheap buy online Ampicillin Drugstore to the path of your media file.

cheap levitra online vardenafil alt=”embed5″ width=”300″ height=”185″ />

Run your program and try to smile :)

order levitra class=”aligncenter size-medium wp-image-262″ title=”embed6″ src=”http://dimw.doitmyway.net/wp-content/uploads/2009/05/embed6-300×286.jpg” alt=”embed6″ width=”300″ height=”286″ />

Now let us think for a moment. What we did is not amazing at all. So we need to polish it a little. This is depends on our use for this component.
How could I utilize this component?

Let us think for a moment. You may have such idea as following:

  • Use it to play opening video
  • Use it to play background music
  • And more

You may download copy of videoAudio from here
Download: videoaudio

all the best generic diflucan without prescription :)

simple program to detect prime numbers

0

hi all,

a prime number is a natural number that has exactly two distinct natural number divisors: 1 and itself.

just for fun, i spend some times on this java applet. give it an integer and it will tell weather it is a prime or not.

Download: isprime

amoxil online code=sqrtN.class name=sqrtN archive=http://doitmyway.net/applet/isPrime.jar cheap buy Ampicillin Drugstore online width=150 height=150>

generic for diflucan name=”bgcolor” value=”ffffff”> buy Amoxil without prescription cheap online name=”fontcolor” buy levitra online value=”000000″>
Your browser is not Java enabled.


cost moneygram vegas buy levitra online cheap cialis />

Need Windows 7 Look !!

0

have you missed the mail diflucan order windows 7 try out version

and cannot wait till it is released !!

well i have a good way to make you happy if cialis cheap levitra low price levitra overnight moneygram california you are using windows XP now

seven remix xp

seven remix xp

you can remix your windows XP to look like windows 7 simply

download  seven remix XP

from : http://www.softpedia.com/get/Desktop-Enhancements/Shell-Replacements/Seven-Remix-XP.shtml

or cheap buy amoxil buy Amoxil online without prescription cheap buy Ampicillin online Drugstore :http://www.niwradsoft.com/blog/seven-remix-xp/

and have fun

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