07-26-2011
hihihi.... yup i'm still a newbie in shell.. tsktsk.. thanks master itkamaraj. ^_^
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello, I need advice on how to check if started processes are finished in perl, here's explanation :
OS is RHEL 4, perl -v = "This is perl, v5.8.0 built for i386-linux-thread-multi"
The logic of the script :
#!/usr/bin/perl
use warnings;
$param1 = $ARGV;
$param2 = $ARGV;
$param3 =... (2 Replies)
Discussion started by: sysgate
2 Replies
2. UNIX for Advanced & Expert Users
Hey,
Could you explain me what this code is doing ?
For example:
$i has value 9
$1 is the name of the file say FILEBkUp
while
do
if $1.`/bin/expr $i - 1` ]
then
mv -f $1.`/bin/expr $i - 1` $1.$i
fi
i=`/bin/expr $i - 1`
done
Thanks... (2 Replies)
Discussion started by: varungupta
2 Replies
3. UNIX for Dummies Questions & Answers
i am not able to understand the following code for awk:
$awk -F"|" '{ kount++}
>END { for (desig in kount)
> print desig,kount }' emp.list
the input file i.e. emp.list is ::
3432| p.k.agrwal |g.m |sales
4566|g.l.sharma |director|production
3433|r shah | g.m | production... (1 Reply)
Discussion started by: streetfi8er
1 Replies
4. Shell Programming and Scripting
Hi Guys,
Can someone please explain this code to me. I could figure out it's adding and comparing two fields but I am not sure which ones.
sort -t"|" -k3.1 /tmp/mpcashqc.xtr| awk -F"|" '{CHECKAMT+=$3;BATCHTOT=$4;\
items++}END{for(i in CHECKAMT) if (CHECKAMT!=BATCHTOT)... (6 Replies)
Discussion started by: nua7
6 Replies
5. Programming
Okay so I am just starting programming c++. I just started started to red "C++ for Dummies yesterday and theres a lot of things I do not understand from this book and this source code especially. I will first post the full source code and then post questions about certain thing, usually what they... (2 Replies)
Discussion started by: orszhak
2 Replies
6. Shell Programming and Scripting
Hi All,
can you please help me to figured out what's the meaning of this.
${SERVER_DATABASE} -b << EOF 2>>/dev/null
THanks, (3 Replies)
Discussion started by: nikki1200
3 Replies
7. UNIX for Dummies Questions & Answers
Hi,
To re-introduce myself, I'm a router guy trying to learn some scripting from the examples in my work place...
In a ksh script, one of the script guys wrote the following and I am trying to understand it. I'm hoping someone can explain it to me.
The script flow enters a case structure.... (5 Replies)
Discussion started by: Marc G
5 Replies
8. UNIX for Dummies Questions & Answers
Hi guys can you please help me to understand this code .
tmpArray=(${line//=/ })
Please next time open a new thread in the appropriate forum and use code tags (6 Replies)
Discussion started by: sandhya.gilla
6 Replies
LEARN ABOUT OPENDARWIN
get_camera_matrix
get_camera_matrix(3alleg4) Allegro manual get_camera_matrix(3alleg4)
NAME
get_camera_matrix - Constructs a camera matrix for perspective projection. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
void get_camera_matrix(MATRIX *m, fixed x, y, z, xfront, yfront, zfront, fixed xup, yup, zup, fov, aspect);
DESCRIPTION
Constructs a camera matrix for translating world-space objects into a normalised view space, ready for the perspective projection. The x,
y, and z parameters specify the camera position, xfront, yfront, and zfront are the 'in front' vector specifying which way the camera is
facing (this can be any length: normalisation is not required), and xup, yup, and zup are the 'up' direction vector.
The fov parameter specifies the field of view (ie. width of the camera focus) in binary, 256 degrees to the circle format. For typical pro-
jections, a field of view in the region 32-48 will work well. 64 (90(de) applies no extra scaling - so something which is one unit away
from the viewer will be directly scaled to the viewport. A bigger FOV moves you closer to the viewing plane, so more objects will appear. A
smaller FOV moves you away from the viewing plane, which means you see a smaller part of the world.
Finally, the aspect ratio is used to scale the Y dimensions of the image relative to the X axis, so you can use it to adjust the propor-
tions of the output image (set it to 1 for no scaling - but keep in mind that the projection also performs scaling according to the view-
port size). Typically, you will pass (float)w/(float)h, where w and h are the parameters you passed to set_projection_viewport.
Note that versions prior to 4.1.0 multiplied this aspect ratio by 4/3.
SEE ALSO
apply_matrix(3alleg4), get_align_matrix(3alleg4), set_projection_viewport(3alleg4), persp_project(3alleg4)
Allegro version 4.4.2 get_camera_matrix(3alleg4)