Nip hacking in the bud with Purebasic

Everything else that doesn't fall into one of the other PB categories.
jmcbride
New User
New User
Posts: 9
Joined: Sun May 05, 2013 9:26 pm

Re: Nip hacking in the bud with Purebasic

Post by jmcbride »

They were topics that interested me.


What's the problem with that?

And what spam did you see me post?

You must have something better to do than follow me around. Don't you??
Nituvious
Addict
Addict
Posts: 1027
Joined: Sat Jul 11, 2009 4:57 am
Location: United States

Re: Nip hacking in the bud with Purebasic

Post by Nituvious »

Very clever. But what if you're running a server side script inside of your page?
▓▓▓▓▓▒▒▒▒▒░░░░░
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: Nip hacking in the bud with Purebasic

Post by c4s »

@jmcbride
Well, new forum members who post that much in random topics are most often spam bots. Some of them are pretty clever and give logical answers. But you are always able to detect them by their high p/hrd (posts per hour after the registration date) rate and/or some made up member name.
Anyway, I guess that if I can talk to you like that, you are most likely not a spam bot. :wink: At least I hope so... :shock:
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Nip hacking in the bud with Purebasic

Post by IdeasVacuum »

There is a potential gotcha that will yeild a false negative from the a$ <> b$ test.

My original file is created on a Windows PC and the format is U8-DOS. When downloaded from the Linux host, the file is U8-UNIX.

Edit: My work-around in this scenario is to create a new file by replacing the Unix #LF$ with Windows #CRLF$

Code: Select all

If ReadFile(1, "D:\Index.html")

     ;Downloaded index is U8-UNIX
     sContent.s = ReadString(1 ,#PB_UTF8|#PB_File_IgnoreEOL)
     CloseFile(1)

     sContentUDOS.s = ReplaceString(sContent, #LF$, #CRLF$)

     If CreateFile(2,"D:\IndexUDOS.html")

             WriteString(2, sContentUDOS, #PB_UTF8)
               CloseFile(2)
     EndIf

EndIf
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
jmcbride
New User
New User
Posts: 9
Joined: Sun May 05, 2013 9:26 pm

Re: Nip hacking in the bud with Purebasic

Post by jmcbride »

c4s wrote:@jmcbride
Well, new forum members who post that much in random topics are most often spam bots. Some of them are pretty clever and give logical answers. But you are always able to detect them by their high p/hrd (posts per hour after the registration date) rate and/or some made up member name.
Anyway, I guess that if I can talk to you like that, you are most likely not a spam bot. :wink: At least I hope so... :shock:
No spambot. Just interested in PureBasic.!
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: Nip hacking in the bud with Purebasic

Post by c4s »

jmcbride wrote:No spambot. Just interested in PureBasic.!
Alright, then I apologize. Welcome to the forum!
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
Post Reply