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 - Jim Bauwens

Pages: 1 ... 56 57 [58] 59 60 ... 125
856
Computer Projects and Ideas / Re: Lua code optimizer for pc
« on: January 11, 2012, 03:53:48 pm »
You should make that it only works in the beginning of the file, since % is used for modulus and stuff.
But nice idea anyway.

857
News / Re: Ndless 3.1 coming soon?
« on: January 11, 2012, 07:40:10 am »
This is why I think we should keep quiet about Ndless and Co to website like Slashdot until the next OS is out.
Teachers and/or people at TI will notice it less, which might result in less pressure on the developers to fix it.

858
Lua / Re: Checkers Lua
« on: January 10, 2012, 01:24:40 pm »
For people used to C this is the equalivent of "var=bool ? Val1:Val2" (but better).

859
Lua / Re: Checkers Lua
« on: January 09, 2012, 03:58:03 am »
Well, the problem is that using the pause you will have to make some other complex changes to your current layout.
This is because of the switch from event based to loop based. My pause was made for my oncalc Lua console, and only needs to display text.
Its a bit more complex in your case.
And anyway, you should not do it this way.

I would make a timer system were you can add stuff to a queue.
Code: [Select]
_QUEUE  =  {}

function setTimeout(func, ms, toggle)
  ms  =  ms>9 and ms or 10
  table.insert(_QUEUE, {start=timer.getMilliSecCounter(), time=ms, toggle=toggle, action=func})
  if toggle then timer.start(0.01) end
end

function on.timer()
  local now  =  timer.getMilliSecCounter()
  for index, t in ipairs(_QUEUE) do
    if now>=t.start+t.time then
      t.action()
      if t.toggle then timer.stop() end
    end
  end
end


Okay, I did not test this code, so I don't know if it will run.
You just need to run "setTimeout(functiontorun, milliseconds, true)"
This should run functiontorun in milliseconds of time.
functiontorun can have for example something to invalidate the screen and toggle some flags.

860
ASM / Re: 68K ASM Help
« on: January 09, 2012, 03:41:27 am »
What about grammer for the 68k :D

861
General Calculator Help / Re: TI nSpire CX Password?
« on: January 08, 2012, 02:55:25 pm »
Yes, you can paste a "lock" in every document you need to lock.
But you could also make a global lock I guess. (all documents)

862
General Calculator Help / Re: TI nSpire CX Password?
« on: January 08, 2012, 02:50:58 pm »
its possible?? i thought lua ran in a box....
Yes, but with enough tricks you can lock a document :D

863
News / Re: The TI-Nspire ViewScreen panel is a true TI-Nspire CAS+ !!!
« on: January 08, 2012, 02:50:20 pm »
They somehow have to make it expensive.

864
General Calculator Help / Re: TI nSpire CX Password?
« on: January 08, 2012, 10:17:15 am »
Hmm, I don't think there is any.
Its also not so easy to make one (but it is possible).
Someone with some free time and the necessary (Lua) coding skills can do it, but you just have to find that person :P

865
News / Re: The TI-Nspire ViewScreen panel is a true TI-Nspire CAS+ !!!
« on: January 08, 2012, 10:13:08 am »
Nice.
I assume this mean it was developed before they switched to an ASIC core, and they never changed it.

866
Computer Programming / Re: Regex question
« on: January 08, 2012, 10:12:24 am »
I am aware. Your comment sounded like a general statement about RegEx to me, in which case it is false.
I'm sorry, should have mentions the RegExp type.
Indeed you had a valid statement.

867
Lua / Re: Checkers Lua
« on: January 08, 2012, 10:11:30 am »
I made a  pause function using lua coroutines a while ago. It just act like a pause function in any other language. (and is not CPU intensive)
BUT I DON'T RECOMMEND IT.
:D

You really should try to keep the even based system, and not this type of pause.
Why? Because we are working in a event based system, and for good results we should stick to it.
You can perfectly do what you want without creating such a pause function ;)

868
Computer Programming / Re: Regex question
« on: January 07, 2012, 05:49:35 pm »
Oh, but he is using vala (based on c)

869
Computer Programming / Re: Regex question
« on: January 07, 2012, 05:41:03 pm »
Just a little note, regexp are never in quotes :D
I made this mistake many times :P

870
Lua / Re: Checkers Lua
« on: January 07, 2012, 01:19:10 pm »
Lua generally works like that, but the nspire version is implemented event based.
At first I did not like it, but soon I realized that you can do anything you want.
And if you really really want to, you can make nspire Lua loop based.

Pages: 1 ... 56 57 [58] 59 60 ... 125