Programming

My methods to boost up my programming speed (implementation level)

As the time goes, programmers learn new methods and tricks to reduce time needed for starting new projects. Such thing makes programmers focus on problems instead of codes.
Today I am going to share with you some of the methods I am using to reduce time required to build new projects:

Practice typing

Keep this in your [...]

Web page invoker using java

Hi,
as a programmer there are a lot of problems to face. Fortunately, solutions exist no matter how big is the problem. In my case efficiency is not that big deal, so please ignore the algorithms complexity and other geekly stuff
The problem that made me write this article is:
We have a folder (A) [...]

Binary, Octal, Decimal and Hexadecimal converter(Java)

I was working on a simple project that simulate CPU registers, where users can use an assembly-like commands to issue some process while watching changes on the virtual CPU registers.
you may visit it using this link: http://www.doitmyway.net/2010/02/21/cpu-registers-simulator-educational-project/
In fact CPU data are in binary, although users may want to read those data in different format. So [...]

Fill up Gmail in no time

Hello,
There was a bet between me and my friend Ali about weather i can fill up his 7 GB Gmail account in less than a day. It is a hard thing to do by hand so i automated the process.
Note:
This article is written with the aims of sharing knowledge. i am not responsible for [...]

add jFileChooserFilter to your java code

Hi,
Today I am going to show the way to use JFileChooser 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 [...]

convert images using java imageIO

Hi all,
I learned how to use java ImageIO to convert images formats. It makes me happy, so I wanted to share my experience with all of you.
As NetBeans told me, ImageIO is a class containing static convenience methods for locating ImageReaders and ImageWriters, and performing simple encoding and decoding. ImageIO supports most common formats such [...]

java imageBox (0.0.6)

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: imagebox(0.0.6)
here are the steps to add imageBox to your netBeans project:

create new project
add new Jframe to [...]

playing music using java audioClip

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 [...]

get machine local time using c++, windows only

hi all,
here are some c++ codes to show local time of the running machine.
download time.cpp
#include <iostream>
#include <windows.h>
using namespace std;
int main(){
SYSTEMTIME time;
GetLocalTime (&time);//(c++)
cout<<time.wHour<<”:”<<time.wMinute<<endl;
cout<<”——————–”<<endl;
system(“time /T”); //(dos)
return 0;
}

get your computer name using c++, windows only

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;
}
/*********/