Giter Club home page Giter Club logo

Comments (11)

moollaza avatar moollaza commented on June 28, 2024

@idlem1nd thanks a lot for making this issue and for providing the details from the server and console. It's really odd that nothing's happening and yet there are no errors.

Regarding the lack of organic results, that's expected, DuckPAN doesn't surface any organic links, it just produces instant answers from whichever repo you're currently using.

Can you please post a screenshot of what you do see? Is the AnswerBar there? If so, do you see the "Images" and "Videos" tabs? Does anything happen when you click them?

Also, try taking a look at the HTML -- it should look identical to what I'm seeing here:
image

Most important is the <div id='zci-xkcd'>.

Do you happen to have any browser extensions or adblockers running? They shouldn't be targeting the Instant Answers, but I'm just trying to eliminate any possibilities. I personally use Chrome & FF when testing with DuckPAN on my Macbook Air so I know it should be working for you at the very least. Have you tried any other browsers?

Take another look, try these and let me know how it goes :)

from p5-app-duckpan.

idlem1nd avatar idlem1nd commented on June 28, 2024

@moollaza thanks for helping me on this.

I followed your steps and tried to eliminate as many possibilities as possible:

  • Cloned a fresh copy of the repo and ran duckpan server from there
  • Disabled all Chrome extensions (and made sure javascript was enabled on all sites)
  • Tried in Firefox, Chrome and Safari

Unfortunately I'm still getting the same problem. The Images and Video tabs appear, and work, but nothing from the XKCD IA. In my screenshot below you can see there's no <div id='zci-xkcd'> after the image and video divs.

Any further ideas? Might testing in the DuckDuckHack VM be a better idea?

screen shot 2014-06-04 at 17 48 32

from p5-app-duckpan.

moollaza avatar moollaza commented on June 28, 2024

@idlem1nd I have a couple more ideas

  1. try duckpan server -v --no-cache let me know if that makes a difference
  2. Try using Codio: https://duck.co/blog/codio-duckpan. If that fails then it seems it might be a browser problem. I'm gonna install DuckPAN locally on my Mac and see what happens but this is definitely odd behaviour

from p5-app-duckpan.

moollaza avatar moollaza commented on June 28, 2024

@idlem1nd so I just installed DuckPAN on my MacBook Air and tried duckpan server in Chrome & Safari and everything seems to be working as expected. I'm seeing the XKCD result appear as it should. I'm Running OSX Mavericks 10.9.3.

Btw, have you tried other instant answers? Try: "npm http-server", "the dark knight movie", "flight tracking apps", "how to mix a tom collins" (there's plenty)

from p5-app-duckpan.

idlem1nd avatar idlem1nd commented on June 28, 2024

Hey, I got it working! So I tried Codio and connected to it from my iPhone (very neat that Codio!) but still wasn't showing the instant answers, no matter if it was npm, apps, movies, whatever. So then I realised the only difference must be the zeroclickinfo-spice code that I was using. I was using my fork at idlem1nd/zeroclickinfo-spice, so I reverted back to duckduckgo/zeroclickinfo-spice - and it all started working! It now works fine on Codio and locally, and I've updated my fork with the upstream changes to that I can continue working there.

Thanks very much for your help. Let me know if the diff would be of use?

screen shot 2014-06-05 at 17 40 40

from p5-app-duckpan.

moollaza avatar moollaza commented on June 28, 2024

@idlem1nd Ah! Glad you got it working. How old was your Spice fork? I wouldn't mind seeing the diff, feel free to post here or in a Gist (they have a nice diff syntax)

from p5-app-duckpan.

idlem1nd avatar idlem1nd commented on June 28, 2024

Looks like I was missing everything previous to about July 5th. This is the first commit I got after merging upstream: 1470c956693f6720f4c8e70128e4e19b83e5dba8. I'm not that advanced in git (or github) yet so I'm not sure the best way to show you a diff of that commit (or the previous one for the actual fork point?) vs. my second to last commit d5e1ed2a42a64e829ddbb2201cbbf54506734006

from p5-app-duckpan.

moollaza avatar moollaza commented on June 28, 2024

@idlem1nd that commit (duckduckgo/zeroclickinfo-spice@1470c95) is from July 4th, 2011 -- how old is/was your Spice repo fork?

from p5-app-duckpan.

idlem1nd avatar idlem1nd commented on June 28, 2024

That doesn't sound right! I must have misread the history. I reckon it
would have been sometime in May that I forked it. Is there some command
line magic I can use to check?

On 6 Jun 2014, at 15:10, Zaahir Moolla [email protected] wrote:

@idlem1nd https://github.com/idlem1nd that commit is from July 4th, 2011
-- how old is/was your Spice repo fork?


Reply to this email directly or view it on GitHub
#74 (comment)
.

from p5-app-duckpan.

moollaza avatar moollaza commented on June 28, 2024

@idlem1nd Your GitHub activity shows you forked the repo on May 11th

Still not sure how you managed to get old/broken code but in general you should try to always have the latest code. We've been pretty busy lately pushing some major changes to the repos so potentially you forked the repo before an important change went into the Master branch.

I don't think there's much to worry about now that we have everything working and we figured out the cause.

Thanks again for reporting this, happy hacking!

from p5-app-duckpan.

idlem1nd avatar idlem1nd commented on June 28, 2024

Ah, didn't think to look there, thanks for the tip. Yeah, I'll stay up to
date from now on. Thanks again for your help!

On 6 Jun 2014, at 22:29, Zaahir Moolla [email protected] wrote:

@idlem1nd https://github.com/idlem1nd Your GitHub activity
https://github.com/idlem1nd?tab=activity shows you forked the repo on May
11th

Still not sure how you managed to get old/broken code but in general you
should try to always have the latest code. We've been pretty busy lately
pushing some major changes to the repos so potentially you forked the repo
before an important change went into the Master branch.

I don't think there's much to worry about now that we have everything
working and we figured out the cause.

Thanks again for reporting this, happy hacking!


Reply to this email directly or view it on GitHub
#74 (comment)
.

from p5-app-duckpan.

Related Issues (20)

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.