Jump to content
Muxe Inc Forums
Sign in to follow this  
Basil/2

Several "How to" questions

Recommended Posts

Basil/2    0

I have changed my DN OSP to NDN, so I have got lots of questions:

 

0. Official FAQ/DOC location? (URL)

 

1. How to make a shadow for buttons like DN?

I found "Shadow X/Y" params in Configuration but I don't know how to operate them.

 

2. How to launch a program in separate window like shift-Enter in FAR? (instead of using "start" in cmd-line)

 

3. How to include files without ext in color group? ("*.;" doesn't work)

 

4. How can I make ALL of my files sorted by ext, but with exe's and arc's first?

 

5. I need "AND" search in text files (for example, I need to find words "file" and "error" SIMULTANEOUSLY in ONE line). So can I do it with NDN's regular expressions?

 

(I know, it has an "OR" find, but what about "AND"?)

 

6. When I changing disk, my NDN always shows the root of disk. How can I make NDN to show PREVIOUS (last accessed) directory on this disk?

Param "Auto change directory" do nothing with with.

 

 

Wbr, Basil Starostin.

Share this post


Link to post
Share on other sites

hi!

 

good decision

 

0. there is no up-to-date FAQ/DOC, i dont have time to write one

1. what shadows do you mean? do you mean the color?

2. all keys regarding ENTER are used already in NDN

you can assign SHIFT+ENTER in OPTIONS.EXTENSION_FILE with this code:

*( @start !.! )

3.ouh, a little bug: write this *;*, apparently only the second mask is parsed correctly

4.im not an expert with FILE EXTENSIONSm but i will try to explain it correctly

ALT-S: sort by extension; [X] sort by group index

OPTIONS.FILE_MANAGER.HIGHLIGHT_GROUPS

give the EXE/ARCHIVE groups the smallest index values

(>0)

5. sorry, im no RegExp guru, maybe another user of the forum can help you?

6.i dont know why always the root directory is shown

it should work correctly

 

Stefan/AH

Share this post


Link to post
Share on other sites
Basil/2    0

> 1. what shadows do you mean? do you mean the color?

Original DN had a shadowed buttons (they looked like they having a shadow). I guess, they were made BY COLOR (due to text-mode), so you are right - color.

 

> 2. all keys regarding ENTER are used already in NDN

> you can assign SHIFT+ENTER in OPTIONS.EXTENSION_FILE with this code:

> *( @start !.! )

Good, it works; but it doesn't work with NDN command line.

 

>6.i dont know why always the root directory is shown

>it should work correctly

Ok, I'll try to locate this bug more exactly.

 

> 3, 4

Thanks a lot, it helps.

Share this post


Link to post
Share on other sites
Garl    0

>1. How to make a shadow for buttons like DN?

>I found "Shadow X/Y" params in Configuration but I don't know how to operate them.

 

>>Original DN had a shadowed buttons (they looked like they having a shadow). I guess, they were made

>>BY COLOR (due to text-mode), so you are right - color

 

Options - Configuration -Interface...

 

Shadow X:

Shadow Y:

Attrib.:

 

attrib it is Color of Shadow :)

Share this post


Link to post
Share on other sites
Basil/2    0

Yes, I have found it!

 

The option "Show Dialog Markers" disables buttons shadowing!

Turning this option off solved the problem - shadows appear.

 

 

P.S. Will it be the first article in "NDN knowledge base"? ;)

Share this post


Link to post
Share on other sites
Elfy    0
6.i dont know why always the root directory is shown

it should work correctly

Really??? It works? I think this feature was broken many years ago... And I can't use it. Are you sure?

Share this post


Link to post
Share on other sites
Garl    0

"^[^yy]+xx[^yy]+$" (line) or "[^yy]+xx[^yy]+" (string)

 

Have Fun

Share this post


Link to post
Share on other sites
dandv    0
"^[^yy]+xx[^yy]+$" (line)  or   "[^yy]+xx[^yy]+"  (string)

 

Have Fun

Hi Garl,

 

How in the world did you come up with this regexp ?!

Did you actually test it ?!

 

To set things straight:

 

1. The regexp you suggested is pure crap, both in theory and practice. NDN uses PCRE, and according to the Perl 5 regular expression syntax (http://www.perldoc.com/perl5.8.0/pod/perlre.html), what you wrote is crap because:

  • [^yy] is a negated character class, so one 'y' is enough: [^y]
  • [^y]+ will prevent things like "yzxx" from matching, which, according to the asker, SHOULD match
  • same goes for the second [^yy] oddity
  • due to some weird bug in NDN, this regexp doesn't work; I reported the bug at http://forums.muxe.com/index.php?act=ST&f=24&t=329
2. The correct regexp is
((?!yy).)*xx((?!yy).)*

which can successfully be tested agains the sample file I posted at http://forums.muxe.com/index.php?act=ST&f=24&t=329

 

3. Read perlre :-)

 

4. For some heavy-weight regexp usage, visit my Proxmail page (URL in the signature).

 

Hope this helps Basil/2.

Dan Dascalescu

Share this post


Link to post
Share on other sites
Basil/2    0
((?!yy).)*xx((?!yy).)*

 

I used so:

 

((?!10035).)*pktfail((?!10035).)*

 

to find strings like

 

00:00:39.533 ERROR! SOCK PKTFAIL 9987 006F1470,SS,195.133.81.72:9999,WSALE=10035.
00:00:39.533 ERROR! SOCK PKTFAIL 9987 006F1470,SS,195.133.81.72:9999,WSALE=10042.

 

The result is, hm, untypical:

 

NDN (both editor/viewer) searches ALL strings with "pktfail", but it selects (dedicates by color) up to "WSALE=" in "0035" strings and up to "WSALE=10042." otherwise.

Share this post


Link to post
Share on other sites
Basil/2    0
if you add $ to the end of the search pattern then it only selects lines without 10035

Yeah, it works! Thanks a lot!

 

Reg. exps are not so easy like program languages with their AND, OR and NOT, but are enough powerful.

It was one of the reasons why I changed OSP to NDN - more comfortable searching in logs.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×