Skip to main content

Posts

Showing posts from January, 2012

Print Web Page with Constant Header and Footer

Design HTML Page Header and Footer for your web print out like you do with Office programs.

Most people use the header for the brand information and footer for copyright or address information.

When you are developing a web application then you may need to print the report based on the end user input but dynamic content will not help you to place the header and footer at exact position .

Solution - Custom header and footer for html web print outs using CSS.

Here i have designed a html page for your reference with inbuilt css .


<?xml version='1.0' encoding='utf-8'505'?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd'> <html lang='en-GB' xml:lang='en-GB' xmlns='http://www.w3.org/1999/xhtml'>  <head> <title>Technology Innovation</title><meta http-equiv='Content-Type' content='text/html; char…

EJB Timer or Scheduler or Batch - Cron Quartz

Quartz Scheduler is an open source job scheduling service for your Java EE or Java SE.

Every task cannot be done manually but some task like notification or important alerts have to perform based on time and date.

In this article you will learn how to write EJB Timer for your Enterprise applications.

CronJob.java - CronJob is used to execute the method for the given interval period


package com.demo;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;


//CronJob implements the Job interface - Add Quartz jar into your project build path
public class CronJob implements Job {
public void execute(JobExecutionContext arg0) throws JobExecutionException {
 // Your Code Here
System.out.println("Technology Innovation ");
}
}


CronEJB.java - is used to set the scheduler time, date and time based region


package  com.demo;

import java.util.TimeZone;

import javax.annotation.PostConstruct;
import javax.ejb.Singleton;
import javax.ejb.Startup;

imp…

S5570 Galaxy Mini Upgrade to Android 2.3.4

Upgrade your Samsung Galaxy mini from Android Froyo 2.2.1 to Android Gingerbread 2.3.4


Android Gingerbread Official ROM is available for Galaxy mini S5570

Step By Step Tutorial
First download the following setup files from the given links Galaxy Mini USB Drivers for Windows or Samsung kies , ODIN , TASS OPS and finally Gingerbread 2.3.4.
Disconnect the Galaxy mini from system if you have connected
Go to Download Mode - Switch off your mobile phone and press these keys one by one  POWER + HOME + VOLUME DOWN to get the download mode and you will be seeing an warning logo with Downloading ... text .

Connect your galaxy phone to the computer. First connect empty usb to the computer then connect to your galaxy mini 
Unzip the downloaded files
Open Odin Multi Downloader softwareand your odin software will recognize your phone with com port like the below image




Select the download OPS file in odin software and in the left corner click the check box "One Package"

Select the download Gin…

How To Block Windows 7 Notification

When system starts you are getting too many notification from your system tray and also its annoying  continuously.


How to block all this notification from your system.


Go to System Tray and click the up arrow in Windows 7 as shown in image and click the customize linkNow choose from the list of application and change the behaviours of to avoid unneccessary notification.

System Tray Icon On or Off


On the Same Notification Area Icon Window you will see at the bottom with a link  Turn system icon on or off and change the behavior of each system icons whether to display it on task bar or not.