Ask a Question related to Macromedia Contribute Connection Administrtion, Design and Development.

  1. #1

    Default help needed

    Iam runnung a school server connection and need help to
    remove the infomation that has been put on
    dixon Guest

  2. Similar Questions and Discussions

    1. Help with XML needed!!!!
      Hello, I would like to create an extention that will help to manage a glossary. First I need to decide on the structure of the xml document that...
    2. more help needed
      well in the hopes of getting some more help here goes why doesnt this query work i get a 500 internal sevrer error message and no debug info...
    3. help needed please
      I tested this page <%@ Page Language="C#" ContentType="text/html" ResponseEncoding="iso-8859-1" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01...
    4. Help Needed .....
      If someone can help me out I'll b really greatful. Question: Pls write down the benefits, objectives, technical details, implementation,...
    5. else needed?
      On if statements, I periodically don't want anything to happen if the requisite is not met. In most cases just writing the statement in the format...
  3. #2

    Default Re: Help needed

    Learner <kernel_learner@yahoo.com> wrote:
    > Subject: Help needed

    Subject needed.


    --
    Tad McClellan SGML consulting
    [email]tadmc@augustmail.com[/email] Perl programming
    Fort Worth, Texas
    Tad McClellan Guest

  4. #3

    Default Re: Help needed

    Learner <kernel_learner@yahoo.com> wrote:
    > I want to do this.
    Please put the subject of your post in the Subject header. "Help
    needed" is not very informative. "Comparing directory trees" or
    something similar would be better.
    > Traverse two directory trees
    use File::Find;
    >(similar trees) and do a diff for the
    > files in those subdirectories.
    perldoc -q "difference of two arrays"

    That's one approach, anyway.

    --
    David Wall
    David K. Wall Guest

  5. #4

    Default Re: Help needed

    [email]kernel_learner@yahoo.com[/email] (Learner) wrote in message news:<42dfbbc2.0308120647.420c2fe4@posting.google. com>...
    > I want to do this.
    >
    > Traverse two directory trees (similar trees) and do a diff for the
    > files in those subdirectories.
    > I am not able to execute ls *.C using system it does not work right.
    > What I want to do is get a list of the files in one directory. Then
    > look for that same name in the other directory and do a diff between
    > those two..but I seem to be hopelessly lost!!
    >
    > Here's a snippet of my code which works so far..but I am not able to
    > furhter it:
    >
    > ...
    > while(@SUBDIRS1)
    > {
    > $Sub = shift(@SUBDIRS2);
    > push(@Dir1,$DIRECTORY1.$Sub);
    >
    > $Sub = shift(@SUBDIRS1);
    > push(@Dir2,$DIRECTORY2.$Sub);
    > }
    >
    > #
    > # STEP 2.
    > # Now go through each directory get a list of
    > # .C .cpp .H .h files and then do diff!
    > #
    > while(@Dir2)
    > {
    > $dir2 = shift(@Dir2);
    > $dir1 = shift(@Dir1);
    > print "******\n";
    > print "$dir2 \n";
    > print "$dir1 \n";
    > print "******\n";
    >
    >
    > system("find $dir2 -name '*.C'");
    > system("find $dir1 -name '*.C' | xargs ls -l");
    >
    > system("find $dir2 -name '*.cpp' | xargs ls -l");
    > system("find $dir1 -name '*.cpp' | xargs ls -l");
    >
    > system("find $dir2 -name '*.h' | xargs ls -l");
    > system("find $dir1 -name '*.h' | xargs ls -l");
    >
    > system("find $dir2 -name '*.H' | xargs ls -l");
    > system("find $dir1 -name '*.H' | xargs ls -l");
    > }

    Here are a couple of possible solutions (neither are elegant or
    optimized, but they at least give you something on which to improve).
    To improve the efficiency of the first method, consider using a
    recursive means of grabbing file names within a given directory and
    its subdirectories (this is available within this newsgroup-search for
    "faster than File::Find," or something such as that). Also, you can
    write some very simple Perl code to compare two files, instead of
    using the UNIX diff (or perhaps a Perl module already exists that
    would save you the trouble of even having to write such code; if not,
    see the last script included in my response for an example-this script
    compares files between two directories-not subdirectories, though). I
    don't know which would be faster. I imagine a more elegant solution
    will be placed in response to your request-I look forward to seeing
    it!

    Anyway, good luck.

    JR

    ### First possible solution

    #!/perl
    use strict;
    use File::Find;
    use warnings;
    use diagnostics;

    my %th; # Temp hash to hold path+file name

    my $d1 = 'old/test2'; # Dir 1 path
    my $d2 = 'old/test3'; # Dir 2 path

    find \&findFiles, $d1; # Traverse dir 1
    my %h1 = %th; # Record dir one file names
    %th = (); # Clear temp hash
    find \&findFiles, $d2; # Traverse dir 2
    my %h2 = %th; # Record dir two file names

    sub findFiles {
    if (-f) { # Ferret out non-files
    my $tv = $File::Find::name; # Use temp var to record
    # path+file name
    $tv =~ s/^.*\/(.*)$/$1/; # Remove from temp var the
    # file name path
    $th{$tv} = $File::Find::name; # Record the name as the key,
    # and the value
    # as the path + the file name
    }
    }

    my $df = 'dFile.txt'; # Diff out file
    open F, ">$df" or die "Cannot open $df: $!";
    for (keys %h1) {
    if (exists($h2{$_})) { # File name does exist in both hashes
    my @d = `diff $h1{$_} $h2{$_}`; # Compare path+file name in UNIX
    if (@d) { # Print result, if any
    print F "Diff on $h1{$_} : $h2{$_}\n";
    print F `diff $h1{$_} $h2{$_}`;
    print F "-------------------------\n\n";
    }
    }
    }
    close F or die "Cannot close $df: $!";


    ### Second possible solution (brute-force)

    #!/perl
    use strict;
    use File::Find;
    use warnings;
    use diagnostics;

    ## Get file names from directories
    my (@compare, @tmpFileNames, $dir1, $dir2, @file1, @file2);

    $dir1 = 'old/test2';
    $dir2 = 'old/test3';

    find \&findFiles, $dir1;
    my @dir1 = @tmpFileNames;
    @tmpFileNames = ();
    find \&findFiles, $dir2;
    my @dir2 = @tmpFileNames;

    sub findFiles { push @tmpFileNames, $File::Find::name if -f; }

    ## Look for matches and compare when found
    my $diffFile = 'diffFile.txt';
    open OUTFILE, ">$diffFile" or die "Cannot open $diffFile: $!";
    for my $d1 (@dir1) {
    my $tmpD1 = $d1; # $d1 contains full path+name
    $tmpD1 =~ s/^.*\/(.*)$/$1/; # $tmpD1 contains name

    for my $d2 (@dir2) {
    my $tmpD2 = $d2; # ''
    $tmpD2 =~ s/^.*\/(.*)$/$1/; # ''

    ## A match has been found
    if ($tmpD1 eq $tmpD2) {
    my @diff = `diff $d1 $d2`;
    if (@diff) {
    print OUTFILE "Diff on $d1 : $d2\n";
    for (@diff) {
    print OUTFILE $_;
    }
    print OUTFILE "-----------------\n\n";
    }
    }
    }
    }
    close OUTFILE or die "Cannot close $diffFile: $!";

    #####
    use strict;

    ### This script compares the contents of files with matching names,
    ### but in different directories.
    ### Written: July 8, 2003

    my $directory1 = "production";
    my $directory2 = "production_2";

    my(@firstFile, @secondFile, $firstFile, $secondFile);

    ## Open primary directory
    opendir DIR1, "$directory1" or die "Cannot open first directory: $!";
    while ($firstFile = readdir(DIR1)) {
    next if (-e $firstFile); # Only process real files

    ## Check for file existence in secondary directory
    my $existsInSecondaryFile = secondDir($firstFile);

    ## If primary file name was found in the secondary directory,
    ## capture file contents of primary and secondary directory
    ## files, respectively, that matched
    if ($existsInSecondaryFile eq 'found') {

    ## Capture primary file contents
    open FILE1, "$directory1/$firstFile"
    or die "First file open failed: $!";
    @firstFile = ();
    while (<FILE1>) {
    chomp;
    next if /^\s*$/; # Skip blank rows
    s/\s+$//; # Remove any trailing spaces
    push @firstFile, $_;
    }
    close FILE1 or die "First file close failed: $!";

    ## Capture secondary file contents
    open FILE2, "$directory2/$firstFile"
    or die "Second file open failed: $!";
    @secondFile = ();
    while (<FILE2>) {
    chomp;
    next if /^\s*$/; # Skip blank rows
    s/\s+$//; # Remove any trailing spaces
    push @secondFile, $_;
    }
    close FILE2 or die "Second file close failed: $!";

    compare(\($firstFile, @firstFile, @secondFile));
    }
    }
    closedir DIR1 or die "Cannot close first directory: $!";

    ## Sub to compare primary and secondary files
    sub compare {
    my ($fileName, $fileRef1, $fileRef2) = (shift, @_, @_);

    my %seen; # Comparison hash

    $seen{$_} = 1 for @$fileRef2; # Load hash w/ contents of file 2

    ## Iterate through first file, checking for elements in file
    ## but not in comparison hash
    for (@$fileRef1) {
    if(!exists($seen{$_})) {
    print join "", "Some elements of the following row\n",
    "are in \"$$fileName\" on $directory1,\n",
    "but not \"$$fileName\" on $directory2.\n",
    "\"$_\"\n\n";
    }
    }

    %seen = (); # Empty comparison hash

    $seen{$_} = 1 for @$fileRef1; # Load hash w/ contents of file 1

    ## Iterate through second file, checking for elements in file
    ## but not in comparison hash
    for (@$fileRef2) {
    if(!exists($seen{$_})) {
    print join "", "Some elements of the following row\n",
    "are in \"$$fileName\" on $directory2,\n",
    "but not \"$$fileName\" on $directory1.\n",
    "\"$_\"\n\n";
    }
    }
    }

    ## Sub to check secondary directory for a given
    ## file from the primary directory
    sub secondDir {
    my $firstFile = shift;

    ## Search for file name in secondary directory
    opendir DIR2, "$directory2"
    or die "Cannot open second directory: $!";
    while ($secondFile = readdir(DIR2)) {
    if ($firstFile eq $secondFile) { # File was found in
    # secondary directory
    return "found";
    last;
    }
    }
    closedir DIR2 or die "Cannot close second directory: $!";
    }
    JR Guest

  6. #5

    Default Re: help needed

    2 pages are needed

    - list.php : show a list of your team names. Make them hyperlink, e.g.
    <a href="detail.php?teamnumber=5">
    - detail.php : where you show the detailed description using a

    $number=int($_GET["teamnumber"]);
    $sql="select * from yourtable where teamnumber='$number'";

    etc.

    "PUMA F1" <poster@pumaf1.com> schreef in bericht
    news:_QK2b.8548$eb7.7428@news-binary.blueyonder.co.uk...
    > hey all
    > I need some help. On my web site [url]www.pumaf1.com[/url] I have a memberse section
    > which work fine ghreat smashing.
    > On the index page I have a top ten fantasy F1 league results table which
    > grabs the result from the MYSQL database. that works great. Now what I
    want
    > to do is enable it so that a user can click on a team name , for instance
    > "intrepid grand prix" and the grab the results from the database. I cant
    > get it to work so a dummies guide would really be helpfull, if anyone can
    > do?
    >
    > thanks in advance
    >
    > p.s. please joinm y fantasy f1 league!
    >
    > dave cummings
    > [url]www.pumaf1.com[/url]
    >
    >

    zeno Guest

  7. #6

    Default help needed

    how to convert .swf files to HTML ??
    nicholase Guest

  8. #7

    Default Re: help needed

    You can't convert them. But you can put an .swf file inside a webpage, or run it straight from a server. ie.. [url]www.address.com/file.swf[/url].
    DieDieMyDarlingX Guest

  9. #8

    Default HELP NEEDED

    Hello,

    I am a new developer with asp.net secure applications. Here is my
    question.

    I am writing a web application which need to launch an application on
    the client with click of a button.(The Application exe resides on the
    client). I am been searching all over the web of how to do it? I have
    had no luck. I was able to come to a conclusion of writing a smart
    application which can download a dll from server on to the client with
    no pop ups for security and launch the client application. Can
    someone please help how to go about coding this design.

    Any help will be appreciated.

    Thanks,
    SECURITY NEWBEE Guest

  10. #9

    Default Re: HELP NEEDED

    Stop cross posting.

    --
    Regards,
    Alvin Bruney [ASP.NET MVP]
    Got tidbits? Get it here...
    [url]http://tinyurl.com/27cok[/url]
    "SECURITY NEWBEE" <amithkumarreddy@yahoo.com> wrote in message
    news:da0a7c36.0404091346.61af7eee@posting.google.c om...
    > Hello,
    >
    > I am a new developer with asp.net secure applications. Here is my
    > question.
    >
    > I am writing a web application which need to launch an application on
    > the client with click of a button.(The Application exe resides on the
    > client). I am been searching all over the web of how to do it? I have
    > had no luck. I was able to come to a conclusion of writing a smart
    > application which can download a dll from server on to the client with
    > no pop ups for security and launch the client application. Can
    > someone please help how to go about coding this design.
    >
    > Any help will be appreciated.
    >
    > Thanks,

    Alvin Bruney [MVP] Guest

  11. #10

    Default HELP NEEDED

    Hello,

    I am a new developer with asp.net secure applications. Here is my
    question.

    I am writing a web application which need to launch an application on
    the client with click of a button.(The Application exe resides on the
    client). I am been searching all over the web of how to do it? I have
    had no luck. I was able to come to a conclusion of writing a smart
    application which can download a dll from server on to the client with
    no pop ups for security and launch the client application. Can
    someone please help how to go about coding this design.

    Any help will be appreciated.

    Thanks,
    SECURITY NEWBEE Guest

  12. #11

    Default Help needed

    Hello everybody
    i m new member here on this forum. its quite nice.

    well, i just want to know something from u ppl.

    Is it possible to create file in any vdo format from director?????
    if yes then how?
    And other thing is that i want some samples of Interactive CDs. If u ppl know
    any site where i can see the samples or interfaces for Interactive CD. plz let
    me knw

    i m waiting for your replys


    zerokoool Guest

  13. #12

    Default Re: Help needed

    file > export
    Choose one of the formats (*.avi or *.mov) to export.



    Vincent is Schattig Guest

  14. #13

    Default Re: Help needed

    yeah

    thanks
    what about the interfaces of Interactive CDs??????
    zerokoool Guest

  15. #14

    Default Help needed

    Hi All,

    I am using a datagrid control. first column of the datagrid is having a
    checkbox (which used to select/deselect all the items in the grid).There is
    an asp:button in the page. I want to enable/disable this delete button, if
    the user selects none of the checkboxes then the button should be in
    disabled state. If the user selects any of the checkboxes, the button should
    get enabled.

    I thought that i could use the OnCheckChanged event of the Combobox for this
    purpose. But it is not working out. If i use the combobox out of the
    datagrid, then onCheckChanged event is working fine.

    Can anyone please suggest a solution for this problem.

    Thanks in Advance,
    Raj


    Rajeev Guest

  16. #15

    Default Re: Help needed

    yeah...

    a little javascript might get this working...

    in the html of the page.. add a script similar to:


    <script language="javascript">
    function checkClick()
    {
    if(document.all["ckLegal"].checked==true)
    {
    document.all["cmdNext"].disabled=false;
    }else
    {
    document.all["cmdNext"].disabled=true;
    }
    }
    </script>


    the names of the controls will need to be replaced... (the cmdNext and the
    ckLegal)

    on the delete button... add the keyword disabled ...eg:
    <asp:Button id="cmdNext" disabled runat="server" Text="Next"></asp:Button>


    in the code of your page... add the follwoing code to the load method...

    ckLegal.Attributes.Add("OnClick","checkClick();");

    again.. change the ckLegal to what ever your checkbox is called..


    might require some tweaking with the control names... in datagrids they seem
    to get some strage ID's... im not experienced with that... possibly another
    post will help you find that out...


    Kind Regards
    Greg Phillips
    B.Sc Hons Comp Sci
    [url]www.flock.co.za[/url]

    "Rajeev" <rajeev.parameswaren@misyshealthcare.com> wrote in message
    news:eSkJr92rEHA.3464@TK2MSFTNGP14.phx.gbl...
    > Hi All,
    >
    > I am using a datagrid control. first column of the datagrid is having a
    > checkbox (which used to select/deselect all the items in the grid).There
    > is an asp:button in the page. I want to enable/disable this delete button,
    > if the user selects none of the checkboxes then the button should be in
    > disabled state. If the user selects any of the checkboxes, the button
    > should get enabled.
    >
    > I thought that i could use the OnCheckChanged event of the Combobox for
    > this purpose. But it is not working out. If i use the combobox out of the
    > datagrid, then onCheckChanged event is working fine.
    >
    > Can anyone please suggest a solution for this problem.
    >
    > Thanks in Advance,
    > Raj
    >

    Greg Phillips Guest

  17. #16

    Default Help needed

    I can not seem to get my system to open up the paypal button link - followed the instructions, yet it still is not working.
    cheepro Guest

  18. #17

    Default Help Needed

    Hi Guys, can anyone tell mell how [url]www.redbullbwa.co.za[/url] made this flash banner??? And or where I can learn to make banners like them!! Thanks Kev
    Karlokev Guest

  19. #18

    Default help needed

    ok guys please help me from entereing the loony bin zone.
    how the heck do you get pagebreaks ina pdf output file that coincide with wher
    you put them in the html file?????
    when producing a pdf document the pages do n ot resemble anythiong like what
    should be achiebed ie page break di\oeasnt ocur at the expected point.
    pleez help anyone???
    using cf mx 7
    have also found images need to be in the images file to work
    and jpg not gif
    and included images cannot have spaces in the name.


    thanks

    noodleweb Guest

  20. #19

    Default Re: help needed

    How the heck did you get pagebreaks in your html output, bearing in mind that
    html is contiunous output to the screen?

    You proabably already know this, but you use <cfdocumentitem> to create your
    page breaks. Where you put them is a logic issue.

    The attributes of your <cfdocument> tag will determine when you reach the
    bottom of your document page.
    Originally posted by: noodleweb
    ok guys please help me from entereing the loony bin zone.
    how the heck do you get pagebreaks ina pdf output file that coincide with wher
    you put them in the html file?????
    when producing a pdf document the pages do n ot resemble anythiong like what
    should be achiebed ie page break di\oeasnt ocur at the expected point.
    pleez help anyone???
    using cf mx 7
    have also found images need to be in the images file to work
    and jpg not gif
    and included images cannot have spaces in the name.


    thanks



    Dan Bracuk Guest

  21. #20

    Default Help Needed

    Hi, I need a very big favour off anyone who is willing to help out...I need to
    create a basic flash presentation for school, but i've tried all week and i
    still cant get to grips with it, I have the content of what i'd like to put in
    on a PowerPoint presentation, if any of you guys could make a basic flash movie
    out of it i'd be really grateful! The contents is all there, and i mean basic
    as you like! Thanks..e-mail me or add me to msn on [email]andyx1@hotmail.co.uk[/email]

    Dannybwoii Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139