Messages - allen [ switch to compact view ]

Pages: prev1 ... 208 209 210 211 212 [213] 214 215 216 217 218 ... 229next
1061
Living Room / Re: animal identity crisis..
« on: February 08, 2006, 07:55 AM »
By accident? Yeah right.  We all know you spend your night hours searching for "Cats in Hats"

1062
Mini-Reviews by Members / Re: I love the Bulk Rename Utility!
« on: February 08, 2006, 06:43 AM »
I'm almost positive there's at least one other . . . seems like there were a few at the freeware/shareware listing I'd found Oscar's at, but I didn't actually try them and have since forgotten where/how I found it.  Seems like Oscar's isn't the only text editor renamer, though.

1063
Mini-Reviews by Members / Re: I love the Bulk Rename Utility!
« on: February 08, 2006, 06:38 AM »
My all-time personal favorite bulk renamer is Oscar's File Renamer.  The beauty of Oscar's is that instead of the traditional set up search/replace criteria limited by the power of the program itself, Oscar lists the files in a plain text with each file/folder on its own line.  You edit it like a normal text file, when you save your changes the new file names are applied to the old (The old file names/file info are displayed in a little pane on the left in case you forget what file you're playing with)



From here, Oscar natively supports case conversions, macros (handy if you're doing the same thing over and over, line for line), basic find replace and incrementing.  Not much, right -- but here's the real beauty of it -- you can copy and paste the file list into your favorite text editor, which is no doubt more powerful, and perform all the transformations/replacements you want on the files all in the comfort of your editor of choice.  When you're done, paste it back in to Oscar, save it, and vuala.

After using Oscar, I couldn't go back to the other query based method of file renaming -- this is just too comfortable. ;)

1064
General Software Discussion / Re: Gmail Adds New Chats Feature
« on: February 08, 2006, 05:12 AM »
Does anybody here actually have the gmail integrated chat yet? I've had chat history saving since yesterday, but am not one of the lucky few to see the chat.

1065
Developer's Corner / Re: Nested Matches
« on: February 07, 2006, 03:42 PM »
For anyone interested, the problem was solved.  Here's the function that handles highlighting:

function hltr($text,$find) {
  preg_match_all($find,$text,$hlight,PREG_OFFSET_CAPTURE+PREG_SET_ORDER);
  if ( is_array($hlight) && count($hlight) > 0 ) {
    $hlight = $hlight[0];
    $n=1;
    foreach ( $hlight as $num => $match ) {
        if ( $num > 0 ) {
          while ( isset($points[$match[1]]) ) $match[1] .= '.01';
          $num = $match[1]+strlen($match[0]);
          while ( isset($points[$num]) ) $num .= '.01';
          $points[$match[1]] = "<span class=\"hlt$n\">";
          $points[$num] = '</span>';
          $n++;
        }
    }
    if ( isset($points) && is_array($points) ) {
      ksort($points);
      $count = 0;
      foreach ( $points as $num => $insert ) {
        $text = substr_replace($text,$insert,$count+$num,0);
        $count = $count + strlen($insert);
      }
    }
  }
  return('<strong class="result">'.$text.'</strong>');
}

Pages: prev1 ... 208 209 210 211 212 [213] 214 215 216 217 218 ... 229next
Go to full version