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 TouchToneTommy 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: timgerr
  • Content: Threads
  • Order by date
  1. timgerr

    MS SQL DAG Graph

    Hello all, I have a question about Directed acyclic graphs. I am new to Microsoft SQL server coming from MySql. The reason why I am now using MS SQL is the need for nodle graphs in a relational database. I have been reading so much on this, I really need this to work. I have been trying this...
  2. timgerr

    convert 255 to a binary representation

    if I have a number 255, is there a php function to output the binary string of 11111111? thanks, timgerr -How important does a person have to be before they are considered assassinated instead of just murdered? Congratulations!
  3. timgerr

    Remove items from Array of objects on object keys

    Hello all, I have an array of objects that I need to remove some items and keep others. Here is my problem, I have this array:: array 0 => object(stdClass)[9] public 'id' => string '781' (length=3) public 'root' => string '781' (length=3) public 'RSS_Role' => string...
  4. timgerr

    Math get the average of somthing

    Hello all, I have a problem. I have a program that tells me that I am using 54% of Ram. How in powershell can I do this 1024 / .54 Thanks for the help timgerr -How important does a person have to be before they are considered assassinated instead of just murdered? Congratulations!
  5. timgerr

    Embed a picture <img> in convertto-html

    Hello all, I was wondering if I could embed a picture from a url in a ps1 script. I want to use Google graphing api, so I want to embed this graph http://chart.apis.google.com/chart?chs=250x100&chd=t:60,40&cht=p3&chl=Hello|World like this $filelocation = "C:\testscript\pwrshl\asshat.html"...
  6. timgerr

    Question about PDO mysql and local variables

    Hello all, I have a goofy question for ya, I have a PDO transaction to my mysql database that I an sending 2 queries. I get local variables in the first mysql statement then pass the variables to the second mysql statement. Here is my problem I have at signs (@) in some returned object...
  7. timgerr

    Question about single tick (apostrophe) using PDO::FETCH_ASSOC

    Hello all, I have a question about PDO and any word that has an apostrophe in it. I have a function below, if I create (for some reason) a query that is bad, somthing with the word don't in it, I get an error. If I add a slash to the word don\'t I still get an error. Has anyone else gotten this...
  8. timgerr

    Need lots of help parsing XML

    Hello all, I am new to C Sharp and I am in need of help to parse a nessus XML file. I am un able to recursively go through an XML file and look for the elements that I want. Does anyone have any sample code that recursively gets child elements? Again I am new so the code that I have been...
  9. timgerr

    Question about a query

    Hello all, I was wondering how do to something. I have a table that I need to do some kind of sub query. I am learning so this query eill teach me a lot. I have 2 columns One is the ID and the other is Num. I need to search for all Nums that have a "0" in it and get the ID of that row. I...
  10. timgerr

    Need to get data from list with regular expressions

    Hello all, I have a problem, I am getting a generated list of computers type, OS's, and computer names. The problem is that I am unable to parse the information via tabs or white space because of how the list is generated. I want to use a regular expression to get the 3 pieces of data that are...
  11. timgerr

    Question about arrays

    How can I create an array that I am not sure how many items are going into it. string[] myArray = new string[1]; 1 item can go into the array How can I declare an array if I am not sure how big I should make it. Thank you, Timgerr -How important does a person have to be before they are...
  12. timgerr

    Just learning, have a question about objects

    I am learning c# coming from a vbscript, Perl, PHP and flex background. I have a questions about objects. In PHP if I want to create an object I would do this: $t = new stdClass; $t->name = "Tom"; In Flex I would do this var t:Object = new Object(); t.name = "Tom"; Does c# have anything...
  13. timgerr

    Question about CSS, Vbscript and HTA's

    I am creating an HTA using VBscript. I have a few div's that I hide when not in use. The problem is that when the div is hidden it takes up space. so if I have this: <div id="divFormOne"> Some code here </div> <div id="divFormTwo"> Some code here </div>...
  14. timgerr

    Need to list all the string value paths in the registry run key

    Hello all, I am having troubles getting this to work. I need to list all the registry hey values and paths in the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run key. I need to loop through the key, get all the value names and the paths. I cannot for the life of me to get...
  15. timgerr

    How To Remove duplicates from array of objects

    Hello all, I have an array of objects and I need help removing duplicates from $test[]->PARid. Not sure how to do this. $test = Array ( [0] => stdClass Object ( [PARid] => 0 [nID] => 1 ) [1] => stdClass Object ( [PARid] => 310 [nID] => 2 ) [2] => stdClass Object ( [PARid] => 313 [nID] =>...
  16. timgerr

    Declare a global object and add to it

    Here is my problem, I am used to different languages (java,flex) where I can declare somthing and then add to it when I want. Here is my problem, I want to declare an object, run a function that will add an array to the object and then add to that object from another function. It might be...
  17. timgerr

    Whant to remove last character from string

    Hello all, Here is something goofy, I am trying to remove the last character from a string so I use this method: $test = '012345678'; while($test){ echo $test . '<br/>'; $test = substr($test,0,-1); } This is the output 012345678 01234567 0123456 012345 01234 0123 012 01 it ends at 01...
  18. timgerr

    Recursive method find if object $this error

    Hello all, I was wondering why I am getting an error when calling the $this-> method in my class, here is what I mean: class tree { function recurse($obj) { foreach($obj as $key=>$val){ if(is_object($val)){ $this -> recurse($val); } else { echo $key . ":" . $val; } }...
  19. timgerr

    PHP scripts with sql comands that have @ in them

    Hello all, I have a question for ya. I am trying to do this tree structure from http://dev.mysql.com/tech-resources/articles/hierarchical-data.html and the query has @ symbols in them. I cannot get the queries to work because of the @ symbols. What can I do to get the queries to work? Here...
  20. timgerr

    Question about a Class and Date Time

    Hello all, I have a question for ya, I have created a class to change time zones, using Pear's Date.php Here is my class: class DateClass{ function GMT() { $nowGMT = date('U') . "<br/>"; $ets = strftime($nowGMT); // this is GMT...

Part and Inventory Search

Back
Top