Author Topic: Hide documents on TI-Nspire [Ndless]  (Read 18578 times)

0 Members and 1 Guest are viewing this topic.

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Hide documents on TI-Nspire [Ndless]
« on: December 24, 2011, 08:04:36 pm »
Last edit : 08/01/12


http://tiplanet.org/forum/archives_voir.php?id=3847&play=


Original Post :
Who said Christmas was not for programming ?
Craft of the day : hide documents during exams on TI-Nspire



Soon on TI-Planet =)


« Last Edit: January 08, 2012, 10:42:31 am by Levak »
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Hide documents on TI-Nspire [Ndless]
« Reply #1 on: December 25, 2011, 05:58:50 am »
Nice :)
I assume this means you got your toolchain up and running? :P

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Hide documents on TI-Nspire [Ndless]
« Reply #2 on: December 25, 2011, 07:14:50 am »
Nice :)
I assume this means you got your toolchain up and running? :P

Yes :D
After hours of troubleshooting that I was root and we didn't need to :D
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Hide documents on TI-Nspire [Ndless]
« Reply #3 on: December 25, 2011, 11:02:13 am »
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Hide documents on TI-Nspire [Ndless]
« Reply #4 on: December 25, 2011, 11:49:51 am »
Well, congratulations :)
Although I don't have any purpose for it, I'm quite interested in how it works.
Mind explaining a bit ? :D

Thanks

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Hide documents on TI-Nspire [Ndless]
« Reply #5 on: December 25, 2011, 01:38:41 pm »
I think this explains a lot :

Code: [Select]
  char *origin = "/documents/hidden/";
  char *hidden = "/hidden/";

:evillaugh:
« Last Edit: December 25, 2011, 01:40:08 pm by Levak »
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline GB

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 147
  • Rating: +15/-3
  • Use Microhard WindOS today!
    • View Profile
    • MICROHARD CORPORATION
Re: Hide documents on TI-Nspire [Ndless]
« Reply #6 on: December 25, 2011, 05:10:48 pm »
That's a cool program! It'll be neat to try it out once Ndless is finished up and released!
TI-86 USER
CASIO PRIZM USER
TI-NSPIRE USER
TI-84 PLUS SILVER EDITION USER
TI-83 PLUS USER

PROJECTS:

Microhard Paint
http://www.omnimaga.org/index.php?topic=11915.0

TI-Nspire Character Map
http://www.omnimaga.org/index.php?topic=7725.msg142555#msg142555

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Hide documents on TI-Nspire [Ndless]
« Reply #7 on: December 25, 2011, 05:53:16 pm »
That's a cool program! It'll be neat to try it out once Ndless is finished up and released!
It works on Ndless 2 and 3 as it. no need to recompile it for Ndless 2.
=)
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Hide documents on TI-Nspire [Ndless]
« Reply #8 on: December 25, 2011, 06:50:56 pm »
Ok, sorry for double posting, but it seems that it doesn't work as expected on ndless 2.

So I removed show_dialog_box() from the code to make a non-gui version for ndless 2
http://levak.free.fr/ftp/nspire/HideManager/src/hide_nogui.tns

For upcomming ndless 3, I'm developping a password manager, but I have a problem : each time the program enter in a loop, glitches apear on the screen ... I would like to keep the screen as it to fake an error but asking a password in background.
Any idea ?
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Hide documents on TI-Nspire [Ndless]
« Reply #9 on: December 25, 2011, 06:58:08 pm »
Most likely the glitching is because its switching color mode on you nspire.
Try to add set the color mode depending on the model, and it should be fine.
(Hackspire contains the info you need)

It could also be that Extended will fix this, but for now I guess doing it manually is the best :)

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: Hide documents on TI-Nspire [Ndless]
« Reply #10 on: December 25, 2011, 08:53:59 pm »
Very nice project Levak!  Looks useful! ;)


Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55828
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Hide documents on TI-Nspire [Ndless]
« Reply #11 on: December 25, 2011, 11:21:26 pm »
Interesting. So this is the TI-Nspire incarnation of MirageOS's hide function?
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF



T-Shirt store | Reverbnation | Facebook | Youtube | Twitter | Spotify

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Hide documents on TI-Nspire [Ndless]
« Reply #12 on: December 26, 2011, 03:05:48 am »
Ok, sorry for double posting, but it seems that it doesn't work as expected on ndless 2.

So I removed show_dialog_box() from the code to make a non-gui version for ndless 2
http://levak.free.fr/ftp/nspire/HideManager/src/hide_nogui.tns

Compatibility of show_dialog_box() has been broken by TI with OS 3.x. Make sure to build Ndless 2 programs with the Ndless 2 SDK.

each time the program enter in a loop, glitches apear on the screen ...

Can you please post the guilty code?
Ndless.me with the finest TI-Nspire programs

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Hide documents on TI-Nspire [Ndless]
« Reply #13 on: December 26, 2011, 09:43:46 am »
each time the program enter in a loop, glitches apear on the screen ...

Can you please post the guilty code?

A while loop without lcd_incolor() on CX. =)
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Hide documents on TI-Nspire [Ndless]
« Reply #14 on: December 26, 2011, 10:14:21 am »
The screen will be cleared on program startup on CX in the next update to avoid this (the documents screen cannot be displayed in grayscale).
Ndless.me with the finest TI-Nspire programs