- arg list too long - This error is caused by having
ARG_MAX too small. When a command is invoked the environment and
the arguments (string length) must be less than ARG_MAX. To check
the size, type
promp# getconf ARG_MAX
Set this environment variable larger to stop this error.
REFERENCE
If this doesn't help then you need to change a system parameter. To
do this you must have administrator rights. Execute the following
code.
su -
systune -i
ncargs 262144
quit
- My first use of awk - I had a problem with the
dependencies of certain source code files not being up to date. I wanted to
remove the dependencies for only those files, so I didn't want to
make clean. Using grep and find I located
the files that needed to be updated. I couldn't just delete
the dependancy files without removing the object files, because that would
risk the dependancies not being up to date. I had to find a way to
transform the names of the dependency files from
path_and_name.d to path_and_name.o. I decided to try
and learn awk enought to do the trick. This is what I ended up
using:
prompt> find . -name "*.d" | xargs grep -l GLTexture3D
./Dataflow/Modules/Visualization/GLTextureBuilder.d
...many more...
prompt> find . -name "*.d" | xargs grep -l GLTexture3D | awk -F"." '{ print "." $2 ".o" }'
./Dataflow/Modules/Visualization/GLTextureBuilder.o
...many more...
prompt> find . -name "*.d" | xargs grep -l GLTexture3D | awk -F"." '{ print "." $2 ".o" }'
| xargs rm
prompt> find . -name "*.d" | xargs grep -l GLTexture3D | xargs rm
This probably wasn't the best way to do this, especially if there were
periods in the middle, but it worked for me. :)
- Alpha blending - I'm putting this information here, because
I can't seem to find it when I need it. After deriving the
back-to-front equastion I realized that I don't want to have to do
that everytime I want the equastion, so here it is.
Bact to Front
Cout = Asrc * Csrc + (1 - Asrc) * Cin
*** You don't need to keep track of the running alpha because Ain
is composited in Cin. I won't go into the derivision here,
*** but this is it.
Front to Back
Cout = Asrc * Csrc * (1 - Ain) + Cin
Aout = Ain + Asrc * (1 - Ain)