Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Adriweb

Pages: 1 ... 83 84 [85] 86 87 ... 115
1261
Computer Projects and Ideas / Re: Lua code optimizer for pc
« on: January 11, 2012, 02:23:25 pm »
UPDATE!!!

include external .lua files by using #, followed by the name of the file (without the .lua)

example main file:
Code: [Select]
function on.create()
#varsinit
end


What ??

#varsinit returns the number of elements in the "varsinit" table ...
You've overriden the metatables ?

1262
News / Re: Ndless 3.1 coming soon?
« on: January 11, 2012, 06:44:13 am »
Probably 8 ndless-related surprises because:

I asked adriweb and he told me there would be 8 surprises...

So it probably doesnt mean 8 days/weeks.
Unless adriweb was lying to protect the truth O.O

No, neither 8 days nor 8 weeks (first is too short, second is too long :P)

And lol no, I'm not lying :

- the 8 rockets are 8 things. (not related to a countdown)
- We seek to release Ndless 3.1 before January ends
- As Lionel said, if the new OS comes around March or April if we establish that possibility from previous releases cycles, it's unlikely TI will have time to fix the bugs. Or maybe they will delay the OS, but I doubt it, since the international T^3 conference happens at the beginning of March and they usually announces their new stuff there (last year (?) Melendy Lovett (Ed. Tech . Top Manager) announced the CX devices models there (along with OS3 ?))

Anyways these are just suppositions/calculations/prognostics based on what we publicly know already from the past.

1263
Lua / Re: Checkers Lua
« on: January 10, 2012, 06:43:51 am »
Exactly, 3rik :)

These are called ternary structures (fast "if"s, yeah) :P

They are useful when you can have them stand in one line, it's clearer, I think.
For longers if then else, I wouldn't recommend it so much.

1264
News / Re: Ndless 3.1 coming soon?
« on: January 10, 2012, 06:40:27 am »
A little bit more precise :

As said on TI-Planet, it should be before the end of the month ;)

1265
General Calculator Help / Re: TI nSpire CX Password?
« on: January 08, 2012, 10:41:42 am »
Here's a document Hider, by Levak :
http://tiplanet.org/index.php?mod=archives&ac=voir&id=3847

Omnimaga topic : http://ourl.ca/14608



Edit : grilled....

1266
Lua / Re: Checkers Lua
« on: January 08, 2012, 05:32:49 am »
I see you added the image in the background.
Oh yeah, I just wanted to see how it looks.

Does anybody know how to do a pause function? I would probably have to change quite a bit of code to get it to work...
As I said before, you can avoid the user of the timer.start() etc. by using the timer.getMilliSecCounter function to get a relative timestamp (it's a number actually) and make a loop or something that checks the time and wait for time+10000 (for 10 seconds), for example.

Look, for example :

Code: [Select]
print("hello")
startTime = timer.getMilliSecCounter()
while timer.getMilliSecCounter() < startTime+3000 do
end
print("world")  --  this will be done after 3 seconds

Meh, I don't like my own code... it doesnt look good to write such flow-stopping things ... :/
And I'm not even sure it would work in all conditions...

Also, I just thought about Lua's coroutines.... Maybe it can be useful ?

1267
Lua / Re: Checkers Lua
« on: January 07, 2012, 03:33:59 pm »
Here's an optimized code, a little bit (not the algorithms, but little optimizations here and there...)

http://paste.bwns.be/p/f5a094f0f

1268
Other Calculators / Re: Should I get a nspire?
« on: January 07, 2012, 12:36:38 pm »
Yeah, all Nspire keyboards suck, both for finger feel / confidence and for typing mixed text + figures.
Letters on the Nspire are tiny - and yet, I have long, thin fingers.
I got used to it, and now I'm don't think it's bad :)

1269
Lua / Re: Checkers Lua
« on: January 07, 2012, 12:28:04 pm »
Eh, Nick, why not, but managing multiple timers through a table for that specific use might be better.

Otherwise, you can use the timer.getMilliSecCounter function to get a relative timestamp (it's a number actually) and make a loop or something that checks the time and wait for time+10000 for 10 seconds, for example.

Anyway, this is not generally what you want to do anyway.

I never had any situation where I had to manually stop the flow of the program.

What do you want to do anyway ?

1270
TI-Nspire / Re: [Lua] Mancala
« on: January 07, 2012, 05:46:04 am »
Great :)

Don't forget to share your code so we can help you on it if you have troubles or if we think you can optimize it :)

1271
TI Z80 / Re: Comprehensive chemistry program for Lua or TI-Basic
« on: January 06, 2012, 05:13:28 pm »
Hello. I'm wondering if there is a huge chemistry program that has solvers for practically any formula I need for any chemistry class i will ever take for either the TI-84+ keypad on the tinspire or the touchpad on the tinspire with OS 3.1. Thank you for any help.

This is *exactly* what "FormulaPro" will be.
(with the chemistry database)

FormulaPro is not yet available, sorry, but is being developed right now.
You can follow its progress through it's parent project "EEPro-Nspire" (temporary name) here : https://github.com/adriweb/EEPro-for-Nspire

1272
Casio PRIZM / Re: CalGUI -- A GUI library by flyingfisch
« on: January 06, 2012, 11:37:20 am »
o_O

setmetatable() is a native lua function ....
:o

( http://lua-users.org/wiki/MetamethodsTutorial )

What version of Lua are you using ?
That may be the problem...

Also, I know there are some encoding problem with Omnimaga codes in posts.

Here's the class function, that you can again copy/paste, maybe it will work this time ?
http://pastebin.com/9gTmaKKK

1273
Computer Projects and Ideas / Re: Lua code improver for pc
« on: January 05, 2012, 06:36:14 pm »
Great idea, but for this kind of optimizations, people generally use LuaSrcDiet, a (well-known ?) Lua code size-reducer (extreme size decreases....)

Take a look here and try it on your code :
http://code.google.com/p/luasrcdiet/

It's a lua script by itself. :)
Maybe you can take it and modify it to match Nspire Lua needs ? (It messes up the ti.images !!)
And put it together with your nice graphical UI ?

:D

1274
News / Re: Even more early TI-Nspire prototype discovery
« on: January 05, 2012, 06:27:45 pm »
So, what happens when you try?

The original CAS+ OS is removed.

And as TI has never released any CAS+ OS, your CAS+ is permanently bricked.
Unless you find a dumped CAS+ somewhere?

We (myself, geogeo, Extended?, critor...) tried quite hard to dump it, and for now ... no success .... :(

1275
Casio PRIZM / Re: CalGUI -- A GUI library by flyingfisch
« on: January 05, 2012, 12:10:13 pm »
By the way, the class() code should work, but I didn't test it ... Did you ? :D

Pages: 1 ... 83 84 [85] 86 87 ... 115