JOptionPane – Java

Dialog Boxes A dialog box is a small graphical window that displays a message to the user or requests input. A variety of dialog boxes can be displayed using the JOptionPane class.   Two of the dialog boxes are: Message Dialog - a dialog box that displays a message. Input Dialog - a dialog box … Continue reading JOptionPane – Java

Data Flow Diagram

What is Data Flow Diagram? Also known as DFD, Data flow diagrams are used to graphically represent the flow of data in a business information system. DFD describes the processes that are involved in a system to transfer data from the input to the file storage and reports generation. Data flow diagrams can be divided … Continue reading Data Flow Diagram

Basic PHP – retrieving data from database

How to view or retrieve the data we encoded on the database: for example we added 2 more entries on our database. Displaying data from database with the following formats: Data should be displayed inside a table. OUTPUT: To display the first_name, middle_name & last_name in full name format with the first letter in uppercase … Continue reading Basic PHP – retrieving data from database

Basic PHP – Database

MySQL MySQL is an Oracle-backed open source relational database management system (RDBMS) based on Structured Query Language (SQL). ... Although it can be used in a wide range of applications, MySQL is most often associated with web applications and online publishing. Today, MySQL is the RDBMS behind many of the top websites in the world and countless … Continue reading Basic PHP – Database

How to fix Port Conflicts in Apache

Apache Configuration for PHP Apache uses httpd.conf file for global settings, and the .htaccess file for per-directory access settings. Older versions of Apache split up httpd.conf into three files (access.conf, httpd.conf, and srm.conf), and some users still prefer this arrangement. Apache server has a very powerful, but slightly complex, configuration system of its own. Learn … Continue reading How to fix Port Conflicts in Apache

Write an assembly language program that accepts any character as input and displays it on the screen as output.

SYS_EXIT equ 1 SYS_WRITE equ 4 SYS_WRITE2 equ 4 STDIN equ 0 STDOUT equ 1 Section .text global _start ;must be declared for linker (gcc) _start: ;tell linker entry point mov eax,SYS_WRITE ;system call number (sys_write) mov ebx,STDOUT ;file descriptor (stdout) mov ecx,msg1 ;message to write mov edx,len1 ;message length int 0x80 ;call kernel mov … Continue reading Write an assembly language program that accepts any character as input and displays it on the screen as output.

Write an assembly that allocates 50 storage space for you name. Display your full name within that storage space.

section .text global _start ;must be declared for linker (ld) _start: ;tell linker entry point mov edx,50 ;message length mov ecx, name ;message to write mov ebx,1 ;file descriptor (stdout) mov eax,4 ;system call number (sys_write) int 0x80 ;call kernel mov eax,1 ;system call number (sys_exit) int 0x80 ;call kernel section .data name times 50 … Continue reading Write an assembly that allocates 50 storage space for you name. Display your full name within that storage space.

Microprogrammed Control

Learning objectives: Microprogrammed Control Microinstructions Mecroprogramming Sequencing Pre fetching Microinstructions Emulation Proper Sequence- To carry out the execution of instructions, the processor must have some means of generating the control signals needed in the proper sequence.  Designers employ a wide variety of techniques to this purpose. 2 Categories of approaches: Hardwired control Microprogram control - … Continue reading Microprogrammed Control