Posts Under 'Tutorials'

Make sshd listen to a specific address

In file /etc/ssh/sshd_config, use ListenAddress 192.168.0.1 to make sshd listen to only that address.

Read more »


PHP- session Example

Session support in PHP consists of a way to preserve certain data across subsequent accesses. This enables you to build more customized applications and increase the appeal of your web site. A visitor accessing your web site is assigned a unique id, the so-called session id. This is either stored in a cookie on the […]

Read more »


Outlook 2002 – The messaging interface has returned an unknown error

Basically this message comes when the outlook storage capacity is full Outlook, It can’t hold one more message. You can’t delete because the message is only going to another folder inside the file cabinet. Can’t send – no space to hold the message. Super easy fix is – In any folder, deleted, sent, inbox click […]

Read more »


Serving Image from Absolute Path in Java/J2EE

import java.io.*; import java.net.URLDecoder; import javax.servlet.*; import javax.servlet.http.*; /** * Serving Image from Absolute Path. */ public class ImageServAbsolutePath extends HttpServlet { private static final long serialVersionUID = 1L; private static final int BUFFER_SIZE = 10240; private String imagePath; public void init() throws ServletException { /*——- Image Base Path ———–*/ this.imagePath = "/images"; } protected […]

Read more »


How to Find and Replace Text in MySQL

MySQL database has a simple string function REPLACE() that allows table data with the matching string (from) to be replaced by new string. The syntax of REPLACE is REPLACE(text_string, from_string, to_string) example: update TABLE_NAME set FIELD_NAME = replace(FIELD_NAME, ‘find this string’, ‘replace found string with this string’);

Read more »