User Profile

Collapse

Profile Sidebar

Collapse
anklos
anklos
Last Activity: May 23 '09, 01:55 PM
Joined: Sep 9 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • anklos
    replied to C# SSL certificate
    in .NET
    Some more details on the question:
    The exception also says my certificate is not associated with a private key, but I use "-pe" in my certificate generation command:
    Code:
    makecert -r -pe -n "CN=DS" -b 01/01/2008 -e 01/01/2010 -sr localMachine DSKey.cer
    , it still doesn't work
    See more | Go to post

    Leave a comment:


  • anklos
    started a topic C# SSL certificate
    in .NET

    C# SSL certificate

    Hi all,

    I am trying to establish a ssl socket using C#. I am fresh on this area and just trying to run the sample code on the msdn: http://msdn.microsoft.com/en-us/libr...sslstream.aspx.

    First, i create my certificate, i got MyKey.cer, MyKey.pvk, MyKey.pfx, I use MyKey.cer to run the server in commond like:
    Code:
    sslserver.exe MyKey.cer
    , server runs successfully. Then I run the client like
    Code:
    sslclient.exe
    ...
    See more | Go to post

  • anklos
    replied to additional lib
    in Perl
    Yep, I run the program well on my computer (XP platform), and now I need to transplant it to run well on unix....
    See more | Go to post

    Leave a comment:


  • anklos
    started a topic additional lib
    in Perl

    additional lib

    Hey, I need to use a additional lib on unix sever, I download the lib files in my home directory "./lib". I tried several ways to use it, but all failed for the same prompt
    Code:
    Can't locate Digest/SHA1.pm in @INC(@INC contains: ./lib /usr/perl5/5.6.1/lib/i86pc-solaris-64int /usr/perl5/5.6.1/lib /usr/perl5/site_perl/5.6.1/i86pc-solaris-64int /usr/perl5/site_perl/5.6.1 /usr/perl5/site_perl /usr/perl5/vendor_perl/5.6.1/i86pc-solaris-64int
    ...
    See more | Go to post

  • anklos
    replied to out of memory in Perl Builder
    in Perl
    I see your point, you are right! Thank you very much!!...
    See more | Go to post

    Leave a comment:


  • anklos
    replied to out of memory in Perl Builder
    in Perl
    I find a problem in my program.

    Code:
    if($file=~/<title>(.+?)<\/title>/)
    I thinks this sentence shoud pick the content between the tag <title></title>,
    not containing the tag itself. But I test my program and I find the tag is contained in my first split word. For example, <title>perl bulider</title>, the first word is "<title>per l" not "perl&...
    See more | Go to post

    Leave a comment:


  • anklos
    replied to out of memory in Perl Builder
    in Perl
    Since there is no WordNet 3.0 for windows, I download the WordNet 2.1 and change its name to WordNet 3.0... As I said, there was no problem to convert one word to its semming word.
    See more | Go to post

    Leave a comment:


  • anklos
    replied to out of memory in Perl Builder
    in Perl
    It has no problem when I just convert one word to its stemming words, but when I try to stemming a number of words from a file, the "out of memory" occurs. I think its probably because the wordnet's database 2. I dont know much about how the database works, hope anyone can give me more suggestion.

    PS: You guys are friendly and funny, thank you!...
    See more | Go to post

    Leave a comment:


  • anklos
    started a topic out of memory in Perl Builder
    in Perl

    out of memory in Perl Builder

    Hi, I am writing a word stemming program, the program reads from a *.trec file to get query words in <title></title> tag, then stems the query words and output the result to another *.trec file. But perl builder promts "out of memory":
    Code:
    use stem;
    use WordNet::QueryData;
    
    $wn = WordNet::QueryData->new;
    $stemmer = stem->new($wn);
    
    
    my $topic= "D:\\Program
    ...
    See more | Go to post

  • anklos
    replied to lib path perl builder on XP
    in Perl
    Thank you two! I met another memory problem, oops. I will post it in another new thread.
    See more | Go to post

    Leave a comment:


  • anklos
    started a topic lib path perl builder on XP
    in Perl

    lib path perl builder on XP

    Hi, erveryone.

    The default lib path on my perl builder is "c:/perl/lib". Recently, I install the WordNet-Similarity-2.05 and run the makefile in it, then run the following command:
    Code:
    make
    make test
    make install
    console promts "no such command", so how to let my XP know the command "make"?

    Since I just used simple *.pm file in the lib, there...
    See more | Go to post

  • anklos
    replied to Bad file descriptor
    in Perl
    I'm sorry for inattention.

    Thank you, Kevin....
    See more | Go to post

    Leave a comment:


  • anklos
    started a topic Bad file descriptor
    in Perl

    Bad file descriptor

    Hi, everyone

    I met a "Bad file descriptor" problem, and I test my var, it is right in the proceeding. I dont know why, any suggestion is helpful

    [
    Code:
    $dir = "d:/1";
    #print "Text files in $dir are:\n";
    opendir(HANDLE, $dir) or die "Can't open $dir: $!";
    while( defined ($file = readdir HANDLE) ) 
    {
    	next if $file =~ /^\./;
    	
    	$dir2=$dir."/".$file;
    ...
    See more | Go to post

  • Thanks for your help!...
    See more | Go to post

    Leave a comment:


  • anklos
    replied to How to export a new java version path in perl?
    in Perl
    I see! Thank you !
    Is that also the same reason that I cant export java version? Because the command is for shell, not for perl script?...
    See more | Go to post

    Leave a comment:


  • anklos
    replied to How to export a new java version path in perl?
    in Perl
    No, they dont work. I also have another question, if my current directory is /mount/autofs/home_mbc/sniu, and I run code like this:

    Code:
    system 'cd myperl';
    it will repoonse and print out "/mount/autofs/home_mbc/sniu/myperl", but the directory wont change to /mount/autofs/home_mbc/sniu/myperl, it is still /mount/autofs/home_mbc/sniu...
    See more | Go to post

    Leave a comment:


  • anklos
    replied to How to export a new java version path in perl?
    in Perl
    Thanks for your reply, but both of your methods dont work. I know $PATH is a perl env var, and I use quotes ' ', if using quotes " ", I have to write code like \$PATH...
    See more | Go to post

    Leave a comment:


  • anklos
    started a topic How to export a new java version path in perl?
    in Perl

    How to export a new java version path in perl?

    Hi, everyone~

    I met a problem: the defualt java version on the unix sever is 1.4, but I'd like to export the 1.6 version on the sever (the 1.6 java exists on the sever)

    I wrote the code like this in perl:
    Code:
    system 'export PATH=/usr/java1.6/bin:$PATH';
    It works when I just command "export PATH=/usr/java1.6/bin:$PATH" on the shell, but when I run the code I wrote, the sever reposed me: ...
    See more | Go to post

  • anklos
    replied to How to print out this kind of hash array?
    in Perl
    What's more, use "if exists" to know whether this $array[$i] have the $array[$i]{$termlist[$j]}, for each array[$i] maps to different terms. Hope this could be helpful other newbies:)...
    See more | Go to post

    Leave a comment:


  • anklos
    replied to How to print out this kind of hash array?
    in Perl
    Thanks for your answer. But in my program, I can't directly write the value of $term(which means I can't use code like {aa=>1,bb=>3), because I have thousands of words). I solved this problem by defining another @termlist, and store all the $term into it, so i can use $array[$i]{$termlist[$j]} to get what I need.

    Your answer is new to me, probably helpful for me in the future. Thank you, KevinADC~...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...