Skip to main content

Posts

Showing posts from July, 2013

Connection to Oracle Database Using JSP

<%@page import="java.sql.*"%> <% Connection conn=null; try{ Class.forName("oracle.jdbc.driver.OracleDriver"); conn=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcl","INVCTLSYS","FUSION"); Statement stmt=conn.createStatement(); ResultSet rs=stmt.executeQuery("SELECT * FROM TBL_PURCHASED_INVOIE_REGISTER"); while(rs.next()) { out.println(rs.getInt("SYS_ID")+"   ->   "+rs.getInt("VENDOR_SYS_ID")+"   ->   "+rs.getString("VENDOR_NAME")+"   ->   "+rs.getString("INVOICE_ID")+"<br>"); } }catch(Exception e){out.println(e.getMessage());} %>

Using OpenGL: Drawing a rectangle or Square

#include <i:\windows\system32\glut.h> #include <i:\windows\system32\glu.h> #include <i:\windows\system32\gl.h> #include <windows.h> void Display(void) { glClear(GL_COLOR_BUFFER_BIT); //glRectf(-5.0,5.0,5.0,-5.0); glRectf(-7.0,7.0,7.0,-7.0); glutSwapBuffers(); } void init(void) { glClearColor(0.0,0.0,0.0,0.0); //glColour3f(0.0,0.0,1.0); glMatrixMode(GL_PROJECTION); glLoadIdentity(); glOrtho(-10.0,10.0,-10.0,10.0,-10.0,10.0); } int main (int argc, char **argv) { glutInit(&argc, argv); glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB);  //For animations you should use double buffering glutInitWindowSize(300,300); glutInitWindowPosition(100,100); glutCreateWindow("Rectangle Example"); glPolygonMode(GL_FRONT_AND_BACK,GL_LINE); init(); glutDisplayFunc(Display); glutMainLoop(); return 0; }

Setting up OpenGL environment for Microsoft Visual C++

Hi Friends, before starting the setting up OpenGL environment, please do the following first: 1.       Install Microsoft Visual C++ 6.0 (Comes with Ms Visual Studio 6.0) 2.       Download the file called “opengl95.exe” and “glutdlls.zip” from internet. [Just open browser-> navigate http://www.google.com -> type upper mentioned file name and search -> you will definitely find the appropriate link to download.] 3.       Run opengl95.exe file and it will be extracted and will be generated some files. Copy those files and 4.       Extract the file “glutdlls.zip” and it will also generate some more files. 5.       Now, combine all extracted files from two sources (opengl95.exe and glutdlls.zip) and place in one location. Setting up OpenGL environment for Microsoft Visual C++ With any system, you can start with a C\C++ compiler and install appropriate OpenGL header files (.h) and libraries. Three libraries associated with header files are required for the use of

Subscriber Identification Module (SIM)

A subscriber identity module or subscriber identification module (SIM) is an integrated circuit that securely stores the International Mobile Subscriber Identity (IMSI) and the related key used to identify and authenticate subscribers on mobile telephony devices ,such as mobile phones and computers. It is also a portable memory chip used mostly in cell phones that operate on the Global System for Mobile Communications (GSM) network. These cards hold the personal information of the account holder, including his or her phone number, address book, text messages, and other data. When a user wants to change phones, he or she can usually easily remove the card from one handset and insert it into another. SIM cards are convenient and popular with many users, and are a key part of developing cell phone technology. Sim Cards are of four (4) Types. Named as Below H1, H2, H3, H4 H1= You Will Get Normal Network On This Sim H2= You Will Get Better Network On This Sim, Means Strong H3= Y