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 Chriss Miller 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: *

  • Users: kodr
  • Content: Threads
  • Order by date
  1. kodr

    Help understanding a bit of code.

    Below is some code I'm trying to understand. I'm not sure if it's working correctly. function loadavg ($bar = false) { $buf = rfts( '/proc/loadavg' ); if( $buf == "ERROR" ) { $results['avg'] = array('N.A.', 'N.A.', 'N.A.'); } else { $results['avg'] =...
  2. kodr

    eval and if problem

    Help. I've got two versions of my code. The first one works as long as the remote server is reachable and fails (obviously) when the remote server is unreachable. My second version is my attempt to capture the error and populate some error text. $mechanize->get($url); my $page =...
  3. kodr

    PHP polling data from a .php file on another server

    I'm not sure if this is possible, or if there's a better way. What I've got is 5 Linux/Apache servers. 4 of them have a small php file that basically just echo's the results of a small command. I can pull up the server_status.php file from any of the 4 servers from any machine on my network...
  4. kodr

    $_POST and register_globals=off

    I know there's a lot of information out there, but I'm just not making sense of this. I've got a server using php 5.1.6, and register_globals is off by default. Cool. If I'm understanding everything correctly, I should be retrieving my variables using $_POST. $user_name =...
  5. kodr

    Memory management

    I've got a few applications that run daily, that I use to track equipment utilization (port counts, used vs. available), stuff like that. The number of nodes (equipment) is steadily growing, as the network gets larger. I'm starting to have to allocate more memory for these programs (-Xms...m...
  6. kodr

    Telnet, SSH application design.

    I've been putting off a project for a while now, that I really should get started (the new year seems like a good time to start.) I'm just looking for any suggestions or guidance here, no specific code. My goal is to build a basic framework for a Telnet, and maybe SSH capable application. I...
  7. kodr

    Show / Hide Sheets based on combo box in Excel

    Basically what I'm trying to do is to show or hide worksheets in excel based on data being selected in a combobox that is directly on the 'main' worksheet that will never be hidden. I've done this in code, but I'm looking for a solution that would allow me to do this without distributing any...
  8. kodr

    Working with cell ranges in Excel

    I'm trying to create line graphs from some data being generated by another organization. Say for instance I have the following data: Processor Type1 20-August 21-August (continues for 30 days) city1-proc1 20% 25% etc... city1-proc2 34% 20%...
  9. kodr

    XP, Apache 2, C++ CGI

    I'm trying to set up a server for internal testing, and I am missing something. I keep getting an internal server error 500 everytime I try to test a simple C++ cgi script. Can anyone point me in the right direction for a set up tutorial or example for this type of thing? Is there anything...
  10. kodr

    Renaming all files in a directory.

    I'm stuck and can't quite figure out what I'm doing wrong. I'm trying to change the extensions of every file in a selected directory. Here's what I've got: import java.awt.*; import java.awt.event.*; // ActionListener import javax.swing.*; import java.io.File; import...
  11. kodr

    Remove instance of a class from memory

    This is probably a real basic question, but I'm not even sure what to search for to find an answer. For instance: SimpleClass MyClass = new SimpleClass(); Once I was done with MyClass, and I wanted to free up the memory space, how would I go about that?
  12. kodr

    Query Access database from Excel

    I'm connecting to an Access database from excel using Microsoft ActiveX Data Objects 2.6 All is good, able to retrieve and add information to my tables just fine. My problem is this, I have a table (tblA) and it has four fields that are numberical indexes. Field1 can contain a number...
  13. kodr

    Excel VBA SQL problem.

    Okay, I'm stumped. It's probably something simple. sSQL = "SELECT MAX[INTERVAL_ARRIVALS] AS lMaxIA, [Time] as sTime FROM tblCONG WHERE iIndex = 40 GROUP BY lMaxIA, sTime" rs2.open sSQL, Conn, adOpenStatic, adLockOptimistic lMaxIA = rs2.Fields(0).value sPeriod = rs2.Fields(1).value The above...
  14. kodr

    Trying to perform a sum query

    I'm having trouble trying to perform a 'sum' query. My code is in Excel, and I'm trying to sum the totals of all records that have a certain region code, from an Access database. I'm using MS ADO 2.8 as a reference, and here is my code so far.. [code] Sub Global_Report(ByVal sOutFileName As...
  15. kodr

    File Clipboard

    Is it possible to add data to the file clipboard from Aspect?
  16. kodr

    Saving image as .jpg

    I know the ins and outs of doing this has been discussed on the board before. I've tracked down two possible ways of saving the contents of an image box as a .jpg, one to use bitblt, and one to use the intel library. Is there any advantages of one over the other? I'm looking to keep things as...
  17. kodr

    Picture file problem / Binary file read

    Could someone help me with this code? [code] SavePicture picTemp.Image, App.Path & "\tmpout.bmp" DoEvents Open App.Path & "\tmpout.bmp" For Binary Access Read As #7 Do While Not EOF(7) Get #7, , sFileDataTemp sFileDataOut =...
  18. kodr

    MMControl recording question

    What I'm working on is capturing an audio recording (from a microphone) and passing it to another computer through the internet (yeah, voice chat.) Currently what I'm doing is capturing 1 second wav files and sending them. There has got to be a better way. Is is possible to 'hook' or capture...
  19. kodr

    Video Capture window sizing problem.

    In the line below, no matter what I set the height and width to, the capture window is always the same size. Am I missing something obvious? mCapHwnd = capCreateCaptureWindow ("Capture Window", 0, 0, 0, 320, 240, Me.hwnd, 0)
  20. kodr

    2 Winsock questions..

    I've searched every way I can think of, and I'm down to 2 questions... I'm implementing a client/server application that needs to send small packets of data back and forth. I'm using TCP, and everything is working okay, except for the issue of sending data. From what I can tell, when you...

Part and Inventory Search

Back
Top