maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Community (https://talk.maemo.org/forumdisplay.php?f=16)
-   -   2016/2017 coding competition notice (https://talk.maemo.org/showthread.php?t=100350)

pichlo 2018-06-06 09:28

Re: 2016/2017 coding competition notice
 
1 Attachment(s)
Quote:

Originally Posted by peterleinchen (Post 1545172)
@pichlo
are you talking about the 'normal' search on top of page?
Or the power search on the right side.

I know what Power Search is. Strangely, it seemed to work today on all three browsers I tried (Android stock, Sailfish stock and Pale Moon on Windows). I had not tried it for years because it had never worked before, wherever and whenever I tried:

Attachment 39925

velox 2018-06-06 12:19

Re: 2016/2017 coding competition notice
 
I've just had another look at the new Custom Search:
A simple Integration is really trivial with access to the page html, in fact, I have set up one with my account as a test, including some maemo-esque colours. But as I am not a member or representative of Maemo e.V., I don't think that's useful (there seem to be a few search statistics like "top search phrases" to which I would have access).

For a registered non-profit, a free version without ads is available, that might be a nice thing to have. https://www.google.com/nonprofits/

EDIT:
The old search-ID seems to still work. So the working code would be as follows:
Code:

    <script>
        (function() {
          var cx = '012414234624903107508:2laarii9gbw';
          var gcse = document.createElement('script');
          gcse.type = 'text/javascript';
          gcse.async = true;
          gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
          var s = document.getElementsByTagName('script')[0];
          s.parentNode.insertBefore(gcse, s);
        })();
      </script>
      <gcse:search></gcse:search>


wicket 2018-06-06 17:50

Re: 2016/2017 coding competition notice
 
Can we not switch to another search provider? One whose business objective isn't to collect as much data as possible on every individual on the planet?

juiceme 2018-06-07 10:37

Re: 2016/2017 coding competition notice
 
I agree, it is rather pointless to use external provider for searches since the data is in our own servers.

pichlo 2018-06-07 10:59

Re: 2016/2017 coding competition notice
 
Perhaps switch to this one? ;)

r0kk3rz 2018-06-07 17:42

Re: 2016/2017 coding competition notice
 
Wait, why do we have 3 search boxes?

What is wrong with this one - http://talk.maemo.org/search.php , which is a mere 3 items down in the same menu...

peterleinchen 2018-06-07 19:59

Re: 2016/2017 coding competition notice
 
Quote:

Originally Posted by juiceme (Post 1545219)
I agree, it is rather pointless to use external provider for searches since the data is in our own servers.

Yes.
But ...

peterleinchen 2018-06-07 20:01

Re: 2016/2017 coding competition notice
 
Quote:

Originally Posted by r0kk3rz (Post 1545228)
Wait, why do we have 3 search boxes?

What is wrong with this one - http://talk.maemo.org/search.php , which is a mere 3 items down in the same menu...

... have you ever tried to find anything on TMO/MO with the.standard search?
The only eliable procedure is to use tbe 'google' search (as sad as it is).

peterleinchen 2018-06-07 20:26

Re: 2016/2017 coding competition notice
 
Quote:

Originally Posted by velox (Post 1545187)
I've just had another look at the new Custom Search:
A simple Integration is really trivial with access to the page html, in fact, I have set up one with my account as a test, including some maemo-esque colours. But as I am not a member or representative of Maemo e.V., I don't think that's useful (there seem to be a few search statistics like "top search phrases" to which I would have access).

For a registered non-profit, a free version without ads is available, that might be a nice thing to have. https://www.google.com/nonprofits/

EDIT:
The old search-ID seems to still work. So the working code would be as follows:
Code:

    <script>
        (function() {
          var cx = '012414234624903107508:2laarii9gbw';
          var gcse = document.createElement('script');
          gcse.type = 'text/javascript';
          gcse.async = true;
          gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
          var s = document.getElementsByTagName('script')[0];
          s.parentNode.insertBefore(gcse, s);
        })();
      </script>
      <gcse:search></gcse:search>


Thanks!
I support/propose to try that.

wicket 2018-06-07 23:19

Re: 2016/2017 coding competition notice
 
Quote:

Originally Posted by juiceme (Post 1545219)
I agree, it is rather pointless to use external provider for searches since the data is in our own servers.

Agreed. Right now we have Search and Advanced Search (internal) and also Power Search (external). Are you suggesting we get rid Power Search or replace it with some other internal search?

Quote:

Originally Posted by peterleinchen (Post 1545231)
... have you ever tried to find anything on TMO/MO with the.standard search?
The only eliable procedure is to use tbe 'google' search (as sad as it is).

I'm often able to find what I'm looking for with the internal search. Sometimes I use DuckDuckGo if I can't.

One problem with external search engines like DuckDuckGo or Google is that they index words listed under the "Active Topics" which is displayed on every page. These words may be completely irrelevant to the indexed thread, so you end up with a lot of false positives in the search results.

Quote:

Originally Posted by peterleinchen (Post 1545232)
Thanks!
I support/propose to try that.

This is TMO, not some Android forum. Many people here actually care about privacy. I think it's useful to have an external search option but Google is just unacceptable for many TMO users. Not to mention, why on earth should JavaScript be required for searching? I appreciate that velox is trying help out, so no offence, but I think it's time we got rid of Google.

This would be my proposal:

Code:

<iframe src="https://duckduckgo.com/search.html?duck=yes&site=talk.maemo.org&prefill=Search TMO with DuckDuckGo&focus=yes" style="overflow:hidden;margin:0;padding:0;width:483px;height:60px;" frameborder="0"></iframe>
More info here:

https://duckduckgo.com/search_box


All times are GMT. The time now is 03:19.

vBulletin® Version 3.8.8