News:

How did you even find this place?

Main Menu

What the hell?

Started by AntiVirus, January 03, 2007, 11:56:45 PM

Previous topic - Next topic

0 Members and 5 Guests are viewing this topic.

AntiVirus

Quote from: Skywing on January 07, 2007, 10:33:49 PM
Quote from: iago on January 07, 2007, 08:26:12 PM
Long story short: it's because of a bug when deciding whether or not a file is unicode.

And incidentally, it's not all about 4 3 3 5.  For example, "Bush hid the truth" doesn't work.
It's not really a bug.  A heuristic is being used to guess whether a text file with no indication as to whether it is Unicode or not is probably Unicode.  As such, it's really just making an educated guess based on whether something is likely Unicode or not, and like most guesses, sometimes it gets it wrong.
And it doesn't learn from its mistakes either!  Sheesh. :P
The once grove of splendor,
Aforetime crowned by lilac and lily,
Lay now forevermore slender;
And all winds that liven
Silhouette a lone existence;
A leafless oak grasping at eternity.


"They say that I must learn to kill before I can feel safe, but I rather kill myself then turn into their slave."
- The Rasmus

Sidoh

Quote from: AntiVirus on January 08, 2007, 11:40:12 PM
And it doesn't learn from its mistakes either!  Sheesh. :P

If it could identify a mistake, there wouldn't be any...

AntiVirus

Quote from: Sidoh on January 09, 2007, 02:30:43 AM
Quote from: AntiVirus on January 08, 2007, 11:40:12 PM
And it doesn't learn from its mistakes either!  Sheesh. :P

If it could identify a mistake, there wouldn't be any...
....  It was a joke. :P

And there would be a mistake.  It would have to make atleast one mistake first before it learned from it.   That's how you learn from mistakes, you make them.
The once grove of splendor,
Aforetime crowned by lilac and lily,
Lay now forevermore slender;
And all winds that liven
Silhouette a lone existence;
A leafless oak grasping at eternity.


"They say that I must learn to kill before I can feel safe, but I rather kill myself then turn into their slave."
- The Rasmus

Sidoh

Quote from: AntiVirus on January 09, 2007, 11:35:24 AM
....  It was a joke. :P

And there would be a mistake.  It would have to make atleast one mistake first before it learned from it.   That's how you learn from mistakes, you make them.

How's it going to learn from a mistake if it's unable to identify it?  That was my point. :P

AntiVirus

Quote from: Sidoh on January 09, 2007, 01:05:52 PM
Quote from: AntiVirus on January 09, 2007, 11:35:24 AM
....  It was a joke. :P

And there would be a mistake.  It would have to make atleast one mistake first before it learned from it.   That's how you learn from mistakes, you make them.

How's it going to learn from a mistake if it's unable to identify it?  That was my point. :P
... My first post was about it identifying the mistake and then learning about it.. :P
The once grove of splendor,
Aforetime crowned by lilac and lily,
Lay now forevermore slender;
And all winds that liven
Silhouette a lone existence;
A leafless oak grasping at eternity.


"They say that I must learn to kill before I can feel safe, but I rather kill myself then turn into their slave."
- The Rasmus

Sidoh

I don't know about you, but I'd hate to have to click "Yep, it's encoded correctly" every time I opened something with notepad. :P

iago

Hmm, I wonder if there's some way to fool it for longer text?

That might be useful for somebody who wants to raise the bar for viewing source on their website, since IE opens source in notepad. 

Sidoh

Quote from: iago on January 09, 2007, 07:45:35 PM
Hmm, I wonder if there's some way to fool it for longer text?

That might be useful for somebody who wants to raise the bar for viewing source on their website, since IE opens source in notepad. 

An interesting question... I'd guess it gets increasingly hard as the text it has to sample gets longer, though.

iago

That's assuming they take the entire file as a sample.  Perhaps they take the first 1024 bytes, in which case it'd be much more possible.

Skywing

Quote from: iago on January 09, 2007, 09:02:06 PM
That's assuming they take the entire file as a sample.  Perhaps they take the first 1024 bytes, in which case it'd be much more possible.
Notepad will use up to the first 1024 bytes in conjunction with IsTextUnicode (using all available tests).  Determining just what probabilities the tests use is left as an exercise for the reader.

AntiVirus

Quote from: Sidoh on January 09, 2007, 04:10:54 PM
I don't know about you, but I'd hate to have to click "Yep, it's encoded correctly" every time I opened something with notepad. :P
-.-;;

I mean the program had almost like AI or something. :P Might not be possible, but it'd be nice.
The once grove of splendor,
Aforetime crowned by lilac and lily,
Lay now forevermore slender;
And all winds that liven
Silhouette a lone existence;
A leafless oak grasping at eternity.


"They say that I must learn to kill before I can feel safe, but I rather kill myself then turn into their slave."
- The Rasmus