|
Icon
|
Meaning
|
|
:‑) :) :D :o) :] :3 :c) :> =] 8) =) :} :^) :っ)
|
Smiley or happy face.
|
|
:‑D 8‑D 8D x‑D xD X‑D XD =‑D =D =‑3 =3 B^D
|
Laughing, big grin, laugh with glasses
|
Jun 7, 2016
A list of symbols of emotions which we can use in facebook
Java Internationalization Example
- Create a folder I18N
- Goto above folder
from command prompt
- Create a java
class named I18NSample.java which is as follows:
import
java.util.*;
public
class I18NSample{
static
public void main(String args[]){
String
language;
String
country;
//if(args.length!=2){
language="en";
country="US";
//}else{
//
language=args[0];
//country=args[1];
//
}
Integrating Struts2 with Hibernate
Follow
steps:
1. Create
a table named users in database with following details:
CREATE TABLE `users` (
`uname` varchar(10) NOT
NULL,
`pwd` varchar(10) default NULL,
`email` varchar(50)
default NULL,
`dor` date default NULL,
PRIMARY KEY
(`uname`),
UNIQUE KEY `email`
(`email`)
);
and
Struts 2 Form tag example
<%@taglib
prefix="s" uri="/struts-tags" %>
<!DOCTYPE
html>
<html>
<head>
<meta
http-equiv="Content-Type" content="text/html;
charset=UTF-8">
<title>JSP
Page</title>
<s:head/>
</head>
<body>
<h1>Hello
World!</h1>
<s:actionerror/>
<s:form
method="post" action="/login/login">
<s:textfield
name="username" label="Username"/>
<s:password
name="password" label="Password"/>
<s:submit
value="Login"/>
</s:form>
</body>
</html>
Struts 2 AJAX tag example
In
order to integrate Ajax tags with Jsp we need to add dojo tags library to the
netbeans project library folder. Simple Ajax tags example:
<%@
page contentType="text/html; charset=UTF-8"%>
<%@
taglib prefix="s" uri="/struts-tags"%>
<%@
taglib prefix="sx" uri="/struts-dojo-tags"%>
<html>
<head>
<title>Hello
World</title>
<s:head
/>
<sx:head
/>
</head>
<body>
<s:form>
<sx:datetimepicker
name="date">
</sx:datetimepicker>
<sx:submit
value="Login"/>
</s:form>
</body>
</html>
Program to send email in JSP.
(Sharing is the most valuable work of
this universe.
So don't forget to share.
Help the world, help yourself.)
mail.jsp
<%@ page
import="javax.servlet.http.*,javax.servlet.*" %>
<%@ page
import="javax.mail.internet.*,javax.activation.*"%>
<%@ page
import="java.io.*,java.util.*,javax.mail.*"%>
<%
final String
username = "senderEmailAddress";
final String
password = "senderPassword";
String result = null;
try {
Jun 6, 2016
Write a simple java bean and jsp program in Netbeans
The following example shows how to create a bean:
Step 1: Create a jsp named as index.jsp inside Web Pages:
<html>
<head>
<meta
http-equiv="Content-Type" content="text/html;
charset=UTF-8">
<title>JSP
Page</title>
</head>
<body>
<form
method="post" action="first.jsp">
Firstname<input
type="text" name="fname"><br>
Lastname<input
type="text" name="lname"><br>
<input
type="submit" value="Submit">
</form>
</body>
</html>
How to put Facebook Share button at the top of your each blogger posts?
- Goto blogger.com
- Click on Template
- Click on Edit HTML
- Put the cursor inside html code
- Press CTRL+F
- Find the second instance of <data:post.body/>
- Just before it paste the below code:
<div
class='facebook-share'>
<a
expr:share_url='data:post.url' name='fb_share' rel='nofollow'
type='button_count'/><script
src='http://static.ak.fbcdn.net/connect.php/js/FB.Share' type='text/javascript'/>
</div>
8.Click on save Template
Be healthy, be busy
Happy Coding
Thank you J
SQL code to insert all the countries inside table named `countries`
(Sharing is the most valuable work of
this universe.
So don't forget to share.
Help
the world, help yourself.)
CREATE TABLE `countries` (
`countryid`
smallint(6) NOT NULL,
`country`
varchar(150) NOT NULL,
`countrycode`
char(10) NOT NULL,
`subscriber`
char(19) DEFAULT NULL,
`nationality`
varchar(150) DEFAULT NULL,
`currency`
varchar(45) DEFAULT NULL
);
After that execute below SQL code to insert countries:
INSERT INTO `countries` (`countryid`, `country`,
`countrycode`, `subscriber`, `nationality`, `currency`) VALUES
(1, 'Afghanistan', 'AF', NULL, NULL, NULL),
(2, 'Albania', 'AL', NULL, NULL, NULL),
(3, 'Algeria', 'DZ', NULL, NULL, NULL),
(4, 'American Samoa', 'DS', NULL, NULL, NULL),
(5, 'Andorra', 'AD', NULL, NULL, NULL),
How to configure Linux system as (Apache) web server?
How to configure Linux system as (Apache) web server?
1. Login as root user
Type su root and then password of root user
2. Install the package httpd-manual*.rpm using following command
rpm –ivh httpd-manual.rpm
(you can download httpd-manual*.rpm file from rpm repository
OR
Inside the installation ISO file of Redhat linux, there is a folder named Packages, where we can find all the needed packages.)
3. Edit the file /etc/httpd/conf/httpd.conf and define following things:
vi /etc/httpd/conf/httpd.conf
goto insert mode by pressing i
type following anywhere in the file:
<VirtualHost *:80>
ServerAdmin root@localhost
DocumentRoot /var/www/html
ServerName www.yourServerName.com
</VirtualHost>
To save it, at first press Esc and then type :wq
(We can also give our server’s IP address for ServerName)
4. Start Apache using following command:
service httpd start
Now if we type localhost in browser then “Red Hat Enterprise Linux Test Page” appears which is as below

How to create a user account in linux(Redhat 6) with comment and assigning a shell and user id of your choice?
- Login as root user
- Type following command:
Useradd
–c “Bedkot Nepal” –u 550 –s /bin/csh Bedkot
(Above command adds user Bedkot
with comment Bedkot Nepal, userid 550 and default shell as csh
. )
You can see the entry of
above user in user database file /etc/passwd .
Thank you. Keep smiling J
How to solve Port 443 in use by "C:\Program Files (x86)\VMware\VMware Workstation\vmware-hostd.exe" in xampp control panel.
Here is the solution step-by-step:
- Click on config button of apache in xampp control panel
- Open up httpd-ssl.conf
- Look for the line Listen 443
- Change port number to anything you want. I use 4430. Example: Listen 4430.
- Replace every 443 string in that file with 4430.
- Save the file.
Jun 5, 2016
How to Change the Formatting of All Instances of a Word in MS-Word?
Step 1: Go to the beginning of your
document.
Step 2: Press Ctrl+H to display the Replace tab of the
Find and Replace dialog box (which will be as below).
Step 3: Enter the word for eg: Error ! in
the Find what box.
Step 4: Press Tab to
position the insertion point in the Replace With box.
Step 5: Click on the Format button and select
Font from the menu. (If the Format button is not visible, click on the More
button first.)
Step 6: Change the Color box so it
contains the color red or make it Italic.
Step 7: Click on OK.
Step 9: Click on Replace All.
Thank You :)
Linux system space checking and system performance monitoring tools
Performance monitoring tools are divided into two broad categories:
high-level tools that impose a negligible performance hit and
provide a correspondingly general overview of system performance and low-level
tools that provide detailed views of system performance at the component level
and exact a significant and noticeable performance penalty.
There is room and need for both types of tools in the performance
monitoring spectrum.
Jun 4, 2016
Operating System Structure
UNIT
2
Operating
System Structure
|
System
Call:
A
system call is a mechanism that is used by the application program to request a
service from the operating system i.e. a system call is how a program
requests a service from an operating system's kernel.
This may include hardware related services (e.g. accessing the hard disk), creating and executing new processes, and communicating with integral kernel services (like scheduling). System calls provide an essential interface between a process and the operating system.
This may include hardware related services (e.g. accessing the hard disk), creating and executing new processes, and communicating with integral kernel services (like scheduling). System calls provide an essential interface between a process and the operating system.
System
calls provide the interface between a process and the operating system.
System
calls can be roughly grouped into five major categories:
Unit 1: Introduction to Operating System
Unit 1: Introduction to Operating System
|
Introduction
An
operating system (OS) is a collection of software that manages
computer hardware resources and provides common services for computer programs
i.e. a system program that manages all the application programs in a
computer system. It provides the means for proper use of the resources in the
operation of computer system. The
operating system is an essential component of the
system software in a computer system.
The
OS masks the details of the hardware from the programmer and provides the
programmer with a convenient interface
Explain The Backup Process In Linux
What to back up?
The file-based nature of Linux is a great
advantage when backing up and restoring the system.
Configuration files are text based and, except
for when they deal directly with hardware, are largely system independent. The
modern approach to hardware drivers is to have them available as modules that
are dynamically loaded, so kernels are becoming more system independent.
Rather than a backup having to deal with the
intricacies of how the operating system is installed on your system and
hardware, Linux backups are about packaging and unpackaging files.
In
general, there are some directories that you want to back up:
- /etc
contains
all of your core configuration files. This includes your network configuration,
system name, firewall rules, users, groups, and other global system items.
How To Remove ‘SECURED’ From PDF Files
Step 1: Go to http://www.a-pdf.com/faq/how-to-unlock-secure-pdf.htm
Step 2: Download the 15 days trail software.
Step 3: Install the software.
Step 4: Right click on the PDF file, select "Remove Restrictions" or "Remove Restrictions and
Save as" on the menu poped up.
Thanks for reading.
Mar 30, 2016
A Project Proposal on Online Job Management System
Affiliated to Pokhara University
National Academy of Science and
Technology
DHANGADHI ENGINEERING COLLEGE
Uttar Behadi-4 Dhangadhi, Kailali
A
Project Proposal on
Online Job Management System (OJMS)
Submitted by:
Paawan
Prashad Bhatt
Namraj
Mishra
Ashok
Chaudhary
Debraj
Subedi
Submitted
to:
Research and Development Department,
Dhangadhi Engineering College
A PHP Project Report on Online Job Management System
1. Introduction
With the
advancement of technology, application areas of computer are rising day by day.
Every sector desires its procurement for fast accurate and automated
operations. Therefore, different programs are developed to meet the requirement
of various types of users i.e. related to any field.
This program
entitled “Online Job Management System”
is a minor group work of BCA VIth semester students. It is a web
application which is helpful in the areas of job recruitment. This application
includes all the activities in which the job is recruited. The activities like job
searching, job placement, online applying etc are included.
Subscribe to:
Posts (Atom)
