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

    List start menu items

    I'm currently working on a project that requires me to list the contents of the "All Programs" folder (and preferably the rest of the start menu, but that's not necessary). I was wondering if there was a nice API to do this (I know there isn't one to edit it, but that's not important to me)...
  2. plasmatwin

    Extensible configuration system

    Hi, I'm writing a modular program (mainly as an experiment) and I would like some advice on passing the configuration of the program. What I would like is to be able to use a configuration file (preferably xml) to hold all the core configuration, aswell as different lumps of configuration that...
  3. plasmatwin

    Getting Single lines from an async socket

    I'm writing an IRC client library in c# using the Aynchronous Socket model in .NET. I am currently at a problem where, when recieving data from the socket, the program simply fills its buffer (a byte[256]) with data from the socket and hands it to me. The problem is that this array could contain...
  4. plasmatwin

    Comparing two associative arrays

    Hi, I have my configuration loaded into a hash called %config, I want to check that hash for the presence of certain mandatory values. It is currently a hash of two hashes, I want to make another temporary hash of two hashes with some default values in it and then loop through each value of the...
  5. plasmatwin

    validating contents of ini files before loading with Config::IniFiles

    Ok, so I want to load an ini file as the config of my script. I want to use the tie() method so that I can access it as if it were a normal hash array (called %config). If I want to check the contents of the ini file for sanity of the data in the inifile (existance of compulsory settings, etc)...
  6. plasmatwin

    POE IRC bot failing and I don't know the source of the error...

    Hi, I'm frustrated at the moment because my IRC bot has stopped functioning and I don't know why. I made allot of changes without testing it and I don't know what went wrong... It gives me an error saying: getservbyname error 99: Cannot assign requested address I tested a simple POE irc bot...
  7. plasmatwin

    er... SUID?

    ok, I am doing a web based admin system for a little project I am working on. To see what I could do as a start I decided to start on reading the iptables rules and formatting them nicely on the page - just to start. I hit a rather large road block though, I need root permissions. I am using the...
  8. plasmatwin

    relative paths in perl...

    Hi, In windows, the $0 variable returns the FULL path to my perl script, but in linux it is giving me a relative path - not useful to me at the moment. as soon as I chdir() to another directory (eg "/"), the relative path is no longer useful to me and $0 still contains the path relative to...
  9. plasmatwin

    how to find out the directory in which the perl script is located?

    ok, so if I have a perl script in a directory (eg "C:\perlscripts\")and I go to that directory and run it then "./config.conf" in the script will refer to the file "config.conf" in the same directory as the script ("C:\perlscripts\config.conf"), but if I am in a different directory (eg "C:\")...
  10. plasmatwin

    Perl says there is a syntax error but I can't find it, help please.

    ok I have the following subroutine in one of my programs, all it does is read a file and check various things then load it as a config. The subroutine isn't finished yet but this part of the syntax should be fine :-/ I have highlighted the parts that perl says are wrong in red and I've put the...

Part and Inventory Search

Back
Top