News:

Please note these forums are mostly a testing ground for my SMF work and I don't really use them otherwise.

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - SleePy

#76
Last login: Sun Mar  8 14:01:18 on ttys000
You have mail.
The-SleePy-Laptop:~ jeremy$ mail
mail: /var/mail/jeremy: Permission denied
The-SleePy-Laptop:~ jeremy$
#77
The test zone / Test BBC Lists
Mar 05, 2009, 05:09 AM

  • Item 1
  • Item 2
  • Item 3

    • Sub-Item 1
    • Sub-Item 2
    • Sub-Item 3
#78
The test zone / Images
Feb 21, 2009, 11:05 PM
#79
The test zone / Attachment test
Feb 20, 2009, 02:19 AM
test
#80
// Try to see if we can't find the previous version.
function upgrade_previous_version($version)
{
   // We love periods.
   $version = str_replace('-', '.', $version);

   // A Release Candidate?
   if (strpos($version, 'rc') !== false)
   {
      // A weird case?
      if (substr($version, -5) == 'rc2.2')
         $string = substr($version, 0, -2);
      // It is something like rc2-1 (rc2.1)
      elseif (substr($version, -2, 1) == '.' && substr($version, -1, 1) == 1)
         $string = substr($version, 0, -2);
      // Alright, maybe just a normal version?
      elseif (substr($version, -1, 1) > 1)
         $string = substr($version, 0, -1) . (substr($version, -1, 1) - 1);

      return strtr($string, array(
         '.rc' => ' RC'
      ));
   }
   // Maybe a Beta?
   elseif (strpos($version, 'b') !== false || strpos($version, 'beta') !== false)
   {
      // A weird case.
      if (substr($version, -5, 4) == '.fix')
         $string = substr($version, 0, -5);
      // It is something like b1.1 (b1-1)
      elseif (substr($version, -2, 1) == '.')
         $string = substr($version, 0, -2);
      // Alright, maybe just a normal version?
      elseif (substr($version, -1, 1) > 1)
         $string = substr($version, 0, -1) . (substr($version, -1, 1) - 1);

      return strtr($string, array(
         '.b' => ' Beta '
      ));
   }
   // Hopefully just a normal upgrade.
   elseif (substr($version, -2, 2) > 9)
      return substr($version, 0, -2) . (substr($version, -2, 2) - 1);
   else
      return substr($version, 0, -1) . (substr($version, -1, 1) - 1);
}
#81
// Try to see if we can't find the previous version.
function upgrade_previous_version($version)
{
   // We love periods.
   $version = str_replace('-', '.', $version);

   // A Release Canidate?
   if (strpos($version, 'rc') !== false)
   {
      // A weird case?
      if (substr($version, -5) == 'rc2.2')
         $string = substr($version, 0, -2);
      // It is something like rc2-1 (rc2.1)
      elseif (substr($version, -2, 1) == '.' && substr($version, -1, 1) == 1)
         $string = substr($version, 0, -2);
      // Alright, maybe just a normal version?
      elseif (substr($version, -1, 1) > 1)
         $string = substr($version, 0, -1) . (substr($version, -1, 1) - 1);

      return strtr($string, array(
         '.rc' => ' RC'
      ));
   }
   // Maybe a Beta?
   elseif (strpos($version, 'b') !== false || strpos($version, 'beta') !== false)
   {
      // A weird case.
      if (substr($version, -5, 4) == '.fix')
         $string = substr($version, 0, -5);
      // It is something like b1.1 (b1-1)
      elseif (substr($version, -2, 1) == '.')
         $string = substr($version, 0, -2);
      // Alright, maybe just a normal version?
      elseif (substr($version, -1, 1) > 1)
         $string = substr($version, 0, -1) . (substr($version, -1, 1) - 1);

      return strtr($string, array(
         '.b' => ' Beta '
      ));
   }
   // Hopefully just a normal upgrade.
   elseif (substr($version, -2, 2) > 9)
      return substr($version, 0, -2) . (substr($version, -2, 2) - 1);
   else
      return substr($version, 0, -1) . (substr($version, -1, 1) - 1);
}
#82
The test zone / Re: 23423432
Feb 03, 2009, 11:54 PM

#83
The test zone / Re: 23423432
Feb 03, 2009, 11:53 PM
#84
The test zone / Re: 23423432
Feb 03, 2009, 11:51 PM
A test Message

Bold
Italics
Underline
StrikeThrough

Pre Text

Left
Right
Center

courier
arial
arial black
impact
verdana
times new roman
georgia
andale mono
trebuchet ms
comic sans ms

8pt
10pt
12pt
14pt
18pt
24pt
36pt

Black
Red
Yellow
Pink
Green
Orange
Purple
Blue
Beige
Brown
Teal
Navy
Maroon
LimeGreen
White

Expand.gif
http://google.com
Go to google
noreply@domain.com
Do not email me
ftp.mozilla.org
Mozilla FTP

Glowing Text
Shadow Text
Moving Text
Super Text
Sub Text
TypeWriter Text




ATableRow
Anothercolumnhere

<?php
DoFunc
('HelloWorld');

function 
DoFunc($output)
{
   echo 
$output;
}
?>


QuoteThe quick brown fox jumped over the lazy dogs back.

  • List
  • item
  • Another


  • One
  • Two
  • Three


#85
The test zone / Re: 23423432
Feb 03, 2009, 11:51 PM
#86
The test zone / weeeee
Feb 03, 2009, 11:49 PM
#87
// Try to see if we can't find the previous version.
function upgrade_previous_version($version)
{
   // A Release Canidate?
   if (strpos($version, 'rc') !== false)
   {
      // It is something like rc2-1 (rc2.1)
      if ((substr($version, -2, 1) == '-' || substr($version, -2, 1) == '.') && substr($version, -1, 1) == 1)
         return substr($version, 0, -2);
      // Alright, maybe just a normal version?
      elseif (substr($version, -1, 1) > 1)
         return substr($version, 0, -1) . (substr($version, -1, 1) - 1);
   }
   // Maybe a Beta?
   elseif (strpos($version, 'b') !== false || strpos($version, 'beta') !== false)
   {
      // A weird case.
      if (substr($version, -5, 4) == '-fix')
         return substr($version, 0, -5);
      // It is something like b1.1 (b1-1)
      if (substr($version, -2, 1) == '-' || substr($version, -2, 1) == '.')
         return substr($version, 0, -2);
      // Alright, maybe just a normal version?
      elseif (substr($version, -1, 1) > 1)
         return substr($version, 0, -1) . (substr($version, -1, 1) - 1);
   }
   // Hopefully just a normal upgrade.
   else
      return substr($version, 0, -1) . (substr($version, -1, 1) - 1);
}
#88
On Laptop, PHP 5.3:
./configure --prefix=/home/software/php/v5 \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/share/man \
--with-mysql \
--with-apxs2=/home/software/apache/bin/apxs \
--enable-maintainer-zts \
--with-zlib-dir=/home/software/zlib \
--with-pgsql=/sw \
--enable-mbstring \
--with-gd \
--with-png-dir=/usr/local/libpng \
--enable-debug

Laptop, PHP6:
./configure --prefix=/home/software/php/v6 \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/share/man \
--with-mysql \
--with-apxs2=/home/software/apache/bin/apxs \
--enable-maintainer-zts \
--with-zlib-dir=/home/software/zlib \
--with-iconv \
--with-pgsql=/sw \
--with-sqlite \
--with-gd \
--with-png-dir=/usr/local/libpng \
--enable-debug

Laptop, PHP 5.2
./configure --prefix=/home/software/php/v52 \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/share/man \
--with-mysql \
--with-apxs2=/home/software/apache/bin/apxs \
--enable-maintainer-zts \
--with-zlib-dir=/home/software/zlib \
--enable-debug \
--with-pgsql=/sw \
--enable-mbstring

Laptop, PHP 5.3, with mysqlnd:
./configure --prefix=/home/software/php/v5 \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/share/man \
--with-mysql \
--with-apxs2=/home/software/apache/bin/apxs \
--enable-maintainer-zts \
--with-zlib-dir=/home/software/zlib \
--with-pgsql=/sw \
--enable-mbstring \
--with-gd \
--with-png-dir=/usr/local/libpng \
--with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--enable-debug


Litespeed:
--sysconfdir=/etc --localstatedir=/var --mandir=/usr/share/man --with-mysql --with-zlib-dir=/home/software/zlib --enable-debug --with-pgsql=/sw --enable-mbstring

#89
// Remove the short joins
function convert_update_short_join()
{
   global $files, $path;

   // Now we loop through all file and do a strtr fix.
   $replaces = array();
   foreach ($files as $file)
   {
      // Get the contents of the file.
      $file_contents = file_get_contents($path . '/' . $file);

      // Try to find any short joins.
      preg_match_all('~(\t)*FROM \(([^\)]+)\)~is', $file_contents, $matches);

      // Lets loop trhough all the matches.
      foreach ($matches[2] as $key => $string)
      {
         // Explode the short join.
         $temp = explode(', ', $string);

         // Start off the new string with some padding (maybe).
         $newstring = $matches[1][$key] . 'FROM ' . $temp[0];
         unset($temp[0]);

         // Now all others we will inner join.
         foreach ($temp as $str)
            $newstring .= "\n" . $matches[1][$key] . '   INNER JOIN ' . $str;

         // Now get it ready to go out.
         $replaces[$matches[0][$key]] = $newstring;
      }
   }

   // Now do updates to all files.
   DoUpdates('strtr', $replaces);
}
#90
input[type="file"]
{
       background: #2d2d2d;
       color: #353535;
}
input.file
{
       background: #2d2d2d;
       color: #353535;
}