AARoads Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

TRIVIA MOVED BACK TO WEDNESDAY. Your host isn't any happier about these changes than you are. Sign up to host in the future.

Author Topic: Strange Forum Malfunction  (Read 2428 times)

vtk

  • Turnpike
  • ***
  • Offline Offline

  • Posts: 1620
  • Fully retroreflectorized!

  • Age: 29
  • Location: Columbus
  • Last Login: Today at 11:13:39 AM
    • Vid's Space
Re: Strange Usenet Malfunction
« Reply #25 on: April 01, 2012, 07:28:39 PM »


If text=hello
text=goodbye
Else if text=goodbye
text=hello
End If

does not produce an infinite loop. Though, it will make the words switch back and forth every time the post is edited or replied to.

That elseif approach doesn't work when trying to change just parts of a string — unless it goes through the string one word at a time and can only change whole case-sensitive words — and it doesn't scale well to many keywords.  More realistically, the program will replace all instances of a specific word or pattern with something else, then do the same for the next word or pattern it's supposed to filter out, and so on in a finite loop.  The result of trying to swap, for example, "apple" with "orange" and vice versa with this approach is that all apples become oranges, and then all oranges (including those that were originally apples) become apples.  The workaround is to change apples to a third word not likely to be used (like ##tempapple##), change oranges to apples, then change ##tempapple##s  to oranges. The tricky part is making sure the algorithm applies those replacements in the correct order or it won't work as expected.
Logged
Appetizer: Cheese.
Entree: Bacon.
Dessert: Jello.

Healthy? No.
Worth it? Totally.

hbelkins

  • DOT Employee
  • Freeway
  • *
  • Offline Offline

  • Posts: 4159
  • All bytes used & opinions given here are my own.

  • Age: 51
  • Location: Kentucky
  • Last Login: June 18, 2013, 11:25:36 PM
    • Millennium Highway
Re: Strange Usenet Malfunction
« Reply #26 on: April 01, 2012, 09:05:36 PM »

Will site management please give an assurance that this will be the last occasion of the swearword filter being used in this way?  April Fool practical joking aside, it is fundamental to users' expectations that what they type is what they see when they click Post.

Swearword filter? What words are being filtered? I've seen more f-bombs dropped here than in a Bobby Knight halftime speech to his basketball team when they were behind.
Logged
I'm for the 14 and the 29, and whoever's racing against the 24 and the 48.

Zmapper

  • State Highway
  • *
  • Offline Offline

  • Posts: 505
  • Location: Northern Colorado
  • Last Login: Today at 08:25:20 AM
Re: Strange Usenet Malfunction
« Reply #27 on: April 01, 2012, 09:06:55 PM »

The words that I can tell are on the "naughty words filter" as of right now: O.bama, F.orum, and key.board. Did I miss any?
Logged
Do you trust an Alanland politician?

NE2

  • Interstate
  • *****
  • Online Online

  • Posts: 6046
  • Age: -100
  • Location: central Florida
  • Last Login: Today at 02:15:45 PM
Re: Strange Usenet Malfunction
« Reply #28 on: April 01, 2012, 09:42:31 PM »

As well as cigarette, awesome person, and apparently one more actual "naughty" word.
Logged
"Yawn" is shorthand for "We've already discussed this ad nauseam and there's no point in going through the motions again".

Florida route log | pre-1945

Steve

  • Do Not Molest
  • Admin
  • Interstate
  • *****
  • Offline Offline

  • Posts: 6400
  • Fire Sather! Fire Goodell! Ban Isiah Thomas!

  • Age: 30
  • Location: New Jersey
  • Last Login: June 18, 2013, 11:40:24 PM
    • Alps' Roads
Re: Strange Usenet Malfunction
« Reply #29 on: April 01, 2012, 10:35:34 PM »

You won't make it much past Romney before you hit Santorum.
Logged
~ Steve
http://www.alpsroads.net
If the rainbow in my avatar offends you, you're wrong.

rickmastfan67

  • The Invisible One
  • Admin
  • Turnpike
  • *****
  • Offline Offline

  • Posts: 1537
  • I want I-67 in PA!!!!

  • Age: 28
  • Location: Pittsburgh, Pa, USA
  • Last Login: June 18, 2013, 08:43:06 AM
Re: Strange Usenet Malfunction
« Reply #30 on: April 01, 2012, 10:57:02 PM »

The words that I can tell are on the "naughty words filter" as of right now: O.bama, F.orum, and key.board. Did I miss any?

Look in the Sports Forum. lol.  That and M.TR.
« Last Edit: April 01, 2012, 10:59:00 PM by Megatron »
Logged

Takumi

  • Turnpike
  • ***
  • Offline Offline

  • Posts: 1641
  • midsibidi the crasy man

  • Age: 27
  • Location: Lnrvdxkk Oblast, Alanland
  • Last Login: Today at 12:08:23 PM
    • Flashing Lights (blog)
Re: Strange Usenet Malfunction
« Reply #31 on: April 01, 2012, 11:29:51 PM »

food barbeque Disco 1 croutons cheese sausage poutine Olympics the Greek debt crisis
« Last Edit: April 01, 2012, 11:36:35 PM by Takumi »
Logged
"It's only a Honda" is shorthand for "I'm embarrassed that I lost to a car that cost less than mine did."

Latest blog post: Hampton Roads III | Latest video: VA 182

Steve

  • Do Not Molest
  • Admin
  • Interstate
  • *****
  • Offline Offline

  • Posts: 6400
  • Fire Sather! Fire Goodell! Ban Isiah Thomas!

  • Age: 30
  • Location: New Jersey
  • Last Login: June 18, 2013, 11:40:24 PM
    • Alps' Roads
Re: Strange Usenet Malfunction
« Reply #32 on: April 01, 2012, 11:36:22 PM »

food barbeque Disco 1 croutons cheese sausage poutine the Greek debt crisis
Mmmm, poutine.
Logged
~ Steve
http://www.alpsroads.net
If the rainbow in my avatar offends you, you're wrong.

rickmastfan67

  • The Invisible One
  • Admin
  • Turnpike
  • *****
  • Offline Offline

  • Posts: 1537
  • I want I-67 in PA!!!!

  • Age: 28
  • Location: Pittsburgh, Pa, USA
  • Last Login: June 18, 2013, 08:43:06 AM
Re: Strange Forum Malfunction
« Reply #33 on: April 02, 2012, 05:19:42 AM »

All filters have been reverted that were created for 4/1. ;)

Steve

  • Do Not Molest
  • Admin
  • Interstate
  • *****
  • Offline Offline

  • Posts: 6400
  • Fire Sather! Fire Goodell! Ban Isiah Thomas!

  • Age: 30
  • Location: New Jersey
  • Last Login: June 18, 2013, 11:40:24 PM
    • Alps' Roads
Re: Strange Forum Malfunction
« Reply #34 on: April 02, 2012, 07:20:12 PM »

All filters have been reverted that were created for 4/1. ;)
And farewell to keyboard/leopard, which saddens me but its time had come and gone.
Logged
~ Steve
http://www.alpsroads.net
If the rainbow in my avatar offends you, you're wrong.
 


Opinions expressed here on belong solely to the poster and do not represent or reflect the opinions or beliefs of AARoads, its creators and/or associates.