About This Blog

This blog contains the information about
Programing skills
New Technologies
New Software
Information about Computers
Hardware help





Pages

Monday, February 21, 2011

Enterprise JavaBeans



Enterprise JavaBeans (EJB) is a managed, server-side component architecture for modular construction of enterprise applications.
The EJB specification is one of several Java APIs in the Java EE specification. EJB is a server-side model that encapsulates the business logic of an application. The EJB specification was originally developed in 1997 by IBM and later adopted by Sun Microsystems (EJB 1.0 and 1.1) in 1999 and enhanced under the Java Community Process as JSR 19 (EJB 2.0), JSR 153 (EJB 2.1), JSR 220 (EJB 3.0) and JSR 318 (EJB 3.1).
The EJB specification intends to provide a standard way to implement the back-end 'business' code typically found in enterprise applications (as opposed to 'front-end' interface code). Such code was frequently found to address the same types of problems, and it was found that solutions to these problems are often repeatedly re-implemented by programmers. Enterprise JavaBeans were intended to handle such common concerns as persistence, transactional integrity, and security in a standard way, leaving programmers free to concentrate on the particular problem at hand.
Accordingly, the EJB specification details how an application server provides:
  • Transaction processing
  • Integration with the Persistence services offered by the Java Persistence API (JPA)
  • Concurrency control
  • Events using Java Message Service
  • Naming and directory services (JNDI)
  • Security (Java Cryptography Extension (JCE) and JAAS)
  • Deployment of software components in an application server
  • Remote procedure calls using RMI-IIOP.
  • Exposing business methods as Web Services.
Additionally, the Enterprise JavaBean specification defines the roles played by the EJB container and the EJBs as well as how to deploy the EJBs in a container. Note that the current EJB specification does not detail anymore how an application server provides persistence (a task delegated to the JPA specification), but instead details how business logic can easily integrate with the persistence services offered by the application server.



To Download EJB click the below link


Wednesday, February 16, 2011

Java Server Faces



JavaServer Faces (JSF) is a Java-based Web application framework intended to simplify development integration of web-based user interfaces.

JSF is a request-driven MVC web framework based on component driven UI design model, using XML files called view templates or Facelets views. Requests are processed by the FacesServlet, which loads the appropriate view template, builds a component tree, processes events, and renders the response (typically HTML) to the client. 

The state of UI components (and some other objects) is saved at the end of each request (called stateSaving (note: transient true)), and restored upon next creation of that view. Several types of state-saving are available, including Client-side and Server-side state saving.

 Out of the box, JSF 1.x uses JavaServer Pages (JSP) for its display technology, but can also accommodate other technologies (such as XUL and Facelets). JSF 2 uses Facelets by default for this purpose. Facelets is a more efficient, simple, and yet more powerful view description language (VDL).


To Download MyFaces package visit this link




Saturday, February 12, 2011

SQL injection


SQL injection is a code injection technique that exploits a security vulnerability occurring in the database layer of an application.

The vulnerability is present when user input is either incorrectly filtered for string literal escape characters embedded in SQL statements or user input is not strongly typed and thereby unexpectedly executed.

It is an instance of a more general class of vulnerabilities that can occur whenever one programming or scripting language is embedded inside another. SQL injection attacks are also known as SQL insertion attacks.






This form of SQL injection occurs when user input is not filtered for escape characters and is then passed into an SQL statement. This results in the potential manipulation of the statements performed on the database by the end-user of the application.

The following line of code illustrates this vulnerability:
statement = "SELECT * FROM `users` WHERE `name` = '" + userName + "';"
This SQL code is designed to pull up the records of the specified username from its table of users. However, if the "userName" variable is crafted in a specific way by a malicious user, the SQL statement may do more than the code author intended. For example, setting the "userName" variable as
' or '1'='1
Or using comments to even block the rest of the query:
' or '1'='1';/*'
renders this SQL statement by the parent language:
SELECT * FROM `users` WHERE `name` = '' OR '1'='1';
For Visual assistance watch the below video
 

Wednesday, February 2, 2011

Sony bravia 3D TV


Hi, Friends today i am going to tell you about  sony new released product sony bravia 3D tv

and its features are 

Full HD 1080p with 3D, Dynamic Edge LED backlight, Motionflow PRO 240Hz refresh rate, BRAVIA Engine™ 3, BRAVIA Internet Video, USB port, DLNA Certified® 




For knowing about all features about this product click the link below




and for the  visual assistance watch below video

156 Useful Run Commands


Hi,Friends today  i will tell you about    useful run commands

the list below are run commands

To Access....

Run Command
Accessibility Controls access.cpl
Accessibility Wizardaccwiz
Add Hardware Wizardhdwwiz.cpl
Add/Remove Programs appwiz.cpl
Administrative Toolscontrol admintools
Adobe Acrobat (if installed)acrobat
Adobe Designer (if installed)formdesigner
Adobe Distiller (if installed)acrodist
Adobe ImageReady (if installed)imageready
Adobe Photoshop (if installed)photoshop
Automatic Updateswuaucpl.cpl
Bluetooth Transfer Wizardfsquirt
Calculatorcalc
Certificate Managercertmgr.msc
Character Mapcharmap
Check Disk Utilitychkdsk
Clipboard Viewerclipbrd
Command Promptcmd
Component Servicesdcomcnfg
Computer Managementcompmgmt.msc
Control Panelcontrol
Date and Time Properties timedate.cpl
DDE Shares ddeshare
Device Managerdevmgmt.msc
Direct X Control Panel (if installed)*directx.cpl
Direct X Troubleshooterdxdiag
Disk Cleanup Utilitycleanmgr
Disk Defragmentdfrg.msc
Disk Managementdiskmgmt.msc
Disk Partition Managerdiskpart
Display Propertiescontrol desktop
Display Propertiesdesk.cpl
Display Properties (w/Appearance Tab Preselected)control color
Dr. Watson System Troubleshooting Utilitydrwtsn32
Driver Verifier Utilityverifier
Event Viewereventvwr.msc
Files and Settings Transfer Toolmigwiz
File Signature Verification Toolsigverif
Findfastfindfast.cpl
Firefox (if installed) firefox
Folders Propertiesfolders
Fontscontrol fonts
Fonts Folderfonts
Free Cell Card Gamefreecell
Game Controllers joy.cpl
Group Policy Editor (XP Prof)gpedit.msc
Hearts Card Gamemshearts
Help and Supporthelpctr
HyperTerminalhypertrm
Iexpress Wizardiexpress
Indexing Serviceciadv.msc
Internet Connection Wizardicwconn1
Internet Exploreriexplore
Internet Properties inetcpl.cpl
Internet Setup Wizardinetwiz
IP Configuration (Display Connection Configuration)ipconfig /all
IP Configuration (Display DNS Cache Contents)ipconfig /displaydns
IP Configuration (Delete DNS Cache Contents)ipconfig /flushdns
IP Configuration (Release All Connections)ipconfig /release
IP Configuration (Renew All Connections)ipconfig /renew
IP Configuration (Refreshes DHCP & Re-Registers DNS)ipconfig /registerdns
IP Configuration (Display DHCP Class ID)ipconfig /showclassid
IP Configuration (Modifies DHCP Class ID)ipconfig /setclassid
Java Control Panel (if installed)jpicpl32.cpl
Java Control Panel (if installed)javaws
Keyboard Propertiescontrol keyboard
Local Security Settingssecpol.msc
Local Users and Groupslusrmgr.msc
Logs You Out Of Windows logoff
Malicious Software Removal Tool mrt
Microsoft Access (if installed)msaccess
Microsoft Chatwinchat
Microsoft Excel (if installed)excel
Microsoft Frontpage (if installed)frontpg
Microsoft Movie Makermoviemk
Microsoft Paintmspaint
Microsoft Powerpoint (if installed)powerpnt
Microsoft Word (if installed)winword
Microsoft Syncronization Toolmobsync
Minesweeper Gamewinmine
Mouse Propertiescontrol mouse
Mouse Propertiesmain.cpl
Nero (if installed)nero
Netmeeting conf
Network Connectionscontrol netconnections
Network Connectionsncpa.cpl
Network Setup Wizardnetsetup.cpl
Notepadnotepad
Nview Desktop Manager (if installed)nvtuicpl.cpl
Object Packagerpackager
ODBC Data Source Administratorodbccp32.cpl
On Screen Keyboardosk
Opens AC3 Filter (if installed)ac3filter.cpl
Outlook Expressmsimn
Paintpbrush
Password Propertiespassword.cpl
Performance Monitorperfmon.msc
Performance Monitorperfmon
Phone and Modem Options telephon.cpl
Phone Dialerdialer
Pinball Gamepinball
Power Configuration powercfg.cpl
Printers and Faxescontrol printers
Printers Folderprinters
Private Character Editoreudcedit
Quicktime (If Installed)QuickTime.cpl
Quicktime Player (if installed)quicktimeplayer
Real Player (if installed)realplay
Regional Settings intl.cpl
Registry Editorregedit
Registry Editorregedit32
Remote Access Phonebookrasphone
Remote Desktop mstsc
Removable Storagentmsmgr.msc
Removable Storage Operator Requestsntmsoprq.msc
Resultant Set of Policy (XP Prof)rsop.msc
Scanners and Camerassticpl.cpl
Scheduled Taskscontrol schedtasks
Security Center wscui.cpl
Servicesservices.msc
Shared Foldersfsmgmt.msc
Shuts Down Windowsshutdown
Sounds and Audio mmsys.cpl
Spider Solitare Card Gamespider
SQL Client Configuration cliconfg
System Configuration Editorsysedit
System Configuration Utilitymsconfig
System File Checker Utility (Scan Immediately)sfc /scannow
System File Checker Utility (Scan Once At The Next Boot)sfc /scanonce
System File Checker Utility (Scan On Every Boot)sfc /scanboot
System File Checker Utility (Return Scan Setting To Default)sfc /revert
System File Checker Utility (Purge File Cache)sfc /purgecache
System File Checker Utility (Sets Cache Size to size x)sfc /cachesize=x
System Informationmsinfo32
System Properties sysdm.cpl
Task Managertaskmgr
TCP Testertcptest
Telnet Clienttelnet
Tweak UI (if installed)tweakui
User Account Managementnusrmgr.cpl
Utility Managerutilman
Windows Address Bookwab
Windows Address Book Import Utilitywabmig
Windows Backup Utility (if installed)ntbackup
Windows Explorerexplorer
Windows Firewallfirewall.cpl
Windows Magnifier magnify
Windows Management Infrastructurewmimgmt.msc
Windows Media Playerwmplayer
Windows Messengermsmsgs
Windows Picture Import Wizard (need camera connected)wiaacmgr
Windows System Security Toolsyskey
Windows Update Launcheswupdmgr
Windows Version (to show which version of windows)winver
Windows XP Tour Wizardtourstart
Wordpad write

Thursday, January 27, 2011

ColdFusion


In computing, ColdFusion is a commercial rapid application development platform invented by Jeremy and JJ Allaire in 1995. 

Originally designed to make it easier to connect simple HTML pages to a database, by version 2 (1996) 

It had become a full platform that included an IDE in addition to a "full" scripting language. As of 2010, versions of ColdFusion (sold by Adobe Systems from 2005) include advanced features for enterprise integration and development of rich Internet applications (RIA).


Main features

ColdFusion provides a number of additional features out of the box. Among them:
  • Simplified database access
  • Client and server cache management
  • Client-side code generation, especially for form widgets and validation
  • Conversion from HTML to PDF and FlashPaper
  • Data retrieval from common enterprise systems such as Active Directory, LDAP, SMTP, POP, HTTP, FTP, Microsoft Exchange Server and common data formats such as RSS and Atom
  • File indexing and searching service based on Verity K2
  • GUI administration
  • Server, application, client, session, and request scopes
  • XML parsing, querying (XPath), validation and transformation (XSLT)
  • Server clustering
  • Task scheduling
  • Graphing and reporting
  • Simplified file manipulation including raster graphics (and CAPTCHA) and zip archives (introduction of video manipulation is planned in a future release)
  • Simplified web service implementation (with automated WSDL generation / transparent SOAPASP.NET  has no native equivalent for <CFINVOKE WEBSERVICE="http://host/tempconf.cfc?wsdl" METHOD="Celsius2Fahrenheit" TEMP="#tempc#" RETURNVARIABLE="tempf"> handling for both creating and consuming services - as an example

For Technical details and download click the below link



For the technical assistance watch the below video

Sunday, January 23, 2011

Reading Marks Data From JNTUK site and save it in the local DB

Hi, Friends to day i am posting my project module in the blog

This is about reading  marks information directly from the jntuk results website

This needs the url of the first student result

---------------------------------------------------------------------------------------------------

I am using the mysql database and apache tomcat 6.0 webserver 
and i did this in jsp

First you have to create the  student rollnumbers data and marks data tables

--->create table studentrollnumber(branch varchar(6),batch int(4),rollnumber varchar(11),primary key(rollnumber));

and enter the required data here

--->create table nettable(snumber int(4),rollnumber varchar(11),mc921int int(3),mc921ext int(3),mc922int int(3),mc922ext int(3),mc923int int(3),mc923ext int(3),mc924int int(3),mc924ext int(3),mc925int int(3),mc925ext int(3),mc926int int(3),mc926ext int(3),mc927int int(3),mc927ext int(3),primary key(rollnumber));

and this table is static . This is the sub module the table will be created automatically by the program in the previous pages

The first page  contains the information about branch and batch and url details
and the program of this file is

-->netsave.jsp
--------------------------------------------------------------------------------------------------------------
<html>
<body >
<form name="frm1" action="url8.jsp">
<font style="timesnewroman" size="5">
<center>
<b>
</br></br></br></br></br></br>
Select Branch :&nbsp;
<select name="branch">
<option value="mca">MCA
<option value="mba">MBA
<option value="ece">ECE
<option value="eee">EEE
</select>&nbsp;
Select Batch :&nbsp;
<select name="batch">
<option value="2007">2007
<option value="2008">2008
<option value="2009">2009
<option value="2010">2010
</select>
Past the URL:
<input type="text" value="enter the url of the first student result" size="60" name="url">
</br></br></br></br>
<input type="submit" name="submit" value="submit">&nbsp;&nbsp;
<input type="reset" name="reset" value="cancel">
</b>
</center>
</font>
</form>
</body>
</html>
---------------------------------------------------------------------------------
when you enter the data it will be submited to url8.jsp page
the data will be get from the page as html format
html string is parsed and retrieve  the subject code and internal & external marks 
the data is saved in the nettable table


the program for getting ,parsing,saving is


url8.jsp
--------------------------------------------------------------------------------
<%@ page language="java" import="java.io.*,java.net.*,java.util.*,java.sql.*;" session="true"
buffer="100kb" %>
<%   
try
{
    int sno=0;   
    Connection con= null;
     Statement stmt;
             String connectionURL = "jdbc:mysql://localhost:3306/nettable";
          Class.forName("com.mysql.jdbc.Driver").newInstance();
        con= DriverManager.getConnection(connectionURL, "root", "pavan");
       stmt=con.createStatement();
      String url=request.getParameter("url");
      String branch=request.getParameter("branch");
      String batch=request.getParameter("batch");
    String rollnumber2="08481f0001";
     stmt=con.createStatement();
     ResultSet result = stmt.executeQuery("select rollnumber from studentrollnumber where branch='"+branch+"' and batch='"+batch+"'");
         while(result.next())
     {
       String rollnumber = result.getString(1);
       url=url.replace(rollnumber2,rollnumber);
       out.println("RollNumber:  "+rollnumber);
       out.println("</br>");
       out.println("</br>");
        URL jntuk = new URL(url);
            URLConnection jntukConnection = jntuk.openConnection();
            DataInputStream dis = new DataInputStream(jntukConnection.getInputStream());
            String inputLine;
            String outputLine="";
                
           while ((inputLine = dis.readLine()) != null) {
              outputLine=outputLine+inputLine;
          }
        String nohtml = outputLine.toString().replaceAll("\\<.*?>","");
        nohtml=nohtml.toString().replaceAll("&nbsp;","");
          String delims = "[ ]+";
          String[] tokens =nohtml.split(delims);
         String[] needed=new String[tokens.length];
          int ix=0,iy=0;
            for(int i=0;i<tokens.length;i++)
            {
                tokens[i]=tokens[i].trim();
                if(tokens[i].equals("Pass/Fail"))
                   ix=1;
                if(tokens[i].equals("HOME"))
                    ix=0;
                if(ix==1)
                {iy++;needed[iy]=tokens[i];}
            }           
            int[] internals=new int[iy];
            int[] externals=new int[iy];
            String[] subjectcode=new String[iy];
            int in=0,ex=0,sc=0;
            subjectcode[sc]=needed[3];
            for(int iz=1;iz<iy;iz++)
            {
                if(needed[iz].equals("Pass")  || needed[iz].equals("Fail"))
                {
                    internals[in++]=Integer.parseInt(needed[iz-4]);                   
                    externals[ex++]=Integer.parseInt(needed[iz-3]);                   
                    subjectcode[++sc]=needed[iz+3];                   
                }
            }
            for (int el=0;el<in;el++)
           {
                out.println("subject code  :  "+subjectcode[el]);
                out.println("&nbsp;&nbsp;");
                out.println("internals  :  "+internals[el]);
                out.println("&nbsp;&nbsp;");
                out.println("externals :  "+externals[el]);
                out.println("</br>");
            } 
            sno++;
     PreparedStatement pst=
    con.prepareStatement("insert into nettable values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)");
       pst.setInt(1,sno);
       pst.setString(2,rollnumber);
           pst.setInt(3,internals[0]);
           pst.setInt(4,externals[0]);
           pst.setInt(5,internals[1]);
           pst.setInt(6,externals[1]);
           pst.setInt(7,internals[2]);
           pst.setInt(8,externals[2]);
           pst.setInt(9,internals[3]);
           pst.setInt(10,externals[3]);
           pst.setInt(11,internals[4]);
           pst.setInt(12,externals[4]);
           pst.setInt(13,internals[5]);
           pst.setInt(14,externals[5]);
           pst.setInt(15,internals[6]);
           pst.setInt(16,externals[6]);
            pst.addBatch();         
          int count[]=pst.executeBatch();
          if(count.length>0)
              out.println("database saved successfully");
          else
              out.println("error occured");    
       rollnumber2=rollnumber;  
       out.println("</br>");
      }
     
    }catch (Exception ioe) {
   out.println(ioe);
     }

%>
--------------------------------------------------------------------------------
so the data will be automatically saved in the data base