Sunday, July 9, 2017

Simple CRUD application with User Authentication and Registration using PHP Codeigniter Framework

Hi there!
This is a News application which can perform User Authentication and Registration for users and also performs CRUD operations of News item using MVC architecture. News item contains title and text content. I have used WAMP software bundle.

First of all, create a database named "testdb" and a table named "news".

CREATE DATABASE `testdb`;
use `testdb`;

--
-- Table structure for table `news`
--

CREATE TABLE IF NOT EXISTS `news` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(128) NOT NULL,
`slug` varchar(128) NOT NULL,
`text` text NOT NULL,
PRIMARY KEY (`id`),
KEY `slug` (`slug`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

--
-- Dumping data for table `news`
--

INSERT INTO `news` (`id`, `title`, `slug`, `text`) VALUES
(1, 'Test', 'test', 'Hello World !!'),
(2, 'What is Lorem Ipsum?', 'what-is-lorem-ipsum', 'Lorem Ipsum is simply dummy text.');


Click here to download the full code from GitHub.







Thursday, July 6, 2017

Weather Monitoring System - Java Socket Programming and Java RMI.

This is a client and server application developed using NetBeans IDE 8.2 to measure the average rainfall, Humidity, Temperature and Air pressure of the base stations around the country. This system has used Java Socket programming and Java Remote Method Invocation to communicate between sensor, server and client.

A Sensor emulator program is used to send randomly generated data to the server periodically during 1 hour intervals through sockets and the data between server to client is sent using Remote Method Invocation.


Client thereby execute the login GUI and authenticate the Monitoring Stations(clients). After the authentication the weather details are sent to the Weather GUI to be shown for the user.

Click here to download the source code from GitHub.

Sequence Diagram

High Level Architectural Diagram with Software components.