Tag: notes

Online Service Essentials

Posted on September 17, 2005 in Websites by Jeff Starr

Essential Online Services for Website Developers:

Speed Tests

Network Tools

Optimization Tools

Blog Related

Proxy Surfing

Online Validators

PHP Notes Plus

Posted on September 7, 2005 in Function by Jeff Starr

Welcome to "PHP Notes Plus" — an online repository of basic PHP expressions and statements..

Common Statements:

"\n" = new line
"\t" = tab
"\r" = carriage return
"\$" = dollar sign
"\"" = double quote

Example usage:

"\n\t<category>$category->cat_name</category>"
echo '<!-- Category LiveBookmarks Plugin by Monzilla Media ( monzilla.biz ) -->' . "\n";
echo "\n\t<!-- Pink Floyd " . " Meddle -->\n\n";

echo Multiple Lines of Code

echo <<<END
   ... line of code ...
   ... line of code ...
   ... line of code ...
END;

Example usage (this plugin code effectively inserts the given CSS rule into the head region of WP Admin documents):

<?php 
   function hide_post_preview() {
      echo <<<END
         <style type="text/css">
            #preview {
               display: none;
            }
         </style>
      END;
   }
   add_action('admin_head', 'hide_post_preview');
?>

Determine System Path:

After preparing a .php file with the following line of code, upload it to the target directory and open with your favorite browser:

<?php echo dirname(__FILE__); ?>

Access PHP System Information:

After preparing a .php file with the following line of code, upload it to the target directory and open with your favorite browser:

<?php phpinfo() ?>

Determine Absolute Path

An absolute path, or full path, refers to the static location of a resource as it exists relative to the root directory within a computer’s file system. A directory’s absolute path is universal and is independent of any relative working directory, dynamic variables, or combined paths. An absolute path includes the root directory and "descending series of subdirectories leading to the end file" 1

Here is a mighty handy PHP script that provides a simple method of determing the absolute path of a directory. Simply save this script as a file called "absolutepath.php" and upload it to the location for which you wish to determine the absolute (server) path.

The absolute path will appear when you point your browser to the location of the file, absolutepath.php. To determine the absolute path of a different directory, simply move the absolutepath.php file to that directory and go to that location with your browser.

<?php echo $_SERVER['DOCUMENT_ROOT']; ?>

References

Zone Three

Posted on March 21, 2005 in Nothing, Textual by Jeff Starr

location : zone 3 (3/9) : grid 6 (6/9) : sectors 1-9 (9/9) : (moses lake, washington)
date : 5 (5/90 days) / 3 (3/4 quarters) / 0003 (year) : (monday, july 4th, 2050)

*PUBLIC TIMES NEWSOURCE
*WORLDFIRST / FDISK MEDIA
*worldfirstnews.com/public/
*
*ZONE: 3 / GRID: 6 / SECTORS: 1-9 -- (3:6:1-9)
*DATE: 05 / 03 / 0011
*RATE: 70.00 CREDITS -- (70.cr)
*ITEM: MNP(V) - 365.303012

*Augustus Klotz / GEN. # 365 - 880.898.553
*||||||||||||:::||:::||::|:|||||:|:|||||||||
*

UW Biochemistry Nonsense

Posted on April 11, 2002 in Textual, Timeline by Jeff Starr

Good times..

MF

GCTTTTATTTCCAGCTTGCAACAAAGACATTTATGTGGACCTAGACATGAAGGGCATAAACTATAACAGC [ continued ] 
TCAGTTGCCAAGAGTGCTCAATAATGCCAAGAAAGATGCACGGATGATGTCCACTGCCACTTTTTCACGTA

MR

GCTCGAATTCTTTCATCGACCACTCGAATGTCCTGGGACTCACTCACCGATGCTCCAGGCTGGGAAACTGC [ continued ] 
CTTGTGGCGTACGTGAAAAAGTGGCAGTGGACATCATCCGTGCATCTTTCTTGGCATTATTGAGCACTCTTGGCAACTGAGC


>gi|180342|gb|M18299.1|HUMCFXI06 Human coagulation factor XI gene, exon 5, clone pTZ18R
          Length = 515

                                                                       
Query: 1   gcttttatttccagcttgcaacaaagacatttatgtggacctagacatgaagggcataaa 60
           ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Sbjct: 34  gcttttatttccagcttgcaacaaagacatttatgtggacctagacatgaagggcataaa 93
					       
                                                                       
Query: 61  ctataacagctcagttgccaagagtgctcaataatgccaagaaagatgcacggatgatgt 120
           ||||||||||||||||||||||||||||||| ||||||||||||||||||||||||| ||
Sbjct: 94  ctataacagctcagttgccaagagtgctcaagaatgccaagaaagatgcacggatgacgt 153

                                
Query: 121 ccactgccactttttcacgta 141 	
           |||||||||||||||||||||     	
Sbjct: 154 ccactgccactttttcacgta 174	  
					   

>gi|180342|gb|M18299.1|HUMCFXI06 Human coagulation factor XI gene, exon 5, clone pTZ18R
          Length = 515
                                                                       
Query: 11  tttcatcgaccactcgaatgtcctgggactcactcaccgatgctccaggctgggaaactg 70
           ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Sbjct: 244 tttcatcgaccactcgaatgtcctgggactcactcaccgatgctccaggctgggaaactg 185
           |                      |
       244 tttcatcgaccactcgaatgtcct 221
                                                                       
Query: 71  ccttgtggcgtacgtgaaaaagtggcagtggacatcatccgtgcatctttcttggcatta 130
           ||||||||||||||||||||||||||||||||| ||||||||||||||||||||||||| 
Sbjct: 184 ccttgtggcgtacgtgaaaaagtggcagtggacgtcatccgtgcatctttcttggcattc 125

                                  
Query: 131 ttgagcactcttggcaactgagc 153  244 tttcatcgaccactcgaatgtcct 221
           |||||||||||||||||||||||
Sbjct: 124 ttgagcactcttggcaactgagc 102




                     /translation="MIFLYQVVHFILFTSVSGECVTQLLKDTCFEGGDITTVFTPSAK
                     YCQVVCTYHPRCLLFTFTAESPSEDPTRWFTCVLKDSVTETLPRVNRTAAISGYSFKQ
                     CSHQISACNKDIYVDLDMKGINYNSSVAKSAQECQERCTDDVHCHFFTYATRQFPSLE
                     HRNICLLKHTQTGTPTRITKLDKVVSGFSLKSCALSNLACIRDIFPNTVFADSNIDSV
                     MAPDAFVSGRICTHHPGCLFFTFFSQEWPKESQRNLCLLKTSESGLPSTRIKKSKALS
                     GFSLQSCRHSIPVFCHSSFYHDTDFLGEELDIVAAKSHEACQKLCTNAVRCQFFTYTP
                     AQASCNEGKGKCYLKLSSNGSPTKILHGRGGISGYTLRLCKMDNECTTKIKPRIVGGT
                     ASVRGEWPWQVTLHTTSPTQRHLCGGSIIGNQWILTAAHCFYGVESPKILRVYSGILN
                     QSEIKEDTSFFGVQEIIIHDQYKMAESGYDIALLKLETTVNYTDSQRPICLPSKGDRN
                     VIYTDCWVTGWGYRKLRDKIQNTLQKAKIPLVTNEECQKRYRGHKITHKMICAGYREG
                     GKDACKGDSGGPLSCKHNEVWHLVGITSWGEGCAQRERPGVYTNVVEYVDWILEKTQA
                     V"
BASE COUNT      161 a    106 c     96 g    152 t
ORIGIN      About 1 kb after segment 5.
        1 gcccctagaa tctggaaggt actcatgtct tctgctttta tttccagctt gcaacaaaga
       61 catttatgtg gacctagaca tgaagggcat aaactataac agctcagttg ccaagagtgc
      121 tcaagaatgc caagaaagat gcacggatga cgtccactgc cactttttca cgtacgccac
      181 aaggcagttt cccagcctgg agcatcggtg agtgagtccc aggacattcg agtggtcgat
      241 gaaa*aacaga atcgtgattt actaaaaagc ttttgccatc aactttatgc cagaatttat
      301 tttgaacccc taaaagacat ttctataaaa gtactcctag ttttcttcat gaaaaataca
      361 cttaaagcct aatttggatg catttcattt atggtaagga gtctatcttt taataacact
      421 gtcagaaaaa tatatatact tggctaattt caaaagcgct acacttttaa attggcactt
      481 ttgaaacagc tgcaattggt atgattgtca gtgcc


5A PCR Primer 5'--GCCCCTAGAATCTGGAAGGTACTC--3'

5B PCR Primer 5'--TTTCATCGACCACTCGAATGTCCT--3'

>gi|180342|gb|M18299.1|HUMCFXI06 Human coagulation factor XI gene, exon 5, clone pTZ18R
          Length = 515

 Score = 48.1 bits (24), Expect = 1e-04
 Identities = 24/24 (100%)
 Strand = Plus / Plus

                                  
Query: 1  gcccctagaatctggaaggtactc 24
          ||||||||||||||||||||||||
Sbjct: 1  gcccctagaatctggaaggtactc 24


>gi|180342|gb|M18299.1|HUMCFXI06 Human coagulation factor XI gene, exon 5, clone pTZ18R
          Length = 515

 Score = 48.1 bits (24), Expect = 1e-04
 Identities = 24/24 (100%)
 Strand = Plus / Minus

                                   
Query: 1   tttcatcgaccactcgaatgtcct 24
           ||||||||||||||||||||||||
Sbjct: 244 tttcatcgaccactcgaatgtcct 221