Santosh 的个人资料Santosh Kumar照片日志列表更多 ![]() | 帮助 |
|
|
Embedding google maps into web pages
Sample Code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>Google Maps JavaScript API Example: Simple Map</title> <script src="http://maps.google.com/maps?file=api&v=2&key=abcdefg&sensor=true_or_false" type="text/javascript"></script> <script type="text/javascript"> function initialize() { var map = new GMap2(document.getElementById("map_canvas")); map.setCenter(new GLatLng(20,77), 3); map.setUIToDefault(); } </script> </head> <body onload="initialize()" onunload="GUnload()" leftmargin=0 rightmargin=0 topmargin=0 bottommargin=0> <div id="map_canvas" style="width: 600px; height: 450px"></div> </body> </html> Embedding live music through live FM RadioTo embed media into web pages requires a player and a source file that is to be played. Incase of live multi-media resources it has to come through web-services. The code given here is streaming the media from punjabijunction.com and the plug-in is from microsoft.com. To listen the audios just click the play button if you have disabled the autostart features. It will start playing music from Radio City Live. And if you want the same at your web pages put this code into you HTML code. <object id="MediaPlayer" codeBase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112" type="application/x-oleobject" height="50" standby="Loading Windows Media Player components..." width="270" classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95"> <param NAME="filename" VALUE="http://www.punjabijunction.com/ch_radiocity/RadioCity.asx"> <param NAME="autoStart" VALUE="false"> <param NAME="TransparentAtStart" VALUE="false"> <param NAME="AnimationatStart" VALUE="false"> <param NAME="ShowStatusBar" VALUE="true"> <param NAME="ShowControls" VALUE="true"> <param NAME="autoSize" VALUE="false"> <param NAME="displaySize" VALUE="false"> <param NAME="ShowAudioControls" VALUE="true"> <param NAME="ShowPositionControls" VALUE="false"> <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" src="http://www.punjabijunction.com/ch_radiocity/RadioCity.asx" width="270" height="50" transparentatstart="0" autostart="1" animationatstart="0" showcontrols="true" showaudiocontrols="1" showpositioncontrols="0" autosize="0" showstatusbar="1" displaysize="false"></embed> </object> »»»»»»» by Santosh Kumar ? Original @ http://santu4you.spaces.live.com Java, Step-by-Step Guidelines for Developing a JSP Web Application using Oracle 9.2.0.1.0 EE, J2SDK 1.4.2 and JBOSS 4.0.2 Application ServerHi friends! Get ready! We are going to develop a JSP web application using JBoss application server with Oracle database. Here in this, the article aims to help those people who are aware of java technologies but not at its core level and doing development by being dependent of existing frameworks. This article is written with an objective to provide required related information at one place so that the journey from the installation to browser based output can become clear to java techies. And is based on the following technical specifications, have a look. Operating System: Window 2000 Professional Browser: Internet Application 6 Service Pack 1 Software Development Kit: j2sdk-1.4.2 (http://java.sun.com/j2se/1.4.2/download.html) Application Server: jboss 4.0.2 (http://www.jboss.org/jbossas/downloads/) Database: Oracle 9.2.0.1.0 EE Step 1: Installation Download the JDK and JBOSS from the given links above. Create a folder e.g. ‘_java’ in a drive e.g. ‘e:’ and extract the both in this. So your folders are e:\_java\j2sdk-1.4.2 and e:\_java\jboss-4.0.2. Installation of Operating System, Oracle and Internet Explorer is not discussed here. Step 2: Environment Settings Yaa! There you are! Even though you do every thing correctly, improper environment setting will burn your brain by giving thousands of errors to confuse you. So what do you need to do? Firstly, Copy JDBC lib. Secondly, set the environment variables JAVA_HOME, CLASSPATH and PATH to let different level of compilers know where to seek for required BINs, JREs and LIBs Copy JDBC libraries Go to oracle_home directory Expand up to \ora92\jdbc\lib Select ojdbc14.jar (it is suggested to select all) Copy to e:\_java\j2sdk-1.4.2\lib Set Environments Go to my_computers -> right_click -> properties -> advanced Click environment_variables button Environment Variable window will come up Go to system_variables -> new Type CLASSPATH at variable_name box Type e:\_java\j2sdk-1.4.2\lib\ojdbc14.jar; at variable_value box Go to system_variables -> new Type JAVA_HOME at variable_name box Type e:\_java\j2sdk-1.4.2; at variable_value box Go to system_variables -> edit Select PATH variable Add e:\_java\j2sdk-1.4.2\bin;E:\_java\j2sdk-1.4.2\jre; at the beginning of existing value at variable_value box Step 3: Create the web directory Go to e:\_java\jboss-4.0.2 folder and expand it up to e:\_java\jboss-4.0.2\server\default\deploy. Now create a war folder e.g. ‘myweb.war’. Remember this is a folder you will refer as your application URL i.e. http://localhost:xxxx/myweb later in this article. One more thing, copy the WEB-INF folder from jmx-console.war folder to myweb.war and delete now myweb.war\WEB-INF\org folder, we don’t need it Step 4: Designing the Package Whatever you call it, whether framework, whether layer, whether assembly, whether class, whether dll; they are nothing but class files that will be required for the execution of event triggers, fired directly or indirectly. So lets create the structure. Thing are case-sensitive, take care while creating folder and files and writing codes as well. To make it more explanatory, let us make some hierarchal layers, which will be embedded within the package. You can make it folder wise parallel later on. All Right! Fine! So there will be four layers and three of them are (1) Statement layer (2) Data layer (3) Communication layer. To do this, go to folder e:\_java\jboss-4.0.2\server\default\deploy\myweb.war\WEB-INF\classes and create a folder ‘Smt’ for statement layer. Get inside Smt folder and create a folder ‘Data’ for data layer. Get inside Data folder and create a folder ‘Com’. Step 5: Writing Codes for Class files Com layer Goto to myweb.war\WEB-INF\classes\Smt\Data\Com folder Create a file Com.java and write the following code. //file: Com.java package Smt.Data.Com; import java.sql.*; import java.lang.*; public class Com { public static Statement GetStatement() throws ClassNotFoundException, SQLException{ Class.forName("oracle.jdbc.driver.OracleDriver"); Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:ora9i","scott", "tiger"); conn.setAutoCommit(false); return conn.createStatement(); } } Data layer Goto to myweb.war\WEB-INF\classes\Smt\Data folder Create a file Data.java and write the following code. //file: Data.java package Smt.Data; import java.sql.*; import java.lang.*; import Smt.Data.Com.*; public class Data { private static Com objCom = new Com(); public static String GetTableData(int Cols, String vQry) throws ClassNotFoundException, SQLException{ Statement stmt = objCom.GetStatement(); String vRet = ""; int i = 0; ResultSet rset = stmt.executeQuery(vQry); while (rset.next()) { vRet = vRet + "<tr>"; for (i=1; i<=Cols; i++){ vRet = vRet + "<td style='font-size: 8pt;'>" + rset.getString(i) + "</td>"; } vRet = vRet + "</tr>"; } stmt.close(); return vRet; } } Smt layer Goto to myweb.war\WEB-INF\classes\Smt folder Create files SmtPage1.java & SmtPage2.java and write the following code. //file: SmtPage1.java package Smt; import java.sql.*; import java.lang.*; import Smt.Data.*; public class SmtPage1 { private static Data objData = new Data(); public static String GetEmpDetails() throws ClassNotFoundException, SQLException{ return objData.GetTableData(6, "select empno, hiredate, sal, dname, loc, mgr from emp, dept where emp.deptno=dept.deptno"); } } //file: SmtPage2.java package Smt; import java.sql.*; import java.lang.*; import Smt.Data.*; public class SmtPage2 { private static Data objData = new Data(); public static String GetEmpDetails() throws ClassNotFoundException, SQLException{ return objData.GetTableData(6, "select empno, hiredate, sal, ename, job, mgr from emp"); } } Step 6: Compiling Class files Till now we have not compiled anything. Lets do it. You don’t need to compile each of the layers individually. When you compile the top most packages, it will compile the related package automatically. Better to create a batch file to compile the things. Get to folder e:\_java\jboss-4.0.2\server\default\deploy\myweb.war\WEB-INF\classes\Smt and create cSmtPage1.bat and cSmtPage2.bat with the following codes respectively. Rem file: cSmtPage1.bat @echo off java -version echo. set classpath=E:\_java\jboss-4.0.2\server\default\deploy\myweb.war\WEB-INF\classes;%classpath% echo jv_home : %java_home% echo clspath : %classpath% echo winpath : %path% echo. echo Compiling... echo. javac SmtPage1.java echo Running... java Smt.SmtPage1 pause Rem file: cSmtPage2.bat @echo off java -version echo. set classpath=E:\_java\jboss-4.0.2\server\default\deploy\myweb.war\WEB-INF\classes;%classpath% echo jv_home : %java_home% echo clspath : %classpath% echo winpath : %path% echo. echo Compiling... echo. javac SmtPage2.java echo Running... java Smt.SmtPage2 pause Just note the CLASSPATH. Now execute these files one by one by double clicking each of them. It will create related class files inside each of the folder hierarchy. And as there is no main() in any of our java files, there exists no fault if you get the following exceptions Exception in thread "main" java.lang.NoSuchMethodError: main ![]() Step 7: Creating JSP files Now the fourth layer i.e. Presentation layer. We need to create three JSP files to see the differences i.e. index.jsp, page1.jsp and pag2.jsp. index.jsp will be the default page that will be served by the application server. The two other JSP files will interact with the database. This article is using only select statements, you can expand you page functionalities by insert, update and delete operations because by the time you can do that yourself. All right! Lets see the codes <!--file=index.jsp--> <%@ page language="java" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>JDBC With THIN Driver in JSP</title> </head> <body leftmargin="0" topmargin="0" rightmargin=0 bottommargin=0 style="color: #333366; font-family: verdana;"> <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%"> <tr> <td width="70px" style="background-color: #ececec;"> </td> <td> <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%"> <tr height="75px"> <td style="border-bottom: #B8101F 3px solid; font-size: 8pt; color: #B8101F;" align="center"> <table width="90%"><tr> <td style="font-size: 8pt; color: #B8101F;" align="left"> <b> <br> </b> </td> <td style="font-size: 8pt; color: #B8101F;" align="right"> <b><a href=page1.jsp>Page One</a> <br><a href=page2.jsp>Page Two</a></b> </td> </tr></table> </td> </tr> <tr> <td valign="middle" align="center" style="font-size: 14pt; color: #1F10B8;"> Hi...!!!<br> <br> And Congrates...!!!<br> Your first JSP Application is Ready <br> And is working fine<br> <br> </td> </tr> <tr height="25px"> <td style="border-top: #B8101F 3px solid;"> </td> </tr> </table> </td> <td width="70px" style="background-color: #ececec;"> </td> </tr> </table> </body> </html> <!--file=page1.jsp--> <%@ page language="java" %> <%@ page import="Smt.SmtPage1" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <% SmtPage1 myObj = new SmtPage1(); String s = myObj.GetEmpDetails(); %> <title>JDBC With THIN Driver in JSP</title> </head> <body leftmargin="0" topmargin="0" rightmargin=0 bottommargin=0 style="color: #333366; font-family: verdana;"> <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%"> <tr> <td width="70px" style="background-color: #ececec;"> </td> <td> <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%"> <tr height="75px"> <td style="border-bottom: #B8101F 3px solid; font-size: 8pt; color: #B8101F;" align="center"> <table width="90%"><tr> <td style="font-size: 8pt; color: #B8101F;" align="left"> <b><a href=index.jsp>Home</a> <br> </b> </td> <td style="font-size: 8pt; color: #B8101F;" align="right"> <b><a href=page1.jsp>Page One</a> <br><a href=page2.jsp>Page Two</a></b> </td> </tr></table> </td> </tr> <tr> <td valign="top" align="center"> <br> <table style="border: #dcdcdc 1px solid;" width="90%"> <tr> <td align="center" width="100%"> <table style="border: #dcdcdc 1px solid;" cellpadding="5px" width="100%"> <tr> <td align="center"> <b style="font-size: 8pt;">Emp Details</b > </td> </tr> </table> </td> </tr> <tr> <td valign="top" align="center"> <table style="border: #dcdcdc 1px solid;" cellpadding="2px" width="100%"> <%= s %> </table> </td> </tr> </table> </td> </tr> <tr height="25px"> <td style="border-top: #B8101F 3px solid;"> </td> </tr> </table> </td> <td width="70px" style="background-color: #ececec;"> </td> </tr> </table> </body> </html> <!--file=page2.jsp--> <%@ page language="java" %> <%@ page import="Smt.SmtPage2" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <% SmtPage2 myObj = new SmtPage2(); String s = myObj.GetEmpDetails(); %> <title>JDBC With THIN Driver in JSP</title> </head> <body leftmargin="0" topmargin="0" rightmargin=0 bottommargin=0 style="color: #333366; font-family: verdana;"> <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%"> <tr> <td width="70px" style="background-color: #ececec;"> </td> <td> <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%"> <tr height="75px"> <td style="border-bottom: #B8101F 3px solid; font-size: 8pt; color: #B8101F;" align="center"> <table width="90%"><tr> <td style="font-size: 8pt; color: #B8101F;" align="left"> <b><a href=index.jsp>Home</a> <br> </b> </td> <td style="font-size: 8pt; color: #B8101F;" align="right"> <b><a href=page1.jsp>Page One</a> <br><a href=page2.jsp>Page Two</a></b> </td> </tr></table> </td> </tr> <tr> <td valign="top" align="center"> <br> <table style="border: #dcdcdc 1px solid;" width="90%"> <tr> <td align="center" width="100%"> <table style="border: #dcdcdc 1px solid;" cellpadding="5px" width="100%"> <tr> <td align="center"> <b style="font-size: 8pt;">Emp Details</b> </td> </tr> </table> </td> </tr> <tr> <td valign="top" align="center"> <table style="border: #dcdcdc 1px solid;" cellpadding="2px" width="100%"> <%= s %> </table> </td> </tr> </table> </td> </tr> <tr height="25px"> <td style="border-top: #B8101F 3px solid;"> </td> </tr> </table> </td> <td width="70px" style="background-color: #ececec;"> </td> </tr> </table> </body> </html> Step 8: Running JBoss Application Server All the coding is over. Next, you need to run the application severs. Before this lets change the default port 8080 to 90. This is because the same port is required by many other applications running on your computer. All right! Go to e:\_java\jboss-4.0.2\server\default\deploy\jbossweb-tomcat55.sar. Open ‘server.xml’ and change ‘Connector port="8080" address="${jboss.bind.address}’ to ‘Connector port="90" address="${jboss.bind.address}’. Now let us run the JBoss Application Server. Just Go to e:\_java\jboss-4.0.2\bin folder and double click the run.bat file and wait till you get the following message. [Server] JBoss (MX MicroKernel) [4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)] Started in 47s:763ms Step 9: Working with the application Now the application is ready and all set to give the result. Open the browser i.e. internet explorer and type the URL http://localhost:90/myweb in the address bar. That’s all it seems. Rest is to click the links coming on the page. B e s t O f L u c k … ! ! ! O - oh! Unmm!!! One small thing, I am a .NET guy, don't mind, leading Microsoft and Embedded applied software projects in my current company. And so also I did write this article, as I want to know your technology & its fine beauties. Java is really beautiful and have a lot of charm within itself but I am already in love, with Mcrosoft and Embedded Technologies. If you find anything usefule, don’t forget to add comments, and if you find it useless so also. ...ba-bye!!! »»»»»»» by Santosh Kumar ? Original @ http://santu4you.spaces.live.com Free utilities that can bring differences to your performanceConcise Oxford English Dictionary (download attachment | download from original link) New edition of the world famous Concise Oxford English Dictionary provides an authoritative description of the English language. With instant access to over 240,000 words, phrases, and definitions, this program is ideal for anyone needing an up-to-date dictionary of current English on their PC for study, work, or home. Quick Media Converter (download attachment | download from original link) Convert most video and audio formats,efficient and very simple to use. Quick Media Converter is Powerful and complete Free video and audio conversion software. Converts to and from most formats including FLV AVI DIVX XVID MPEG MPEG 2 MP3 MP4 MPEG4 Real Media TS Quick Time PSP Ipod Iphone WMV VCD 3GP 3G2 M4A AMR H264 H263 Also allows you to record videos or take pictures from your Web cam or DV Cam flux ,in avi format and convert it to any format you want. Hindi Writer (download attachment | download from original link) The Phonetic Hindi Writer. Allows you to type in Hindi without having to remember a new keyboard layout (no font installation required as it uses the built in Indic language support provided by Windows). It works in all applications that support Unicode - including Internet Explorer, Microsoft Office, Notepad, Explorer, Outlook, Windows/MSN Messenger, Yahoo! Messenger (7 and above), Web Based Email (Hotmail, Yahoo! Mail etc.). The program uses the popular iTrans scheme of transliteration. Toad for MySQL (download attachment | download from original link) Toad is industry-leading database development and administration software that increases user productivity and application code quality, while providing an interactive expert community to support your experience. Following downlaods are available with terms & condition Toad for Oracle Database Tools Toad for SQL Server Development & Administration Toad for DB2 Administration Tool Toad for MySQL Developer Tools EditPlus (download attachment | download from original link) EditPlus is a text editor, HTML editor and programmer's editor for Windows. While it can serve as a good replacement for Notepad, it also offers many powerful features for Web page authors and programmers. IPMsg (download attachment | download from original link) This is a pop up style LAN Messenger for multi platforms. It is based on TCP/IP(UDP). It does not require server machine. Simple, lightweight, and compact size. Picasa (download attachment | download from original link) Organize: Manage your photos in one place, and find photos you forgot you had Edit: Eliminate scratches & blemishes, fix red-eye, crop and more Create: Turn photos into movies, collages, slideshows and more Share: Upload seamlessly to Picasa Web Albums to share with friends, family & the world Rainlender (download attachment | download from original link) Rainlendar is a feature rich calendar application that is easy to use and doesn't take much space on your desktop. The application is platform independent so you can run it on all major operating systems: Windows, Linux and Mac OS X »»»»»»» by Santosh Kumar ? Original @ http://santu4you.spaces.live.com Naming convention for redirected output file through shell i.e. at command promptThere are thousand of cases where we need to call executables through the shell and the outputs from such calls, are needed to be redirected to a file. If we use any static filename, it will be replaced by latest output made by every call. One of the solutions to this can be suffixing date and time to the desired filename. For example, the following command
C:\>DIR >> DIRDATA_%DATE:~-4,4%%DATE:~-7,2%%DATE:~-10,2%_%TIME:~0,2%%TIME:~3,2%%TIME:~6,2%.TXT
will create a file with the name
Clear unwanted Items from Add Remove Program listRun the Registry Editor (REGEDIT). Open the key \ HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Uninstall And remove any unwanted subkeys under "Uninstall", that's all What does it mean
Tips & Tricks, Google hacksSay you want to get, for example, a Garth Brooks song. type this in the search bar - "index of/" "garth brooks" .mp3 the ones you want to check out first are the ones that say "Index of/" in the title of the search result. this technique allows you to easily pull up web folders with direct downloads. It will look the same as if you were logging into a ftp url. You can be pretty flexible on how you type that in, so long as you include "index of/" You can use this for more than just mp3's (it's not perfect but it has worked) Always make sure to use the quotations where it has been placed. they help pinpoint the correct search results more accurately. just try it out, also if you want to learn how to do more with google look up "google hacks" Ref: http://mahendragr.wordpress.com/2008/07/18/find-serial-numbers-on-google/ What exactly is DirectXEver wondered just what that enigmatic name means? Gaming and multimedia applications are some of the most satisfying programs you can get for your PC, but getting them to run properly isn’t always as easy as it could be. First, the PC architecture was never designed as a gaming platform. Second, the wide-ranging nature of the PC means that one person’s machine can be different from another. While games consoles all contain the same hardware, PCs don’t: the massive range of difference can make gaming a headache. To alleviate as much of the pain as possible, Microsoft needed to introduce a common standard which all games and multimedia applications could follow – a common interface between the OS and whatever hardware is installed in the PC, if you like. This common interface is DirectX, something which can be the source of much confusion. DirectX is an interface designed to make certain programming tasks much easier, for both the game developer and the rest of us who just want to sit down and play the latest blockbuster. Before we can explain what DirectX is and how it works though, we need a little history lesson. DirectX history Any game needs to perform certain tasks again and again. It needs to watch for your input from mouse, joystick or keyboard, and it needs to be able to display screen images and play sounds or music. That’s pretty much any game at the most simplistic level. Imagine how incredibly complex this was for programmers developing on the early pre-Windows PC architecture, then. Each programmer needed to develop their own way of reading the keyboard or detecting whether a joystick was even attached, let alone being used to play the game. Specific routines were needed even to display the simplest of images on the screen or play a simple sound. Essentially, the game programmers were talking directly to your PC’s hardware at a fundamental level. When Microsoft introduced Windows, it was imperative for the stability and success of the PC platform that things were made easier for both the developer and the player. After all, who would bother writing games for a machine when they had to reinvent the wheel every time they began work on a new game? Microsoft’s idea was simple: stop programmers talking directly to the hardware, and build a common toolkit which they could use instead. DirectX was born. How it works At the most basic level, DirectX is an interface between the hardware in your PC and Windows itself, part of the Windows API or Application Programming Interface. Let’s look at a practical example. When a game developer wants to play a sound file, it’s simply a case of using the correct library function. When the game runs, this calls the DirectX API, which in turn plays the sound file. The developer doesn’t need to know what type of sound card he’s dealing with, what it’s capable of, or how to talk to it. Microsoft has provided DirectX, and the sound card manufacturer has provided a DirectX-capable driver. He asks for the sound to be played, and it is – whichever machine it runs on. From our point of view as gamers, DirectX also makes things incredibly easy – at least in theory. You install a new sound card in place of your old one, and it comes with a DirectX driver. Next time you play your favourite game you can still hear sounds and music, and you haven’t had to make any complex configuration changes. Originally, DirectX began life as a simple toolkit: early hardware was limited and only the most basic graphical functions were required. As hardware and software has evolved in complexity, so has DirectX. It’s now much more than a graphical toolkit, and the term has come to encompass a massive selection of routines which deal with all sorts of hardware communication. For example, the DirectInput routines can deal with all sorts of input devices, from simple two-button mice to complex flight joysticks. Other parts include DirectSound for audio devices and DirectPlay provides a toolkit for online or multiplayer gaming. DirectX versions The current version of DirectX at time of writing is DirectX 9.0. This runs on all versions of Windows from Windows 98 up to and including Windows Server 2003 along with every revision in between. It doesn’t run on Windows 95 though: if you have a machine with Windows 95 installed, you’re stuck with the older and less capable 8.0a. Windows NT 4 also requires a specific version – in this case, it’s DirectX 3.0a. With so many versions of DirectX available over the years, it becomes difficult to keep track of which version you need. In all but the most rare cases, all versions of DirectX are backwardly compatible – games which say they require DirectX 7 will happily run with more recent versions, but not with older copies. Many current titles explicitly state that they require DirectX 9, and won’t run without the latest version installed. This is because they make use of new features introduced with this version, although it has been known for lazy developers to specify the very latest version as a requirement when the game in question doesn’t use any of the new enhancements. Generally speaking though, if a title is version locked like this, you will need to upgrade before you can play. Improvements to the core DirectX code mean you may even see improvements in many titles when you upgrade to the latest build of DirectX. Downloading and installing DirectX need not be complex, either. Upgrading DirectX All available versions of Windows come with DirectX in one form or another as a core system component which cannot be removed, so you should always have at least a basic implementation of the system installed on your PC. However, many new games require the very latest version before they work properly, or even at all. Generally, the best place to install the latest version of DirectX from is the dedicated section of the Microsoft Web site, which is found at www.microsoft.com/windows/directx. As we went to press, the most recent build available for general download was DirectX 9.0b. You can download either a simple installer which will in turn download the components your system requires as it installs, or download the complete distribution package in one go for later offline installation. Another good source for DirectX is games themselves. If a game requires a specific version, it’ll be on the installation CD and may even be installed automatically by the game’s installer itself. You won’t find it on magazine cover discs though, thanks to Microsoft’s licensing terms. Diagnosing problems Diagnosing problems with a DirectX installation can be problematic, especially if you don’t know which one of the many components is causing your newly purchased game to fall over. Thankfully, Microsoft provides a useful utility called the DirectX Diagnostic Tool, although this isn’t made obvious. You won’t find this tool in the Start Menu with any version of Windows, and each tends to install it in a different place. The easiest way to use it is to open the Start Menu’s Run dialog, type in dxdiag and then click OK. When the application first loads, it takes a few seconds to interrogate your DirectX installation and find any problems. First, the DirectX Files tab displays version information on each one of the files your installation uses. The Notes section at the bottom is worth checking, as missing or corrupted files will be flagged here. The tabs marked Display, Sound, Music, Input and Network all relate to specific areas of DirectX, and all but the Input tab provide tools to test the correct functioning on your hardware. Finally, the More Help tab provides a useful way to start the DirectX Troubleshooter, Microsoft’s simple linear problem solving tool for many common DirectX issues. Create One-Click Shutdown and Reboot ShortcutsFirst, create a shortcut on your desktop by right clicking on the desktop, choosing New, and then choosing Shortcut. The Create Shortcut Wizard appears. In the box asking for the location of the shortcut, type shutdown. After you create the shortcut, double-clicking on it will shut down your PC. But you can do much more with a shutdown shortcut than merely shut down your PC. You can add any combination of several switches to do extra duty, like this: shutdown -r -t 01 -c "Rebooting your PC" Double-clicking on that shortcut will reboot your PC after a one-second delay and display the message "Rebooting your PC." The shutdown command includes a variety of switches you can use to customize it. Table 1-3 lists all of them and describes their use. Use this technique to create two shutdown shortcuts on my desktop—one for turning off PC, and one for rebooting. Here are the ones: shutdown -s -t 03 -c "Bye Bye m8!" shutdown -r -t 03 -c "Ill be back m8 ;)!" Switch -s Shuts down the PC. -l Logs off the current user. -t nn Indicates the duration of delay, in seconds, before performing the action. -c "messagetext" Displays a message in the System Shutdown window. A maximum of 127 characters can be used. The message must be enclosed in quotation marks. -f Forces any running applications to shut down. -r Reboots the PC. Measuring storage device capacityBIT stands for BInary DigiIT and is 0 & 1. And 8 such bits forms 1 byte. Following is its further measurements
MS-DOS Command Prompt, Page 3
MS-DOS Command Prompt, Page 2
MS-DOS Command Prompt, Page 1
Shortcuts, Windows XP
Shortcuts, Windows Explorer
Shortcuts, Internet Explorer
Start -> Run, Control panel programs
Start -> Run, System utility programs
What Exactly Is BizTalk?BizTalk is to business process automation what Visual Studio and the .NET Framework are to application development. It is a runtime and tools that enable you to automate and manage business processes more productively. That's basically it. If I only get 10 seconds to explain what BizTalk is to a customer, the above description is what I'm most comfortable with. If I have more time, I would elaborate on that description as follows. The term "application development" is worth further exploration. Looking at the kinds of applications that people build with Visual Studio and the .NET Framework today, the vast majority are focused on specific tasks rather than end to end processes. Not to say that such applications are isolated, they're actually often connected to other apps or data sources via Web services or other means. But the focus of the app is to automate a particular task or set of related tasks and the connectivity serves that purpose. However the business reality is that businesses run on processes which span multiple tasks and of course people. So to automate a business process end-to-end you wind up wanting to connect some of the applications that were written to automate the tasks that make up that business process. As an example, consider the task of updating contact information in the company's address book for a newly hired employee. That employee may launch a .NET desktop app or go to an intranet Web site and enter they home address, cell phone number, emergency contact etc. Now zoom out and look at the big picture and what you see is an end-to-end on-boarding process that includes things like provisioning credentials, certificates, smart card, automatic deposit setup, hardware procurement, office furniture procurement, 401K account setup, setting up a mentor, and the variety of other things a new employee needs to get/set up. The address book update app automates one task in the end to end process but there's no app that automates the entire process. BizTalk Server allows you to connect existing apps that automate the various tasks of this process and automate the tasks or parts that don't yet have automation to form a complete end-to-end process automation solution. It also gives you an operational or runtime view of that automation allowing you to see all the moving parts from one vantage point and start/stop/change/maintain them. While it's certainly possible to build VS and .NET apps that automate end-to-end business processes, it's not the most productive use of the customer's/developer's time because they'd have to reinvent (or re-implement) several wheels in the process. It's a bit like building an document management Web site using nothing but ASP.NET: You can do it, but you can do it a lot better and faster if you used Windows SharePoint Services (WSS). The operations folks would also love you for it because of the management features they get out of the box with WSS. Ref1: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/BTS06coredocs/html/011684a5-0aaf-4355-b6a6-d6fef5993863.asp Ref2: http://www.microsoft.com/biztalk/evaluation/overview/default.mspx?pf=true Ref3: http://blogs.msdn.com/yassers/archive/2006/07/25/678105.aspx |
|
|