Here we are going to set up Apache tomcat and Eclipse on Arch Linux to JavaEE development. Before that take look at what are these tomcat and Eclipse.
Apache tomcat is a web server( can handle HTTP request and responses ) specially created to deploy JSPs and Java Servlets.
Eclipse is an integrated development environment (IDE) used in computer programming, and it is the most widely used Java IDE. It contains a base workspace and an extensible plug-in system for customizing the environment.
Now on we discuss about how install and configure these tool. Continue reading “Set up Apache Tomcat8 and Eclipse on Arch Linux”
Today I am going to tell you how install LAMP ( Apache,MariaDB , PHP on Linux ) and configure it.
LAMP stack is set of open source software to up and run web application. Small description about these software will given in each chapter.
To install these software on Arch Linux you can use pacman manager ( graphical tool or terminal ). If you use pacman-manager graphical tool search each software and it will show you latest version available on repository. If you use terminal use this code to update repository first.
sudo pacman -Syu
Web server is the software which receive the request to web page and take to the web page. Apache is the most widely used web server software which developed and maintain by Apache Software Foundation. Apache is an open-source software available for free.
Now you have up to date pacman repository and can install Apache.
sudo pacman -S apache
Continue reading “How install and configure Apache,MariaDB,PHP on Arch Linux. ( Antergos OS )”
Hi guys, today i am going to show you hove add some extra features to our simple HTTP-Sever created using python socket module. So if you have no idea what is it please refer my previous blog post.
Previous post I describe you how send string as response. Here i will explain how send file. Yeh ! .html , .css , .jpg , .png and .js files can send. Again i want to say if you have no idea about this please first read this post.
First we should identify which file is client request. Then we can check whether its available in our container or not. If file exist we can send it and if not we should send error message saying file not exist.
Continue reading “How create HTTP-Server using python Socket – Part II”
Hi guys today I am going to give very brief introduction about how create web server using python socket. There are several ways to do that. But here i will explain how cover basic functionalities of server using python socket.
The SimpleHTTPServer module has been merged into http.server in Python 3.
- First identify what is a server ?
A server is a computer program that provides services to other computer programs (and their users) in the same or other computers. ( The computer that a server program runs in is also frequently referred to as a server. )
If you want to know more about that use this links. : What is server , How server works
Now I think you have understood about how server do its job and why we need server. Then start developments.First,
Continue reading “How create HTTP-Server using python Socket – Part I”
The status codes are all three-digit numbers that are grouped by the first digit into 5 groups. The reason phrases given with the status codes below are just suggestions. Server can return any reason phrase they wish.
No 1xx status codes are defined, and they are reserved for experimental purposes only.
Means that the request was processed successfully.
- 200 OK
Means that the server did whatever the client wanted it to, and all is well.
The rest of the 2xx status codes are mainly meant for script processing and are not often used.
Continue reading “Web Status Codes”
ඔබ developer කෙනෙකු නම් , ඕනෑම මෙහෙයුම් පද්ධතියක් තුළ, ඕනෑම පරිගණකයක් මත ක්රියාත්මක වන හොඳ Text Editor එකක් අත්යවශ්යම ය. ඔබට පහසු text editor එකක් භාවිතයෙන් ඉක්මනින් කේත කිරීම , කළමණාකරනය කිරීම හා වැරදි අවම කේත කිරීමක් සදහා ප්රයෝජනවත් වේ.
මෙම ලිපියෙන් එවැනි text editors කිහිපයක් ගැන කතා කිරීමට බලාපොරොත්තු වේ.
Continue reading “මෘදුකාංගකරනයට හොඳම Text Editors කිහිපයක්.”
In 2013 , after A/L examination each an every friend of mine asked why aren’t you sit for A/L second time.After A/L result came teachers , friends and every one who met asked me “what the hell are you doing? , you have B,B,C for your results in first time . You can be an Engineer , you can get A,A,A s in next time. Why aren’t you sit for A/L second time.”
I don’t want to be a same as others.But , i didn’t get motivation to be like that.Once i totally messed up with all of these. and i googled for motivational videos, speeches and so.At that time i found a speech posted in internet(unfortunately after 3 year i can’t remember where i found this.). i think this speech changed me and i thoroughly said i don’t want to be a engineer.And i want to be my-self. To do that this speech was a strength to me. I think you too can get something from this speech. That’s why I put this speech in my blog.
Continue reading “Why am I here ?”
HTTP හෝ HTTPS යන වචන ඇසුනු විගසින් අපට හැගෙනුයේ මේ අතර සැලකිය යුතු වෙනස්කමක් නොමති බවයි.නමුත් මෙහි ඉතා වැදගත් වෙනස් කමක් පවති. එය අන්තර්ජාලය තුල සැරි සරන අප අනිවාර්යෙන් දැනගතුයුතු කාරනාවක් ලෙස සැලකිය හැකිය.
කවුරුත් දන්නා පරිදි HTTP හි තේරැම වන්නෙ Hyper Text Transfer Protocol යන්නයි.එනම් world wide web (WWW) හි දත්ත හුවමාරු කිරීම සදහා භාවිතා කරන මූලික ක්රමවේදයයි.
HTTPS යනු Hyper Text Transfer Protocol Secure යන්නයි.එනම් HTTP හි ආරක්ෂිත ක්රමවේදය යි.
HTTPS = HTTP + Security
Continue reading “What is HTTP and HTTPS ?”