skip to main | skip to sidebar

OPEN SOURCE

Linux for Better life

  • Home
  • Trik-Tips
  • Free Template
  • Blogger Hack
  • Free Ebook
Showing posts with label code. Show all posts
Showing posts with label code. Show all posts

Java


/*
* Praktikum Algoritma dan Pemrograman
* STMIK AMIKOM Yogyakarta
* =======================================================
* Algoritma pencarian menggunakan metode Sequntial Search
* pada data acak.
*
*/

import javax.swing.JOptionPane;

public class SeqSearch {
public static void main (String[] args) {
// diberikan array data yang tidak terurut
int [] data = {1, 5, 9, 3, 6, 2, 11, 19, 7, 10, 89};

// mengambil input berupa kunci yang akan dicari
String keyStr = JOptionPane.showInputDialog("Data yang dicari:");

// mengkonversi kunci yang bertipe String ke int agar sesuai dengan
// tipe data pada array
int keyInt = Integer.parseInt(keyStr);

// penanda apakah data ditemukan atau tidak
// nilai awal adalah false atau tidak ketemu
boolean ketemu = false;

int i = 0; // iterator atau variabel perulangan
int idx = -1; // variabel untuk menampung index

// lakukan perulangan ketika tidak ketemu dan iterator kurang dari
// panjang array
while(!ketemu && i < idx =" i;" keyint ="=" ketemu =" true;" i =" i" x =" ekspresi" x =" nilai1;" x =" nilai2;" pesan =" ketemu">

Posted by MALIK 0 comments

Labels: code, free, Java, source code

UNIX and LINUX part 16


The following example matches any line containing the word Apples.
nawk '/Apples/' fruits

Escape Sequences
The following sequences of characters are referred to as escape sequences. Escape sequences specify a notation for characters that are not easily produced from your keyboard and/or cause problems when displayed to your screen. The nawk and echo commands use escape sequences. Although only nawk uses the escape sequences in regular expressions.
Sequence
Description
\b Matches a backspace.
\f Matches a form feed.
\n Matches a new-line.
\r Matches a carriage return.
\t Matches a tab.
\0ddd Matches the ASCII character for the given octal ASCII code.
\c Matches the literal character c. Use \ to generate a \.
Expression Patterns
Expression patterns perform number or string comparisons. Nawk provides eight comparison operators. Six of these operators are relational operators used to perform number or string comparison. The other two are string operators used to perform string comparisons.
String Operators may be used to compare a regular expression pattern to a specific field or the entire input line. The following two operators are supported:
Operator
Function
/RE/ Matches if the current line contains the specified regular expression. Same as the $0 ~ /RE/ command.
expr ~ RE Matches if the string value of expr contains the regular expression RE. For example,
nawk '$1 ~ /[Aa]pples/' fruits

matches lines where field 1 contains "Apples" or "apples."
expr !~ RE Matches if the string value of expr does not contain the regular expression expr. For example,
nawk '$3 !~ /[Aa]pples/' fruits

matches lines where field 1 does not contain the word "Apples" or "apples."
Relational Operators Relational operators compare strings and numbers. The following six operators are used to compare values.
Operator
Function
lv > rv True if lv is greater than rv. For example,
nawk 'NF > 3' fruits

prints each line containing more than three fields.
lv >= rv True if lv is greater than or equal to rv. For example,
nawk ' $1 >= "M" ' fruits

prints each line where the first field begins with a character that has a higher ASCII code than capital M. Such as N, O, P, Q, etc.
lv < rv True if lv is less than rv.
lv <= rv True if lv is less than or equal to rv.
lv == rv True if lv is equal to rv. For instance,
nawk '$1 == "Oranges" ' fruits

prints each line where the first field equals the string "Oranges."
lv != rv True if lv is not equal to rv.
Compound Patterns
A compound pattern is an expression consisting of multiple expression patterns combined with Boolean operators. The Boolean operators are || (OR), && (AND), ! (NOT), and use of parentheses for grouping the operators. If the result of a compound pattern is true, the current input line is matched and the associated action is executed.
Boolean Operators The Boolean operators can be used to combine regular and relational expressions. The following table describes the Boolean operators.
Operator
Function
! Negation. True if expression is NOT true. For example,
nawk '! /Apples/' fruits

prints each line that does not contain the string "Apples."
|| Logical OR. True if either expression is true. For instance,
nawk '$3 > "3,000,000" || $1 == "FRUIT"' fruits

prints the header line and each line with bushel counts of more than "3,000,000." Note 3,000,000 is a string, not a number, because of the commas.
&& Logical AND. True if both expressions are true. For example,
nawk '$3 > "3,000,000" && NF == 5' fruits

prints the header line and each line containing exactly three fields.
( ) Perform comparisons enclosed together(for grouping). For instance,
nawk '( $1 == "Apples" || $1 == "Oranges" ) &&
( NR == 4 )' fruits

prints lines where the first field is either "Apples" or "Oranges" and there are exactly four fields.
Range Patterns
Range patterns contain two patterns separated by a comma (,). A range pattern matches each line from the occurrence of the first pattern to the occurrence of the second pattern. Both patterns may appear on the same line, thus only the one line is matched. If no input line matches the first pattern, no lines are selected. If no input line matches the second pattern, all lines from the first pattern to the end of the file are selected. For example, the following command selects all of the lines from one that contains Apples to one that contains Cherries.
nawk '/Apples/,/Cherries/' fruits

ACTIONS
The action part of an nawk program performs specified actions when a pattern is matched. If no action is specified the default print action is used. The default is the same as specifying { print }, which is equivalent to { print $0 }.
Comments
The nawk command ignores any characters on a line following a # sign. Thus you can document your nawk programs using the number sign.
Constants
Two types of constants are used by nawk, numeric and string. String constants are created by enclosing a sequence of characters in double or single quote marks. For example,
$1 == "FRUIT"

Posted by MALIK

Labels: BSD, code, command, program, unix

UNIX and LINUX part 12


Tracked aliases
Tracked aliases are not true aliases. A tracked alias is the actual command name and the full pathname used to access an existing command. It is called tracked alias because the path is aliased for the command name and the new alias tracks directly to the command. This keeps the shell from having to search the entire PATH for a command, thus providing faster command execution.
You can turn command tracking on by using the set command. Type
cj> set -o trackall

to inform the shell to track all commands issued to it. For example, the following sequence of commands illustrates the automatic tracking of commands.
cj> set -o trackall
cj> alias ls # list alias of ls command
ls alias not found # no alias exists for ls
cj> ls # execute the ls command
...
cj> alias ls # list alias of ls command
ls=/bin/ls # tracked alias has been set to full path

You can track individual commands by using the -t option. For example,
cj> alias -t ls

would cause the same results as the above steps. But the shell would not automatically set every command you issue to a tracked alias.
RETURN CODES
Alias returns a zero (true) unless a name is given that has not been set to a string.
APPLICATIONS
The alias command is used to create shorthand versions of longer commands. It is very useful for hard-to-remember commands and for those commands you use repeatedly throughout the day. Remember to place your aliases in your .profile or your ENV file (.kshrc) so they are set each time you log in.
The unalias command is used to remove previously set aliases.
TYPICAL OPERATION
In this activity you use the alias command to create various aliases. Begin at the shell prompt.
1. Type alias "I= -F" and press Return.
C Shell
Type alias I "Is -F" and press Return.
2. Now try your new command by typing I and pressing Return. Notice the output of your l command is a multicolumn list with the executable (*) and directory (/) files being flagged.
3. List all aliases you have set by typing alias and pressing Return.
In this activity you use the unalias command to remove the previously defined l alias command. Begin at the shell prompt.
1. Remove the l alias by typing unalias I and pressing Return.
2. Type alias I and press Return to list out your l alias. Notice the l alias is no longer defined.
3. Turn to Module 64 to continue the learning sequence.

Posted by MALIK

Labels: alias, application, code, command, linux, path, unix

UNIX and LINUX part 7


PORTABILITY
One of the most sought after features UNIX possesses is portability. Portability is the ability to rewrite the operating system for a different vendor's hardware without a major rewrite effort. UNIX is highly portable and has been ported by many hardware vendors to their computer hardware. In fact, every computer vendor has a UNIX or a UNIX-like system ported to their hardware - a milestone that no other operating system can claim.
There are two main reasons UNIX is a prime system for porting from hardware to hardware. The first is that the kernel provides an interface between the hardware and most of the nonkernel UNIX software. When UNIX is ported to another hardware platform, only the kernel requires major modifications. Since most of the UNIX software interfaces with the kernel and not the hardware, the software is hardware independent and does not require much, if any, modification when it is ported to a new hardware platform.
The second reason UNIX is easy to port is that the majority of the UNIX operating system is written in the C programming language. Most operating systems are written in the hardware vendor's proprietary assembly language. This makes it very difficult, if not impossible, to port their operating systems to a different vendor's computer.
Benefits
Portability allows the customer to choose the vendor and not be locked into that vendor's hardware and software environment. It also provides the user with a broad base of application software that can be used on hardware from different application vendors.
The porting of an operating system creates a standard software environment across a broad range of computers, ranging in size from micros to supercomputers. This cuts training time dramatically and increases overall productivity. It also reduces support costs and redevelopment costs.
PORTABLE APPLICATION SOFTWARE
The UNIX System provides a standard application development environment that allows for easy porting of application software. The C programming language is a big asset to the porting of software between different UNIX machines.
The ability to port software to many systems easily provides application software vendors with a much larger market without the headaches of multiple proprietary environments. Customer training requirements are reduced and the training of internal personnel is minimized. The number of support people needed is not increased because of different knowledge base requirements, but because more software is being sold. Development can spend more time on enhancements instead of ports to unknown, proprietary architectures. Once a customer has bought a product on one UNIX machine, the customer can purchase a different vendor's UNIX machine and be able to use the same applications without having to retrain personnel. As you can understand, portability is a very important issue for many computer users.
JOB CONTROL
Job control on UNIX is the ability to control which job is executed in foreground, background, or is suspended.
* Foreground execution is considered normal interactive command execution. The command is entered from the keyboard. The shell waits until the command completes execution, then the shell prompts for another command to execute.
* Background execution is considered batch processing. A command is entered and detached from the terminal. The shell can continue interactive command processing.
* Suspended jobs (processes) are commands that have been placed in a suspended state. They are not being executed in background or foreground.
Job control allows you to suspend a foreground or background job. A suspended job can be moved to background or foreground. Background jobs can be brought to the foreground and foreground jobs can be placed in the background.
Using job control can increase the productivity of a user by allowing multiple tasks to be juggled back and forth between background, foreground, or a suspended state. For example, a user can edit a source file while executing the compiled program, thus watching the functionality of the program and making changes while suspending the program.

Posted by MALIK

Labels: code, free, linux, open source, operating system, unix

UNIX and LINUX part 6


COMMUNICATING WITH OTHER USERS
UNIX provides multiple ways to communicate with other users. There are commands to communicate interactively or by electronic mail (E-mail). The following is a brief overview of some of the more common commands used to communicate with fellow users.
WRITING TO A USER
The write command allows you to write to a user that is currently logged on to the system. The following steps show how to "talk" to a user with write.
1. First you must find out who is available for you to write. Type who and press Return. This will display who is currently on the system. Select a user to write to and continue on to the next step.
cj> who
bill tty05 Jan 11 08:41
nancy tty07 Jan 11 08:03
mylogin tty11 Jan 11 09:05
nasser tty18 Jan 11 07:49
smr tty23 Jan 11 09:11
tlp tty09 Jan 11 07:38

2. Type write bill and press Return. Now type a message you would like to send to bill. When you finish writing your message press Ctrl-D.
cj> write bill
Hi Bill,
This is Robert. I finally got my UNIX login and am trying to
annoy all other users so they will log off the system and
response time will improve. Have a great day and LOG OFF the
system now!.
^D

NOTE:
While you are typing your message you may see text intermixed with what you are typing. This is probably one line of a response message from the person you are writing.
RECEIVING MESSAGES FROM WRITE
If someone is sending you a message from write, you can perform the following steps to respond.
1. First you will receive a message and a beep when someone writes to you.
Message from bill tty5...

2. Respond by typing write bill and pressing Return. From this point forward you continue your communication as if you had initiated the conversation.
SENDING MAIL
You can send mail to a user by using the mail command.
The mail command reads in a message and sends it to a mailbox for the specific user. The following steps show how to send a simple letter to a user on your local system.
1. First you must know to whom to send the letter. To retrieve a list of all users on your local UNIX System type nawk -F: '{print $1" "$5}' /etc/passwd | sort | more and press Return.
2. Select a user name and type mail nancy and press Return. Now you may type the letter you wish to send to nancy. After you finish the letter, press Ctrl-D to send the letter to nancy. Replace nancy with the name of a user on your system.
RECEIVING MAIL
To receive mail, a user must first send mail to your user name. If no one likes you and you never receive mail you can always send mail to yourself. This is very common practice; it provides an on-line reminder service. The following steps show how to read any mail that may have been sent.
1. Type mail and press Return. Notice the message you requested your system administrator to send you is displayed. If there's no mail you probably have a very busy system administrator.
2. The mail utility has a help feature that provides some insight to using it more effectively. Type ? or help and press Return. Notice a screen of information on the mail utility is displayed.
NOTE:
There are two major versions of the mail utility. One is UNIX System V and the other is Berkeley based. The Berkeley version is supplied with System V as mailx, although it is possible that it has been moved to the mail name. This book discusses the Berkeley /usr/ucb/Mail version and the System V /bin/mailx version of mail and refers to it as mail/mailx.
LOGGING OUT OF THE SYSTEM
To log out of UNIX you must exit the shell. There are multiple ways of exiting the shell; the most common is pressing Ctrl-D. You may also type exit and press Return or, on some systems, you may type logout and press Return.

Posted by MALIK

Labels: code, free, linux, open source, operating system, unix

UNIX and LINUX part 5


TEXT EDITING AND DISPLAYING
UNIX provides multiple ways to enter text into files. The most common way is to use one of the editors. The editors are ed, ex, and vi. The ed editor is the most basic editor. It is a line editor. A line editor does not display the text on the screen while you are editing. You have to display the text, then perform editing functions on a line-by-line basis.
The ex editor is an enhanced version of the ed editor. It provides much better substitution and addressing capabilities. But it is still a line editor.
The vi editor is a visual editor built on top of the ex line editor. Thus vi has the power of visually displaying the text you are working on while also having a powerful line editor to perform substitutions and other necessary functions.
The following steps show you how to create a file using the vi screen editor. It is advisable to learn the ex and vi editors because of there power and popularity.
1. Before you begin using vi you must have your environment set properly. First type env and press Return. Notice that a list of variables is displayed on your screen. Look for the TERM= variable in the list. This variable must be set before vi will perform correctly.
C Shell
Type printenv and press Return.
2. To set TERM to a desired terminal type, type TERM=VT100 and press Return. Replace VT100 with the type of terminal you are using.
C Shell
Type set term=vt100 and press Return.
3. Begin editing a file by typing vi file1 and pressing Return. Notice the screen is cleared and tildes (~) are placed along the left side. The filename is placed on the bottom line along with status information. Your screen looks like the following display.
4. To enter text, type i; this puts vi in insert mode. Now type This is a new file created by vi. and press Esc. Notice you entered a line of text and now the cursor is at the end of the line.
5. To duplicate the line, type yy to yank it to a register and type p to put it back on the screen. Notice you now have 2 lines of text that are identical.
6. To move up 1 line type k, to move down 1 line type j, to move right 1 character type l, and to move left 1 character type h.
7. To jump to the beginning of the current line type 0. Notice the cursor moves to the beginning of the line.
8. To jump to the end of the current line type $. Notice the cursor moves to the end of the line. Remain in vi to continue the following steps.
The following steps show you how to interface with ex commands while in vi.
1. Type :ver and press Return to display what version of vi/ex you are using. On some systems you will need to press Return to redisplay the vi screen.
2. Write the file to disk by typing :w and pressing Return. On some systems you will need to press Return again to redisplay the vi screen.
3. To substitute a string throughout the file (global substitute) type :%s/a new/an old/g and press Return. Notice that both lines changed from having the string "a new" to having "an old." The percent sign (%) tells ex to search lines 1 through end-of-file (EOF). The "s" tells ex to perform a substitution. The "/a new/an old/" says to search for "a new" and change it to "an old." The g tells ex to change all occurrences on a line. The default is to change the first occurrence on each line. Press Return.
4. To escape to the shell type :sh and press Return. Notice a shell prompt appears on your terminal; you have been placed in a new subshell. You may execute any normal UNIX command. To return to vi/ex press Ctrl-D and then press Return.
5. To execute a UNIX command without leaving the editor type :!cat % and press Return. The % is expanded by vi into the current buffer name (file1). The command cat file1 is executed and control is returned to vi.
6. To save the file to disk and exit vi type ZZ (capital letters).

Posted by MALIK

Labels: code, free, linux, open source, operating system, unix

UNIX and LINUX part 1


CORRECTING TYPING MISTAKES
The UNIX System reads each individual character and temporarily saves or buffers them until you press Return or Line Feed. It then interprets the entire line and performs the requested operation.
The UNIX System performs full duplex input/output (I/O) with your terminal. This means you can type characters in to UNIX while UNIX is displaying information out to your terminal. This will result in a messy, hard-to-read screen, but the data will flow both directions, and the input flow will be interpreted in the correct sequence. You may also type ahead of the UNIX System's ability to read the characters, referred to as UNIX's read-ahead feature. The number of read-ahead characters you may type is limited but usually it is more than you will ever need (256 to 4096).
Default Correction Keys
The @(^U-csh), #(DEL-csh) and \ characters have special meaning to UNIX. The @(^U-csh) character deletes the current input line and is referred to as the line kill character. The #(DEL-csh) erases the last character and is referred to as the erase or backspace character. Multiple #(DEL-csh) erases back to the beginning of the current line. The \ character escapes the meaning of any special character. Therefore \# prints a # and does not perform a backspace.
Resetting Correction Keys
The @(^U-csh) and #(DEL-csh) keys can easily be reset. The standard reset values are Ctrl-X (while pressing and holding the Ctrl key, press the X key) used in place of @, and Ctrl-H (Backspace) used instead of #. Most csh users (who are usually on BSD systems) do not reset the ^U and DEL keys.
1. Display the current settings that UNIX interprets as special keys on your terminal by typing stty and pressing Return. Notice the erase and kill default settings. Depending on your system administrator, your settings may differ. The output format for stty may differ if you are on a BSD system.
cj> stty
speed 38400 baud; -parity cread
erase = #; kill = @; swtch = ^';
-inpck icrnl -ixon onlcr tab3
echo echoe echok

BSD (Berkeley)
cj> stty everything
2. Redefine the erase and kill characters by typing stty erase "^h" kill "^x" and pressing Return. The "^" (caret) is typed as Shift-6; do not type Ctrl-H. Notice stty does not display a response.
3. Display the new settings by typing stty and pressing Return.
cj> stty
speed 38400 baud; -parity cread
erase = ^h; kill = ^x; swtch = ^';
-inpck icrnl -ixon onlcr tab3
echo echoe echok

4. Type echo Ti#his is a #n example. at your shell prompt and press Return. Use the appropriate erase key (Ctrl-H/Backspace) in place of the # keys. Notice that when you press your Backspace key the cursor moves back one space.
5. Type echo Another eamxpl@echo Another example and press Return. Use the appropriate line kill key (Ctrl-X) in place of the @ key. Notice that when you press your kill key the cursor jumps to the beginning of the next line; the old line is ignored and a new line of input is read.
BSD (Berkeley)
The new BSD device driver will erase the current line and move your cursor to the beginning of the current line.
6. Type cat/etc/group and press Return. Be ready to immediately press Ctrl-S to stop the output. The Ctrl-S does not appear on your terminal. To resume scrolling of the output press Ctrl-Q.
7. If you have I/O problems with your terminal, check the setting with stty and refer to the stty command (Module 126) for valid parameters. Don't hesitate to request help from a knowledgable source about your terminal and the tty device driver. This is usually a difficult part of UNIX to get a handle on.
KNOWING WHICH UNIX YOU ARE USING
To know which type or version of UNIX you are using, use the uname command. Type uname and press Return. If the name of your system is displayed, you are probably on System V UNIX. If the shell returns a message like "uname: command not found," you are probably on a BSD system.
Another check to perform is to type ls/usr/ucb and press Return. If a listing is returned, you are probably on a BSD-type system. If a message like "/usr/ucb not found" is returned, you are probably on a System V system.
These are not guaranteed checks but they are fairly reliable. If both return info then you are on a hybrid SV and BSD system.
KNOWING WHICH SHELL YOU ARE USING
To know which shell you are using, use the ps command.
On System V type ps and press Return.
BSD (Berkeley)
On BSD type ps -u and press Return.
The right-hand column contains the names of the programs currently executing. If one is csh, you are using the C shell; sh is the Bourne shell, and ksh is the Korn shell.
Another alternative is to type echo $0 and press Return. If you are using the sh or ksh, the corresponding string is displayed on your terminal. If you are using the csh, nothing is displayed

Posted by MALIK

Labels: code, command, linux, sistem, unix

A SAMPLE SESSION WITH UNIX USER COMMANDS


DESCRIPTION
This module provides basic information about getting started using UNIX. It then leads you on a "hands-on" tour of the most commonly used UNIX commands. Because this module is intended to get you familiar with UNIX, it does not provide in-depth explanations. If you wish to know more about a command while you are using it, refer to the module for the given command. The third module provides additional information about features of the UNIX operating system.
The following is a brief outline of information contained in this module. The information discussed in the first four sections is usually set by the system administrator when your login account is created.
* Terminal setup
* Communications between UNIX and your terminal
* Logging in to the UNIX System
* Correcting typing mistakes
* Setting/changing your password
* Knowing which version of UNIX you are using
* Knowing which shell you are using
* UNIX environment
* Executing commands
* Common commands
* Text editing with vi/ex
* Communicating with others
* Logging out of the UNIX System
BEFORE YOU START
Before you can begin using the UNIX operating system you must have a login account. You should request the login account from the system administrator. If you do not have a system administrator, you must create a login account yourself. Check your System Administrator's Guide or Reference Manual for instructions on how to do this.
You will also need a terminal connected to your system. There are several ways for terminals to communicate with the UNIX System: via direct wire, modem, or terminal servers. Your system administrator should connect your terminal to the system.
LOGGING IN TO THE UNIX SYSTEM
Once you have a "login:" prompt on your terminal and a login account, you can log in to the UNIX System. Throughout this book we assume /u1/ts/mylogin is your login (HOME) directory. After you log in and know your HOME directory substitute it in place of /u1/ts/mylogin. We also use the "mylogin" login name; you should replace it with your login name.
1. At the login: prompt type mylogin and press Return.
cj login: mylogin

TIP: Make sure your CAPS key is not activated. If you have a LOGIN: prompt in all capital letters, press Ctrl-D and wait for a new login: prompt to appear, then try to log in to the system.
NOTE:
Your login name must contain one lowercase character. If you do not type at least one lowercase character, UNIX assumes your terminal cannot generate lowercase ASCII characters and treats all characters as uppercase for the remainder of your login session.
2. Type iamuser2 and press Return at the passwd: prompt to log in to the system. Be patient! Depending on your system and its load factor, it could take from a few seconds to a few minutes for the system to respond.
cj login: mylogin
passwd:

NOTE:
Your password will not be printed, or "echoed," as you type it. The UNIX System disables the output so nosy people are not able to read your password.
3. If your login was successful, you should see information displayed on your screen. If your login attempt was unsuccessful, your display will resemble the following,
cj login: mylogin
passwd:
Login incorrect.
login:

NOTE:
If, after a couple of attempts, you cannot get logged in, check your login name and password with the ones your system administrator gave you. If you are still unable to gain access into the system, contact your system administrator, he/she likes to hear from frustrated users!
Messages from the system
The following list is a possible sequence of what may appear on your screen once you type the correct password. You may be required to type information to complete the login sequence. This depends on your local system.
* General information about the local UNIX System is displayed on your terminal from the message of the day file (/etc/motd).
* System displays or lists unread news items.
* System displays or informs you of mail you have received.
* You may be requested to set your terminal type.
* System displays various other information the system administrator has set up.
* A prompt from the UNIX shell (command interpreter) appears. The default prompt is a dollar sign ($).

Posted by MALIK

Labels: code, command, linux, sistem, unix

Linux part 4

xData BeOS 4.5 with the following advantages and disadvantage.


Platform: PowerPC, Intel
Architecture: 32 bits, Preemptives multitasking, Multithreading, Symmetrical Multiprocessing, network support integrated, optimized for the web.
RAM: 16 MB minimum
Capacity hard disk: at least 150 MB
File system itself: Journaling 64 bit, multithread.
Other file system: FAT 16, FAT 32
Kernel: MACH


Advantages:

1. Optimal for multimedia applications (video editing process or audio).


2. Multithread system is unique in optimizing the two or more processors.


3. Handling file system for 64 bit large.
4. Promising future in the near future because the operating system will get support from hardware manufacturers in Europe, BeOS planned will support the Intel Pentium III and can function as dual-boot able to read and write FAT file system of Windows and DOS.


Cons:


1. The absence of an application office / business leaders appropriate or good.


2. This operating system appears only on the operating system oriented multimedia course.


3. At least for desktop applications at this time.


4. For the current operating system BeOS is not an operating system that is open-source.


2.2.2. OS / 2 Warp: Server Business expensive. Operating system OS / 2 Warp developed by IBM. In version 4 (Merlin), there are important updates with the view that there is far more beautiful and very similar to the Windows'95 and the introduction of language integration. And now in version 5 (Aurora), IBM to make improvements to the general technique, which can be put in front of the Warp for Windows NT. The most important innovation in the
version 5 is "Journaling File System (JFS). More resembles the structure of the database system files. JFS blessing, every change can be canceled and integrity checks as requested by the NTFS system or the other is not necessary. And this is a big advantage for a server, which should always be available 100%, both in the Intranet and Internet. Software is available for private users is relatively small. For business applications already available version of Star Office is appropriate. In the field of application specific, for example, banks or insurance, where security is an important investment for
customers, OS / 2 for profitable investment because able to support the old version.

The main merit of the OS / 2 is a strong architecture. Preemptives multitasking kernel is very stable and can only disaingi by UNIX. Java integration in the system to make Warp server platform connecting this to be a "server for all." This may be the future trend, which connects all the Warp operating system with all platforms in the network ( "any to any").


2.2.2.1. Data OS / 2 Warp Server for E-Business with the following advantages and disadvantage.


Platforms: Intel
Architecture: 32 bits, Preemptives Multi-tasking, Multithreading, Symmetrical Multiprocessing, network support, optimal for the Web, Java, network management, and speech-recognition integrated.
Kernel: monolithic.
RAM: 32 MB minimum
Capacity hard disk: at least 350 MB
File system: the HPFS, Journaling File System (JFS), multithreaded.
Other file system: FAT, with the help of shareware: FAT 32, VFAT, NTFS, ext2fs, HFS.


Advantages:


1. Stable system for corporate networks, servers and communications transactions, which connects multiple platforms.


2. Multithread system that resembles BeOS.


3. The view that much more beautiful than the Windows'95 and the integration of the introduction
language.
4. The server operating system available 100%, both in the Intranet and Internet, owing to help JFS.


5. Profitable for investment because it can support the older version.


Cons:


1. Not many software for personal users, other than Office.


2. Prices are expensive to make the user a weak financial structure reluctant to buy them.

3. Questions stability is not yet compete UNIX.


4. Special use for business, not for personal or among PC users.

Posted by MALIK 2 comments

Labels: code, free, linux, open source, source

C ++ part 4

press : cout << "Press any key + enter to continue .. "; cin >> any; goto menu;

break;

case '2' :
// Clear Screen
system("clear");

// Greeting
cout << "+-----------------------------------+" <<>

// Input Kode CD
kembali :
cout << "Masukkan kode CD : "; cin >> inp;

// Validasi Input - Check Apa CD Tersedia
x = 0; st = 0;
do
{
for (y=0; y<4; st =" 0;" st="="4)" z =" 0;" stat="1;" x="1;" x="="10)" stat="0;" x="0;" b="0;">> any; goto menu;

break;

case '3' :
// Clear Screen
system("clear");

// Greeting
cout << "+-----------------------------------+" <<>

// Tampilkan data peminjaman
for (int m=0; m<10; n="0;" n="4;" n="0;">

// Press any key to continue
cout << "Press any key + enter to continue .. "; cin >> any; goto menu;
break;

case '0' :
// Clear Screen
system("clear");

// Greeting
cout << "+-----------------------------------+" <<>

default : goto menu;
}

}

Posted by MALIK 0 comments

Labels: c ++, code, free, open source, programming

C ++ part 3

CD RENT APPLICATION

/ Asumsi - asumsi :
// 1. Rental hanya mempunyai 10 CD
// 2. Pada state awal, CP01, CP03, CP07 sudah dipinjam
// ************************************************************

#include
#include
#include

int main()
{

// Deklarasi Variable
char inpmenu, inp[4], any;
int st, stat, x, y;
char nama[6] = {' '};

// Dumping Data CD
char cd[10][4] = { {'C','P','0','1'}, {'C','P','0','2'},
{'C','P','0','3'}, {'C','P','0','4'},
{'C','P','0','5'}, {'C','P','0','6'},
{'C','P','0','7'}, {'C','P','0','8'},
{'C','P','0','9'}, {'C','P','1','0'}
};

// Dumping Data Peminjaman
char pinjam[10][10] = {
{'C','P','0','1','H','a','t','m','a'} ,
{'C','P','0','2',' ',' ',' ',' ',' ',' '},
{'C','P','0','3','M','a','y','a','n','g'},
{'C','P','0','4',' ',' ',' ',' ',' ',' '},
{'C','P','0','5',' ',' ',' ',' ',' ',' '},
{'C','P','0','6',' ',' ',' ',' ',' ',' '},
{'C','P','0','7','A','i','n','a'},
{'C','P','0','8',' ',' ',' ',' ',' ',' '},
{'C','P','0','9',' ',' ',' ',' ',' ',' '},
{'C','P','1','0',' ',' ',' ',' ',' ',' '}
};

// Menu Label
menu :

// Clear Screen
system("clear");

// Greeting

cout << "+-----------------------------------+" <<>

// Menu
cout << "Silakan pilih proses yang akan dilakukan" <<>

// Input Menu
cout << "\n>> Pilihan Anda : ";
cin >> inpmenu;
cout <<>

// Greeting
cout << "+-----------------------------------+" <<>> inp;

// Validasi Input - Check Apa CD Tersedia
x = 0; st = 0;
do
{
for (y=0; y<4; st =" 0;" st="="4)">> nama; cout << z =" 0;" stat="1;" x="1;" x="="10)" stat="0;" x="0;" b="0;">

Posted by MALIK 0 comments

Labels: c ++, c#, code, linux, online, open source

C ++ part 2

if (x==10)
{ cout << "\n(!) Kode Mobil tidak ditemukan\n" << stat="0;" x="0;" b="0;">> any; goto menu;

break;

case '2' :
// Clear Screen
system("clear");

// Greeting
cout << "+====================================+" <<>> inp;

// Validasi Input - Check Apa Mobil Tersedia
x = 0; st = 0;
do
{
for (y=0; y<4; st =" 0;" st="=" z =" 0;" stat="1;" x="1;" x="=" stat="0;" x="0;" b="0;">> any; goto menu;

break;
case '3' :
// Clear Screen
system("clear");

// Greeting
cout << "+====================================+" <<>

avanza.data("Avanza ", 400000);
innova.data("Kijang Innova ", 600000);
APV.data("APV ", 550000);
krista.data("Kijang Krista", 400000);
taruna.data("Taruna ", 300000);
xenia.data("Xenia ", 40000);

avanza.tampil();cout<<<<<<<< "\nTekan sembarang tombol + enter untuk melanjutkan .. "; cin >> any; goto menu;
break;

case '4' :
// Clear Screen
system("clear");

// Greeting
cout << "+====================================+" << m="0;" n="0;" n="4;" n="0;">> any; goto menu;
break;

case '5' :
// Clear Screen
system("clear");

// Greeting
cout << "+====================================+" <<>

Posted by MALIK 0 comments

Labels: c ++, c#, code, open source, source

Older Posts Home

Links

  • ALJAZEERA TV
  • ANTARA
  • Bali`s Blogger
  • BBC
  • BERITANET.COM
  • CHIP ONLINE
  • CNN
  • DETIK.COM
  • E-BOOK
  • Economic
  • Friends
  • Friendster's Blog
  • Habibieafsyah
  • HARVARD UNIVERSITY
  • ILMU KOMPUTER
  • INFO LINUX
  • KICK ANDY
  • LINUX OpenSuse
  • LINUX SLAX
  • Linux Temanggung
  • LINUX UBUNTU
  • LIPUTAN 6 SCTV
  • MASTER BLOGGER
  • METROTV NEWS
  • MUSIC DOWNLOAD
  • My Class
  • Robotic AMIKOM
  • SMA N 3 TEMANGGUNG
  • SMART E-LEARNING
  • SOFTPEDIA
  • STMIK AMIKOM
  • SUPPORTED BLOGGER
  • TIPS TRICKS
  • TRIAL FILM
  • TV ONE ONLINE

Blog Archive

  • ▼ 2009 (38)
    • ▼ 05/31 - 06/07 (1)
      • Java
    • ► 02/15 - 02/22 (1)
    • ► 01/11 - 01/18 (11)
    • ► 01/04 - 01/11 (25)
  • ► 2008 (70)
    • ► 11/30 - 12/07 (22)
    • ► 11/16 - 11/23 (18)
    • ► 11/09 - 11/16 (1)
    • ► 10/26 - 11/02 (5)
    • ► 10/19 - 10/26 (16)
    • ► 10/12 - 10/19 (4)
    • ► 10/05 - 10/12 (4)



$100.00 Anda pasti untung setelah registrasi!






Search Engine Optimization and SEO Tools







Bookmark CO.CC:Free Domain