Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. vkarthik

    Automate Website Testing

    Again, u can google it. This is what I got http://javaalmanac.com/egs/java.net/GetHeaders.html In particular, you should look for HttpUrlConnection class (http://java.sun.com/j2se/1.4.2/docs/api/). If you aren't comfortable with the javadoc, just google for a tutorial on that class.
  2. vkarthik

    Automate Website Testing

    I'm no good at vbscript. But this can be done very easily with perl or java. Anyway, I did a google search on "vbscript launching url" and got this http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=3297
  3. vkarthik

    Automate Website Testing

    To add more, suppose you want to check if all your web pages are present on the server (or if they've been deleted or renamed by mistake). Make a list of all such URLs. Use any language and write a script to connect to each url and get back the return code. Check the returned http header for a...
  4. vkarthik

    Automate Website Testing

    One way is, write scripts to launch the various URLs involved in the website by passing different GET and POST parameters. When you get back the output stream, look for keywords that prove that your returned page is fine. Use some URL sniffer utility to see the parameters that are being passed...
  5. vkarthik

    Excel converts text value to date - urgent

    The pain in opening the file normally is, you need to parse it yourself. For example, if you have an entry like "last name, first name","my fone no",,,,"abc@efg.com",,,, Its hard to split this string into various fields because you cannot trust any delimiter here. You need to use some special...
  6. vkarthik

    Excel converts text value to date - urgent

    OK. After some research, I've figured out how to do it. Though this isn't excel forum, I did the work using vbscript, so those of u who might be interested, read ahead: The trick is, don't do the following - Set objExcel = CreateObject("Excel.Application") objExcel.Workbooks.Open("data.csv")...
  7. vkarthik

    Excel converts text value to date - urgent

    I'm opening a csv file with excel using vbscript, and reading the values in the cells. There is one phone number field in the csv, and it has some values like 1-2321 etc. Excel interprets this column as date and replaces it with Jan-2321. When this is read as text, I get a value 1/1/2321. Is...
  8. vkarthik

    How to get the subnet mask using C?

    I need to retrieve the subnet mask of the default network interface of a PC, using C language. The OS is linux. Does anybody know some C function that does this? I know that there are some files storing the interface details, and they can be read and parsed. But is there a simpler way out...
  9. vkarthik

    How to get the subnet of a network interface?

    I need to retrieve the subnet mask of the default network interface of a PC, using C. The OS is linux. Does anybody know some C function that does this? I know that there are some files storing the interface details, and they can be read and parsed. But is there a simpler way out? LOL A ship...
  10. vkarthik

    Compiling Problem

    I don't want to question ur design, but I feel that, it is unnecessary to actually compile and run it. Instead, u can tell the user what the exact command is, for compiling it, and u can just show the exact output as plain text or a graphic. This is very much like how the books, or the tutorials...
  11. vkarthik

    Audio File Play length

    Looked at the javadoc and found these classes... See if they r of any use - javax.sound.sampled.AudioFormat javax.sound.sampled.AudioInputStream The above classes have methods to meet ur requirement (getFrameLength, getFrameRate). There are more interesting classes in the same package so check...
  12. vkarthik

    URL problems...

    I think a valid URL, referring to a local file will look like this - file:///c:/sounds/wav.1 Try it and tell me if it works. LOL A ship is safe in the harbour, but that's not what it is meant for!!! LOL
  13. vkarthik

    Passing java's status code to c++

    Hey thanks! I did think of this, but my concern was, how should the wrapper receive it. To make my requirement clear, my java app runs as a win2k service. That is, there is a c++ wrapper that implements "windows service manager" api, and also runs this java program (using jni). And you know...
  14. vkarthik

    Some help pls!! - Java definitions

    Well, well... I do think u r trying to do a lot at the same time. Now sit back, relax, and take it slow. Java is definitely easy once u get into it. But my advice would be not to delve into servlet or jsp or ejb at once, but learn the basic programming first. Don't even think about "can this web...
  15. vkarthik

    Some help pls!! - Java definitions

    I can't compare jsp and servlet with asp, 'coz I donno much of asp. But to answer ur second question, "Also a client asked me to create a website using java...to create website u have to use jsp or java or?? pls give me some help here cause i will freak out! " Servlet and JSP are parts of...
  16. vkarthik

    Java Swing

    To set a menu bar, u shouldnot use add() method. Use setJMenuBar method instead. LOL A ship is safe in the harbour, but that's not what it is meant for!!! LOL
  17. vkarthik

    Passing java's status code to c++

    I have a c++ wrapper over a java application, and c++ uses the jni library to launch a jvm, and invoke the main method of the application. I have a requirement that, when the java application exits, it has to pass the 'status code' to the wrapper somehow. By status code, I mean, "return 0" or...
  18. vkarthik

    java -Xmn and -Xmx options

    You saved my day man! i cant tell u how useful this finding of urs is.... thanks a lot. If you know of some good method to overcome this, can u suggest... You've already suggested increasing heap size.. can u tell me approximately by what proportion i can increase it with... with reference to...
  19. vkarthik

    java -Xmn and -Xmx options

    I have a java application that runs on solaris and windows. Its started with java's -Xmn and -Xmx options, with values 64 MB and 128 MB respectively. On Windows, it is starting up with 20 MB, but on solaris, it starts up with a whopping 117 MB! And after a while, it reaches 180 MB, and goes down...
  20. vkarthik

    syslogging from content switch

    Give me the format of the syslogs that the device sends... also, tell me the version of rme u use... LOL A ship is safe in the harbour, but that's not what it is meant for!!! LOL

Part and Inventory Search

Back
Top