Can someone please point out some books or online resources which explain in detail and at an advanced level the task management features of x86? I'm specifically interested in understanding the relationship between x86 hardware and the OS (POSIX style) when an interrupt or context switch occurs. Intel manuals are very confusing and I ca...
I bought a domain name with GoDaddy.com. I have a Ubuntu linux server running with Rackspace Cloud. On this server, I have Apache up and running.
My question is this: How can I set up my domain to point to my server with Rackspace Cloud. More specifically, I want http://www.mydomainname.com to map to my Apache server.
I am assuming th...
Is there some resource editor for windows executables I could run from a CentOS box?
Something like Resource hacker, that allows to update icon and fileversion.
But I don't want to install wine because it's not my server and I want to change much.
I would like to run it from a .py script so anything that works from a terminal will do....
Dear All,
How to make a php socket client that needs to perform socket_sendto to linux C socket server which has following struct
typedef struct
{
UI2 todo;
char rz[LNG_RZ + 1];
char saId[LNG_SAT_ID + 1];
char user[LNG_USER + 1];
char lang[LANGLEN + 1];
SI4 ...
HI.
I'am under ubuntu 10.04, live CD.
I run my adobe CS3 application in the stand-alone flash player V10.
screen resolution : 1280x1024
I've set the /etc/adobe/mss.cfg file parameters.
But, in full screen, the display performances are divided by 2!!!
Is there a solution ?
- Ubuntu optimisation ?
- new flash player version ?
- CS3 par...
I'm using SDL_Image to display a JPEG on screen and having some issues with the resolution it's being displayed at.
I understand that if I pass 0 to width, height and bits when calling SDL_SetVideoMode that SDL takes the current modes values, however these seem to be wrong in my case.
I'm running this on an embedded linux system with a...
I've seen the usage of exit status 3 in several python scripts that restart processes. As far as I know the convention is only about 0 and "not 0" on Unix/Linux.
Is there a convention defining other values like 3.
...
I am trying to extract the value from
in File.txt :
116206K->13056K(118080K), 0.0879950
secs][Tenured:274796K->68056K(274892K),
0.2713740 secs] 377579K->68056K(392972K), [Perm
:17698K->17604K(17920K)], 0.3604630
secs]
I have try to extract
cat File.txt | grep 'Perm '| cut -d',' -f3|cut -d'(' -f2 |cut -d')' -f 1
What ...
Hello
I am creating a C program that is called from a shell script when a specific event is occurring. The C program gets an argument from the shell script like this:
> ./c-program.bin HELLO
Now the C program is running until it recieves a specific character as an argument. The problem is that if a second event occurs, and the C prog...
I am looking for a automated finite state machine generator for C? I have seen a few over the internet but unable to decide which one to use. If anybody worked with any such tool then help me to find the right one.
Thanks,
Ravi Gupta
...
I have a footpedal (see altoedge.com) and fortunately there is a software for using it under linux (see http://code.google.com/p/footpedal/). The author of that software already solved an issue for me (see issues there), but there is no option to ask simpler questions.
Unfortunately prior to use the software I have to change the device...
I've got a web server running Ubutu 10.04 and Apache2 and PHP.
When I upload a file to the server through PHP, it creates it with 'rwxr-xr-x' and 'www-data www-data' as the user and group.
I've added my 'administrator' account to the 'www-data' group.
However, when I log in to my server through SSH and try and delete one of the files ...
I've got an enum type defined in the private section of my class. I have a member of this type defined as well. When I try to initialize this member in the constructor body, I get memory corruption problems at run-time. When I initialize it through an initialization list in the same constructor instead, I do not get memory corruption pro...
Hi, I have a crontab file which executes a shell script as shown below
27 11 * * * /usr/python/bi_python/launcher/launch_script_leds.sh
The shell script does a number of things:
1)executes python script launcher.py which runs tests and outputs to log files
2)sends mail notification when tests have completed with test output as body ...
When I tried ifconfig it gives me the whole all the information regarding the Network Adapter.
I tried :
system( "ifconfig -a | grep inet | "
"sed 's/\\([ ]*[^ ]*\\)\\([ ]*[^ ]*\\).*$/\\1 \\2/' "
" > address.txt" ) ;
which output two Ips :
inet addr:17.24.17.229
inet addr:127.0.0.1
But I need just the 1st...
Most command-line programs just operate on one line at a time.
Can I use a common command-line utility (echo, sed, awk, etc) to concatenate every set of two lines, or would I need to write a script/program from scratch to do this?
$ cat myFile
line 1
line 2
line 3
line 4
$ cat myFile | __somecommand__
line 1line 2
line 3line 4
...
Hello,
My application is running on CentOS 5.5.
I'm using raw socket to send data:
sd = socket(AF_INET, SOCK_RAW, IPPROTO_RAW);
if (sd < 0) {
// Error
}
const int opt_on = 1;
rc = setsockopt(m_SocketDescriptor, IPPROTO_IP, IP_HDRINCL, &opt_on, sizeof(opt_on));
if (rc < 0) {
close(sd);
// Error
}
struct sockaddr_in sin;
memset(&si...
Hi all,
Apparently this is almost a duplicate of "Bad pipe filedescriptor when reading from stdin in python - Stack Overflow"; however, I believe this case is slightly more complicated (and it is not Windows specific, as the conclusion of that thread was).
I'm currently trying to experiment with a simple script in Python: I'd like to...
I've written a simple ruby application with Ruby Qt. I recently read about distutils in python, and now I'm trying to figure out how to do something similar in ruby.
I do not need to distribute on any OS besides linux, but I'm trying to figure out the best way to do that. Should I figure out how to build a .deb? If so how do deal with t...
How would i find out the amount of RAM and details about my system like CPU type, speed, amount of physical memory available. amount of stack and heap memory in RAM, number of processes running.
Also how to determine if there is any way to determin how long it takes your computer to execute an instruction, fetch a word from memory (wit...