Jump to content
Muxe Inc Forums

dandv

Members
  • Content count

    368
  • Joined

  • Last visited

Posts posted by dandv


  1. In Perl, one can have embedded documentation (called "POD") as comments between various comment start tags and one comment end tag: =cut:

     

    =head1 NAME
    
    This is the name of the module
    
    =cut
    
    ... some heading code here ...
    
    =head2 FUNCTIONS
    
    The module offers the following functions: ...
    
    =cut
    
    ...function code...

     

    As seen above, both =head1...=cut and =head2...=cut are comments. The problem is that trying to define both in NDN.HGL doesn't work:

     

    Comment =head1 =cut
    ;  the declaration below doesn't work; apparently "=cut" never gets parsed again
    Comment =head2 =cut

     

    The second comment declaration won't highlight any comments.

     

    Is this a bug? Can it be done in a different way?


  2. Hi again, I tryed NDN on Ubuntu (9.04) directly and reveal strange thing:

     

    Arrows don't work at all! :(

     

    Enter works, mouse works(!) but arrows are not.

    Why this happens and how to resolve it?

     

    The cause is probably the terminal setting. Try setting it in your terminal emulator to 'Xterm' or 'Linux' and see which works better. Does pressing the arrows output some sequence of odd characters like "~18;]" ?


  3. Imagine you have a directory ROOT, with two subdirectories, OLD, and NEW. In each of those there are many other directories and files:

     

    ROOT
    +-OLD
      +-...
      +- interesting_file.txt
      +-...
    +-NEW
      +-...
      +- interesting_file.txt
      +-...

     

    If you do a Find in ROOT for *.txt, you'll find files from both the OLD and the NEW directory. Is there a way to unselect, in the Find panel, the files from the OLD directory? I tried to unselect *\OLD\* but that didn't do anything.

     

    It appears that in Find panels, the Select/Unselect operations don't apply to the path. Is there a way to make them process the path as well?


  4. I access NDN/Linux from Windows XP via smal program called Putty. It works, but lots of keys don't work.

     

    Lots of keys and key combinations just don't work through terminal emulators, in any application. Try for comparison Midnight Commander and launch it through ZOC or XShell.

     

    ZOC can remap the keyboard completely, which may help.


  5. Save the following as a CSS file:

    h1 {
        border: thin;
        border-style: thin;
        padding: 10px;
        padding-top: 10px;
    }

     

    Edit that CSS file with NDN 2.31.2699 (the bug is there in the older versions too). Notice that "padding" and "border" are not highlighted, although these two keywords are listed in the "FILES *.CSS" section of NDN.HGL.

     

    Here is the smallest HGL that I found to reproduce the problem:

    FILES *.CSS
       GeneralFlags 0
       Keywords1 padding-top,padding-bottom,padding
       Keywords2 thin,red
       Keywords3 border-style,border
    END

     

    If you remove "padding-bottom" and edit the CSS file again, then "padding" will be highlighted. Even more weird, if you remove "red", "border" will be highlighted.


  6. I've noticed this since years ago, but it has never bothered me too much, until now, when I'm moving a few hundred gigabytes around:

     

    On Windows XP, moving a few hundred files and directories with NDN on the same disk is very slow. Windows Explorer moves the same files in 1-2 seconds.

     

    I've tried moving, say, 800 4Mb JPG files from one folder into another folder on the same drive, with the "OS-dependent disk access" option both checked and unchecked. In both cases, NDN appeared to move each file individually and do some extra checks, while Windows moved all the files at once, instantly.

     

    The "Verify disk writes" and "Copy description" options were unchecked in the move dialog.

     

    Is there a way to speed up moving files on the same disk, when the moving only involves updating an entry in the FAT or NTFS, and no actual copying of the file contents?

     

    Thanks,

    Dan


  7. Paste the code below in a .JS file (using the default NDN.HGL entry for .JS that ships with NDN):

     

    a = "\\";
    this_is_not_a_string = 2;
    b = "/*";
    text here and below is highlighted as comment

     

    I think the error starts from the double backslash, so that the /* believes it's NOT in a string, but then it's strange how this_is_not_a_string = 2; is not highlighted as a string.


  8. Maybe you can give me a more detailed report?

     

    I think the behavior is a bit different: when double-clicking a file that has a {} entry in NDN.ext, NDN will display that filename, then execute the file. Here is my example for .PL file:

     

    pl,t { perl "!.!" }

     

    double click on Hello.pl:

    C:\temp>perl "Hello.pl"
                           
    C:\temp>perl "Hello.pl"
    Hello world.

     

    I can reproduce that behavior with beta 1279 on Windows XP SP2. The double-click speed doesn't seem to matter, as long as the clicking produces a double-click event.


  9. This is a new issue in beta 2.31.1909 (wasn't there in 1279): I have 9 quick directories defined. 4 are on the C: drive, 5 are on the Z: drive. Both drives are accessible.

     

    In 1909, if I press Alt+2 to go to Z:\MyDocs, NDN will display the following as the directory in the command line:

                       ...                 >

    (interestingly, the Screen Grabber cannot capture that - it puts the empty string in the clipboard).

     

    After pressing Alt+2, the path displayed in the file panel is lowercased. I remember there was an older bug with lowercased drive letters. Also, I can't tab between the panels any more. The cursor will remain in the other panel, in which I haven't used the Quick Directory change.


  10. When upgrading from one NDN beta to a newer one, I copy my VWR, HGL, EXT and MNU files from the old NDN. Is it also safe to copy the INI file?

     

    I'm asking because many fields in the INI have bitfield values, and I don't know if the order of the bits has remained the same from one version to the next, of if new toggle options occupy unused bits (if any). So "Options=1636832266" may be interpreted in different ways in version A than in version B.

     

    Stefan, is this the case?

     

    Thanks,

    Dan


  11. Yes, there are a few usability issue with all history windows:

    1. in short dialog boxes (like Quick Rename), they cover the input line

    2. line editing sort of breaks and you have to type blindly.

     

    Here's how to reproduce 2:

    1. Go to C:\WINDOWS\ in one pane and to c:\temp in the other

    2. In the Windows page, place the cursor on Explorer.exe, then press F5.

    3. Press End, backspace, backspace, backspace...

     

    Notice how the cursor blinks a few spaces after the location it was suppose to be in.

     


  12. Place this code in a.php:

    <html>
    <head></head>
    
    <?php
        // some comment here
    ?>
    
    </html>

     

    Edit a.php in NDN 2.31.1909. Notice that the comment isn't highlighted.

    Remove the <head></head> line and save the file.

    Open the file again. Notice the comment is correctly highlighted.

     

    Are PHP files scanned for HTML tags by any chance?

     

    Thanks,

    Dan


  13. From Wikipedia:

     

    Ohloh is a website which provides a web services suite and online community platform that aims to map the landscape of open source software development.

     

    Would be nice to add NDN to Ohloh and get more users, although NDN is not a fully open sourced project.

     

    Just an idea,

    Dan

     


  14. I have only one suggestion, since the listing seems absolutely ok:

    try "chmod 777 ./ndn" and run ndn again.

     

    Additionally, what happens if you type in "./ndn.des", which is no executable at all?

    Maybe the same error?

     

    Tried both but not much luck:

     

    vlad@optam:~/ndndir$ chmod 777 ./ndn
    vlad@optam:~/ndndir$ ./ndn
    -bash: ./ndn: No such file or directory
    vlad@optam:~/ndndir$ ./ndn.des
    -bash: ./ndn.des: Permission denied

     

    I also tried to run ndn while logged in as root, but got the same error message.

    smiley.gif


  15. Hi Dan,

     

    can you post the complete directory listing?

     

    I just extracted the RAR file. Here's the listing:

     

    vlad@optam:~/ndndir$ ls -al ./ndn
    -rwxr--r-- 1 vlad vlad 1520057 Jun  1 10:33 ./ndn
    vlad@optam:~/ndndir$ ./ndn
    -bash: ./ndn: No such file or directory
    vlad@optam:~/ndndir$ ls -al
    total 2208
    drwxr-xr-x  7 vlad vlad    4096 Jun 23 22:18 .
    drwxr-xr-x 11 vlad vlad    4096 Jun 23 22:17 ..
    drwxr-xr-x  2 vlad vlad    4096 Jun 23 22:18 colors
    drwxr-xr-x  2 vlad vlad    4096 Jun 23 22:18 doc
    -rw-r--r--  1 vlad vlad  171558 Jun  1 10:33 english.dlg
    -rw-r--r--  1 vlad vlad  386351 Jun  1 10:33 english.hlp
    -rw-r--r--  1 vlad vlad   19388 Jun  1 10:33 english.lng
    -rw-r--r--  1 vlad vlad     468 Apr  7  2005 ftp.ini
    drwxr-xr-x  4 vlad vlad    4096 Jun 23 22:18 ico
    drwxr-xr-x  2 vlad vlad    4096 Jun 23 22:18 lib
    -rwxr--r--  1 vlad vlad 1520057 Jun  1 10:33 ndn
    -rw-r--r--  1 vlad vlad     139 Aug  8  2001 ndn.des
    -rw-r--r--  1 vlad vlad     279 Sep 21  2005 ndn.edt
    -rw-r--r--  1 vlad vlad    2859 May 29  2007 ndn.ext
    -rw-r--r--  1 vlad vlad   73519 Apr  6 09:01 ndn.hgl
    -rw-r--r--  1 vlad vlad     791 Sep 21  2005 ndn.mn2
    -rw-r--r--  1 vlad vlad    3418 Jan 22  2007 ndn.mnu
    -rw-r--r--  1 vlad vlad     430 Oct 23  2005 ndn.spf
    -rw-r--r--  1 vlad vlad     319 Sep 21  2005 ndn.vwr
    -rw-r--r--  1 vlad vlad     472 Oct  6  2001 ndn.xrn
    drwxr-xr-x  2 vlad vlad    4096 Jun 23 22:18 xlt

×