Comments (6)
@Kapeli Can we add a node or attribute to the xml of the each feed that give you the size?. After that it will be easy to add the file size to the app.
from dash-ios.
@nexon Have you considered sending a HEAD request to the server requesting the archive and checking the Content-Length?
from dash-ios.
@Kapeli Yes, but is not the best option here since you will need to send N request where N is the quantity of visible cells, in which case is a waste of resources.
Also you need to consider cancelling the request when the user press for downloading.
Another problem is what happen with the request (HEAD) when the user scroll. Should be cancelled?, we should get a reference to the Feed Object when doing the request so we don't cancel it and we wait for the result and we put it in the Feed Object (we need to avoid leaking memory)?
from dash-ios.
How would all this be different if you had an attribute in the XML itself?
from dash-ios.
For main docsets and cheat sheets, maybe you can maintain an XML feed especially for the sizes of each docset and cheatsheet? For 3rd-party ones, maybe sizes can be integrated into the main feed.
from dash-ios.
For main docsets I plan on moving to a JSON feed (like the cheatsheet one), which will include sizes. This won't come anytime soon though.
For cheatsheets I don't see a point in showing the size. All of them are less than 200 KB in size. Only LaTeX_Math_Symbols
is 1.1MB.
from dash-ios.
Related Issues (20)
- Feature Request: Dark mode for Dash iOS HOT 1
- Correct way to add docs? HOT 2
- MySQL Documentation Crash HOT 1
- BUG: Search bar cover the first search result HOT 1
- Ruby on Rails 6 does not appear on iOS Dash HOT 1
- Downloadable resources for Ipad HOT 2
- Transferred .docset from iTunes not installed on iPad. HOT 2
- Hide Snippets view HOT 1
- Crashes on iOS 13 when searching
- Creating documentation for AWS
- transfer docsets using AirDrop seems broken HOT 2
- FIX the convert and transfer mechanisms with catalina/ios13.
- S HOT 1
- What do I do if this error happens?
- Snippet expand not working on netbeans 12.4 HOT 2
- clang: error: linker command failed with exit code 1 (use -vto see invocation)
- Too many errors to build successfully HOT 3
- what is name Dash in IOS or IpadOS in china region? HOT 3
- I also think the dark mode is pretty cool HOT 1
- Any Way to Generate Apple Documentation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dash-ios.