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)...
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...
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...
The mandatory hash is declared in the source code pretty much as it is there. The point is the mandatory one can be changed by me expanding the source and I didn't want the reply "just check each value manually one by one" ;)
Trojen: thanks for the tip on where to start, I'll post back once I...
hm... well, say that I have a nice complicated hash of hashes that looks like so on decleration:
my %config = (
"yesh" => {
"yarr" => "harr",
"chocolate" => 0,
"fruit" => {
"banana" => "yellow",
"orange" => "well... orange",
},
},
"boo" => {
"something" =>...
That's cool, pretty much exactly what I was looking for. Does it require that I specify "lefthalf"? Because there are multiple sections and I was hoping for a "one size fits all" algorithm that could compare any style of hash format (with as many dimensions that were neccessary and stuff...)...
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...
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)...
Ok... now I feel like a complete idiot... truly, I do
Sorry to anyone I have sent on a wild goose chase trying to figure out what was wrong with this... the config file was originally written on a windows computer, thus it had CRLFs at the end of the lines, and the linux machine was reading it...
Something I just noticed, all lines with a variable from the config in them are not printed properly, so I changed ALL the config variables out of the irc_connect subroutine and it now works perfectly. This worries me now slightly because it means that it IS the fault of the config hash... but...
Nope, that's why I am unable to solve it myself and couldn't give a smaller snippit of the code, if you go to the connect event and specify static values rather than the ones it fetches from the config hash then it still fails, however a less complicated script does not... I sense a major...
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...
I can't see how it makes much of a difference tbh, however $0 should return the full path, it worked for me on windows XP if I remember. I'm on linux at the moment so I can't test it... sorry about that...
Tell me why you need the full path and I will see what I can do to help in context :-)
It can be called directly from sudo if I REALLY REALLY try, I just have to make sudo run "/usr/bin/perl -e 'my script here'" but I think the idea of spawning a seperate child process to do the root part is better... I'll have to see where things go... Thanks for your help on this :-)
Sorry about that, angry at my family and I guess I took it out on you. I appreciate the help though :-)
I don't want to change what the actual Apache process is run by, but I would like to just do it internally during the script. Would executing sudo work? I could create a cgi script that can...
yes, the WORLD, as in I will be the only one who can actually gain access to it. Go figure...
The idea is fine, I can do the parts of passing the input, all I want to be told is how to get the root access! That's the problem with the docs I find on the internet, they are all to ready to tell me...
The readme also states that on Win32 systems (which I assume you are on due to the module) you should just copy the contents of the lib folder in the archive to the sitelib folder of your perl installation (such as C:\perl\)
Since the makefile.pl passed without any errors then you can assume...
so how does webmin do it? I don't want to use the actual webmin package but I am designing something along the same lines for a little project. Webmin has a log on system, so will this soon. I was going to get to that later, this is me just playing around at the moment. If you can tell me how to...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.