Comments (3)
i can understand your impression. it might be right, maybe not. not sure.
We have the UID in different representation to be handled. As UID-string, as rUID-string as rUID bytes.
Quite a mix depending on what it's used for. That is also a bit pain for me.
And yeah, maybe uint64 might be the best choice plus some conversion routines back and forth.
If you could go through the code and check if it in the end gives cleaner code, it would be fine for me.
from teddycloud.
Both representations are used for different purposes, the one to compare and the one to identify physical files.
But I see no problem streamlining it into a a UID uint64 representation, as this could clean up the code a bit.
I currently don't see that this would fix the lower/uppercase problem, we check for path existence for an UID, not checking each file/dir.
from teddycloud.
The idea was that if you compare uint64 rather than strings you have no case anymore. But that might be easier said than done. Just looked at some code in handler_cloud.c and it seemed more complicated that it'd need to be. As stated previously, I'm not that deep into the code base and it might be a "Schnapsidee". I'll give it a try once I have some time.
from teddycloud.
Related Issues (20)
- cycle through files (feature request) HOT 4
- On ARM TeddyCloud time stays 0 when not forwarding to cloud HOT 2
- Request to add a license to the repositories HOT 7
- Function "Assign Unknown" cannot find selected content HOT 4
- Set tag as live via webinterface HOT 1
- Private keys are generated as DER, but have .pem file ending HOT 2
- Please set a proper license HOT 4
- Playback error in Safari HOT 1
- Function "Auto-Update tonies.json" does not update periodically HOT 7
- Download of tag crashes HOT 1
- "Library" feature not documented HOT 4
- Extract client certificates for ESP32 via webinterface
- Support RTP streaming to Toniecloud
- Support of several Flex-Tonies HOT 3
- Docs: Explain the purpose and usage of Flex Tonies HOT 2
- Add warning if server CA is not the boxine CA
- Send MQTT event when Tonie gets removed from the Toniebox HOT 7
- teddycloud crashes as soon as I open the website HOT 18
- Re-implement TeddyCloud with e.g. Python to attract more contributions? HOT 1
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 teddycloud.