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 wOOdy-Soft 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: Azathoth
  • Content: Threads
  • Order by date
  1. Azathoth

    IE Table Cell Height Oddity

    I'm trying to keep a cell on the top left side of a table a constant size. Unfortunately in IE with the method I'm using, the two cells that are spanned by a td with rowspan=2 become the same size. If you render the blow code in firefox, it behaves the way I want and expect, but not in IE...
  2. Azathoth

    Permissions Through A Browser

    I'm running a php flash content server, and if I'm not mistaken, users viewing my files fall into the "Other" permissions group. I was wondering if through my php code (or any other way really) I could allow users to fall into the "Group" or "Owner" permissions group. The problem is that I...
  3. Azathoth

    Prevent Flash Download

    I'm serving up flash content through an IE browser that I really don't want stolen. I've been able to stop it from caching, or being accessed directly with file permissions. However, there are all sorts of obnoxious programs like "Sothink SWF Catcher" and "Flash Catcher" that have no problem...
  4. Azathoth

    Unique Sessions On The Same Computer

    I'm having some issues testing a login system. I log in a one user, then open a new browser window. If I then call session_destroy, the user who is allready logged in will have his session destroyed. Also, if I log in with a user while another user is logged into the system allready, the user...
  5. Azathoth

    Selecting non-null values

    Is it possible to select all non-null values from a table row and update another table row with them? For example, the table before the statement is run: Id Val1 Val2 Val3 1 3 4 1 2 NULL NULL 5 And after: Id Val1 Val2 Val3 1 3 4 5 2...
  6. Azathoth

    Replacing a string within a text file

    How would I go about replacing a string in an existing text file? For example, the file example.txt contains: Item1 Item2 Item3 I have no problem iterating through the file and getting each line value, but is there some way to say, replace the value "Item2" with "newItem2" without touching...
  7. Azathoth

    Class Problems

    When trying to construct a class object containing another class object, I get the error: "no matching function call to "PlaneId::PlaneId candidates are: pLaneId::PlaneId(const PlaneId&) PlaneId::PlaneId(const std::string&, int)" Here are my two class files: // File: Planes.h #ifndef...
  8. Azathoth

    Map Question

    I'm trying to create a map of two different classes, but can't seem to set a value to a key. Here's my code: #include <map> #include <string> #include <vector> #include <iostream> using namespace std; class Student { public: Student(const string& si, const vector <string>& c) ...
  9. Azathoth

    Excecuting dos (or unix) commands from Java.

    I'm trying to excecute a command in dos from within my Java program, something like ("java " + commandline), but I can't get it to work. This lcode is in Driver.java: String commandline = "Cat file.txt"; Runtime rt1 = Runtime.getRuntime(); Process pr1 = rt1.exec("java " + commandline); And...
  10. Azathoth

    Adding multiple rows to a table with &quot;insert into&quot;

    I have an update trigger that records to an audit table. The problem is that an update could affect multiple rows, and this code only returns the first row affected in the lab_batch table. Is there some way to insert multiple records into the aud_lab_batch table? Here's the code: CREATE...
  11. Azathoth

    Update between two tables

    I have a temporary table #result that looks basically like this: unit_number deferral_days 1 50 2 20 3 102 And a table lab_unit that has the same fields. I want to update lab_unit for each unit_number...
  12. Azathoth

    Question regarding SQL Server's generation of random key values

    I have a database that I often delete all values from and populate with new ones for test data. The scripts I run to populate the database often include tables with foreign key relations that force me to run part of the script, see what kind of keys are generated, and manually add values to...
  13. Azathoth

    Creating comma-delimited strings with variable amounts of data

    I have a stored procedure that has to return values for particular product_ids. The problem here is that one result must be returned for each product_id, and there's no way of telling how many results are going to be returned. I'm trying to come up with a way to dynamically concatenate the...
  14. Azathoth

    Comparing / deleting between tables with count(*)

    I have two tables: #result - has fields unit_number, rule_id tesr - has field rule_id In both tables, the rule_id can be duplicate. What I need to do is determine if table #result has as many occurences of the same rule_id as appear in table tesr for a particular unit number. If it does not...
  15. Azathoth

    Stored Procedures - Returning String Values

    I have a stored procedure (SP1) that calls another stored procedure (SP2). In SP2, a variable (@test_codes) is declared and assigned a comma-delimited list of values. SP1 wants to get this string from SP2 and store it in a variable, but I'm not sure how to make that work. Is there some way to...
  16. Azathoth

    Pulling column values based on max()

    I have a table (#result) that looks something like this: unit_number fda_number deferral_days 1 4 25 2 5 10 3 6 75 I want to find the...
  17. Azathoth

    Selecting most recent (maximum) values for unique IDs

    I have a temporary table with these values: product_id status_datetime status_code 45 1/3/1999 12:30 P 45 9/9/2000 10:20 S 45 6/6/2002 11:10 S 50 3/3/2003 09:30 S 67...
  18. Azathoth

    onUnload() only fires once for confirm() dialoge

    I have a confirm dialogue bound to the onUnload() handler asking the user if s/he wants to leave the current page. If cancel is pressed, the document stops on the current page, as it is supposed to. However, if after this happens, the user clicks on a link to another page again, the dialogue...
  19. Azathoth

    Unexpected behavior with onUnload()

    I have some javascript on my page that looks like this: window.onunload=warn_form_data_loss(); form_dirty = true; function warn_form_data_loss () { if ( form_dirty = true) { var answer = (confirm("WARNING: You are about to navigate away from the current page, which may result in data loss...
  20. Azathoth

    Building a comma-delimited list in stored procedure

    I'm trying to build a comma-delimited list of test codes from some tables in my database. I don't think the details of the tables are important, because I think there's something wrong with my concatenation statement. test_code is of type char(5), but my variable (@code_list) seems to end up...

Part and Inventory Search

Back
Top