Monday, July 29, 2013

Apache tomcat self-signed certificate using java keytool

1.  open terminal and type below
   keytool -genkey -alias tomcat -keyalg RSA -keystore <filename>
 2. key in the parameter

3. configuring tomcat 
    
    
    <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
               maxThreads="150" scheme="https" secure="true"
               keystoreFile="<filename>"
               keystorePass="<password>"
               clientAuth="false" sslProtocol="TLS" />
    


Monday, June 24, 2013

Java 1.5

1. Get the java sdk from http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase5-419410.html
2. extract it and move " /usr/lib/jvm"
3. then do
sudo update-alternatives --config java

if they is one alternative , do this :
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/java-5-oracle/bin/java" 2
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/java-5-oracle/bin/javac" 2
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/ava-5-oracle/bin/javaws" 2



 

Thursday, March 21, 2013

HTML CSS


<a>
display the tip on the link
<a href="[address]" title="[tooltip tip]">[label]</a>  
 open link on new window
<a target="_blank" href="[address]" title="[tooltip tip]">[label]</a> 
 open link on the location
<a href="[address]#[location]" title="[tooltip tip]">[label]</a>  

Saturday, March 16, 2013

amalan yg rasullah masa ari jumat dan ari aya

Surah As-sajdah & Al-lhsan
"Drpd Abu Harairah RA,dia berkata,Rasullah SAW biasa membaca surah Alif lam min tanzil As'Sajdah dan Hal ata'alal insan pada solat Subuh di hari Jumaat"

Dr buku "Amalan Yang sangat Disukai Rasullah SAW"

Tuesday, March 5, 2013

Python : List method

create list
list_variable = ["list1","list2","list3"]
length list
 len(list_variable)

get list on postion
list_variable[postion]
add item on last of d list
list_variable.append("list4")
remove item at end of the list
list_variable.pop()
 add more than one list item at end of d list
list_variable.extend(["list4","list5"])
remove item list
list_variable.remove("list2") 
add list at position
list_variable.insert(position,"list2")

loop in list
for target_identifer in list :
   list_processing code  

Saturday, January 26, 2013

Linux CommandLine

Linux Command

command -options arguments

Navigation

pwd - print current location

cd - change dir

 [dir]:go to dir
 - :go to prev dir
 ~[username] :go to username home

Exploring The System

ls - list content

[dir]:content of the  dir
-l:long format
-a: list all file
-t: sort by time
-1:show line by line
-h: human readable
-s: sort by  size

file [filename] - get info about the filename

less  [filename] - read file content

Page Up / b :back one page
Page Down / space :forward one page
Up arrow: up one line
Down arrow : down one line
G:end of file
1G / g: begining of file
/character : search forward to next character
n : search forward to next character of prev search
q: quit


Wednesday, January 9, 2013

Conky on ubuntu

install it
sudo apt-get install conky
Configuration basic setting
# Use Xft?
use_xft yes
xftfont Droid Sans:size=8
xftalpha 0.8
text_buffer_size 2048

# Update interval in seconds
update_interval 1

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type override
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 182 0
maximum_width 182

# Draw shades?
draw_shades no
default_color D6D6D6 #4D4D4D
# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_margin 5

# border width
border_width 1

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 25
gap_y 40

# -- Lua Load -- #
lua_load ~/.draw_bg.lua
lua_draw_hook_pre draw_bg
Refer : Conky_Wiki

PPA List for Ubuntu

sun jdk
sudo add-apt-repository ppa:webupd8team/java && sudo apt-get update && sudo apt-get install oracle-java6-installer

Xfce 4.12 PPA in Xubuntu 12.10 or 12.04 
to get proper multi-monitor support 

sudo add-apt-repository ppa:xubuntu-dev/xfce-4.12 && sudo apt-get update && sudo apt-get upgrade

Libre Office  
sudo add-apt-repository ppa:libreoffice/ppa && sudo apt-get update && sudo apt-get install libreoffice

run 32 bit app on 64 bit

sudo apt-get install ia32-libs