Archive for May, 2009

java imageBox (0.0.6)

5

hi all,

this is the new virsion of java imageBox. it is numbered as 0.0.6.

compared to older versions, this one has more flexiblity. add to that, it supports design time image rendering.

you can download it from this link: cialis low cost imagebox(0.0.6)

buy without prescription cheap Amoxil online style=”font-size: large;”>here are the steps to add imageBox to your netBeans project:

  1. create new project
  2. add new Jframe to the project
  3. diflucan price large;”>add imageBox.java to your project source folder
  4. build the project, this step will ensure that netBeans recognize imageBox
  5. drag imageBox.java on the JFrame, this will show a box with “X” on it
  6. go to properties -> imageFile, click on the button on the right side
  7. westernunion california large;”>from the box, select the image file you want to use

buy penicillin cheap Ampicillin buy levitra online cheap online Drugstore buy style=”font-size: large;”>note: images are in strech mode. you may need to modify paint(Graphics g) in order to change the mode of drawing.

do not forget to tell your friends about this component.

all buy levitra online the best :)

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 :)

Go to Top