10 More Discussions You Might Find Interesting
1. Red Hat
Hi all Expertise,
I have following issue to solve,
SSL / TLS Renegotiation DoS (low) 222.225.12.13
Ease of Exploitation Moderate
Port 443/tcp
Family Miscellaneous
Following is the problem description:------------------
Description The remote service encrypts traffic using TLS / SSL and... (2 Replies)
Discussion started by: manalisharmabe
2 Replies
2. Solaris
I would like to disable RPC bind permanently since I am not going to use rpc bind to network to any other machines. How do I do this so I can stop getting all these error messages? (3 Replies)
Discussion started by: jastanle84
3 Replies
3. Shell Programming and Scripting
Can someone please explain me why the following script calls it self recursively:
#!/bin/bash
echo Called
$0
while this not:
#!/bin/bash
echo Called
$($0)
Thanks (6 Replies)
Discussion started by: superpointer
6 Replies
4. Programming
Hi,
Question: how come the output is like that? Can explain to me abit. I am learning C.
Thanks!
#include <stdio.h>
#include <string.h>
void printit(char line_of_char, int index);
int main()
{
char line_of_char;
int index = -1;
strcpy(line_of_char, "This is a string.");
... (5 Replies)
Discussion started by: seede
5 Replies
5. Shell Programming and Scripting
Hi All,
I have bash script, so what is sintax script in bash for Enable and Disable Tab Key. Thanks for your help.:(
Thanks,
Rico (1 Reply)
Discussion started by: carnegiex
1 Replies
6. Programming
I want to halt a tail recursive function after certain validation. I want to come out of entire recursion without unwinding phase. How can i achieve that . The coding is done in C language. (5 Replies)
Discussion started by: joshighanshyam
5 Replies
7. Shell Programming and Scripting
Hello every body. I am trying to find the factorial using the following code. But it is giving the syntax error. I tried very much but in vain. Thanks in advance for helping me
factorial()
{
if
then
y=`expr $1 - 1`
x=$(( $1 \* factorial $y ))... (6 Replies)
Discussion started by: murtaza
6 Replies
8. UNIX for Advanced & Expert Users
Hello everyone. I'm not sure if I should allow recursion on our external DNS server. I just finished configuring the server and this is the last parameter I'm pondering over. We are an internet company and we rely on customers going to our website and our website is referred to on our external... (1 Reply)
Discussion started by: xnightcrawl
1 Replies
9. Shell Programming and Scripting
I am running a korn shell script which has a recursive function.
The script ran for 117 iterations and ended up with the following error
"recursion too deep".
what should be done to avert this?
Thanks in advance
Swamy
p.s. I am on UNIX MPRAS V4 (3 Replies)
Discussion started by: swamy455
3 Replies
10. Shell Programming and Scripting
I'm using the UNIX csh and i wish to use recursion to nav my way up (or down as it is) a given folder.
My little test script is called "r" and takes a folder as argv (or $1)
#!/bin/tcsh -f
set allFiles = `ls -A $argv`
cd $argv
while ($#allFiles)
if (-d... (1 Reply)
Discussion started by: gsjf
1 Replies
fb.modes(5) Linux frame buffer utils fb.modes(5)
NAME
fb.modes - frame buffer modes file
DESCRIPTION
/etc/fb.modes contains an unlimited number of video mode descriptions. The general format of a video mode is:
mode
geometry <xres> <yres> <vxres> <vyres> <depth>
timings <pixclock> <left> <right> <upper> <lower> <hslen> <vslen>
options <value>
rgba <red,green,blue,alpha>
endmode
OPTIONS
geometry options:
xres visible horizontal resolution (in pixels)
yres visible vertical resolution (in pixels)
vxres virtual horizontal resolution (in pixels)
vyres virtual vertical resolution (in pixels)
depth display depth (in bits per pixel)
timing options:
pixclock
length of one pixel (in picoseconds)
left left margin (in pixels)
right right margin (in pixels)
upper upper margin (in pixel lines)
lower lower margin (in pixel lines)
hslen horizontal sync length (in pixels)
vslen vertical sync length (in pixel lines)
rgba options (only valid with truecolor):
red red color bitfields (in length or length/offset)
green green color bitfields (in length or length/offset)
blue blue color bitfields (in length or length/offset)
alpha alpha color bitfields (in length or length/offset)
other options:
the first value of this options is the default
hsync {low|high}
the horizontal sync polarity
vsync {low|high}
the vertical sync polarity
csync {low|high}
the composite sync polarity
gsync {low|high}
the sync on green polarity
bcast {false|true}
enable or disable broadcast modes. If enabled the frame buffer generates the exact timings fot several broadcast modes (e.g.
PAL or NTSC). Note that this option may not be supported by every frame buffer
extsync {false|true}
enable or disable external resync. If enabled the sync timings are not generated by the frame buffer device and must be pro-
vided externally instead. Note that this option may not be supported by every frame buffer device
laced {false|true}
enable or disable interlace. If enabled the display will be split in two frames, each frame contains only even and odd lines
respectively. These two frames will be displayed alternating, this way twice the lines can be displayed and the vertical fre-
quency for monitor stays the same, but the visible vertical frequency gets halved
double {false|true}
enable or disable doublescan. If enabled every line will be displayed twice and this way the horizontal frequency can easily
be doubled, so that the same resolution can be displayed on different monitors, even if the horizontal frequency specifica-
tion differs. Note that this option may not be supported by every frame buffer device
nostd <number>
select nonstandard video mode
accel {false|true}
enable or disable hardware text acceleration
grayscale {false|true}
enable or disable graylevels instead of colors
INTERNALS
Generally a frame buffer display is organized as follows:
+---+---------------+---+---+
| | ^ | | |
| | | 5 | | |
| | v | | |
+---#################---+---+
| # ^ # | |
| # | # | |
| # | # | |
| 1 # | 2 # 3 | 4 |
|<->#<------+------>#<->|<->|
| # | # | |
| # | 6 # | |
| # | # | |
| # v # | |
+---#################---+---+
| | ^ | | |
| | | 7 | | |
| | v | | |
+---+---------------+---+---+
| | ^ | | |
| | | 8 | | |
| | v | | |
+---+---------------+---+---+
1 left margin
2 xres
3 right margin
4 horizontal sync len
5 upper margin
6 yres
7 lower margin
8 vertical sync len
The area bordered with `#' is the visible display area. Horizontal and vertical frequencies can now easily be calculated, for this the sum
of horizontal or vertical values are important
htotal = left + xres + right + hslen
vtotal = upper + yres + lower + vslen
The length of one line can now be calculated with pixclock
line = pixclock * htotal
and we have the horizontal frequency
hfreq = 1E12 / line = 1E12 / (pixclock * htotal)
To get the vertical frequency vtotal must eventually adjusted. If the display is laced, vtotal must be halved or if the display is a dou-
blescan one, vtotal must be doubled. Now we can calculate the length of one frame
if (lace) vtotal /= 2
if (double) vtotal *= 2
frame = vtotal * line
and we get also the vertical frequency
vfreq = 1E12 / frame = hfreq / vtotal
SEE ALSO
fbset(8), fbdev(4)
2.1 2003-08-07 fb.modes(5)