Hi
i Just got the book Linux Kernel Development by Robert Love . It has lots of places where you are required to modify and build the kernel . So how should i go with it . Is it better to use a VM , or should i somehow get a proper test machine for it , since i dont want to goof up on my system and data.
...
SetEnv doesn't seem to work for me. I tried this in my .htaccess:
SetEnvIf Remote_Addr ^192\.168\.0$ ip_ok
<IfDefine !ip_ok>
AuthName "Guest Login"
AuthType Basic
AuthUserFile /opt/lampp/lib/ok_users/guests.users
require valid-user
</IfDefine>
and I had to provide username/password credentials even though my ip is 192.168.0.10...
Hi there. I've a problem that seems quite simple, but I can't get it done. I have a package with many dependencies and I want to remove ALL of them, regardless wheather other packages also depend on them ( they get removed too ). How can I get a list of all dependencies of a package that I can easily send to xargs aptitude purge ? Thank ...
Hi, I just compiled the latest Code::Blocks 10.05, but the template select screen is empty, what did I do wrong?
When installing from repo, I can see the templates and start a new project.
It seems most parts are missing, even though I configured with --with-contrib-plugins=all.
What did I do wrong?
...
If I want to have, say, a PHP application update one of my config files in /etc, is there a generally agreed-upon best way to do that?
What I specifically want to do is to have Drupal update /etc/postfix/virtual. My app has a certain list of users and I want each one of those users to be under an alias because I want [email protected]...
According to the documentation for fgets(), the function takes three parameters:
char * - a string that will hold the input
int - an integer that represents the maximum number of characters to read
FILE * - a FILE * to the stream to read from
I have no trouble calling the function. I just push the three parameters onto the stack, cal...
How is struct sockaddr different from struct struct sockaddr_un ?
I know that we use these structures in client-server modules,for binding the socket to the socket address.And we use a cast operator for it to accept struct sockaddr_un.
I want to know how different/similar are they,and why the cast operator?
...
How do you do this...
When the user enters
http://domain.com/mycompanyname
browser redirects to
http://manager.domain.com/page.php?company=mycompanyname
Note: mycompanyname value is dynamic
...
Do lfind/lsearch perform better than a typical looping solution that checks each item until it matches? Is there any special sauce/reason that these functions exist?
...
Hi,
I have been reading about /dev/urandom, and as far as I can tell, /dev/random creates cryptographically random numbers by taking advantage of several events like network packet timings, etc. However, did I understand right that /dev/urandom uses a PRNG, seeded with a number from /dev/random? Or does it just use /dev/random as long a...
Anybody knows a book about X11 (or XOrg) programming on Linux.
...
I am trying to use the google appengine python SKD from my ubuntu lucid. I have already compiled python2.5. But when I execute any "dev_appserver.py" command with it I get the following error:
Traceback (most recent call last):
File "dev_appserver.py", line 69, in <module>
run_file(__file__, globals())
File "dev_appserver.py", ...
The manpage for the POSIX binary tree functions includes the following statements:
tdelete() returns a pointer to the parent of the item deleted, or NULL if the item was not found.
tdelete() frees the memory required for the node in the tree. The user
is responsible for freeing the memory for the corresponding data.
...
I am currently working on a project about setting process to one core in linux environment. I use sched_setaffinity to do this job and I wonder whether there are some functions provided by linux to get which core the process is running on. I use top command and find it could get this info using j option. So i am sure there are some wa...
Hi Guys,
I am not very experience with java and this is driving me crazy. I wrote a java program "FileManagement" and I need to run it from the command line.
I can compile it from the command line with "javac FileManagement/*.java" which will create all the classes in that folder but when I try "java FileManagement.Main" it says "Excep...
The following program shows that we can use return() or pthread_exit() to return a void* variable that is available to pthread_join()'s status variable.
(1) Should there be a preference for using one over the other?
(2) Why does using return() work? Normally we think of return putting a value on the stack but since the thread is comple...
I want to create thumbnails out of PDF files to be able to display a short preview of the PDF file on a website.
I tried it by using ImageMagick. Unfortunately the results aren't very pleasing.
The resulting images are very fuzzy.
Example Thumbnail (fuzzy):
http://cl.ly/7563000242690f0dec07
Original PDF:
(see Comment)
Command:
conv...
I have a particular function (well, set of functions) that I want to start every 400ms. I'm not much of a C programmer, and so anything outside of the standard libraries is a mystery to me, as well as quite a bit within them.
My first thought is to use nanosleep to pause execution for 400ms in some sort of loop, but this of course doesn...
I'm writing a simple shell as an OS course assignment, I need to search in the PATH to find the program user typed in, once I find the right directory, I malloc a piece of memory just enough to hold the directory name plus the program name, and I pass it as the first argument to execv().
I could have statically allocated 100 characters ...
I am trying to build the OSKit source code. It is orginally written against gcc 2.95.2, but on my box I got gcc 4.3.2. And 4.3.2 doesn't allow the following syntax:
asm volatile("
pushfl
popl %0" : "=r" (eflags));
return eflags;
4.3.2 always complains that:
error: missing terminating " character
There're so many syntax like t...