I need to install PHP in my home directory, without polluting any directory outside my home [very important requirement!]. In the system there is already an older version of PHP running. I found instructions here: http://blog.thecybershadow.net/2013/01/25/installing-php-and-apache-module-under-home/ I am runn…
Sublime 2 Java build
Hi i am using this build system that i found here on so but for some reason it is still not working, the output i get is the javac options i have used this build system.I have used the default one with no luck had a look on-line and couldn’t find much. is there a better build system that i
Meaning of library dl in gcc
I’m checking a makefile, and see that the libraries used are: lcppunit is the unit testing library. What is ldl then? Answer libdl is the dynamic linking library.
How to copy directories into a directory using install in bash?
Assume the nested directories foo/bar and a empty directory dest. I would like to call something like install foo dest such that dest contains the directory foo/bar. I have tried the following: install foo dest => install: omitting directory “foo” install -d foo dest => nothing happens Answe…
Does the Linux implementation of quicksort “back off” to insertion sort?
I was reading in Bentley & McIlroy (1993) that their suggested implementation of Quicksort uses Insertion Sort when the arrays get small enough. I was curious to know whether modern-day kernels use this same maneuver. Does anyone know whether the Linux kernel, for instance, switches from Quicksort to Inse…
Managing a user password for linux in puppet
I need to create a test user with a password using puppet. I’ve read that puppet cannot manage user passwords in a generic cross-platform way, which is a pity. I am doing this for Red Hat Enterprise Linux Server release 6.3. I do as follows: puppet updates the password of the user, but Linux says login/…
32-bit to 64-bit jvm migration – jboss web application & linux server
We are migrating our Java EE / JBoss web application currently running on 32-bit linux box & 32-bit JVM to 64-bit linux box & 64-bit JVM. We analyzed & changed the JVM heap, permgen, stack etc., sizes appropriately. Is that enough or should we consider any other parameters/ make any other changes …
System calls : difference between sys_exit(), SYS_exit and exit()
What is the difference between SYS_exit, sys_exit() and exit()? What I understand : The linux kernel provides system calls, which are listed in man 2 syscalls. There are wrapper functions of those syscalls provided by glibc which have mostly similar names as the syscalls. My question : In man 2 syscalls, ther…
what is the difference between Linux drivers and Android driver
As android kernel is a hacked version of linux kernel.. So the way we write drivers for linux would that work in android or some modifications are to be done .? Answer There are some API differences between Android and Linux kernel drivers code, any drivers written for Android hardware platforms can not get m…
Are the load address is common for all the C programs in linux?
Let’s say I have a prog1.c which is build as prog1.out. In prog1.out there is a linker information that will tell where the elf will be loaded. These addresses will be a virtual addresses. The loader will look for these information’s and a launch this as a process. Each section like DS,BSS will be…