Omnimaga

Calculator Community => TI Calculators => Calculator C => Topic started by: Levak on December 24, 2011, 08:04:36 pm

Title: Hide documents on TI-Nspire [Ndless]
Post by: Levak on December 24, 2011, 08:04:36 pm
Last edit : 08/01/12

(http://levak.free.fr/ftp/nspire/HideManager/hide.gif)
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 =)


Title: Re: Hide documents on TI-Nspire [Ndless]
Post by: Jim Bauwens on December 25, 2011, 05:58:50 am
Nice :)
I assume this means you got your toolchain up and running? :P
Title: Re: Hide documents on TI-Nspire [Ndless]
Post by: Levak 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
Title: Re: Hide documents on TI-Nspire [Ndless]
Post by: Levak on December 25, 2011, 11:02:13 am
Here it is :

(http://levak.free.fr/ftp/nspire/HideManager/error_hidding.jpg)
(http://levak.free.fr/ftp/nspire/HideManager/success_hidding.jpg)

http://levak.free.fr/ftp/nspire/HideManager/src/hide.tns
Title: Re: Hide documents on TI-Nspire [Ndless]
Post by: Jim Bauwens 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
Title: Re: Hide documents on TI-Nspire [Ndless]
Post by: Levak on December 25, 2011, 01:38:41 pm
I think this explains a lot :

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

:evillaugh:
Title: Re: Hide documents on TI-Nspire [Ndless]
Post by: GB 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!
Title: Re: Hide documents on TI-Nspire [Ndless]
Post by: Levak 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.
=)
Title: Re: Hide documents on TI-Nspire [Ndless]
Post by: Levak 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 ?
Title: Re: Hide documents on TI-Nspire [Ndless]
Post by: Jim Bauwens 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 :)
Title: Re: Hide documents on TI-Nspire [Ndless]
Post by: apcalc on December 25, 2011, 08:53:59 pm
Very nice project Levak!  Looks useful! ;)
Title: Re: Hide documents on TI-Nspire [Ndless]
Post by: DJ Omnimaga on December 25, 2011, 11:21:26 pm
Interesting. So this is the TI-Nspire incarnation of MirageOS's hide function?
Title: Re: Hide documents on TI-Nspire [Ndless]
Post by: ExtendeD 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?
Title: Re: Hide documents on TI-Nspire [Ndless]
Post by: Levak 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. =)
Title: Re: Hide documents on TI-Nspire [Ndless]
Post by: ExtendeD 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).
Title: Re: Hide documents on TI-Nspire [Ndless]
Post by: Levak on December 26, 2011, 10:59:15 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).

I don't think this is a good idea, really.
As jim said, I only have to put lcd_incolor() and it is ok.

otherwise I can't do that:
(http://levak.free.fr/ftp/nspire/HideManager/password.jpg)
Title: Re: Hide documents on TI-Nspire [Ndless]
Post by: Goplat on December 26, 2011, 12:00:43 pm
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).
IMO, Ndless shouldn't switch to grayscale mode at all. Old pre-CX programs won't work on the CX without a rebuild anyway, so there's no backward compatibility reason to do so. I expect most CX programmers will want to use color when available.
Title: Re: Hide documents on TI-Nspire [Ndless]
Post by: Levak on December 26, 2011, 01:20:22 pm
Here we are =)

(http://levak.free.fr/ftp/nspire/HideManager/hide.gif)
http://tiplanet.org/forum/archives_voir.php?id=3847&play=
Title: Re: Hide documents on TI-Nspire [Ndless]
Post by: Nick on December 26, 2011, 01:36:51 pm
it seems great, but most people won't be able to use it yet, since normal people like we (j/k) don't have Ndless installed yet :)

but from the moment ndless appears, it will be a standard on my calc!
Title: Re: Hide documents on TI-Nspire [Ndless]
Post by: Jim Bauwens on December 26, 2011, 01:45:45 pm
Glad you got it working :)
Title: Re: Hide documents on TI-Nspire [Ndless]
Post by: ExtendeD on December 27, 2011, 03:33:48 am
IMO, Ndless shouldn't switch to grayscale mode at all. Old pre-CX programs won't work on the CX without a rebuild anyway, so there's no backward compatibility reason to do so. I expect most CX programmers will want to use color when available.

You're right after all, I don't know why I am sticking with this idea.
Title: Re: Hide documents on TI-Nspire [Ndless]
Post by: critor on December 27, 2011, 04:35:12 am
IMO, Ndless shouldn't switch to grayscale mode at all. Old pre-CX programs won't work on the CX without a rebuild anyway, so there's no backward compatibility reason to do so. I expect most CX programmers will want to use color when available.

You're right after all, I don't know why I am sticking with this idea.

Switching to 4-bits indexed Grayscale is a good idea.

No it cannot make old Ndless programs work without a recompilation...

But it can make them work with a recompilation and without any modification to the original source code.
Title: Re: Hide documents on TI-Nspire [Ndless]
Post by: ExtendeD on December 27, 2011, 04:40:29 am
But any program with direct access to the timer ports needs to be adapted. Existing programs will need source code analysis and testing. Adding an lcd_ingray() at the beginning of the program is not much.
Title: Re: Hide documents on TI-Nspire [Ndless]
Post by: calc84maniac on December 27, 2011, 09:14:19 am
Good thing the CX version of gbc4nspire already manually sets grayscale mode, then (since I wrote it before auto-grayscale was supported)
Title: Re: Hide documents on TI-Nspire [Ndless]
Post by: njaddison on January 26, 2012, 10:15:16 pm
Oh, speaking of, I don't have a CX, but if you loaded your CX with games and programs, it might be useful to have a basic nspire-emulator for the cx, or oslauncher for the cx, which is compatible with the .tno os update also.
Title: Re: Hide documents on TI-Nspire [Ndless]
Post by: Lionel Debroux on January 27, 2012, 01:25:57 am
Quote
or oslauncher for the cx, which is compatible with the .tno os update also.
CX calculators and Clickpad/Touchpad calculators are way too different from each other for each other's OS to work transparently on the other model :)
Title: Re: Hide documents on TI-Nspire [Ndless]
Post by: Adamacc on October 28, 2013, 02:44:59 pm
Hi

Is there any possibility to make hide manager to work with TI-nspire CAS with clickpad? If yes, is there a 'step-by-step tutorial for dummies'?

TIA
Adam
Title: Re: Hide documents on TI-Nspire [Ndless]
Post by: Levak on October 28, 2013, 03:10:59 pm
Is there any possibility to make hide manager to work with TI-nspire CAS with clickpad? If yes, is there a 'step-by-step tutorial for dummies'?
Hide Manager works on the Clickpads.
Since it is an ndless program, you'll need OS 3.1 and ndless 3.1 (of course).
Just read the "readme" file given in the archive, it describes it all, the rest of the process is detailed inside the program itself.
HideManager has been made non-user friendly, and there is a reason for that : security.