chattr – change file attributes on a Linux file system

A UNIX Command

$lsattr test.ogg
------------------- test.ogg
$chattr +u test.ogg
$lsattr test.ogg
-u----------------- test.ogg
$chattr -u test.ogg
$lsattr test.ogg
------------------- test.ogg
$chattr =u test.ogg
$lsattr test.ogg
-u----------------- test.ogg
$chattr +i  test.ogg
chattr: Operation not permitted while setting flags on test.ogg
$sudo chattr +i  test.ogg
[sudo] password for jeffrin:
$lsattr test.ogg
-u--i-------------- test.ogg
$rm test.ogg
rm: remove write-protected regular file `test.ogg'? y
rm: cannot remove `test.ogg': Operation not permitted
$

UNIX Explanation

change file attributes on a Linux file system
The  letters  `acdeijstuADST' select  the  new  attributes for  the
files: append only (a), compressed  (c), no dump (d), extent format
(e), immutable  (i), data journalling (j), secure  deletion (s), no
tail-merging   (t),  undeletable   (u),  no   atime   updates  (A),
synchronous directory  updates (D),  synchro nous updates  (S), and
top of directory hierarchy (T).


bubble sort testing… 0.00003 Ver — 500 No.’s related

$time php bubble.php

real	0m0.366s
user	0m0.212s
sys	0m0.032s
$time php bubble.php

real	0m0.231s
user	0m0.188s
sys	0m0.020s
$time php bubble.php

real	0m0.191s
user	0m0.132s
sys	0m0.040s
$time php bubble.php

real	0m0.192s
user	0m0.148s
sys	0m0.028s
$time php bubble.php

real	0m0.190s
user	0m0.140s
sys	0m0.032s
$time php bubble.php

real	0m0.191s
user	0m0.144s
sys	0m0.028s
$time php bubble.php

real	0m0.189s
user	0m0.132s
sys	0m0.044s
$

bubble sort testing… 0.00002 Ver — 250 No.'s related

$time php bubble.php

real	0m0.318s
user	0m0.068s
sys	0m0.040s
$time php bubble.php

real	0m0.171s
user	0m0.092s
sys	0m0.032s
$time php bubble.php

real	0m0.169s
user	0m0.084s
sys	0m0.036s
$time php bubble.php

real	0m0.153s
user	0m0.072s
sys	0m0.036s
$time php bubble.php

real	0m0.154s
user	0m0.080s
sys	0m0.032s
$time php bubble.php

real	0m0.145s
user	0m0.080s
sys	0m0.024s
$time php bubble.php

real	0m0.182s
user	0m0.076s
sys	0m0.056s
$

fonttosfnt – Wrap a bitmap font in a sfnt (TrueType) wrapper

UNIX Command

$pwd
/usr/share/fonts/X11/75dpi
$fonttosfnt -o helvO12.ttf helvO12-ISO8859-1.pcf
Couldn't select character map: 6.
$ls helvO12
helvO12-ISO8859-1.pcf  helvO12.pcf.gz
$gunzip helvO12.pcf.gz
$fonttosfnt -o helvO12.ttf helvO12.pcf
$ls helvO12.ttf
helvO12.ttf
$file  helvO12.ttf
helvO12.ttf: TrueType font data
$

UNIX Explanation

 Wrap a bitmap font or a set of bitmap fonts in a sfnt (TrueType or
 OpenType) wrapper.

Bitmap . computer graphics

Bitmap

Explanation

In  computer graphics,  a  bitmap or  pixmap  is a  type of  memory
organization or image file format used to store digital images. The
term  bitmap  comes  from  the  computer  programming  terminology,
meaning just a map of bits,  a spatially mapped array of bits. Now,
along with pixmap,  it commonly refers to the  similar concept of a
spatially mapped array  of pixels. Raster images in  general may be
referred   to  as   bitmaps  or   pixmaps,  whether   synthetic  or
photographic, in  files or memory.   In certain contexts,  the term
bitmap implies one  bit per pixel, while pixmap  is used for images
with multiple bits per pixel.[1][2]

Many  graphical  user  interfaces  use bitmaps  in  their  built-in
graphics subsystems;[3] for example, the Microsoft Windows and OS/2
platforms'  GDI subsystem, where  the specific  format used  is the
Windows and  OS/2 bitmap file  format, usually named with  the file
extension of .BMP (or  .DIB for device-independent bitmap). Besides
BMP,  other  file  formats   that  store  literal  bitmaps  include
InterLeaved Bitmap  (ILBM), Portable Bitmap (PBM),  X Bitmap (XBM),
and  Wireless Application Protocol  Bitmap (WBMP).  Similarly, most
other image  file formats, such as  JPEG, TIFF, PNG,  and GIF, also
store bitmap images  (as opposed to vector graphics),  but they are
not  usually referred  to  as bitmaps,  since  they use  compressed
formats internally.

source: http://en.wikipedia.org/wiki/Bitmap