Page 2 of 2

Re: Nip hacking in the bud with Purebasic

Posted: Sun May 05, 2013 11:04 pm
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??

Re: Nip hacking in the bud with Purebasic

Posted: Mon May 06, 2013 1:29 am
by Nituvious
Very clever. But what if you're running a server side script inside of your page?

Re: Nip hacking in the bud with Purebasic

Posted: Mon May 06, 2013 6:17 am
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:

Re: Nip hacking in the bud with Purebasic

Posted: Mon May 06, 2013 11:55 am
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

Re: Nip hacking in the bud with Purebasic

Posted: Mon May 06, 2013 10:00 pm
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.!

Re: Nip hacking in the bud with Purebasic

Posted: Tue May 07, 2013 6:07 am
by c4s
jmcbride wrote:No spambot. Just interested in PureBasic.!
Alright, then I apologize. Welcome to the forum!