Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed yesterday.
Improve this question
I'm trying to follow this advice here on how to format your TOC using a bookmark:
https://www.kdpcommunity.com/s/question/0D5f400000FHVFhCAP/google-docs-and-toc?language=en_US
But none of it works., My KDP pages still shows:
I do not believe the advice in that thread is accurate. If it is, I have been unable to replicate it. I have tried the following, none of which have worked:
Added Headings to the document and then auto-generating the ToC.
Additionally Bookmarking those headings
Changing the auto-generated ToC so it links to the Bookmarks rather than the headings.
Not using the auto-generated ToC and instead manually building one with links to Bookmarks
All of these will create a working table of contents which is not then recognised by KDP. I have not found any solution for getting a table of content generated in Google Docs (by any method) to show when upload to KDP. I assume this is because of the way Google Docs generates the Word doc which is required for KDP. The only workable solution appears to be to edit your document through a third party (either Word or some other package) once you've exported it from Google Docs.
I suspect there's a glitch in Amazon's programming. I have been uploading my books for years in Word with a manually created TOC that meets Smashwords' specifications (they're very picky). KDP always recognized the TOC until about a year ago. Suddenly even books that I've updated in a minor way and re-uploaded are marked as lacking a TOC. Yet when I opened their previewer, there's the TOC and I can click the links and they work fine. I appreciate that others have tried these multiple time-wasting attempts to fix the problem and that they don't work any better than my time-tasted (but no longer recognized) method.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 days ago.
Improve this question
Im writing a script and need the contents of for example this webpage:
https://pcb.inc.hp.com/webapp/#/nl-nl/contents/33128146?type=I&hierarchy=F&status=L&status=O
Im using scrapy and usually all works out but I am currently unable to get the html of this page with Requests or scrapy or any other module. Does someone know what could be going wrong?
The website is using AngularJS to dynamically generate content upon loading. You cannot scrape the contents directly from this website, instead I'd suggest using something like Selenium with Python to scrape data.
Or conversely, depending on what you need, you can check the Network tab in Chrome Dev Tools to see the requests being made, and scrape the data from those URLs.
For instance
Request URL: https://pcb.inc.hp.com/api/catalogs/nl-nl/nodes/0/children?status[]=O&status[]=L&hierParadigm=F
Response: {"baseProdname":"ROOT_NODE","oid":0,"level":0,"status":["O","L"],"cultureCode":"nl-nl","children":[{"baseProdname":"Solutions","oid":8176594,"level":1,"status":["L","O"],"cultureCode":"nl-nl"},{"baseProdname":"Scanners/Copiers/Faxes","oid":15179,"level":1,"status":["L","O"],"cultureCode":"nl-nl"},{"baseProdname":"Software","oid":8133386,"level":1,"status":["L","O"],"cultureCode":"nl-nl"},{"baseProdname":"Ink/Toner/Paper/Printer Supplies","oid":12771,"level":1,"status":["L","O"],"cultureCode":"nl-nl"},{"baseProdname":"Laptops and Hybrids","oid":321957,"level":1,"status":["L","O"],"cultureCode":"nl-nl"},{"baseProdname":"Printers and Multifunction","oid":18972,"level":1,"status":["L","O"],"cultureCode":"nl-nl"},{"baseProdname":"Point of Sale Systems","oid":7491307,"level":1,"status":["L","O"],"cultureCode":"nl-nl"},{"baseProdname":"Desktops & Workstations","oid":12454,"level":1,"status":["L","O"],"cultureCode":"nl-nl"},{"baseProdname":"Monitors","oid":382087,"level":1,"status":["L","O"],"cultureCode":"nl-nl"},{"baseProdname":"Services","oid":8362107,"level":1,"status":["L","O"],"cultureCode":"nl-nl"},{"baseProdname":"Accessories","oid":8386448,"level":1,"status":["L","O"],"cultureCode":"nl-nl"},{"baseProdname":"3D Materials and Consumables","oid":20063457,"level":1,"status":["L","O"],"cultureCode":"nl-nl"},{"baseProdname":"Handhelds and Calculators","oid":215348,"level":1,"status":["L","O"],"cultureCode":"nl-nl"},{"baseProdname":"Industries","oid":20008722,"level":1,"status":["L"],"cultureCode":"nl-nl"},{"baseProdname":"Tablets","oid":5169094,"level":1,"status":["O"],"cultureCode":"nl-nl"},{"baseProdname":"Projectors","oid":3338965,"level":1,"status":["O"],"cultureCode":"nl-nl"},{"baseProdname":"Digital Cameras and Photo Studios","oid":382085,"level":1,"status":["O"],"cultureCode":"nl-nl"}]}
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
i cloned this haskell-based blog project:
git clone https://phabricator.chromabits.com/diffusion/B/blog blog-by-chromabits
i setup a blog successfully: http://cb.smt.biz.st ,but a post written in chinese has "warped characters",the post is http://cb.smt.biz.st/posts/2016/08/13/test-1/ ,
how to fix this "warped characters" issue?
Your website is encoded in UTF-8, and does in fact contain proper chinese text. Your problem is that the website doesn't advertise that it is encoded that way, therefore any browser you'll use will simply take an educated guess (which will often be wrong). For example, Chrome on Windows 10 picks Windows-1252 as the character encoding for me, which is of course wrong. A browser on linux might default to UTF-8 instead, so a user like that might not see anything wrong.
A simple bandaid fix for this would be to simply state the encoding in the html header:
<head>
<meta charset="utf-8">
</head>
that will fix it for that page at least. Going forward you should set up your webserver to send the correct encoding in the HTTP header (it's part of the Content-Type header field, see here for details).
You can also tell your browser to use a particular encoding for a website to diagnose issues like this.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
This may be simple question. But i did quite a bit research on Google, Stack-overflow & ebay for last 2 days before posting here.
Scenario
My company sells items via ebay. I am working on a new listing template (HTML page which describes about selling item).
Please see http://www.ebay.com.au/itm/4x-SAMSUNG-CLP-680DW-680DN-CLP680-CLT-506S-CLT506-506-CLTK-506-TONER-REFILLS-/380697552903
In the listing, blue color portion is the template created by me.
Problem
I have 5 Anchor links (PAYMENTS, POSTAGE & HANDLING, OUR LISTINGS, WARRANTY & RETURNS, CONTACT US) on top of the template, which takes customers quickly to corresponding sections on the listing.
Actually listing template itself is a html file, which we used to modify as per product spec and upload together with ebay listing. All works fine on me local PC.
Once uploaded in to ebay, Ebay amends with some wired URL and navigation doesn't work at all. In ebay, once i hoover over the link, it shows following link,
example for PAYMENT,
http://vi.raptor.ebaydesc.com.au/ws/eBayISAPI.dll?ViewItemDescV4&item=380697552903&t=1376555146000&tid=-1&category=16204&seller=tonerstop&excSoj=1&rptdesc=1&excTrk=1&lsite=15#pay
I can see # tag is appended correctly. But somehow its not functioning as expected.
Interesting Finding
Adding more complexity, this issue apparently not consistent too. Sometimes it works as well. In some situation it forms a complete different link and works. See example below.
example for PAYMENT,
http://www.ebay.com.au/itm/4x-SAMSUNG-CLP-680DW-680DN-CLP680-CLT-506S-CLT506-506-CLTK-506-TONER-REFILLS-/380697552903?#pay
But once you refresh the browser, it stops working again.
Tried Solutions
1.Rename anchor text assuming there may be other anchor text with same name. Didn't work.
2.Tried java script. But its not supported by ebay listing.
3.Looking for slimier template on ebay to see if those working. (Still looking)
Questions
Why its happening intermittently?
Is there any special ebay requirement for anchor texts?
Am i missing (of course) any thing here?
More Info
Issue still exists. Did check with 20+ different vendor's listing.
Had a long chat/email communication with ebay. But couldn't get passed to a developer other than customer support team.
So no choice for me other than to remove all the anchor menus.
I got the same problem and solved it by using another method:
onclick="document.getElementById('XXXXX').scrollIntoView(true); return false;" href="#XXX
etc. like a normal anchor.
Bye!
Disclaimer:
I am aware there is a duplicate for this question but it has no answers. Craig Peterson, Mason Wheeler and other 13 people were wondering why the person who asked a question may need the answer. They said:
because trying to open a webpage and hide it from the user sounds kinda suspicious, and we're honorable coders here who don't want to help anyone write malware. So please convince us you've got some legitimate reason to want to do this, or you're not likely to get any answers.
I tried to edit the original message in order to provide such reason and hopefully get the answer but the modification had been rejected by dgw and albertjan, saying:
This edit is incorrect or an attempt to reply to or comment on the existing post
So I am providing the reason for the question again, I believe it is pretty valid.
The reason:
This may be needed for running a specific Javascript lib, which cannot run on server. For example, for Google Analytics code, which must be run in the default browser (to avoid cookie confusion). And of course, we do not want to open any pages on user desktop although there is nothing to hide really.
Please advise.