Closed Thread Icon

Preserved Topic: Asylum Suggestion (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=16093" title="Pages that link to Preserved Topic: Asylum Suggestion (Page 1 of 1)" rel="nofollow" >Preserved Topic: Asylum Suggestion <span class="small">(Page 1 of 1)</span>\

 
Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 06-22-2001 23:39

OK, have you ever posted something like code with complex indents, and then lost all the indents since it's in HTML? I propose a simple little fix for that.

UBB converts all < and > to &amp;lt; and &amp;gt; so that people aren't able to insert HTML.

Doc, could you find the place where that is done, and insert this?

Change all double spaces (" &nbsp;") with a space and a non-breaking space (" &amp;nbsp;")

see? That should fix the problem.

Maybe also have a regular expression in there that converts tab characters to four &amp;nbsp; 's in a row.

butcher
Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

posted posted 06-22-2001 23:48

Doesn't using the UBB [code] tag save all the indents?

- Resolutions, Of All My Fruitless Searches -

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 06-23-2001 00:55

Yeah, but someone else recently said that when you copy and paste text from it, it doesn't copy the newlines, so you end up with one long line of code, which I imaging could be quite annoying.

Plus, the code tag stretches the forum table if there's a long line of code in it.

If we can remove these problems from the code tag, then that's a better solution, certainly.

DocOzone
Maniac (V) Lord Mad Scientist
Sovereign of all the lands Ozone and just beyond that little green line over there...

From: Stockholm, Sweden
Insane since: Mar 1994

posted posted 06-23-2001 01:16

It should save the new lines, but a whole buncha spaces always get changed to just one space on display through the browser. The 'find two spaces' and replace with '&nbsp; ' should work, but I'll have to think about this before I jump into perl "regex" mangling, ugly stuff! I have been doing more and more perl lately, maybe I'll get into that.

Here's a hoot. I had to do this SHTML page where I pull a date and an article from my database, and also pull a satellite map from another server using an ASP script. The page started with SHTML, and some XSSI date mangling to choose which page to use, but since I needed to work with timezone offsets, it included the map stuff using PHP, which did it's thing and then called the ASP from the other server. At the bottom of that page, it called my PERL script, which passed along some variables to my server and ran a JSP page (java) to get the right article and reformat. Back to the PERL script, where I ran a regex mangling to swap some variables, and then it displays! I had to be careful not to do anything to mess up the DHTML Javascripts that run the entire interface. Most twisted page I've ever done, 7 acronyms, 5 programming languages, 4 servers and some HTML. But it worked!

Your pal, -doc-

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 06-23-2001 01:23

I'm in Geek Heaven just reading that. LOL!!!

WarMage
Maniac (V) Mad Scientist

From: Rochester, New York, USA
Insane since: May 2000

posted posted 06-23-2001 01:30

Yeah that did sound pretty cool... want to give us the link?

<edit> Not that we would actually see anything... but just for... </edit>

-mage-

[This message has been edited by WarMage (edited 06-23-2001).]

docilebob
Maniac (V) Mad Scientist

From: buttcrack of the midwest
Insane since: Oct 2000

posted posted 06-23-2001 05:35

I think my brain just shorted out. Jeez, Doc no wonder you need some rest.

Wes
Paranoid (IV) Mad Scientist

From: Inside THE BOX
Insane since: May 2000

posted posted 06-23-2001 06:25

What was the middle thing...?


lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 06-25-2001 08:45

Nice one Doc!

Rick
Paranoid (IV) Inmate

From: Borneo Island
Insane since: Apr 2000

posted posted 06-25-2001 08:53

Gee.. I wonder how your brain really works, Doc. Any explaination..???

DocOzone
Maniac (V) Lord Mad Scientist
Sovereign of all the lands Ozone and just beyond that little green line over there...

From: Stockholm, Sweden
Insane since: Mar 1994

posted posted 06-25-2001 09:09

Well, I *could* explain, but it's nearly impossible without elaborate indenting and extensive use of TLA's and XTLA's. Try thinking of Alice falling down the rabbits hole, and then also of what happens "through the looking glass". Most of my logic is really quite methodical, I just tend to follow it round and round in a circular pattern, returning where I started only with a few warpages in my thinking. I simulated this once in a game logic I designed, if it didn't like the answers, it looped back for another pass, each pass having certain random chances to try a different logic path to solve the problem, with all the results cumulative. There was an "ah, screw it!" clause built-in, at which point it would just make a move, based on the best chances it had stored. I knew I was successful when the damn program *cheated* on me! Bastard.

Your pal, -doc-

ACharmedOne
Bipolar (III) Inmate

From: USA
Insane since: Apr 2001

posted posted 06-25-2001 10:28

**gets advil** okies u gave me a headache lol

Rinswind 2th
Maniac (V) Inmate

From: Den Haag: The Royal Residence
Insane since: Jul 2000

posted posted 06-25-2001 19:44

"...if i want to know how something works i totally disect them, i did this when i was a child and i still do it today when i want something to learn..."

something like this doc said in a thread about the good way to learn html.

So i sugest to disect doc's brain..... that should unleash a lot off knowledge...
Vp get the mop ready please

~Rinswind ~


[This message has been edited by Rinswind 2th (edited 06-25-2001).]

butcher
Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

posted posted 06-25-2001 21:34

I'll bet Rinswind's pets weren't all to happy on the days he wanted to find out how they worked!

- Resolutions, Of All My Fruitless Searches -

« BackwardsOnwards »

Show Forum Drop Down Menu