Java Compress data communication Object To BytesArray

Posted on 24. Feb, 2008 by sabin.

0

http://www.unix.org.ua/orelly/java-ent/servlet/ch10_01.htm http://www.unix.org.ua/orelly/java-ent/servlet/ch10_02.htm http://www.oracle.com/technology/sample_code/tech/java/servlets/htdocs/basic.htm import java.io.*; import java.util.zip.*; public class CompressUtils { public CompressUtils() { } public static byte[] compressObjectToBytesArray(Object obj) throws IOException { byte abyte0[] = null; ByteArrayOutputStream bytearrayoutputstream = new ByteArrayOutputStream(); ObjectOutputStream objectoutputstream = new ObjectOutputStream(bytearrayoutputstream); objectoutputstream.writeObject(obj); objectoutputstream.close(); Deflater deflater = new Deflater(9); byte abyte1[] = bytearrayoutputstream.toByteArray(); deflater.setInput(abyte1); deflater.finish(); byte abyte2[] = new byte[abyte1.length]; [...]

Continue Reading

Oracle some scripts

Posted on 20. Feb, 2008 by sabin.

0

http://www.oracle.com/technology/oramag/code/tips2005/010305.html select substr(a.sid,1,10) sid, substr(nvl(b.program,machine),1,30) program, count(*) from v$open_cursor a, v$session b where a.saddr=b.saddr group by substr(a.sid,1,10), substr(nvl(b.program,machine),1,30) order by 3 desc ; Track and Monitor Resources This tip comes from Luis Adalberto, DBA at Universidad Autonoma de Coahuila, in Saltillo, Coahuila, Mexico. Running this query will produce a list of database statements and objects [...]

Continue Reading

Oracle Concepts and Architecture Database Structures.

Posted on 20. Feb, 2008 by sabin.

0

Oracle question bank Oracle Concepts and Architecture Database Structures. 1. What are the components of Physical database structure of Oracle Database?. ORACLE database is comprised of three types of files. One or more Data files, two are more Redo Log files, and one or more Control files. 2. What are the components of Logical database [...]

Continue Reading

C Programming small project

Posted on 20. Feb, 2008 by sabin.

0

download another project bridge management data-manager-for-education-centres.zip Below is the Project of Address Management written in C with Menu book.h book.h #include<conio.h> #include<stdio.h> #include<stdlib.h> #include<string.h> int getscancode(void) { int code; code=getch(); if (code==0) code=getch(); return(code); } int menuchoice(char menu[10][25],int numb) { int key,num=0,cont=1,posx=(10-(numb+1))/2,posy=(20-18)/2; numb–; _setcursortype(_NOCURSOR); textattr(30); gotoxy(posy,posx+1); cprintf(“%s”,menu[0]); cont=0; while(cont<numb) { textattr(3); gotoxy(posy,posx+2+cont); cprintf(“%s”,menu[cont+1]); cont++; } [...]

Continue Reading

Ethical Hacking CEH

Posted on 20. Feb, 2008 by sabin.

0

Ethical Hacking and Countermeasures course mission is to educate, introduce and demonstrate hacking tools for penetration testing purposes only. Prior to attending this course, you will be asked to sign an agreement stating that you will not use the newly acquired skills for illegal or malicious attacks and you will not use such tools in [...]

Continue Reading

Create Database Manuly on Oracle 10g

Posted on 20. Feb, 2008 by sabin.

0

1. Create necessary directories mkdir D:\oracle\product\10.2.0\admin\arcl\adump mkdir D:\oracle\product\10.2.0\admin\arcl\bdump mkdir D:\oracle\product\10.2.0\admin\arcl\cdump mkdir D:\oracle\product\10.2.0\admin\arcl\dpdump mkdir D:\oracle\product\10.2.0\admin\arcl\pfile mkdir D:\oracle\product\10.2.0\admin\arcl\udump mkdir D:\oracle\product\10.2.0\db_1\cfgtoollogs\dbca\arcl mkdir D:\oracle\product\10.2.0\db_1\database mkdir D:\oracle\product\10.2.0\flash_recovery_area mkdir D:\oracle\product\10.2.0\oradata\arcl 2. Make necessary files 2.1.    first make pfile and save it at the location D:\oracle\product\10.2.0\db_1\database 2.2.    then make password file using following cmd orapwd file=D:\oracle\product\10.2.0\db_1\database\PWDarcl.ora                 password=<password> force=y [...]

Continue Reading

Java Jnlp how to

Posted on 19. Feb, 2008 by sabin.

0

http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/examples.html http://java.sun.com/developer/technicalArticles/Programming/jnlp/ http://java.sun.com/products/javawebstart/1.2/docs/developersguide.html * Introduction * Using a BasicService Service * Using a ClipboardService Service * Using a DownloadService Service * Using a FileOpenService Service * Using a FileSaveService Service * Using a PrintService Service * Using a PersistenceService Service * Using FileContents * Using a JNLPRandomAccessFile * Using a SingleInstanceService Service * Using a [...]

Continue Reading

Make Mozilla Fast

Posted on 19. Feb, 2008 by sabin.

0

1. Type “about:config” into the address bar and hit return. Scroll down and look for the following entries: network.http.pipelining network.http.proxy.pipelining network.http.pipelining.maxrequests Normally the browser will make one request to a web page at a time. When you enable pipelining it will make several at once, which really speeds up page loading. 2. Alter the entries [...]

Continue Reading

What Employers Are Looking For

Posted on 19. Feb, 2008 by sabin.

0

What Employers Are Looking For There are 6 key areas an employer will evaluate you on. Aim to outshine in every one of them. The interview seat looks tired and worn and you know you have a difficult task ahead of you, competing with all those candidates who occupied the chair before you. The next [...]

Continue Reading

Cisco IOS Cheat Sheet

Posted on 19. Feb, 2008 by sabin.

0

Cisco IOS Cheat Sheet TERMINAL CONTROLS: · Config# terminal editing – allows for enhanced editing commands · Config# terminal monitor – shows output on telnet session · Config# terminal ip netmask-format hexadecimal|bit-count|decimal – changes the format of subnet masks HOST NAME: · Config# hostname ROUTER_NAME BANNER: · Config# banner motd # TYPE MESSAGE HERE # [...]

Continue Reading