Brownian motion

The quick brown fox jumps over the lazy dog

 

Posts Tagged ‘web’

re.place — regexp search and replace WordPress plugin

I wrote a small plugin for WordPress, which can search for specified strings (as regular expressions) in posts and pages and replace them with something else.

Just take a look:

Typed as PARDON, you see as:
nice smile

Typed as YouTube(TMCf7SNUb-Q), you see as:

Under debugging nice smile

You can download re.place plugin here.

And here is an official re.place plugin page .

Miniature Earth — valid XHTML markup

BTW, to have XHTML validated page, it was necessary to change the code provided by YouTube.

For Miniature Earth they provided:

<object width="425" height="344">
<param name="movie" value="http://www.youtube.com/v/kIUCTbi_XZs"></param>
<embed src="http://www.youtube.com/v/kIUCTbi_XZs"
   type="application/x-shockwave-flash" width="425" height="344"></embed>
</object>

Should be like this:

<object width="425" height="344" data="http://www.youtube.com/v/kIUCTbi_XZs"
    type="application/x-shockwave-flash">
<param name="movie" value="http://www.youtube.com/v/kIUCTbi_XZs"></param>
</object>

Here is the info — Flash Satay: Embedding Flash While Supporting Standards.

Excellent site about CSS!

The very nice site for beginners — http://css.maxdesign.com.au/. A lot of information, examples, step-by-step solutions.

BTW, there i’ve found another good page, Floats, Margins and IE — examples and workarounds for MSIE’s problem related to rendering floats.

True Knowledge — “human” answer to questions?

True Knowledge Ltd launched a test service — True Knowledge (registration required, free).
Surely, I wanted to take a look :-)

First, I asked «How many seas on Earth?». I have got a very good answer:

So, it seems this engine understood me quite correctly, but it does not know the answer yet.

Next I asked whether Bill Gates is clever (sorry):

The answer was very honest, I was surprised. And again — note the understanding of question, very, very nice.

Next question, as for me, was harder: «Who can produce milk?». Understanding of question, again, seems to be very correct:

But when I choosed one of proposed variants, I have got very strange short answer: «Yes«:

Next question I borrowed from their examples, but changed «how far» to «how better» (probably, an error: «better from»):

As an answer I was proposed to add a «knowledge» to a database.

Oops — is this «typical» error, don’t know — correctly-incorrect answer:

BTW, the engine can not answer to «How old was J. S. Bach?», but can answer to:

And right after that — why, how can i forget?! ;-) — this:

Next — relatively «stupid» question: «Who lives in London?». The engine started to work harder, it took more time to find an answer, and finally it gives back:

Exclusively correct answer. With explanations, list of facts. But probably nobody knows, however, how the system will behave, if there will be a lot more inhabitants in London :-)
(Yes, I have asked also who lives in USA, and also who lives in the world.)

Well, and I decided to ask something hard at last: «What is the maximun speed of «Cutty Sark» in knots?» :-)
The result was:

So, it is quite smart, I’d say. And, surely, it is very interesting, how it will understand questions in Ukrainian.
(You can see, that my English is quite poor though)

Pages

Recent Posts

Most Rated

Highest Rated

Tags

Archives