Code Monkey home page Code Monkey logo

zeroclickinfo-fathead's Introduction

This repo is now archived

DuckDuckHack went on maintenance mode in 2015 and we aren't in a position to continue it. This repo hasn't been maintained subsequently and so we are archiving it.

Need to report a bug?

If you find a bug or relevancy issue, the best way to report this is via the Feedback button on the DuckDuckGo.com search results page. These issues are compiled and reviewed daily.

Have a suggestion or idea?

The best way to report these is also via the Feedback button on the DuckDuckGo.com search results page.

You can also share your thoughts with our community on Reddit.

zeroclickinfo-fathead's People

Contributors

adityatandon007 avatar ahetawal-p avatar anoved avatar bfmags avatar desbma avatar dhruvbird avatar ezgraphs avatar flaming-toast avatar guiltydolphin avatar hchienjo avatar hestben avatar jbarrett avatar jdorweiler avatar majuscule avatar mariagraziaalastra avatar mellon85 avatar moollaza avatar moritanosuke avatar pfirsichbluete avatar pjhampton avatar rafaelpadovezi avatar rasikapohankar avatar rpicard avatar sahildua2305 avatar samskeller avatar soh-cah-toa avatar souravbadami avatar veerpalbrar avatar yegg avatar zachthompson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zeroclickinfo-fathead's Issues

ThePokemonEncyclopedia: Multiple "Read More" Sources

Hello!

First, I'd like to say thanks for this add-on. It's really useful, especially for quickly looking up a pokémon's type in battle. I would like to suggest that there be more options for the "Read More"/"More Info" links. For example, Umbreon's card only shows a link to the Pokémon Wikia, but it could link to other sources as well, such as Bulbapedia. (I'm not sure if it already does this for other pokémon or if different sources already show up, sorry about that if I'm wrong.) It's not a major issue, but it would be nice for people who prefer a certain source (like me 😛)

Thanks a ton!

IA Page: http://duck.co/ia/view/the_pokemon_encyclopedia

duckpan 0.132 disallows empty icon_url values

As of commit bf16240

$ duckpan query
Checking for latest App::DuckPAN ... 0.132
Checking for latest DDG Perl package... 0.118

Using the following DDG instant answers:

 - DDG::Fathead::ArchPkgs (Any)
 - DDG::Fathead::Bible (Any)
 - DDG::Fathead::CSSRef (Any)
 is not a valid URL. at lib/DDG/Fathead/CVE.pm line 14.
Compilation failed in require at /home/dvogel/perl5/lib/perl5/App/DuckPAN/Cmd.pm line 22.
$ grep -n "icon_url ..;" lib/DDG/Fathead/*.pm
lib/DDG/Fathead/CppreferenceDoc.pm:18:icon_url "";
lib/DDG/Fathead/CVE.pm:14:icon_url '';
lib/DDG/Fathead/MDNJS.pm:15:icon_url "";
lib/DDG/Fathead/Scholrly.pm:15:icon_url "";

Country languages: Doesn't trigger for some languages

Sometimes this IA is triggered but sometimes the standard Wikipedia fathead is triggered instead, or even no IA at all. For example...

Works (triggers country languages IA):
https://duckduckgo.com/?q=afghanistan+language

Triggers Wikipedia fathead IA:
https://duckduckgo.com/?q=language+in+brazil
https://duckduckgo.com/?q=mexico+language
https://duckduckgo.com/?q=language+in+mexico

Doesn't trigger any IA:
https://duckduckgo.com/?q=brazil+language


IA Page: https://duck.co/ia/view/country_languages

HTML5 plugin

Hello @rpicard ,

I was looking and testing some queries in duckduckgo, and searching for "html video" it returned to me the Wikipedia source, instead of HTML5Doctor's trough my plugin. What's going on?

More: I've noted that my plugin only works with I search with something like this: "html tag". What happened with my other queries, like "tag abbr", "html5 table" and so on?

C++ documentation plugin is broken

The C++ documentation plugin is completely broken at the moment -- all target links are invalid. Take, for example, search query std::unordered_map. The returned link points to http://www.cplusplus.com/%5Bhttp://en.cppreference.com/w/cpp/container/unordered_map%20Cppreference%5D which is an invalid link.

In addition to that, newlines are displayed as \n.

Mercurial documentation instant answer - broken "More At" link

When you search for a Mercurial command, like hg commit, it gives a short description from the documentation site. However, clicking on that to go to the documentation site doesn't show you the correct spot on the page.

It links to http://www.selenic.com/mercurial/hg.1.html#hg commit, when it should be http://www.selenic.com/mercurial/hg.1.html#commit. (The difference is the last part, after the #. It should just be the command name, without hg in front of it.

HelloWorld: fullstop required after certain "hello world" searches

While going through the Basic Fathead Tutorial I noticed it has an example link of the "hello world" Instant Answer. That link has a fullstop in search. I tried removing it and the instant answer stopped working entirely.

Doesn't Work:
hello world scala link
hello world javascript link

However this does work (added fullstop at the end):
hello world scala. link
hello world javascript. link

python and ruby both work with and without the fullstops so this doesn't seem to be consistent.


IA Page: http://duck.co/ia/view/hello_world

Can't locate object method "handle_request_matches" via package "DDG::Fathead::ArchPkgs" at /home/dvogel/perl5/lib/perl5/DDG/Block.pm line 186.

$ duckpan query
Checking for latest App::DuckPAN ... 0.132
Checking for latest DDG Perl package... 0.118

Using the following DDG instant answers:

 - DDG::Fathead::ArchPkgs (Any)
 - DDG::Fathead::Bible (Any)
 - DDG::Fathead::CSSRef (Any)
 - DDG::Fathead::CVE (Any)
 - DDG::Fathead::CppreferenceDoc (Any)
 - DDG::Fathead::FileFormats (Any)
 - DDG::Fathead::FirefoxAboutConfig (Any)
 - DDG::Fathead::HGNCGeneNames (Any)
 - DDG::Fathead::HTMLRef (Any)
 - DDG::Fathead::HelloWorld (Any)
 - DDG::Fathead::ISO3166Codes (Any)
 - DDG::Fathead::Java (Any)
 - DDG::Fathead::LDraw (Any)
 - DDG::Fathead::LegalDocs (Any)
 - DDG::Fathead::MDNJS (Any)
 - DDG::Fathead::MIMETypes (Any)
 - DDG::Fathead::NodeJS (Any)
 - DDG::Fathead::PCIIDs (Any)
 - DDG::Fathead::Perl6Doc (Any)
 - DDG::Fathead::Plone (Any)
 - DDG::Fathead::PyPI (Any)
 - DDG::Fathead::RFC (Any)
 - DDG::Fathead::RedisCommands (Any)
 - DDG::Fathead::Scholrly (Any)
 - DDG::Fathead::TclRef (Any)
 - DDG::Fathead::UnixMan (Any)
 - DDG::Fathead::XEP (Any)
 - DDG::Fathead::YUI3 (Any)

(Empty query for ending test)
Query: Hello
  You entered: Hello

Caught error:

Can't locate object method "handle_request_matches" via package "DDG::Fathead::ArchPkgs" at /home/dvogel/perl5/lib/perl5/DDG/Block.pm line 186.

Query: 

PyPi: module info out of date

The module information for the pypi instant answer is out of date. The Latest Version is incorrect and also the 'More at Python Package Index' points at the location of the old package.

In case of certifi the package points to version https://pypi.python.org/pypi/certifi/14.05.14 while the latest version is a year newer. This is not only with the certify module but I tried other modules as well. Try python requests or python panda

ddg-pypi-certifi


IA Page: http://duck.co/ia/view/py_pi

legal_docs: remove internal links form the abstract text

There's a ( showing up at the end of the abstract text. Just need to update the parser to remove the internal links inside the ().
selection_196

Here's the source data for this entry as an example.

Document description: Bylaws for Delaware Corporation is an open source legal document (<a href="http://www.docracy.com/doc/showalltagged?tag=governance">governance</a>, <a href="http://www.docracy.com/doc/showalltagged?tag=startup">startup</a>, <a href="http://www.docracy.com/doc/showalltagged?tag=delaware">delaware</a>, <a href="http://www.docracy.com/doc/showalltagged?tag=incorporation">incorporation</a>).&nbsp;<a href="http://www.docracy.com/sign/usedoc?signing=false&docId=45">[download]</a>    http://www.docracy.com/45/bylaws-for-delaware-corporation

unix_man missing a lot

Unix man seems to be missing a lot. I've tried man bash, man dd, man sh... these are not obscure, but they're not getting picked up. If it's an issue with the source, I wonder if this may need to be revised. I might also recommend the man pages from die.net.

I'm happy to contribute, if that's what it would take. Wanted to bring up the issue, though, before getting into the code.

MySQL: linebreaks `__NEWLINE__` and prefix 'mysql>' shown in example view

When DDG-ing for mysql substring, the example view contains:

SUBSTRING(str,pos), SUBSTRING(str FROM pos), SUBSTRING(str,pos,len), SUBSTRING(str FROM pos FOR len):
mysql> SELECT SUBSTRING('Quadratically',5); -> 'ratically' __NEWLINE__mysql> SELECT SUBSTRING('foobarbar' FROM 4); -> 'barbar' __NEWLINE__mysql> SELECT SUBSTRING('Quadratically',5,6); -> 'ratica' __NEWLINE__mysql> SELECT SUBSTRING('Sakila', -3); -> 'ila' __NEWLINE__mysql> SELECT SUBSTRING('Sakila', -5, 3); -> 'aki' __NEWLINE__mysql> SELECT SUBSTRING('Sakila' FROM -4 FOR 2); -> 'ki'

It contains linebreaks __NEWLINE__ and prefix mysql>.

Instead, this would be much more readable:

SUBSTRING(str,pos), SUBSTRING(str FROM pos), SUBSTRING(str,pos,len), SUBSTRING(str FROM pos FOR len):

SELECT SUBSTRING('Quadratically',5); -> 'ratically'
SELECT SUBSTRING('foobarbar' FROM 4); -> 'barbar'
SELECT SUBSTRING('Quadratically',5,6); -> 'ratica'
SELECT SUBSTRING('Sakila', -3); -> 'ila'
SELECT SUBSTRING('Sakila', -5, 3); -> 'aki'
SELECT SUBSTRING('Sakila' FROM -4 FOR 2); -> 'ki'

IA Page: http://duck.co/ia/view/my_sql

Outdated data

I was checking out the fathead IAs and noticed on the docs the following part:

and if necessary, will be run periodically to keep the database current

However, I couldn't find details on how to instruct this, I checked some existing fathead IAs and I assume they are not specified on meta.txt or .pm, but you maybe add a cron on per-case basis?
In any case, it would help to clarify this at the docs.

Lastly, I did a search using the Airport fathead, for a new airport that was added on Sept 2014 and it seems absent from the index: https://duckduckgo.com/?q=airport+AHJ obviously the same case could be for other IAs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.