User Tools

Site Tools


encoding

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
encoding [2008/08/16 21:34] rathiencoding [2008/08/21 22:16] (current) rathi
Line 1: Line 1:
-====== Directory structure with permissions TBDTBDTBDTBDTBD======+====== Directory structure with permissions ======
  
 The file permissions are the same as were there on lthcwww. \\ The file permissions are the same as were there on lthcwww. \\
-The directory %%"/var/www/demos/ensembles"%% has permission \\+The directory %%"/var/www/demos/encoding"%% has permission \\
  
 <code> <code>
-drwxrwsr-x  rathi  ipgdemos 4096 2008-08-05 13:56 ensembles +drwxrwSr-x  rathi  ipgdemos 4096 2008-08-21 23:50 encoding
 </code> </code>
 +
  
 This is the directory structure of %%"/var/www/demos/ensembles"%% \\ This is the directory structure of %%"/var/www/demos/ensembles"%% \\
Line 12: Line 13:
  
 <code> <code>
--rw-rw-r-- 1 rathi ipgdemos 12892 2008-08-15 20:16 index.php +-rwxrwxr-1 rathi ipgdemos  50141 2008-07-25 16:58 encoding 
--rw-r--r-- 1 rathi ipgdemos  5628 2008-08-11 17:56 lthc_index.php +-rwxrwxrwx 1 rathi ipgdemos    171 2008-08-14 22:35 encodingparameters 
--rwxrwx--- 1 rathi ipgdemos 82987 2008-08-12 00:48 makegraph +-rwxrwxrwx 1 rathi ipgdemos 250262 2008-08-17 20:08 hmatrix.pbm 
--rwxrwx--- 1 rathi ipgdemos 13697 2008-08-12 02:12 plotgraph +-rw-rw-r-- 1 rathi ipgdemos  12226 2008-08-15 19:55 index.php 
-drwxrwsr-x 2 rathi ipgdemos  4096 2008-08-15 18:44 programs +-rw-rw-r-- 1 rathi ipgdemos   4893 2008-08-14 13:40 lthc_index.php
-drwxrwsr-x 2 rathi ipgdemos  4096 2004-02-23 00:22 psfiles+
 </code> </code>
 The file %%"lthc_index.php"%% has the old lthc way of giving inputs. The file %%"lthc_index.php"%% has the old lthc way of giving inputs.
  
-The directory %%"/var/www/demos/ensembles/programs"%% contains the C source code. \\ 
-The file permissions for files inside directories  %%"programs"%% are same as \\ 
-that on lthcwww and are given by 
-<code> 
-[rathi@iscsrv32 ensembles]$ ls -l programs/ 
-total 224 
--rw-rw-r-- 1 rathi ipgdemos   182 2004-02-21 16:08 channel.h 
--rw-rw-r-- 1 rathi ipgdemos  1103 2004-02-21 16:08 decode.h 
--rw-rw-r-- 1 rathi ipgdemos 28026 2004-02-21 16:06 encode.c 
--rw-rw-r-- 1 rathi ipgdemos   891 2004-02-21 16:06 encode.h 
--rw-rw-r-- 1 rathi ipgdemos 48240 2004-02-21 16:06 graph.c 
--rw-rw-r-- 1 rathi ipgdemos  3678 2004-02-21 16:06 graph.h 
--rw-rw-r-- 1 rathi ipgdemos   238 2004-02-21 16:07 Makefile 
--rwxrwxr-x 1 rathi ipgdemos 82987 2008-08-12 01:05 makegraph 
--rw-rw-r-- 1 rathi ipgdemos  2533 2008-08-12 01:05 makegraph.c 
--rwxrwxr-x 1 rathi ipgdemos 13697 2008-08-12 02:07 plotgraph 
--rw-rw-r-- 1 rathi ipgdemos  3500 2008-08-12 02:07 plotgraph.c 
--rw-rw-r-- 1 rathi ipgdemos   221 2004-02-21 16:08 sim.h 
--rw-rw-r-- 1 rathi ipgdemos  4166 2004-02-21 16:06 sub.c 
--rw-rw-r-- 1 rathi ipgdemos   471 2004-02-21 16:06 sub.h 
--rw-r--r-- 1 rathi ipgdemos     0 2008-08-15 18:44 wc 
-</code> 
- 
-The directory %%"/var/www/demos/ensembles/psfiles"%% contanins the \\ 
-required files to generate the ps file. The permission for the directory \\ 
-%%"psfiles"%% in the ensembles are the same as that on lthcwww and are \\ 
-given by 
-<code> 
-[rathi@iscsrv32 ensembles]$ ls -l psfiles/ 
-total 12 
--rw-rw-r-- 1 rathi ipgdemos  235 2004-02-20 17:30 plotheader.ps 
--rw-rw-r-- 1 rathi ipgdemos 1938 2004-02-20 17:30 plotmidsection.ps 
--rw-rw-r-- 1 rathi ipgdemos   24 2004-02-20 17:30 plottrailer.ps 
-</code> 
  
  
Line 60: Line 26:
 ====== Important lines in index.php ====== ====== Important lines in index.php ======
  
-Line 33 to 400: The code is about checking the validity of the polynomials.\\ +Line 46 to 396: The code is about checking the validity of the polynomials.\\ 
-Line 571 to 584: parameters are written.\\ +Line 554 to 573: parameters are written if there is an input from the user.\\ 
-Line 585 to 593System commands to generate, plot in ps and convert to gif.\\ +Line 574Execution of the command to generate the image. \\ 
-Line 622Rate computation using the file %%"/var/www/demos/files/ensembles/tempa"%%.\\ +Line 580pbm to gif generated.\\ 
-Line 648The graph file residing in %%"/var/www/demos/files/ensembles/"%% displayed \\ +Line 594gif is displayed.\\ 
-in the text format. + 
  
  
 ====== Location of files related to execution and writing ====== ====== Location of files related to execution and writing ======
  
-The directory %%"/var/www/demos/files/ensembles"%% contains files for a \\ +The directory %%"/var/www/demos/files/encoding"%% has permission 
-session. There are four files for a seesion and there names are suffixed \\ +<code> 
-by session id's. +drwxrwsrwx 2 apache ipgdemos 20480 2008-08-17 18:06 encoding 
-  * **param** contains the parameter of the ensembles. +</code> 
-  * **graph** contains the graph connections. +Inside the directory %%"/var/www/demos/files/encoding"%% there are  
-  * **tempa** data for rate computation. +two files for a seesion.\\ 
-  * **tempb** graph connections to generate the ps file of the graph. +  * **param** contains the parameter of the ensembles and suffixed by session id.\\ 
-All these four files have permissions: %%"-rw-r--r--"%%. The %%".gif"%% and \\ +  * **gif file** It is the gif image of the triangulated matrix and its name is \\ 
-%%.ps%% are given names which are same as the session idsThey reside in \\ +based on the session idAll these files have permissions%%"-rw-r--r--"%%. 
-%%"/var/www/demos/files/ensembles/images"%% with permissions %%"-rw-r--r--"%%.+
  
  
  
  
-=====Important Remark===== 
  
-There should be a %%"crone"%% job deleting the files in %%"/var/www/demos/files/ensembles"%%.\\ +=====Important Remark=====
-The file names start with %%"graph, param, tempa, tempb"%%. There are four files without \\ +
-the session d suffix which should not be deleted. These should be there just for the sake \\ +
-of reference. Similarly, the files in %%"/var/www/demos/files/ensembles/images"%% should be \\ +
-deleted.+
  
 +There should be a %%"crone"%% job deleting the files in %%"/var/www/demos/files/encoding"%%.\\
 +Right now the %%".pbm"%% file, which is the output for the triangulated matrix, is generated \\
 +in the directory %%"/var/www/demos/encoding"%%. Its naming is not based on session id. I do not \\
 +'know if it is very crucial, but will be better to name it also according to the session id.\\
 +Then we give give both the matrix and triangulated matrix to the user as a text file. \\
 +There are some **777** permissions which should be taken care of. These are there on lthcwww as well, \\
 +so I did not try to change them.
  
  
encoding.1218922492.txt.gz · Last modified: 2008/08/16 21:34 by rathi