Assuming that socket is Socket which may or may not be closed or connected and inputStream = socket.getInputStream().
if (socket.isClosed() || !socket.isConnected())
{
return null;
}
try
{
i = inputStream.read();
}
catch (Exception e)
{
System.out.println(e.printStackTrace())...
I have two tables with about 2.5 million rows each. One has address information and the other has name information. I've indexed the LOWER() value of the last name column and also the zip code column:
CREATE INDEX last_name_idx ON providers(LOWER(Last_Name));
CREATE INDEX zip_idx ON...
Hello -
I am trying to get some data into a relational form and I have run into a little problem. I have a table in the database with columns foo_1, bar_1, foobar_1, foo_2, bar_2, foobar_2 etc.. all the way out to 150. In PL/SQL, I would like to do something like:
for i in 1..150 loop...
I am trying to convert my asp page to use the command.execute function instead of resultset.open to interface with a database. I am totally lost as to why this works:
For Each issue In issues
value = trim(issue)
addIssue =...
Is there an easy way to code the following: "If this method does not finish executing within 5 seconds, then throw an exception and move on"?
-Greg :-Q
Ok, before I get into this can someone please remind me as to why a company as incompetent as M$ has so much of the operating system market share????
So I am trying to reinstall windows on my laptop. The laptop has 2 hard drives in a RAID array. When setup loads up, I press f6 indicating that...
Hey all,
I have an idea for something I would like to try but I am not sure it is possible. I want to create an application that will help manage open windows. For example you could drag a firefox window and a word window onto it. The effect would be that word is displayed in the top half of...
Hi everyone...
I am having a problem with my pc not coming back from hibernation. The black and white resuming Windows... screen always apears and the progess bar always goes to 100%. At this point the computer will either continue into Windows with no problem, or hang completely. It seems...
Is there any way to speed up the scrolling of a JScrollPane? I am trying to scroll through a list of JPanels located on a master JPanel which is put in to the viewport. The program works fine, but the scrolling is ridiculously slow. I have tried all three options under...
Hi all...I am having a strange problem with a class I am working on...any ideas?
import java.io.*;
public class Program extends File
{
Program(String targetLNK) throws Exception
{
super(targetLNK);
System.out.println(targetLNK)...
Hey again..I am having a little trouble with checkboxes. I looked at the faq and tried to use that code but it still does not seem to be working. Here is my code:
<form name="prop" method="post" action="updateDB.asp?type=prop">
<!-- other fields are functioning fine -->
<p...
Hey everyone...I am having a little trouble with a logon script. I am trying to check the password against the one from the database and I cannot get the strings to compare correctly.
I have:
p = ObjRS.Fields("pw") 'password from the database
pass = Request.queryString("password") 'password...
Hey all, I have an interesting problem for ya...
When I try and defrag my hard drive at either 0% or 1% the system crashes. There is no blue screen or anything, but cursors stop flashing, the mouse stops responding, and alt ctrl del does not work. I tried letting it sit, but even after 2...
Hi all, I have a driver disk image from a manufacturer (came with blahblahblah.img and rawrite.exe). I am trying to install linux on my laptop, and will need this driver durring the installation (it's for a raid controller). However, I do not have a floppy drive. The rawrite.exe will only...
Hi all,
I am trying to install RH Enterprise 4.0 AS on my laptop. When the installation is loading up it flashes up and tells me that it is loading random drivers including SATA_PROMISE which is what I think I need for my raid controller. When I get to the part where it asks me to format (hd...
Hi all, I am currently trying to install RedHat Enterprise 4.0 AS on my laptop. The laptop has a Promise Fast-Trak 100 raid controler which is not built into the linux instalation. The laptop doesn't have a floppy drive so I need to do this off of my usb flash drive or a cd. I tried running...
I was attempting to install Red Hat Linux AS on my Alienware laptop and ran into some problems because of a missing raid driver (promise fast trak 100). The problem now is that when I go to start the computer, nothing happens. I used my room mate's recovery disk (Gateway) to access the...
Whenever I close a window without saving something (in most programs) the dialog box that should come up and say "Do you want to save changes to ...." instead is just ? ???? (name of file) ??? ??. I assume since it is the same way in multiple programs that this is just a registry setting. Any...
I am having a problem resizing swing components on my GUI. I want to have a "status box" at the bottom of my JFrame to display what is going on and the top of the frame is going to hold panels that will be switched out depending on what menu is showing. However, using the setSize() or...
Hey all...another strange one for you: The folder icons in the windows explorer folder tree are missing. It looks like this:
The icons show up in other places though...like if I click a folder the folder icons show up in the explorer window perfectly. I looked in the folder options menu...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.