Browse Search Popular Register Upload Rules User list Login:
Search:
Search tool

Image:
screenshot of the scene

Author: lololoer

Group: Default

Filesize: 61.8 kB

Date added: 2014-02-10

Rating: 5

Downloads: 421

Views: 348

Comments: 13

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

This code could be used in search bars just like google, ask, yahoo, or even algodoo scene / post searchers.
Could you improve it?;)
Last edited at 2014/02/11 17:06:06 by lololoer
Please log in to rate this scene
edit
Similar scenes
Title: scanner
Rating: 5
Filesize: 103.34 kB
Downloads: 393
Comments: 0
Ratings: 1
Date added: 2020/08/28 11:45:08
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: TRACKER,STUNSTICK,UV LAMP,TOOL BOX,VEST AND RAKE TRAP
Rating: 5
Filesize: 241.28 kB
Downloads: 645
Comments: 0
Ratings: 1
Date added: 2019/07/12 22:20:31
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Destruction Device2.0
Rating: 7.3636
Filesize: 307.53 kB
Downloads: 254
Comments: 8
Ratings: 11
Date added: 2008/06/10 03:47:24
Made with: Phun
no image found for this scene
Rating: rated 7.4
download
Title: Google Gravity
Rating: 5
Filesize: 52.4 kB
Downloads: 2119
Comments: 3
Ratings: 1
Date added: 2025/01/04 19:35:25
Made with: Algodoo v2.2.3
Rating: rated 5
download
Title: For Kidest Adaya
Rating: 5
Filesize: 25.33 kB
Downloads: 179
Comments: 0
Ratings: 1
Date added: 2018/05/20 00:21:20
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: google search
Rating: 1.75
Filesize: 81.99 kB
Downloads: 417
Comments: 9
Ratings: 12
Date added: 2008/12/31 18:43:58
Made with: Phun
It fails to find words at the end of a sentence. For example, in the sentence "The requirements are:" it fails to find the word "are". And in the sentence "Hello , with this method you could search words / letters." It fails to find the word "letters".
To search that words you have to type all the group of letters non-separated by " " (space key), as I mentioned on the scene.
To search hello you would type "hello" if you are searching for hello in the sentence "hello123 im your partner" you would type "hello123" not only "hello".
I could maybe change the function to search words in any situation but capital letters could not be fixed.
I don't think you understood what I said. Please try to search the text in your scene for the word "letters" (do not include quotation marks of course). I believe that your script cannot find the word "letters" because it is at the end of a sentence. Another word that the script cannot find in your text is the word "are" because it is followed by a non-letter punctuation mark.
Oh now I see the problem, to search the word "are" then you have to write "are:\ n"
because there's a new line typed " \ n ".
For searching "letter" type "letter. \ n 2." because I didn't separated the text in the right way.

Sorry :lol:

Edit: Uploaded, try now. :tup:
Last edited at 2014/02/11 17:07:39 by lololoer
You cheated by adding a space between the words and the periods in your text! :rolleyes:

A good search tool should be able to find words in a sentence regardless of any punctuation marks nearby. And a user should not need to search by adding special characters such as " \ n ". Sorry, friend, but this search engine is not very good if you leave it as is. :unsure:
Last edited at 2014/02/11 17:32:12 by Xray
Xray - Help me, make a better search tool engine if you know how. Please! :tup:
Sorry, I know how a search engine should work, but I have no knowledge about how to program one. I think you are headed in the right direction with this one, but there are many things that need to be taken into consideration.

Just curious, why do you want to create a search engine in Algodoo? Is it just for the fun of doing it, or do you have some actual application for it?
Is just for fun and for learning for myself, I actually only know thyme scripting language, not any other.
The post that I've maded "Any of array's variables" was taken to complete this scene.
Last edited at 2014/02/12 15:51:48 by lololoer
You learned Thyme scripting very quickly, and you obviously are good at math and logic. So, the next logical course for you to take when you are ready is to learn software engineering. When you are ready to go to college, that might be a good choice for your future. When you have learned good programming techniques and practices, then you will be able to write script like kilinich does! :tup:
Thanks Xray :tup: .
Just curious, what thyme commands or methods or generally scripts have you learned from me & my scenes that you haven't understood before? :s
What I have learned from you is to combine calculations so that they are short and efficient. A simple example would be:

In the past I would write:
postStep = (e)=>{angle > 0.0 ? {color = [1,0,0,1]}:{color = [0,0,0,1]}}

But now I learned that I could put the code in the color script box like this:

color = {angle > 0.0 ? [1, 0, 0, 1] : [0, 0, 0, 1]}

I learned that from you! :)
It could be too:
postStep = (e)=>{ color = angle > 0.0 ? [1,0,0,1] : [0,0,0,1] };
But, im intereste on what did you you learn from me, is that the only thing that you learned
form me?
I don't recall everything that I learned from you, but in general your code is compact and efficient, and that is mostly what I learned from you.

Thanks!