Results for "Volume: Java_Volume1"
Ball Bounces Around Screen NOTE: YOU MUST HAVE DELPHI X COMPONENTS INSTALLED OR ELSE YOU WILL GET AN ERROR...!! Please rate my code
Implements a class for sending mails without CDO. ATTENTION! It also show´s how you can limit the usage of a component by sending an email to creator of the component after 10 mails. but you can easily remove this part of the code without sideeffects. Please rate. Thanx.
Get the date and time in a label
The goal of the present HTTPFS project is to enable access to remote files, directories, and other containers (e.g., structured text documents, OS tables) through an HTTP pipe. HTTPFS system permits retrieval, creation and modification of these resources as if they were regular files and directories on a local filesystem. The remote host can be any UNIX or Win9x/WinNT box that is capable of running a Perl CGI script, and accessible either directly or via a web proxy or a gateway. HTTPFS runs entirely in user space. The current implementation fully supports reading as well as creating, writing, appending, and truncating of files on a remote HTTP host. HTTPFS provides an isolation level for concurrent file access stronger than the one mandated by POSIX file system semantics, closer to that of AFS. Both a programmatic interface with familiar open(), read(), write(), close(), etc. calls, and an interactive interface, via the popular Midnight Commander file browser, are provided. HTTPFS offers a glimpse of one of Plan9's jewels -- a uniform file-centric naming of disparate resources -- but without Plan9. This file system showcases HTTP, which is capable of far more than merely carrying web pages. HTTP can aspire to be the kingpin protocol that glues computing, storage, etc. resources together to form a distributed system -- the role 9P plays in Plan9. HTTPFS articles argue that unlike a popular catch phrase, it is the OS itself that is the browser. The client framework has been tested on GNU/Linux 2.0.36, HP-UX 10.xx, Sun Ultra-2/Solaris 2.6. An HTTPFS server will run on anything that can execute a Perl CGI script -- and this really means anything. The server has been tested on HP-UX B10.xx with a Netscape Server/1.12, Sun/Solaris 2.6 and Linux with an Apache/1.3.x server, and with Microsoft-IIS on WinNT 4.0.
The DegreesToXYsubroutine, calculates the X (horizontal) and Y (vertical) coordinates of any point, measured in degrees, on the circumference of a circle or ellipse.
Can I send an Email from an applet? Of Course you can just use the following! OR you could look at www.javasoft.com for Java mailAPI. (Found on the web--Java FAQ at http://www.irt.org)
After struggling to learn COM for the past few days I finally started to understand it so I decided to create a brief "how to" tutorial. I choose the Temperature Conversion section from the JEDI Code Library to provide a "sort of" practical example of an Automation Object. The Automation Object example in this quick tutorial converts temperatures. (See the the QuickTutorial.txt, Tested with VB5/6 and Delphi5 Client)
Get you a easy way for creating and using timers on your window application. This code use two timers and you can see how to start and stop the timer.
Allows you to dynamically build graphical font displays. Useful for page headers, especially if the change a lot. Also useful for pages created from templates! Now you don't have to create each header manually in your favorite graphics program. Have this function do it for you! Works with any graphical alphabet - download them from the web or create your own.
Prompting the User for a Directory in Win95. Windows' common dialogs are great if you want the user to select a file, but what if you want them to select a directory? Call the following function, which relies on Win32's new SHBrowseForFolder function:
How to install a font in WIN16/WIN32
There are a number of ways to read data from a file. If you're reading a file as raw binary data, you open a file using a FileInputStream(String) constructor and use one of the various read() methods to read the data into an array of bytes. For example the following program reads raw data from a file specified on the command line. It then writes the same data to the standard output. (Java FAQ:found on the web at:http://sunsite.unc.edu/javafaq/javafaq.html)
JEL (Justin's Elite Language) This is a scripting language written in delphi. With this you can parse full equations with function calls, variables, etc. Scripts are useful for extending your programs capabilities with user programming for those complicated settings. enjoy this code, be sure to vote and check out the visual basic version of jel.
In Java 1.1 you can just pass true as the second argument to this FileOutputStream constructor to indicate that you want to append data to the file: public FileOutputStream(String name, boolean append) throws IOException In Java 1.0, however, you must use the java.io.RandomAccessFile class that lets you read and write bytes from arbitrary locations in a file. This class implements DataInput and DataOutput so you have all the methods of DataInputStream and DataOutputStream available to you. To create a new random access file pass the name of the file and the mode to the constructor. The mode is either "r" (read-only) or "rw" (read and write). The length() method returns a long that tells you how many bytes there are in a file and the seek(long p) method lets you position the file pointer at a particular point in the file. Thus to start writing at the end of a RandomAccessFile raf, you first raf.seek(raf.length()). The following example demonstrates by appending the string "Kilroy was here!" to every file specified on the command line. (Java FAQ:found on the web at:http://sunsite.unc.edu/javafaq/javafaq.html)
How do I convert a numeric IP address like 199.1.32.90 into a hostname like star.blackstar.com? Unfortunately due to an unintended side effect (i.e. a bug) in Java's caching of IP addresses and hostnames, Java 1.0 can't convert numeric IP addresses into hostnames. However this is straightforward in Java 1.1. For example, (Java FAQ:found on the web at:http://sunsite.unc.edu/javafaq/javafaq.html)
THIS VERSION DOES NOT WORK WITH SOME COMPILERS, including the one I use. PLEASE CHECK OUT MY OHTER VERSION before telling me about any compile problems. This piece of code contains two functions that show you how to use RegisterServiceProcess(); to hide your program from users when they press ctrl+alt+del. Useful for multiple applications (ie. you want a master program that runs subprograms but you do not want the subprograms to show up when the user presses ctrl+alt+del).
The key to fixing flicker is realizing that the screen isn't actually painted in the paint() method. The pixels get put on the screen in the update() method which most applets don't override. However by overriding the update() method you can do all your painting in an offscreen Image and then just copy the final Image onto the screen with no visible flicker. (Java FAQ:found on the web at:http://sunsite.unc.edu/javafaq/javafaq.html)
This code will send an ICQ page to a specified UIN. Might be good to make a little flooder out of! ;) Be sure to check out my webpage: http://tako.warp0.com
This code allows for the use of a template system on your website. You edit the code and specify the events that it should check and then you're all set. The code will take care of the document inclusions.