07-11-2009
To keep the forums high quality for all users, please take the time to format your posts correctly.
First of all, use Code Tags when you post any code or data samples so others can easily read your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags [code] and [/code] by hand.)
Second, avoid adding color or different fonts and font size to your posts. Selective use of color to highlight a single word or phrase can be useful at times, but using color, in general, makes the forums harder to read, especially bright colors like red.
Third, be careful when you cut-and-paste, edit any odd characters and make sure all links are working property.
Thank You.
The UNIX and Linux Forums
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi
i have a very simple problem
iam moving files from download to archive folder
but before such a transfer want to make sure no two file of same
are present in my download directory
how to check for redundant file names
i thought of using WC but it counts inside the file (lines and... (5 Replies)
Discussion started by: maverick
5 Replies
2. UNIX for Dummies Questions & Answers
I am really really new to Unix. I'm lost with so many books around for different shell. I'm thinking of taking a course on Operating Systems but it contains a lot of Unix programming I think. For example, someone was talking about a "which" command. But I wasn't able to figure out what it does...... (10 Replies)
Discussion started by: Legend986
10 Replies
3. Solaris
So I just tried what somebody here suggested and set up my backupserver with a zraid2 over 16 disks (4x4 groups)
zpool create tank raidz2 c7t0d0 c7t1d0 and so on.
zpool list showed a correct info about 5,4T in size (I did not use all disks), but when I did a df -h, it showed me only half the... (5 Replies)
Discussion started by: PatrickBaer
5 Replies
4. Shell Programming and Scripting
Hello Experts:
I appeal to you to see if you can help me with a small problem. I have a .log file where there is data in two columns (separated by a space).
The file is thus:
0.0 3
0.0 6
0.0 6
0.0 6
0.0 7
0.0 7
0.0 7
0.0 7
0.0 11
0.0 11
0.0 11
0.0 11
0.0 11
0.1 17 (6 Replies)
Discussion started by: Flamex
6 Replies
5. UNIX for Dummies Questions & Answers
My input file looks like this:
1 rs4040617 0.08356
1 rs4040617 0.06799
1 rs2977612 0.07948
1 rs2977612 0.07882
1 rs2977612 0.07783
1 rs2977612 0.08142
1 rs2977612 0.07716
1 rs2977612 0.08356
1 rs2977612 0.06799
1 rs2980300 0.08356
1 rs2980300 0.08142
I want to delete all rows that... (1 Reply)
Discussion started by: evelibertine
1 Replies
6. Shell Programming and Scripting
I want to find which pattern or strings have occurred more than one time so that I can remove unnecessary redundancy.
For example:
If I have the sentence:
A quick brown brown fox jumps jumps jumps over the lazy dog
in a file, then I want to know that
1. the word "brown" has... (7 Replies)
Discussion started by: hbar
7 Replies
7. Shell Programming and Scripting
Hi All,
We have a redundant server system and every time we need any change in any particular script then we need to do it individually in each of the server. I want to create a shell script such that if i make changes in primary server and run the script then it should update the changes to ... (0 Replies)
Discussion started by: crimemastergogo
0 Replies
8. Shell Programming and Scripting
Hi all,
I'm trying to select lines of a file and at the end do not have redundant itens:
Input
A_B
K_A
C_T
A_O
U_B
P_C
D_F
Z_G
W_U
Output
A_B
C_T
D_F
Z_G
W_U (2 Replies)
Discussion started by: valente
2 Replies
9. Solaris
I'm building a Solaris 11 OVM environment and want to configure everything to boot from our high performance SAN (no local disks). I've got everything working and the system boots nicely via an OBP configuration however I'd like to configure redundant IP interfaces within Solaris, what I'm... (4 Replies)
Discussion started by: ISCSIboot
4 Replies
10. Shell Programming and Scripting
Dear All,
I have to reduce the redundancy of a file that is like this:
a b 0
a c 0
a f 1
b a 1
b a 0
b c 1
d f 0
g h 1
f d 1
Basically, this file describe a network with relative nodes and edges.
The nodes are the different letters and the edges are represented by the numbers (in... (7 Replies)
Discussion started by: giuliangiuseppe
7 Replies
LEARN ABOUT DEBIAN
load_bitmap_font
load_bitmap_font(3alleg4) Allegro manual load_bitmap_font(3alleg4)
NAME
load_bitmap_font - Grabs a font from a bitmap file. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
FONT *load_bitmap_font(const char *filename, RGB *pal, void *param)
DESCRIPTION
Tries to grab a font from a bitmap. The bitmap can be in any format that load_bitmap understands.
The size of each character is determined by the layout of the image, which should be a rectangular grid containing all the ASCII characters
from space(32) up to the tilde(126). The way the characters are separated depends on the color depth of the image file:
paletted (8 bit) image file Use color 0 for the transparent portions of the characters and fill the spaces between each letter with color
255.
High (15/16 bit) and true (24/32 bit) color image file Use bright pink (maximum red and blue, zero green) for the transparent portions of
the characters and fill the spaces between each letter with bright yellow (maximum red and green, zero blue).
Note that in each horizontal row the bounding boxes around the characters should align and have the same height.
Probably the easiest way to get to grips with how this works is to load up the `demo.dat' file and export the TITLE_FONT into a PCX file.
Have a look at the resulting picture in your paint program: that is the format a font should be in.
Take care with high and true color fonts: Allegro will convert these to the current color depth when you load the font. If you try to use a
font on a bitmap with a different color depth Allegro will do color conversions on the fly, which will be rather slow. For optimal perfor-
mance you should set the color depth to the color depth you want to use before loading any fonts.
RETURN VALUE
Returns a pointer to the font or NULL on error. Remember that you are responsible for destroying the font when you are finished with it to
avoid memory leaks.
SEE ALSO
register_font_file_type(3alleg4), load_font(3alleg4), load_bitmap(3alleg4), set_color_depth(3alleg4), grab_font_from_bitmap(3alleg4)
Allegro version 4.4.2 load_bitmap_font(3alleg4)