Jump to content

Mantis?


Recommended Posts

  • Replies 65
  • Created
  • Last Reply

Top Posters In This Topic

Alan Titchmarsh was asked a couple of years ago if he had ever made love in his garden? His reply was "No, not in this one, we have only just moved".

Well these 2 didn't have any problems!!!

[IMG]http://i47.photobucket.com/albums/f180/Jonzjob/Swallotailsmating.jpg[/IMG]

What a lovely sight, pert etra lots mote swallowtails? I do love Spring...

John.

P.S. Dick, I ain't not never seed a souris wiv no butenz, very neat! How do you left or right click, not your heels you fool [kiss]...

Link to comment
Share on other sites

[quote user="Cassis"]

I can see you're trying very hard here. 10 out of 10 for

perseverance. Try this. Click on the 'quote' box above this message.

Copy the bit in red (you'll see the red bit when you hit 'quote'). Paste it into a message.

Fingers crossed!

[img]http://www.normandie-chambres.co.uk/garden2.jpg[/img]

[/quote]

The only thing in red is the bit of the Skiving in France logo..

But there is some computa gubbins above about colour.
Link to comment
Share on other sites

[quote user="Dog"][quote user="Cassis"]

I can see you're trying very hard here. 10 out of 10 for

perseverance. Try this. Click on the 'quote' box above this message.

Copy the bit in red (you'll see the red bit when you hit 'quote'). Paste it into a message.

Fingers crossed!

[img]http://www.normandie-chambres.co.uk/garden2.jpg[/img]

[/quote]

The only thing in red is the bit of the Skiving in France logo..

But there is some computa gubbins above about colour.[/quote]

What on earth is your computer setup?  All I've done here is hit the 'quote' button on your last post and this is what I get!  It looks like when you hit 'quote' you are getting the source code for the message in html.

Link to comment
Share on other sites

I think it must be something to do with AOL - expletive deleted - it speaks gubbins to me but won't send it out. I tried to log on with Iterest Explorer OSX and earlier Microsifless Interest 5 Macintosh but all I get are default pages telling me who registered the site.

I have a steam powered Aqua Hussle 68" monitor and a 1989 Apple Mac PreProduction Fava MkIII which I have customized with a yellow Hammerite paint job I am running OSX17 Version 22.87.45b.

It must be a problem with my postings on US Government involvement with the wars on Mexico.

Strange times.....
Link to comment
Share on other sites

Now that you've given us the details of your setup I know what you need.

Some editors offer a magical facility called Folding. A block of code

can be selected and converted into a Fold. The fold may be in two states

- open or closed. In the Open state, the text is displayed as normal,

usually with an extra comment line referred to as the Fold Comment at the

top and another (usually left blank) at the bottom. However, a single

keystroke or mouse click can Close the fold. When the fold is Closed, it

is as if the program listing had been folded up so that the bottom fold

comment met the top fold comment. All the lines inside the fold

disappear, the only thing being left visible being the Fold Comment,

which may be differentiated in some way (such as bolding the text or

changing its colour). Folds can, of course, be nested, and for languages

for which indentation is informative (most, nowadays), indenting a

closed fold indents the entire contents.

For example, a common pattern for procedures is for them to be divided

into an initialization section, a main loop, and a termination section.

By making the initialization section, the loop body and the termination

section folds, this structure is visible at a glance in a way which it

would never be if spread over several screens full. Another use of folds

is folding up boring but necessary constant definitions, or informative

but lengthy comment blocks.

It is difficult to explain to those unused to it how valuable the

technique of Folding is in making software comprehensible. The central

problem of software is complexity - and folding controls and optionally

conceals complexity. A functional block is reduced to a single line.

This allows a module to be viewed at an appropriate level: when viewing

the high level structure, the implementation details can be folded away;

when viewing the detail, surrounding structures can be ignored.

There are a number of Folding editors available. There is a shareware

editor for Microsoft WindowsĀ® called Origami, and also macros for

implementing Folding on the Unix emacs editor. I would strongly recommend

that anyone programming in languages such as C++, Java or Ada try out a

folding editor - the effect is astonishing.

This is diatribe on Folding is merely to introduce the concept that

it may be useful to have more than one representation of a piece of code.

Folding editors do this on a line-oriented basis; several lines of code

are replaced by a single fold. However, one could also fold within a line.

For example, it is surely informative to replace the code fragment

        (today.day >= MONDAY) && (today.day <= FRIDAY) && !today.is_public_holiday()

with

     today is a working day

especially if the more legible but less precise formulation can be

unfolded instantaneously into the exact representation, should that

be needed.

Folding in the classical sense has usually been at the level of the

programming language statement. The example above shows where it is useful

at the level of the expression (a boolean expression in this case). To

generalize, it seems plausible that it is worthwhile having the facility

to have two alternate representations of any syntactic entity - one

being its literal contents, and the other being a folded alternative

which is more informative and usually more compact (but not necessarily -

area of circle is less compact than pi*r*r).

If two representations are useful, are more than two useful? No,

because any item which can be folded can be re-folded in an outer fold,

with just one entry, which has its own alternate representation. Thus any

number of levels of representation can be constructed, if needed, from

the basic two. In fact, two levels are usually entirely adequate - the

basic level, showing what it actually does, and the folded level, where

the nuts-and-bolts of the actual implementation are hidden by a

descriptive shorthand.

Hope this helps.

Link to comment
Share on other sites

I am a strong believer in folding and keep a well stocked wallet but am still unhappy about the demise of the ten bob note.

I am a qualified substrate technologist and can manipulate paper stock into many states. I gave up macrame for origami for my PHD and am sure I should be able to work something out - if only I had a sharp pencil.

Still no further posting a pic though....
Link to comment
Share on other sites

I have been practising let's see what happens here. I have been examining the source code of the site and can see ways to bypass the fluctuating floating by-points. I should be able to reprogramme the lower level conundrums to accept my newly wrapped and folded programming.

A.1 Zephyr ASDL

booleanexp = Variable(identifier id)

| Constant(boolean b)

| OrExp(booleanexp left, booleanexp right)

| AndExp(booleanexp left, booleanexp right)

| NotExp(booleanexp exp)

A.2 C

The ā€œ.hā€ file:

typedef struct booleanExp *booleanExp_ty;

typedef char* identifier;

typedef int boolean;

enum booleanExp_type {

VARIABLE, CONSTANT, OREXP, ANDEXP, NOTEXP

} ;

struct booleanExp {

enum booleanExp_type kind;

union {

struct { identifier id; } variable;

struct { boolean b; } constant;

8

struct {

booleanExp_ty left;

booleanExp_ty right;

} orExp;

struct {

booleanExp_ty left;

booleanExp_ty right;

} andExp;

struct { booleanExp_ty exp; } notExp;

} u;

};

The ā€œ.cā€ file:

#include "booleanExp.h"

booleanExp_ty

mkVariable(identifier id) {

booleanExp_ty p;

p = (booleanExp_ty) malloc(sizeof(*p));

p->kind = VARIABLE;

p->u.variable.id = id;

return p;

}

booleanExp_ty

mkConstant(boolean b) { /* ... */ }

/* ... */

A.3 ML

type identifier = string;

datatype booleanExp = Variable of identifier

| Constant of bool

| OrExp of (booleanExp * booleanExp)

| AndExp of (booleanExp * booleanExp)

| NotExp of booleanExp;

A.4 Java

abstract class AST {

}

public class Variable extends AST {

public Identifier id;

public Variable(Identifier id) {

this.id = id;

}

9

}

public class Constant extends AST { /* ... */ }

public class OrExp extends AST { /* ... */ }

Let us see what happens...
Link to comment
Share on other sites

very nice photo cassis wish i was so quick with my camera.

Are you and dog having some kind of computer joking banter, or is that real computer talk? either way its way over my head, then im only 5'3 so most things are ....................

Link to comment
Share on other sites

Nice one Cassis, this is a Bee fly on our lavender. Strange little machine,  but quite lovely.

[IMG]http://i47.photobucket.com/albums/f180/Jonzjob/Beefly.jpg[/IMG]

The Humming bird hawk moths are lovely to watch, but too quick for my camera hand yet...

John.

Link to comment
Share on other sites

Too right mate, it only just cracked 29C today. By the time I got in for a swim this afternoon it was right down to 27C, not much above freeeeezzziiing [:-))]! They fly more like a hover fly than an ordinary fly (if there is such a thingy?)

John.

Link to comment
Share on other sites

[quote user="Cassis"]Hi Dog


NB make sure the image isn't wider than the screen or you screw up the screen width on the forum - like Jonz!

[/quote]

Hi Cassis, I have just signed onto our laptop and I see what you mean. When I posted the photo of what I now an sure is a cicada it was on our tower PC (fixed thing with a million cables hanging out of it!!) and that has a 19 inch screen which does not expand the screen size to make it over size.  I will have to look at it next time it's on and check again.

No wonder I couldn't work out why you had put the above quote. Mnd you I wouldn't think that the simple thing of the screen size would make that difference, I will check and see?

John.

Link to comment
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
 Share


×
×
  • Create New...