Advertisement
Advertisement
| 02.28.2008 at 06:23AM PST, ID: 23200283 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
| Microsoft |
| Apple |
| Internet |
| Gamers |
| Digital Living |
| Virus & Spyware |
| Hardware |
| Software |
| ITPro |
| Developer |
| Storage |
| OS |
| Database |
| Security |
| Programming |
| Web Development |
| Networking |
| Other |
| Community Support |
| 02.28.2008 at 07:22AM PST, ID: 21004549 |
| 02.28.2008 at 07:48AM PST, ID: 21004868 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: |
#!/usr/bin/perl -w
use strict;
use XML::Parser;
# Thanks Adam314 and Adam314!
binmode(STDOUT, ":bytes");
print "\n\nBegin...\n\n";
##### Create parser, and set handlers
my $parser = new XML::Parser(ErrorContext => 2, Style => 'Stream' );
$parser->setHandlers(
End => \&handle_end,
Start=>\&handle_start,
Char=>\&handle_char,
);
##### Open files and parse
open(OUT, ">/disk1/stuff/dump.txt") or die "output: $!\n";
open(IN, "<content.rdf.txt") or die "input: $!\n";
binmode(OUT, ":bytes");
$parser->parse(*IN);
close(IN);
close(OUT);
##### Variables needed by subroutines below
my $inExternalPage = 0;
my $Url;
my %data;
my $datakey;
sub handle_char
{
return unless defined($datakey);
$data{$datakey} .= $_[1];
}
sub handle_start {
if($_[1] eq "ExternalPage") {
$inExternalPage = 1;
$Url = $_[3];
}
elsif( ($inExternalPage) and !defined($datakey) ){
$datakey = $_[1];
}
}
sub handle_end {
if($_[1] eq 'ExternalPage') {
$inExternalPage = 0;
print OUT "$Url|\t$data{'d:Title'}|\t$data{'d:Description'}|\t$data{topic}\n";
}
$datakey = undef;
}
print "\n\nDone\n\n";
|
| 02.28.2008 at 07:51AM PST, ID: 21004902 |
| 02.28.2008 at 09:08AM PST, ID: 21005839 |
1: 2: 3: 4: 5: 6: 7: 8: 9: |
sub handle_end {
if($_[1] eq 'ExternalPage') {
$inExternalPage = 0;
print "\r$Url";
print OUT "$Url|\t$data{'d:Title'}|\t$data{'d:Description'}|\t$data{topic}\n";
%data = ();
}
$datakey = undef;
}
|
| 02.28.2008 at 03:24PM PST, ID: 21009313 |
| 02.29.2008 at 07:55AM PST, ID: 21014358 |
| 02.29.2008 at 09:10AM PST, ID: 21015258 |