| Which name is best for this program? |
| TIApps |
|
35% |
[ 19 ] |
| CEApps |
|
37% |
[ 20 ] |
| BrowseTI |
|
9% |
[ 5 ] |
| BrowseCE |
|
16% |
[ 9 ] |
|
| Total Votes : 53 |
|
Tari wrote:
Looks like you're bumping into things using varying text encoding, since your first example looks like UTF-8 interpreted as CP-1252 (
'\u2014'.encode('utf-8').decode('windows-1252') to incorrectly interpret a UTF-8 em-dash yields that repeating pattern) and the second looks like UTF-16 also interpreted as CP-1252 (
'T'.encode('utf-16').decode('windows-1252') gives you a byte order mark at the beginning then alternating null characters throughout).
A very simple heuristic you could use would be to assume UTF-8 unless there's a UTF-16 byte order mark at the beginning of the file and then use UTF-16. That would correctly handle both of the examples you've given and plain ASCII, but not any less common encodings. More robust would be to automatically guess the correct encoding using a library such as
chardet.
I actually researched the encoding issue before you posted, and I used chardet to (attempt to) get the file's encoding, and now the issues are fixed, take a look.
ColurMine wrote:
ColurMine wrote:
PaulGamerBoy360 wrote:
ColurMine wrote:
Just now I realized this:
Remember
this website that allows you to send files to your calculator?
It takes advantage of WebUSB to be able to do this, so if I am able to use WebUSB to connect to calculators, then this could potentially become a web client instead. This can also fix the cross-platform issue that was mentioned earlier.
I prefer Desktop Applications, web applications are not as cross platform as they seem, different browsers have different thing you will have to change for each browser to work right with it, a desktop application, you would only need to make 3 versions.
It is probably better to use a desktop application, and nowadays everyone has the JVM because of games like Minecraft, so I could recreate the app using Java, and you could just install JVM for your OS to use this app. Java is already cross platform!
Then again, I could use Python's TkInter because it also works on Mac.
EDIT: It's actually easier to manipulate calculator files in Python then I thought, so I'm sticking with Python.
I literally just realized that tivars_lib_py only manipulates calculator files and does not send them
Tbh, I'm kinda thinking about going back to a web app...
I've established the web UI for the app, using Bulma CSS.
I was able to get ticalc running in the browser without NPM or Node. I basically reverse-engineered the way ticalc is initialized, directly from ticalc.link.
ColurMine wrote:
I was able to get ticalc running in the browser without NPM or Node. I basically reverse-engineered the way ticalc is initialized, directly from ticalc.link.

Quick note (if you didn't already know): WebUSB only works on most chromium browsers, afaik
also add 8xk support as ticalc.link doesn't support that, I don't know if it is because it is harder to do or they just didn't add it yet
korbosoft wrote:
ColurMine wrote:
I was able to get ticalc running in the browser without NPM or Node. I basically reverse-engineered the way ticalc is initialized, directly from ticalc.link.

Quick note (if you didn't already know): WebUSB only works on most chromium browsers, afaik
i know
ti_kid wrote:
also add 8xk support as ticalc.link doesn't support that, I don't know if it is because it is harder to do or they just didn't add it yet
I am not doing that.
Now I have local file functionality and device selection.
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.
»
Go to Registration page
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum