I'm currently making a terminal just for fun and to learn some python :)
I'm half way through making this terminal which sends commands to the OS by using commands.getcommand("...")
only problem is there doesnt really seem to be any environment there.. eg. environment variables, changing...
I'm having problems trying to access properties within an element...
when the element is set up like this:
<span id="bla" style="color: white; border: 1px solid black">blablabla</span>
I am able to access the style properties no problem at all e.g...
Valgrind & ccmalloc are reporting that there is a memory leak with this:
#include <iostream>
using namespace std;
int main(int argc, char** argv) {
cout << "Hello World\n";
return 0;
}
Valgrind says:
==26081==
==26081== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)...
Hi, I havent had much experience with doing random access with fwrite so I'm getting this problem with it. When I write some information to a specific point within the file, it seems to end the file straight after the data I've just written and I lose the rest of the file??..
Heres the code...
I've been running apache for years and had no problem with it until recently..
whenever i try to access a local virtual host i can never get to it
eg.
i type in: development
and i get a not found page and the URL changes to this:
http:///?%20development
anyone else come across this? maybe...
I've got WinXP on hda1, Red Hat 9 on hdd6 & Slackware 9.0 on hdd7.. Slackware 9 was the last one I installed but I cant get it up and running - I tried using Lilo but it didnt seem to work.. basicly Lilo has never worked on my machine - not sure why so thats why I'm using GRUB. I can boot to XP...
hmmm ok well /var/lib/mysql/mysql.sock must be the proper socket to use as that is the default setting that is in the my.cnf file, but how do I go about changing the /tmp location for my C program ?
I've written a few programs in C that access the local MySQL database on my linux system, the problem is this when I run one of my C programs it comes up with this error:
Error on connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
Then if I edit the socket entry...
sorry the body tag should be:
<body onload="test()">
also i dont want the DIV tag to be hard coded within the body of the HTML, i want it to be pure javascript driven..
thanks
i wrote this script to test out the createElement and removeChild functions, it works fine in Mozilla, but in IE, it creates the DIV layer, but when i hit a key to activate the removeChild function it says that the DIV layer does not exist?
<html>
<head>
</head>
<script...
hmm ok - well its starting to look like it cant be done...
i cant see any point in the casting cause as you were saying if you know what you are casting it as then you may as well assign the proper type in the first place.. i think for the time being i'll just add in a switch statement and...
ive got a general function that will act apon whatever structure i want to pass to it but is it possible to do that?
i tried this:
void test(void* obj) {
obj->member=....
}
the compiler seems to allow the void* obj, but the compiler is giving errors when i try to access members of that function
oh cool i didnt think of doing it like that :)
yea sorry about the typo with the (i+sizeof(char*)) i did mean i*sizeof..
thanks for that! saved me alot of headaches :)
this has me stumped... ok this is what im trying to do..
i have a structure with alot of char*'s within it - when the user inputs a new value of one of the char* members the program updates that members' value - i've left out the free commands and other stuff to make this code a bit easier for...
when i do a ls -l thats the size that it reports, no small programs that i've ever compiled have ever come to 32k - usually the average small program compiles to around 10 or 11k
im just asking this question because i remember at a place i used to work the C programmer there compiled an advert...
Hi, I'm running Red Hat 8 and I'm programming in C and C++, but compiled file sizes seem to be a little bit big?
eg:
int main() {
int i=0;
}
when i compile this with: gcc -O2 test.c -o test
the file size is 9748kb - this seems a little bit large for one command - is there a way to reduce...
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.